@paroicms/site-generator-plugin 0.32.1 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,87 +1,87 @@
1
- function Ny(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function Oy(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var n=a.default;if(typeof n=="function"){var i=function l(){var s=!1;try{s=this instanceof l}catch{}return s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(a).forEach(function(l){var s=Object.getOwnPropertyDescriptor(a,l);Object.defineProperty(i,l,s.get?s:{enumerable:!0,get:function(){return a[l]}})}),i}var Tf={exports:{}},hr={};var mv;function V1(){if(mv)return hr;mv=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(l,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var p in s)p!=="key"&&(u[p]=s[p])}else u=s;return s=u.ref,{$$typeof:a,type:l,key:c,ref:s!==void 0?s:null,props:u}}return hr.Fragment=n,hr.jsx=i,hr.jsxs=i,hr}var gv;function G1(){return gv||(gv=1,Tf.exports=V1()),Tf.exports}var b=G1();const me=a=>typeof a=="string",mr=()=>{let a,n;const i=new Promise((l,s)=>{a=l,n=s});return i.resolve=a,i.reject=n,i},vv=a=>a==null?"":""+a,q1=(a,n,i)=>{a.forEach(l=>{n[l]&&(i[l]=n[l])})},Y1=/###/g,yv=a=>a&&a.indexOf("###")>-1?a.replace(Y1,"."):a,bv=a=>!a||me(a),jr=(a,n,i)=>{const l=me(n)?n.split("."):n;let s=0;for(;s<l.length-1;){if(bv(a))return{};const u=yv(l[s]);!a[u]&&i&&(a[u]=new i),Object.prototype.hasOwnProperty.call(a,u)?a=a[u]:a={},++s}return bv(a)?{}:{obj:a,k:yv(l[s])}},Sv=(a,n,i)=>{const{obj:l,k:s}=jr(a,n,Object);if(l!==void 0||n.length===1){l[s]=i;return}let u=n[n.length-1],c=n.slice(0,n.length-1),p=jr(a,c,Object);for(;p.obj===void 0&&c.length;)u=`${c[c.length-1]}.${u}`,c=c.slice(0,c.length-1),p=jr(a,c,Object),p?.obj&&typeof p.obj[`${p.k}.${u}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${u}`]=i},P1=(a,n,i,l)=>{const{obj:s,k:u}=jr(a,n,Object);s[u]=s[u]||[],s[u].push(i)},Mo=(a,n)=>{const{obj:i,k:l}=jr(a,n);if(i&&Object.prototype.hasOwnProperty.call(i,l))return i[l]},X1=(a,n,i)=>{const l=Mo(a,i);return l!==void 0?l:Mo(n,i)},Ry=(a,n,i)=>{for(const l in n)l!=="__proto__"&&l!=="constructor"&&(l in a?me(a[l])||a[l]instanceof String||me(n[l])||n[l]instanceof String?i&&(a[l]=n[l]):Ry(a[l],n[l],i):a[l]=n[l]);return a},si=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var I1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const K1=a=>me(a)?a.replace(/[&<>"'\/]/g,n=>I1[n]):a;class F1{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const i=this.regExpMap.get(n);if(i!==void 0)return i;const l=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,l),this.regExpQueue.push(n),l}}const Q1=[" ",",","?","!",";"],Z1=new F1(20),J1=(a,n,i)=>{n=n||"",i=i||"";const l=Q1.filter(c=>n.indexOf(c)<0&&i.indexOf(c)<0);if(l.length===0)return!0;const s=Z1.getRegExp(`(${l.map(c=>c==="?"?"\\?":c).join("|")})`);let u=!s.test(a);if(!u){const c=a.indexOf(i);c>0&&!s.test(a.substring(0,c))&&(u=!0)}return u},sd=(a,n,i=".")=>{if(!a)return;if(a[n])return Object.prototype.hasOwnProperty.call(a,n)?a[n]:void 0;const l=n.split(i);let s=a;for(let u=0;u<l.length;){if(!s||typeof s!="object")return;let c,p="";for(let f=u;f<l.length;++f)if(f!==u&&(p+=i),p+=l[f],c=s[p],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&f<l.length-1)continue;u+=f-u+1;break}s=c}return s},$r=a=>a?.replace(/_/g,"-"),W1={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,n){console?.[a]?.apply?.(console,n)}};class _o{constructor(n,i={}){this.init(n,i)}init(n,i={}){this.prefix=i.prefix||"i18next:",this.logger=n||W1,this.options=i,this.debug=i.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,i,l,s){return s&&!this.debug?null:(me(n[0])&&(n[0]=`${l}${this.prefix} ${n[0]}`),this.logger[i](n))}create(n){return new _o(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new _o(this.logger,n)}}var kn=new _o;class Qo{constructor(){this.observers={}}on(n,i){return n.split(" ").forEach(l=>{this.observers[l]||(this.observers[l]=new Map);const s=this.observers[l].get(i)||0;this.observers[l].set(i,s+1)}),this}off(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n].delete(i)}}emit(n,...i){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([s,u])=>{for(let c=0;c<u;c++)s(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,u])=>{for(let c=0;c<u;c++)s.apply(s,[n,...i])})}}class xv extends Qo{constructor(n,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}getResource(n,i,l,s={}){const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;n.indexOf(".")>-1?p=n.split("."):(p=[n,i],l&&(Array.isArray(l)?p.push(...l):me(l)&&u?p.push(...l.split(u)):p.push(l)));const f=Mo(this.data,p);return!f&&!i&&!l&&n.indexOf(".")>-1&&(n=p[0],i=p[1],l=p.slice(2).join(".")),f||!c||!me(l)?f:sd(this.data?.[n]?.[i],l,u)}addResource(n,i,l,s,u={silent:!1}){const c=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let p=[n,i];l&&(p=p.concat(c?l.split(c):l)),n.indexOf(".")>-1&&(p=n.split("."),s=i,i=p[1]),this.addNamespaces(i),Sv(this.data,p,s),u.silent||this.emit("added",n,i,l,s)}addResources(n,i,l,s={silent:!1}){for(const u in l)(me(l[u])||Array.isArray(l[u]))&&this.addResource(n,i,u,l[u],{silent:!0});s.silent||this.emit("added",n,i,l)}addResourceBundle(n,i,l,s,u,c={silent:!1,skipCopy:!1}){let p=[n,i];n.indexOf(".")>-1&&(p=n.split("."),s=l,l=i,i=p[1]),this.addNamespaces(i);let f=Mo(this.data,p)||{};c.skipCopy||(l=JSON.parse(JSON.stringify(l))),s?Ry(f,l,u):f={...f,...l},Sv(this.data,p,f),c.silent||this.emit("added",n,i,l)}removeResourceBundle(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}hasResourceBundle(n,i){return this.getResource(n,i)!==void 0}getResourceBundle(n,i){return i||(i=this.options.defaultNS),this.getResource(n,i)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const i=this.getDataByLanguage(n);return!!(i&&Object.keys(i)||[]).find(s=>i[s]&&Object.keys(i[s]).length>0)}toJSON(){return this.data}}var Ay={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,n,i,l,s){return a.forEach(u=>{n=this.processors[u]?.process(n,i,l,s)??n}),n}};const jy=Symbol("i18next/PATH_KEY");function ew(){const a=[],n=Object.create(null);let i;return n.get=(l,s)=>(i?.revoke?.(),s===jy?a:(a.push(s),i=Proxy.revocable(l,n),i.proxy)),Proxy.revocable(Object.create(null),n).proxy}function od(a,n){const{[jy]:i}=a(ew());return i.join(n?.keySeparator??".")}const wv={},Cf=a=>!me(a)&&typeof a!="boolean"&&typeof a!="number";class ko extends Qo{constructor(n,i={}){super(),q1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=kn.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,i={interpolation:{}}){const l={...i};if(n==null)return!1;const s=this.resolve(n,l);if(s?.res===void 0)return!1;const u=Cf(s.res);return!(l.returnObjects===!1&&u)}extractFromKey(n,i){let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let u=i.ns||this.options.defaultNS||[];const c=l&&n.indexOf(l)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!J1(n,l,s);if(c&&!p){const f=n.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:n,namespaces:me(u)?[u]:u};const m=n.split(l);(l!==s||l===s&&this.options.ns.indexOf(m[0])>-1)&&(u=m.shift()),n=m.join(s)}return{key:n,namespaces:me(u)?[u]:u}}translate(n,i,l){let s=typeof i=="object"?{...i}:i;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),n==null)return"";typeof n=="function"&&(n=od(n,{...this.options,...s})),Array.isArray(n)||(n=[String(n)]);const u=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:p,namespaces:f}=this.extractFromKey(n[n.length-1],s),m=f[f.length-1];let v=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const g=s.lng||this.language,S=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return S?u?{res:`${m}${v}${p}`,usedKey:p,exactUsedKey:p,usedLng:g,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${v}${p}`:u?{res:p,usedKey:p,exactUsedKey:p,usedLng:g,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:p;const x=this.resolve(n,s);let E=x?.res;const O=x?.usedKey||p,A=x?.exactUsedKey||p,C=["[object Number]","[object Function]","[object RegExp]"],T=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,B=s.count!==void 0&&!me(s.count),Y=ko.hasDefaultValue(s),z=B?this.pluralResolver.getSuffix(g,s.count,s):"",_=s.ordinal&&B?this.pluralResolver.getSuffix(g,s.count,{ordinal:!1}):"",M=B&&!s.ordinal&&s.count===0,H=M&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${z}`]||s[`defaultValue${_}`]||s.defaultValue;let $=E;R&&!E&&Y&&($=H);const U=Cf($),I=Object.prototype.toString.apply($);if(R&&$&&U&&C.indexOf(I)<0&&!(me(T)&&Array.isArray($))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,$,{...s,ns:f}):`key '${p} (${this.language})' returned an object instead of string.`;return u?(x.res=ee,x.usedParams=this.getUsedParamsDetails(s),x):ee}if(c){const ee=Array.isArray($),ne=ee?[]:{},le=ee?A:O;for(const V in $)if(Object.prototype.hasOwnProperty.call($,V)){const te=`${le}${c}${V}`;Y&&!E?ne[V]=this.translate(te,{...s,defaultValue:Cf(H)?H[V]:void 0,joinArrays:!1,ns:f}):ne[V]=this.translate(te,{...s,joinArrays:!1,ns:f}),ne[V]===te&&(ne[V]=$[V])}E=ne}}else if(R&&me(T)&&Array.isArray(E))E=E.join(T),E&&(E=this.extendTranslation(E,n,s,l));else{let ee=!1,ne=!1;!this.isValidLookup(E)&&Y&&(ee=!0,E=H),this.isValidLookup(E)||(ne=!0,E=p);const V=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:E,te=Y&&H!==E&&this.options.updateMissing;if(ne||ee||te){if(this.logger.log(te?"updateKey":"missingKey",g,m,p,te?H:E),c){const D=this.resolve(p,{...s,keySeparator:!1});D&&D.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 J=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let D=0;D<se.length;D++)J.push(se[D]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(s.lng||this.language):J.push(s.lng||this.language);const de=(D,F,ae)=>{const re=Y&&ae!==E?ae:V;this.options.missingKeyHandler?this.options.missingKeyHandler(D,m,F,re,te,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(D,m,F,re,te,s),this.emit("missingKey",D,m,F,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?J.forEach(D=>{const F=this.pluralResolver.getSuffixes(D,s);M&&s[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach(ae=>{de([D],p+ae,s[`defaultValue${ae}`]||H)})}):de(J,p,H))}E=this.extendTranslation(E,n,s,x,l),ne&&E===p&&this.options.appendNamespaceToMissingKey&&(E=`${m}${v}${p}`),(ne||ee)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${v}${p}`:p,ee?E:void 0,s))}return u?(x.res=E,x.usedParams=this.getUsedParamsDetails(s),x):E}extendTranslation(n,i,l,s,u){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const f=me(n)&&(l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const g=n.match(this.interpolator.nestingRegexp);m=g&&g.length}let v=l.replace&&!me(l.replace)?l.replace:l;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),n=this.interpolator.interpolate(n,v,l.lng||this.language||s.usedLng,l),f){const g=n.match(this.interpolator.nestingRegexp),S=g&&g.length;m<S&&(l.nest=!1)}!l.lng&&s&&s.res&&(l.lng=this.language||s.usedLng),l.nest!==!1&&(n=this.interpolator.nest(n,(...g)=>u?.[0]===g[0]&&!l.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${i[0]}`),null):this.translate(...g,i),l)),l.interpolation&&this.interpolator.reset()}const c=l.postProcess||this.options.postProcess,p=me(c)?[c]:c;return n!=null&&p?.length&&l.applyPostProcessor!==!1&&(n=Ay.handle(p,n,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),n}resolve(n,i={}){let l,s,u,c,p;return me(n)&&(n=[n]),n.forEach(f=>{if(this.isValidLookup(l))return;const m=this.extractFromKey(f,i),v=m.key;s=v;let g=m.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const S=i.count!==void 0&&!me(i.count),x=S&&!i.ordinal&&i.count===0,E=i.context!==void 0&&(me(i.context)||typeof i.context=="number")&&i.context!=="",O=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);g.forEach(A=>{this.isValidLookup(l)||(p=A,!wv[`${O[0]}-${A}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(wv[`${O[0]}-${A}`]=!0,this.logger.warn(`key "${s}" for languages "${O.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(C=>{if(this.isValidLookup(l))return;c=C;const T=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(T,v,C,A,i);else{let B;S&&(B=this.pluralResolver.getSuffix(C,i.count,i));const Y=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(i.ordinal&&B.indexOf(z)===0&&T.push(v+B.replace(z,this.options.pluralSeparator)),T.push(v+B),x&&T.push(v+Y)),E){const _=`${v}${this.options.contextSeparator||"_"}${i.context}`;T.push(_),S&&(i.ordinal&&B.indexOf(z)===0&&T.push(_+B.replace(z,this.options.pluralSeparator)),T.push(_+B),x&&T.push(_+Y))}}let R;for(;R=T.pop();)this.isValidLookup(l)||(u=R,l=this.getResource(C,A,R,i))}))})}),{res:l,usedKey:s,exactUsedKey:u,usedLng:c,usedNS:p}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,i,l,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,i,l,s):this.resourceStore.getResource(n,i,l,s)}getUsedParamsDetails(n={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=n.replace&&!me(n.replace);let s=l?n.replace:n;if(l&&typeof n.count<"u"&&(s.count=n.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!l){s={...s};for(const u of i)delete s[u]}return s}static hasDefaultValue(n){const i="defaultValue";for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&i===l.substring(0,i.length)&&n[l]!==void 0)return!0;return!1}}class Ev{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kn.create("languageUtils")}getScriptPartFromCode(n){if(n=$r(n),!n||n.indexOf("-")<0)return null;const i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(n){if(n=$r(n),!n||n.indexOf("-")<0)return n;const i=n.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(n){if(me(n)&&n.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(n)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let i;return n.forEach(l=>{if(i)return;const s=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(s))&&(i=s)}),!i&&this.options.supportedLngs&&n.forEach(l=>{if(i)return;const s=this.getScriptPartFromCode(l);if(this.isSupportedCode(s))return i=s;const u=this.getLanguagePartFromCode(l);if(this.isSupportedCode(u))return i=u;i=this.options.supportedLngs.find(c=>{if(c===u)return c;if(!(c.indexOf("-")<0&&u.indexOf("-")<0)&&(c.indexOf("-")>0&&u.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===u||c.indexOf(u)===0&&u.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),me(n)&&(n=[n]),Array.isArray(n))return n;if(!i)return n.default||[];let l=n[i];return l||(l=n[this.getScriptPartFromCode(i)]),l||(l=n[this.formatLanguageCode(i)]),l||(l=n[this.getLanguagePartFromCode(i)]),l||(l=n.default),l||[]}toResolveHierarchy(n,i){const l=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],n),s=[],u=c=>{c&&(this.isSupportedCode(c)?s.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return me(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(n))):me(n)&&u(this.formatLanguageCode(n)),l.forEach(c=>{s.indexOf(c)<0&&u(this.formatLanguageCode(c))}),s}}const Tv={zero:0,one:1,two:2,few:3,many:4,other:5},Cv={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class tw{constructor(n,i={}){this.languageUtils=n,this.options=i,this.logger=kn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,i={}){const l=$r(n==="dev"?"en":n),s=i.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:l,type:s});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let c;try{c=new Intl.PluralRules(l,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Cv;if(!n.match(/-|_/))return Cv;const f=this.languageUtils.getLanguagePartFromCode(n);c=this.getRule(f,i)}return this.pluralRulesCache[u]=c,c}needsPlural(n,i={}){let l=this.getRule(n,i);return l||(l=this.getRule("dev",i)),l?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,i,l={}){return this.getSuffixes(n,l).map(s=>`${i}${s}`)}getSuffixes(n,i={}){let l=this.getRule(n,i);return l||(l=this.getRule("dev",i)),l?l.resolvedOptions().pluralCategories.sort((s,u)=>Tv[s]-Tv[u]).map(s=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(n,i,l={}){const s=this.getRule(n,l);return s?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s.select(i)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",i,l))}}const Nv=(a,n,i,l=".",s=!0)=>{let u=X1(a,n,i);return!u&&s&&me(i)&&(u=sd(a,i,l),u===void 0&&(u=sd(n,i,l))),u},Nf=a=>a.replace(/\$/g,"$$$$");class Ov{constructor(n={}){this.logger=kn.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(i=>i),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:i,escapeValue:l,useRawValueToEscape:s,prefix:u,prefixEscaped:c,suffix:p,suffixEscaped:f,formatSeparator:m,unescapeSuffix:v,unescapePrefix:g,nestingPrefix:S,nestingPrefixEscaped:x,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:A,maxReplaces:C,alwaysFormat:T}=n.interpolation;this.escape=i!==void 0?i:K1,this.escapeValue=l!==void 0?l:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=u?si(u):c||"{{",this.suffix=p?si(p):f||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=S?si(S):x||si("$t("),this.nestingSuffix=E?si(E):O||si(")"),this.nestingOptionsSeparator=A||",",this.maxReplaces=C||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(i,l)=>i?.source===l?(i.lastIndex=0,i):new RegExp(l,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,i,l,s){let u,c,p;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=x=>{if(x.indexOf(this.formatSeparator)<0){const C=Nv(i,f,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,l,{...s,...i,interpolationkey:x}):C}const E=x.split(this.formatSeparator),O=E.shift().trim(),A=E.join(this.formatSeparator).trim();return this.format(Nv(i,f,O,this.options.keySeparator,this.options.ignoreJSONStructure),A,l,{...s,...i,interpolationkey:O})};this.resetRegExp();const v=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>Nf(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?Nf(this.escape(x)):Nf(x)}].forEach(x=>{for(p=0;u=x.regex.exec(n);){const E=u[1].trim();if(c=m(E),c===void 0)if(typeof v=="function"){const A=v(n,u,s);c=me(A)?A:""}else if(s&&Object.prototype.hasOwnProperty.call(s,E))c="";else if(g){c=u[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${n}`),c="";else!me(c)&&!this.useRawValueToEscape&&(c=vv(c));const O=x.safeValue(c);if(n=n.replace(u[0],O),g?(x.regex.lastIndex+=c.length,x.regex.lastIndex-=u[0].length):x.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),n}nest(n,i,l={}){let s,u,c;const p=(f,m)=>{const v=this.nestingOptionsSeparator;if(f.indexOf(v)<0)return f;const g=f.split(new RegExp(`${si(v)}[ ]*{`));let S=`{${g[1]}`;f=g[0],S=this.interpolate(S,c);const x=S.match(/'/g),E=S.match(/"/g);((x?.length??0)%2===0&&!E||(E?.length??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{c=JSON.parse(S),m&&(c={...m,...c})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,O),`${f}${v}${S}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,f};for(;s=this.nestingRegexp.exec(n);){let f=[];c={...l},c=c.replace&&!me(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(f=s[1].slice(m).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),u=i(p.call(this,s[1].trim(),c),c),u&&s[0]===n&&!me(u))return u;me(u)||(u=vv(u)),u||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${n}`),u=""),f.length&&(u=f.reduce((v,g)=>this.format(v,g,l.lng,{...l,interpolationkey:s[1].trim()}),u.trim())),n=n.replace(s[0],u),this.regexp.lastIndex=0}return n}}const nw=a=>{let n=a.toLowerCase().trim();const i={};if(a.indexOf("(")>-1){const l=a.split("(");n=l[0].toLowerCase().trim();const s=l[1].substring(0,l[1].length-1);n==="currency"&&s.indexOf(":")<0?i.currency||(i.currency=s.trim()):n==="relativetime"&&s.indexOf(":")<0?i.range||(i.range=s.trim()):s.split(";").forEach(c=>{if(c){const[p,...f]=c.split(":"),m=f.join(":").trim().replace(/^'+|'+$/g,""),v=p.trim();i[v]||(i[v]=m),m==="false"&&(i[v]=!1),m==="true"&&(i[v]=!0),isNaN(m)||(i[v]=parseInt(m,10))}})}return{formatName:n,formatOptions:i}},Rv=a=>{const n={};return(i,l,s)=>{let u=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(u={...u,[s.interpolationkey]:void 0});const c=l+JSON.stringify(u);let p=n[c];return p||(p=a($r(l),s),n[c]=p),p(i)}},aw=a=>(n,i,l)=>a($r(i),l)(n);class iw{constructor(n={}){this.logger=kn.create("formatter"),this.options=n,this.init(n)}init(n,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const l=i.cacheInBuiltFormats?Rv:aw;this.formats={number:l((s,u)=>{const c=new Intl.NumberFormat(s,{...u});return p=>c.format(p)}),currency:l((s,u)=>{const c=new Intl.NumberFormat(s,{...u,style:"currency"});return p=>c.format(p)}),datetime:l((s,u)=>{const c=new Intl.DateTimeFormat(s,{...u});return p=>c.format(p)}),relativetime:l((s,u)=>{const c=new Intl.RelativeTimeFormat(s,{...u});return p=>c.format(p,u.range||"day")}),list:l((s,u)=>{const c=new Intl.ListFormat(s,{...u});return p=>c.format(p)})}}add(n,i){this.formats[n.toLowerCase().trim()]=i}addCached(n,i){this.formats[n.toLowerCase().trim()]=Rv(i)}format(n,i,l,s={}){const u=i.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(p=>p.indexOf(")")>-1)){const p=u.findIndex(f=>f.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,p)].join(this.formatSeparator)}return u.reduce((p,f)=>{const{formatName:m,formatOptions:v}=nw(f);if(this.formats[m]){let g=p;try{const S=s?.formatParams?.[s.interpolationkey]||{},x=S.locale||S.lng||s.locale||s.lng||l;g=this.formats[m](p,x,{...v,...s,...S})}catch(S){this.logger.warn(S)}return g}else this.logger.warn(`there was no format function for ${m}`);return p},n)}}const lw=(a,n)=>{a.pending[n]!==void 0&&(delete a.pending[n],a.pendingCount--)};class rw extends Qo{constructor(n,i,l,s={}){super(),this.backend=n,this.store=i,this.services=l,this.languageUtils=l.languageUtils,this.options=s,this.logger=kn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(l,s.backend,s)}queueLoad(n,i,l,s){const u={},c={},p={},f={};return n.forEach(m=>{let v=!0;i.forEach(g=>{const S=`${m}|${g}`;!l.reload&&this.store.hasResourceBundle(m,g)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?c[S]===void 0&&(c[S]=!0):(this.state[S]=1,v=!1,c[S]===void 0&&(c[S]=!0),u[S]===void 0&&(u[S]=!0),f[g]===void 0&&(f[g]=!0)))}),v||(p[m]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(f)}}loaded(n,i,l){const s=n.split("|"),u=s[0],c=s[1];i&&this.emit("failedLoading",u,c,i),!i&&l&&this.store.addResourceBundle(u,c,l,void 0,void 0,{skipCopy:!0}),this.state[n]=i?-1:2,i&&l&&(this.state[n]=0);const p={};this.queue.forEach(f=>{P1(f.loaded,[u],c),lw(f,n),i&&f.errors.push(i),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(m=>{p[m]||(p[m]={});const v=f.loaded[m];v.length&&v.forEach(g=>{p[m][g]===void 0&&(p[m][g]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(f=>!f.done)}read(n,i,l,s=0,u=this.retryTimeout,c){if(!n.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:l,tried:s,wait:u,callback:c});return}this.readingCalls++;const p=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(m&&v&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,n,i,l,s+1,u*2,c)},u);return}c(m,v)},f=this.backend[l].bind(this.backend);if(f.length===2){try{const m=f(n,i);m&&typeof m.then=="function"?m.then(v=>p(null,v)).catch(p):p(null,m)}catch(m){p(m)}return}return f(n,i,p)}prepareLoading(n,i,l={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();me(n)&&(n=this.languageUtils.toResolveHierarchy(n)),me(i)&&(i=[i]);const u=this.queueLoad(n,i,l,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(c=>{this.loadOne(c)})}load(n,i,l){this.prepareLoading(n,i,{},l)}reload(n,i,l){this.prepareLoading(n,i,{reload:!0},l)}loadOne(n,i=""){const l=n.split("|"),s=l[0],u=l[1];this.read(s,u,"read",void 0,void 0,(c,p)=>{c&&this.logger.warn(`${i}loading namespace ${u} for language ${s} failed`,c),!c&&p&&this.logger.log(`${i}loaded namespace ${u} for language ${s}`,p),this.loaded(n,c,p)})}saveMissing(n,i,l,s,u,c={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${l}" as the namespace "${i}" 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(!(l==null||l==="")){if(this.backend?.create){const f={...c,isUpdate:u},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(n,i,l,s,f):v=m(n,i,l,s),v&&typeof v.then=="function"?v.then(g=>p(null,g)).catch(p):p(null,v)}catch(v){p(v)}else m(n,i,l,s,p,f)}!n||!n[0]||this.store.addResource(n[0],i,l,s)}}}const Of=()=>({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 n={};if(typeof a[1]=="object"&&(n=a[1]),me(a[1])&&(n.defaultValue=a[1]),me(a[2])&&(n.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const i=a[3]||a[2];Object.keys(i).forEach(l=>{n[l]=i[l]})}return n},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Av=a=>(me(a.ns)&&(a.ns=[a.ns]),me(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),me(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a),fo=()=>{},sw=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(i=>{typeof a[i]=="function"&&(a[i]=a[i].bind(a))})},Dy="__i18next_supportNoticeShown",ow=()=>typeof globalThis<"u"&&!!globalThis[Dy],uw=()=>{typeof globalThis<"u"&&(globalThis[Dy]=!0)},cw=a=>!!(a?.modules?.backend?.name?.indexOf("Locize")>0||a?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||a?.options?.backend?.backends&&a.options.backend.backends.some(n=>n?.name?.indexOf("Locize")>0||n?.constructor?.name?.indexOf("Locize")>0)||a?.options?.backend?.projectId||a?.options?.backend?.backendOptions&&a.options.backend.backendOptions.some(n=>n?.projectId));class Dr extends Qo{constructor(n={},i){if(super(),this.options=Av(n),this.services={},this.logger=kn,this.modules={external:[]},sw(this),i&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,i),this;setTimeout(()=>{this.init(n,i)},0)}}init(n={},i){this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),n.defaultNS==null&&n.ns&&(me(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const l=Of();this.options={...l,...this.options,...Av(n)},this.options.interpolation={...l.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=l.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!cw(this)&&!ow()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),uw());const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?kn.init(s(this.modules.logger),this.options):kn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=iw;const v=new Ev(this.options);this.store=new xv(this.options.resources,this.options);const g=this.services;g.logger=kn,g.resourceStore=this.store,g.languageUtils=v,g.pluralResolver=new tw(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==l.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(g.formatter=s(m),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Ov(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new rw(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(x,...E)=>{this.emit(x,...E)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new ko(this.services,this.options),this.translator.on("*",(x,...E)=>{this.emit(x,...E)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,i||(i=fo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...v)=>this.store[m](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...v)=>(this.store[m](...v),this)});const p=mr(),f=()=>{const m=(v,g)=>{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),p.resolve(g),i(v,g)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),p}loadResources(n,i=fo){let l=i;const s=me(n)?n:this.language;if(typeof n=="function"&&(l=n),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const u=[],c=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&u.indexOf(m)<0&&u.push(m)})};s?c(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>c(f)),this.options.preload?.forEach?.(p=>c(p)),this.services.backendConnector.load(u,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(p)})}else l(null)}reloadResources(n,i,l){const s=mr();return typeof n=="function"&&(l=n,n=void 0),typeof i=="function"&&(l=i,i=void 0),n||(n=this.languages),i||(i=this.options.ns),l||(l=fo),this.services.backendConnector.reload(n,i,u=>{s.resolve(),l(u)}),s}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Ay.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let i=0;i<this.languages.length;i++){const l=this.languages[i];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,i){this.isLanguageChangingTo=n;const l=mr();this.emit("languageChanging",n);const s=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},u=(p,f)=>{f?this.isLanguageChangingTo===n&&(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,l.resolve((...m)=>this.t(...m)),i&&i(p,(...m)=>this.t(...m))},c=p=>{!n&&!p&&this.services.languageDetector&&(p=[]);const f=me(p)?p:p&&p[0],m=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(me(p)?[p]:p);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,v=>{u(v,m)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(n),l}getFixedT(n,i,l){const s=(u,c,...p)=>{let f;typeof c!="object"?f=this.options.overloadTranslationOptionHandler([u,c].concat(p)):f={...c},f.lng=f.lng||s.lng,f.lngs=f.lngs||s.lngs,f.ns=f.ns||s.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||l||s.keyPrefix);const m=this.options.keySeparator||".";let v;return f.keyPrefix&&Array.isArray(u)?v=u.map(g=>(typeof g=="function"&&(g=od(g,{...this.options,...c})),`${f.keyPrefix}${m}${g}`)):(typeof u=="function"&&(u=od(u,{...this.options,...c})),v=f.keyPrefix?`${f.keyPrefix}${m}${u}`:u),this.t(v,f)};return me(n)?s.lng=n:s.lngs=n,s.ns=i,s.keyPrefix=l,s}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,i={}){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 l=i.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const c=(p,f)=>{const m=this.services.backendConnector.state[`${p}|${f}`];return m===-1||m===0||m===2};if(i.precheck){const p=i.precheck(this,c);if(p!==void 0)return p}return!!(this.hasResourceBundle(l,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(l,n)&&(!s||c(u,n)))}loadNamespaces(n,i){const l=mr();return this.options.ns?(me(n)&&(n=[n]),n.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{l.resolve(),i&&i(s)}),l):(i&&i(),Promise.resolve())}loadLanguages(n,i){const l=mr();me(n)&&(n=[n]);const s=this.options.preload||[],u=n.filter(c=>s.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return u.length?(this.options.preload=s.concat(u),this.loadResources(c=>{l.resolve(),i&&i(c)}),l):(i&&i(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{const s=new Intl.Locale(n);if(s&&s.getTextInfo){const u=s.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const i=["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"],l=this.services?.languageUtils||new Ev(Of());return n.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(l.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},i){const l=new Dr(n,i);return l.createInstance=Dr.createInstance,l}cloneInstance(n={},i=fo){const l=n.forkResourceStore;l&&delete n.forkResourceStore;const s={...this.options,...n,isClone:!0},u=new Dr(s);if((n.debug!==void 0||n.prefix!==void 0)&&(u.logger=u.logger.clone(n)),["store","services","language"].forEach(p=>{u[p]=this[p]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},l){const p=Object.keys(this.store.data).reduce((f,m)=>(f[m]={...this.store.data[m]},f[m]=Object.keys(f[m]).reduce((v,g)=>(v[g]={...f[m][g]},v),f[m]),f),{});u.store=new xv(p,s),u.services.resourceStore=u.store}if(n.interpolation){const f={...Of().interpolation,...this.options.interpolation,...n.interpolation},m={...s,interpolation:f};u.services.interpolator=new Ov(m)}return u.translator=new ko(u.services,s),u.translator.on("*",(p,...f)=>{u.emit(p,...f)}),u.init(s,i),u.translator.options=s,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ht=Dr.createInstance();ht.createInstance;ht.dir;ht.init;ht.loadResources;ht.reloadResources;ht.use;ht.changeLanguage;ht.getFixedT;ht.t;ht.exists;ht.setDefaultNamespace;ht.hasLoadedNamespace;ht.loadNamespaces;ht.loadLanguages;var Rf={exports:{}},ge={};var jv;function fw(){if(jv)return ge;jv=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,A={};function C(D,F,ae){this.props=D,this.context=F,this.refs=A,this.updater=ae||E}C.prototype.isReactComponent={},C.prototype.setState=function(D,F){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,F,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function T(){}T.prototype=C.prototype;function R(D,F,ae){this.props=D,this.context=F,this.refs=A,this.updater=ae||E}var B=R.prototype=new T;B.constructor=R,O(B,C.prototype),B.isPureReactComponent=!0;var Y=Array.isArray;function z(){}var _={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function H(D,F,ae){var re=ae.ref;return{$$typeof:a,type:D,key:F,ref:re!==void 0?re:null,props:ae}}function $(D,F){return H(D.type,F,D.props)}function U(D){return typeof D=="object"&&D!==null&&D.$$typeof===a}function I(D){var F={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ae){return F[ae]})}var ee=/\/+/g;function ne(D,F){return typeof D=="object"&&D!==null&&D.key!=null?I(""+D.key):F.toString(36)}function le(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(z,z):(D.status="pending",D.then(function(F){D.status==="pending"&&(D.status="fulfilled",D.value=F)},function(F){D.status==="pending"&&(D.status="rejected",D.reason=F)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function V(D,F,ae,re,be){var Te=typeof D;(Te==="undefined"||Te==="boolean")&&(D=null);var Le=!1;if(D===null)Le=!0;else switch(Te){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(D.$$typeof){case a:case n:Le=!0;break;case v:return Le=D._init,V(Le(D._payload),F,ae,re,be)}}if(Le)return be=be(D),Le=re===""?"."+ne(D,0):re,Y(be)?(ae="",Le!=null&&(ae=Le.replace(ee,"$&/")+"/"),V(be,F,ae,"",function(xl){return xl})):be!=null&&(U(be)&&(be=$(be,ae+(be.key==null||D&&D.key===be.key?"":(""+be.key).replace(ee,"$&/")+"/")+Le)),F.push(be)),1;Le=0;var Tt=re===""?".":re+":";if(Y(D))for(var We=0;We<D.length;We++)re=D[We],Te=Tt+ne(re,We),Le+=V(re,F,ae,Te,be);else if(We=x(D),typeof We=="function")for(D=We.call(D),We=0;!(re=D.next()).done;)re=re.value,Te=Tt+ne(re,We++),Le+=V(re,F,ae,Te,be);else if(Te==="object"){if(typeof D.then=="function")return V(le(D),F,ae,re,be);throw F=String(D),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Le}function te(D,F,ae){if(D==null)return D;var re=[],be=0;return V(D,re,"","",function(Te){return F.call(ae,Te,be++)}),re}function J(D){if(D._status===-1){var F=D._result;F=F(),F.then(function(ae){(D._status===0||D._status===-1)&&(D._status=1,D._result=ae)},function(ae){(D._status===0||D._status===-1)&&(D._status=2,D._result=ae)}),D._status===-1&&(D._status=0,D._result=F)}if(D._status===1)return D._result.default;throw D._result}var se=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},de={map:te,forEach:function(D,F,ae){te(D,function(){F.apply(this,arguments)},ae)},count:function(D){var F=0;return te(D,function(){F++}),F},toArray:function(D){return te(D,function(F){return F})||[]},only:function(D){if(!U(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return ge.Activity=g,ge.Children=de,ge.Component=C,ge.Fragment=i,ge.Profiler=s,ge.PureComponent=R,ge.StrictMode=l,ge.Suspense=f,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,ge.__COMPILER_RUNTIME={__proto__:null,c:function(D){return _.H.useMemoCache(D)}},ge.cache=function(D){return function(){return D.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(D,F,ae){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var re=O({},D.props),be=D.key;if(F!=null)for(Te in F.key!==void 0&&(be=""+F.key),F)!M.call(F,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&F.ref===void 0||(re[Te]=F[Te]);var Te=arguments.length-2;if(Te===1)re.children=ae;else if(1<Te){for(var Le=Array(Te),Tt=0;Tt<Te;Tt++)Le[Tt]=arguments[Tt+2];re.children=Le}return H(D.type,be,re)},ge.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},ge.createElement=function(D,F,ae){var re,be={},Te=null;if(F!=null)for(re in F.key!==void 0&&(Te=""+F.key),F)M.call(F,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(be[re]=F[re]);var Le=arguments.length-2;if(Le===1)be.children=ae;else if(1<Le){for(var Tt=Array(Le),We=0;We<Le;We++)Tt[We]=arguments[We+2];be.children=Tt}if(D&&D.defaultProps)for(re in Le=D.defaultProps,Le)be[re]===void 0&&(be[re]=Le[re]);return H(D,Te,be)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(D){return{$$typeof:p,render:D}},ge.isValidElement=U,ge.lazy=function(D){return{$$typeof:v,_payload:{_status:-1,_result:D},_init:J}},ge.memo=function(D,F){return{$$typeof:m,type:D,compare:F===void 0?null:F}},ge.startTransition=function(D){var F=_.T,ae={};_.T=ae;try{var re=D(),be=_.S;be!==null&&be(ae,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(z,se)}catch(Te){se(Te)}finally{F!==null&&ae.types!==null&&(F.types=ae.types),_.T=F}},ge.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},ge.use=function(D){return _.H.use(D)},ge.useActionState=function(D,F,ae){return _.H.useActionState(D,F,ae)},ge.useCallback=function(D,F){return _.H.useCallback(D,F)},ge.useContext=function(D){return _.H.useContext(D)},ge.useDebugValue=function(){},ge.useDeferredValue=function(D,F){return _.H.useDeferredValue(D,F)},ge.useEffect=function(D,F){return _.H.useEffect(D,F)},ge.useEffectEvent=function(D){return _.H.useEffectEvent(D)},ge.useId=function(){return _.H.useId()},ge.useImperativeHandle=function(D,F,ae){return _.H.useImperativeHandle(D,F,ae)},ge.useInsertionEffect=function(D,F){return _.H.useInsertionEffect(D,F)},ge.useLayoutEffect=function(D,F){return _.H.useLayoutEffect(D,F)},ge.useMemo=function(D,F){return _.H.useMemo(D,F)},ge.useOptimistic=function(D,F){return _.H.useOptimistic(D,F)},ge.useReducer=function(D,F,ae){return _.H.useReducer(D,F,ae)},ge.useRef=function(D){return _.H.useRef(D)},ge.useState=function(D){return _.H.useState(D)},ge.useSyncExternalStore=function(D,F,ae){return _.H.useSyncExternalStore(D,F,ae)},ge.useTransition=function(){return _.H.useTransition()},ge.version="19.2.4",ge}var Dv;function Vr(){return Dv||(Dv=1,Rf.exports=fw()),Rf.exports}var N=Vr();const Ze=Ny(N),dw=(a,n,i,l)=>{const s=[i,{code:n,...l||{}}];if(a?.services?.logger?.forward)return a.services.logger.forward(s,"warn","react-i18next::",!0);pi(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),a?.services?.logger?.warn?a.services.logger.warn(...s):console?.warn&&console.warn(...s)},Mv={},My=(a,n,i,l)=>{pi(i)&&Mv[i]||(pi(i)&&(Mv[i]=new Date),dw(a,n,i,l))},_y=(a,n)=>()=>{if(a.isInitialized)n();else{const i=()=>{setTimeout(()=>{a.off("initialized",i)},0),n()};a.on("initialized",i)}},ud=(a,n,i)=>{a.loadNamespaces(n,_y(a,i))},_v=(a,n,i,l)=>{if(pi(i)&&(i=[i]),a.options.preload&&a.options.preload.indexOf(n)>-1)return ud(a,i,l);i.forEach(s=>{a.options.ns.indexOf(s)<0&&a.options.ns.push(s)}),a.loadLanguages(n,_y(a,l))},pw=(a,n,i={})=>!n.languages||!n.languages.length?(My(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(a,{lng:i.lng,precheck:(l,s)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!s(l.isLanguageChangingTo,a))return!1}}),pi=a=>typeof a=="string",hw=a=>typeof a=="object"&&a!==null,mw=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,gw={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vw=a=>gw[a],yw=a=>a.replace(mw,vw);let cd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:yw,transDefaultProps:void 0};const bw=(a={})=>{cd={...cd,...a}},Sw=()=>cd;let ky;const xw=a=>{ky=a},ww=()=>ky,Ew={type:"3rdParty",init(a){bw(a.options.react),xw(a)}},Tw=N.createContext();class Cw{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Af={exports:{}},jf={};var kv;function Nw(){if(kv)return jf;kv=1;var a=Vr();function n(g,S){return g===S&&(g!==0||1/g===1/S)||g!==g&&S!==S}var i=typeof Object.is=="function"?Object.is:n,l=a.useState,s=a.useEffect,u=a.useLayoutEffect,c=a.useDebugValue;function p(g,S){var x=S(),E=l({inst:{value:x,getSnapshot:S}}),O=E[0].inst,A=E[1];return u(function(){O.value=x,O.getSnapshot=S,f(O)&&A({inst:O})},[g,x,S]),s(function(){return f(O)&&A({inst:O}),g(function(){f(O)&&A({inst:O})})},[g]),c(x),x}function f(g){var S=g.getSnapshot;g=g.value;try{var x=S();return!i(g,x)}catch{return!0}}function m(g,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return jf.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,jf}var Lv;function Ow(){return Lv||(Lv=1,Af.exports=Nw()),Af.exports}var Rw=Ow();const Aw=(a,n)=>pi(n)?n:hw(n)&&pi(n.defaultValue)?n.defaultValue:Array.isArray(a)?a[a.length-1]:a,jw={t:Aw,ready:!1},Dw=()=>()=>{},Ot=(a,n={})=>{const{i18n:i}=n,{i18n:l,defaultNS:s}=N.useContext(Tw)||{},u=i||l||ww();u&&!u.reportNamespaces&&(u.reportNamespaces=new Cw),u||My(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=N.useMemo(()=>({...Sw(),...u?.options?.react,...n}),[u,n]),{useSuspense:p,keyPrefix:f}=c,m=s||u?.options?.defaultNS,v=pi(m)?[m]:m||["translation"],g=N.useMemo(()=>v,v);u?.reportNamespaces?.addUsedNamespaces?.(g);const S=N.useRef(0),x=N.useCallback(H=>{if(!u)return Dw;const{bindI18n:$,bindI18nStore:U}=c,I=()=>{S.current+=1,H()};return $&&u.on($,I),U&&u.store.on(U,I),()=>{$&&$.split(" ").forEach(ee=>u.off(ee,I)),U&&U.split(" ").forEach(ee=>u.store.off(ee,I))}},[u,c]),E=N.useRef(),O=N.useCallback(()=>{if(!u)return jw;const H=!!(u.isInitialized||u.initializedStoreOnce)&&g.every(le=>pw(le,u,c)),$=n.lng||u.language,U=S.current,I=E.current;if(I&&I.ready===H&&I.lng===$&&I.keyPrefix===f&&I.revision===U)return I;const ne={t:u.getFixedT($,c.nsMode==="fallback"?g:g[0],f),ready:H,lng:$,keyPrefix:f,revision:U};return E.current=ne,ne},[u,g,f,c,n.lng]),[A,C]=N.useState(0),{t:T,ready:R}=Rw.useSyncExternalStore(x,O,O);N.useEffect(()=>{if(u&&!R&&!p){const H=()=>C($=>$+1);n.lng?_v(u,n.lng,g,H):ud(u,g,H)}},[u,n.lng,g,R,p,A]);const B=u||{},Y=N.useRef(null),z=N.useRef(),_=H=>{const $=Object.getOwnPropertyDescriptors(H);$.__original&&delete $.__original;const U=Object.create(Object.getPrototypeOf(H),$);if(!Object.prototype.hasOwnProperty.call(U,"__original"))try{Object.defineProperty(U,"__original",{value:H,writable:!1,enumerable:!1,configurable:!1})}catch{}return U},M=N.useMemo(()=>{const H=B,$=H?.language;let U=H;H&&(Y.current&&Y.current.__original===H?z.current!==$?(U=_(H),Y.current=U,z.current=$):U=Y.current:(U=_(H),Y.current=U,z.current=$));const I=[T,U,R];return I.t=T,I.i18n=U,I.ready=R,I},[T,B,R,B.resolvedLanguage,B.language,B.languages]);if(u&&p&&!R)throw new Promise(H=>{const $=()=>H();n.lng?_v(u,n.lng,g,$):ud(u,g,$)});return M},Mw="ParoiCMS Site Generator",_w="Step {{stepNumber}}",kw="Describe the structure of your website: what types of pages it has, which sections they contain, and what sub-parts you need. The AI will generate a complete site schema for you.",Lw={heroTitle:"ParoiCMS Site Generator",heroSubtitle:"Bootstrapping tool for web integrators.",canDoHeader:"What this tool can do",slide1Title:"Define your Site Schema",slide1Description:"Tell the AI the structure you need: sections, page types, and fields.",slide1Next:"Next: Get your application",slide2Step:"Step 2",slide2Title:"Generate & Backup",slide2Description:"Once satisfied, go to the Admin Panel and do a <strong>Backup</strong> to download your app. Every backup is a complete, executable Node.js application.",slide2Next:"Next: Run it",slide3Step:"Step 3",slide3Title:"Run it locally",slide3CodeBlock:"npm i && npm run dev",slide3Description:"Your app is ready to run on your machine.",slide3Next:"Next: Your turn",slide4Title:"You're all set to go with:",slide4Feature1:"Functional Admin Panel",slide4Feature2:"Boilerplate Liquid/HTML",slide4Feature3:"Dummy Content",slide4Description:"Now, work your magic! It's up to you to build the design.",cantDoHeader:"What this tool won't do",cantDoTitle:"No Web Design",cantDoDescription:"This tool does NOT create a pretty website. It bootstraps the code so you can build the design yourself.",sessionWarning:"Your session exists in this tab of your browser, it will be lost when you close the tab."},zw='<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (or <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">on GitLab</a>) <span class="SgScreen-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contact me</a>',Bw="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p>",$w="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",Uw="Add a new text field to the page…",Hw="Modify the Site Schema",Vw="Create a Site Schema",Gw="Generate the website",qw="Generate site with sample data (recommended)",Yw="Generate an empty site",Pw="Open the admin-ui",Xw="Open the site",Iw="Generated Schema",Kw="Tree View",Fw="Site Schema",Qw="Node Types",Zw="Labels",Jw="Select language",Ww="Explanations",eE="Current Activity",tE="An error occurred: {{ message }}",nE="An error occurred",aE="Start Again",iE="Step {{stepNumber}}: {{kind}}",lE="This step is in progress…",rE="This step failed.",sE="This step had no effect.",oE="No session data available",uE="Step not found",cE="Welcome to ParoiCMS Site Generator",fE="Close and start again",dE="Reset Schema",pE="unknown error",hE="Create New Site",mE="Generating your site…",gE="The site is generated",vE="Email:",yE="Password:",bE="Start",SE="You are about to generate your website.",xE="Cancel",wE="Confirm",EE="Apply Changes",TE="Quick access to your admin space",CE="Site URL:",NE="Admin URL:",OE="Copy all information to clipboard",RE="Copied!",AE="Initial Schema Creation",jE="Schema Update",DE="Site Generation",ME={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},_E="Login Email",kE="Login Password",LE="Generated Site",zE="Quick Login",BE="Quick Login URL",$E="Your session has expired. Please refresh the page to start a new session.",UE="Failed to process your prompt. Please try again.",HE="Failed to generate the site. Please try again.",VE='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',GE="Extend your session",qE="Failed to refresh your session. Please try again.",YE="Error connecting to server. Please check your connection and try again.",PE="Tip: If you want to start over, open the generator in a new tab and close this one.",XE={title:Mw,stepNumber:_w,new:"New",welcomeDescription:kw,welcome:Lw,footerLinks:zw,startInstruction:Bw,createPromptPlaceholder:$w,updatePromptPlaceholder:Uw,modifySchema:Hw,createSchema:Vw,generateTheWebsite:Gw,generateSiteWithData:qw,generateEmptySite:Yw,administration:Pw,viewSite:Xw,generatedSchema:Iw,treeView:Kw,siteSchema:Fw,nodeTypes:Qw,labels:Zw,languageSelector:Jw,explanation:Ww,currentActivity:eE,errorOccurred:tE,unknownErrorOccurred:nE,startAgain:aE,stepTitle:iE,stepPending:lE,stepFailed:rE,stepNoEffect:sE,noSessionData:oE,stepNotFound:uE,welcomeTitle:cE,reset:fE,resetSchema:dE,unknownError:pE,createNewSite:hE,generatingSite:mE,siteGenerated:gE,email:vE,password:yE,start:bE,aboutToGenerateWebsite:SE,cancel:xE,confirm:wE,applyChanges:EE,openAdminUI:TE,siteUrl:CE,adminUrl:NE,copyToClipboard:OE,copied:RE,initialSchema:AE,updateSchema:jE,generateSite:DE,activity:ME,loginEmail:_E,loginPassword:kE,generatedSite:LE,quickLogin:zE,quickLoginUrl:BE,sessionExpired:$E,promptSubmissionFailed:UE,generationFailed:HE,footerText:VE,extendYourSession:GE,sessionRenewalFailed:qE,errorConnectingToServer:YE,newTabRestartMessage:PE},IE="ParoiCMS - Générateur de Site",KE="Étape {{stepNumber}}",FE="Décrivez la structure de votre site web : quels types de pages, quelles sections, et quelles sous-parties vous souhaitez. L'IA générera un schéma de site complet pour vous.",QE={heroTitle:"Générateur de site ParoiCMS",heroSubtitle:"Outil d'amorçage pour les intégrateurs web.",canDoHeader:"Ce que cet outil peut faire",slide1Title:"Définir votre schéma de site",slide1Description:"Décrivez à l'IA la structure dont vous avez besoin : sections, types de pages et champs.",slide1Next:"Ensuite : Obtenez votre application",slide2Step:"Étape 2",slide2Title:"Générer & Sauvegarder",slide2Description:"Une fois satisfait, allez dans le panneau d'administration et faites une <strong>Sauvegarde</strong> pour télécharger votre app. Chaque sauvegarde est une application Node.js complète et exécutable.",slide2Next:"Ensuite : Exécutez-la",slide3Step:"Étape 3",slide3Title:"Exécutez-la localement",slide3CodeBlock:"npm i && npm run dev",slide3Description:"Votre application est prête à fonctionner sur votre machine.",slide3Next:"Ensuite : À vous de jouer",slide4Title:"Vous êtes prêt à démarrer avec :",slide4Feature1:"Panneau d'administration fonctionnel",slide4Feature2:"Boilerplate Liquid/HTML",slide4Feature3:"Contenu factice",slide4Description:"Maintenant, faites votre magie ! C'est à vous de construire le design.",cantDoHeader:"Ce que cet outil ne fera pas",cantDoTitle:"Pas de Web Design",cantDoDescription:"Cet outil ne crée PAS un joli site web. Il amorce le code afin que vous puissiez construire le design vous-même.",sessionWarning:"Votre session existe dans cet onglet de votre navigateur, elle sera perdue lorsque vous fermerez l'onglet."},ZE='<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (ou <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">sur GitLab</a>) <span class="SgScreen-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contactez-moi</a>',JE="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p>",WE="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",eT="Ajoute un nouveau champ texte à la page…",tT="Modifier le schéma du site",nT="Créer un schéma de site",aT="Générer le site web",iT="Générer le site avec des données d'exemple (recommandé)",lT="Générer un site vide",rT="Ouvrir l'espace d'administration du site",sT="Ouvrir le site",oT="Schéma généré",uT="Arborescence",cT="Schéma du site",fT="Types de nœuds",dT="Libellés",pT="Sélectionner la langue",hT="Explications",mT="Activité en cours",gT="Une erreur est survenue : {{ message }}",vT="Une erreur est survenue",yT="Recommencer",bT="Étape {{stepNumber}} : {{kind}}",ST="Cette étape est en cours…",xT="Cette étape a échoué.",wT="Cette étape n'a eu aucun effet.",ET="Données de session non disponibles",TT="Étape introuvable",CT="Bienvenue sur le générateur de site ParoiCMS",NT="Fermer et réinitialiser",OT="Réinitialiser le schéma",RT="erreur inconnue",AT="Créer un nouveau site",jT="Génération de votre site…",DT="Le site est généré",MT="Email :",_T="Mot de passe :",kT="Commencer",LT="Vous êtes sur le point de générer votre site web.",zT="Annuler",BT="Confirmer",$T="Appliquer les modifications",UT="Connexion rapide à votre espace d'administration",HT="URL du site :",VT="URL d'admin :",GT="Copier toutes les informations dans le presse-papier",qT="Copié !",YT="Création du schéma initial",PT="Mise à jour du schéma",XT="Génération du site",IT={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},KT="Email de connexion",FT="Mot de passe",QT="Site généré",ZT="Connexion rapide",JT="URL de connexion rapide",WT="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",eC="Échec du traitement de votre demande. Veuillez réessayer.",tC="Échec de la génération du site. Veuillez réessayer.",nC='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',aC="Prolonger votre session",iC="Échec du renouvellement de votre session. Veuillez réessayer.",lC="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",rC="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",sC={title:IE,stepNumber:KE,new:"Nouveau",welcomeDescription:FE,welcome:QE,footerLinks:ZE,startInstruction:JE,createPromptPlaceholder:WE,updatePromptPlaceholder:eT,modifySchema:tT,createSchema:nT,generateTheWebsite:aT,generateSiteWithData:iT,generateEmptySite:lT,administration:rT,viewSite:sT,generatedSchema:oT,treeView:uT,siteSchema:cT,nodeTypes:fT,labels:dT,languageSelector:pT,explanation:hT,currentActivity:mT,errorOccurred:gT,unknownErrorOccurred:vT,startAgain:yT,stepTitle:bT,stepPending:ST,stepFailed:xT,stepNoEffect:wT,noSessionData:ET,stepNotFound:TT,welcomeTitle:CT,reset:NT,resetSchema:OT,unknownError:RT,createNewSite:AT,generatingSite:jT,siteGenerated:DT,email:MT,password:_T,start:kT,aboutToGenerateWebsite:LT,cancel:zT,confirm:BT,applyChanges:$T,openAdminUI:UT,siteUrl:HT,adminUrl:VT,copyToClipboard:GT,copied:qT,initialSchema:YT,updateSchema:PT,generateSite:XT,activity:IT,loginEmail:KT,loginPassword:FT,generatedSite:QT,quickLogin:ZT,quickLoginUrl:JT,sessionExpired:WT,promptSubmissionFailed:eC,generationFailed:tC,footerText:nC,extendYourSession:aC,sessionRenewalFailed:iC,errorConnectingToServer:lC,newTabRestartMessage:rC},oC=`<p>Congratulations! Your website has been generated. Now you can authenticate on the admin-ui (using the <strong>local account</strong>) and play with it.</p>
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=e=>typeof e==`string`,p=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},m=e=>e==null?``:String(e),h=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},g=/###/g,_=e=>e&&e.includes(`###`)?e.replace(g,`.`):e,v=e=>!e||f(e),y=(e,t,n)=>{let r=f(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(v(e))return{};let t=_(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return v(e)?{}:{obj:e,k:_(r[i])}},b=(e,t,n)=>{let{obj:r,k:i}=y(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=y(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=y(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},x=(e,t,n,r)=>{let{obj:i,k:a}=y(e,t,Object);i[a]=i[a]||[],i[a].push(n)},S=(e,t)=>{let{obj:n,k:r}=y(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},C=(e,t,n)=>{let r=S(e,n);return r===void 0?S(t,n):r},w=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?f(e[r])||e[r]instanceof String||f(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):w(e[r],t[r],n):e[r]=t[r]);return e},T=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),E={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},D=e=>f(e)?e.replace(/[&<>"'\/]/g,e=>E[e]):e,ee=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let 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}},te=[` `,`,`,`?`,`!`,`;`],ne=new ee(20),re=(e,t,n)=>{t||=``,n||=``;let r=te.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=ne.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},ie=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},O=e=>e?.replace(/_/g,`-`),k={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ae=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||k,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(f(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},oe=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},se=class extends oe{constructor(e,t={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.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):f(n)&&i?o.push(...n.split(i)):o.push(n)));let s=S(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!f(n)?s:ie(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),b(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(f(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=S(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?w(s,n,i):s={...s,...n},b(this.data,o,s),a.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||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},ce={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},le=Symbol(`i18next/PATH_KEY`);function ue(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===le?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function de(e,t){let{[le]:n}=e(ue()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var fe=e=>!f(e)&&typeof e!=`boolean`&&typeof e!=`number`,pe=class e extends oe{constructor(e,t={}){super(),h([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ae.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=fe(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!re(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:f(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:f(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=de(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?de(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return p?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let m=this.resolve(t,i),h=m?.res,g=m?.usedKey||s,_=m?.exactUsedKey||s,v=[`[object Number]`,`[object Function]`,`[object RegExp]`],y=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=i.count!==void 0&&!f(i.count),S=e.hasDefaultValue(i),C=x?this.pluralResolver.getSuffix(d,i.count,i):``,w=i.ordinal&&x?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,T=x&&!i.ordinal&&i.count===0,E=T&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${C}`]||i[`defaultValue${w}`]||i.defaultValue,D=h;b&&!h&&S&&(D=E);let ee=fe(D),te=Object.prototype.toString.apply(D);if(b&&D&&ee&&!v.includes(te)&&!(f(y)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(m.res=e,m.usedParams=this.getUsedParamsDetails(i),m):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?_:g;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;S&&!h?t[e]=this.translate(r,{...i,defaultValue:fe(E)?E[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}h=t}}else if(b&&f(y)&&Array.isArray(h))h=h.join(y),h&&=this.extendTranslation(h,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(h)&&S&&(e=!0,h=E),this.isValidLookup(h)||(n=!0,h=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:h,c=S&&E!==h&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?E:h),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.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 e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=S&&n!==h?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);T&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}h=this.extendTranslation(h,t,i,m,r),n&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?h:void 0,i))}return a?(m.res=h,m.usedParams=this.getUsedParamsDetails(i),m):h}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=f(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!f(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=f(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ce.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return f(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?de(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!f(t.count),d=u&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(f(t.context)||typeof t.context==`number`)&&t.context!==``,m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${m[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${m[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(`, `)}" won't get resolved as namespace "${o}" 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(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),p){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!f(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},me=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ae.create(`languageUtils`)}getScriptPartFromCode(e){if(e=O(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=O(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(f(e)&&e.includes(`-`)){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.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),f(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return f(e)&&(e.includes(`-`)||e.includes(`_`))?(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))):f(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},he={zero:0,one:1,two:2,few:3,many:4,other:5},ge={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},_e=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ae.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=O(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),ge;if(!e.match(/-|_/))return ge;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>he[e]-he[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},ve=(e,t,n,r=`.`,i=!0)=>{let a=C(e,t,n);return!a&&i&&f(n)&&(a=ie(e,n,r),a===void 0&&(a=ie(t,n,r))),a},ye=e=>e.replace(/\$/g,`$$$$`),be=class{constructor(e={}){this.logger=ae.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?D:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?T(i):a||`{{`,this.suffix=o?T(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?T(d):f||T(`$t(`),this.nestingSuffix=p?T(p):m||T(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`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,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=ve(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(ve(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ye(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ye(this.escape(e)):ye(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=f(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !f(a)&&!this.useRawValueToEscape&&(a=m(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${T(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!f(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!f(i))return i;f(i)||(i=m(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},xe=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Se=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(O(r),i),t[o]=s),s(n)}},Ce=e=>(t,n,r)=>e(O(n),r)(t),we=class{constructor(e={}){this.logger=ae.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Se:Ce;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Se(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=xe(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Te=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Ee=class extends oe{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ae.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{x(n.loaded,[i],a),Te(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();f(e)&&(e=this.languageUtils.toResolveHierarchy(e)),f(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.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(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},De=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),f(e[1])&&(t.defaultValue=e[1]),f(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Oe=e=>(f(e.ns)&&(e.ns=[e.ns]),f(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),f(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),ke=()=>{},Ae=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},je=class e extends oe{constructor(e={},t){if(super(),this.options=Oe(e),this.services={},this.logger=ae,this.modules={external:[]},Ae(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(f(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=De();this.options={...n,...this.options,...Oe(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ae.init(r(this.modules.logger),this.options):ae.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:we;let t=new me(this.options);this.store=new se(this.options.resources,this.options);let n=this.services;n.logger=ae,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new _e(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new be(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Ee(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new pe(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=ke,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[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(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=p(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=ke){let n=t,r=f(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=p();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=ke,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw 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`&&ce.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`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=p();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=f(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(f(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=de(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=de(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=de(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return f(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=p();return this.options.ns?(f(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=p();f(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let 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`.split(`.`),n=this.services?.languageUtils||new me(De());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=ke){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new se(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...De().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new be(n)}return a.translator=new pe(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();je.createInstance,je.dir,je.init,je.loadResources,je.reloadResources,je.use,je.changeLanguage,je.getFixedT,je.t,je.exists,je.setDefaultNamespace,je.hasLoadedNamespace,je.loadNamespaces,je.loadLanguages;var Me=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ne=/\/+/g;function re(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function ie(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function O(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,O(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+re(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ne,`$&/`)+`/`),O(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ne,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+re(a,u),c+=O(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+re(a,u++),c+=O(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return O(ie(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return O(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oe=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},se={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),Ne=s(((e,t)=>{t.exports=Me()})),Pe=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Ve(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Fe={},Ie=(e,t,n,r)=>{Ve(n)&&Fe[n]||(Ve(n)&&(Fe[n]=new Date),Pe(e,t,n,r))},Le=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Re=(e,t,n)=>{e.loadNamespaces(t,Le(e,n))},ze=(e,t,n,r)=>{if(Ve(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Re(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Le(e,r))},Be=(e,t,n={})=>!t.languages||!t.languages.length?(Ie(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Ve=e=>typeof e==`string`,He=e=>typeof e==`object`&&!!e,Ue=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,We={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Ge=e=>We[e],Ke={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Ue,Ge),transDefaultProps:void 0},qe=(e={})=>{Ke={...Ke,...e}},Je=()=>Ke,Ye,Xe=e=>{Ye=e},Ze=()=>Ye,Qe={type:`3rdParty`,init(e){qe(e.options.react),Xe(e)}},A=u(Ne()),$e=(0,A.createContext)(),et=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},tt=s((e=>{var t=Ne();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),nt=s(((e,t)=>{t.exports=tt()}))(),rt={t:(e,t)=>{if(Ve(t))return t;if(He(t)&&Ve(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},it=()=>()=>{},at=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,A.useContext)($e)||{},a=n||r||Ze();a&&!a.reportNamespaces&&(a.reportNamespaces=new et),a||Ie(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let o=(0,A.useMemo)(()=>({...Je(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=Ve(l)?[l]:l||[`translation`],d=(0,A.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,A.useRef)(0),p=(0,A.useCallback)(e=>{if(!a)return it;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,A.useRef)(),h=(0,A.useCallback)(()=>{if(!a)return rt;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>Be(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,A.useState)(0),{t:v,ready:y}=(0,nt.useSyncExternalStore)(p,h,h);(0,A.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?ze(a,t.lng,d,e):Re(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,A.useRef)(null),S=(0,A.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,`__original`,{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,A.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>(Ie(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y)throw new Promise(e=>{let n=()=>e();t.lng?ze(a,t.lng,d,n):Re(a,d,n)});return w},ot={title:`ParoiCMS Site Generator`,stepNumber:`Step {{stepNumber}}`,new:`New`,welcomeDescription:`Describe the structure of your website: what types of pages it has, which sections they contain, and what sub-parts you need. The AI will generate a complete site schema for you.`,welcome:{heroTitle:`ParoiCMS Site Generator`,heroSubtitle:`Bootstrapping tool for web integrators.`,canDoHeader:`What this tool can do`,slide1Title:`Define your Site Schema`,slide1Description:`Tell the AI the structure you need: sections, page types, and fields.`,slide1Next:`Next: Get your application`,slide2Step:`Step 2`,slide2Title:`Generate & Backup`,slide2Description:`Once satisfied, go to the Admin Panel and do a <strong>Backup</strong> to download your app. Every backup is a complete, executable Node.js application.`,slide2Next:`Next: Run it`,slide3Step:`Step 3`,slide3Title:`Run it locally`,slide3CodeBlock:`npm i && npm run dev`,slide3Description:`Your app is ready to run on your machine.`,slide3Next:`Next: Your turn`,slide4Title:`You're all set to go with:`,slide4Feature1:`Functional Admin Panel`,slide4Feature2:`Boilerplate Liquid/HTML`,slide4Feature3:`Dummy Content`,slide4Description:`Now, work your magic! It's up to you to build the design.`,cantDoHeader:`What this tool won't do`,cantDoTitle:`No Web Design`,cantDoDescription:`This tool does NOT create a pretty website. It bootstraps the code so you can build the design yourself.`,sessionWarning:`Your session exists in this tab of your browser, it will be lost when you close the tab.`},footerLinks:`<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (or <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">on GitLab</a>) <span class="SgScreen-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contact me</a>`,startInstruction:`<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p>`,createPromptPlaceholder:`Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.`,updatePromptPlaceholder:`Add a new text field to the page…`,modifySchema:`Modify the Site Schema`,createSchema:`Create a Site Schema`,generateTheWebsite:`Generate the website`,generateSiteWithData:`Generate site with sample data (recommended)`,generateEmptySite:`Generate an empty site`,administration:`Open the admin-ui`,viewSite:`Open the site`,generatedSchema:`Generated Schema`,treeView:`Tree View`,siteSchema:`Site Schema`,nodeTypes:`Node Types`,labels:`Labels`,languageSelector:`Select language`,explanation:`Explanations`,currentActivity:`Current Activity`,errorOccurred:`An error occurred: {{ message }}`,unknownErrorOccurred:`An error occurred`,startAgain:`Start Again`,stepTitle:`Step {{stepNumber}}: {{kind}}`,stepPending:`This step is in progress…`,stepFailed:`This step failed.`,stepNoEffect:`This step had no effect.`,noSessionData:`No session data available`,stepNotFound:`Step not found`,welcomeTitle:`Welcome to ParoiCMS Site Generator`,reset:`Close and start again`,resetSchema:`Reset Schema`,unknownError:`unknown error`,createNewSite:`Create New Site`,generatingSite:`Generating your site…`,siteGenerated:`The site is generated`,email:`Email:`,password:`Password:`,start:`Start`,aboutToGenerateWebsite:`You are about to generate your website.`,cancel:`Cancel`,confirm:`Confirm`,applyChanges:`Apply Changes`,openAdminUI:`Quick access to your admin space`,siteUrl:`Site URL:`,adminUrl:`Admin URL:`,copyToClipboard:`Copy all information to clipboard`,copied:`Copied!`,initialSchema:`Initial Schema Creation`,updateSchema:`Schema Update`,generateSite:`Site Generation`,activity:{initial1:`Analyzing your request for site structure…`,initial2:`Choosing from predefined fields…`,updating1:`Analyzing your update request…`,updating2:`Updating schema structure with changes…`,generatingSite:`Building your website…`,generatingContent:`Creating sample content for your site…`},loginEmail:`Login Email`,loginPassword:`Login Password`,generatedSite:`Generated Site`,quickLogin:`Quick Login`,quickLoginUrl:`Quick Login URL`,sessionExpired:`Your session has expired. Please refresh the page to start a new session.`,promptSubmissionFailed:`Failed to process your prompt. Please try again.`,generationFailed:`Failed to generate the site. Please try again.`,footerText:`The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.`,extendYourSession:`Extend your session`,sessionRenewalFailed:`Failed to refresh your session. Please try again.`,errorConnectingToServer:`Error connecting to server. Please check your connection and try again.`,newTabRestartMessage:`Tip: If you want to start over, open the generator in a new tab and close this one.`},st={title:`ParoiCMS - Générateur de Site`,stepNumber:`Étape {{stepNumber}}`,new:`Nouveau`,welcomeDescription:`Décrivez la structure de votre site web : quels types de pages, quelles sections, et quelles sous-parties vous souhaitez. L'IA générera un schéma de site complet pour vous.`,welcome:{heroTitle:`Générateur de site ParoiCMS`,heroSubtitle:`Outil d'amorçage pour les intégrateurs web.`,canDoHeader:`Ce que cet outil peut faire`,slide1Title:`Définir votre schéma de site`,slide1Description:`Décrivez à l'IA la structure dont vous avez besoin : sections, types de pages et champs.`,slide1Next:`Ensuite : Obtenez votre application`,slide2Step:`Étape 2`,slide2Title:`Générer & Sauvegarder`,slide2Description:`Une fois satisfait, allez dans le panneau d'administration et faites une <strong>Sauvegarde</strong> pour télécharger votre app. Chaque sauvegarde est une application Node.js complète et exécutable.`,slide2Next:`Ensuite : Exécutez-la`,slide3Step:`Étape 3`,slide3Title:`Exécutez-la localement`,slide3CodeBlock:`npm i && npm run dev`,slide3Description:`Votre application est prête à fonctionner sur votre machine.`,slide3Next:`Ensuite : À vous de jouer`,slide4Title:`Vous êtes prêt à démarrer avec :`,slide4Feature1:`Panneau d'administration fonctionnel`,slide4Feature2:`Boilerplate Liquid/HTML`,slide4Feature3:`Contenu factice`,slide4Description:`Maintenant, faites votre magie ! C'est à vous de construire le design.`,cantDoHeader:`Ce que cet outil ne fera pas`,cantDoTitle:`Pas de Web Design`,cantDoDescription:`Cet outil ne crée PAS un joli site web. Il amorce le code afin que vous puissiez construire le design vous-même.`,sessionWarning:`Votre session existe dans cet onglet de votre navigateur, elle sera perdue lorsque vous fermerez l'onglet.`},footerLinks:`<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (ou <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">sur GitLab</a>) <span class="SgScreen-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contactez-moi</a>`,startInstruction:`<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p>`,createPromptPlaceholder:`Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.`,updatePromptPlaceholder:`Ajoute un nouveau champ texte à la page…`,modifySchema:`Modifier le schéma du site`,createSchema:`Créer un schéma de site`,generateTheWebsite:`Générer le site web`,generateSiteWithData:`Générer le site avec des données d'exemple (recommandé)`,generateEmptySite:`Générer un site vide`,administration:`Ouvrir l'espace d'administration du site`,viewSite:`Ouvrir le site`,generatedSchema:`Schéma généré`,treeView:`Arborescence`,siteSchema:`Schéma du site`,nodeTypes:`Types de nœuds`,labels:`Libellés`,languageSelector:`Sélectionner la langue`,explanation:`Explications`,currentActivity:`Activité en cours`,errorOccurred:`Une erreur est survenue : {{ message }}`,unknownErrorOccurred:`Une erreur est survenue`,startAgain:`Recommencer`,stepTitle:`Étape {{stepNumber}} : {{kind}}`,stepPending:`Cette étape est en cours…`,stepFailed:`Cette étape a échoué.`,stepNoEffect:`Cette étape n'a eu aucun effet.`,noSessionData:`Données de session non disponibles`,stepNotFound:`Étape introuvable`,welcomeTitle:`Bienvenue sur le générateur de site ParoiCMS`,reset:`Fermer et réinitialiser`,resetSchema:`Réinitialiser le schéma`,unknownError:`erreur inconnue`,createNewSite:`Créer un nouveau site`,generatingSite:`Génération de votre site…`,siteGenerated:`Le site est généré`,email:`Email :`,password:`Mot de passe :`,start:`Commencer`,aboutToGenerateWebsite:`Vous êtes sur le point de générer votre site web.`,cancel:`Annuler`,confirm:`Confirmer`,applyChanges:`Appliquer les modifications`,openAdminUI:`Connexion rapide à votre espace d'administration`,siteUrl:`URL du site :`,adminUrl:`URL d'admin :`,copyToClipboard:`Copier toutes les informations dans le presse-papier`,copied:`Copié !`,initialSchema:`Création du schéma initial`,updateSchema:`Mise à jour du schéma`,generateSite:`Génération du site`,activity:{initial1:`Analyse de votre demande pour la structure du site…`,initial2:`Choix parmi les champs prédéfinis…`,updating1:`Analyse de votre demande de mise à jour…`,updating2:`Mise à jour de la structure du schéma…`,generatingSite:`Construction de votre site web…`,generatingContent:`Création de contenu exemple pour votre site…`},loginEmail:`Email de connexion`,loginPassword:`Mot de passe`,generatedSite:`Site généré`,quickLogin:`Connexion rapide`,quickLoginUrl:`URL de connexion rapide`,sessionExpired:`Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.`,promptSubmissionFailed:`Échec du traitement de votre demande. Veuillez réessayer.`,generationFailed:`Échec de la génération du site. Veuillez réessayer.`,footerText:`Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.`,extendYourSession:`Prolonger votre session`,sessionRenewalFailed:`Échec du renouvellement de votre session. Veuillez réessayer.`,errorConnectingToServer:`Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.`,newTabRestartMessage:`Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.`},ct=`<p>Congratulations! Your website has been generated. Now you can authenticate on the admin-ui (using the <strong>local account</strong>) and play with it.</p>
2
2
  <p>Notice that it will be deleted in 48 hours. However, if you want to keep it, then <strong>make a backup</strong>. <em>Each backup is a zip file that contains a full Node.js project, ready to be installed and executed in a local environment.</em></p>
3
3
  <p>An unattractive theme has been generated. Its purpose is to demonstrate how to write templates for your data structure.</p>
4
- <p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,uC=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le admin-ui (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
4
+ <p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,lt=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le admin-ui (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
5
5
  <p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, alors <strong>faites une sauvegarde</strong>. <em>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</em></p>
6
6
  <p>Un thème tout moche a été généré. Son but est de montrer comment écrire des templates pour votre structure de données.</p>
7
- <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,cC={en:{translation:{...XE,userManual:oC}},fr:{translation:{...sC,userManual:uC}}};ht.use(Ew).init({resources:cC,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});function Ly(a){var n,i,l="";if(typeof a=="string"||typeof a=="number")l+=a;else if(typeof a=="object")if(Array.isArray(a)){var s=a.length;for(n=0;n<s;n++)a[n]&&(i=Ly(a[n]))&&(l&&(l+=" "),l+=i)}else for(i in a)a[i]&&(l&&(l+=" "),l+=i);return l}function Nn(){for(var a,n,i=0,l="",s=arguments.length;i<s;i++)(a=arguments[i])&&(n=Ly(a))&&(l&&(l+=" "),l+=n);return l}function fC({checked:a,onChange:n,label:i,inputLabel:l,className:s,...u}){const c=f=>{n?.(f.target.checked,f)},p=l?b.jsxs("label",{className:Nn("PaCheckboxField",s),children:[b.jsx("input",{className:"PaCheckboxInput",type:"checkbox",checked:a,onChange:c,...u}),b.jsx("span",{className:"PaCheckboxField-label",children:l})]}):b.jsx("input",{className:Nn("PaCheckboxInput",s),type:"checkbox",checked:a,onChange:c,...u});return b.jsx(b.Fragment,{children:i?b.jsxs("label",{className:Nn("PaField",s),children:[b.jsx("span",{className:"PaField-label",children:i}),p]}):p})}function dC(){const a=N.useRef(null),n=N.useRef(null),i=l=>{n.current=l.target.selectionStart};return N.useEffect(()=>{const l=a.current;if(!l)return;const s=()=>{const u=n.current;u!==null&&(n.current=null,queueMicrotask(()=>{l.setSelectionRange(u,u)}))};return l.addEventListener("focus",s),()=>l.removeEventListener("focus",s)},[]),{inputRef:a,saveCursorPos:i}}const zy=(...a)=>a.filter((n,i,l)=>!!n&&n.trim()!==""&&l.indexOf(n)===i).join(" ").trim();const pC=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hC=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,l)=>l?l.toUpperCase():i.toLowerCase());const zv=a=>{const n=hC(a);return n.charAt(0).toUpperCase()+n.slice(1)};var mC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const gC=a=>{for(const n in a)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const vC=N.forwardRef(({color:a="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:s="",children:u,iconNode:c,...p},f)=>N.createElement("svg",{ref:f,...mC,width:n,height:n,stroke:a,strokeWidth:l?Number(i)*24/Number(n):i,className:zy("lucide",s),...!u&&!gC(p)&&{"aria-hidden":"true"},...p},[...c.map(([m,v])=>N.createElement(m,v)),...Array.isArray(u)?u:[u]]));const Od=(a,n)=>{const i=N.forwardRef(({className:l,...s},u)=>N.createElement(vC,{ref:u,iconNode:n,className:zy(`lucide-${pC(zv(a))}`,`lucide-${a}`,l),...s}));return i.displayName=zv(a),i};const yC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],bC=Od("check",yC);const SC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xC=Od("loader-circle",SC);const wC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],By=Od("x",wC);function EC({className:a,inputClassName:n,label:i,error:l,value:s,onChange:u,ref:c,...p}){const{inputRef:f,saveCursorPos:m}=dC(),v=S=>{m(S),u?.(S.target.value,S)},g=b.jsx("textarea",{ref:S=>{f.current=S,typeof c=="function"?c(S):c&&(c.current=S)},className:Nn("PaTextarea",l&&"error",n,!i&&a),value:s,onChange:v,...p});return b.jsxs(b.Fragment,{children:[i?b.jsxs("label",{className:Nn("PaField",l&&"error",a),children:[b.jsx("span",{className:"PaField-label",children:i}),g]}):g,l&&b.jsx("span",{className:"PaFieldError",children:l})]})}const $y=N.createContext(void 0),Df={autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3,logger:{error:console.error}};function TC({config:a,children:n}){return b.jsx($y.Provider,{value:a,children:n})}function Rd(){const a=N.useContext($y);return{autoDismissAlertDurationMs:a?.autoDismissAlertDurationMs??Df.autoDismissAlertDurationMs,autoDismissInsideFeedbackDurationMs:a?.autoDismissInsideFeedbackDurationMs??Df.autoDismissInsideFeedbackDurationMs,logger:a?.logger??Df.logger}}function ra(a){const{children:n,className:i,disabled:l,outlined:s,icon:u,severity:c="primary",ref:p,...f}=a,{autoDismissInsideFeedbackDurationMs:m}=Rd(),[v,g]=N.useState(!1),[S,x]=N.useState(!1),E=N.useRef(l);N.useEffect(()=>{E.current&&!l&&S&&x(!1),E.current=l},[l,S]);const O=Nn("PaBtn",c,s&&"outlined",l&&"disabled",S&&"feedback",i),A=N.useCallback(async _=>{if(a.as==="async"){g(!0),x(!1);try{await a.onClick(_),a.insideFeedback&&(x(!0),a.insideFeedback.autoDismiss&&setTimeout(()=>x(!1),m))}catch(M){a.onError?.(M)}finally{g(!1)}}},[a.as,...a.as==="async"?[a.onClick,!!a.insideFeedback,a.insideFeedback?.autoDismiss,a.onError,m]:[]]),C=N.useCallback(_=>{a.as&&a.as!=="button"||(a.onClick&&a.onClick(_),a.insideFeedback&&(x(!0),a.insideFeedback.autoDismiss&&setTimeout(()=>x(!1),m)))},[a.as,a.onClick,...!a.as||a.as==="button"?[!!a.insideFeedback,a.insideFeedback?.autoDismiss,m]:[]]);if(a.as==="a"){const{as:_,...M}=f;return b.jsxs("a",{ref:p,className:O,...M,children:[u&&b.jsx("span",{className:"PaBtn-icon",children:u}),n]})}const{as:T,onClick:R,type:B="button",insideFeedback:Y,...z}=f;return b.jsx("button",{ref:p,className:O,disabled:l||v,onClick:T==="async"?A:C,type:B,...z,children:v?b.jsxs(b.Fragment,{children:[b.jsx(xC,{size:16,className:"PaBtn-spinner"}),n]}):S&&Y?b.jsxs(b.Fragment,{children:[b.jsx(bC,{size:16,className:"PaBtn-feedbackIcon"}),Y.label]}):b.jsxs(b.Fragment,{children:[u&&b.jsx("span",{className:"PaBtn-icon",children:u}),n]})})}function Zo({children:a,severity:n="info",title:i,className:l,onClose:s}){return b.jsxs("div",{className:Nn("PaAlert",n,s&&"dismissible",l),children:[s&&b.jsx("button",{type:"button",className:"PaAlert-closeBtn",onClick:s,"aria-label":"Close",children:b.jsx(By,{size:16})}),i&&b.jsx("div",{className:"PaAlert-title",children:i}),b.jsx("div",{className:"PaAlert-content",children:a})]})}function Ad({size:a="medium"}){return b.jsx("div",{className:Nn("PaSpinner",a)})}const CC=typeof HTMLElement<"u"&&"showPopover"in HTMLElement.prototype;CC||console?.error("PopupMenu: Popover API is not supported in this browser.");const Uy=N.createContext(void 0);Uy.Provider;function Hy(a,n){const i=N.useContext(Uy),l=N.useRef(void 0);N.useEffect(()=>{let s,u;l.current?u=l.current.then(c):u=c(),l.current=u;function c(){return a().then(p=>(s=p??(()=>{}),p),i?p=>i.error(p):void 0)}return()=>{if(s){const p=s();i&&p?.catch(f=>i.error(f))}else{const p=u.then(f=>f?.());i&&p.catch(f=>i.error(f))}}},n)}function NC({children:a,value:n,onChange:i,variant:l="default",className:s}){const u=[];return N.Children.forEach(a,c=>{N.isValidElement(c)&&c.props&&u.push(c.props)}),b.jsx("div",{className:Nn("PaTabs",l,s),role:"tablist",children:u.map(c=>b.jsxs("button",{type:"button",className:Nn("PaTab",n===c.value&&"active",c.className),onClick:()=>!c.disabled&&i(c.value),disabled:c.disabled,role:"tab","aria-selected":n===c.value,children:[c.icon&&b.jsx("span",{className:"PaTab-icon",children:c.icon}),c.label]},c.value))})}function Mf(a){return null}function OC({visible:a,onHide:n,header:i,footer:l,children:s,className:u,closable:c=!0,size:p="md"}){const f=N.useRef(null);N.useEffect(()=>{const v=f.current;v&&(a?v.open||v.showModal():v.open&&v.close())},[a]),N.useEffect(()=>{const v=f.current;if(!v)return;const g=S=>{S.preventDefault(),c&&n()};return v.addEventListener("cancel",g),()=>v.removeEventListener("cancel",g)},[c,n]),N.useEffect(()=>(a?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[a]);const m=p==="innerContent"?void 0:p==="sm"?"sizeSm":p==="lg"?"sizeLg":"sizeMd";return b.jsxs("dialog",{ref:f,className:Nn("PaDialog",m,u),children:[(i||c)&&b.jsxs("div",{className:"PaDialog-header",children:[i&&b.jsx("div",{className:"PaDialog-title",children:i}),c&&b.jsx("button",{type:"button",className:"PaDialog-close",onClick:n,"aria-label":"Close",children:b.jsx(By,{size:18})})]}),b.jsx("div",{className:"PaDialog-content",children:s}),l&&b.jsx("div",{className:"PaDialog-footer",children:l})]})}var _f={exports:{}};function fd(a,n){(n==null||n>a.length)&&(n=a.length);for(var i=0,l=Array(n);i<n;i++)l[i]=a[i];return l}function RC(a){if(Array.isArray(a))return fd(a)}function AC(a,n,i){return(n=zC(n))in a?Object.defineProperty(a,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[n]=i,a}function gn(){return gn=Object.assign?Object.assign.bind():function(a){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var l in i)({}).hasOwnProperty.call(i,l)&&(a[l]=i[l])}return a},gn.apply(null,arguments)}function jC(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function DC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bv(a,n){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);n&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),i.push.apply(i,l)}return i}function $n(a){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Bv(Object(i),!0).forEach(function(l){AC(a,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):Bv(Object(i)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(i,l))})}return a}function MC(a,n){if(a==null)return{};var i,l,s=_C(a,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(l=0;l<u.length;l++)i=u[l],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(a,i)&&(s[i]=a[i])}return s}function _C(a,n){if(a==null)return{};var i={};for(var l in a)if({}.hasOwnProperty.call(a,l)){if(n.indexOf(l)!==-1)continue;i[l]=a[l]}return i}function kC(a){return RC(a)||jC(a)||BC(a)||DC()}function LC(a,n){if(typeof a!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var l=i.call(a,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)}function zC(a){var n=LC(a,"string");return typeof n=="symbol"?n:n+""}function dd(a){"@babel/helpers - typeof";return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dd(a)}function BC(a,n){if(a){if(typeof a=="string")return fd(a,n);var i={}.toString.call(a).slice(8,-1);return i==="Object"&&a.constructor&&(i=a.constructor.name),i==="Map"||i==="Set"?Array.from(a):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?fd(a,n):void 0}}var $C="1.15.7";function la(a){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(a)}var ua=la(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Gr=la(/Edge/i),$v=la(/firefox/i),Mr=la(/safari/i)&&!la(/chrome/i)&&!la(/android/i),jd=la(/iP(ad|od|hone)/i),Vy=la(/chrome/i)&&la(/android/i),Gy={capture:!1,passive:!1};function Ee(a,n,i){a.addEventListener(n,i,!ua&&Gy)}function we(a,n,i){a.removeEventListener(n,i,!ua&&Gy)}function Lo(a,n){if(n){if(n[0]===">"&&(n=n.substring(1)),a)try{if(a.matches)return a.matches(n);if(a.msMatchesSelector)return a.msMatchesSelector(n);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(n)}catch{return!1}return!1}}function qy(a){return a.host&&a!==document&&a.host.nodeType&&a.host!==a?a.host:a.parentNode}function Vt(a,n,i,l){if(a){i=i||document;do{if(n!=null&&(n[0]===">"?a.parentNode===i&&Lo(a,n):Lo(a,n))||l&&a===i)return a;if(a===i)break}while(a=qy(a))}return null}var Uv=/\s+/g;function tt(a,n,i){if(a&&n)if(a.classList)a.classList[i?"add":"remove"](n);else{var l=(" "+a.className+" ").replace(Uv," ").replace(" "+n+" "," ");a.className=(l+(i?" "+n:"")).replace(Uv," ")}}function ce(a,n,i){var l=a&&a.style;if(l){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(a,""):a.currentStyle&&(i=a.currentStyle),n===void 0?i:i[n];!(n in l)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),l[n]=i+(typeof i=="string"?"":"px")}}function di(a,n){var i="";if(typeof a=="string")i=a;else do{var l=ce(a,"transform");l&&l!=="none"&&(i=l+" "+i)}while(!n&&(a=a.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(i)}function Yy(a,n,i){if(a){var l=a.getElementsByTagName(n),s=0,u=l.length;if(i)for(;s<u;s++)i(l[s],s);return l}return[]}function zn(){var a=document.scrollingElement;return a||document.documentElement}function Ke(a,n,i,l,s){if(!(!a.getBoundingClientRect&&a!==window)){var u,c,p,f,m,v,g;if(a!==window&&a.parentNode&&a!==zn()?(u=a.getBoundingClientRect(),c=u.top,p=u.left,f=u.bottom,m=u.right,v=u.height,g=u.width):(c=0,p=0,f=window.innerHeight,m=window.innerWidth,v=window.innerHeight,g=window.innerWidth),(n||i)&&a!==window&&(s=s||a.parentNode,!ua))do if(s&&s.getBoundingClientRect&&(ce(s,"transform")!=="none"||i&&ce(s,"position")!=="static")){var S=s.getBoundingClientRect();c-=S.top+parseInt(ce(s,"border-top-width")),p-=S.left+parseInt(ce(s,"border-left-width")),f=c+u.height,m=p+u.width;break}while(s=s.parentNode);if(l&&a!==window){var x=di(s||a),E=x&&x.a,O=x&&x.d;x&&(c/=O,p/=E,g/=E,v/=O,f=c+v,m=p+g)}return{top:c,left:p,bottom:f,right:m,width:g,height:v}}}function Hv(a,n,i){for(var l=$a(a,!0),s=Ke(a)[n];l;){var u=Ke(l)[i],c=void 0;if(c=s>=u,!c)return l;if(l===zn())break;l=$a(l,!1)}return!1}function ml(a,n,i,l){for(var s=0,u=0,c=a.children;u<c.length;){if(c[u].style.display!=="none"&&c[u]!==he.ghost&&(l||c[u]!==he.dragged)&&Vt(c[u],i.draggable,a,!1)){if(s===n)return c[u];s++}u++}return null}function Dd(a,n){for(var i=a.lastElementChild;i&&(i===he.ghost||ce(i,"display")==="none"||n&&!Lo(i,n));)i=i.previousElementSibling;return i||null}function lt(a,n){var i=0;if(!a||!a.parentNode)return-1;for(;a=a.previousElementSibling;)a.nodeName.toUpperCase()!=="TEMPLATE"&&a!==he.clone&&(!n||Lo(a,n))&&i++;return i}function Vv(a){var n=0,i=0,l=zn();if(a)do{var s=di(a),u=s.a,c=s.d;n+=a.scrollLeft*u,i+=a.scrollTop*c}while(a!==l&&(a=a.parentNode));return[n,i]}function UC(a,n){for(var i in a)if(a.hasOwnProperty(i)){for(var l in n)if(n.hasOwnProperty(l)&&n[l]===a[i][l])return Number(i)}return-1}function $a(a,n){if(!a||!a.getBoundingClientRect)return zn();var i=a,l=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var s=ce(i);if(i.clientWidth<i.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return zn();if(l||n)return i;l=!0}}while(i=i.parentNode);return zn()}function HC(a,n){if(a&&n)for(var i in n)n.hasOwnProperty(i)&&(a[i]=n[i]);return a}function kf(a,n){return Math.round(a.top)===Math.round(n.top)&&Math.round(a.left)===Math.round(n.left)&&Math.round(a.height)===Math.round(n.height)&&Math.round(a.width)===Math.round(n.width)}var _r;function Py(a,n){return function(){if(!_r){var i=arguments,l=this;i.length===1?a.call(l,i[0]):a.apply(l,i),_r=setTimeout(function(){_r=void 0},n)}}}function VC(){clearTimeout(_r),_r=void 0}function Xy(a,n,i){a.scrollLeft+=n,a.scrollTop+=i}function Md(a){var n=window.Polymer,i=window.jQuery||window.Zepto;return n&&n.dom?n.dom(a).cloneNode(!0):i?i(a).clone(!0)[0]:a.cloneNode(!0)}function Gv(a,n){ce(a,"position","absolute"),ce(a,"top",n.top),ce(a,"left",n.left),ce(a,"width",n.width),ce(a,"height",n.height)}function Lf(a){ce(a,"position",""),ce(a,"top",""),ce(a,"left",""),ce(a,"width",""),ce(a,"height","")}function Iy(a,n,i){var l={};return Array.from(a.children).forEach(function(s){var u,c,p,f;if(!(!Vt(s,n.draggable,a,!1)||s.animated||s===i)){var m=Ke(s);l.left=Math.min((u=l.left)!==null&&u!==void 0?u:1/0,m.left),l.top=Math.min((c=l.top)!==null&&c!==void 0?c:1/0,m.top),l.right=Math.max((p=l.right)!==null&&p!==void 0?p:-1/0,m.right),l.bottom=Math.max((f=l.bottom)!==null&&f!==void 0?f:-1/0,m.bottom)}}),l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}var Et="Sortable"+new Date().getTime();function GC(){var a=[],n;return{captureAnimationState:function(){if(a=[],!!this.options.animation){var l=[].slice.call(this.el.children);l.forEach(function(s){if(!(ce(s,"display")==="none"||s===he.ghost)){a.push({target:s,rect:Ke(s)});var u=$n({},a[a.length-1].rect);if(s.thisAnimationDuration){var c=di(s,!0);c&&(u.top-=c.f,u.left-=c.e)}s.fromRect=u}})}},addAnimationState:function(l){a.push(l)},removeAnimationState:function(l){a.splice(UC(a,{target:l}),1)},animateAll:function(l){var s=this;if(!this.options.animation){clearTimeout(n),typeof l=="function"&&l();return}var u=!1,c=0;a.forEach(function(p){var f=0,m=p.target,v=m.fromRect,g=Ke(m),S=m.prevFromRect,x=m.prevToRect,E=p.rect,O=di(m,!0);O&&(g.top-=O.f,g.left-=O.e),m.toRect=g,m.thisAnimationDuration&&kf(S,g)&&!kf(v,g)&&(E.top-g.top)/(E.left-g.left)===(v.top-g.top)/(v.left-g.left)&&(f=YC(E,S,x,s.options)),kf(g,v)||(m.prevFromRect=v,m.prevToRect=g,f||(f=s.options.animation),s.animate(m,E,g,f)),f&&(u=!0,c=Math.max(c,f),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},f),m.thisAnimationDuration=f)}),clearTimeout(n),u?n=setTimeout(function(){typeof l=="function"&&l()},c):typeof l=="function"&&l(),a=[]},animate:function(l,s,u,c){if(c){ce(l,"transition",""),ce(l,"transform","");var p=di(this.el),f=p&&p.a,m=p&&p.d,v=(s.left-u.left)/(f||1),g=(s.top-u.top)/(m||1);l.animatingX=!!v,l.animatingY=!!g,ce(l,"transform","translate3d("+v+"px,"+g+"px,0)"),this.forRepaintDummy=qC(l),ce(l,"transition","transform "+c+"ms"+(this.options.easing?" "+this.options.easing:"")),ce(l,"transform","translate3d(0,0,0)"),typeof l.animated=="number"&&clearTimeout(l.animated),l.animated=setTimeout(function(){ce(l,"transition",""),ce(l,"transform",""),l.animated=!1,l.animatingX=!1,l.animatingY=!1},c)}}}}function qC(a){return a.offsetWidth}function YC(a,n,i,l){return Math.sqrt(Math.pow(n.top-a.top,2)+Math.pow(n.left-a.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*l.animation}var ol=[],zf={initializeByDefault:!0},qr={mount:function(n){for(var i in zf)zf.hasOwnProperty(i)&&!(i in n)&&(n[i]=zf[i]);ol.forEach(function(l){if(l.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),ol.push(n)},pluginEvent:function(n,i,l){var s=this;this.eventCanceled=!1,l.cancel=function(){s.eventCanceled=!0};var u=n+"Global";ol.forEach(function(c){i[c.pluginName]&&(i[c.pluginName][u]&&i[c.pluginName][u]($n({sortable:i},l)),i.options[c.pluginName]&&i[c.pluginName][n]&&i[c.pluginName][n]($n({sortable:i},l)))})},initializePlugins:function(n,i,l,s){ol.forEach(function(p){var f=p.pluginName;if(!(!n.options[f]&&!p.initializeByDefault)){var m=new p(n,i,n.options);m.sortable=n,m.options=n.options,n[f]=m,gn(l,m.defaults)}});for(var u in n.options)if(n.options.hasOwnProperty(u)){var c=this.modifyOption(n,u,n.options[u]);typeof c<"u"&&(n.options[u]=c)}},getEventProperties:function(n,i){var l={};return ol.forEach(function(s){typeof s.eventProperties=="function"&&gn(l,s.eventProperties.call(i[s.pluginName],n))}),l},modifyOption:function(n,i,l){var s;return ol.forEach(function(u){n[u.pluginName]&&u.optionListeners&&typeof u.optionListeners[i]=="function"&&(s=u.optionListeners[i].call(n[u.pluginName],l))}),s}};function Tr(a){var n=a.sortable,i=a.rootEl,l=a.name,s=a.targetEl,u=a.cloneEl,c=a.toEl,p=a.fromEl,f=a.oldIndex,m=a.newIndex,v=a.oldDraggableIndex,g=a.newDraggableIndex,S=a.originalEvent,x=a.putSortable,E=a.extraEventProperties;if(n=n||i&&i[Et],!!n){var O,A=n.options,C="on"+l.charAt(0).toUpperCase()+l.substr(1);window.CustomEvent&&!ua&&!Gr?O=new CustomEvent(l,{bubbles:!0,cancelable:!0}):(O=document.createEvent("Event"),O.initEvent(l,!0,!0)),O.to=c||i,O.from=p||i,O.item=s||i,O.clone=u,O.oldIndex=f,O.newIndex=m,O.oldDraggableIndex=v,O.newDraggableIndex=g,O.originalEvent=S,O.pullMode=x?x.lastPutMode:void 0;var T=$n($n({},E),qr.getEventProperties(l,n));for(var R in T)O[R]=T[R];i&&i.dispatchEvent(O),A[C]&&A[C].call(n,O)}}var PC=["evt"],Ut=function(n,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=l.evt,u=MC(l,PC);qr.pluginEvent.bind(he)(n,i,$n({dragEl:ie,parentEl:it,ghostEl:ye,rootEl:Qe,nextEl:ci,lastDownEl:To,cloneEl:et,cloneHidden:Ba,dragStarted:Cr,putSortable:wt,activeSortable:he.active,originalEvent:s,oldIndex:pl,oldDraggableIndex:kr,newIndex:en,newDraggableIndex:za,hideGhostForTarget:Zy,unhideGhostForTarget:Jy,cloneNowHidden:function(){Ba=!0},cloneNowShown:function(){Ba=!1},dispatchSortableEvent:function(p){At({sortable:i,name:p,originalEvent:s})}},u))};function At(a){Tr($n({putSortable:wt,cloneEl:et,targetEl:ie,rootEl:Qe,oldIndex:pl,oldDraggableIndex:kr,newIndex:en,newDraggableIndex:za},a))}var ie,it,ye,Qe,ci,To,et,Ba,pl,en,kr,za,po,wt,dl=!1,zo=!1,Bo=[],oi,wn,Bf,$f,qv,Yv,Cr,ul,Lr,zr=!1,ho=!1,Co,Ct,Uf=[],pd=!1,$o=[],Jo=typeof document<"u",mo=jd,Pv=Gr||ua?"cssFloat":"float",XC=Jo&&!Vy&&!jd&&"draggable"in document.createElement("div"),Ky=(function(){if(Jo){if(ua)return!1;var a=document.createElement("x");return a.style.cssText="pointer-events:auto",a.style.pointerEvents==="auto"}})(),Fy=function(n,i){var l=ce(n),s=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),u=ml(n,0,i),c=ml(n,1,i),p=u&&ce(u),f=c&&ce(c),m=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+Ke(u).width,v=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Ke(c).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(u&&p.float&&p.float!=="none"){var g=p.float==="left"?"left":"right";return c&&(f.clear==="both"||f.clear===g)?"vertical":"horizontal"}return u&&(p.display==="block"||p.display==="flex"||p.display==="table"||p.display==="grid"||m>=s&&l[Pv]==="none"||c&&l[Pv]==="none"&&m+v>s)?"vertical":"horizontal"},IC=function(n,i,l){var s=l?n.left:n.top,u=l?n.right:n.bottom,c=l?n.width:n.height,p=l?i.left:i.top,f=l?i.right:i.bottom,m=l?i.width:i.height;return s===p||u===f||s+c/2===p+m/2},KC=function(n,i){var l;return Bo.some(function(s){var u=s[Et].options.emptyInsertThreshold;if(!(!u||Dd(s))){var c=Ke(s),p=n>=c.left-u&&n<=c.right+u,f=i>=c.top-u&&i<=c.bottom+u;if(p&&f)return l=s}}),l},Qy=function(n){function i(u,c){return function(p,f,m,v){var g=p.options.group.name&&f.options.group.name&&p.options.group.name===f.options.group.name;if(u==null&&(c||g))return!0;if(u==null||u===!1)return!1;if(c&&u==="clone")return u;if(typeof u=="function")return i(u(p,f,m,v),c)(p,f,m,v);var S=(c?p:f).options.group.name;return u===!0||typeof u=="string"&&u===S||u.join&&u.indexOf(S)>-1}}var l={},s=n.group;(!s||dd(s)!="object")&&(s={name:s}),l.name=s.name,l.checkPull=i(s.pull,!0),l.checkPut=i(s.put),l.revertClone=s.revertClone,n.group=l},Zy=function(){!Ky&&ye&&ce(ye,"display","none")},Jy=function(){!Ky&&ye&&ce(ye,"display","")};Jo&&!Vy&&document.addEventListener("click",function(a){if(zo)return a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),zo=!1,!1},!0);var ui=function(n){if(ie){n=n.touches?n.touches[0]:n;var i=KC(n.clientX,n.clientY);if(i){var l={};for(var s in n)n.hasOwnProperty(s)&&(l[s]=n[s]);l.target=l.rootEl=i,l.preventDefault=void 0,l.stopPropagation=void 0,i[Et]._onDragOver(l)}}},FC=function(n){ie&&ie.parentNode[Et]._isOutsideThisEl(n.target)};function he(a,n){if(!(a&&a.nodeType&&a.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(a));this.el=a,this.options=n=gn({},n),a[Et]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(a.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Fy(a,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(c,p){c.setData("Text",p.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:he.supportPointer!==!1&&"PointerEvent"in window&&(!Mr||jd),emptyInsertThreshold:5};qr.initializePlugins(this,a,i);for(var l in i)!(l in n)&&(n[l]=i[l]);Qy(n);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=n.forceFallback?!1:XC,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Ee(a,"pointerdown",this._onTapStart):(Ee(a,"mousedown",this._onTapStart),Ee(a,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ee(a,"dragover",this),Ee(a,"dragenter",this)),Bo.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),gn(this,GC())}he.prototype={constructor:he,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(ul=null)},_getDirection:function(n,i){return typeof this.options.direction=="function"?this.options.direction.call(this,n,i,ie):this.options.direction},_onTapStart:function(n){if(n.cancelable){var i=this,l=this.el,s=this.options,u=s.preventOnFilter,c=n.type,p=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,f=(p||n).target,m=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||f,v=s.filter;if(aN(l),!ie&&!(/mousedown|pointerdown/.test(c)&&n.button!==0||s.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&Mr&&f&&f.tagName.toUpperCase()==="SELECT")&&(f=Vt(f,s.draggable,l,!1),!(f&&f.animated)&&To!==f)){if(pl=lt(f),kr=lt(f,s.draggable),typeof v=="function"){if(v.call(this,n,f,this)){At({sortable:i,rootEl:m,name:"filter",targetEl:f,toEl:l,fromEl:l}),Ut("filter",i,{evt:n}),u&&n.preventDefault();return}}else if(v&&(v=v.split(",").some(function(g){if(g=Vt(m,g.trim(),l,!1),g)return At({sortable:i,rootEl:g,name:"filter",targetEl:f,fromEl:l,toEl:l}),Ut("filter",i,{evt:n}),!0}),v)){u&&n.preventDefault();return}s.handle&&!Vt(m,s.handle,l,!1)||this._prepareDragStart(n,p,f)}}},_prepareDragStart:function(n,i,l){var s=this,u=s.el,c=s.options,p=u.ownerDocument,f;if(l&&!ie&&l.parentNode===u){var m=Ke(l);if(Qe=u,ie=l,it=ie.parentNode,ci=ie.nextSibling,To=l,po=c.group,he.dragged=ie,oi={target:ie,clientX:(i||n).clientX,clientY:(i||n).clientY},qv=oi.clientX-m.left,Yv=oi.clientY-m.top,this._lastX=(i||n).clientX,this._lastY=(i||n).clientY,ie.style["will-change"]="all",f=function(){if(Ut("delayEnded",s,{evt:n}),he.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!$v&&s.nativeDraggable&&(ie.draggable=!0),s._triggerDragStart(n,i),At({sortable:s,name:"choose",originalEvent:n}),tt(ie,c.chosenClass,!0)},c.ignore.split(",").forEach(function(v){Yy(ie,v.trim(),Hf)}),Ee(p,"dragover",ui),Ee(p,"mousemove",ui),Ee(p,"touchmove",ui),c.supportPointer?(Ee(p,"pointerup",s._onDrop),!this.nativeDraggable&&Ee(p,"pointercancel",s._onDrop)):(Ee(p,"mouseup",s._onDrop),Ee(p,"touchend",s._onDrop),Ee(p,"touchcancel",s._onDrop)),$v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),Ut("delayStart",this,{evt:n}),c.delay&&(!c.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(Gr||ua))){if(he.eventCanceled){this._onDrop();return}c.supportPointer?(Ee(p,"pointerup",s._disableDelayedDrag),Ee(p,"pointercancel",s._disableDelayedDrag)):(Ee(p,"mouseup",s._disableDelayedDrag),Ee(p,"touchend",s._disableDelayedDrag),Ee(p,"touchcancel",s._disableDelayedDrag)),Ee(p,"mousemove",s._delayedDragTouchMoveHandler),Ee(p,"touchmove",s._delayedDragTouchMoveHandler),c.supportPointer&&Ee(p,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(f,c.delay)}else f()}},_delayedDragTouchMoveHandler:function(n){var i=n.touches?n.touches[0]:n;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ie&&Hf(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;we(n,"mouseup",this._disableDelayedDrag),we(n,"touchend",this._disableDelayedDrag),we(n,"touchcancel",this._disableDelayedDrag),we(n,"pointerup",this._disableDelayedDrag),we(n,"pointercancel",this._disableDelayedDrag),we(n,"mousemove",this._delayedDragTouchMoveHandler),we(n,"touchmove",this._delayedDragTouchMoveHandler),we(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,i){i=i||n.pointerType=="touch"&&n,!this.nativeDraggable||i?this.options.supportPointer?Ee(document,"pointermove",this._onTouchMove):i?Ee(document,"touchmove",this._onTouchMove):Ee(document,"mousemove",this._onTouchMove):(Ee(ie,"dragend",this),Ee(Qe,"dragstart",this._onDragStart));try{document.selection?No(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,i){if(dl=!1,Qe&&ie){Ut("dragStarted",this,{evt:i}),this.nativeDraggable&&Ee(document,"dragover",FC);var l=this.options;!n&&tt(ie,l.dragClass,!1),tt(ie,l.ghostClass,!0),he.active=this,n&&this._appendGhost(),At({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(wn){this._lastX=wn.clientX,this._lastY=wn.clientY,Zy();for(var n=document.elementFromPoint(wn.clientX,wn.clientY),i=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(wn.clientX,wn.clientY),n!==i);)i=n;if(ie.parentNode[Et]._isOutsideThisEl(n),i)do{if(i[Et]){var l=void 0;if(l=i[Et]._onDragOver({clientX:wn.clientX,clientY:wn.clientY,target:n,rootEl:i}),l&&!this.options.dragoverBubble)break}n=i}while(i=qy(i));Jy()}},_onTouchMove:function(n){if(oi){var i=this.options,l=i.fallbackTolerance,s=i.fallbackOffset,u=n.touches?n.touches[0]:n,c=ye&&di(ye,!0),p=ye&&c&&c.a,f=ye&&c&&c.d,m=mo&&Ct&&Vv(Ct),v=(u.clientX-oi.clientX+s.x)/(p||1)+(m?m[0]-Uf[0]:0)/(p||1),g=(u.clientY-oi.clientY+s.y)/(f||1)+(m?m[1]-Uf[1]:0)/(f||1);if(!he.active&&!dl){if(l&&Math.max(Math.abs(u.clientX-this._lastX),Math.abs(u.clientY-this._lastY))<l)return;this._onDragStart(n,!0)}if(ye){c?(c.e+=v-(Bf||0),c.f+=g-($f||0)):c={a:1,b:0,c:0,d:1,e:v,f:g};var S="matrix(".concat(c.a,",").concat(c.b,",").concat(c.c,",").concat(c.d,",").concat(c.e,",").concat(c.f,")");ce(ye,"webkitTransform",S),ce(ye,"mozTransform",S),ce(ye,"msTransform",S),ce(ye,"transform",S),Bf=v,$f=g,wn=u}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!ye){var n=this.options.fallbackOnBody?document.body:Qe,i=Ke(ie,!0,mo,!0,n),l=this.options;if(mo){for(Ct=n;ce(Ct,"position")==="static"&&ce(Ct,"transform")==="none"&&Ct!==document;)Ct=Ct.parentNode;Ct!==document.body&&Ct!==document.documentElement?(Ct===document&&(Ct=zn()),i.top+=Ct.scrollTop,i.left+=Ct.scrollLeft):Ct=zn(),Uf=Vv(Ct)}ye=ie.cloneNode(!0),tt(ye,l.ghostClass,!1),tt(ye,l.fallbackClass,!0),tt(ye,l.dragClass,!0),ce(ye,"transition",""),ce(ye,"transform",""),ce(ye,"box-sizing","border-box"),ce(ye,"margin",0),ce(ye,"top",i.top),ce(ye,"left",i.left),ce(ye,"width",i.width),ce(ye,"height",i.height),ce(ye,"opacity","0.8"),ce(ye,"position",mo?"absolute":"fixed"),ce(ye,"zIndex","100000"),ce(ye,"pointerEvents","none"),he.ghost=ye,n.appendChild(ye),ce(ye,"transform-origin",qv/parseInt(ye.style.width)*100+"% "+Yv/parseInt(ye.style.height)*100+"%")}},_onDragStart:function(n,i){var l=this,s=n.dataTransfer,u=l.options;if(Ut("dragStart",this,{evt:n}),he.eventCanceled){this._onDrop();return}Ut("setupClone",this),he.eventCanceled||(et=Md(ie),et.removeAttribute("id"),et.draggable=!1,et.style["will-change"]="",this._hideClone(),tt(et,this.options.chosenClass,!1),he.clone=et),l.cloneId=No(function(){Ut("clone",l),!he.eventCanceled&&(l.options.removeCloneOnHide||Qe.insertBefore(et,ie),l._hideClone(),At({sortable:l,name:"clone"}))}),!i&&tt(ie,u.dragClass,!0),i?(zo=!0,l._loopId=setInterval(l._emulateDragOver,50)):(we(document,"mouseup",l._onDrop),we(document,"touchend",l._onDrop),we(document,"touchcancel",l._onDrop),s&&(s.effectAllowed="move",u.setData&&u.setData.call(l,s,ie)),Ee(document,"drop",l),ce(ie,"transform","translateZ(0)")),dl=!0,l._dragStartId=No(l._dragStarted.bind(l,i,n)),Ee(document,"selectstart",l),Cr=!0,window.getSelection().removeAllRanges(),Mr&&ce(document.body,"user-select","none")},_onDragOver:function(n){var i=this.el,l=n.target,s,u,c,p=this.options,f=p.group,m=he.active,v=po===f,g=p.sort,S=wt||m,x,E=this,O=!1;if(pd)return;function A(J,se){Ut(J,E,$n({evt:n,isOwner:v,axis:x?"vertical":"horizontal",revert:c,dragRect:s,targetRect:u,canSort:g,fromSortable:S,target:l,completed:T,onMove:function(D,F){return go(Qe,i,ie,s,D,Ke(D),n,F)},changed:R},se))}function C(){A("dragOverAnimationCapture"),E.captureAnimationState(),E!==S&&S.captureAnimationState()}function T(J){return A("dragOverCompleted",{insertion:J}),J&&(v?m._hideClone():m._showClone(E),E!==S&&(tt(ie,wt?wt.options.ghostClass:m.options.ghostClass,!1),tt(ie,p.ghostClass,!0)),wt!==E&&E!==he.active?wt=E:E===he.active&&wt&&(wt=null),S===E&&(E._ignoreWhileAnimating=l),E.animateAll(function(){A("dragOverAnimationComplete"),E._ignoreWhileAnimating=null}),E!==S&&(S.animateAll(),S._ignoreWhileAnimating=null)),(l===ie&&!ie.animated||l===i&&!l.animated)&&(ul=null),!p.dragoverBubble&&!n.rootEl&&l!==document&&(ie.parentNode[Et]._isOutsideThisEl(n.target),!J&&ui(n)),!p.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),O=!0}function R(){en=lt(ie),za=lt(ie,p.draggable),At({sortable:E,name:"change",toEl:i,newIndex:en,newDraggableIndex:za,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),l=Vt(l,p.draggable,i,!0),A("dragOver"),he.eventCanceled)return O;if(ie.contains(n.target)||l.animated&&l.animatingX&&l.animatingY||E._ignoreWhileAnimating===l)return T(!1);if(zo=!1,m&&!p.disabled&&(v?g||(c=it!==Qe):wt===this||(this.lastPutMode=po.checkPull(this,m,ie,n))&&f.checkPut(this,m,ie,n))){if(x=this._getDirection(n,l)==="vertical",s=Ke(ie),A("dragOverValid"),he.eventCanceled)return O;if(c)return it=Qe,C(),this._hideClone(),A("revert"),he.eventCanceled||(ci?Qe.insertBefore(ie,ci):Qe.appendChild(ie)),T(!0);var B=Dd(i,p.draggable);if(!B||WC(n,x,this)&&!B.animated){if(B===ie)return T(!1);if(B&&i===n.target&&(l=B),l&&(u=Ke(l)),go(Qe,i,ie,s,l,u,n,!!l)!==!1)return C(),B&&B.nextSibling?i.insertBefore(ie,B.nextSibling):i.appendChild(ie),it=i,R(),T(!0)}else if(B&&JC(n,x,this)){var Y=ml(i,0,p,!0);if(Y===ie)return T(!1);if(l=Y,u=Ke(l),go(Qe,i,ie,s,l,u,n,!1)!==!1)return C(),i.insertBefore(ie,Y),it=i,R(),T(!0)}else if(l.parentNode===i){u=Ke(l);var z=0,_,M=ie.parentNode!==i,H=!IC(ie.animated&&ie.toRect||s,l.animated&&l.toRect||u,x),$=x?"top":"left",U=Hv(l,"top","top")||Hv(ie,"top","top"),I=U?U.scrollTop:void 0;ul!==l&&(_=u[$],zr=!1,ho=!H&&p.invertSwap||M),z=eN(n,l,u,x,H?1:p.swapThreshold,p.invertedSwapThreshold==null?p.swapThreshold:p.invertedSwapThreshold,ho,ul===l);var ee;if(z!==0){var ne=lt(ie);do ne-=z,ee=it.children[ne];while(ee&&(ce(ee,"display")==="none"||ee===ye))}if(z===0||ee===l)return T(!1);ul=l,Lr=z;var le=l.nextElementSibling,V=!1;V=z===1;var te=go(Qe,i,ie,s,l,u,n,V);if(te!==!1)return(te===1||te===-1)&&(V=te===1),pd=!0,setTimeout(ZC,30),C(),V&&!le?i.appendChild(ie):l.parentNode.insertBefore(ie,V?le:l),U&&Xy(U,0,I-U.scrollTop),it=ie.parentNode,_!==void 0&&!ho&&(Co=Math.abs(_-Ke(l)[$])),R(),T(!0)}if(i.contains(ie))return T(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){we(document,"mousemove",this._onTouchMove),we(document,"touchmove",this._onTouchMove),we(document,"pointermove",this._onTouchMove),we(document,"dragover",ui),we(document,"mousemove",ui),we(document,"touchmove",ui)},_offUpEvents:function(){var n=this.el.ownerDocument;we(n,"mouseup",this._onDrop),we(n,"touchend",this._onDrop),we(n,"pointerup",this._onDrop),we(n,"pointercancel",this._onDrop),we(n,"touchcancel",this._onDrop),we(document,"selectstart",this)},_onDrop:function(n){var i=this.el,l=this.options;if(en=lt(ie),za=lt(ie,l.draggable),Ut("drop",this,{evt:n}),it=ie&&ie.parentNode,en=lt(ie),za=lt(ie,l.draggable),he.eventCanceled){this._nulling();return}dl=!1,ho=!1,zr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),hd(this.cloneId),hd(this._dragStartId),this.nativeDraggable&&(we(document,"drop",this),we(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Mr&&ce(document.body,"user-select",""),ce(ie,"transform",""),n&&(Cr&&(n.cancelable&&n.preventDefault(),!l.dropBubble&&n.stopPropagation()),ye&&ye.parentNode&&ye.parentNode.removeChild(ye),(Qe===it||wt&&wt.lastPutMode!=="clone")&&et&&et.parentNode&&et.parentNode.removeChild(et),ie&&(this.nativeDraggable&&we(ie,"dragend",this),Hf(ie),ie.style["will-change"]="",Cr&&!dl&&tt(ie,wt?wt.options.ghostClass:this.options.ghostClass,!1),tt(ie,this.options.chosenClass,!1),At({sortable:this,name:"unchoose",toEl:it,newIndex:null,newDraggableIndex:null,originalEvent:n}),Qe!==it?(en>=0&&(At({rootEl:it,name:"add",toEl:it,fromEl:Qe,originalEvent:n}),At({sortable:this,name:"remove",toEl:it,originalEvent:n}),At({rootEl:it,name:"sort",toEl:it,fromEl:Qe,originalEvent:n}),At({sortable:this,name:"sort",toEl:it,originalEvent:n})),wt&&wt.save()):en!==pl&&en>=0&&(At({sortable:this,name:"update",toEl:it,originalEvent:n}),At({sortable:this,name:"sort",toEl:it,originalEvent:n})),he.active&&((en==null||en===-1)&&(en=pl,za=kr),At({sortable:this,name:"end",toEl:it,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Ut("nulling",this),Qe=ie=it=ye=ci=et=To=Ba=oi=wn=Cr=en=za=pl=kr=ul=Lr=wt=po=he.dragged=he.ghost=he.clone=he.active=null;var n=this.el;$o.forEach(function(i){n.contains(i)&&(i.checked=!0)}),$o.length=Bf=$f=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":ie&&(this._onDragOver(n),QC(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],i,l=this.el.children,s=0,u=l.length,c=this.options;s<u;s++)i=l[s],Vt(i,c.draggable,this.el,!1)&&n.push(i.getAttribute(c.dataIdAttr)||nN(i));return n},sort:function(n,i){var l={},s=this.el;this.toArray().forEach(function(u,c){var p=s.children[c];Vt(p,this.options.draggable,s,!1)&&(l[u]=p)},this),i&&this.captureAnimationState(),n.forEach(function(u){l[u]&&(s.removeChild(l[u]),s.appendChild(l[u]))}),i&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,i){return Vt(n,i||this.options.draggable,this.el,!1)},option:function(n,i){var l=this.options;if(i===void 0)return l[n];var s=qr.modifyOption(this,n,i);typeof s<"u"?l[n]=s:l[n]=i,n==="group"&&Qy(l)},destroy:function(){Ut("destroy",this);var n=this.el;n[Et]=null,we(n,"mousedown",this._onTapStart),we(n,"touchstart",this._onTapStart),we(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(we(n,"dragover",this),we(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Bo.splice(Bo.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!Ba){if(Ut("hideClone",this),he.eventCanceled)return;ce(et,"display","none"),this.options.removeCloneOnHide&&et.parentNode&&et.parentNode.removeChild(et),Ba=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Ba){if(Ut("showClone",this),he.eventCanceled)return;ie.parentNode==Qe&&!this.options.group.revertClone?Qe.insertBefore(et,ie):ci?Qe.insertBefore(et,ci):Qe.appendChild(et),this.options.group.revertClone&&this.animate(ie,et),ce(et,"display",""),Ba=!1}}};function QC(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.cancelable&&a.preventDefault()}function go(a,n,i,l,s,u,c,p){var f,m=a[Et],v=m.options.onMove,g;return window.CustomEvent&&!ua&&!Gr?f=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(f=document.createEvent("Event"),f.initEvent("move",!0,!0)),f.to=n,f.from=a,f.dragged=i,f.draggedRect=l,f.related=s||n,f.relatedRect=u||Ke(n),f.willInsertAfter=p,f.originalEvent=c,a.dispatchEvent(f),v&&(g=v.call(m,f,c)),g}function Hf(a){a.draggable=!1}function ZC(){pd=!1}function JC(a,n,i){var l=Ke(ml(i.el,0,i.options,!0)),s=Iy(i.el,i.options,ye),u=10;return n?a.clientX<s.left-u||a.clientY<l.top&&a.clientX<l.right:a.clientY<s.top-u||a.clientY<l.bottom&&a.clientX<l.left}function WC(a,n,i){var l=Ke(Dd(i.el,i.options.draggable)),s=Iy(i.el,i.options,ye),u=10;return n?a.clientX>s.right+u||a.clientY>l.bottom&&a.clientX>l.left:a.clientY>s.bottom+u||a.clientX>l.right&&a.clientY>l.top}function eN(a,n,i,l,s,u,c,p){var f=l?a.clientY:a.clientX,m=l?i.height:i.width,v=l?i.top:i.left,g=l?i.bottom:i.right,S=!1;if(!c){if(p&&Co<m*s){if(!zr&&(Lr===1?f>v+m*u/2:f<g-m*u/2)&&(zr=!0),zr)S=!0;else if(Lr===1?f<v+Co:f>g-Co)return-Lr}else if(f>v+m*(1-s)/2&&f<g-m*(1-s)/2)return tN(n)}return S=S||c,S&&(f<v+m*u/2||f>g-m*u/2)?f>v+m/2?1:-1:0}function tN(a){return lt(ie)<lt(a)?1:-1}function nN(a){for(var n=a.tagName+a.className+a.src+a.href+a.textContent,i=n.length,l=0;i--;)l+=n.charCodeAt(i);return l.toString(36)}function aN(a){$o.length=0;for(var n=a.getElementsByTagName("input"),i=n.length;i--;){var l=n[i];l.checked&&$o.push(l)}}function No(a){return setTimeout(a,0)}function hd(a){return clearTimeout(a)}Jo&&Ee(document,"touchmove",function(a){(he.active||dl)&&a.cancelable&&a.preventDefault()});he.utils={on:Ee,off:we,css:ce,find:Yy,is:function(n,i){return!!Vt(n,i,n,!1)},extend:HC,throttle:Py,closest:Vt,toggleClass:tt,clone:Md,index:lt,nextTick:No,cancelNextTick:hd,detectDirection:Fy,getChild:ml,expando:Et};he.get=function(a){return a[Et]};he.mount=function(){for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];n[0].constructor===Array&&(n=n[0]),n.forEach(function(l){if(!l.prototype||!l.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(l));l.utils&&(he.utils=$n($n({},he.utils),l.utils)),qr.mount(l)})};he.create=function(a,n){return new he(a,n)};he.version=$C;var dt=[],Nr,md,gd=!1,Vf,Gf,Uo,Or;function iN(){function a(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return a.prototype={dragStarted:function(i){var l=i.originalEvent;this.sortable.nativeDraggable?Ee(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ee(document,"pointermove",this._handleFallbackAutoScroll):l.touches?Ee(document,"touchmove",this._handleFallbackAutoScroll):Ee(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var l=i.originalEvent;!this.options.dragOverBubble&&!l.rootEl&&this._handleAutoScroll(l)},drop:function(){this.sortable.nativeDraggable?we(document,"dragover",this._handleAutoScroll):(we(document,"pointermove",this._handleFallbackAutoScroll),we(document,"touchmove",this._handleFallbackAutoScroll),we(document,"mousemove",this._handleFallbackAutoScroll)),Xv(),Oo(),VC()},nulling:function(){Uo=md=Nr=gd=Or=Vf=Gf=null,dt.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,l){var s=this,u=(i.touches?i.touches[0]:i).clientX,c=(i.touches?i.touches[0]:i).clientY,p=document.elementFromPoint(u,c);if(Uo=i,l||this.options.forceAutoScrollFallback||Gr||ua||Mr){qf(i,this.options,p,l);var f=$a(p,!0);gd&&(!Or||u!==Vf||c!==Gf)&&(Or&&Xv(),Or=setInterval(function(){var m=$a(document.elementFromPoint(u,c),!0);m!==f&&(f=m,Oo()),qf(i,s.options,m,l)},10),Vf=u,Gf=c)}else{if(!this.options.bubbleScroll||$a(p,!0)===zn()){Oo();return}qf(i,this.options,$a(p,!1),!1)}}},gn(a,{pluginName:"scroll",initializeByDefault:!0})}function Oo(){dt.forEach(function(a){clearInterval(a.pid)}),dt=[]}function Xv(){clearInterval(Or)}var qf=Py(function(a,n,i,l){if(n.scroll){var s=(a.touches?a.touches[0]:a).clientX,u=(a.touches?a.touches[0]:a).clientY,c=n.scrollSensitivity,p=n.scrollSpeed,f=zn(),m=!1,v;md!==i&&(md=i,Oo(),Nr=n.scroll,v=n.scrollFn,Nr===!0&&(Nr=$a(i,!0)));var g=0,S=Nr;do{var x=S,E=Ke(x),O=E.top,A=E.bottom,C=E.left,T=E.right,R=E.width,B=E.height,Y=void 0,z=void 0,_=x.scrollWidth,M=x.scrollHeight,H=ce(x),$=x.scrollLeft,U=x.scrollTop;x===f?(Y=R<_&&(H.overflowX==="auto"||H.overflowX==="scroll"||H.overflowX==="visible"),z=B<M&&(H.overflowY==="auto"||H.overflowY==="scroll"||H.overflowY==="visible")):(Y=R<_&&(H.overflowX==="auto"||H.overflowX==="scroll"),z=B<M&&(H.overflowY==="auto"||H.overflowY==="scroll"));var I=Y&&(Math.abs(T-s)<=c&&$+R<_)-(Math.abs(C-s)<=c&&!!$),ee=z&&(Math.abs(A-u)<=c&&U+B<M)-(Math.abs(O-u)<=c&&!!U);if(!dt[g])for(var ne=0;ne<=g;ne++)dt[ne]||(dt[ne]={});(dt[g].vx!=I||dt[g].vy!=ee||dt[g].el!==x)&&(dt[g].el=x,dt[g].vx=I,dt[g].vy=ee,clearInterval(dt[g].pid),(I!=0||ee!=0)&&(m=!0,dt[g].pid=setInterval((function(){l&&this.layer===0&&he.active._onTouchMove(Uo);var le=dt[this.layer].vy?dt[this.layer].vy*p:0,V=dt[this.layer].vx?dt[this.layer].vx*p:0;typeof v=="function"&&v.call(he.dragged.parentNode[Et],V,le,a,Uo,dt[this.layer].el)!=="continue"||Xy(dt[this.layer].el,V,le)}).bind({layer:g}),24))),g++}while(n.bubbleScroll&&S!==f&&(S=$a(S,!1)));gd=m}},30),Wy=function(n){var i=n.originalEvent,l=n.putSortable,s=n.dragEl,u=n.activeSortable,c=n.dispatchSortableEvent,p=n.hideGhostForTarget,f=n.unhideGhostForTarget;if(i){var m=l||u;p();var v=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,g=document.elementFromPoint(v.clientX,v.clientY);f(),m&&!m.el.contains(g)&&(c("spill"),this.onSpill({dragEl:s,putSortable:l}))}};function _d(){}_d.prototype={startIndex:null,dragStart:function(n){var i=n.oldDraggableIndex;this.startIndex=i},onSpill:function(n){var i=n.dragEl,l=n.putSortable;this.sortable.captureAnimationState(),l&&l.captureAnimationState();var s=ml(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(i,s):this.sortable.el.appendChild(i),this.sortable.animateAll(),l&&l.animateAll()},drop:Wy};gn(_d,{pluginName:"revertOnSpill"});function kd(){}kd.prototype={onSpill:function(n){var i=n.dragEl,l=n.putSortable,s=l||this.sortable;s.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),s.animateAll()},drop:Wy};gn(kd,{pluginName:"removeOnSpill"});var mn;function lN(){function a(){this.defaults={swapClass:"sortable-swap-highlight"}}return a.prototype={dragStart:function(i){var l=i.dragEl;mn=l},dragOverValid:function(i){var l=i.completed,s=i.target,u=i.onMove,c=i.activeSortable,p=i.changed,f=i.cancel;if(c.options.swap){var m=this.sortable.el,v=this.options;if(s&&s!==m){var g=mn;u(s)!==!1?(tt(s,v.swapClass,!0),mn=s):mn=null,g&&g!==mn&&tt(g,v.swapClass,!1)}p(),l(!0),f()}},drop:function(i){var l=i.activeSortable,s=i.putSortable,u=i.dragEl,c=s||this.sortable,p=this.options;mn&&tt(mn,p.swapClass,!1),mn&&(p.swap||s&&s.options.swap)&&u!==mn&&(c.captureAnimationState(),c!==l&&l.captureAnimationState(),rN(u,mn),c.animateAll(),c!==l&&l.animateAll())},nulling:function(){mn=null}},gn(a,{pluginName:"swap",eventProperties:function(){return{swapItem:mn}}})}function rN(a,n){var i=a.parentNode,l=n.parentNode,s,u;!i||!l||i.isEqualNode(n)||l.isEqualNode(a)||(s=lt(a),u=lt(n),i.isEqualNode(l)&&s<u&&u++,i.insertBefore(n,i.children[s]),l.insertBefore(a,l.children[u]))}var ve=[],Wt=[],gr,En,vr=!1,Ht=!1,cl=!1,Ye,yr,vo;function sN(){function a(n){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));n.options.avoidImplicitDeselect||(n.options.supportPointer?Ee(document,"pointerup",this._deselectMultiDrag):(Ee(document,"mouseup",this._deselectMultiDrag),Ee(document,"touchend",this._deselectMultiDrag))),Ee(document,"keydown",this._checkKeyDown),Ee(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(s,u){var c="";ve.length&&En===n?ve.forEach(function(p,f){c+=(f?", ":"")+p.textContent}):c=u.textContent,s.setData("Text",c)}}}return a.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var l=i.dragEl;Ye=l},delayEnded:function(){this.isMultiDrag=~ve.indexOf(Ye)},setupClone:function(i){var l=i.sortable,s=i.cancel;if(this.isMultiDrag){for(var u=0;u<ve.length;u++)Wt.push(Md(ve[u])),Wt[u].sortableIndex=ve[u].sortableIndex,Wt[u].draggable=!1,Wt[u].style["will-change"]="",tt(Wt[u],this.options.selectedClass,!1),ve[u]===Ye&&tt(Wt[u],this.options.chosenClass,!1);l._hideClone(),s()}},clone:function(i){var l=i.sortable,s=i.rootEl,u=i.dispatchSortableEvent,c=i.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ve.length&&En===l&&(Iv(!0,s),u("clone"),c()))},showClone:function(i){var l=i.cloneNowShown,s=i.rootEl,u=i.cancel;this.isMultiDrag&&(Iv(!1,s),Wt.forEach(function(c){ce(c,"display","")}),l(),vo=!1,u())},hideClone:function(i){var l=this;i.sortable;var s=i.cloneNowHidden,u=i.cancel;this.isMultiDrag&&(Wt.forEach(function(c){ce(c,"display","none"),l.options.removeCloneOnHide&&c.parentNode&&c.parentNode.removeChild(c)}),s(),vo=!0,u())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&En&&En.multiDrag._deselectMultiDrag(),ve.forEach(function(l){l.sortableIndex=lt(l)}),ve=ve.sort(function(l,s){return l.sortableIndex-s.sortableIndex}),cl=!0},dragStarted:function(i){var l=this,s=i.sortable;if(this.isMultiDrag){if(this.options.sort&&(s.captureAnimationState(),this.options.animation)){ve.forEach(function(c){c!==Ye&&ce(c,"position","absolute")});var u=Ke(Ye,!1,!0,!0);ve.forEach(function(c){c!==Ye&&Gv(c,u)}),Ht=!0,vr=!0}s.animateAll(function(){Ht=!1,vr=!1,l.options.animation&&ve.forEach(function(c){Lf(c)}),l.options.sort&&yo()})}},dragOver:function(i){var l=i.target,s=i.completed,u=i.cancel;Ht&&~ve.indexOf(l)&&(s(!1),u())},revert:function(i){var l=i.fromSortable,s=i.rootEl,u=i.sortable,c=i.dragRect;ve.length>1&&(ve.forEach(function(p){u.addAnimationState({target:p,rect:Ht?Ke(p):c}),Lf(p),p.fromRect=c,l.removeAnimationState(p)}),Ht=!1,oN(!this.options.removeCloneOnHide,s))},dragOverCompleted:function(i){var l=i.sortable,s=i.isOwner,u=i.insertion,c=i.activeSortable,p=i.parentEl,f=i.putSortable,m=this.options;if(u){if(s&&c._hideClone(),vr=!1,m.animation&&ve.length>1&&(Ht||!s&&!c.options.sort&&!f)){var v=Ke(Ye,!1,!0,!0);ve.forEach(function(S){S!==Ye&&(Gv(S,v),p.appendChild(S))}),Ht=!0}if(!s)if(Ht||yo(),ve.length>1){var g=vo;c._showClone(l),c.options.animation&&!vo&&g&&Wt.forEach(function(S){c.addAnimationState({target:S,rect:yr}),S.fromRect=yr,S.thisAnimationDuration=null})}else c._showClone(l)}},dragOverAnimationCapture:function(i){var l=i.dragRect,s=i.isOwner,u=i.activeSortable;if(ve.forEach(function(p){p.thisAnimationDuration=null}),u.options.animation&&!s&&u.multiDrag.isMultiDrag){yr=gn({},l);var c=di(Ye,!0);yr.top-=c.f,yr.left-=c.e}},dragOverAnimationComplete:function(){Ht&&(Ht=!1,yo())},drop:function(i){var l=i.originalEvent,s=i.rootEl,u=i.parentEl,c=i.sortable,p=i.dispatchSortableEvent,f=i.oldIndex,m=i.putSortable,v=m||this.sortable;if(l){var g=this.options,S=u.children;if(!cl)if(g.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),tt(Ye,g.selectedClass,!~ve.indexOf(Ye)),~ve.indexOf(Ye))ve.splice(ve.indexOf(Ye),1),gr=null,Tr({sortable:c,rootEl:s,name:"deselect",targetEl:Ye,originalEvent:l});else{if(ve.push(Ye),Tr({sortable:c,rootEl:s,name:"select",targetEl:Ye,originalEvent:l}),l.shiftKey&&gr&&c.el.contains(gr)){var x=lt(gr),E=lt(Ye);~x&&~E&&x!==E&&(function(){var T,R;E>x?(R=x,T=E):(R=E,T=x+1);for(var B=g.filter;R<T;R++)if(!~ve.indexOf(S[R])&&Vt(S[R],g.draggable,u,!1)){var Y=B&&(typeof B=="function"?B.call(c,l,S[R],c):B.split(",").some(function(z){return Vt(S[R],z.trim(),u,!1)}));Y||(tt(S[R],g.selectedClass,!0),ve.push(S[R]),Tr({sortable:c,rootEl:s,name:"select",targetEl:S[R],originalEvent:l}))}})()}else gr=Ye;En=v}if(cl&&this.isMultiDrag){if(Ht=!1,(u[Et].options.sort||u!==s)&&ve.length>1){var O=Ke(Ye),A=lt(Ye,":not(."+this.options.selectedClass+")");if(!vr&&g.animation&&(Ye.thisAnimationDuration=null),v.captureAnimationState(),!vr&&(g.animation&&(Ye.fromRect=O,ve.forEach(function(T){if(T.thisAnimationDuration=null,T!==Ye){var R=Ht?Ke(T):O;T.fromRect=R,v.addAnimationState({target:T,rect:R})}})),yo(),ve.forEach(function(T){S[A]?u.insertBefore(T,S[A]):u.appendChild(T),A++}),f===lt(Ye))){var C=!1;ve.forEach(function(T){if(T.sortableIndex!==lt(T)){C=!0;return}}),C&&(p("update"),p("sort"))}ve.forEach(function(T){Lf(T)}),v.animateAll()}En=v}(s===u||m&&m.lastPutMode!=="clone")&&Wt.forEach(function(T){T.parentNode&&T.parentNode.removeChild(T)})}},nullingGlobal:function(){this.isMultiDrag=cl=!1,Wt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),we(document,"pointerup",this._deselectMultiDrag),we(document,"mouseup",this._deselectMultiDrag),we(document,"touchend",this._deselectMultiDrag),we(document,"keydown",this._checkKeyDown),we(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof cl<"u"&&cl)&&En===this.sortable&&!(i&&Vt(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;ve.length;){var l=ve[0];tt(l,this.options.selectedClass,!1),ve.shift(),Tr({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:l,originalEvent:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},gn(a,{pluginName:"multiDrag",utils:{select:function(i){var l=i.parentNode[Et];!l||!l.options.multiDrag||~ve.indexOf(i)||(En&&En!==l&&(En.multiDrag._deselectMultiDrag(),En=l),tt(i,l.options.selectedClass,!0),ve.push(i))},deselect:function(i){var l=i.parentNode[Et],s=ve.indexOf(i);!l||!l.options.multiDrag||!~s||(tt(i,l.options.selectedClass,!1),ve.splice(s,1))}},eventProperties:function(){var i=this,l=[],s=[];return ve.forEach(function(u){l.push({multiDragElement:u,index:u.sortableIndex});var c;Ht&&u!==Ye?c=-1:Ht?c=lt(u,":not(."+i.options.selectedClass+")"):c=lt(u),s.push({multiDragElement:u,index:c})}),{items:kC(ve),clones:[].concat(Wt),oldIndicies:l,newIndicies:s}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function oN(a,n){ve.forEach(function(i,l){var s=n.children[i.sortableIndex+(a?Number(l):0)];s?n.insertBefore(i,s):n.appendChild(i)})}function Iv(a,n){Wt.forEach(function(i,l){var s=n.children[i.sortableIndex+(a?Number(l):0)];s?n.insertBefore(i,s):n.appendChild(i)})}function yo(){ve.forEach(function(a){a!==Ye&&a.parentNode&&a.parentNode.removeChild(a)})}he.mount(new iN);he.mount(kd,_d);const uN=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:sN,Sortable:he,Swap:lN,default:he},Symbol.toStringTag,{value:"Module"})),cN=Oy(uN);var Yf={exports:{}};var Kv;function fN(){return Kv||(Kv=1,(function(a){(function(){var n={}.hasOwnProperty;function i(){for(var l=[],s=0;s<arguments.length;s++){var u=arguments[s];if(u){var c=typeof u;if(c==="string"||c==="number")l.push(u);else if(Array.isArray(u)){if(u.length){var p=i.apply(null,u);p&&l.push(p)}}else if(c==="object")if(u.toString===Object.prototype.toString)for(var f in u)n.call(u,f)&&u[f]&&l.push(f);else l.push(u.toString())}}return l.join(" ")}a.exports?(i.default=i,a.exports=i):window.classNames=i})()})(Yf)),Yf.exports}var dN="Invariant failed";function pN(a,n){if(!a)throw new Error(dN)}const hN=Object.freeze(Object.defineProperty({__proto__:null,default:pN},Symbol.toStringTag,{value:"Module"})),mN=Oy(hN);var Fv;function gN(){return Fv||(Fv=1,(function(a){var n=cN,i=fN(),l=Vr(),s=mN;function u(z){return z&&z.__esModule?z.default:z}function c(z,_,M,H){Object.defineProperty(z,_,{get:M,set:H,enumerable:!0,configurable:!0})}function p(z,_){return Object.keys(_).forEach(function(M){M==="default"||M==="__esModule"||z.hasOwnProperty(M)||Object.defineProperty(z,M,{enumerable:!0,get:function(){return _[M]}})}),z}c(a.exports,"Sortable",()=>$882b6d93070905b3$re_export$Sortable),c(a.exports,"Direction",()=>$882b6d93070905b3$re_export$Direction),c(a.exports,"DOMRect",()=>$882b6d93070905b3$re_export$DOMRect),c(a.exports,"GroupOptions",()=>$882b6d93070905b3$re_export$GroupOptions),c(a.exports,"MoveEvent",()=>$882b6d93070905b3$re_export$MoveEvent),c(a.exports,"Options",()=>$882b6d93070905b3$re_export$Options),c(a.exports,"PullResult",()=>$882b6d93070905b3$re_export$PullResult),c(a.exports,"PutResult",()=>$882b6d93070905b3$re_export$PutResult),c(a.exports,"SortableEvent",()=>$882b6d93070905b3$re_export$SortableEvent),c(a.exports,"SortableOptions",()=>$882b6d93070905b3$re_export$SortableOptions),c(a.exports,"Utils",()=>$882b6d93070905b3$re_export$Utils),c(a.exports,"ReactSortable",()=>B);function f(z){z.parentElement!==null&&z.parentElement.removeChild(z)}function m(z,_,M){const H=z.children[M]||null;z.insertBefore(_,H)}function v(z){z.forEach(_=>f(_.element))}function g(z){z.forEach(_=>{m(_.parentElement,_.element,_.oldIndex)})}function S(z,_){const M=A(z),H={parentElement:z.from};let $=[];switch(M){case"normal":$=[{element:z.item,newIndex:z.newIndex,oldIndex:z.oldIndex,parentElement:z.from}];break;case"swap":const ee={element:z.item,oldIndex:z.oldIndex,newIndex:z.newIndex,...H},ne={element:z.swapItem,oldIndex:z.newIndex,newIndex:z.oldIndex,...H};$=[ee,ne];break;case"multidrag":$=z.oldIndicies.map((le,V)=>({element:le.multiDragElement,oldIndex:le.index,newIndex:z.newIndicies[V].index,...H}));break}return C($,_)}function x(z,_){const M=E(z,_);return O(z,M)}function E(z,_){const M=[..._];return z.concat().reverse().forEach(H=>M.splice(H.oldIndex,1)),M}function O(z,_,M,H){const $=[..._];return z.forEach(U=>{const I=H&&M&&H(U.item,M);$.splice(U.newIndex,0,I||U.item)}),$}function A(z){return z.oldIndicies&&z.oldIndicies.length>0?"multidrag":z.swapItem?"swap":"normal"}function C(z,_){return z.map(H=>({...H,item:_[H.oldIndex]})).sort((H,$)=>H.oldIndex-$.oldIndex)}function T(z){const{list:_,setList:M,children:H,tag:$,style:U,className:I,clone:ee,onAdd:ne,onChange:le,onChoose:V,onClone:te,onEnd:J,onFilter:se,onRemove:de,onSort:D,onStart:F,onUnchoose:ae,onUpdate:re,onMove:be,onSpill:Te,onSelect:Le,onDeselect:Tt,...We}=z;return We}const R={dragging:null};class B extends l.Component{static defaultProps={clone:_=>_};constructor(_){super(_),this.ref=(0,l.createRef)();const M=[..._.list].map(H=>Object.assign(H,{chosen:!1,selected:!1}));_.setList(M,this.sortable,R),u(s)(!_.plugins,`
7
+ <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,ut={en:{translation:{...ot,userManual:ct}},fr:{translation:{...st,userManual:lt}}};je.use(Qe).init({resources:ut,lng:navigator.language.split(`-`)[0],fallbackLng:`en`,interpolation:{escapeValue:!1}});var dt=je,ft=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),j=s(((e,t)=>{t.exports=ft()}))();function pt(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=pt(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function mt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=pt(e))&&(r&&(r+=` `),r+=t);return r}function ht({checked:e,onChange:t,label:n,inputLabel:r,className:i,...a}){let o=e=>{t?.(e.target.checked,e)},s=r?(0,j.jsxs)(`label`,{className:mt(`PaCheckboxField`,i),children:[(0,j.jsx)(`input`,{className:`PaCheckboxInput`,type:`checkbox`,checked:e,onChange:o,...a}),(0,j.jsx)(`span`,{className:`PaCheckboxField-label`,children:r})]}):(0,j.jsx)(`input`,{className:mt(`PaCheckboxInput`,i),type:`checkbox`,checked:e,onChange:o,...a});return(0,j.jsx)(j.Fragment,{children:n?(0,j.jsxs)(`label`,{className:mt(`PaField`,i),children:[(0,j.jsx)(`span`,{className:`PaField-label`,children:n}),s]}):s})}function gt(){let e=(0,A.useRef)(null),t=(0,A.useRef)(null);return(0,A.useEffect)(()=>{let n=e.current;if(!n)return;let r=()=>{let e=t.current;e!==null&&(t.current=null,queueMicrotask(()=>{n.setSelectionRange(e,e)}))};return n.addEventListener(`focus`,r),()=>n.removeEventListener(`focus`,r)},[]),{inputRef:e,saveCursorPos:e=>{t.current=e.target.selectionStart}}}var _t=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),vt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),yt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),bt=e=>{let t=yt(e);return t.charAt(0).toUpperCase()+t.slice(1)},xt={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},St=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ct=(0,A.createContext)({}),wt=()=>(0,A.useContext)(Ct),Tt=(0,A.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=wt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,A.createElement)(`svg`,{ref:c,...xt,width:t??l??xt.width,height:t??l??xt.height,stroke:e??f,strokeWidth:m,className:_t(`lucide`,p,i),...!a&&!St(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,A.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Et=(e,t)=>{let n=(0,A.forwardRef)(({className:n,...r},i)=>(0,A.createElement)(Tt,{ref:i,iconNode:t,className:_t(`lucide-${vt(bt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=bt(e),n},Dt=Et(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ot=Et(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),kt=Et(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function At({className:e,inputClassName:t,label:n,error:r,value:i,onChange:a,ref:o,...s}){let{inputRef:c,saveCursorPos:l}=gt(),u=(0,j.jsx)(`textarea`,{ref:e=>{c.current=e,typeof o==`function`?o(e):o&&(o.current=e)},className:mt(`PaTextarea`,r&&`error`,t,!n&&e),value:i,onChange:e=>{l(e),a?.(e.target.value,e)},...s});return(0,j.jsxs)(j.Fragment,{children:[n?(0,j.jsxs)(`label`,{className:mt(`PaField`,r&&`error`,e),children:[(0,j.jsx)(`span`,{className:`PaField-label`,children:n}),u]}):u,r&&(0,j.jsx)(`span`,{className:`PaFieldError`,children:r})]})}var jt=(0,A.createContext)(void 0),Mt={autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3,logger:{error:console.error}};function Nt({config:e,children:t}){return(0,j.jsx)(jt.Provider,{value:e,children:t})}function Pt(){let e=(0,A.useContext)(jt);return{autoDismissAlertDurationMs:e?.autoDismissAlertDurationMs??Mt.autoDismissAlertDurationMs,autoDismissInsideFeedbackDurationMs:e?.autoDismissInsideFeedbackDurationMs??Mt.autoDismissInsideFeedbackDurationMs,logger:e?.logger??Mt.logger}}function Ft(e){let{children:t,className:n,disabled:r,outlined:i,icon:a,severity:o=`primary`,ref:s,...c}=e,{autoDismissInsideFeedbackDurationMs:l}=Pt(),[u,d]=(0,A.useState)(!1),[f,p]=(0,A.useState)(!1),m=(0,A.useRef)(r);(0,A.useEffect)(()=>{m.current&&!r&&f&&p(!1),m.current=r},[r,f]);let h=mt(`PaBtn`,o,i&&`outlined`,r&&`disabled`,f&&`feedback`,n),g=(0,A.useCallback)(async t=>{if(e.as===`async`){d(!0),p(!1);try{await e.onClick(t),e.insideFeedback&&(p(!0),e.insideFeedback.autoDismiss&&setTimeout(()=>p(!1),l))}catch(t){e.onError?.(t)}finally{d(!1)}}},[e.as,...e.as===`async`?[e.onClick,!!e.insideFeedback,e.insideFeedback?.autoDismiss,e.onError,l]:[]]),_=(0,A.useCallback)(t=>{e.as&&e.as!==`button`||(e.onClick&&e.onClick(t),e.insideFeedback&&(p(!0),e.insideFeedback.autoDismiss&&setTimeout(()=>p(!1),l)))},[e.as,e.onClick,...!e.as||e.as===`button`?[!!e.insideFeedback,e.insideFeedback?.autoDismiss,l]:[]]);if(e.as===`a`){let{as:e,...n}=c;return(0,j.jsxs)(`a`,{ref:s,className:h,...n,children:[a&&(0,j.jsx)(`span`,{className:`PaBtn-icon`,children:a}),t]})}let{as:v,onClick:y,type:b=`button`,insideFeedback:x,...S}=c;return(0,j.jsx)(`button`,{ref:s,className:h,disabled:r||u,onClick:v===`async`?g:_,type:b,...S,children:u?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Ot,{size:16,className:`PaBtn-spinner`}),t]}):f&&x?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Dt,{size:16,className:`PaBtn-feedbackIcon`}),x.label]}):(0,j.jsxs)(j.Fragment,{children:[a&&(0,j.jsx)(`span`,{className:`PaBtn-icon`,children:a}),t]})})}function It({children:e,severity:t=`info`,title:n,className:r,onClose:i}){return(0,j.jsxs)(`div`,{className:mt(`PaAlert`,t,i&&`dismissible`,r),children:[i&&(0,j.jsx)(`button`,{type:`button`,className:`PaAlert-closeBtn`,onClick:i,"aria-label":`Close`,children:(0,j.jsx)(kt,{size:16})}),n&&(0,j.jsx)(`div`,{className:`PaAlert-title`,children:n}),(0,j.jsx)(`div`,{className:`PaAlert-content`,children:e})]})}function Lt({size:e=`medium`}){return(0,j.jsx)(`div`,{className:mt(`PaSpinner`,e)})}typeof HTMLElement<`u`&&`showPopover`in HTMLElement.prototype||console?.error(`PopupMenu: Popover API is not supported in this browser.`);var Rt=(0,A.createContext)(void 0);Rt.Provider;function zt(e,t){let n=(0,A.useContext)(Rt),r=(0,A.useRef)(void 0);(0,A.useEffect)(()=>{let t,i;i=r.current?r.current.then(a):a(),r.current=i;function a(){return e().then(e=>(t=e??(()=>{}),e),n?e=>n.error(e):void 0)}return()=>{if(t){let e=t();n&&e?.catch(e=>n.error(e))}else{let e=i.then(e=>e?.());n&&e.catch(e=>n.error(e))}}},t)}function Bt({children:e,value:t,onChange:n,variant:r=`default`,className:i}){let a=[];return A.Children.forEach(e,e=>{(0,A.isValidElement)(e)&&e.props&&a.push(e.props)}),(0,j.jsx)(`div`,{className:mt(`PaTabs`,r,i),role:`tablist`,children:a.map(e=>(0,j.jsxs)(`button`,{type:`button`,className:mt(`PaTab`,t===e.value&&`active`,e.className),onClick:()=>!e.disabled&&n(e.value),disabled:e.disabled,role:`tab`,"aria-selected":t===e.value,children:[e.icon&&(0,j.jsx)(`span`,{className:`PaTab-icon`,children:e.icon}),e.label]},e.value))})}function Vt(e){return null}function Ht({visible:e,onHide:t,header:n,footer:r,children:i,className:a,closable:o=!0,size:s=`md`}){let c=(0,A.useRef)(null);return(0,A.useEffect)(()=>{let t=c.current;t&&(e?t.open||t.showModal():t.open&&t.close())},[e]),(0,A.useEffect)(()=>{let e=c.current;if(!e)return;let n=e=>{e.preventDefault(),o&&t()};return e.addEventListener(`cancel`,n),()=>e.removeEventListener(`cancel`,n)},[o,t]),(0,A.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),(0,j.jsxs)(`dialog`,{ref:c,className:mt(`PaDialog`,s===`innerContent`?void 0:s===`sm`?`sizeSm`:s===`lg`?`sizeLg`:`sizeMd`,a),children:[(n||o)&&(0,j.jsxs)(`div`,{className:`PaDialog-header`,children:[n&&(0,j.jsx)(`div`,{className:`PaDialog-title`,children:n}),o&&(0,j.jsx)(`button`,{type:`button`,className:`PaDialog-close`,onClick:t,"aria-label":`Close`,children:(0,j.jsx)(kt,{size:18})})]}),(0,j.jsx)(`div`,{className:`PaDialog-content`,children:i}),r&&(0,j.jsx)(`div`,{className:`PaDialog-footer`,children:r})]})}var Ut=c({MultiDrag:()=>er,Sortable:()=>I,Swap:()=>Qn,default:()=>I});function Wt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gt(e){if(Array.isArray(e))return Wt(e)}function Kt(e,t,n){return(t=nn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qt.apply(null,arguments)}function Jt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Yt(){throw TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xt(Object(n),!0).forEach(function(t){Kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qt(e,t){if(e==null)return{};var n,r,i=$t(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function en(e){return Gt(e)||Jt(e)||an(e)||Yt()}function tn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nn(e){var t=tn(e,`string`);return typeof t==`symbol`?t:t+``}function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rn(e)}function an(e,t){if(e){if(typeof e==`string`)return Wt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wt(e,t):void 0}}function on(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function M(e,t,n){e.addEventListener(t,n,!ar&&dr)}function N(e,t,n){e.removeEventListener(t,n,!ar&&dr)}function sn(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function cn(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function ln(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&sn(e,t):sn(e,t))||r&&e===n)return e;if(e===n)break}while(e=cn(e))}return null}function un(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(fr,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(fr,` `))}function P(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function dn(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=P(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function fn(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function pn(){return document.scrollingElement||document.documentElement}function F(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==pn()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!ar))do if(i&&i.getBoundingClientRect&&(P(i,`transform`)!==`none`||n&&P(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(P(i,`border-top-width`)),s-=f.left+parseInt(P(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=dn(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function mn(e,t,n){for(var r=bn(e,!0),i=F(e)[t];r;){var a=F(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===pn())break;r=bn(r,!1)}return!1}function hn(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==I.ghost&&(r||o[a]!==I.dragged)&&ln(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function gn(e,t){for(var n=e.lastElementChild;n&&(n===I.ghost||P(n,`display`)===`none`||t&&!sn(n,t));)n=n.previousElementSibling;return n||null}function _n(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==I.clone&&(!t||sn(e,t))&&n++;return n}function vn(e){var t=0,n=0,r=pn();if(e)do{var i=dn(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function yn(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function bn(e,t){if(!e||!e.getBoundingClientRect)return pn();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=P(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return pn();if(r||t)return n;r=!0}}while(n=n.parentNode);return pn()}function xn(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Sn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Cn(e,t){return function(){if(!pr){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),pr=setTimeout(function(){pr=void 0},t)}}}function wn(){clearTimeout(pr),pr=void 0}function Tn(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function En(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Dn(e,t){P(e,`position`,`absolute`),P(e,`top`,t.top),P(e,`left`,t.left),P(e,`width`,t.width),P(e,`height`,t.height)}function On(e){P(e,`position`,``),P(e,`top`,``),P(e,`left`,``),P(e,`width`,``),P(e,`height`,``)}function kn(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!ln(i,t.draggable,e,!1)||i.animated||i===n)){var a=F(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function An(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(P(t,`display`)===`none`||t===I.ghost)){e.push({target:t,rect:F(t)});var n=Zt({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=dn(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(yn(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=F(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=dn(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Sn(c,s)&&!Sn(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Mn(u,c,l,r.options)),Sn(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){P(e,`transition`,``),P(e,`transform`,``);var i=dn(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,P(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=jn(e),P(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),P(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){P(e,`transition`,``),P(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function jn(e){return e.offsetWidth}function Mn(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}function Nn(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[mr],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!ar&&!or?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=Zt(Zt({},m),_r.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function Pn(e){Nn(Zt({putSortable:jr,cloneEl:wr,targetEl:L,rootEl:xr,oldIndex:Er,oldDraggableIndex:Or,newIndex:Dr,newDraggableIndex:kr},e))}function I(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=qt({},t),e[mr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ni(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:I.supportPointer!==!1&&`PointerEvent`in window&&(!cr||lr),emptyInsertThreshold:5};for(var r in _r.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in ai(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:ei,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?M(e,`pointerdown`,this._onTapStart):(M(e,`mousedown`,this._onTapStart),M(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(M(e,`dragover`,this),M(e,`dragenter`,this)),Pr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),qt(this,An())}function Fn(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function In(e,t,n,r,i,a,o,s){var c,l=e[mr],u=l.options.onMove,d;return window.CustomEvent&&!ar&&!or?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||F(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Ln(e){e.draggable=!1}function Rn(){Yr=!1}function zn(e,t,n){var r=F(hn(n.el,0,n.options,!0)),i=kn(n.el,n.options,R),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function Bn(e,t,n){var r=F(gn(n.el,n.options.draggable)),i=kn(n.el,n.options,R),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function Vn(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&Kr<l*i){if(!Wr&&(Ur===1?c>u+l*a/2:c<d-l*a/2)&&(Wr=!0),Wr)f=!0;else if(Ur===1?c<u+Kr:c>d-Kr)return-Ur}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Hn(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Hn(e){return _n(L)<_n(e)?1:-1}function Un(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Wn(e){Xr.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&Xr.push(r)}}function Gn(e){return setTimeout(e,0)}function Kn(e){return clearTimeout(e)}function qn(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?M(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?M(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?M(document,`touchmove`,this._handleFallbackAutoScroll):M(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?N(document,`dragover`,this._handleAutoScroll):(N(document,`pointermove`,this._handleFallbackAutoScroll),N(document,`touchmove`,this._handleFallbackAutoScroll),N(document,`mousemove`,this._handleFallbackAutoScroll)),Yn(),Jn(),wn()},nulling:function(){gi=fi=di=pi=_i=mi=hi=null,ui.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(gi=e,t||this.options.forceAutoScrollFallback||or||ar||cr){vi(e,this.options,a,t);var o=bn(a,!0);pi&&(!_i||r!==mi||i!==hi)&&(_i&&Yn(),_i=setInterval(function(){var a=bn(document.elementFromPoint(r,i),!0);a!==o&&(o=a,Jn()),vi(e,n.options,a,t)},10),mi=r,hi=i)}else{if(!this.options.bubbleScroll||bn(a,!0)===pn()){Jn();return}vi(e,this.options,bn(a,!1),!1)}}},qt(e,{pluginName:`scroll`,initializeByDefault:!0})}function Jn(){ui.forEach(function(e){clearInterval(e.pid)}),ui=[]}function Yn(){clearInterval(_i)}function Xn(){}function Zn(){}function Qn(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){bi=e.dragEl},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,a=e.changed,o=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=bi;r(n)===!1?bi=null:(un(n,c.swapClass,!0),bi=n),l&&l!==bi&&un(l,c.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,a=this.options;bi&&un(bi,a.swapClass,!1),bi&&(a.swap||n&&n.options.swap)&&r!==bi&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),$n(r,bi),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){bi=null}},qt(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:bi}}})}function $n(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=_n(e),a=_n(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function er(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?M(document,`pointerup`,this._deselectMultiDrag):(M(document,`mouseup`,this._deselectMultiDrag),M(document,`touchend`,this._deselectMultiDrag))),M(document,`keydown`,this._checkKeyDown),M(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r=``;z.length&&Ci===e?z.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){Di=e.dragEl},delayEnded:function(){this.isMultiDrag=~z.indexOf(Di)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<z.length;r++)xi.push(En(z[r])),xi[r].sortableIndex=z[r].sortableIndex,xi[r].draggable=!1,xi[r].style[`will-change`]=``,un(xi[r],this.options.selectedClass,!1),z[r]===Di&&un(xi[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||z.length&&Ci===t&&(nr(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(nr(!1,n),xi.forEach(function(e){P(e,`display`,``)}),t(),ki=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(xi.forEach(function(e){P(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),ki=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Ci&&Ci.multiDrag._deselectMultiDrag(),z.forEach(function(e){e.sortableIndex=_n(e)}),z=z.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),Ei=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){z.forEach(function(e){e!==Di&&P(e,`position`,`absolute`)});var r=F(Di,!1,!0,!0);z.forEach(function(e){e!==Di&&Dn(e,r)}),Ti=!0,wi=!0}n.animateAll(function(){Ti=!1,wi=!1,t.options.animation&&z.forEach(function(e){On(e)}),t.options.sort&&rr()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Ti&&~z.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;z.length>1&&(z.forEach(function(e){r.addAnimationState({target:e,rect:Ti?F(e):i}),On(e),e.fromRect=i,t.removeAnimationState(e)}),Ti=!1,tr(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),wi=!1,s.animation&&z.length>1&&(Ti||!n&&!i.options.sort&&!o)){var c=F(Di,!1,!0,!0);z.forEach(function(e){e!==Di&&(Dn(e,c),a.appendChild(e))}),Ti=!0}if(!n)if(Ti||rr(),z.length>1){var l=ki;i._showClone(t),i.options.animation&&!ki&&l&&xi.forEach(function(e){i.addAnimationState({target:e,rect:Oi}),e.fromRect=Oi,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(z.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Oi=qt({},t);var i=dn(Di,!0);Oi.top-=i.f,Oi.left-=i.e}},dragOverAnimationComplete:function(){Ti&&(Ti=!1,rr())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!Ei)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),un(Di,l.selectedClass,!~z.indexOf(Di)),~z.indexOf(Di))z.splice(z.indexOf(Di),1),Si=null,Nn({sortable:i,rootEl:n,name:`deselect`,targetEl:Di,originalEvent:t});else{if(z.push(Di),Nn({sortable:i,rootEl:n,name:`select`,targetEl:Di,originalEvent:t}),t.shiftKey&&Si&&i.el.contains(Si)){var d=_n(Si),f=_n(Di);~d&&~f&&d!==f&&(function(){var e,a;f>d?(a=d,e=f):(a=f,e=d+1);for(var o=l.filter;a<e;a++)~z.indexOf(u[a])||ln(u[a],l.draggable,r,!1)&&(o&&(typeof o==`function`?o.call(i,t,u[a],i):o.split(`,`).some(function(e){return ln(u[a],e.trim(),r,!1)}))||(un(u[a],l.selectedClass,!0),z.push(u[a]),Nn({sortable:i,rootEl:n,name:`select`,targetEl:u[a],originalEvent:t})))})()}else Si=Di;Ci=c}if(Ei&&this.isMultiDrag){if(Ti=!1,(r[mr].options.sort||r!==n)&&z.length>1){var p=F(Di),m=_n(Di,`:not(.`+this.options.selectedClass+`)`);if(!wi&&l.animation&&(Di.thisAnimationDuration=null),c.captureAnimationState(),!wi&&(l.animation&&(Di.fromRect=p,z.forEach(function(e){if(e.thisAnimationDuration=null,e!==Di){var t=Ti?F(e):p;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),rr(),z.forEach(function(e){u[m]?r.insertBefore(e,u[m]):r.appendChild(e),m++}),o===_n(Di))){var h=!1;z.forEach(function(e){if(e.sortableIndex!==_n(e)){h=!0;return}}),h&&(a(`update`),a(`sort`))}z.forEach(function(e){On(e)}),c.animateAll()}Ci=c}(n===r||s&&s.lastPutMode!==`clone`)&&xi.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=Ei=!1,xi.length=0},destroyGlobal:function(){this._deselectMultiDrag(),N(document,`pointerup`,this._deselectMultiDrag),N(document,`mouseup`,this._deselectMultiDrag),N(document,`touchend`,this._deselectMultiDrag),N(document,`keydown`,this._checkKeyDown),N(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(Ei!==void 0&&Ei)&&Ci===this.sortable&&!(e&&ln(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;z.length;){var t=z[0];un(t,this.options.selectedClass,!1),z.shift(),Nn({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},qt(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[mr];!t||!t.options.multiDrag||~z.indexOf(e)||(Ci&&Ci!==t&&(Ci.multiDrag._deselectMultiDrag(),Ci=t),un(e,t.options.selectedClass,!0),z.push(e))},deselect:function(e){var t=e.parentNode[mr],n=z.indexOf(e);!t||!t.options.multiDrag||!~n||(un(e,t.options.selectedClass,!1),z.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return z.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=Ti&&r!==Di?-1:Ti?_n(r,`:not(.`+e.options.selectedClass+`)`):_n(r);n.push({multiDragElement:r,index:i})}),{items:en(z),clones:[].concat(xi),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function tr(e,t){z.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function nr(e,t){xi.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function rr(){z.forEach(function(e){e!==Di&&e.parentNode&&e.parentNode.removeChild(e)})}var ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,L,br,R,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,z,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai=o((()=>{ir=`1.15.7`,ar=on(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),or=on(/Edge/i),sr=on(/firefox/i),cr=on(/safari/i)&&!on(/chrome/i)&&!on(/android/i),lr=on(/iP(ad|od|hone)/i),ur=on(/chrome/i)&&on(/android/i),dr={capture:!1,passive:!1},fr=/\s+/g,mr=`Sortable`+new Date().getTime(),hr=[],gr={initializeByDefault:!0},_r={mount:function(e){for(var t in gr)gr.hasOwnProperty(t)&&!(t in e)&&(e[t]=gr[t]);hr.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),hr.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;hr.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Zt({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Zt({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in hr.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,qt(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return hr.forEach(function(r){typeof r.eventProperties==`function`&&qt(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return hr.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},vr=[`evt`],yr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Qt(n,vr);_r.pluginEvent.bind(I)(e,t,Zt({dragEl:L,parentEl:br,ghostEl:R,rootEl:xr,nextEl:Sr,lastDownEl:Cr,cloneEl:wr,cloneHidden:Tr,dragStarted:Vr,putSortable:jr,activeSortable:I.active,originalEvent:r,oldIndex:Er,oldDraggableIndex:Or,newIndex:Dr,newDraggableIndex:kr,hideGhostForTarget:oi,unhideGhostForTarget:si,cloneNowHidden:function(){Tr=!0},cloneNowShown:function(){Tr=!1},dispatchSortableEvent:function(e){Pn({sortable:t,name:e,originalEvent:r})}},i))},Mr=!1,Nr=!1,Pr=[],Wr=!1,Gr=!1,Jr=[],Yr=!1,Xr=[],Zr=typeof document<`u`,Qr=lr,$r=or||ar?`cssFloat`:`float`,ei=Zr&&!ur&&!lr&&`draggable`in document.createElement(`div`),ti=function(){if(Zr){if(ar)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),ni=function(e,t){var n=P(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=hn(e,0,t),a=hn(e,1,t),o=i&&P(i),s=a&&P(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+F(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+F(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[$r]===`none`||a&&n[$r]===`none`&&c+l>r)?`vertical`:`horizontal`},ri=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},ii=function(e,t){var n;return Pr.some(function(r){var i=r[mr].options.emptyInsertThreshold;if(!(!i||gn(r))){var a=F(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},ai=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||rn(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},oi=function(){!ti&&R&&P(R,`display`,`none`)},si=function(){!ti&&R&&P(R,`display`,``)},Zr&&!ur&&document.addEventListener(`click`,function(e){if(Nr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Nr=!1,!1},!0),ci=function(e){if(L){e=e.touches?e.touches[0]:e;var t=ii(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[mr]._onDragOver(n)}}},li=function(e){L&&L.parentNode[mr]._isOutsideThisEl(e.target)},I.prototype={constructor:I,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Hr=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,L):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(Wn(n),!L&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&cr&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=ln(s,r.draggable,n,!1),!(s&&s.animated)&&Cr!==s)){if(Er=_n(s),Or=_n(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){Pn({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),yr(`filter`,t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=ln(c,r.trim(),n,!1),r)return Pn({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),yr(`filter`,t,{evt:e}),!0}),l)){i&&e.preventDefault();return}r.handle&&!ln(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!L&&n.parentNode===i){var c=F(n);if(xr=i,L=n,br=L.parentNode,Sr=L.nextSibling,Cr=n,Ar=a.group,I.dragged=L,Fr={target:L,clientX:(t||e).clientX,clientY:(t||e).clientY},zr=Fr.clientX-c.left,Br=Fr.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,L.style[`will-change`]=`all`,s=function(){if(yr(`delayEnded`,r,{evt:e}),I.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!sr&&r.nativeDraggable&&(L.draggable=!0),r._triggerDragStart(e,t),Pn({sortable:r,name:`choose`,originalEvent:e}),un(L,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){fn(L,e.trim(),Ln)}),M(o,`dragover`,ci),M(o,`mousemove`,ci),M(o,`touchmove`,ci),a.supportPointer?(M(o,`pointerup`,r._onDrop),!this.nativeDraggable&&M(o,`pointercancel`,r._onDrop)):(M(o,`mouseup`,r._onDrop),M(o,`touchend`,r._onDrop),M(o,`touchcancel`,r._onDrop)),sr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,L.draggable=!0),yr(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(or||ar))){if(I.eventCanceled){this._onDrop();return}a.supportPointer?(M(o,`pointerup`,r._disableDelayedDrag),M(o,`pointercancel`,r._disableDelayedDrag)):(M(o,`mouseup`,r._disableDelayedDrag),M(o,`touchend`,r._disableDelayedDrag),M(o,`touchcancel`,r._disableDelayedDrag)),M(o,`mousemove`,r._delayedDragTouchMoveHandler),M(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&M(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){L&&Ln(L),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;N(e,`mouseup`,this._disableDelayedDrag),N(e,`touchend`,this._disableDelayedDrag),N(e,`touchcancel`,this._disableDelayedDrag),N(e,`pointerup`,this._disableDelayedDrag),N(e,`pointercancel`,this._disableDelayedDrag),N(e,`mousemove`,this._delayedDragTouchMoveHandler),N(e,`touchmove`,this._delayedDragTouchMoveHandler),N(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?M(document,`pointermove`,this._onTouchMove):t?M(document,`touchmove`,this._onTouchMove):M(document,`mousemove`,this._onTouchMove):(M(L,`dragend`,this),M(xr,`dragstart`,this._onDragStart));try{document.selection?Gn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Mr=!1,xr&&L){yr(`dragStarted`,this,{evt:t}),this.nativeDraggable&&M(document,`dragover`,li);var n=this.options;!e&&un(L,n.dragClass,!1),un(L,n.ghostClass,!0),I.active=this,e&&this._appendGhost(),Pn({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ir){this._lastX=Ir.clientX,this._lastY=Ir.clientY,oi();for(var e=document.elementFromPoint(Ir.clientX,Ir.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ir.clientX,Ir.clientY),e!==t);)t=e;if(L.parentNode[mr]._isOutsideThisEl(e),t)do{if(t[mr]){var n=void 0;if(n=t[mr]._onDragOver({clientX:Ir.clientX,clientY:Ir.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=cn(t));si()}},_onTouchMove:function(e){if(Fr){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=R&&dn(R,!0),o=R&&a&&a.a,s=R&&a&&a.d,c=Qr&&qr&&vn(qr),l=(i.clientX-Fr.clientX+r.x)/(o||1)+(c?c[0]-Jr[0]:0)/(o||1),u=(i.clientY-Fr.clientY+r.y)/(s||1)+(c?c[1]-Jr[1]:0)/(s||1);if(!I.active&&!Mr){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(R){a?(a.e+=l-(Lr||0),a.f+=u-(Rr||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;P(R,`webkitTransform`,d),P(R,`mozTransform`,d),P(R,`msTransform`,d),P(R,`transform`,d),Lr=l,Rr=u,Ir=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!R){var e=this.options.fallbackOnBody?document.body:xr,t=F(L,!0,Qr,!0,e),n=this.options;if(Qr){for(qr=e;P(qr,`position`)===`static`&&P(qr,`transform`)===`none`&&qr!==document;)qr=qr.parentNode;qr!==document.body&&qr!==document.documentElement?(qr===document&&(qr=pn()),t.top+=qr.scrollTop,t.left+=qr.scrollLeft):qr=pn(),Jr=vn(qr)}R=L.cloneNode(!0),un(R,n.ghostClass,!1),un(R,n.fallbackClass,!0),un(R,n.dragClass,!0),P(R,`transition`,``),P(R,`transform`,``),P(R,`box-sizing`,`border-box`),P(R,`margin`,0),P(R,`top`,t.top),P(R,`left`,t.left),P(R,`width`,t.width),P(R,`height`,t.height),P(R,`opacity`,`0.8`),P(R,`position`,Qr?`absolute`:`fixed`),P(R,`zIndex`,`100000`),P(R,`pointerEvents`,`none`),I.ghost=R,e.appendChild(R),P(R,`transform-origin`,zr/parseInt(R.style.width)*100+`% `+Br/parseInt(R.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(yr(`dragStart`,this,{evt:e}),I.eventCanceled){this._onDrop();return}yr(`setupClone`,this),I.eventCanceled||(wr=En(L),wr.removeAttribute(`id`),wr.draggable=!1,wr.style[`will-change`]=``,this._hideClone(),un(wr,this.options.chosenClass,!1),I.clone=wr),n.cloneId=Gn(function(){yr(`clone`,n),!I.eventCanceled&&(n.options.removeCloneOnHide||xr.insertBefore(wr,L),n._hideClone(),Pn({sortable:n,name:`clone`}))}),!t&&un(L,i.dragClass,!0),t?(Nr=!0,n._loopId=setInterval(n._emulateDragOver,50)):(N(document,`mouseup`,n._onDrop),N(document,`touchend`,n._onDrop),N(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,L)),M(document,`drop`,n),P(L,`transform`,`translateZ(0)`)),Mr=!0,n._dragStartId=Gn(n._dragStarted.bind(n,t,e)),M(document,`selectstart`,n),Vr=!0,window.getSelection().removeAllRanges(),cr&&P(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=I.active,l=Ar===s,u=o.sort,d=jr||c,f,p=this,m=!1;if(Yr)return;function h(o,s){yr(o,p,Zt({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return In(xr,t,L,r,n,F(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(un(L,jr?jr.options.ghostClass:c.options.ghostClass,!1),un(L,o.ghostClass,!0)),jr!==p&&p!==I.active?jr=p:p===I.active&&jr&&(jr=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===L&&!L.animated||n===t&&!n.animated)&&(Hr=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(L.parentNode[mr]._isOutsideThisEl(e.target),!r&&ci(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Dr=_n(L),kr=_n(L,o.draggable),Pn({sortable:p,name:`change`,toEl:t,newIndex:Dr,newDraggableIndex:kr,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ln(n,o.draggable,t,!0),h(`dragOver`),I.eventCanceled)return m;if(L.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(Nr=!1,c&&!o.disabled&&(l?u||(a=br!==xr):jr===this||(this.lastPutMode=Ar.checkPull(this,c,L,e))&&s.checkPut(this,c,L,e))){if(f=this._getDirection(e,n)===`vertical`,r=F(L),h(`dragOverValid`),I.eventCanceled)return m;if(a)return br=xr,g(),this._hideClone(),h(`revert`),I.eventCanceled||(Sr?xr.insertBefore(L,Sr):xr.appendChild(L)),_(!0);var y=gn(t,o.draggable);if(!y||Bn(e,f,this)&&!y.animated){if(y===L)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=F(n)),In(xr,t,L,r,n,i,e,!!n)!==!1)return g(),y&&y.nextSibling?t.insertBefore(L,y.nextSibling):t.appendChild(L),br=t,v(),_(!0)}else if(y&&zn(e,f,this)){var b=hn(t,0,o,!0);if(b===L)return _(!1);if(n=b,i=F(n),In(xr,t,L,r,n,i,e,!1)!==!1)return g(),t.insertBefore(L,b),br=t,v(),_(!0)}else if(n.parentNode===t){i=F(n);var x=0,S,C=L.parentNode!==t,w=!ri(L.animated&&L.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=mn(n,`top`,`top`)||mn(L,`top`,`top`),D=E?E.scrollTop:void 0;Hr!==n&&(S=i[T],Wr=!1,Gr=!w&&o.invertSwap||C),x=Vn(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Gr,Hr===n);var ee;if(x!==0){var te=_n(L);do te-=x,ee=br.children[te];while(ee&&(P(ee,`display`)===`none`||ee===R))}if(x===0||ee===n)return _(!1);Hr=n,Ur=x;var ne=n.nextElementSibling,re=!1;re=x===1;var ie=In(xr,t,L,r,n,i,e,re);if(ie!==!1)return(ie===1||ie===-1)&&(re=ie===1),Yr=!0,setTimeout(Rn,30),g(),re&&!ne?t.appendChild(L):n.parentNode.insertBefore(L,re?ne:n),E&&Tn(E,0,D-E.scrollTop),br=L.parentNode,S!==void 0&&!Gr&&(Kr=Math.abs(S-F(n)[T])),v(),_(!0)}if(t.contains(L))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){N(document,`mousemove`,this._onTouchMove),N(document,`touchmove`,this._onTouchMove),N(document,`pointermove`,this._onTouchMove),N(document,`dragover`,ci),N(document,`mousemove`,ci),N(document,`touchmove`,ci)},_offUpEvents:function(){var e=this.el.ownerDocument;N(e,`mouseup`,this._onDrop),N(e,`touchend`,this._onDrop),N(e,`pointerup`,this._onDrop),N(e,`pointercancel`,this._onDrop),N(e,`touchcancel`,this._onDrop),N(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(Dr=_n(L),kr=_n(L,n.draggable),yr(`drop`,this,{evt:e}),br=L&&L.parentNode,Dr=_n(L),kr=_n(L,n.draggable),I.eventCanceled){this._nulling();return}Mr=!1,Gr=!1,Wr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kn(this.cloneId),Kn(this._dragStartId),this.nativeDraggable&&(N(document,`drop`,this),N(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),cr&&P(document.body,`user-select`,``),P(L,`transform`,``),e&&(Vr&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),R&&R.parentNode&&R.parentNode.removeChild(R),(xr===br||jr&&jr.lastPutMode!==`clone`)&&wr&&wr.parentNode&&wr.parentNode.removeChild(wr),L&&(this.nativeDraggable&&N(L,`dragend`,this),Ln(L),L.style[`will-change`]=``,Vr&&!Mr&&un(L,jr?jr.options.ghostClass:this.options.ghostClass,!1),un(L,this.options.chosenClass,!1),Pn({sortable:this,name:`unchoose`,toEl:br,newIndex:null,newDraggableIndex:null,originalEvent:e}),xr===br?Dr!==Er&&Dr>=0&&(Pn({sortable:this,name:`update`,toEl:br,originalEvent:e}),Pn({sortable:this,name:`sort`,toEl:br,originalEvent:e})):(Dr>=0&&(Pn({rootEl:br,name:`add`,toEl:br,fromEl:xr,originalEvent:e}),Pn({sortable:this,name:`remove`,toEl:br,originalEvent:e}),Pn({rootEl:br,name:`sort`,toEl:br,fromEl:xr,originalEvent:e}),Pn({sortable:this,name:`sort`,toEl:br,originalEvent:e})),jr&&jr.save()),I.active&&((Dr==null||Dr===-1)&&(Dr=Er,kr=Or),Pn({sortable:this,name:`end`,toEl:br,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yr(`nulling`,this),xr=L=br=R=Sr=wr=Cr=Tr=Fr=Ir=Vr=Dr=kr=Er=Or=Hr=Ur=jr=Ar=I.dragged=I.ghost=I.clone=I.active=null;var e=this.el;Xr.forEach(function(t){e.contains(t)&&(t.checked=!0)}),Xr.length=Lr=Rr=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:L&&(this._onDragOver(e),Fn(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],ln(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Un(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];ln(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ln(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=_r.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&ai(n)},destroy:function(){yr(`destroy`,this);var e=this.el;e[mr]=null,N(e,`mousedown`,this._onTapStart),N(e,`touchstart`,this._onTapStart),N(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(N(e,`dragover`,this),N(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),Pr.splice(Pr.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Tr){if(yr(`hideClone`,this),I.eventCanceled)return;P(wr,`display`,`none`),this.options.removeCloneOnHide&&wr.parentNode&&wr.parentNode.removeChild(wr),Tr=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(Tr){if(yr(`showClone`,this),I.eventCanceled)return;L.parentNode==xr&&!this.options.group.revertClone?xr.insertBefore(wr,L):Sr?xr.insertBefore(wr,Sr):xr.appendChild(wr),this.options.group.revertClone&&this.animate(L,wr),P(wr,`display`,``),Tr=!1}}},Zr&&M(document,`touchmove`,function(e){(I.active||Mr)&&e.cancelable&&e.preventDefault()}),I.utils={on:M,off:N,css:P,find:fn,is:function(e,t){return!!ln(e,t,e,!1)},extend:xn,throttle:Cn,closest:ln,toggleClass:un,clone:En,index:_n,nextTick:Gn,cancelNextTick:Kn,detectDirection:ni,getChild:hn,expando:mr},I.get=function(e){return e[mr]},I.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(I.utils=Zt(Zt({},I.utils),e.utils)),_r.mount(e)})},I.create=function(e,t){return new I(e,t)},I.version=ir,ui=[],pi=!1,vi=Cn(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=pn(),l=!1,u;fi!==n&&(fi=n,Jn(),di=t.scroll,u=t.scrollFn,di===!0&&(di=bn(n,!0)));var d=0,f=di;do{var p=f,m=F(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=P(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var ee=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),te=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!ui[d])for(var ne=0;ne<=d;ne++)ui[ne]||(ui[ne]={});(ui[d].vx!=ee||ui[d].vy!=te||ui[d].el!==p)&&(ui[d].el=p,ui[d].vx=ee,ui[d].vy=te,clearInterval(ui[d].pid),(ee!=0||te!=0)&&(l=!0,ui[d].pid=setInterval(function(){r&&this.layer===0&&I.active._onTouchMove(gi);var t=ui[this.layer].vy?ui[this.layer].vy*s:0,n=ui[this.layer].vx?ui[this.layer].vx*s:0;typeof u==`function`&&u.call(I.dragged.parentNode[mr],n,t,e,gi,ui[this.layer].el)!==`continue`||Tn(ui[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=bn(f,!1)));pi=l}},30),yi=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}},Xn.prototype={startIndex:null,dragStart:function(e){this.startIndex=e.oldDraggableIndex},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=hn(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:yi},qt(Xn,{pluginName:`revertOnSpill`}),Zn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:yi},qt(Zn,{pluginName:`removeOnSpill`}),z=[],xi=[],wi=!1,Ti=!1,Ei=!1,I.mount(new qn),I.mount(Zn,Xn)})),ji=s(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if(a===`string`||a===`number`)t.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&t.push(o)}}else if(a===`object`)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}return t.join(` `)}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),B=c({default:()=>Mi});function Mi(e,t){if(!e){if(Ni)throw Error(Pi);var n=typeof t==`function`?t():t,r=n?Pi+`: `+n:Pi;throw Error(r)}}var Ni,Pi,Fi=o((()=>{Ni=!0,Pi=`Invariant failed`}));s(((e,t)=>{var n=(Ai(),d(Ut)),r=ji(),i=Ne(),a=(Fi(),d(B));function o(e){return e&&e.__esModule?e.default:e}function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function c(e,t){return Object.keys(t).forEach(function(n){n===`default`||n===`__esModule`||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),e}s(t.exports,`Sortable`,()=>$882b6d93070905b3$re_export$Sortable),s(t.exports,`Direction`,()=>$882b6d93070905b3$re_export$Direction),s(t.exports,`DOMRect`,()=>$882b6d93070905b3$re_export$DOMRect),s(t.exports,`GroupOptions`,()=>$882b6d93070905b3$re_export$GroupOptions),s(t.exports,`MoveEvent`,()=>$882b6d93070905b3$re_export$MoveEvent),s(t.exports,`Options`,()=>$882b6d93070905b3$re_export$Options),s(t.exports,`PullResult`,()=>$882b6d93070905b3$re_export$PullResult),s(t.exports,`PutResult`,()=>$882b6d93070905b3$re_export$PutResult),s(t.exports,`SortableEvent`,()=>$882b6d93070905b3$re_export$SortableEvent),s(t.exports,`SortableOptions`,()=>$882b6d93070905b3$re_export$SortableOptions),s(t.exports,`Utils`,()=>$882b6d93070905b3$re_export$Utils),s(t.exports,`ReactSortable`,()=>S);function l(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function u(e,t,n){let r=e.children[n]||null;e.insertBefore(t,r)}function f(e){e.forEach(e=>l(e.element))}function p(e){e.forEach(e=>{u(e.parentElement,e.element,e.oldIndex)})}function m(e,t){let n=v(e),r={parentElement:e.from},i=[];switch(n){case`normal`:i=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case`swap`:i=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case`multidrag`:i=e.oldIndicies.map((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r}));break}return y(i,t)}function h(e,t){return _(e,g(e,t))}function g(e,t){let n=[...t];return e.concat().reverse().forEach(e=>n.splice(e.oldIndex,1)),n}function _(e,t,n,r){let i=[...t];return e.forEach(e=>{let t=r&&n&&r(e.item,n);i.splice(e.newIndex,0,t||e.item)}),i}function v(e){return e.oldIndicies&&e.oldIndicies.length>0?`multidrag`:e.swapItem?`swap`:`normal`}function y(e,t){return e.map(e=>({...e,item:t[e.oldIndex]})).sort((e,t)=>e.oldIndex-t.oldIndex)}function b(e){let{list:t,setList:n,children:r,tag:i,style:a,className:o,clone:s,onAdd:c,onChange:l,onChoose:u,onClone:d,onEnd:f,onFilter:p,onRemove:m,onSort:h,onStart:g,onUnchoose:_,onUpdate:v,onMove:y,onSpill:b,onSelect:x,onDeselect:S,...C}=e;return C}var x={dragging:null},S=class extends i.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,i.createRef)();let t=[...e.list].map(e=>Object.assign(e,{chosen:!1,selected:!1}));e.setList(t,this.sortable,x),o(a)(!e.plugins,`
9
9
  Plugins prop is no longer supported.
10
10
  Instead, mount it with "Sortable.mount(new MultiDrag())"
11
11
  Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
12
- `)}componentDidMount(){if(this.ref.current===null)return;const _=this.makeOptions();u(n).create(this.ref.current,_)}componentDidUpdate(_){_.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:_,style:M,className:H,id:$}=this.props,U={style:M,className:H,id:$},I=!_||_===null?"div":_;return(0,l.createElement)(I,{ref:this.ref,...U},this.getChildren())}getChildren(){const{children:_,dataIdAttr:M,selectedClass:H="sortable-selected",chosenClass:$="sortable-chosen",dragClass:U="sortable-drag",fallbackClass:I="sortable-falback",ghostClass:ee="sortable-ghost",swapClass:ne="sortable-swap-highlight",filter:le="sortable-filter",list:V}=this.props;if(!_||_==null)return null;const te=M||"data-id";return l.Children.map(_,(J,se)=>{if(J===void 0)return;const de=V[se]||{},{className:D}=J.props,F=typeof le=="string"&&{[le.replace(".","")]:!!de.filtered},ae=u(i)(D,{[H]:de.selected,[$]:de.chosen,...F});return(0,l.cloneElement)(J,{[te]:J.key,className:ae})})}get sortable(){const _=this.ref.current;if(_===null)return null;const M=Object.keys(_).find(H=>H.includes("Sortable"));return M?_[M]:null}makeOptions(){const _=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],M=["onChange","onClone","onFilter","onSort"],H=T(this.props);return _.forEach(U=>H[U]=this.prepareOnHandlerPropAndDOM(U)),M.forEach(U=>H[U]=this.prepareOnHandlerProp(U)),{...H,onMove:(U,I)=>{const{onMove:ee}=this.props,ne=U.willInsertAfter||-1;if(!ee)return ne;const le=ee(U,I,this.sortable,R);return typeof le>"u"?!1:le}}}prepareOnHandlerPropAndDOM(_){return M=>{this.callOnHandlerProp(M,_),this[_](M)}}prepareOnHandlerProp(_){return M=>{this.callOnHandlerProp(M,_)}}callOnHandlerProp(_,M){const H=this.props[M];H&&H(_,this.sortable,R)}onAdd(_){const{list:M,setList:H,clone:$}=this.props,U=[...R.dragging.props.list],I=S(_,U);v(I);const ee=O(I,M,_,$).map(ne=>Object.assign(ne,{selected:!1}));H(ee,this.sortable,R)}onRemove(_){const{list:M,setList:H}=this.props,$=A(_),U=S(_,M);g(U);let I=[...M];if(_.pullMode!=="clone")I=E(U,I);else{let ee=U;switch($){case"multidrag":ee=U.map((ne,le)=>({...ne,element:_.clones[le]}));break;case"normal":ee=U.map(ne=>({...ne,element:_.clone}));break;default:u(s)(!0,`mode "${$}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${$}" plugin`)}v(ee),U.forEach(ne=>{const le=ne.oldIndex,V=this.props.clone(ne.item,_);I.splice(le,1,V)})}I=I.map(ee=>Object.assign(ee,{selected:!1})),H(I,this.sortable,R)}onUpdate(_){const{list:M,setList:H}=this.props,$=S(_,M);v($),g($);const U=x($,M);return H(U,this.sortable,R)}onStart(){R.dragging=this}onEnd(){R.dragging=null}onChoose(_){const{list:M,setList:H}=this.props,$=M.map((U,I)=>{let ee=U;return I===_.oldIndex&&(ee=Object.assign(U,{chosen:!0})),ee});H($,this.sortable,R)}onUnchoose(_){const{list:M,setList:H}=this.props,$=M.map((U,I)=>{let ee=U;return I===_.oldIndex&&(ee=Object.assign(ee,{chosen:!1})),ee});H($,this.sortable,R)}onSpill(_){const{removeOnSpill:M,revertOnSpill:H}=this.props;M&&!H&&f(_.item)}onSelect(_){const{list:M,setList:H}=this.props,$=M.map(U=>Object.assign(U,{selected:!1}));_.newIndicies.forEach(U=>{const I=U.index;if(I===-1){console.log(`"${_.type}" had indice of "${U.index}", which is probably -1 and doesn't usually happen here.`),console.log(_);return}$[I].selected=!0}),H($,this.sortable,R)}onDeselect(_){const{list:M,setList:H}=this.props,$=M.map(U=>Object.assign(U,{selected:!1}));_.newIndicies.forEach(U=>{const I=U.index;I!==-1&&($[I].selected=!0)}),H($,this.sortable,R)}}var Y={};p(a.exports,Y)})(_f)),_f.exports}gN();function Ld(a){if(a===null)return"null";if(a===void 0)return"undefined";if(a instanceof Error)return a.message;switch(typeof a){case"bigint":case"number":case"boolean":return String(a);case"string":return a;case"symbol":return`Symbol(${a.description??""})`;case"object":return String("message"in a?a.message:a);case"function":return`function ${a.name}`;default:return"invalid error type"}}const zd=N.createContext(void 0);function vi({children:a,ref:n}){const{logger:i}=Rd(),l=N.useRef([]),s=N.useRef(0),[u,c]=N.useReducer(g=>g+1,0),p=N.useCallback((g,S)=>{const x={id:++s.current,message:g,severity:S?.severity??"info",autoDismiss:S?.autoDismiss??!1};l.current.push(x),c()},[]),f=N.useCallback(()=>{l.current.shift(),c()},[]),m=N.useCallback(g=>{i.error("AlertStack caught error:",g),p(Ld(g),{severity:"error"})},[p]);N.useImperativeHandle(n,()=>({showAlert:p,showError:m}),[p,m]);const v={showAlert:p,queue:l.current,dismissCurrent:f};return b.jsx(zd.Provider,{value:v,children:a})}function yi(){const a=N.useContext(zd);if(!a)throw new Error("useAlertStack must be used within an AlertStackProvider");const n=N.useCallback(i=>{a.showAlert(Ld(i),{severity:"error"})},[a.showAlert]);return{showAlert:a.showAlert,showError:n}}function Ha(a){const n=N.useContext(zd),i=Rd();if(!n)throw new Error("AlertStack must be used within an AlertStackProvider");const{queue:l,dismissCurrent:s}=n,u=l[0];return N.useEffect(()=>{if(!u?.autoDismiss)return;const c=setTimeout(s,i.autoDismissAlertDurationMs);return()=>clearTimeout(c)},[u?.id,u?.autoDismiss,i.autoDismissAlertDurationMs,s]),u?b.jsx(Zo,{className:a?.className,severity:u.severity,onClose:s,children:u.message}):null}var Pf={exports:{}},br={},Xf={exports:{}},If={};var Qv;function vN(){return Qv||(Qv=1,(function(a){function n(V,te){var J=V.length;V.push(te);e:for(;0<J;){var se=J-1>>>1,de=V[se];if(0<s(de,te))V[se]=te,V[J]=de,J=se;else break e}}function i(V){return V.length===0?null:V[0]}function l(V){if(V.length===0)return null;var te=V[0],J=V.pop();if(J!==te){V[0]=J;e:for(var se=0,de=V.length,D=de>>>1;se<D;){var F=2*(se+1)-1,ae=V[F],re=F+1,be=V[re];if(0>s(ae,J))re<de&&0>s(be,ae)?(V[se]=be,V[re]=J,se=re):(V[se]=ae,V[F]=J,se=F);else if(re<de&&0>s(be,J))V[se]=be,V[re]=J,se=re;else break e}}return te}function s(V,te){var J=V.sortIndex-te.sortIndex;return J!==0?J:V.id-te.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;a.unstable_now=function(){return u.now()}}else{var c=Date,p=c.now();a.unstable_now=function(){return c.now()-p}}var f=[],m=[],v=1,g=null,S=3,x=!1,E=!1,O=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function B(V){for(var te=i(m);te!==null;){if(te.callback===null)l(m);else if(te.startTime<=V)l(m),te.sortIndex=te.expirationTime,n(f,te);else break;te=i(m)}}function Y(V){if(O=!1,B(V),!E)if(i(f)!==null)E=!0,z||(z=!0,I());else{var te=i(m);te!==null&&le(Y,te.startTime-V)}}var z=!1,_=-1,M=5,H=-1;function $(){return A?!0:!(a.unstable_now()-H<M)}function U(){if(A=!1,z){var V=a.unstable_now();H=V;var te=!0;try{e:{E=!1,O&&(O=!1,T(_),_=-1),x=!0;var J=S;try{t:{for(B(V),g=i(f);g!==null&&!(g.expirationTime>V&&$());){var se=g.callback;if(typeof se=="function"){g.callback=null,S=g.priorityLevel;var de=se(g.expirationTime<=V);if(V=a.unstable_now(),typeof de=="function"){g.callback=de,B(V),te=!0;break t}g===i(f)&&l(f),B(V)}else l(f);g=i(f)}if(g!==null)te=!0;else{var D=i(m);D!==null&&le(Y,D.startTime-V),te=!1}}break e}finally{g=null,S=J,x=!1}te=void 0}}finally{te?I():z=!1}}}var I;if(typeof R=="function")I=function(){R(U)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ne=ee.port2;ee.port1.onmessage=U,I=function(){ne.postMessage(null)}}else I=function(){C(U,0)};function le(V,te){_=C(function(){V(a.unstable_now())},te)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(V){V.callback=null},a.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<V?Math.floor(1e3/V):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(V){switch(S){case 1:case 2:case 3:var te=3;break;default:te=S}var J=S;S=te;try{return V()}finally{S=J}},a.unstable_requestPaint=function(){A=!0},a.unstable_runWithPriority=function(V,te){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var J=S;S=V;try{return te()}finally{S=J}},a.unstable_scheduleCallback=function(V,te,J){var se=a.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?se+J:se):J=se,V){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=J+de,V={id:v++,callback:te,priorityLevel:V,startTime:J,expirationTime:de,sortIndex:-1},J>se?(V.sortIndex=J,n(m,V),i(f)===null&&V===i(m)&&(O?(T(_),_=-1):O=!0,le(Y,J-se))):(V.sortIndex=de,n(f,V),E||x||(E=!0,z||(z=!0,I()))),V},a.unstable_shouldYield=$,a.unstable_wrapCallback=function(V){var te=S;return function(){var J=S;S=te;try{return V.apply(this,arguments)}finally{S=J}}}})(If)),If}var Zv;function yN(){return Zv||(Zv=1,Xf.exports=vN()),Xf.exports}var Kf={exports:{}},Nt={};var Jv;function bN(){if(Jv)return Nt;Jv=1;var a=Vr();function n(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(f,m,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:f,containerInfo:m,implementation:v}}var c=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Nt.createPortal=function(f,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return u(f,m,null,v)},Nt.flushSync=function(f){var m=c.T,v=l.p;try{if(c.T=null,l.p=2,f)return f()}finally{c.T=m,l.p=v,l.d.f()}},Nt.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(f,m))},Nt.prefetchDNS=function(f){typeof f=="string"&&l.d.D(f)},Nt.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var v=m.as,g=p(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?l.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:x}):v==="script"&&l.d.X(f,{crossOrigin:g,integrity:S,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Nt.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);l.d.M(f,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(f)},Nt.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,g=p(v,m.crossOrigin);l.d.L(f,v,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Nt.preloadModule=function(f,m){if(typeof f=="string")if(m){var v=p(m.as,m.crossOrigin);l.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(f)},Nt.requestFormReset=function(f){l.d.r(f)},Nt.unstable_batchedUpdates=function(f,m){return f(m)},Nt.useFormState=function(f,m,v){return c.H.useFormState(f,m,v)},Nt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var Wv;function SN(){if(Wv)return Kf.exports;Wv=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),Kf.exports=bN(),Kf.exports}var ey;function xN(){if(ey)return br;ey=1;var a=yN(),n=Vr(),i=SN();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(u(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(l(188));return t!==e?null:e}for(var r=e,o=t;;){var d=r.return;if(d===null)break;var h=d.alternate;if(h===null){if(o=d.return,o!==null){r=o;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===r)return f(d),e;if(h===o)return f(d),t;h=h.sibling}throw Error(l(188))}if(r.return!==o.return)r=d,o=h;else{for(var y=!1,w=d.child;w;){if(w===r){y=!0,r=d,o=h;break}if(w===o){y=!0,o=d,r=h;break}w=w.sibling}if(!y){for(w=h.child;w;){if(w===r){y=!0,r=h,o=d;break}if(w===o){y=!0,o=h,r=d;break}w=w.sibling}if(!y)throw Error(l(189))}}if(r.alternate!==o)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),R=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function I(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case Y:return"Suspense";case z:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var le=Array.isArray,V=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],de=-1;function D(e){return{current:e}}function F(e){0>de||(e.current=se[de],se[de]=null,de--)}function ae(e,t){de++,se[de]=e.current,e.current=t}var re=D(null),be=D(null),Te=D(null),Le=D(null);function Tt(e,t){switch(ae(Te,t),ae(be,e),ae(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$g(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$g(t),e=Ug(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(re),ae(re,e)}function We(){F(re),F(be),F(Te)}function xl(e){e.memoizedState!==null&&ae(Le,e);var t=re.current,r=Ug(t,e.type);t!==r&&(ae(be,e),ae(re,r))}function Ir(e){be.current===e&&(F(re),F(be)),Le.current===e&&(F(Le),cr._currentValue=J)}var lu,hp;function Ga(e){if(lu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);lu=t&&t[1]||"",hp=-1<r.stack.indexOf(`
13
- at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
14
- `+lu+e+hp}var ru=!1;function su(e,t){if(!e||ru)return"";ru=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(X){var P=X}Reflect.construct(e,[],W)}else{try{W.call()}catch(X){P=X}e.call(W.prototype)}}else{try{throw Error()}catch(X){P=X}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(X){if(X&&P&&typeof X.stack=="string")return[X.stack,P.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),y=h[0],w=h[1];if(y&&w){var j=y.split(`
15
- `),q=w.split(`
16
- `);for(d=o=0;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;for(;d<q.length&&!q[d].includes("DetermineComponentFrameRoot");)d++;if(o===j.length||d===q.length)for(o=j.length-1,d=q.length-1;1<=o&&0<=d&&j[o]!==q[d];)d--;for(;1<=o&&0<=d;o--,d--)if(j[o]!==q[d]){if(o!==1||d!==1)do if(o--,d--,0>d||j[o]!==q[d]){var Q=`
17
- `+j[o].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=o&&0<=d);break}}}finally{ru=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Ga(r):""}function y0(e,t){switch(e.tag){case 26:case 27:case 5:return Ga(e.type);case 16:return Ga("Lazy");case 13:return e.child!==t&&t!==null?Ga("Suspense Fallback"):Ga("Suspense");case 19:return Ga("SuspenseList");case 0:case 15:return su(e.type,!1);case 11:return su(e.type.render,!1);case 1:return su(e.type,!0);case 31:return Ga("Activity");default:return""}}function mp(e){try{var t="",r=null;do t+=y0(e,r),r=e,e=e.return;while(e);return t}catch(o){return`
18
- Error generating stack: `+o.message+`
19
- `+o.stack}}var ou=Object.prototype.hasOwnProperty,uu=a.unstable_scheduleCallback,cu=a.unstable_cancelCallback,b0=a.unstable_shouldYield,S0=a.unstable_requestPaint,qt=a.unstable_now,x0=a.unstable_getCurrentPriorityLevel,gp=a.unstable_ImmediatePriority,vp=a.unstable_UserBlockingPriority,Kr=a.unstable_NormalPriority,w0=a.unstable_LowPriority,yp=a.unstable_IdlePriority,E0=a.log,T0=a.unstable_setDisableYieldValue,wl=null,Yt=null;function fa(e){if(typeof E0=="function"&&T0(e),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(wl,e)}catch{}}var Pt=Math.clz32?Math.clz32:O0,C0=Math.log,N0=Math.LN2;function O0(e){return e>>>=0,e===0?32:31-(C0(e)/N0|0)|0}var Fr=256,Qr=262144,Zr=4194304;function qa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Jr(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var d=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var w=o&134217727;return w!==0?(o=w&~h,o!==0?d=qa(o):(y&=w,y!==0?d=qa(y):r||(r=w&~e,r!==0&&(d=qa(r))))):(w=o&~h,w!==0?d=qa(w):y!==0?d=qa(y):r||(r=o&~e,r!==0&&(d=qa(r)))),d===0?0:t!==0&&t!==d&&(t&h)===0&&(h=d&-d,r=t&-t,h>=r||h===32&&(r&4194048)!==0)?t:d}function El(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function R0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bp(){var e=Zr;return Zr<<=1,(Zr&62914560)===0&&(Zr=4194304),e}function fu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function A0(e,t,r,o,d,h){var y=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,j=e.expirationTimes,q=e.hiddenUpdates;for(r=y&~r;0<r;){var Q=31-Pt(r),W=1<<Q;w[Q]=0,j[Q]=-1;var P=q[Q];if(P!==null)for(q[Q]=null,Q=0;Q<P.length;Q++){var X=P[Q];X!==null&&(X.lane&=-536870913)}r&=~W}o!==0&&Sp(e,o,0),h!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function Sp(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Pt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&261930}function xp(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Pt(r),d=1<<o;d&t|e[o]&t&&(e[o]|=t),r&=~d}}function wp(e,t){var r=t&-t;return r=(r&42)!==0?1:du(r),(r&(e.suspendedLanes|t))!==0?0:r}function du(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ep(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:ov(e.type))}function Tp(e,t){var r=te.p;try{return te.p=e,t()}finally{te.p=r}}var da=Math.random().toString(36).slice(2),vt="__reactFiber$"+da,Mt="__reactProps$"+da,Ti="__reactContainer$"+da,hu="__reactEvents$"+da,j0="__reactListeners$"+da,D0="__reactHandles$"+da,Cp="__reactResources$"+da,Cl="__reactMarker$"+da;function mu(e){delete e[vt],delete e[Mt],delete e[hu],delete e[j0],delete e[D0]}function Ci(e){var t=e[vt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ti]||r[vt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Xg(e);e!==null;){if(r=e[vt])return r;e=Xg(e)}return t}e=r,r=e.parentNode}return null}function Ni(e){if(e=e[vt]||e[Ti]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function Oi(e){var t=e[Cp];return t||(t=e[Cp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[Cl]=!0}var Np=new Set,Op={};function Ya(e,t){Ri(e,t),Ri(e+"Capture",t)}function Ri(e,t){for(Op[e]=t,e=0;e<t.length;e++)Np.add(t[e])}var M0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rp={},Ap={};function _0(e){return ou.call(Ap,e)?!0:ou.call(Rp,e)?!1:M0.test(e)?Ap[e]=!0:(Rp[e]=!0,!1)}function Wr(e,t,r){if(_0(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function es(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Un(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k0(e,t,r){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(y){r=""+y,h.call(this,y)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(y){r=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gu(e){if(!e._valueTracker){var t=jp(e)?"checked":"value";e._valueTracker=k0(e,t,""+e[t])}}function Dp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=jp(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var L0=/[\n"\\]/g;function rn(e){return e.replace(L0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vu(e,t,r,o,d,h,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ln(t)):e.value!==""+ln(t)&&(e.value=""+ln(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?yu(e,y,ln(t)):r!=null?yu(e,y,ln(r)):o!=null&&e.removeAttribute("value"),d==null&&h!=null&&(e.defaultChecked=!!h),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+ln(w):e.removeAttribute("name")}function Mp(e,t,r,o,d,h,y,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){gu(e);return}r=r!=null?""+ln(r):"",t=t!=null?""+ln(t):r,w||t===e.value||(e.value=t),e.defaultValue=t}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=w?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),gu(e)}function yu(e,t,r){t==="number"&&ts(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Ai(e,t,r,o){if(e=e.options,t){t={};for(var d=0;d<r.length;d++)t["$"+r[d]]=!0;for(r=0;r<e.length;r++)d=t.hasOwnProperty("$"+e[r].value),e[r].selected!==d&&(e[r].selected=d),d&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ln(r),t=null,d=0;d<e.length;d++){if(e[d].value===r){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function _p(e,t,r){if(t!=null&&(t=""+ln(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ln(r):""}function kp(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(l(92));if(le(o)){if(1<o.length)throw Error(l(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=ln(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o),gu(e)}function ji(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var z0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lp(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||z0.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function zp(e,t,r){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in t)o=t[d],t.hasOwnProperty(d)&&r[d]!==o&&Lp(e,d,o)}else for(var h in t)t.hasOwnProperty(h)&&Lp(e,h,t[h])}function bu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var B0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ns(e){return $0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hn(){}var Su=null;function xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Di=null,Mi=null;function Bp(e){var t=Ni(e);if(t&&(e=t.stateNode)){var r=e[Mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(vu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+rn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var d=o[Mt]||null;if(!d)throw Error(l(90));vu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&Dp(o)}break e;case"textarea":_p(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Ai(e,!!r.multiple,t,!1)}}}var wu=!1;function $p(e,t,r){if(wu)return e(t,r);wu=!0;try{var o=e(t);return o}finally{if(wu=!1,(Di!==null||Mi!==null)&&(qs(),Di&&(t=Di,e=Mi,Mi=Di=null,Bp(t),e)))for(t=0;t<e.length;t++)Bp(e[t])}}function Ol(e,t){var r=e.stateNode;if(r===null)return null;var o=r[Mt]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,t,typeof r));return r}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eu=!1;if(Vn)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Eu=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Eu=!1}var pa=null,Tu=null,as=null;function Up(){if(as)return as;var e,t=Tu,r=t.length,o,d="value"in pa?pa.value:pa.textContent,h=d.length;for(e=0;e<r&&t[e]===d[e];e++);var y=r-e;for(o=1;o<=y&&t[r-o]===d[h-o];o++);return as=d.slice(e,1<o?1-o:void 0)}function is(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ls(){return!0}function Hp(){return!1}function _t(e){function t(r,o,d,h,y){this._reactName=r,this._targetInst=d,this.type=o,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ls:Hp,this.isPropagationStopped=Hp,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=_t(Pa),Al=g({},Pa,{view:0,detail:0}),U0=_t(Al),Cu,Nu,jl,ss=g({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ru,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jl&&(jl&&e.type==="mousemove"?(Cu=e.screenX-jl.screenX,Nu=e.screenY-jl.screenY):Nu=Cu=0,jl=e),Cu)},movementY:function(e){return"movementY"in e?e.movementY:Nu}}),Vp=_t(ss),H0=g({},ss,{dataTransfer:0}),V0=_t(H0),G0=g({},Al,{relatedTarget:0}),Ou=_t(G0),q0=g({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),Y0=_t(q0),P0=g({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X0=_t(P0),I0=g({},Pa,{data:0}),Gp=_t(I0),K0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Q0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q0[e])?!!t[e]:!1}function Ru(){return Z0}var J0=g({},Al,{key:function(e){if(e.key){var t=K0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=is(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ru,charCode:function(e){return e.type==="keypress"?is(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?is(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W0=_t(J0),ex=g({},ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qp=_t(ex),tx=g({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ru}),nx=_t(tx),ax=g({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ix=_t(ax),lx=g({},ss,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),rx=_t(lx),sx=g({},Pa,{newState:0,oldState:0}),ox=_t(sx),ux=[9,13,27,32],Au=Vn&&"CompositionEvent"in window,Dl=null;Vn&&"documentMode"in document&&(Dl=document.documentMode);var cx=Vn&&"TextEvent"in window&&!Dl,Yp=Vn&&(!Au||Dl&&8<Dl&&11>=Dl),Pp=" ",Xp=!1;function Ip(e,t){switch(e){case"keyup":return ux.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _i=!1;function fx(e,t){switch(e){case"compositionend":return Kp(t);case"keypress":return t.which!==32?null:(Xp=!0,Pp);case"textInput":return e=t.data,e===Pp&&Xp?null:e;default:return null}}function dx(e,t){if(_i)return e==="compositionend"||!Au&&Ip(e,t)?(e=Up(),as=Tu=pa=null,_i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yp&&t.locale!=="ko"?null:t.data;default:return null}}var px={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!px[e.type]:t==="textarea"}function Qp(e,t,r,o){Di?Mi?Mi.push(o):Mi=[o]:Di=o,t=Qs(t,"onChange"),0<t.length&&(r=new rs("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Ml=null,_l=null;function hx(e){Mg(e,0)}function os(e){var t=Nl(e);if(Dp(t))return e}function Zp(e,t){if(e==="change")return t}var Jp=!1;if(Vn){var ju;if(Vn){var Du="oninput"in document;if(!Du){var Wp=document.createElement("div");Wp.setAttribute("oninput","return;"),Du=typeof Wp.oninput=="function"}ju=Du}else ju=!1;Jp=ju&&(!document.documentMode||9<document.documentMode)}function eh(){Ml&&(Ml.detachEvent("onpropertychange",th),_l=Ml=null)}function th(e){if(e.propertyName==="value"&&os(_l)){var t=[];Qp(t,_l,e,xu(e)),$p(hx,t)}}function mx(e,t,r){e==="focusin"?(eh(),Ml=t,_l=r,Ml.attachEvent("onpropertychange",th)):e==="focusout"&&eh()}function gx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(_l)}function vx(e,t){if(e==="click")return os(t)}function yx(e,t){if(e==="input"||e==="change")return os(t)}function bx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:bx;function kl(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var d=r[o];if(!ou.call(t,d)||!Xt(e[d],t[d]))return!1}return!0}function nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ah(e,t){var r=nh(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nh(r)}}function ih(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ih(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ts(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ts(e.document)}return t}function Mu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Sx=Vn&&"documentMode"in document&&11>=document.documentMode,ki=null,_u=null,Ll=null,ku=!1;function rh(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ku||ki==null||ki!==ts(o)||(o=ki,"selectionStart"in o&&Mu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ll&&kl(Ll,o)||(Ll=o,o=Qs(_u,"onSelect"),0<o.length&&(t=new rs("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=ki)))}function Xa(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Li={animationend:Xa("Animation","AnimationEnd"),animationiteration:Xa("Animation","AnimationIteration"),animationstart:Xa("Animation","AnimationStart"),transitionrun:Xa("Transition","TransitionRun"),transitionstart:Xa("Transition","TransitionStart"),transitioncancel:Xa("Transition","TransitionCancel"),transitionend:Xa("Transition","TransitionEnd")},Lu={},sh={};Vn&&(sh=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function Ia(e){if(Lu[e])return Lu[e];if(!Li[e])return e;var t=Li[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in sh)return Lu[e]=t[r];return e}var oh=Ia("animationend"),uh=Ia("animationiteration"),ch=Ia("animationstart"),xx=Ia("transitionrun"),wx=Ia("transitionstart"),Ex=Ia("transitioncancel"),fh=Ia("transitionend"),dh=new Map,zu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zu.push("scrollEnd");function bn(e,t){dh.set(e,t),Ya(t,[e])}var us=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},sn=[],zi=0,Bu=0;function cs(){for(var e=zi,t=Bu=zi=0;t<e;){var r=sn[t];sn[t++]=null;var o=sn[t];sn[t++]=null;var d=sn[t];sn[t++]=null;var h=sn[t];if(sn[t++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}h!==0&&ph(r,d,h)}}function fs(e,t,r,o){sn[zi++]=e,sn[zi++]=t,sn[zi++]=r,sn[zi++]=o,Bu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function $u(e,t,r,o){return fs(e,t,r,o),ds(e)}function Ka(e,t){return fs(e,null,null,t),ds(e)}function ph(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var d=!1,h=e.return;h!==null;)h.childLanes|=r,o=h.alternate,o!==null&&(o.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(d=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,d&&t!==null&&(d=31-Pt(r),e=h.hiddenUpdates,o=e[d],o===null?e[d]=[t]:o.push(t),t.lane=r|536870912),h):null}function ds(e){if(50<ar)throw ar=0,Ic=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Bi={};function Tx(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,r,o){return new Tx(e,t,r,o)}function Uu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var r=e.alternate;return r===null?(r=It(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function hh(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ps(e,t,r,o,d,h){var y=0;if(o=e,typeof e=="function")Uu(e)&&(y=1);else if(typeof e=="string")y=A1(e,r,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case H:return e=It(31,r,t,d),e.elementType=H,e.lanes=h,e;case O:return Fa(r.children,d,h,t);case A:y=8,d|=24;break;case C:return e=It(12,r,t,d|2),e.elementType=C,e.lanes=h,e;case Y:return e=It(13,r,t,d),e.elementType=Y,e.lanes=h,e;case z:return e=It(19,r,t,d),e.elementType=z,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:y=10;break e;case T:y=9;break e;case B:y=11;break e;case _:y=14;break e;case M:y=16,o=null;break e}y=29,r=Error(l(130,e===null?"null":typeof e,"")),o=null}return t=It(y,r,t,d),t.elementType=e,t.type=o,t.lanes=h,t}function Fa(e,t,r,o){return e=It(7,e,o,t),e.lanes=r,e}function Hu(e,t,r){return e=It(6,e,null,t),e.lanes=r,e}function mh(e){var t=It(18,null,null,0);return t.stateNode=e,t}function Vu(e,t,r){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gh=new WeakMap;function on(e,t){if(typeof e=="object"&&e!==null){var r=gh.get(e);return r!==void 0?r:(t={value:e,source:t,stack:mp(t)},gh.set(e,t),t)}return{value:e,source:t,stack:mp(t)}}var $i=[],Ui=0,hs=null,zl=0,un=[],cn=0,ha=null,An=1,jn="";function qn(e,t){$i[Ui++]=zl,$i[Ui++]=hs,hs=e,zl=t}function vh(e,t,r){un[cn++]=An,un[cn++]=jn,un[cn++]=ha,ha=e;var o=An;e=jn;var d=32-Pt(o)-1;o&=~(1<<d),r+=1;var h=32-Pt(t)+d;if(30<h){var y=d-d%5;h=(o&(1<<y)-1).toString(32),o>>=y,d-=y,An=1<<32-Pt(t)+d|r<<d|o,jn=h+e}else An=1<<h|r<<d|o,jn=e}function Gu(e){e.return!==null&&(qn(e,1),vh(e,1,0))}function qu(e){for(;e===hs;)hs=$i[--Ui],$i[Ui]=null,zl=$i[--Ui],$i[Ui]=null;for(;e===ha;)ha=un[--cn],un[cn]=null,jn=un[--cn],un[cn]=null,An=un[--cn],un[cn]=null}function yh(e,t){un[cn++]=An,un[cn++]=jn,un[cn++]=ha,An=t.id,jn=t.overflow,ha=e}var yt=null,Xe=null,Ae=!1,ma=null,fn=!1,Yu=Error(l(519));function ga(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bl(on(t,e)),Yu}function bh(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[vt]=e,t[Mt]=o,r){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(r=0;r<lr.length;r++)Ne(lr[r],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),Mp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),kp(t,o.value,o.defaultValue,o.children)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||zg(t.textContent,r)?(o.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),o.onScroll!=null&&Ne("scroll",t),o.onScrollEnd!=null&&Ne("scrollend",t),o.onClick!=null&&(t.onclick=Hn),t=!0):t=!1,t||ga(e,!0)}function Sh(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function Hi(e){if(e!==yt)return!1;if(!Ae)return Sh(e),Ae=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||uf(e.type,e.memoizedProps)),r=!r),r&&Xe&&ga(e),Sh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Xe=Pg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Xe=Pg(e)}else t===27?(t=Xe,ja(e.type)?(e=hf,hf=null,Xe=e):Xe=t):Xe=yt?pn(e.stateNode.nextSibling):null;return!0}function Qa(){Xe=yt=null,Ae=!1}function Pu(){var e=ma;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),ma=null),e}function Bl(e){ma===null?ma=[e]:ma.push(e)}var Xu=D(null),Za=null,Yn=null;function va(e,t,r){ae(Xu,t._currentValue),t._currentValue=r}function Pn(e){e._currentValue=Xu.current,F(Xu)}function Iu(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Ku(e,t,r,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var h=d.dependencies;if(h!==null){var y=d.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=d;for(var j=0;j<t.length;j++)if(w.context===t[j]){h.lanes|=r,w=h.alternate,w!==null&&(w.lanes|=r),Iu(h.return,r,e),o||(y=null);break e}h=w.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(l(341));y.lanes|=r,h=y.alternate,h!==null&&(h.lanes|=r),Iu(y,r,e),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===e){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function Vi(e,t,r,o){e=null;for(var d=t,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var w=d.type;Xt(d.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(d===Le.current){if(y=d.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(cr):e=[cr])}d=d.return}e!==null&&Ku(t,e,r,o),t.flags|=262144}function ms(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ja(e){Za=e,Yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return xh(Za,e)}function gs(e,t){return Za===null&&Ja(e),xh(e,t)}function xh(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Yn===null){if(e===null)throw Error(l(308));Yn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yn=Yn.next=t;return r}var Cx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},Nx=a.unstable_scheduleCallback,Ox=a.unstable_NormalPriority,ot={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fu(){return{controller:new Cx,data:new Map,refCount:0}}function $l(e){e.refCount--,e.refCount===0&&Nx(Ox,function(){e.controller.abort()})}var Ul=null,Qu=0,Gi=0,qi=null;function Rx(e,t){if(Ul===null){var r=Ul=[];Qu=0,Gi=Wc(),qi={status:"pending",value:void 0,then:function(o){r.push(o)}}}return Qu++,t.then(wh,wh),t}function wh(){if(--Qu===0&&Ul!==null){qi!==null&&(qi.status="fulfilled");var e=Ul;Ul=null,Gi=0,qi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ax(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(d){r.push(d)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var d=0;d<r.length;d++)(0,r[d])(t)},function(d){for(o.status="rejected",o.reason=d,d=0;d<r.length;d++)(0,r[d])(void 0)}),o}var Eh=V.S;V.S=function(e,t){rg=qt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rx(e,t),Eh!==null&&Eh(e,t)};var Wa=D(null);function Zu(){var e=Wa.current;return e!==null?e:qe.pooledCache}function vs(e,t){t===null?ae(Wa,Wa.current):ae(Wa,t.pool)}function Th(){var e=Zu();return e===null?null:{parent:ot._currentValue,pool:e}}var Yi=Error(l(460)),Ju=Error(l(474)),ys=Error(l(542)),bs={then:function(){}};function Ch(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nh(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Hn,Hn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rh(e),e;default:if(typeof t.status=="string")t.then(Hn,Hn);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=o}},function(o){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rh(e),e}throw ti=t,Yi}}function ei(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(ti=r,Yi):r}}var ti=null;function Oh(){if(ti===null)throw Error(l(459));var e=ti;return ti=null,e}function Rh(e){if(e===Yi||e===ys)throw Error(l(483))}var Pi=null,Hl=0;function Ss(e){var t=Hl;return Hl+=1,Pi===null&&(Pi=[]),Nh(Pi,e,t)}function Vl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xs(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ah(e){function t(L,k){if(e){var G=L.deletions;G===null?(L.deletions=[k],L.flags|=16):G.push(k)}}function r(L,k){if(!e)return null;for(;k!==null;)t(L,k),k=k.sibling;return null}function o(L){for(var k=new Map;L!==null;)L.key!==null?k.set(L.key,L):k.set(L.index,L),L=L.sibling;return k}function d(L,k){return L=Gn(L,k),L.index=0,L.sibling=null,L}function h(L,k,G){return L.index=G,e?(G=L.alternate,G!==null?(G=G.index,G<k?(L.flags|=67108866,k):G):(L.flags|=67108866,k)):(L.flags|=1048576,k)}function y(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function w(L,k,G,Z){return k===null||k.tag!==6?(k=Hu(G,L.mode,Z),k.return=L,k):(k=d(k,G),k.return=L,k)}function j(L,k,G,Z){var fe=G.type;return fe===O?Q(L,k,G.props.children,Z,G.key):k!==null&&(k.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===M&&ei(fe)===k.type)?(k=d(k,G.props),Vl(k,G),k.return=L,k):(k=ps(G.type,G.key,G.props,null,L.mode,Z),Vl(k,G),k.return=L,k)}function q(L,k,G,Z){return k===null||k.tag!==4||k.stateNode.containerInfo!==G.containerInfo||k.stateNode.implementation!==G.implementation?(k=Vu(G,L.mode,Z),k.return=L,k):(k=d(k,G.children||[]),k.return=L,k)}function Q(L,k,G,Z,fe){return k===null||k.tag!==7?(k=Fa(G,L.mode,Z,fe),k.return=L,k):(k=d(k,G),k.return=L,k)}function W(L,k,G){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Hu(""+k,L.mode,G),k.return=L,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case x:return G=ps(k.type,k.key,k.props,null,L.mode,G),Vl(G,k),G.return=L,G;case E:return k=Vu(k,L.mode,G),k.return=L,k;case M:return k=ei(k),W(L,k,G)}if(le(k)||I(k))return k=Fa(k,L.mode,G,null),k.return=L,k;if(typeof k.then=="function")return W(L,Ss(k),G);if(k.$$typeof===R)return W(L,gs(L,k),G);xs(L,k)}return null}function P(L,k,G,Z){var fe=k!==null?k.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return fe!==null?null:w(L,k,""+G,Z);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return G.key===fe?j(L,k,G,Z):null;case E:return G.key===fe?q(L,k,G,Z):null;case M:return G=ei(G),P(L,k,G,Z)}if(le(G)||I(G))return fe!==null?null:Q(L,k,G,Z,null);if(typeof G.then=="function")return P(L,k,Ss(G),Z);if(G.$$typeof===R)return P(L,k,gs(L,G),Z);xs(L,G)}return null}function X(L,k,G,Z,fe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return L=L.get(G)||null,w(k,L,""+Z,fe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:return L=L.get(Z.key===null?G:Z.key)||null,j(k,L,Z,fe);case E:return L=L.get(Z.key===null?G:Z.key)||null,q(k,L,Z,fe);case M:return Z=ei(Z),X(L,k,G,Z,fe)}if(le(Z)||I(Z))return L=L.get(G)||null,Q(k,L,Z,fe,null);if(typeof Z.then=="function")return X(L,k,G,Ss(Z),fe);if(Z.$$typeof===R)return X(L,k,G,gs(k,Z),fe);xs(k,Z)}return null}function oe(L,k,G,Z){for(var fe=null,_e=null,ue=k,xe=k=0,Re=null;ue!==null&&xe<G.length;xe++){ue.index>xe?(Re=ue,ue=null):Re=ue.sibling;var ke=P(L,ue,G[xe],Z);if(ke===null){ue===null&&(ue=Re);break}e&&ue&&ke.alternate===null&&t(L,ue),k=h(ke,k,xe),_e===null?fe=ke:_e.sibling=ke,_e=ke,ue=Re}if(xe===G.length)return r(L,ue),Ae&&qn(L,xe),fe;if(ue===null){for(;xe<G.length;xe++)ue=W(L,G[xe],Z),ue!==null&&(k=h(ue,k,xe),_e===null?fe=ue:_e.sibling=ue,_e=ue);return Ae&&qn(L,xe),fe}for(ue=o(ue);xe<G.length;xe++)Re=X(ue,L,xe,G[xe],Z),Re!==null&&(e&&Re.alternate!==null&&ue.delete(Re.key===null?xe:Re.key),k=h(Re,k,xe),_e===null?fe=Re:_e.sibling=Re,_e=Re);return e&&ue.forEach(function(La){return t(L,La)}),Ae&&qn(L,xe),fe}function pe(L,k,G,Z){if(G==null)throw Error(l(151));for(var fe=null,_e=null,ue=k,xe=k=0,Re=null,ke=G.next();ue!==null&&!ke.done;xe++,ke=G.next()){ue.index>xe?(Re=ue,ue=null):Re=ue.sibling;var La=P(L,ue,ke.value,Z);if(La===null){ue===null&&(ue=Re);break}e&&ue&&La.alternate===null&&t(L,ue),k=h(La,k,xe),_e===null?fe=La:_e.sibling=La,_e=La,ue=Re}if(ke.done)return r(L,ue),Ae&&qn(L,xe),fe;if(ue===null){for(;!ke.done;xe++,ke=G.next())ke=W(L,ke.value,Z),ke!==null&&(k=h(ke,k,xe),_e===null?fe=ke:_e.sibling=ke,_e=ke);return Ae&&qn(L,xe),fe}for(ue=o(ue);!ke.done;xe++,ke=G.next())ke=X(ue,L,xe,ke.value,Z),ke!==null&&(e&&ke.alternate!==null&&ue.delete(ke.key===null?xe:ke.key),k=h(ke,k,xe),_e===null?fe=ke:_e.sibling=ke,_e=ke);return e&&ue.forEach(function(H1){return t(L,H1)}),Ae&&qn(L,xe),fe}function Ge(L,k,G,Z){if(typeof G=="object"&&G!==null&&G.type===O&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case x:e:{for(var fe=G.key;k!==null;){if(k.key===fe){if(fe=G.type,fe===O){if(k.tag===7){r(L,k.sibling),Z=d(k,G.props.children),Z.return=L,L=Z;break e}}else if(k.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===M&&ei(fe)===k.type){r(L,k.sibling),Z=d(k,G.props),Vl(Z,G),Z.return=L,L=Z;break e}r(L,k);break}else t(L,k);k=k.sibling}G.type===O?(Z=Fa(G.props.children,L.mode,Z,G.key),Z.return=L,L=Z):(Z=ps(G.type,G.key,G.props,null,L.mode,Z),Vl(Z,G),Z.return=L,L=Z)}return y(L);case E:e:{for(fe=G.key;k!==null;){if(k.key===fe)if(k.tag===4&&k.stateNode.containerInfo===G.containerInfo&&k.stateNode.implementation===G.implementation){r(L,k.sibling),Z=d(k,G.children||[]),Z.return=L,L=Z;break e}else{r(L,k);break}else t(L,k);k=k.sibling}Z=Vu(G,L.mode,Z),Z.return=L,L=Z}return y(L);case M:return G=ei(G),Ge(L,k,G,Z)}if(le(G))return oe(L,k,G,Z);if(I(G)){if(fe=I(G),typeof fe!="function")throw Error(l(150));return G=fe.call(G),pe(L,k,G,Z)}if(typeof G.then=="function")return Ge(L,k,Ss(G),Z);if(G.$$typeof===R)return Ge(L,k,gs(L,G),Z);xs(L,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,k!==null&&k.tag===6?(r(L,k.sibling),Z=d(k,G),Z.return=L,L=Z):(r(L,k),Z=Hu(G,L.mode,Z),Z.return=L,L=Z),y(L)):r(L,k)}return function(L,k,G,Z){try{Hl=0;var fe=Ge(L,k,G,Z);return Pi=null,fe}catch(ue){if(ue===Yi||ue===ys)throw ue;var _e=It(29,ue,null,L.mode);return _e.lanes=Z,_e.return=L,_e}}}var ni=Ah(!0),jh=Ah(!1),ya=!1;function Wu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sa(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ze&2)!==0){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,t=ds(e),ph(e,null,r),t}return fs(e,o,t,r),ds(e)}function Gl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,xp(e,r)}}function tc(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var d=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var y={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?d=h=y:h=h.next=y,r=r.next}while(r!==null);h===null?d=h=t:h=h.next=t}else d=h=t;r={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var nc=!1;function ql(){if(nc){var e=qi;if(e!==null)throw e}}function Yl(e,t,r,o){nc=!1;var d=e.updateQueue;ya=!1;var h=d.firstBaseUpdate,y=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var j=w,q=j.next;j.next=null,y===null?h=q:y.next=q,y=j;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,w=Q.lastBaseUpdate,w!==y&&(w===null?Q.firstBaseUpdate=q:w.next=q,Q.lastBaseUpdate=j))}if(h!==null){var W=d.baseState;y=0,Q=q=j=null,w=h;do{var P=w.lane&-536870913,X=P!==w.lane;if(X?(Oe&P)===P:(o&P)===P){P!==0&&P===Gi&&(nc=!0),Q!==null&&(Q=Q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var oe=e,pe=w;P=t;var Ge=r;switch(pe.tag){case 1:if(oe=pe.payload,typeof oe=="function"){W=oe.call(Ge,W,P);break e}W=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=pe.payload,P=typeof oe=="function"?oe.call(Ge,W,P):oe,P==null)break e;W=g({},W,P);break e;case 2:ya=!0}}P=w.callback,P!==null&&(e.flags|=64,X&&(e.flags|=8192),X=d.callbacks,X===null?d.callbacks=[P]:X.push(P))}else X={lane:P,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Q===null?(q=Q=X,j=W):Q=Q.next=X,y|=P;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;X=w,w=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);Q===null&&(j=W),d.baseState=j,d.firstBaseUpdate=q,d.lastBaseUpdate=Q,h===null&&(d.shared.lanes=0),Ca|=y,e.lanes=y,e.memoizedState=W}}function Dh(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Mh(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Dh(r[e],t)}var Xi=D(null),ws=D(0);function _h(e,t){e=ea,ae(ws,e),ae(Xi,t),ea=e|t.baseLanes}function ac(){ae(ws,ea),ae(Xi,Xi.current)}function ic(){ea=ws.current,F(Xi),F(ws)}var Kt=D(null),dn=null;function xa(e){var t=e.alternate;ae(rt,rt.current&1),ae(Kt,e),dn===null&&(t===null||Xi.current!==null||t.memoizedState!==null)&&(dn=e)}function lc(e){ae(rt,rt.current),ae(Kt,e),dn===null&&(dn=e)}function kh(e){e.tag===22?(ae(rt,rt.current),ae(Kt,e),dn===null&&(dn=e)):wa()}function wa(){ae(rt,rt.current),ae(Kt,Kt.current)}function Ft(e){F(Kt),dn===e&&(dn=null),F(rt)}var rt=D(0);function Es(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||df(r)||pf(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xn=0,Se=null,He=null,ut=null,Ts=!1,Ii=!1,ai=!1,Cs=0,Pl=0,Ki=null,jx=0;function nt(){throw Error(l(321))}function rc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Xt(e[r],t[r]))return!1;return!0}function sc(e,t,r,o,d,h){return Xn=h,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?vm:wc,ai=!1,h=r(o,d),ai=!1,Ii&&(h=zh(t,r,o,d)),Lh(e),h}function Lh(e){V.H=Kl;var t=He!==null&&He.next!==null;if(Xn=0,ut=He=Se=null,Ts=!1,Pl=0,Ki=null,t)throw Error(l(300));e===null||ct||(e=e.dependencies,e!==null&&ms(e)&&(ct=!0))}function zh(e,t,r,o){Se=e;var d=0;do{if(Ii&&(Ki=null),Pl=0,Ii=!1,25<=d)throw Error(l(301));if(d+=1,ut=He=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}V.H=ym,h=t(r,o)}while(Ii);return h}function Dx(){var e=V.H,t=e.useState()[0];return t=typeof t.then=="function"?Xl(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(Se.flags|=1024),t}function oc(){var e=Cs!==0;return Cs=0,e}function uc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function cc(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}Xn=0,ut=He=Se=null,Ii=!1,Pl=Cs=0,Ki=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Se.memoizedState=ut=e:ut=ut.next=e,ut}function st(){if(He===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=ut===null?Se.memoizedState:ut.next;if(t!==null)ut=t,He=e;else{if(e===null)throw Se.alternate===null?Error(l(467)):Error(l(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},ut===null?Se.memoizedState=ut=e:ut=ut.next=e}return ut}function Ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(e){var t=Pl;return Pl+=1,Ki===null&&(Ki=[]),e=Nh(Ki,e,t),t=Se,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?vm:wc),e}function Os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xl(e);if(e.$$typeof===R)return bt(e)}throw Error(l(438,String(e)))}function fc(e){var t=null,r=Se.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=Se.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Ns(),Se.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=$;return t.index++,r}function In(e,t){return typeof t=="function"?t(e):t}function Rs(e){var t=st();return dc(t,He,e)}function dc(e,t,r){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=r;var d=e.baseQueue,h=o.pending;if(h!==null){if(d!==null){var y=d.next;d.next=h.next,h.next=y}t.baseQueue=d=h,o.pending=null}if(h=e.baseState,d===null)e.memoizedState=h;else{t=d.next;var w=y=null,j=null,q=t,Q=!1;do{var W=q.lane&-536870913;if(W!==q.lane?(Oe&W)===W:(Xn&W)===W){var P=q.revertLane;if(P===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),W===Gi&&(Q=!0);else if((Xn&P)===P){q=q.next,P===Gi&&(Q=!0);continue}else W={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},j===null?(w=j=W,y=h):j=j.next=W,Se.lanes|=P,Ca|=P;W=q.action,ai&&r(h,W),h=q.hasEagerState?q.eagerState:r(h,W)}else P={lane:W,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},j===null?(w=j=P,y=h):j=j.next=P,Se.lanes|=W,Ca|=W;q=q.next}while(q!==null&&q!==t);if(j===null?y=h:j.next=w,!Xt(h,e.memoizedState)&&(ct=!0,Q&&(r=qi,r!==null)))throw r;e.memoizedState=h,e.baseState=y,e.baseQueue=j,o.lastRenderedState=h}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function pc(e){var t=st(),r=t.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var o=r.dispatch,d=r.pending,h=t.memoizedState;if(d!==null){r.pending=null;var y=d=d.next;do h=e(h,y.action),y=y.next;while(y!==d);Xt(h,t.memoizedState)||(ct=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),r.lastRenderedState=h}return[h,o]}function Bh(e,t,r){var o=Se,d=st(),h=Ae;if(h){if(r===void 0)throw Error(l(407));r=r()}else r=t();var y=!Xt((He||d).memoizedState,r);if(y&&(d.memoizedState=r,ct=!0),d=d.queue,gc(Hh.bind(null,o,d,e),[e]),d.getSnapshot!==t||y||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,Fi(9,{destroy:void 0},Uh.bind(null,o,d,r,t),null),qe===null)throw Error(l(349));h||(Xn&127)!==0||$h(o,t,r)}return r}function $h(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Se.updateQueue,t===null?(t=Ns(),Se.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Uh(e,t,r,o){t.value=r,t.getSnapshot=o,Vh(t)&&Gh(e)}function Hh(e,t,r){return r(function(){Vh(t)&&Gh(e)})}function Vh(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Xt(e,r)}catch{return!0}}function Gh(e){var t=Ka(e,2);t!==null&&$t(t,e,2)}function hc(e){var t=Rt();if(typeof e=="function"){var r=e;if(e=r(),ai){fa(!0);try{r()}finally{fa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function qh(e,t,r,o){return e.baseState=r,dc(e,He,typeof o=="function"?o:In)}function Mx(e,t,r,o,d){if(Ds(e))throw Error(l(485));if(e=t.action,e!==null){var h={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){h.listeners.push(y)}};V.T!==null?r(!0):h.isTransition=!1,o(h),r=t.pending,r===null?(h.next=t.pending=h,Yh(t,h)):(h.next=r.next,t.pending=r.next=h)}}function Yh(e,t){var r=t.action,o=t.payload,d=e.state;if(t.isTransition){var h=V.T,y={};V.T=y;try{var w=r(d,o),j=V.S;j!==null&&j(y,w),Ph(e,t,w)}catch(q){mc(e,t,q)}finally{h!==null&&y.types!==null&&(h.types=y.types),V.T=h}}else try{h=r(d,o),Ph(e,t,h)}catch(q){mc(e,t,q)}}function Ph(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){Xh(e,t,o)},function(o){return mc(e,t,o)}):Xh(e,t,r)}function Xh(e,t,r){t.status="fulfilled",t.value=r,Ih(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Yh(e,r)))}function mc(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,Ih(t),t=t.next;while(t!==o)}e.action=null}function Ih(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kh(e,t){return t}function Fh(e,t){if(Ae){var r=qe.formState;if(r!==null){e:{var o=Se;if(Ae){if(Xe){t:{for(var d=Xe,h=fn;d.nodeType!==8;){if(!h){d=null;break t}if(d=pn(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){Xe=pn(d.nextSibling),o=d.data==="F!";break e}}ga(o)}o=!1}o&&(t=r[0])}}return r=Rt(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kh,lastRenderedState:t},r.queue=o,r=hm.bind(null,Se,o),o.dispatch=r,o=hc(!1),h=xc.bind(null,Se,!1,o.queue),o=Rt(),d={state:t,dispatch:null,action:e,pending:null},o.queue=d,r=Mx.bind(null,Se,d,h,r),d.dispatch=r,o.memoizedState=e,[t,r,!1]}function Qh(e){var t=st();return Zh(t,He,e)}function Zh(e,t,r){if(t=dc(e,t,Kh)[0],e=Rs(In)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Xl(t)}catch(y){throw y===Yi?ys:y}else o=t;t=st();var d=t.queue,h=d.dispatch;return r!==t.memoizedState&&(Se.flags|=2048,Fi(9,{destroy:void 0},_x.bind(null,d,r),null)),[o,h,e]}function _x(e,t){e.action=t}function Jh(e){var t=st(),r=He;if(r!==null)return Zh(t,r,e);st(),t=t.memoizedState,r=st();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function Fi(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Ns(),Se.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function Wh(){return st().memoizedState}function As(e,t,r,o){var d=Rt();Se.flags|=e,d.memoizedState=Fi(1|t,{destroy:void 0},r,o===void 0?null:o)}function js(e,t,r,o){var d=st();o=o===void 0?null:o;var h=d.memoizedState.inst;He!==null&&o!==null&&rc(o,He.memoizedState.deps)?d.memoizedState=Fi(t,h,r,o):(Se.flags|=e,d.memoizedState=Fi(1|t,h,r,o))}function em(e,t){As(8390656,8,e,t)}function gc(e,t){js(2048,8,e,t)}function kx(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Ns(),Se.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function tm(e){var t=st().memoizedState;return kx({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function nm(e,t){return js(4,2,e,t)}function am(e,t){return js(4,4,e,t)}function im(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lm(e,t,r){r=r!=null?r.concat([e]):null,js(4,4,im.bind(null,t,e),r)}function vc(){}function rm(e,t){var r=st();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&rc(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function sm(e,t){var r=st();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&rc(t,o[1]))return o[0];if(o=e(),ai){fa(!0);try{e()}finally{fa(!1)}}return r.memoizedState=[o,t],o}function yc(e,t,r){return r===void 0||(Xn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=og(),Se.lanes|=e,Ca|=e,r)}function om(e,t,r,o){return Xt(r,t)?r:Xi.current!==null?(e=yc(e,r,o),Xt(e,t)||(ct=!0),e):(Xn&42)===0||(Xn&1073741824)!==0&&(Oe&261930)===0?(ct=!0,e.memoizedState=r):(e=og(),Se.lanes|=e,Ca|=e,t)}function um(e,t,r,o,d){var h=te.p;te.p=h!==0&&8>h?h:8;var y=V.T,w={};V.T=w,xc(e,!1,t,r);try{var j=d(),q=V.S;if(q!==null&&q(w,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var Q=Ax(j,o);Il(e,t,Q,Jt(e))}else Il(e,t,o,Jt(e))}catch(W){Il(e,t,{then:function(){},status:"rejected",reason:W},Jt())}finally{te.p=h,y!==null&&w.types!==null&&(y.types=w.types),V.T=y}}function Lx(){}function bc(e,t,r,o){if(e.tag!==5)throw Error(l(476));var d=cm(e).queue;um(e,d,t,J,r===null?Lx:function(){return fm(e),r(o)})}function cm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:J},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fm(e){var t=cm(e);t.next===null&&(t=e.alternate.memoizedState),Il(e,t.next.queue,{},Jt())}function Sc(){return bt(cr)}function dm(){return st().memoizedState}function pm(){return st().memoizedState}function zx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Jt();e=ba(r);var o=Sa(t,e,r);o!==null&&($t(o,t,r),Gl(o,t,r)),t={cache:Fu()},e.payload=t;return}t=t.return}}function Bx(e,t,r){var o=Jt();r={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ds(e)?mm(t,r):(r=$u(e,t,r,o),r!==null&&($t(r,e,o),gm(r,t,o)))}function hm(e,t,r){var o=Jt();Il(e,t,r,o)}function Il(e,t,r,o){var d={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))mm(t,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var y=t.lastRenderedState,w=h(y,r);if(d.hasEagerState=!0,d.eagerState=w,Xt(w,y))return fs(e,t,d,0),qe===null&&cs(),!1}catch{}if(r=$u(e,t,d,o),r!==null)return $t(r,e,o),gm(r,t,o),!0}return!1}function xc(e,t,r,o){if(o={lane:2,revertLane:Wc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(t)throw Error(l(479))}else t=$u(e,r,o,2),t!==null&&$t(t,e,2)}function Ds(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function mm(e,t){Ii=Ts=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function gm(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,xp(e,r)}}var Kl={readContext:bt,use:Os,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Kl.useEffectEvent=nt;var vm={readContext:bt,use:Os,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:em,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,As(4194308,4,im.bind(null,t,e),r)},useLayoutEffect:function(e,t){return As(4194308,4,e,t)},useInsertionEffect:function(e,t){As(4,2,e,t)},useMemo:function(e,t){var r=Rt();t=t===void 0?null:t;var o=e();if(ai){fa(!0);try{e()}finally{fa(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=Rt();if(r!==void 0){var d=r(t);if(ai){fa(!0);try{r(t)}finally{fa(!1)}}}else d=t;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=Bx.bind(null,Se,e),[o.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,r=hm.bind(null,Se,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:vc,useDeferredValue:function(e,t){var r=Rt();return yc(r,e,t)},useTransition:function(){var e=hc(!1);return e=um.bind(null,Se,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Se,d=Rt();if(Ae){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),qe===null)throw Error(l(349));(Oe&127)!==0||$h(o,t,r)}d.memoizedState=r;var h={value:r,getSnapshot:t};return d.queue=h,em(Hh.bind(null,o,h,e),[e]),o.flags|=2048,Fi(9,{destroy:void 0},Uh.bind(null,o,h,r,t),null),r},useId:function(){var e=Rt(),t=qe.identifierPrefix;if(Ae){var r=jn,o=An;r=(o&~(1<<32-Pt(o)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Cs++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=jx++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Sc,useFormState:Fh,useActionState:Fh,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=xc.bind(null,Se,!0,r),r.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return Rt().memoizedState=zx.bind(null,Se)},useEffectEvent:function(e){var t=Rt(),r={impl:e};return t.memoizedState=r,function(){if((ze&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},wc={readContext:bt,use:Os,useCallback:rm,useContext:bt,useEffect:gc,useImperativeHandle:lm,useInsertionEffect:nm,useLayoutEffect:am,useMemo:sm,useReducer:Rs,useRef:Wh,useState:function(){return Rs(In)},useDebugValue:vc,useDeferredValue:function(e,t){var r=st();return om(r,He.memoizedState,e,t)},useTransition:function(){var e=Rs(In)[0],t=st().memoizedState;return[typeof e=="boolean"?e:Xl(e),t]},useSyncExternalStore:Bh,useId:dm,useHostTransitionStatus:Sc,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var r=st();return qh(r,He,e,t)},useMemoCache:fc,useCacheRefresh:pm};wc.useEffectEvent=tm;var ym={readContext:bt,use:Os,useCallback:rm,useContext:bt,useEffect:gc,useImperativeHandle:lm,useInsertionEffect:nm,useLayoutEffect:am,useMemo:sm,useReducer:pc,useRef:Wh,useState:function(){return pc(In)},useDebugValue:vc,useDeferredValue:function(e,t){var r=st();return He===null?yc(r,e,t):om(r,He.memoizedState,e,t)},useTransition:function(){var e=pc(In)[0],t=st().memoizedState;return[typeof e=="boolean"?e:Xl(e),t]},useSyncExternalStore:Bh,useId:dm,useHostTransitionStatus:Sc,useFormState:Jh,useActionState:Jh,useOptimistic:function(e,t){var r=st();return He!==null?qh(r,He,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:fc,useCacheRefresh:pm};ym.useEffectEvent=tm;function Ec(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:g({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Tc={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Jt(),d=ba(o);d.payload=t,r!=null&&(d.callback=r),t=Sa(e,d,o),t!==null&&($t(t,e,o),Gl(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Jt(),d=ba(o);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=Sa(e,d,o),t!==null&&($t(t,e,o),Gl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Jt(),o=ba(r);o.tag=2,t!=null&&(o.callback=t),t=Sa(e,o,r),t!==null&&($t(t,e,r),Gl(t,e,r))}};function bm(e,t,r,o,d,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,h,y):t.prototype&&t.prototype.isPureReactComponent?!kl(r,o)||!kl(d,h):!0}function Sm(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function ii(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=g({},r));for(var d in e)r[d]===void 0&&(r[d]=e[d])}return r}function xm(e){us(e)}function wm(e){console.error(e)}function Em(e){us(e)}function Ms(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Tm(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Cc(e,t,r){return r=ba(r),r.tag=3,r.payload={element:null},r.callback=function(){Ms(e,t)},r}function Cm(e){return e=ba(e),e.tag=3,e}function Nm(e,t,r,o){var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var h=o.value;e.payload=function(){return d(h)},e.callback=function(){Tm(t,r,o)}}var y=r.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Tm(t,r,o),typeof d!="function"&&(Na===null?Na=new Set([this]):Na.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function $x(e,t,r,o,d){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&Vi(t,r,d,!0),r=Kt.current,r!==null){switch(r.tag){case 31:case 13:return dn===null?Ys():r.alternate===null&&at===0&&(at=3),r.flags&=-257,r.flags|=65536,r.lanes=d,o===bs?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),Qc(e,o,d)),!1;case 22:return r.flags|=65536,o===bs?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),Qc(e,o,d)),!1}throw Error(l(435,r.tag))}return Qc(e,o,d),Ys(),!1}if(Ae)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,o!==Yu&&(e=Error(l(422),{cause:o}),Bl(on(e,r)))):(o!==Yu&&(t=Error(l(423),{cause:o}),Bl(on(t,r))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=on(o,r),d=Cc(e.stateNode,o,d),tc(e,d),at!==4&&(at=2)),!1;var h=Error(l(520),{cause:o});if(h=on(h,r),nr===null?nr=[h]:nr.push(h),at!==4&&(at=2),t===null)return!0;o=on(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=d&-d,r.lanes|=e,e=Cc(r.stateNode,o,e),tc(r,e),!1;case 1:if(t=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Na===null||!Na.has(h))))return r.flags|=65536,d&=-d,r.lanes|=d,d=Cm(d),Nm(d,e,r,o),tc(r,d),!1}r=r.return}while(r!==null);return!1}var Nc=Error(l(461)),ct=!1;function St(e,t,r,o){t.child=e===null?jh(t,null,r,o):ni(t,e.child,r,o)}function Om(e,t,r,o,d){r=r.render;var h=t.ref;if("ref"in o){var y={};for(var w in o)w!=="ref"&&(y[w]=o[w])}else y=o;return Ja(t),o=sc(e,t,r,y,h,d),w=oc(),e!==null&&!ct?(uc(e,t,d),Kn(e,t,d)):(Ae&&w&&Gu(t),t.flags|=1,St(e,t,o,d),t.child)}function Rm(e,t,r,o,d){if(e===null){var h=r.type;return typeof h=="function"&&!Uu(h)&&h.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=h,Am(e,t,h,o,d)):(e=ps(r.type,null,o,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!kc(e,d)){var y=h.memoizedProps;if(r=r.compare,r=r!==null?r:kl,r(y,o)&&e.ref===t.ref)return Kn(e,t,d)}return t.flags|=1,e=Gn(h,o),e.ref=t.ref,e.return=t,t.child=e}function Am(e,t,r,o,d){if(e!==null){var h=e.memoizedProps;if(kl(h,o)&&e.ref===t.ref)if(ct=!1,t.pendingProps=o=h,kc(e,d))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,Kn(e,t,d)}return Oc(e,t,r,o,d)}function jm(e,t,r,o){var d=o.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(o=t.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~h}else o=0,t.child=null;return Dm(e,t,h,r,o)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vs(t,h!==null?h.cachePool:null),h!==null?_h(t,h):ac(),kh(t);else return o=t.lanes=536870912,Dm(e,t,h!==null?h.baseLanes|r:r,r,o)}else h!==null?(vs(t,h.cachePool),_h(t,h),wa(),t.memoizedState=null):(e!==null&&vs(t,null),ac(),wa());return St(e,t,d,r),t.child}function Fl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dm(e,t,r,o,d){var h=Zu();return h=h===null?null:{parent:ot._currentValue,pool:h},t.memoizedState={baseLanes:r,cachePool:h},e!==null&&vs(t,null),ac(),kh(t),e!==null&&Vi(e,t,o,!0),t.childLanes=d,null}function _s(e,t){return t=Ls({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Mm(e,t,r){return ni(t,e.child,null,r),e=_s(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function Ux(e,t,r){var o=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(o.mode==="hidden")return e=_s(t,o),t.lanes=536870912,Fl(null,e);if(lc(t),(e=Xe)?(e=Yg(e,fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ha!==null?{id:An,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},r=mh(e),r.return=t,t.child=r,yt=t,Xe=null)):e=null,e===null)throw ga(t);return t.lanes=536870912,null}return _s(t,o)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(lc(t),d)if(t.flags&256)t.flags&=-257,t=Mm(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(ct||Vi(e,t,r,!1),d=(r&e.childLanes)!==0,ct||d){if(o=qe,o!==null&&(y=wp(o,r),y!==0&&y!==h.retryLane))throw h.retryLane=y,Ka(e,y),$t(o,e,y),Nc;Ys(),t=Mm(e,t,r)}else e=h.treeContext,Xe=pn(y.nextSibling),yt=t,Ae=!0,ma=null,fn=!1,e!==null&&yh(t,e),t=_s(t,o),t.flags|=4096;return t}return e=Gn(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ks(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Oc(e,t,r,o,d){return Ja(t),r=sc(e,t,r,o,void 0,d),o=oc(),e!==null&&!ct?(uc(e,t,d),Kn(e,t,d)):(Ae&&o&&Gu(t),t.flags|=1,St(e,t,r,d),t.child)}function _m(e,t,r,o,d,h){return Ja(t),t.updateQueue=null,r=zh(t,o,r,d),Lh(e),o=oc(),e!==null&&!ct?(uc(e,t,h),Kn(e,t,h)):(Ae&&o&&Gu(t),t.flags|=1,St(e,t,r,h),t.child)}function km(e,t,r,o,d){if(Ja(t),t.stateNode===null){var h=Bi,y=r.contextType;typeof y=="object"&&y!==null&&(h=bt(y)),h=new r(o,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Tc,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=o,h.state=t.memoizedState,h.refs={},Wu(t),y=r.contextType,h.context=typeof y=="object"&&y!==null?bt(y):Bi,h.state=t.memoizedState,y=r.getDerivedStateFromProps,typeof y=="function"&&(Ec(t,r,y,o),h.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&Tc.enqueueReplaceState(h,h.state,null),Yl(t,o,h,d),ql(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){h=t.stateNode;var w=t.memoizedProps,j=ii(r,w);h.props=j;var q=h.context,Q=r.contextType;y=Bi,typeof Q=="object"&&Q!==null&&(y=bt(Q));var W=r.getDerivedStateFromProps;Q=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,Q||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||q!==y)&&Sm(t,h,o,y),ya=!1;var P=t.memoizedState;h.state=P,Yl(t,o,h,d),ql(),q=t.memoizedState,w||P!==q||ya?(typeof W=="function"&&(Ec(t,r,W,o),q=t.memoizedState),(j=ya||bm(t,r,j,o,P,q,y))?(Q||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=q),h.props=o,h.state=q,h.context=y,o=j):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{h=t.stateNode,ec(e,t),y=t.memoizedProps,Q=ii(r,y),h.props=Q,W=t.pendingProps,P=h.context,q=r.contextType,j=Bi,typeof q=="object"&&q!==null&&(j=bt(q)),w=r.getDerivedStateFromProps,(q=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==W||P!==j)&&Sm(t,h,o,j),ya=!1,P=t.memoizedState,h.state=P,Yl(t,o,h,d),ql();var X=t.memoizedState;y!==W||P!==X||ya||e!==null&&e.dependencies!==null&&ms(e.dependencies)?(typeof w=="function"&&(Ec(t,r,w,o),X=t.memoizedState),(Q=ya||bm(t,r,Q,o,P,X,j)||e!==null&&e.dependencies!==null&&ms(e.dependencies))?(q||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,X,j),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,X,j)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=X),h.props=o,h.state=X,h.context=j,o=Q):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),o=!1)}return h=o,ks(e,t),o=(t.flags&128)!==0,h||o?(h=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&o?(t.child=ni(t,e.child,null,d),t.child=ni(t,null,r,d)):St(e,t,r,d),t.memoizedState=h.state,e=t.child):e=Kn(e,t,d),e}function Lm(e,t,r,o){return Qa(),t.flags|=256,St(e,t,r,o),t.child}var Rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(e){return{baseLanes:e,cachePool:Th()}}function jc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Zt),e}function zm(e,t,r){var o=t.pendingProps,d=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),y&&(d=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(d?xa(t):wa(),(e=Xe)?(e=Yg(e,fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ha!==null?{id:An,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},r=mh(e),r.return=t,t.child=r,yt=t,Xe=null)):e=null,e===null)throw ga(t);return pf(e)?t.lanes=32:t.lanes=536870912,null}var w=o.children;return o=o.fallback,d?(wa(),d=t.mode,w=Ls({mode:"hidden",children:w},d),o=Fa(o,d,r,null),w.return=t,o.return=t,w.sibling=o,t.child=w,o=t.child,o.memoizedState=Ac(r),o.childLanes=jc(e,y,r),t.memoizedState=Rc,Fl(null,o)):(xa(t),Dc(t,w))}var j=e.memoizedState;if(j!==null&&(w=j.dehydrated,w!==null)){if(h)t.flags&256?(xa(t),t.flags&=-257,t=Mc(e,t,r)):t.memoizedState!==null?(wa(),t.child=e.child,t.flags|=128,t=null):(wa(),w=o.fallback,d=t.mode,o=Ls({mode:"visible",children:o.children},d),w=Fa(w,d,r,null),w.flags|=2,o.return=t,w.return=t,o.sibling=w,t.child=o,ni(t,e.child,null,r),o=t.child,o.memoizedState=Ac(r),o.childLanes=jc(e,y,r),t.memoizedState=Rc,t=Fl(null,o));else if(xa(t),pf(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var q=y.dgst;y=q,o=Error(l(419)),o.stack="",o.digest=y,Bl({value:o,source:null,stack:null}),t=Mc(e,t,r)}else if(ct||Vi(e,t,r,!1),y=(r&e.childLanes)!==0,ct||y){if(y=qe,y!==null&&(o=wp(y,r),o!==0&&o!==j.retryLane))throw j.retryLane=o,Ka(e,o),$t(y,e,o),Nc;df(w)||Ys(),t=Mc(e,t,r)}else df(w)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Xe=pn(w.nextSibling),yt=t,Ae=!0,ma=null,fn=!1,e!==null&&yh(t,e),t=Dc(t,o.children),t.flags|=4096);return t}return d?(wa(),w=o.fallback,d=t.mode,j=e.child,q=j.sibling,o=Gn(j,{mode:"hidden",children:o.children}),o.subtreeFlags=j.subtreeFlags&65011712,q!==null?w=Gn(q,w):(w=Fa(w,d,r,null),w.flags|=2),w.return=t,o.return=t,o.sibling=w,t.child=o,Fl(null,o),o=t.child,w=e.child.memoizedState,w===null?w=Ac(r):(d=w.cachePool,d!==null?(j=ot._currentValue,d=d.parent!==j?{parent:j,pool:j}:d):d=Th(),w={baseLanes:w.baseLanes|r,cachePool:d}),o.memoizedState=w,o.childLanes=jc(e,y,r),t.memoizedState=Rc,Fl(e.child,o)):(xa(t),r=e.child,e=r.sibling,r=Gn(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=r,t.memoizedState=null,r)}function Dc(e,t){return t=Ls({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ls(e,t){return e=It(22,e,null,t),e.lanes=0,e}function Mc(e,t,r){return ni(t,e.child,null,r),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bm(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Iu(e.return,t,r)}function _c(e,t,r,o,d,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:d,treeForkCount:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=r,y.tailMode=d,y.treeForkCount=h)}function $m(e,t,r){var o=t.pendingProps,d=o.revealOrder,h=o.tail;o=o.children;var y=rt.current,w=(y&2)!==0;if(w?(y=y&1|2,t.flags|=128):y&=1,ae(rt,y),St(e,t,o,r),o=Ae?zl:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bm(e,r,t);else if(e.tag===19)Bm(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(r=t.child,d=null;r!==null;)e=r.alternate,e!==null&&Es(e)===null&&(d=r),r=r.sibling;r=d,r===null?(d=t.child,t.child=null):(d=r.sibling,r.sibling=null),_c(t,!1,d,r,h,o);break;case"backwards":case"unstable_legacy-backwards":for(r=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Es(e)===null){t.child=d;break}e=d.sibling,d.sibling=r,r=d,d=e}_c(t,!0,r,null,h,o);break;case"together":_c(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Kn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ca|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Vi(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,r=Gn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Gn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ms(e)))}function Hx(e,t,r){switch(t.tag){case 3:Tt(t,t.stateNode.containerInfo),va(t,ot,e.memoizedState.cache),Qa();break;case 27:case 5:xl(t);break;case 4:Tt(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lc(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(xa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?zm(e,t,r):(xa(t),e=Kn(e,t,r),e!==null?e.sibling:null);xa(t);break;case 19:var d=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(Vi(e,t,r,!1),o=(r&t.childLanes)!==0),d){if(o)return $m(e,t,r);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ae(rt,rt.current),o)break;return null;case 22:return t.lanes=0,jm(e,t,r,t.pendingProps);case 24:va(t,ot,e.memoizedState.cache)}return Kn(e,t,r)}function Um(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!kc(e,r)&&(t.flags&128)===0)return ct=!1,Hx(e,t,r);ct=(e.flags&131072)!==0}else ct=!1,Ae&&(t.flags&1048576)!==0&&vh(t,zl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ei(t.elementType),t.type=e,typeof e=="function")Uu(e)?(o=ii(e,o),t.tag=1,t=km(null,t,e,o,r)):(t.tag=0,t=Oc(null,t,e,o,r));else{if(e!=null){var d=e.$$typeof;if(d===B){t.tag=11,t=Om(null,t,e,o,r);break e}else if(d===_){t.tag=14,t=Rm(null,t,e,o,r);break e}}throw t=ne(e)||e,Error(l(306,t,""))}}return t;case 0:return Oc(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,d=ii(o,t.pendingProps),km(e,t,o,d,r);case 3:e:{if(Tt(t,t.stateNode.containerInfo),e===null)throw Error(l(387));o=t.pendingProps;var h=t.memoizedState;d=h.element,ec(e,t),Yl(t,o,null,r);var y=t.memoizedState;if(o=y.cache,va(t,ot,o),o!==h.cache&&Ku(t,[ot],r,!0),ql(),o=y.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Lm(e,t,o,r);break e}else if(o!==d){d=on(Error(l(424)),t),Bl(d),t=Lm(e,t,o,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Xe=pn(e.firstChild),yt=t,Ae=!0,ma=null,fn=!0,r=jh(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Qa(),o===d){t=Kn(e,t,r);break e}St(e,t,o,r)}t=t.child}return t;case 26:return ks(e,t),e===null?(r=Qg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ae||(r=t.type,e=t.pendingProps,o=Zs(Te.current).createElement(r),o[vt]=t,o[Mt]=e,xt(o,r,e),mt(o),t.stateNode=o):t.memoizedState=Qg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xl(t),e===null&&Ae&&(o=t.stateNode=Ig(t.type,t.pendingProps,Te.current),yt=t,fn=!0,d=Xe,ja(t.type)?(hf=d,Xe=pn(o.firstChild)):Xe=d),St(e,t,t.pendingProps.children,r),ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((d=o=Xe)&&(o=g1(o,t.type,t.pendingProps,fn),o!==null?(t.stateNode=o,yt=t,Xe=pn(o.firstChild),fn=!1,d=!0):d=!1),d||ga(t)),xl(t),d=t.type,h=t.pendingProps,y=e!==null?e.memoizedProps:null,o=h.children,uf(d,h)?o=null:y!==null&&uf(d,y)&&(t.flags|=32),t.memoizedState!==null&&(d=sc(e,t,Dx,null,null,r),cr._currentValue=d),ks(e,t),St(e,t,o,r),t.child;case 6:return e===null&&Ae&&((e=r=Xe)&&(r=v1(r,t.pendingProps,fn),r!==null?(t.stateNode=r,yt=t,Xe=null,e=!0):e=!1),e||ga(t)),null;case 13:return zm(e,t,r);case 4:return Tt(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ni(t,null,o,r):St(e,t,o,r),t.child;case 11:return Om(e,t,t.type,t.pendingProps,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,va(t,t.type,o.value),St(e,t,o.children,r),t.child;case 9:return d=t.type._context,o=t.pendingProps.children,Ja(t),d=bt(d),o=o(d),t.flags|=1,St(e,t,o,r),t.child;case 14:return Rm(e,t,t.type,t.pendingProps,r);case 15:return Am(e,t,t.type,t.pendingProps,r);case 19:return $m(e,t,r);case 31:return Ux(e,t,r);case 22:return jm(e,t,r,t.pendingProps);case 24:return Ja(t),o=bt(ot),e===null?(d=Zu(),d===null&&(d=qe,h=Fu(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=r),d=h),t.memoizedState={parent:o,cache:d},Wu(t),va(t,ot,d)):((e.lanes&r)!==0&&(ec(e,t),Yl(t,null,null,r),ql()),d=e.memoizedState,h=t.memoizedState,d.parent!==o?(d={parent:o,cache:o},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),va(t,ot,o)):(o=h.cache,va(t,ot,o),o!==d.cache&&Ku(t,[ot],r,!0))),St(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Fn(e){e.flags|=4}function Lc(e,t,r,o,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(dg())e.flags|=8192;else throw ti=bs,Ju}else e.flags&=-16777217}function Hm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tv(t))if(dg())e.flags|=8192;else throw ti=bs,Ju}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bp():536870912,e.lanes|=t,Wi|=t)}function Ql(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var d=e.child;d!==null;)r|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)r|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Vx(e,t,r){var o=t.pendingProps;switch(qu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return Ie(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Pn(ot),We(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pu())),Ie(t),null;case 26:var d=t.type,h=t.memoizedState;return e===null?(Fn(t),h!==null?(Ie(t),Hm(t,h)):(Ie(t),Lc(t,d,null,o,r))):h?h!==e.memoizedState?(Fn(t),Ie(t),Hm(t,h)):(Ie(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Fn(t),Ie(t),Lc(t,d,e,o,r)),null;case 27:if(Ir(t),r=Te.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Fn(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return Ie(t),null}e=re.current,Hi(t)?bh(t):(e=Ig(d,o,r),t.stateNode=e,Fn(t))}return Ie(t),null;case 5:if(Ir(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Fn(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return Ie(t),null}if(h=re.current,Hi(t))bh(t);else{var y=Zs(Te.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?y.createElement(d,{is:o.is}):y.createElement(d)}}h[vt]=t,h[Mt]=o;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=h;e:switch(xt(h,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Fn(t)}}return Ie(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Fn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(l(166));if(e=Te.current,Hi(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,d=yt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[vt]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||zg(e.nodeValue,r)),e||ga(t,!0)}else e=Zs(e).createTextNode(o),e[vt]=t,t.stateNode=e}return Ie(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(o=Hi(t),r!==null){if(e===null){if(!o)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[vt]=t}else Qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else r=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Ie(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Hi(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(l(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));d[vt]=t}else Qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),d=!1}else d=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(t),(t.flags&128)!==0?(t.lanes=r,t):(r=o!==null,e=e!==null&&e.memoizedState!==null,r&&(o=t.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==d&&(o.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),zs(t,t.updateQueue),Ie(t),null);case 4:return We(),e===null&&af(t.stateNode.containerInfo),Ie(t),null;case 10:return Pn(t.type),Ie(t),null;case 19:if(F(rt),o=t.memoizedState,o===null)return Ie(t),null;if(d=(t.flags&128)!==0,h=o.rendering,h===null)if(d)Ql(o,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=Es(e),h!==null){for(t.flags|=128,Ql(o,!1),e=h.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)hh(r,e),r=r.sibling;return ae(rt,rt.current&1|2),Ae&&qn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&qt()>Vs&&(t.flags|=128,d=!0,Ql(o,!1),t.lanes=4194304)}else{if(!d)if(e=Es(h),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),Ql(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Ae)return Ie(t),null}else 2*qt()-o.renderingStartTime>Vs&&r!==536870912&&(t.flags|=128,d=!0,Ql(o,!1),t.lanes=4194304);o.isBackwards?(h.sibling=t.child,t.child=h):(e=o.last,e!==null?e.sibling=h:t.child=h,o.last=h)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=qt(),e.sibling=null,r=rt.current,ae(rt,d?r&1|2:r&1),Ae&&qn(t,o.treeForkCount),e):(Ie(t),null);case 22:case 23:return Ft(t),ic(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),r=t.updateQueue,r!==null&&zs(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&F(Wa),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Pn(ot),Ie(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Gx(e,t){switch(qu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(ot),We(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ir(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(l(340));Qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(rt),null;case 4:return We(),null;case 10:return Pn(t.type),null;case 22:case 23:return Ft(t),ic(),e!==null&&F(Wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(ot),null;case 25:return null;default:return null}}function Vm(e,t){switch(qu(t),t.tag){case 3:Pn(ot),We();break;case 26:case 27:case 5:Ir(t);break;case 4:We();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:F(rt);break;case 10:Pn(t.type);break;case 22:case 23:Ft(t),ic(),e!==null&&F(Wa);break;case 24:Pn(ot)}}function Zl(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var d=o.next;r=d;do{if((r.tag&e)===e){o=void 0;var h=r.create,y=r.inst;o=h(),y.destroy=o}r=r.next}while(r!==d)}}catch(w){$e(t,t.return,w)}}function Ea(e,t,r){try{var o=t.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var h=d.next;o=h;do{if((o.tag&e)===e){var y=o.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,d=t;var j=r,q=w;try{q()}catch(Q){$e(d,j,Q)}}}o=o.next}while(o!==h)}}catch(Q){$e(t,t.return,Q)}}function Gm(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{Mh(t,r)}catch(o){$e(e,e.return,o)}}}function qm(e,t,r){r.props=ii(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){$e(e,t,o)}}function Jl(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(d){$e(e,t,d)}}function Dn(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(d){$e(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(d){$e(e,t,d)}else r.current=null}function Ym(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(d){$e(e,e.return,d)}}function zc(e,t,r){try{var o=e.stateNode;c1(o,e.type,r,t),o[Mt]=t}catch(d){$e(e,e.return,d)}}function Pm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ja(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ja(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Hn));else if(o!==4&&(o===27&&ja(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,r),e=e.sibling;e!==null;)$c(e,t,r),e=e.sibling}function Bs(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&ja(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Bs(e,t,r),e=e.sibling;e!==null;)Bs(e,t,r),e=e.sibling}function Xm(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);xt(t,o,r),t[vt]=e,t[Mt]=r}catch(h){$e(e,e.return,h)}}var Qn=!1,ft=!1,Uc=!1,Im=typeof WeakSet=="function"?WeakSet:Set,gt=null;function qx(e,t){if(e=e.containerInfo,sf=io,e=lh(e),Mu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var d=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var y=0,w=-1,j=-1,q=0,Q=0,W=e,P=null;t:for(;;){for(var X;W!==r||d!==0&&W.nodeType!==3||(w=y+d),W!==h||o!==0&&W.nodeType!==3||(j=y+o),W.nodeType===3&&(y+=W.nodeValue.length),(X=W.firstChild)!==null;)P=W,W=X;for(;;){if(W===e)break t;if(P===r&&++q===d&&(w=y),P===h&&++Q===o&&(j=y),(X=W.nextSibling)!==null)break;W=P,P=W.parentNode}W=X}r=w===-1||j===-1?null:{start:w,end:j}}else r=null}r=r||{start:0,end:0}}else r=null;for(of={focusedElem:e,selectionRange:r},io=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,h=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)d=e[r],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=t,d=h.memoizedProps,h=h.memoizedState,o=r.stateNode;try{var oe=ii(r.type,d);e=o.getSnapshotBeforeUpdate(oe,h),o.__reactInternalSnapshotBeforeUpdate=e}catch(pe){$e(r,r.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)ff(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ff(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function Km(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Jn(e,r),o&4&&Zl(5,r);break;case 1:if(Jn(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(y){$e(r,r.return,y)}else{var d=ii(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){$e(r,r.return,y)}}o&64&&Gm(r),o&512&&Jl(r,r.return);break;case 3:if(Jn(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{Mh(e,t)}catch(y){$e(r,r.return,y)}}break;case 27:t===null&&o&4&&Xm(r);case 26:case 5:Jn(e,r),t===null&&o&4&&Ym(r),o&512&&Jl(r,r.return);break;case 12:Jn(e,r);break;case 31:Jn(e,r),o&4&&Zm(e,r);break;case 13:Jn(e,r),o&4&&Jm(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=Jx.bind(null,r),y1(e,r))));break;case 22:if(o=r.memoizedState!==null||Qn,!o){t=t!==null&&t.memoizedState!==null||ft,d=Qn;var h=ft;Qn=o,(ft=t)&&!h?Wn(e,r,(r.subtreeFlags&8772)!==0):Jn(e,r),Qn=d,ft=h}break;case 30:break;default:Jn(e,r)}}function Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Fe=null,kt=!1;function Zn(e,t,r){for(r=r.child;r!==null;)Qm(e,t,r),r=r.sibling}function Qm(e,t,r){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(wl,r)}catch{}switch(r.tag){case 26:ft||Dn(r,t),Zn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ft||Dn(r,t);var o=Fe,d=kt;ja(r.type)&&(Fe=r.stateNode,kt=!1),Zn(e,t,r),sr(r.stateNode),Fe=o,kt=d;break;case 5:ft||Dn(r,t);case 6:if(o=Fe,d=kt,Fe=null,Zn(e,t,r),Fe=o,kt=d,Fe!==null)if(kt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(r.stateNode)}catch(h){$e(r,t,h)}else try{Fe.removeChild(r.stateNode)}catch(h){$e(r,t,h)}break;case 18:Fe!==null&&(kt?(e=Fe,Gg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),sl(e)):Gg(Fe,r.stateNode));break;case 4:o=Fe,d=kt,Fe=r.stateNode.containerInfo,kt=!0,Zn(e,t,r),Fe=o,kt=d;break;case 0:case 11:case 14:case 15:Ea(2,r,t),ft||Ea(4,r,t),Zn(e,t,r);break;case 1:ft||(Dn(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&qm(r,t,o)),Zn(e,t,r);break;case 21:Zn(e,t,r);break;case 22:ft=(o=ft)||r.memoizedState!==null,Zn(e,t,r),ft=o;break;default:Zn(e,t,r)}}function Zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{sl(e)}catch(r){$e(t,t.return,r)}}}function Jm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{sl(e)}catch(r){$e(t,t.return,r)}}function Yx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Im),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Im),t;default:throw Error(l(435,e.tag))}}function $s(e,t){var r=Yx(e);t.forEach(function(o){if(!r.has(o)){r.add(o);var d=Wx.bind(null,e,o);o.then(d,d)}})}function Lt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var d=r[o],h=e,y=t,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(ja(w.type)){Fe=w.stateNode,kt=!1;break e}break;case 5:Fe=w.stateNode,kt=!1;break e;case 3:case 4:Fe=w.stateNode.containerInfo,kt=!0;break e}w=w.return}if(Fe===null)throw Error(l(160));Qm(h,y,d),Fe=null,kt=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wm(t,e),t=t.sibling}var Sn=null;function Wm(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),zt(e),o&4&&(Ea(3,e,e.return),Zl(3,e),Ea(5,e,e.return));break;case 1:Lt(t,e),zt(e),o&512&&(ft||r===null||Dn(r,r.return)),o&64&&Qn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var d=Sn;if(Lt(t,e),zt(e),o&512&&(ft||r===null||Dn(r,r.return)),o&4){var h=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":h=d.getElementsByTagName("title")[0],(!h||h[Cl]||h[vt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(o),d.head.insertBefore(h,d.querySelector("head > title"))),xt(h,o,r),h[vt]=e,mt(h),o=h;break e;case"link":var y=Wg("link","href",d).get(o+(r.href||""));if(y){for(var w=0;w<y.length;w++)if(h=y[w],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){y.splice(w,1);break t}}h=d.createElement(o),xt(h,o,r),d.head.appendChild(h);break;case"meta":if(y=Wg("meta","content",d).get(o+(r.content||""))){for(w=0;w<y.length;w++)if(h=y[w],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){y.splice(w,1);break t}}h=d.createElement(o),xt(h,o,r),d.head.appendChild(h);break;default:throw Error(l(468,o))}h[vt]=e,mt(h),o=h}e.stateNode=o}else ev(d,e.type,e.stateNode);else e.stateNode=Jg(d,o,e.memoizedProps);else h!==o?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,o===null?ev(d,e.type,e.stateNode):Jg(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&zc(e,e.memoizedProps,r.memoizedProps)}break;case 27:Lt(t,e),zt(e),o&512&&(ft||r===null||Dn(r,r.return)),r!==null&&o&4&&zc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Lt(t,e),zt(e),o&512&&(ft||r===null||Dn(r,r.return)),e.flags&32){d=e.stateNode;try{ji(d,"")}catch(oe){$e(e,e.return,oe)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,zc(e,d,r!==null?r.memoizedProps:d)),o&1024&&(Uc=!0);break;case 6:if(Lt(t,e),zt(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(oe){$e(e,e.return,oe)}}break;case 3:if(eo=null,d=Sn,Sn=Js(t.containerInfo),Lt(t,e),Sn=d,zt(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{sl(t.containerInfo)}catch(oe){$e(e,e.return,oe)}Uc&&(Uc=!1,eg(e));break;case 4:o=Sn,Sn=Js(e.stateNode.containerInfo),Lt(t,e),zt(e),Sn=o;break;case 12:Lt(t,e),zt(e);break;case 31:Lt(t,e),zt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$s(e,o)));break;case 13:Lt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Hs=qt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$s(e,o)));break;case 22:d=e.memoizedState!==null;var j=r!==null&&r.memoizedState!==null,q=Qn,Q=ft;if(Qn=q||d,ft=Q||j,Lt(t,e),ft=Q,Qn=q,zt(e),o&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(r===null||j||Qn||ft||li(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){j=r=t;try{if(h=j.stateNode,d)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=j.stateNode;var W=j.memoizedProps.style,P=W!=null&&W.hasOwnProperty("display")?W.display:null;w.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(oe){$e(j,j.return,oe)}}}else if(t.tag===6){if(r===null){j=t;try{j.stateNode.nodeValue=d?"":j.memoizedProps}catch(oe){$e(j,j.return,oe)}}}else if(t.tag===18){if(r===null){j=t;try{var X=j.stateNode;d?qg(X,!0):qg(j.stateNode,!1)}catch(oe){$e(j,j.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,$s(e,r))));break;case 19:Lt(t,e),zt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$s(e,o)));break;case 30:break;case 21:break;default:Lt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(Pm(o)){r=o;break}o=o.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var d=r.stateNode,h=Bc(e);Bs(e,h,d);break;case 5:var y=r.stateNode;r.flags&32&&(ji(y,""),r.flags&=-33);var w=Bc(e);Bs(e,w,y);break;case 3:case 4:var j=r.stateNode.containerInfo,q=Bc(e);$c(e,q,j);break;default:throw Error(l(161))}}catch(Q){$e(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Km(e,t.alternate,t),t=t.sibling}function li(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ea(4,t,t.return),li(t);break;case 1:Dn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&qm(t,t.return,r),li(t);break;case 27:sr(t.stateNode);case 26:case 5:Dn(t,t.return),li(t);break;case 22:t.memoizedState===null&&li(t);break;case 30:li(t);break;default:li(t)}e=e.sibling}}function Wn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,d=e,h=t,y=h.flags;switch(h.tag){case 0:case 11:case 15:Wn(d,h,r),Zl(4,h);break;case 1:if(Wn(d,h,r),o=h,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(q){$e(o,o.return,q)}if(o=h,d=o.updateQueue,d!==null){var w=o.stateNode;try{var j=d.shared.hiddenCallbacks;if(j!==null)for(d.shared.hiddenCallbacks=null,d=0;d<j.length;d++)Dh(j[d],w)}catch(q){$e(o,o.return,q)}}r&&y&64&&Gm(h),Jl(h,h.return);break;case 27:Xm(h);case 26:case 5:Wn(d,h,r),r&&o===null&&y&4&&Ym(h),Jl(h,h.return);break;case 12:Wn(d,h,r);break;case 31:Wn(d,h,r),r&&y&4&&Zm(d,h);break;case 13:Wn(d,h,r),r&&y&4&&Jm(d,h);break;case 22:h.memoizedState===null&&Wn(d,h,r),Jl(h,h.return);break;case 30:break;default:Wn(d,h,r)}t=t.sibling}}function Hc(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&$l(r))}function Vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$l(e))}function xn(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tg(e,t,r,o),t=t.sibling}function tg(e,t,r,o){var d=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,r,o),d&2048&&Zl(9,t);break;case 1:xn(e,t,r,o);break;case 3:xn(e,t,r,o),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$l(e)));break;case 12:if(d&2048){xn(e,t,r,o),e=t.stateNode;try{var h=t.memoizedProps,y=h.id,w=h.onPostCommit;typeof w=="function"&&w(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){$e(t,t.return,j)}}else xn(e,t,r,o);break;case 31:xn(e,t,r,o);break;case 13:xn(e,t,r,o);break;case 23:break;case 22:h=t.stateNode,y=t.alternate,t.memoizedState!==null?h._visibility&2?xn(e,t,r,o):Wl(e,t):h._visibility&2?xn(e,t,r,o):(h._visibility|=2,Qi(e,t,r,o,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Hc(y,t);break;case 24:xn(e,t,r,o),d&2048&&Vc(t.alternate,t);break;default:xn(e,t,r,o)}}function Qi(e,t,r,o,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,y=t,w=r,j=o,q=y.flags;switch(y.tag){case 0:case 11:case 15:Qi(h,y,w,j,d),Zl(8,y);break;case 23:break;case 22:var Q=y.stateNode;y.memoizedState!==null?Q._visibility&2?Qi(h,y,w,j,d):Wl(h,y):(Q._visibility|=2,Qi(h,y,w,j,d)),d&&q&2048&&Hc(y.alternate,y);break;case 24:Qi(h,y,w,j,d),d&&q&2048&&Vc(y.alternate,y);break;default:Qi(h,y,w,j,d)}t=t.sibling}}function Wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,d=o.flags;switch(o.tag){case 22:Wl(r,o),d&2048&&Hc(o.alternate,o);break;case 24:Wl(r,o),d&2048&&Vc(o.alternate,o);break;default:Wl(r,o)}t=t.sibling}}var er=8192;function Zi(e,t,r){if(e.subtreeFlags&er)for(e=e.child;e!==null;)ng(e,t,r),e=e.sibling}function ng(e,t,r){switch(e.tag){case 26:Zi(e,t,r),e.flags&er&&e.memoizedState!==null&&j1(r,Sn,e.memoizedState,e.memoizedProps);break;case 5:Zi(e,t,r);break;case 3:case 4:var o=Sn;Sn=Js(e.stateNode.containerInfo),Zi(e,t,r),Sn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=er,er=16777216,Zi(e,t,r),er=o):Zi(e,t,r));break;default:Zi(e,t,r)}}function ag(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function tr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];gt=o,lg(o,e)}ag(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ig(e),e=e.sibling}function ig(e){switch(e.tag){case 0:case 11:case 15:tr(e),e.flags&2048&&Ea(9,e,e.return);break;case 3:tr(e);break;case 12:tr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Us(e)):tr(e);break;default:tr(e)}}function Us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];gt=o,lg(o,e)}ag(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ea(8,t,t.return),Us(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,Us(t));break;default:Us(t)}e=e.sibling}}function lg(e,t){for(;gt!==null;){var r=gt;switch(r.tag){case 0:case 11:case 15:Ea(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:$l(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,gt=o;else e:for(r=e;gt!==null;){o=gt;var d=o.sibling,h=o.return;if(Fm(o),o===r){gt=null;break e}if(d!==null){d.return=h,gt=d;break e}gt=h}}}var Px={getCacheForType:function(e){var t=bt(ot),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return bt(ot).controller.signal}},Xx=typeof WeakMap=="function"?WeakMap:Map,ze=0,qe=null,Ce=null,Oe=0,Be=0,Qt=null,Ta=!1,Ji=!1,Gc=!1,ea=0,at=0,Ca=0,ri=0,qc=0,Zt=0,Wi=0,nr=null,Bt=null,Yc=!1,Hs=0,rg=0,Vs=1/0,Gs=null,Na=null,pt=0,Oa=null,el=null,ta=0,Pc=0,Xc=null,sg=null,ar=0,Ic=null;function Jt(){return(ze&2)!==0&&Oe!==0?Oe&-Oe:V.T!==null?Wc():Ep()}function og(){if(Zt===0)if((Oe&536870912)===0||Ae){var e=Qr;Qr<<=1,(Qr&3932160)===0&&(Qr=262144),Zt=e}else Zt=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Zt}function $t(e,t,r){(e===qe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(tl(e,0),Ra(e,Oe,Zt,!1)),Tl(e,r),((ze&2)===0||e!==qe)&&(e===qe&&((ze&2)===0&&(ri|=r),at===4&&Ra(e,Oe,Zt,!1)),Mn(e))}function ug(e,t,r){if((ze&6)!==0)throw Error(l(327));var o=!r&&(t&127)===0&&(t&e.expiredLanes)===0||El(e,t),d=o?Fx(e,t):Fc(e,t,!0),h=o;do{if(d===0){Ji&&!o&&Ra(e,t,0,!1);break}else{if(r=e.current.alternate,h&&!Ix(r)){d=Fc(e,t,!1),h=!1;continue}if(d===2){if(h=t,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var w=e;d=nr;var j=w.current.memoizedState.isDehydrated;if(j&&(tl(w,y).flags|=256),y=Fc(w,y,!1),y!==2){if(Gc&&!j){w.errorRecoveryDisabledLanes|=h,ri|=h,d=4;break e}h=Bt,Bt=d,h!==null&&(Bt===null?Bt=h:Bt.push.apply(Bt,h))}d=y}if(h=!1,d!==2)continue}}if(d===1){tl(e,0),Ra(e,t,0,!0);break}e:{switch(o=e,h=d,h){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ra(o,t,Zt,!Ta);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(d=Hs+300-qt(),10<d)){if(Ra(o,t,Zt,!Ta),Jr(o,0,!0)!==0)break e;ta=t,o.timeoutHandle=Hg(cg.bind(null,o,r,Bt,Gs,Yc,t,Zt,ri,Wi,Ta,h,"Throttled",-0,0),d);break e}cg(o,r,Bt,Gs,Yc,t,Zt,ri,Wi,Ta,h,null,-0,0)}}break}while(!0);Mn(e)}function cg(e,t,r,o,d,h,y,w,j,q,Q,W,P,X){if(e.timeoutHandle=-1,W=t.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hn},ng(t,h,W);var oe=(h&62914560)===h?Hs-qt():(h&4194048)===h?rg-qt():0;if(oe=D1(W,oe),oe!==null){ta=h,e.cancelPendingCommit=oe(yg.bind(null,e,t,h,r,o,d,y,w,j,Q,W,null,P,X)),Ra(e,h,y,!q);return}}yg(e,t,h,r,o,d,y,w,j)}function Ix(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var d=r[o],h=d.getSnapshot;d=d.value;try{if(!Xt(h(),d))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ra(e,t,r,o){t&=~qc,t&=~ri,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var d=t;0<d;){var h=31-Pt(d),y=1<<h;o[h]=-1,d&=~y}r!==0&&Sp(e,r,t)}function qs(){return(ze&6)===0?(ir(0),!1):!0}function Kc(){if(Ce!==null){if(Be===0)var e=Ce.return;else e=Ce,Yn=Za=null,cc(e),Pi=null,Hl=0,e=Ce;for(;e!==null;)Vm(e.alternate,e),e=e.return;Ce=null}}function tl(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,p1(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),ta=0,Kc(),qe=e,Ce=r=Gn(e.current,null),Oe=t,Be=0,Qt=null,Ta=!1,Ji=El(e,t),Gc=!1,Wi=Zt=qc=ri=Ca=at=0,Bt=nr=null,Yc=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var d=31-Pt(o),h=1<<d;t|=e[d],o&=~h}return ea=t,cs(),r}function fg(e,t){Se=null,V.H=Kl,t===Yi||t===ys?(t=Oh(),Be=3):t===Ju?(t=Oh(),Be=4):Be=t===Nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Ce===null&&(at=1,Ms(e,on(t,e.current)))}function dg(){var e=Kt.current;return e===null?!0:(Oe&4194048)===Oe?dn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===dn:!1}function pg(){var e=V.H;return V.H=Kl,e===null?Kl:e}function hg(){var e=V.A;return V.A=Px,e}function Ys(){at=4,Ta||(Oe&4194048)!==Oe&&Kt.current!==null||(Ji=!0),(Ca&134217727)===0&&(ri&134217727)===0||qe===null||Ra(qe,Oe,Zt,!1)}function Fc(e,t,r){var o=ze;ze|=2;var d=pg(),h=hg();(qe!==e||Oe!==t)&&(Gs=null,tl(e,t)),t=!1;var y=at;e:do try{if(Be!==0&&Ce!==null){var w=Ce,j=Qt;switch(Be){case 8:Kc(),y=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var q=Be;if(Be=0,Qt=null,nl(e,w,j,q),r&&Ji){y=0;break e}break;default:q=Be,Be=0,Qt=null,nl(e,w,j,q)}}Kx(),y=at;break}catch(Q){fg(e,Q)}while(!0);return t&&e.shellSuspendCounter++,Yn=Za=null,ze=o,V.H=d,V.A=h,Ce===null&&(qe=null,Oe=0,cs()),y}function Kx(){for(;Ce!==null;)mg(Ce)}function Fx(e,t){var r=ze;ze|=2;var o=pg(),d=hg();qe!==e||Oe!==t?(Gs=null,Vs=qt()+500,tl(e,t)):Ji=El(e,t);e:do try{if(Be!==0&&Ce!==null){t=Ce;var h=Qt;t:switch(Be){case 1:Be=0,Qt=null,nl(e,t,h,1);break;case 2:case 9:if(Ch(h)){Be=0,Qt=null,gg(t);break}t=function(){Be!==2&&Be!==9||qe!==e||(Be=7),Mn(e)},h.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Ch(h)?(Be=0,Qt=null,gg(t)):(Be=0,Qt=null,nl(e,t,h,7));break;case 5:var y=null;switch(Ce.tag){case 26:y=Ce.memoizedState;case 5:case 27:var w=Ce;if(y?tv(y):w.stateNode.complete){Be=0,Qt=null;var j=w.sibling;if(j!==null)Ce=j;else{var q=w.return;q!==null?(Ce=q,Ps(q)):Ce=null}break t}}Be=0,Qt=null,nl(e,t,h,5);break;case 6:Be=0,Qt=null,nl(e,t,h,6);break;case 8:Kc(),at=6;break e;default:throw Error(l(462))}}Qx();break}catch(Q){fg(e,Q)}while(!0);return Yn=Za=null,V.H=o,V.A=d,ze=r,Ce!==null?0:(qe=null,Oe=0,cs(),at)}function Qx(){for(;Ce!==null&&!b0();)mg(Ce)}function mg(e){var t=Um(e.alternate,e,ea);e.memoizedProps=e.pendingProps,t===null?Ps(e):Ce=t}function gg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=_m(r,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=_m(r,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:cc(t);default:Vm(r,t),t=Ce=hh(t,ea),t=Um(r,t,ea)}e.memoizedProps=e.pendingProps,t===null?Ps(e):Ce=t}function nl(e,t,r,o){Yn=Za=null,cc(t),Pi=null,Hl=0;var d=t.return;try{if($x(e,d,t,r,Oe)){at=1,Ms(e,on(r,e.current)),Ce=null;return}}catch(h){if(d!==null)throw Ce=d,h;at=1,Ms(e,on(r,e.current)),Ce=null;return}t.flags&32768?(Ae||o===1?e=!0:Ji||(Oe&536870912)!==0?e=!1:(Ta=e=!0,(o===2||o===9||o===3||o===6)&&(o=Kt.current,o!==null&&o.tag===13&&(o.flags|=16384))),vg(t,e)):Ps(t)}function Ps(e){var t=e;do{if((t.flags&32768)!==0){vg(t,Ta);return}e=t.return;var r=Vx(t.alternate,t,ea);if(r!==null){Ce=r;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);at===0&&(at=5)}function vg(e,t){do{var r=Gx(e.alternate,e);if(r!==null){r.flags&=32767,Ce=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=r}while(e!==null);at=6,Ce=null}function yg(e,t,r,o,d,h,y,w,j){e.cancelPendingCommit=null;do Xs();while(pt!==0);if((ze&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(h=t.lanes|t.childLanes,h|=Bu,A0(e,r,h,y,w,j),e===qe&&(Ce=qe=null,Oe=0),el=t,Oa=e,ta=r,Pc=h,Xc=d,sg=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,e1(Kr,function(){return Eg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=V.T,V.T=null,d=te.p,te.p=2,y=ze,ze|=4;try{qx(e,t,r)}finally{ze=y,te.p=d,V.T=o}}pt=1,bg(),Sg(),xg()}}function bg(){if(pt===1){pt=0;var e=Oa,t=el,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=V.T,V.T=null;var o=te.p;te.p=2;var d=ze;ze|=4;try{Wm(t,e);var h=of,y=lh(e.containerInfo),w=h.focusedElem,j=h.selectionRange;if(y!==w&&w&&w.ownerDocument&&ih(w.ownerDocument.documentElement,w)){if(j!==null&&Mu(w)){var q=j.start,Q=j.end;if(Q===void 0&&(Q=q),"selectionStart"in w)w.selectionStart=q,w.selectionEnd=Math.min(Q,w.value.length);else{var W=w.ownerDocument||document,P=W&&W.defaultView||window;if(P.getSelection){var X=P.getSelection(),oe=w.textContent.length,pe=Math.min(j.start,oe),Ge=j.end===void 0?pe:Math.min(j.end,oe);!X.extend&&pe>Ge&&(y=Ge,Ge=pe,pe=y);var L=ah(w,pe),k=ah(w,Ge);if(L&&k&&(X.rangeCount!==1||X.anchorNode!==L.node||X.anchorOffset!==L.offset||X.focusNode!==k.node||X.focusOffset!==k.offset)){var G=W.createRange();G.setStart(L.node,L.offset),X.removeAllRanges(),pe>Ge?(X.addRange(G),X.extend(k.node,k.offset)):(G.setEnd(k.node,k.offset),X.addRange(G))}}}}for(W=[],X=w;X=X.parentNode;)X.nodeType===1&&W.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<W.length;w++){var Z=W[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}io=!!sf,of=sf=null}finally{ze=d,te.p=o,V.T=r}}e.current=t,pt=2}}function Sg(){if(pt===2){pt=0;var e=Oa,t=el,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=V.T,V.T=null;var o=te.p;te.p=2;var d=ze;ze|=4;try{Km(e,t.alternate,t)}finally{ze=d,te.p=o,V.T=r}}pt=3}}function xg(){if(pt===4||pt===3){pt=0,S0();var e=Oa,t=el,r=ta,o=sg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?pt=5:(pt=0,el=Oa=null,wg(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Na=null),pu(r),t=t.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(wl,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=V.T,d=te.p,te.p=2,V.T=null;try{for(var h=e.onRecoverableError,y=0;y<o.length;y++){var w=o[y];h(w.value,{componentStack:w.stack})}}finally{V.T=t,te.p=d}}(ta&3)!==0&&Xs(),Mn(e),d=e.pendingLanes,(r&261930)!==0&&(d&42)!==0?e===Ic?ar++:(ar=0,Ic=e):ar=0,ir(0)}}function wg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$l(t)))}function Xs(){return bg(),Sg(),xg(),Eg()}function Eg(){if(pt!==5)return!1;var e=Oa,t=Pc;Pc=0;var r=pu(ta),o=V.T,d=te.p;try{te.p=32>r?32:r,V.T=null,r=Xc,Xc=null;var h=Oa,y=ta;if(pt=0,el=Oa=null,ta=0,(ze&6)!==0)throw Error(l(331));var w=ze;if(ze|=4,ig(h.current),tg(h,h.current,y,r),ze=w,ir(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(wl,h)}catch{}return!0}finally{te.p=d,V.T=o,wg(e,t)}}function Tg(e,t,r){t=on(r,t),t=Cc(e.stateNode,t,2),e=Sa(e,t,2),e!==null&&(Tl(e,2),Mn(e))}function $e(e,t,r){if(e.tag===3)Tg(e,e,r);else for(;t!==null;){if(t.tag===3){Tg(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Na===null||!Na.has(o))){e=on(r,e),r=Cm(2),o=Sa(t,r,2),o!==null&&(Nm(r,o,t,e),Tl(o,2),Mn(o));break}}t=t.return}}function Qc(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Xx;var d=new Set;o.set(t,d)}else d=o.get(t),d===void 0&&(d=new Set,o.set(t,d));d.has(r)||(Gc=!0,d.add(r),e=Zx.bind(null,e,t,r),t.then(e,e))}function Zx(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,qe===e&&(Oe&r)===r&&(at===4||at===3&&(Oe&62914560)===Oe&&300>qt()-Hs?(ze&2)===0&&tl(e,0):qc|=r,Wi===Oe&&(Wi=0)),Mn(e)}function Cg(e,t){t===0&&(t=bp()),e=Ka(e,t),e!==null&&(Tl(e,t),Mn(e))}function Jx(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Cg(e,r)}function Wx(e,t){var r=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(r=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(t),Cg(e,r)}function e1(e,t){return uu(e,t)}var Is=null,al=null,Zc=!1,Ks=!1,Jc=!1,Aa=0;function Mn(e){e!==al&&e.next===null&&(al===null?Is=al=e:al=al.next=e),Ks=!0,Zc||(Zc=!0,n1())}function ir(e,t){if(!Jc&&Ks){Jc=!0;do for(var r=!1,o=Is;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var h=0;else{var y=o.suspendedLanes,w=o.pingedLanes;h=(1<<31-Pt(42|e)+1)-1,h&=d&~(y&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,Ag(o,h))}else h=Oe,h=Jr(o,o===qe?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||El(o,h)||(r=!0,Ag(o,h));o=o.next}while(r);Jc=!1}}function t1(){Ng()}function Ng(){Ks=Zc=!1;var e=0;Aa!==0&&d1()&&(e=Aa);for(var t=qt(),r=null,o=Is;o!==null;){var d=o.next,h=Og(o,t);h===0?(o.next=null,r===null?Is=d:r.next=d,d===null&&(al=r)):(r=o,(e!==0||(h&3)!==0)&&(Ks=!0)),o=d}pt!==0&&pt!==5||ir(e),Aa!==0&&(Aa=0)}function Og(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Pt(h),w=1<<y,j=d[y];j===-1?((w&r)===0||(w&o)!==0)&&(d[y]=R0(w,t)):j<=t&&(e.expiredLanes|=w),h&=~w}if(t=qe,r=Oe,r=Jr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&cu(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||El(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&cu(o),pu(r)){case 2:case 8:r=vp;break;case 32:r=Kr;break;case 268435456:r=yp;break;default:r=Kr}return o=Rg.bind(null,e),r=uu(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&cu(o),e.callbackPriority=2,e.callbackNode=null,2}function Rg(e,t){if(pt!==0&&pt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Xs()&&e.callbackNode!==r)return null;var o=Oe;return o=Jr(e,e===qe?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(ug(e,o,t),Og(e,qt()),e.callbackNode!=null&&e.callbackNode===r?Rg.bind(null,e):null)}function Ag(e,t){if(Xs())return null;ug(e,t,!0)}function n1(){h1(function(){(ze&6)!==0?uu(gp,t1):Ng()})}function Wc(){if(Aa===0){var e=Gi;e===0&&(e=Fr,Fr<<=1,(Fr&261888)===0&&(Fr=256)),Aa=e}return Aa}function jg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ns(""+e)}function Dg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function a1(e,t,r,o,d){if(t==="submit"&&r&&r.stateNode===d){var h=jg((d[Mt]||null).action),y=o.submitter;y&&(t=(t=y[Mt]||null)?jg(t.formAction):y.getAttribute("formAction"),t!==null&&(h=t,y=null));var w=new rs("action","action",null,o,d);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Aa!==0){var j=y?Dg(d,y):new FormData(d);bc(r,{pending:!0,data:j,method:d.method,action:h},null,j)}}else typeof h=="function"&&(w.preventDefault(),j=y?Dg(d,y):new FormData(d),bc(r,{pending:!0,data:j,method:d.method,action:h},h,j))},currentTarget:d}]})}}for(var ef=0;ef<zu.length;ef++){var tf=zu[ef],i1=tf.toLowerCase(),l1=tf[0].toUpperCase()+tf.slice(1);bn(i1,"on"+l1)}bn(oh,"onAnimationEnd"),bn(uh,"onAnimationIteration"),bn(ch,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(xx,"onTransitionRun"),bn(wx,"onTransitionStart"),bn(Ex,"onTransitionCancel"),bn(fh,"onTransitionEnd"),Ri("onMouseEnter",["mouseout","mouseover"]),Ri("onMouseLeave",["mouseout","mouseover"]),Ri("onPointerEnter",["pointerout","pointerover"]),Ri("onPointerLeave",["pointerout","pointerover"]),Ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),r1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lr));function Mg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],d=o.event;o=o.listeners;e:{var h=void 0;if(t)for(var y=o.length-1;0<=y;y--){var w=o[y],j=w.instance,q=w.currentTarget;if(w=w.listener,j!==h&&d.isPropagationStopped())break e;h=w,d.currentTarget=q;try{h(d)}catch(Q){us(Q)}d.currentTarget=null,h=j}else for(y=0;y<o.length;y++){if(w=o[y],j=w.instance,q=w.currentTarget,w=w.listener,j!==h&&d.isPropagationStopped())break e;h=w,d.currentTarget=q;try{h(d)}catch(Q){us(Q)}d.currentTarget=null,h=j}}}}function Ne(e,t){var r=t[hu];r===void 0&&(r=t[hu]=new Set);var o=e+"__bubble";r.has(o)||(_g(t,e,2,!1),r.add(o))}function nf(e,t,r){var o=0;t&&(o|=4),_g(r,e,o,t)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function af(e){if(!e[Fs]){e[Fs]=!0,Np.forEach(function(r){r!=="selectionchange"&&(r1.has(r)||nf(r,!1,e),nf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fs]||(t[Fs]=!0,nf("selectionchange",!1,t))}}function _g(e,t,r,o){switch(ov(t)){case 2:var d=k1;break;case 8:d=L1;break;default:d=bf}r=d.bind(null,t,r,e),d=void 0,!Eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(t,r,{capture:!0,passive:d}):e.addEventListener(t,r,!0):d!==void 0?e.addEventListener(t,r,{passive:d}):e.addEventListener(t,r,!1)}function lf(e,t,r,o,d){var h=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var w=o.stateNode.containerInfo;if(w===d)break;if(y===4)for(y=o.return;y!==null;){var j=y.tag;if((j===3||j===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;w!==null;){if(y=Ci(w),y===null)return;if(j=y.tag,j===5||j===6||j===26||j===27){o=h=y;continue e}w=w.parentNode}}o=o.return}$p(function(){var q=h,Q=xu(r),W=[];e:{var P=dh.get(e);if(P!==void 0){var X=rs,oe=e;switch(e){case"keypress":if(is(r)===0)break e;case"keydown":case"keyup":X=W0;break;case"focusin":oe="focus",X=Ou;break;case"focusout":oe="blur",X=Ou;break;case"beforeblur":case"afterblur":X=Ou;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=V0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=nx;break;case oh:case uh:case ch:X=Y0;break;case fh:X=ix;break;case"scroll":case"scrollend":X=U0;break;case"wheel":X=rx;break;case"copy":case"cut":case"paste":X=X0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=qp;break;case"toggle":case"beforetoggle":X=ox}var pe=(t&4)!==0,Ge=!pe&&(e==="scroll"||e==="scrollend"),L=pe?P!==null?P+"Capture":null:P;pe=[];for(var k=q,G;k!==null;){var Z=k;if(G=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||G===null||L===null||(Z=Ol(k,L),Z!=null&&pe.push(rr(k,Z,G))),Ge)break;k=k.return}0<pe.length&&(P=new X(P,oe,null,r,Q),W.push({event:P,listeners:pe}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",P&&r!==Su&&(oe=r.relatedTarget||r.fromElement)&&(Ci(oe)||oe[Ti]))break e;if((X||P)&&(P=Q.window===Q?Q:(P=Q.ownerDocument)?P.defaultView||P.parentWindow:window,X?(oe=r.relatedTarget||r.toElement,X=q,oe=oe?Ci(oe):null,oe!==null&&(Ge=u(oe),pe=oe.tag,oe!==Ge||pe!==5&&pe!==27&&pe!==6)&&(oe=null)):(X=null,oe=q),X!==oe)){if(pe=Vp,Z="onMouseLeave",L="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(pe=qp,Z="onPointerLeave",L="onPointerEnter",k="pointer"),Ge=X==null?P:Nl(X),G=oe==null?P:Nl(oe),P=new pe(Z,k+"leave",X,r,Q),P.target=Ge,P.relatedTarget=G,Z=null,Ci(Q)===q&&(pe=new pe(L,k+"enter",oe,r,Q),pe.target=G,pe.relatedTarget=Ge,Z=pe),Ge=Z,X&&oe)t:{for(pe=s1,L=X,k=oe,G=0,Z=L;Z;Z=pe(Z))G++;Z=0;for(var fe=k;fe;fe=pe(fe))Z++;for(;0<G-Z;)L=pe(L),G--;for(;0<Z-G;)k=pe(k),Z--;for(;G--;){if(L===k||k!==null&&L===k.alternate){pe=L;break t}L=pe(L),k=pe(k)}pe=null}else pe=null;X!==null&&kg(W,P,X,pe,!1),oe!==null&&Ge!==null&&kg(W,Ge,oe,pe,!0)}}e:{if(P=q?Nl(q):window,X=P.nodeName&&P.nodeName.toLowerCase(),X==="select"||X==="input"&&P.type==="file")var _e=Zp;else if(Fp(P))if(Jp)_e=yx;else{_e=gx;var ue=mx}else X=P.nodeName,!X||X.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?q&&bu(q.elementType)&&(_e=Zp):_e=vx;if(_e&&(_e=_e(e,q))){Qp(W,_e,r,Q);break e}ue&&ue(e,P,q),e==="focusout"&&q&&P.type==="number"&&q.memoizedProps.value!=null&&yu(P,"number",P.value)}switch(ue=q?Nl(q):window,e){case"focusin":(Fp(ue)||ue.contentEditable==="true")&&(ki=ue,_u=q,Ll=null);break;case"focusout":Ll=_u=ki=null;break;case"mousedown":ku=!0;break;case"contextmenu":case"mouseup":case"dragend":ku=!1,rh(W,r,Q);break;case"selectionchange":if(Sx)break;case"keydown":case"keyup":rh(W,r,Q)}var xe;if(Au)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else _i?Ip(e,r)&&(Re="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Re="onCompositionStart");Re&&(Yp&&r.locale!=="ko"&&(_i||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&_i&&(xe=Up()):(pa=Q,Tu="value"in pa?pa.value:pa.textContent,_i=!0)),ue=Qs(q,Re),0<ue.length&&(Re=new Gp(Re,e,null,r,Q),W.push({event:Re,listeners:ue}),xe?Re.data=xe:(xe=Kp(r),xe!==null&&(Re.data=xe)))),(xe=cx?fx(e,r):dx(e,r))&&(Re=Qs(q,"onBeforeInput"),0<Re.length&&(ue=new Gp("onBeforeInput","beforeinput",null,r,Q),W.push({event:ue,listeners:Re}),ue.data=xe)),a1(W,e,q,r,Q)}Mg(W,t)})}function rr(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Qs(e,t){for(var r=t+"Capture",o=[];e!==null;){var d=e,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=Ol(e,r),d!=null&&o.unshift(rr(e,d,h)),d=Ol(e,t),d!=null&&o.push(rr(e,d,h))),e.tag===3)return o;e=e.return}return[]}function s1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kg(e,t,r,o,d){for(var h=t._reactName,y=[];r!==null&&r!==o;){var w=r,j=w.alternate,q=w.stateNode;if(w=w.tag,j!==null&&j===o)break;w!==5&&w!==26&&w!==27||q===null||(j=q,d?(q=Ol(r,h),q!=null&&y.unshift(rr(r,q,j))):d||(q=Ol(r,h),q!=null&&y.push(rr(r,q,j)))),r=r.return}y.length!==0&&e.push({event:t,listeners:y})}var o1=/\r\n?/g,u1=/\u0000|\uFFFD/g;function Lg(e){return(typeof e=="string"?e:""+e).replace(o1,`
20
- `).replace(u1,"")}function zg(e,t){return t=Lg(t),Lg(e)===t}function Ve(e,t,r,o,d,h){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||ji(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&ji(e,""+o);break;case"className":es(e,"class",o);break;case"tabIndex":es(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":es(e,r,o);break;case"style":zp(e,o,h);break;case"data":if(t!=="object"){es(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=ns(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(r==="formAction"?(t!=="input"&&Ve(e,t,"name",d.name,d,null),Ve(e,t,"formEncType",d.formEncType,d,null),Ve(e,t,"formMethod",d.formMethod,d,null),Ve(e,t,"formTarget",d.formTarget,d,null)):(Ve(e,t,"encType",d.encType,d,null),Ve(e,t,"method",d.method,d,null),Ve(e,t,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=ns(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=Hn);break;case"onScroll":o!=null&&Ne("scroll",e);break;case"onScrollEnd":o!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(r=o.__html,r!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=ns(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Wr(e,"popover",o);break;case"xlinkActuate":Un(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Un(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Un(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Un(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Un(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Un(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Un(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Un(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Un(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Wr(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=B0.get(r)||r,Wr(e,r,o))}}function rf(e,t,r,o,d,h){switch(r){case"style":zp(e,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(r=o.__html,r!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof o=="string"?ji(e,o):(typeof o=="number"||typeof o=="bigint")&&ji(e,""+o);break;case"onScroll":o!=null&&Ne("scroll",e);break;case"onScrollEnd":o!=null&&Ne("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Op.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(d=r.endsWith("Capture"),t=r.slice(2,d?r.length-7:void 0),h=e[Mt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(t,h,d),typeof o=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,d);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):Wr(e,r,o)}}}function xt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var o=!1,d=!1,h;for(h in r)if(r.hasOwnProperty(h)){var y=r[h];if(y!=null)switch(h){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ve(e,t,h,y,r,null)}}d&&Ve(e,t,"srcSet",r.srcSet,r,null),o&&Ve(e,t,"src",r.src,r,null);return;case"input":Ne("invalid",e);var w=h=y=d=null,j=null,q=null;for(o in r)if(r.hasOwnProperty(o)){var Q=r[o];if(Q!=null)switch(o){case"name":d=Q;break;case"type":y=Q;break;case"checked":j=Q;break;case"defaultChecked":q=Q;break;case"value":h=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,t));break;default:Ve(e,t,o,Q,r,null)}}Mp(e,h,w,j,q,y,d,!1);return;case"select":Ne("invalid",e),o=y=h=null;for(d in r)if(r.hasOwnProperty(d)&&(w=r[d],w!=null))switch(d){case"value":h=w;break;case"defaultValue":y=w;break;case"multiple":o=w;default:Ve(e,t,d,w,r,null)}t=h,r=y,e.multiple=!!o,t!=null?Ai(e,!!o,t,!1):r!=null&&Ai(e,!!o,r,!0);return;case"textarea":Ne("invalid",e),h=d=o=null;for(y in r)if(r.hasOwnProperty(y)&&(w=r[y],w!=null))switch(y){case"value":o=w;break;case"defaultValue":d=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Ve(e,t,y,w,r,null)}kp(e,o,d,h);return;case"option":for(j in r)r.hasOwnProperty(j)&&(o=r[j],o!=null)&&(j==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":Ve(e,t,j,o,r,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(o=0;o<lr.length;o++)Ne(lr[o],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in r)if(r.hasOwnProperty(q)&&(o=r[q],o!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ve(e,t,q,o,r,null)}return;default:if(bu(t)){for(Q in r)r.hasOwnProperty(Q)&&(o=r[Q],o!==void 0&&rf(e,t,Q,o,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(o=r[w],o!=null&&Ve(e,t,w,o,r,null))}function c1(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,y=null,w=null,j=null,q=null,Q=null;for(X in r){var W=r[X];if(r.hasOwnProperty(X)&&W!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":j=W;default:o.hasOwnProperty(X)||Ve(e,t,X,null,o,W)}}for(var P in o){var X=o[P];if(W=r[P],o.hasOwnProperty(P)&&(X!=null||W!=null))switch(P){case"type":h=X;break;case"name":d=X;break;case"checked":q=X;break;case"defaultChecked":Q=X;break;case"value":y=X;break;case"defaultValue":w=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(l(137,t));break;default:X!==W&&Ve(e,t,P,X,o,W)}}vu(e,y,w,j,q,Q,h,d);return;case"select":X=y=w=P=null;for(h in r)if(j=r[h],r.hasOwnProperty(h)&&j!=null)switch(h){case"value":break;case"multiple":X=j;default:o.hasOwnProperty(h)||Ve(e,t,h,null,o,j)}for(d in o)if(h=o[d],j=r[d],o.hasOwnProperty(d)&&(h!=null||j!=null))switch(d){case"value":P=h;break;case"defaultValue":w=h;break;case"multiple":y=h;default:h!==j&&Ve(e,t,d,h,o,j)}t=w,r=y,o=X,P!=null?Ai(e,!!r,P,!1):!!o!=!!r&&(t!=null?Ai(e,!!r,t,!0):Ai(e,!!r,r?[]:"",!1));return;case"textarea":X=P=null;for(w in r)if(d=r[w],r.hasOwnProperty(w)&&d!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,t,w,null,o,d)}for(y in o)if(d=o[y],h=r[y],o.hasOwnProperty(y)&&(d!=null||h!=null))switch(y){case"value":P=d;break;case"defaultValue":X=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(l(91));break;default:d!==h&&Ve(e,t,y,d,o,h)}_p(e,P,X);return;case"option":for(var oe in r)P=r[oe],r.hasOwnProperty(oe)&&P!=null&&!o.hasOwnProperty(oe)&&(oe==="selected"?e.selected=!1:Ve(e,t,oe,null,o,P));for(j in o)P=o[j],X=r[j],o.hasOwnProperty(j)&&P!==X&&(P!=null||X!=null)&&(j==="selected"?e.selected=P&&typeof P!="function"&&typeof P!="symbol":Ve(e,t,j,P,o,X));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in r)P=r[pe],r.hasOwnProperty(pe)&&P!=null&&!o.hasOwnProperty(pe)&&Ve(e,t,pe,null,o,P);for(q in o)if(P=o[q],X=r[q],o.hasOwnProperty(q)&&P!==X&&(P!=null||X!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,t));break;default:Ve(e,t,q,P,o,X)}return;default:if(bu(t)){for(var Ge in r)P=r[Ge],r.hasOwnProperty(Ge)&&P!==void 0&&!o.hasOwnProperty(Ge)&&rf(e,t,Ge,void 0,o,P);for(Q in o)P=o[Q],X=r[Q],!o.hasOwnProperty(Q)||P===X||P===void 0&&X===void 0||rf(e,t,Q,P,o,X);return}}for(var L in r)P=r[L],r.hasOwnProperty(L)&&P!=null&&!o.hasOwnProperty(L)&&Ve(e,t,L,null,o,P);for(W in o)P=o[W],X=r[W],!o.hasOwnProperty(W)||P===X||P==null&&X==null||Ve(e,t,W,P,o,X)}function Bg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),o=0;o<r.length;o++){var d=r[o],h=d.transferSize,y=d.initiatorType,w=d.duration;if(h&&w&&Bg(y)){for(y=0,w=d.responseEnd,o+=1;o<r.length;o++){var j=r[o],q=j.startTime;if(q>w)break;var Q=j.transferSize,W=j.initiatorType;Q&&Bg(W)&&(j=j.responseEnd,y+=Q*(j<w?1:(w-q)/(j-q)))}if(--o,t+=8*(h+y)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var sf=null,of=null;function Zs(e){return e.nodeType===9?e:e.ownerDocument}function $g(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ug(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function uf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cf=null;function d1(){var e=window.event;return e&&e.type==="popstate"?e===cf?!1:(cf=e,!0):(cf=null,!1)}var Hg=typeof setTimeout=="function"?setTimeout:void 0,p1=typeof clearTimeout=="function"?clearTimeout:void 0,Vg=typeof Promise=="function"?Promise:void 0,h1=typeof queueMicrotask=="function"?queueMicrotask:typeof Vg<"u"?function(e){return Vg.resolve(null).then(e).catch(m1)}:Hg;function m1(e){setTimeout(function(){throw e})}function ja(e){return e==="head"}function Gg(e,t){var r=t,o=0;do{var d=r.nextSibling;if(e.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"||r==="/&"){if(o===0){e.removeChild(d),sl(t);return}o--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")o++;else if(r==="html")sr(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,sr(r);for(var h=r.firstChild;h;){var y=h.nextSibling,w=h.nodeName;h[Cl]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=y}}else r==="body"&&sr(e.ownerDocument.body);r=d}while(r);sl(t)}function qg(e,t){var r=e;e=0;do{var o=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=o}while(r)}function ff(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":ff(r),mu(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function g1(e,t,r,o){for(;e.nodeType===1;){var d=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Cl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=pn(e.nextSibling),e===null)break}return null}function v1(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=pn(e.nextSibling),e===null))return null;return e}function Yg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pn(e.nextSibling),e===null))return null;return e}function df(e){return e.data==="$?"||e.data==="$~"}function pf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function y1(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var hf=null;function Pg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return pn(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Xg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Ig(e,t,r){switch(t=Zs(r),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function sr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mu(e)}var hn=new Map,Kg=new Set;function Js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var na=te.d;te.d={f:b1,r:S1,D:x1,C:w1,L:E1,m:T1,X:N1,S:C1,M:O1};function b1(){var e=na.f(),t=qs();return e||t}function S1(e){var t=Ni(e);t!==null&&t.tag===5&&t.type==="form"?fm(t):na.r(e)}var il=typeof document>"u"?null:document;function Fg(e,t,r){var o=il;if(o&&typeof t=="string"&&t){var d=rn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof r=="string"&&(d+='[crossorigin="'+r+'"]'),Kg.has(d)||(Kg.add(d),e={rel:e,crossOrigin:r,href:t},o.querySelector(d)===null&&(t=o.createElement("link"),xt(t,"link",e),mt(t),o.head.appendChild(t)))}}function x1(e){na.D(e),Fg("dns-prefetch",e,null)}function w1(e,t){na.C(e,t),Fg("preconnect",e,t)}function E1(e,t,r){na.L(e,t,r);var o=il;if(o&&e&&t){var d='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(d+='[imagesrcset="'+rn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(d+='[imagesizes="'+rn(r.imageSizes)+'"]')):d+='[href="'+rn(e)+'"]';var h=d;switch(t){case"style":h=ll(e);break;case"script":h=rl(e)}hn.has(h)||(e=g({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),hn.set(h,e),o.querySelector(d)!==null||t==="style"&&o.querySelector(or(h))||t==="script"&&o.querySelector(ur(h))||(t=o.createElement("link"),xt(t,"link",e),mt(t),o.head.appendChild(t)))}}function T1(e,t){na.m(e,t);var r=il;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+rn(o)+'"][href="'+rn(e)+'"]',h=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=rl(e)}if(!hn.has(h)&&(e=g({rel:"modulepreload",href:e},t),hn.set(h,e),r.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(ur(h)))return}o=r.createElement("link"),xt(o,"link",e),mt(o),r.head.appendChild(o)}}}function C1(e,t,r){na.S(e,t,r);var o=il;if(o&&e){var d=Oi(o).hoistableStyles,h=ll(e);t=t||"default";var y=d.get(h);if(!y){var w={loading:0,preload:null};if(y=o.querySelector(or(h)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},r),(r=hn.get(h))&&mf(e,r);var j=y=o.createElement("link");mt(j),xt(j,"link",e),j._p=new Promise(function(q,Q){j.onload=q,j.onerror=Q}),j.addEventListener("load",function(){w.loading|=1}),j.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ws(y,t,o)}y={type:"stylesheet",instance:y,count:1,state:w},d.set(h,y)}}}function N1(e,t){na.X(e,t);var r=il;if(r&&e){var o=Oi(r).hoistableScripts,d=rl(e),h=o.get(d);h||(h=r.querySelector(ur(d)),h||(e=g({src:e,async:!0},t),(t=hn.get(d))&&gf(e,t),h=r.createElement("script"),mt(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(d,h))}}function O1(e,t){na.M(e,t);var r=il;if(r&&e){var o=Oi(r).hoistableScripts,d=rl(e),h=o.get(d);h||(h=r.querySelector(ur(d)),h||(e=g({src:e,async:!0,type:"module"},t),(t=hn.get(d))&&gf(e,t),h=r.createElement("script"),mt(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(d,h))}}function Qg(e,t,r,o){var d=(d=Te.current)?Js(d):null;if(!d)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=ll(r.href),r=Oi(d).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ll(r.href);var h=Oi(d).hoistableStyles,y=h.get(e);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=d.querySelector(or(e)))&&!h._p&&(y.instance=h,y.state.loading=5),hn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},hn.set(e,r),h||R1(d,e,r,y.state))),t&&o===null)throw Error(l(528,""));return y}if(t&&o!==null)throw Error(l(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=rl(r),r=Oi(d).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function ll(e){return'href="'+rn(e)+'"'}function or(e){return'link[rel="stylesheet"]['+e+"]"}function Zg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function R1(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),xt(t,"link",r),mt(t),e.head.appendChild(t))}function rl(e){return'[src="'+rn(e)+'"]'}function ur(e){return"script[async]"+e}function Jg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+rn(r.href)+'"]');if(o)return t.instance=o,mt(o),o;var d=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),mt(o),xt(o,"style",d),Ws(o,r.precedence,e),t.instance=o;case"stylesheet":d=ll(r.href);var h=e.querySelector(or(d));if(h)return t.state.loading|=4,t.instance=h,mt(h),h;o=Zg(r),(d=hn.get(d))&&mf(o,d),h=(e.ownerDocument||e).createElement("link"),mt(h);var y=h;return y._p=new Promise(function(w,j){y.onload=w,y.onerror=j}),xt(h,"link",o),t.state.loading|=4,Ws(h,r.precedence,e),t.instance=h;case"script":return h=rl(r.src),(d=e.querySelector(ur(h)))?(t.instance=d,mt(d),d):(o=r,(d=hn.get(h))&&(o=g({},r),gf(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),mt(d),xt(d,"link",o),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Ws(o,r.precedence,e));return t.instance}function Ws(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,h=d,y=0;y<o.length;y++){var w=o[y];if(w.dataset.precedence===t)h=w;else if(h!==d)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var eo=null;function Wg(e,t,r){if(eo===null){var o=new Map,d=eo=new Map;d.set(r,o)}else d=eo,o=d.get(r),o||(o=new Map,d.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),d=0;d<r.length;d++){var h=r[d];if(!(h[Cl]||h[vt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(t)||"";y=e+y;var w=o.get(y);w?w.push(h):o.set(y,[h])}}return o}function ev(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function A1(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function j1(e,t,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=ll(o.href),h=t.querySelector(or(d));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=to.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=h,mt(h);return}h=t.ownerDocument||t,o=Zg(o),(d=hn.get(d))&&mf(o,d),h=h.createElement("link"),mt(h);var y=h;y._p=new Promise(function(w,j){y.onload=w,y.onerror=j}),xt(h,"link",o),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=to.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var vf=0;function D1(e,t){return e.stylesheets&&e.count===0&&ao(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var o=setTimeout(function(){if(e.stylesheets&&ao(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&vf===0&&(vf=62500*f1());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ao(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>vf?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function to(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ao(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var no=null;function ao(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,no=new Map,t.forEach(M1,e),no=null,to.call(e))}function M1(e,t){if(!(t.state.loading&4)){var r=no.get(e);if(r)var o=r.get(null);else{r=new Map,no.set(e,r);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var y=d[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(r.set(y.dataset.precedence,y),o=y)}o&&r.set(null,o)}d=t.instance,y=d.getAttribute("data-precedence"),h=r.get(y)||o,h===o&&r.set(null,d),r.set(y,d),this.count++,o=to.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),h?h.parentNode.insertBefore(d,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var cr={$$typeof:R,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function _1(e,t,r,o,d,h,y,w,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fu(0),this.hiddenUpdates=fu(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function nv(e,t,r,o,d,h,y,w,j,q,Q,W){return e=new _1(e,t,r,y,j,q,Q,W,w),t=1,h===!0&&(t|=24),h=It(3,null,null,t),e.current=h,h.stateNode=e,t=Fu(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:o,isDehydrated:r,cache:t},Wu(h),e}function av(e){return e?(e=Bi,e):Bi}function iv(e,t,r,o,d,h){d=av(d),o.context===null?o.context=d:o.pendingContext=d,o=ba(t),o.payload={element:r},h=h===void 0?null:h,h!==null&&(o.callback=h),r=Sa(e,o,t),r!==null&&($t(r,e,t),Gl(r,e,t))}function lv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function yf(e,t){lv(e,t),(e=e.alternate)&&lv(e,t)}function rv(e){if(e.tag===13||e.tag===31){var t=Ka(e,67108864);t!==null&&$t(t,e,67108864),yf(e,67108864)}}function sv(e){if(e.tag===13||e.tag===31){var t=Jt();t=du(t);var r=Ka(e,t);r!==null&&$t(r,e,t),yf(e,t)}}var io=!0;function k1(e,t,r,o){var d=V.T;V.T=null;var h=te.p;try{te.p=2,bf(e,t,r,o)}finally{te.p=h,V.T=d}}function L1(e,t,r,o){var d=V.T;V.T=null;var h=te.p;try{te.p=8,bf(e,t,r,o)}finally{te.p=h,V.T=d}}function bf(e,t,r,o){if(io){var d=Sf(o);if(d===null)lf(e,t,o,lo,r),uv(e,o);else if(B1(d,e,t,r,o))o.stopPropagation();else if(uv(e,o),t&4&&-1<z1.indexOf(e)){for(;d!==null;){var h=Ni(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=qa(h.pendingLanes);if(y!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var j=1<<31-Pt(y);w.entanglements[1]|=j,y&=~j}Mn(h),(ze&6)===0&&(Vs=qt()+500,ir(0))}}break;case 31:case 13:w=Ka(h,2),w!==null&&$t(w,h,2),qs(),yf(h,2)}if(h=Sf(o),h===null&&lf(e,t,o,lo,r),h===d)break;d=h}d!==null&&o.stopPropagation()}else lf(e,t,o,null,r)}}function Sf(e){return e=xu(e),xf(e)}var lo=null;function xf(e){if(lo=null,e=Ci(e),e!==null){var t=u(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=c(t),e!==null)return e;e=null}else if(r===31){if(e=p(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lo=e,null}function ov(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(x0()){case gp:return 2;case vp:return 8;case Kr:case w0:return 32;case yp:return 268435456;default:return 32}default:return 32}}var wf=!1,Da=null,Ma=null,_a=null,fr=new Map,dr=new Map,ka=[],z1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function uv(e,t){switch(e){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dr.delete(t.pointerId)}}function pr(e,t,r,o,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:h,targetContainers:[d]},t!==null&&(t=Ni(t),t!==null&&rv(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function B1(e,t,r,o,d){switch(t){case"focusin":return Da=pr(Da,e,t,r,o,d),!0;case"dragenter":return Ma=pr(Ma,e,t,r,o,d),!0;case"mouseover":return _a=pr(_a,e,t,r,o,d),!0;case"pointerover":var h=d.pointerId;return fr.set(h,pr(fr.get(h)||null,e,t,r,o,d)),!0;case"gotpointercapture":return h=d.pointerId,dr.set(h,pr(dr.get(h)||null,e,t,r,o,d)),!0}return!1}function cv(e){var t=Ci(e.target);if(t!==null){var r=u(t);if(r!==null){if(t=r.tag,t===13){if(t=c(r),t!==null){e.blockedOn=t,Tp(e.priority,function(){sv(r)});return}}else if(t===31){if(t=p(r),t!==null){e.blockedOn=t,Tp(e.priority,function(){sv(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Sf(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Su=o,r.target.dispatchEvent(o),Su=null}else return t=Ni(r),t!==null&&rv(t),e.blockedOn=r,!1;t.shift()}return!0}function fv(e,t,r){ro(e)&&r.delete(t)}function $1(){wf=!1,Da!==null&&ro(Da)&&(Da=null),Ma!==null&&ro(Ma)&&(Ma=null),_a!==null&&ro(_a)&&(_a=null),fr.forEach(fv),dr.forEach(fv)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,wf||(wf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,$1)))}var oo=null;function dv(e){oo!==e&&(oo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){oo===e&&(oo=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],d=e[t+2];if(typeof o!="function"){if(xf(o||r)===null)continue;break}var h=Ni(r);h!==null&&(e.splice(t,3),t-=3,bc(h,{pending:!0,data:d,method:r.method,action:o},o,d))}}))}function sl(e){function t(j){return so(j,e)}Da!==null&&so(Da,e),Ma!==null&&so(Ma,e),_a!==null&&so(_a,e),fr.forEach(t),dr.forEach(t);for(var r=0;r<ka.length;r++){var o=ka[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ka.length&&(r=ka[0],r.blockedOn===null);)cv(r),r.blockedOn===null&&ka.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var d=r[o],h=r[o+1],y=d[Mt]||null;if(typeof h=="function")y||dv(r);else if(y){var w=null;if(h&&h.hasAttribute("formAction")){if(d=h,y=h[Mt]||null)w=y.formAction;else if(xf(d)!==null)continue}else w=y.action;typeof w=="function"?r[o+1]=w:(r.splice(o,3),o-=3),dv(r)}}}function pv(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),o||setTimeout(r,20)}function r(){if(!o&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function Ef(e){this._internalRoot=e}uo.prototype.render=Ef.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var r=t.current,o=Jt();iv(r,o,e,t,null,null)},uo.prototype.unmount=Ef.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;iv(e.current,2,null,e,null,null),qs(),t[Ti]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ep();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ka.length&&t!==0&&t<ka[r].priority;r++);ka.splice(r,0,e),r===0&&cv(e)}};var hv=n.version;if(hv!=="19.2.4")throw Error(l(527,hv,"19.2.4"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var U1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!co.isDisabled&&co.supportsFiber)try{wl=co.inject(U1),Yt=co}catch{}}return br.createRoot=function(e,t){if(!s(e))throw Error(l(299));var r=!1,o="",d=xm,h=wm,y=Em;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=nv(e,1,!1,null,null,r,o,null,d,h,y,pv),e[Ti]=t.current,af(e),new Ef(t)},br.hydrateRoot=function(e,t,r){if(!s(e))throw Error(l(299));var o=!1,d="",h=xm,y=wm,w=Em,j=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.formState!==void 0&&(j=r.formState)),t=nv(e,1,!0,t,r??null,o,d,j,h,y,w,pv),t.context=av(null),r=t.current,o=Jt(),o=du(o),d=ba(o),d.callback=null,Sa(r,d,o),r=o,t.current.lanes=r,Tl(t,r),Mn(t),e[Ti]=t.current,af(e),new uo(t)},br.version="19.2.4",br}var ty;function wN(){if(ty)return Pf.exports;ty=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),Pf.exports=xN(),Pf.exports}var EN=wN();const TN=Ny(EN);var ny="popstate";function ay(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function CN(a={}){function n(s,u){let{pathname:c="/",search:p="",hash:f=""}=bi(s.location.hash.substring(1));return!c.startsWith("/")&&!c.startsWith(".")&&(c="/"+c),vd("",{pathname:c,search:p,hash:f},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function i(s,u){let c=s.document.querySelector("base"),p="";if(c&&c.getAttribute("href")){let f=s.location.href,m=f.indexOf("#");p=m===-1?f:f.slice(0,m)}return p+"#"+(typeof u=="string"?u:Ur(u))}function l(s,u){vn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(u)})`)}return ON(n,i,l,a)}function Je(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function vn(a,n){if(!a){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function NN(){return Math.random().toString(36).substring(2,10)}function iy(a,n){return{usr:a.state,key:a.key,idx:n,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function vd(a,n,i=null,l,s){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof n=="string"?bi(n):n,state:i,key:n&&n.key||l||NN(),unstable_mask:s}}function Ur({pathname:a="/",search:n="",hash:i=""}){return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function bi(a){let n={};if(a){let i=a.indexOf("#");i>=0&&(n.hash=a.substring(i),a=a.substring(0,i));let l=a.indexOf("?");l>=0&&(n.search=a.substring(l),a=a.substring(0,l)),a&&(n.pathname=a)}return n}function ON(a,n,i,l={}){let{window:s=document.defaultView,v5Compat:u=!1}=l,c=s.history,p="POP",f=null,m=v();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function v(){return(c.state||{idx:null}).idx}function g(){p="POP";let A=v(),C=A==null?null:A-m;m=A,f&&f({action:p,location:O.location,delta:C})}function S(A,C){p="PUSH";let T=ay(A)?A:vd(O.location,A,C);i&&i(T,A),m=v()+1;let R=iy(T,m),B=O.createHref(T.unstable_mask||T);try{c.pushState(R,"",B)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;s.location.assign(B)}u&&f&&f({action:p,location:O.location,delta:1})}function x(A,C){p="REPLACE";let T=ay(A)?A:vd(O.location,A,C);i&&i(T,A),m=v();let R=iy(T,m),B=O.createHref(T.unstable_mask||T);c.replaceState(R,"",B),u&&f&&f({action:p,location:O.location,delta:0})}function E(A){return RN(A)}let O={get action(){return p},get location(){return a(s,c)},listen(A){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(ny,g),f=A,()=>{s.removeEventListener(ny,g),f=null}},createHref(A){return n(s,A)},createURL:E,encodeLocation(A){let C=E(A);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:S,replace:x,go(A){return c.go(A)}};return O}function RN(a,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Je(i,"No window.location.(origin|href) available to create URL");let l=typeof a=="string"?a:Ur(a);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function eb(a,n,i="/"){return AN(a,n,i,!1)}function AN(a,n,i,l){let s=typeof n=="string"?bi(n):n,u=sa(s.pathname||"/",i);if(u==null)return null;let c=tb(a);jN(c);let p=null;for(let f=0;p==null&&f<c.length;++f){let m=VN(u);p=UN(c[f],m,l)}return p}function tb(a,n=[],i=[],l="",s=!1){let u=(c,p,f=s,m)=>{let v={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:p,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(l)&&f)return;Je(v.relativePath.startsWith(l),`Absolute route path "${v.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(l.length)}let g=Bn([l,v.relativePath]),S=i.concat(v);c.children&&c.children.length>0&&(Je(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),tb(c.children,n,S,g,f)),!(c.path==null&&!c.index)&&n.push({path:g,score:BN(g,c.index),routesMeta:S})};return a.forEach((c,p)=>{if(c.path===""||!c.path?.includes("?"))u(c,p);else for(let f of nb(c.path))u(c,p,!0,f)}),n}function nb(a){let n=a.split("/");if(n.length===0)return[];let[i,...l]=n,s=i.endsWith("?"),u=i.replace(/\?$/,"");if(l.length===0)return s?[u,""]:[u];let c=nb(l.join("/")),p=[];return p.push(...c.map(f=>f===""?u:[u,f].join("/"))),s&&p.push(...c),p.map(f=>a.startsWith("/")&&f===""?"/":f)}function jN(a){a.sort((n,i)=>n.score!==i.score?i.score-n.score:$N(n.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var DN=/^:[\w-]+$/,MN=3,_N=2,kN=1,LN=10,zN=-2,ly=a=>a==="*";function BN(a,n){let i=a.split("/"),l=i.length;return i.some(ly)&&(l+=zN),n&&(l+=_N),i.filter(s=>!ly(s)).reduce((s,u)=>s+(DN.test(u)?MN:u===""?kN:LN),l)}function $N(a,n){return a.length===n.length&&a.slice(0,-1).every((l,s)=>l===n[s])?a[a.length-1]-n[n.length-1]:0}function UN(a,n,i=!1){let{routesMeta:l}=a,s={},u="/",c=[];for(let p=0;p<l.length;++p){let f=l[p],m=p===l.length-1,v=u==="/"?n:n.slice(u.length)||"/",g=Ho({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},v),S=f.route;if(!g&&m&&i&&!l[l.length-1].route.index&&(g=Ho({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},v)),!g)return null;Object.assign(s,g.params),c.push({params:s,pathname:Bn([u,g.pathname]),pathnameBase:PN(Bn([u,g.pathnameBase])),route:S}),g.pathnameBase!=="/"&&(u=Bn([u,g.pathnameBase]))}return c}function Ho(a,n){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[i,l]=HN(a.path,a.caseSensitive,a.end),s=n.match(i);if(!s)return null;let u=s[0],c=u.replace(/(.)\/+$/,"$1"),p=s.slice(1);return{params:l.reduce((m,{paramName:v,isOptional:g},S)=>{if(v==="*"){let E=p[S]||"";c=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const x=p[S];return g&&!x?m[v]=void 0:m[v]=(x||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:c,pattern:a}}function HN(a,n=!1,i=!0){vn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let l=[],s="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,p,f,m,v)=>{if(l.push({paramName:p,isOptional:f!=null}),f){let g=v.charAt(m+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(l.push({paramName:"*"}),s+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":a!==""&&a!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),l]}function VN(a){try{return a.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return vn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),a}}function sa(a,n){if(n==="/")return a;if(!a.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,l=a.charAt(i);return l&&l!=="/"?null:a.slice(i)||"/"}var GN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function qN(a,n="/"){let{pathname:i,search:l="",hash:s=""}=typeof a=="string"?bi(a):a,u;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?u=ry(i.substring(1),"/"):u=ry(i,n)):u=n,{pathname:u,search:XN(l),hash:IN(s)}}function ry(a,n){let i=n.replace(/\/+$/,"").split("/");return a.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function Ff(a,n,i,l){return`Cannot include a '${a}' character in a manually specified \`to.${n}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function YN(a){return a.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Bd(a){let n=YN(a);return n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase)}function Wo(a,n,i,l=!1){let s;typeof a=="string"?s=bi(a):(s={...a},Je(!s.pathname||!s.pathname.includes("?"),Ff("?","pathname","search",s)),Je(!s.pathname||!s.pathname.includes("#"),Ff("#","pathname","hash",s)),Je(!s.search||!s.search.includes("#"),Ff("#","search","hash",s)));let u=a===""||s.pathname==="",c=u?"/":s.pathname,p;if(c==null)p=i;else{let g=n.length-1;if(!l&&c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),g-=1;s.pathname=S.join("/")}p=g>=0?n[g]:"/"}let f=qN(s,p),m=c&&c!=="/"&&c.endsWith("/"),v=(u||c===".")&&i.endsWith("/");return!f.pathname.endsWith("/")&&(m||v)&&(f.pathname+="/"),f}var Bn=a=>a.join("/").replace(/\/\/+/g,"/"),PN=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),XN=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,IN=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,KN=class{constructor(a,n,i,l=!1){this.status=a,this.statusText=n||"",this.internal=l,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function FN(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function QN(a){return a.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ab=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ib(a,n){let i=a;if(typeof i!="string"||!GN.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,s=!1;if(ab)try{let u=new URL(window.location.href),c=i.startsWith("//")?new URL(u.protocol+i):new URL(i),p=sa(c.pathname,n);c.origin===u.origin&&p!=null?i=p+c.search+c.hash:s=!0}catch{vn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:s,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lb=["POST","PUT","PATCH","DELETE"];new Set(lb);var ZN=["GET",...lb];new Set(ZN);var vl=N.createContext(null);vl.displayName="DataRouter";var eu=N.createContext(null);eu.displayName="DataRouterState";var JN=N.createContext(!1),rb=N.createContext({isTransitioning:!1});rb.displayName="ViewTransition";var WN=N.createContext(new Map);WN.displayName="Fetchers";var e2=N.createContext(null);e2.displayName="Await";var nn=N.createContext(null);nn.displayName="Navigation";var Yr=N.createContext(null);Yr.displayName="Location";var On=N.createContext({outlet:null,matches:[],isDataRoute:!1});On.displayName="Route";var $d=N.createContext(null);$d.displayName="RouteError";var sb="REACT_ROUTER_ERROR",t2="REDIRECT",n2="ROUTE_ERROR_RESPONSE";function a2(a){if(a.startsWith(`${sb}:${t2}:{`))try{let n=JSON.parse(a.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function i2(a){if(a.startsWith(`${sb}:${n2}:{`))try{let n=JSON.parse(a.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new KN(n.status,n.statusText,n.data)}catch{}}function l2(a,{relative:n}={}){Je(yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=N.useContext(nn),{hash:s,pathname:u,search:c}=Pr(a,{relative:n}),p=u;return i!=="/"&&(p=u==="/"?i:Bn([i,u])),l.createHref({pathname:p,search:c,hash:s})}function yl(){return N.useContext(Yr)!=null}function ca(){return Je(yl(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Yr).location}var ob="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ub(a){N.useContext(nn).static||N.useLayoutEffect(a)}function bl(){let{isDataRoute:a}=N.useContext(On);return a?b2():r2()}function r2(){Je(yl(),"useNavigate() may be used only in the context of a <Router> component.");let a=N.useContext(vl),{basename:n,navigator:i}=N.useContext(nn),{matches:l}=N.useContext(On),{pathname:s}=ca(),u=JSON.stringify(Bd(l)),c=N.useRef(!1);return ub(()=>{c.current=!0}),N.useCallback((f,m={})=>{if(vn(c.current,ob),!c.current)return;if(typeof f=="number"){i.go(f);return}let v=Wo(f,JSON.parse(u),s,m.relative==="path");a==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:Bn([n,v.pathname])),(m.replace?i.replace:i.push)(v,m.state,m)},[n,i,u,s,a])}N.createContext(null);function s2(){let{matches:a}=N.useContext(On),n=a[a.length-1];return n?n.params:{}}function Pr(a,{relative:n}={}){let{matches:i}=N.useContext(On),{pathname:l}=ca(),s=JSON.stringify(Bd(i));return N.useMemo(()=>Wo(a,JSON.parse(s),l,n==="path"),[a,s,l,n])}function o2(a,n){return cb(a,n)}function cb(a,n,i){Je(yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=N.useContext(nn),{matches:s}=N.useContext(On),u=s[s.length-1],c=u?u.params:{},p=u?u.pathname:"/",f=u?u.pathnameBase:"/",m=u&&u.route;{let A=m&&m.path||"";db(p,!m||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${A}">) 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.
12
+ `)}componentDidMount(){if(this.ref.current===null)return;let e=this.makeOptions();o(n).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option(`disabled`,this.props.disabled)}render(){let{tag:e,style:t,className:n,id:r}=this.props,a={style:t,className:n,id:r},o=!e||e===null?`div`:e;return(0,i.createElement)(o,{ref:this.ref,...a},this.getChildren())}getChildren(){let{children:e,dataIdAttr:t,selectedClass:n=`sortable-selected`,chosenClass:a=`sortable-chosen`,dragClass:s=`sortable-drag`,fallbackClass:c=`sortable-falback`,ghostClass:l=`sortable-ghost`,swapClass:u=`sortable-swap-highlight`,filter:d=`sortable-filter`,list:f}=this.props;if(!e||e==null)return null;let p=t||`data-id`;return i.Children.map(e,(e,t)=>{if(e===void 0)return;let s=f[t]||{},{className:c}=e.props,l=typeof d==`string`&&{[d.replace(`.`,``)]:!!s.filtered},u=o(r)(c,{[n]:s.selected,[a]:s.chosen,...l});return(0,i.cloneElement)(e,{[p]:e.key,className:u})})}get sortable(){let e=this.ref.current;if(e===null)return null;let t=Object.keys(e).find(e=>e.includes(`Sortable`));return t?e[t]:null}makeOptions(){let e=[`onAdd`,`onChoose`,`onDeselect`,`onEnd`,`onRemove`,`onSelect`,`onSpill`,`onStart`,`onUnchoose`,`onUpdate`],t=[`onChange`,`onClone`,`onFilter`,`onSort`],n=b(this.props);e.forEach(e=>n[e]=this.prepareOnHandlerPropAndDOM(e)),t.forEach(e=>n[e]=this.prepareOnHandlerProp(e));let r=(e,t)=>{let{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;let i=n(e,t,this.sortable,x);return i===void 0?!1:i};return{...n,onMove:r}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){let n=this.props[t];n&&n(e,this.sortable,x)}onAdd(e){let{list:t,setList:n,clone:r}=this.props,i=m(e,[...x.dragging.props.list]);f(i),n(_(i,t,e,r).map(e=>Object.assign(e,{selected:!1})),this.sortable,x)}onRemove(e){let{list:t,setList:n}=this.props,r=v(e),i=m(e,t);p(i);let s=[...t];if(e.pullMode!==`clone`)s=g(i,s);else{let t=i;switch(r){case`multidrag`:t=i.map((t,n)=>({...t,element:e.clones[n]}));break;case`normal`:t=i.map(t=>({...t,element:e.clone}));break;default:o(a)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}f(t),i.forEach(t=>{let n=t.oldIndex,r=this.props.clone(t.item,e);s.splice(n,1,r)})}s=s.map(e=>Object.assign(e,{selected:!1})),n(s,this.sortable,x)}onUpdate(e){let{list:t,setList:n}=this.props,r=m(e,t);return f(r),p(r),n(h(r,t),this.sortable,x)}onStart(){x.dragging=this}onEnd(){x.dragging=null}onChoose(e){let{list:t,setList:n}=this.props;n(t.map((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r}),this.sortable,x)}onUnchoose(e){let{list:t,setList:n}=this.props;n(t.map((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r}),this.sortable,x)}onSpill(e){let{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&l(e.item)}onSelect(e){let{list:t,setList:n}=this.props,r=t.map(e=>Object.assign(e,{selected:!1}));e.newIndicies.forEach(t=>{let n=t.index;if(n===-1){console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),console.log(e);return}r[n].selected=!0}),n(r,this.sortable,x)}onDeselect(e){let{list:t,setList:n}=this.props,r=t.map(e=>Object.assign(e,{selected:!1}));e.newIndicies.forEach(e=>{let t=e.index;t!==-1&&(r[t].selected=!0)}),n(r,this.sortable,x)}};c(t.exports,{})}))();function Ii(e){if(e===null)return`null`;if(e===void 0)return`undefined`;if(e instanceof Error)return e.message;switch(typeof e){case`bigint`:case`number`:case`boolean`:return String(e);case`string`:return e;case`symbol`:return`Symbol(${e.description??``})`;case`object`:return String(`message`in e?e.message:e);case`function`:return`function ${e.name}`;default:return`invalid error type`}}var Li=(0,A.createContext)(void 0);function Ri({children:e,ref:t}){let{logger:n}=Pt(),r=(0,A.useRef)([]),i=(0,A.useRef)(0),[a,o]=(0,A.useReducer)(e=>e+1,0),s=(0,A.useCallback)((e,t)=>{let n={id:++i.current,message:e,severity:t?.severity??`info`,autoDismiss:t?.autoDismiss??!1};r.current.push(n),o()},[]),c=(0,A.useCallback)(()=>{r.current.shift(),o()},[]),l=(0,A.useCallback)(e=>{n.error(`AlertStack caught error:`,e),s(Ii(e),{severity:`error`})},[s]);(0,A.useImperativeHandle)(t,()=>({showAlert:s,showError:l}),[s,l]);let u={showAlert:s,queue:r.current,dismissCurrent:c};return(0,j.jsx)(Li.Provider,{value:u,children:e})}function zi(){let e=(0,A.useContext)(Li);if(!e)throw Error(`useAlertStack must be used within an AlertStackProvider`);let t=(0,A.useCallback)(t=>{e.showAlert(Ii(t),{severity:`error`})},[e.showAlert]);return{showAlert:e.showAlert,showError:t}}function Bi(e){let t=(0,A.useContext)(Li),n=Pt();if(!t)throw Error(`AlertStack must be used within an AlertStackProvider`);let{queue:r,dismissCurrent:i}=t,a=r[0];return(0,A.useEffect)(()=>{if(!a?.autoDismiss)return;let e=setTimeout(i,n.autoDismissAlertDurationMs);return()=>clearTimeout(e)},[a?.id,a?.autoDismiss,n.autoDismissAlertDurationMs,i]),a?(0,j.jsx)(It,{className:e?.className,severity:a.severity,onClose:i,children:a.message}):null}var Vi=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ee());else{var t=n(l);t!==null&&re(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&re(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ee():S=!1}}}var ee;if(typeof y==`function`)ee=function(){y(D)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=D,ee=function(){ne.postMessage(null)}}else ee=function(){_(D,0)};function re(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,re(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ee()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Hi=s(((e,t)=>{t.exports=Vi()})),Ui=s((e=>{var t=Ne();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.4`})),Wi=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ui()})),Gi=s((e=>{var t=Hi(),n=Ne(),r=Wi();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),ee=Symbol.iterator;function te(e){return typeof e!=`object`||!e?null:(e=ee&&e[ee]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function le(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function ue(e,t){se++,oe[se]=e.current,e.current=t}var de=ce(null),fe=ce(null),pe=ce(null),me=ce(null);function he(e,t){switch(ue(pe,t),ue(fe,e),ue(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(de),ue(de,e)}function ge(){le(de),le(fe),le(pe)}function _e(e){e.memoizedState!==null&&ue(me,e);var t=de.current,n=Ud(t,e.type);t!==n&&(ue(fe,e),ue(de,n))}function ve(e){fe.current===e&&(le(de),le(fe)),me.current===e&&(le(me),Qf._currentValue=ae)}var ye,be;function xe(e){if(ye===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ye=t&&t[1]||``,be=-1<e.stack.indexOf(`
13
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
14
+ `+ye+e+be}var Se=!1;function Ce(e,t){if(!e||Se)return``;Se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
15
+ `),l=s.split(`
16
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
17
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function Te(e){try{var t=``,n=null;do t+=we(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
18
+ Error generating stack: `+e.message+`
19
+ `+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,ke=t.unstable_shouldYield,Ae=t.unstable_requestPaint,je=t.unstable_now,Me=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,Xe=4194304;function Ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function A(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-We(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&it(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function it(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:st(n),(n&(e.suspendedLanes|t))===0?n:0}function st(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lt(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function ut(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var dt=Math.random().toString(36).slice(2),ft=`__reactFiber$`+dt,j=`__reactProps$`+dt,pt=`__reactContainer$`+dt,mt=`__reactEvents$`+dt,ht=`__reactListeners$`+dt,gt=`__reactHandles$`+dt,_t=`__reactResources$`+dt,vt=`__reactMarker$`+dt;function yt(e){delete e[ft],delete e[j],delete e[mt],delete e[ht],delete e[gt]}function bt(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ft])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function xt(e){if(e=e[ft]||e[pt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function St(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ct(e){var t=e[_t];return t||=e[_t]={hoistableStyles:new Map,hoistableScripts:new Map},t}function wt(e){e[vt]=!0}var Tt=new Set,Et={};function Dt(e,t){Ot(e,t),Ot(e+`Capture`,t)}function Ot(e,t){for(Et[e]=t,e=0;e<t.length;e++)Tt.add(t[e])}var kt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),At={},jt={};function Mt(e){return Ee.call(jt,e)?!0:Ee.call(At,e)?!1:kt.test(e)?jt[e]=!0:(At[e]=!0,!1)}function Nt(e,t,n){if(Mt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Pt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ft(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function It(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Lt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Rt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zt(e){if(!e._valueTracker){var t=Lt(e)?`checked`:`value`;e._valueTracker=Rt(e,t,``+e[t])}}function Bt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Lt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Vt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ht=/[\n"\\]/g;function Ut(e){return e.replace(Ht,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Wt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+It(t)):e.value!==``+It(t)&&(e.value=``+It(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Kt(e,o,It(n)):Kt(e,o,It(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+It(s):e.removeAttribute(`name`)}function Gt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){zt(e);return}n=n==null?``:``+It(n),t=t==null?n:``+It(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),zt(e)}function Kt(e,t,n){t===`number`&&Vt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function qt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+It(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Jt(e,t,n){if(t!=null&&(t=``+It(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+It(n)}function Yt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=It(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),zt(e)}function Xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function $t(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Qt(e,o,t[o])}function en(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var tn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),nn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rn(e){return nn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function an(){}var on=null;function M(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var N=null,sn=null;function cn(e){var t=xt(e);if(t&&(e=t.stateNode)){var n=e[j]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ut(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[j]||null;if(!a)throw Error(i(90));Wt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Bt(r)}break a;case`textarea`:Jt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}}}var ln=!1;function un(e,t,n){if(ln)return e(t,n);ln=!0;try{return e(t)}finally{if(ln=!1,(N!==null||sn!==null)&&(bu(),N&&(t=N,e=sn,sn=N=null,cn(t),e)))for(t=0;t<e.length;t++)cn(e[t])}}function P(e,t){var n=e.stateNode;if(n===null)return null;var r=n[j]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),fn=!1;if(dn)try{var pn={};Object.defineProperty(pn,`passive`,{get:function(){fn=!0}}),window.addEventListener(`test`,pn,pn),window.removeEventListener(`test`,pn,pn)}catch{fn=!1}var F=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in F?F.value:F.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=f({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=f({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(f({},On,{dataTransfer:0})),jn=bn(f({},Cn,{relatedTarget:0})),Mn=bn(f({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(f({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(f({},xn,{data:0})),I={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=bn(f({},Cn,{key:function(e){if(e.key){var t=I[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=bn(f({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=bn(f({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=bn(f({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=bn(f({},On,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Wn=bn(f({},xn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=dn&&`CompositionEvent`in window,qn=null;dn&&`documentMode`in document&&(qn=document.documentMode);var Jn=dn&&`TextEvent`in window&&!qn,Yn=dn&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=gn(),hn=mn=F=null,er=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){N?sn?sn.push(r):sn=[r]:N=r,t=Ed(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){yd(e,0)}function lr(e){if(Bt(St(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(dn){var fr;if(dn){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,M(e)),un(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function L(e,t){if(e===`input`||e===`change`)return lr(t)}function br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var R=typeof Object.is==`function`?Object.is:br;function xr(e,t){if(R(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ee.call(t,i)||!R(e[i],t[i]))return!1}return!0}function Sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cr(e,t){var n=Sr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Sr(n)}}function wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Dr=dn&&`documentMode`in document&&11>=document.documentMode,Or=null,kr=null,Ar=null,jr=!1;function Mr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jr||Or==null||Or!==Vt(r)||(r=Or,`selectionStart`in r&&Er(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}),Ar&&xr(Ar,r)||(Ar=r,r=Ed(kr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Or)))}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Pr={animationend:Nr(`Animation`,`AnimationEnd`),animationiteration:Nr(`Animation`,`AnimationIteration`),animationstart:Nr(`Animation`,`AnimationStart`),transitionrun:Nr(`Transition`,`TransitionRun`),transitionstart:Nr(`Transition`,`TransitionStart`),transitioncancel:Nr(`Transition`,`TransitionCancel`),transitionend:Nr(`Transition`,`TransitionEnd`)},Fr={},Ir={};dn&&(Ir=document.createElement(`div`).style,`AnimationEvent`in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),`TransitionEvent`in window||delete Pr.transitionend.transition);function Lr(e){if(Fr[e])return Fr[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ir)return Fr[e]=t[n];return e}var Rr=Lr(`animationend`),zr=Lr(`animationiteration`),Br=Lr(`animationstart`),Vr=Lr(`transitionrun`),Hr=Lr(`transitionstart`),Ur=Lr(`transitioncancel`),Wr=Lr(`transitionend`),Gr=new Map,Kr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Kr.push(`scrollEnd`);function qr(e,t){Gr.set(e,t),Dt(t,[e])}var Jr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Yr=[],Xr=0,Zr=0;function Qr(){for(var e=Xr,t=Zr=Xr=0;t<e;){var n=Yr[t];Yr[t++]=null;var r=Yr[t];Yr[t++]=null;var i=Yr[t];Yr[t++]=null;var a=Yr[t];if(Yr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ni(n,i,a)}}function $r(e,t,n,r){Yr[Xr++]=e,Yr[Xr++]=t,Yr[Xr++]=n,Yr[Xr++]=r,Zr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ei(e,t,n,r){return $r(e,t,n,r),ri(e)}function ti(e,t){return $r(e,null,null,t),ri(e)}function ni(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-We(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ri(e){if(50<du)throw du=0,fu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ii={};function ai(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.refCleanup=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 oi(e,t,n,r){return new ai(e,t,n,r)}function si(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,t){var n=e.alternate;return n===null?(n=oi(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&65011712,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.refCleanup=e.refCleanup,n}function li(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ui(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)si(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,de.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=oi(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return di(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=oi(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=oi(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=oi(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=oi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function di(e,t,n,r){return e=oi(7,e,r,t),e.lanes=n,e}function fi(e,t,n){return e=oi(6,e,null,t),e.lanes=n,e}function pi(e){var t=oi(18,null,null,0);return t.stateNode=e,t}function mi(e,t,n){return t=oi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hi=new WeakMap;function gi(e,t){if(typeof e==`object`&&e){var n=hi.get(e);return n===void 0?(t={value:e,source:t,stack:Te(t)},hi.set(e,t),t):n}return{value:e,source:t,stack:Te(t)}}var _i=[],vi=0,yi=null,bi=0,z=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){_i[vi++]=bi,_i[vi++]=yi,yi=e,bi=t}function Ei(e,t,n){z[xi++]=Ci,z[xi++]=wi,z[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-We(r)-1;r&=~(1<<i),n+=1;var a=32-We(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-We(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===yi;)yi=_i[--vi],_i[vi]=null,bi=_i[--vi],_i[vi]=null;for(;e===Si;)Si=z[--xi],z[xi]=null,wi=z[--xi],z[xi]=null,Ci=z[--xi],z[xi]=null}function ki(e,t){z[xi++]=Ci,z[xi++]=wi,z[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,B=!1,Mi=null,Ni=!1,Pi=Error(i(519));function Fi(e){throw Vi(gi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Pi}function Ii(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ft]=e,t[j]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Yt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||Fi(e,!0)}function Li(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Ni=!1;return;case 27:case 3:Ni=!0;return;default:Ai=Ai.return}}function Ri(e){if(e!==Ai)return!1;if(!B)return Li(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&ji&&Fi(e),Li(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=df(e)}else t===27?(t=ji,Qd(e.type)?(e=uf,uf=null,ji=e):ji=t):ji=Ai?lf(e.stateNode.nextSibling):null;return!0}function zi(){ji=Ai=null,B=!1}function Bi(){var e=Mi;return e!==null&&(J===null?J=e:J.push.apply(J,e),Mi=null),e}function Vi(e){Mi===null?Mi=[e]:Mi.push(e)}var Ui=ce(null),Gi=null,Ki=null;function qi(e,t,n){ue(Ui,t._currentValue),t._currentValue=n}function Ji(e){e._currentValue=Ui.current,le(Ui)}function Yi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Xi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Yi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Yi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Zi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;R(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===me.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Xi(t,e,n,r),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!R(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Ki=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function V(e){return ta(Gi,e)}function ea(e,t){return Gi===null&&$i(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ki===null){if(e===null)throw Error(i(308));Ki=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ki=Ki.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=dd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=O.S;O.S=function(e,t){nu=je(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=ce(null);function _a(){var e=ga.current;return e===null?Vl.pooledCache:e}function va(e,t){t===null?ue(ga,ga.current):ue(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(an,an);else{if(e=Vl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Pa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ci(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=fi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Ea(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=ui(n.type,n.key,n.props,null,e.mode,r),Na(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=di(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ui(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case h:return t=mi(t,e.mode,n),t.return=e,t;case T:return t=Ea(t),f(e,t,n)}if(ie(t)||te(t))return t=di(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===b)return f(e,ea(e,t),n);Pa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Ea(n),p(e,t,n,r)}if(ie(n)||te(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===b)return p(e,t,ea(e,n),r);Pa(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Ea(r),_(e,t,n,r,i)}if(ie(r)||te(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Ma(r),i);if(r.$$typeof===b)return _(e,t,n,ea(t,r),i);Pa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),B&&Ti(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return B&&Ti(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),B&&Ti(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),B&&Ti(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return B&&Ti(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),B&&Ti(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=di(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ui(o.type,o.key,o.props,null,e.mode,c),Na(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=mi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Ea(o),x(e,r,o,c)}if(ie(o))return v(e,r,o,c);if(te(o)){if(l=te(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ma(o),c);if(o.$$typeof===b)return x(e,r,ea(e,o),c);Pa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=x(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=oi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=Fa(!0),La=Fa(!1),Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ri(e),ni(e,null,n),t}return $r(e,r,t,n),ri(e)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}function Wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ga=!1;function Ka(){if(Ga){var e=da;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(K&p)===p:(r&p)===p){p!==0&&p===ua&&(Ga=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ra=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function Ja(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ja(n[e],t)}var Xa=ce(null),Za=ce(0);function Qa(e,t){e=Kl,ue(Za,e),ue(Xa,t),Kl=e|t.baseLanes}function $a(){ue(Za,Kl),ue(Xa,Xa.current)}function eo(){Kl=Za.current,le(Xa),le(Za)}var to=ce(null),no=null;function ro(e){var t=e.alternate;ue(co,co.current&1),ue(to,e),no===null&&(t===null||Xa.current!==null||t.memoizedState!==null)&&(no=e)}function io(e){ue(co,co.current),ue(to,e),no===null&&(no=e)}function ao(e){e.tag===22?(ue(co,co.current),ue(to,e),no===null&&(no=e)):oo(e)}function oo(){ue(co,co.current),ue(to,to.current)}function so(e){le(to),no===e&&(no=null),le(co)}var co=ce(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=0,H=null,fo=null,po=null,mo=!1,ho=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function xo(){throw Error(i(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!R(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return uo=a,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Bs:Vs,go=!1,a=n(r,i),go=!1,ho&&(a=To(t,n,r,i)),wo(e),a}function wo(e){O.H=zs;var t=fo!==null&&fo.next!==null;if(uo=0,po=fo=H=null,mo=!1,vo=0,yo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&Qi(e)&&(ic=!0))}function To(e,t,n,r){H=e;var a=0;do{if(ho&&(yo=null),vo=0,ho=!1,25<=a)throw Error(i(301));if(a+=1,po=fo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Hs,o=t(n,r)}while(ho);return o}function Eo(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(fo===null?null:fo.memoizedState)!==e&&(H.flags|=1024),t}function Do(){var e=_o!==0;return _o=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}uo=0,po=fo=H=null,ho=!1,vo=_o=0,yo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return po===null?H.memoizedState=po=e:po=po.next=e,po}function jo(){if(fo===null){var e=H.alternate;e=e===null?null:e.memoizedState}else e=fo.next;var t=po===null?H.memoizedState:po.next;if(t!==null)po=t,fo=e;else{if(e===null)throw H.alternate===null?Error(i(467)):Error(i(310));fo=e,e={memoizedState:fo.memoizedState,baseState:fo.baseState,baseQueue:fo.baseQueue,queue:fo.queue,next:null},po===null?H.memoizedState=po=e:po=po.next=e}return po}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=Ta(yo,e,t),t=H,(po===null?t.memoizedState:po.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Bs:Vs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===b)return V(e)}throw Error(i(438,String(e)))}function Fo(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=H.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Mo(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=D;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),fo,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(uo&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((uo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,H.lanes|=p,Jl|=p;f=u.action,go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,H.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!R(o,e.memoizedState)&&(ic=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);R(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=H,a=jo(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!R((fo||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Uo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||po!==null&&po.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),Vl===null)throw Error(i(349));o||uo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=Mo(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!R(e,n)}catch{return!0}}function Go(e){var t=ti(e,2);t!==null&&hu(t,e,2)}function Ko(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),go){Ue(!0);try{n()}finally{Ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,fo,typeof r==`function`?r:Io)}function Jo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(B){var n=Vl.formState;if(n!==null){a:{var r=H;if(B){if(ji){b:{for(var i=ji,a=Ni;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=lf(i.nextSibling),r=i.data===`F!`;break a}}Fi(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,H,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,H,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,H,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(jo(),fo,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===ba?Sa:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(H.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=jo(),n=fo;if(n!==null)return rs(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=H.updateQueue,t===null&&(t=Mo(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return jo().memoizedState}function cs(e,t,n,r){var i=Ao();H.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;fo!==null&&r!==null&&So(r,fo.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(H.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=Mo(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=jo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(W&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),go){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||uo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),H.lanes|=e,Jl|=e,n)}function Ss(e,t,n,r){return R(n,t)?n:Xa.current===null?!(uo&42)||uo&1073741824&&!(K&261930)?(ic=!0,e.memoizedState=n):(e=mu(),H.lanes|=e,Jl|=e,t):(e=xs(e,n,r),R(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,Fs(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ma(c,r),pu(e)):Ps(e,t,r,pu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,ae,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},pu())}function Os(){return V(Qf)}function ks(){return jo().memoizedState}function As(){return jo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Va(n);var r=Ha(t,e,n);r!==null&&(hu(r,t,n),Ua(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ei(e,t,n,r),n!==null&&(hu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,pu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,R(s,o))return $r(e,t,i,0),Vl===null&&Qr(),!1}catch{}if(n=ei(e,t,i,r),n!==null)return hu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ei(e,n,r,2),t!==null&&hu(t,e,2)}function Is(e){var t=e.alternate;return e===H||t!==null&&t===H}function Ls(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}var zs={readContext:V,use:Po,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};zs.useEffectEvent=xo;var Bs={readContext:V,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:V,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(go){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(go){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,H,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,a=Ao();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Vl===null)throw Error(i(349));K&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Ao(),t=Vl.identifierPrefix;if(B){var n=wi,r=Ci;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=js.bind(null,H)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(W&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:V,use:Po,useCallback:ys,useContext:V,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(jo(),fo.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(jo(),fo,e,t)},useMemoCache:Fo,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:V,use:Po,useCallback:ys,useContext:V,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=jo();return fo===null?xs(n,e,t):Ss(n,fo.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=jo();return fo===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,fo,e,t)},useMemoCache:Fo,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Va(r);i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(hu(t,e,r),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Va(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(hu(t,e,r),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,n),t!==null&&(hu(t,e,n),Ua(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!xr(n,r)||!xr(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Jr(e)}function Ys(e){console.error(e)}function Xs(e){Jr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Va(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(X===null?X=new Set([this]):X.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Zi(t,n,a,!0),n=to.current,n!==null){switch(n.tag){case 31:case 13:return no===null?Du():n.alternate===null&&ql===0&&(ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Du(),!1}if(B)return t=to.current,t===null?(r!==Pi&&(t=Error(i(423),{cause:r}),Vi(gi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=gi(r,n),a=$s(e.stateNode,r,a),Wa(e,a),ql!==4&&(ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Pi&&(e=Error(i(422),{cause:r}),Vi(gi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=gi(o,n),$l===null?$l=[o]:$l.push(o),ql!==4&&(ql=2),t===null)return!0;r=gi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Wa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(X===null||!X.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Wa(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return $i(t),r=Co(e,t,n,o,a,i),s=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(B&&s&&Di(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!si(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?xr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=ci(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(xr(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?$a():Qa(t,a),ao(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),$a(),oo(t)):(va(t,a.cachePool),Qa(t,a),oo(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),$a(),ao(t),e!==null&&Zi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Ia(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(io(t),(e=ji)?(e=af(e,Ni),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=pi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(io(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||Zi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Vl,r!==null&&(s=ot(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ti(e,s),hu(r,e,s),rc;Du(),t=pc(e,t,n)}else e=o.treeContext,ji=lf(s.nextSibling),Ai=t,B=!0,Mi=null,Ni=!1,e!==null&&ki(t,e),t=fc(t,r),t.flags|=4096;return t}return e=ci(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return $i(t),n=Co(e,t,n,r,void 0,i),r=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(B&&r&&Di(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return $i(t),t.updateQueue=null,n=To(t,r,n,i),wo(e),r=Do(),e!==null&&!ic?(Oo(e,t,a),Ac(e,t,a)):(B&&r&&Di(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if($i(t),t.stateNode===null){var a=ii,o=n.contextType;typeof o==`object`&&o&&(a=V(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},za(t),o=n.contextType,a.context=typeof o==`object`&&o?V(o):ii,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),qa(t,r,a,i),Ka(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ii,typeof u==`object`&&u&&(o=V(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),Ra=!1;var f=t.memoizedState;a.state=f,qa(t,r,a,i),Ka(),l=t.memoizedState,s||f!==l||Ra?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=Ra||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ii,typeof l==`object`&&l&&(c=V(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),Ra=!1,f=t.memoizedState,a.state=f,qa(t,r,a,i),Ka();var p=t.memoizedState;o!==d||f!==p||Ra||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=Ra||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return zi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:ya()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(co.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(B){if(a?ro(t):oo(t),(e=ji)?(e=af(e,Ni),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=pi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Fi(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(oo(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=di(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(ro(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ro(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(oo(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=di(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(oo(t),t.child=e.child,t.flags|=128,t=null);else if(ro(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Vi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Zi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Vl,s!==null&&(r=ot(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ti(e,r),hu(s,e,r),rc;of(c)||Du(),t=Ec(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=lf(c.nextSibling),Ai=t,B=!0,Mi=null,Ni=!1,e!==null&&ki(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(oo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ci(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=di(c,a,n,null),c.flags|=2):c=ci(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(ro(t),n=e.child,e=n.sibling,n=ci(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=oi(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Ia(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=co.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,ue(co,o),ac(e,t,r,n),r=B?bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Qi(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),qi(t,aa,e.memoizedState.cache),zi();break;case 27:case 5:_e(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ro(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(ro(t),t.flags|=128,null);ro(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Zi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(co,co.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:qi(t,aa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,B&&t.flags&1048576&&Ei(t,bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)si(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ba(e,t),qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,qi(t,aa,r),r!==o.cache&&Xi(t,[aa],n,!0),Ka(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=gi(Error(i(424)),t),Vi(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=lf(e.firstChild),Ai=t,B=!0,Mi=null,Ni=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(zi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Vd(pe.current).createElement(n),r[ft]=t,r[j]=e,Fd(r,n,e),wt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&B&&(r=t.stateNode=pf(t.type,t.pendingProps,pe.current),Ai=t,Ni=!0,a=ji,Qd(t.type)?(uf=a,ji=lf(r.firstChild)):ji=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=ji)&&(r=nf(r,t.type,t.pendingProps,Ni),r===null?a=!1:(t.stateNode=r,Ai=t,ji=lf(r.firstChild),Ni=!1,a=!0)),a||Fi(t)),_e(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Co(e,t,Eo,null,null,n),Qf._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=ji)&&(n=rf(n,t.pendingProps,Ni),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Fi(t)),null;case 13:return Cc(e,t,n);case 4:return he(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,qi(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,$i(t),a=V(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return $i(t),r=V(aa),e===null?(a=_a(),a===null&&(a=Vl,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},za(t),qi(t,aa,a)):((e.lanes&n)!==0&&(Ba(e,t),qa(t,null,null,n),Ka()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,qi(t,aa,r),r!==a.cache&&Xi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),qi(t,aa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function U(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw Da=Ca,xa}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(wu())e.flags|=8192;else throw Da=Ca,xa}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:et(),e.lanes|=t,Ql|=t)}function Lc(e,t){if(!B)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ji(aa),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?U(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(U(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(U(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&U(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(ve(t),n=pe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&U(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=de.current,Ri(t)?Ii(t,e):(e=pf(a,r,n),t.stateNode=e,U(t))}return Rc(t),null;case 5:if(ve(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&U(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=de.current,Ri(t))Ii(t,o);else{var s=Vd(pe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ft]=t,o[j]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&U(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&U(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=pe.current,Ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Fi(t,!0)}else e=Vd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ri(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ft]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ft]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Bi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(so(t),t):(so(t),null)}return so(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return ge(),e===null&&Sd(t.stateNode.containerInfo),Rc(t),null;case 10:return Ji(t.type),Rc(t),null;case 19:if(le(co),r=t.memoizedState,r===null)return Rc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Lc(r,!1);else{if(ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lo(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)li(n,e),n=n.sibling;return ue(co,co.current&1|2),B&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&je()>ru&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!B)return Rc(t),null}else 2*je()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=je(),e.sibling=null,n=co.current,ue(co,a?n&1|2:n&1),B&&Ti(t,r.treeForkCount),e);case 22:case 23:return so(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&le(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ji(aa),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(aa),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(co),null;case 4:return ge(),null;case 10:return Ji(t.type),null;case 22:case 23:return so(t),eo(),e!==null&&le(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ji(aa),null;case 25:return null;default:return null}}function Vc(e,t){switch(Oi(t),t.tag){case 3:Ji(aa),ge();break;case 26:case 27:case 5:ve(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:le(co);break;case 10:Ji(t.type);break;case 22:case 23:so(t),eo(),e!==null&&le(ga);break;case 24:Ji(aa)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){Z(e,e.return,t)}}}function Gc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[j]=t}catch(t){Z(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(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&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ft]=e,t[j]=n}catch(t){Z(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,zd=sp,e=Tr(e),Er(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Hc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ya(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(He&&typeof He.onCommitFiberUnmount==`function`)try{He.onCommitFiberUnmount(Ve,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;Qd(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),mf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null)if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:ll!==null&&(ul?(e=ll,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):$d(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(i(160));fl(o,s,a),ll=null,ul=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[vt]||o[ft]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Fd(o,r,n),o[ft]=e,wt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ft]=e,wt(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode);else e.stateNode=Lf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Xt(a,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Vf=null,a=vl,vl=_f(t.containerInfo),_l(t,e),vl=a,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=_f(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=je()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ef(m,!0):ef(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Xt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:mf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Hc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ja(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Kc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:kl(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&$(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=vl;vl=_f(e.stateNode.containerInfo),Ml(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var zl={getCacheForType:function(e){var t=V(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return V(aa).controller.signal}},Bl=typeof WeakMap==`function`?WeakMap:Map,W=0,Vl=null,G=null,K=0,q=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,J=null,eu=!1,tu=0,nu=0,ru=1/0,Y=null,X=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return W&2&&K!==0?K&-K:O.T===null?lt():dd()}function mu(){if(Zl===0)if(!(K&536870912)||B){var e=Ye;Ye<<=1,!(Ye&3932160)&&(Ye=262144),Zl=e}else Zl=536870912;return e=to.current,e!==null&&(e.flags|=32),Zl}function hu(e,t,n){(e===Vl&&(q===2||q===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,K,Zl,!1)),nt(e,n),(!(W&2)||e!==Vl)&&(e===Vl&&(!(W&2)&&(Yl|=n),ql===4&&yu(e,K,Zl,!1)),rd(e))}function gu(e,t,n){if(W&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||A(e,t),a=r?Au(e,t):Ou(e,t,!0),o=r;do{if(a===0){Wl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!vu(n)){a=Ou(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,a=4;break a}o=J,J=a,o!==null&&(J===null?J=o:J.push.apply(J,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Zl,!Ul);break a;case 2:J=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=tu+300-je(),10<a)){if(yu(r,t,Zl,!Ul),Qe(r,0,!0)!==0)break a;su=t,r.timeoutHandle=qd(_u.bind(null,r,n,J,Y,eu,t,Zl,Yl,Ql,Ul,o,`Throttled`,-0,0),a);break a}_u(r,n,J,Y,eu,t,Zl,Yl,Ql,Ul,o,null,-0,0)}}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Nl(t,a,d);var m=(a&62914560)===a?tu-je():(a&4194048)===a?nu-je():0;if(m=qf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!R(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-We(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&it(e,n,t)}function bu(){return W&6?!0:(id(0,!1),!1)}function xu(){if(G!==null){if(q===0)var e=G.return;else e=G,Ki=Gi=null,ko(e),Aa=null,ja=0,e=G;for(;e!==null;)Vc(e.alternate,e),e=e.return;G=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),Vl=e,G=n=ci(e.current,null),K=t,q=0,Hl=null,Ul=!1,Wl=A(e,t),Gl=!1,Ql=Zl=Xl=Yl=Jl=ql=0,J=$l=null,eu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-We(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,Qr(),n}function Cu(e,t){H=null,O.H=zs,t===ba||t===Sa?(t=Oa(),q=3):t===xa?(t=Oa(),q=4):q=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,G===null&&(ql=1,Zs(e,gi(t,e.current)))}function wu(){var e=to.current;return e===null?!0:(K&4194048)===K?no===null:(K&62914560)===K||K&536870912?e===no:!1}function Tu(){var e=O.H;return O.H=zs,e===null?zs:e}function Eu(){var e=O.A;return O.A=zl,e}function Du(){ql=4,Ul||(K&4194048)!==K&&to.current!==null||(Wl=!0),!(Jl&134217727)&&!(Yl&134217727)||Vl===null||yu(Vl,K,Zl,!1)}function Ou(e,t,n){var r=W;W|=2;var i=Tu(),a=Eu();(Vl!==e||K!==t)&&(Y=null,Su(e,t)),t=!1;var o=ql;a:do try{if(q!==0&&G!==null){var s=G,c=Hl;switch(q){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:to.current===null&&(t=!0);var l=q;if(q=0,Hl=null,Pu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=q,q=0,Hl=null,Pu(e,s,c,l)}}ku(),o=ql;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ki=Gi=null,W=r,O.H=i,O.A=a,G===null&&(Vl=null,K=0,Qr()),o}function ku(){for(;G!==null;)Mu(G)}function Au(e,t){var n=W;W|=2;var r=Tu(),a=Eu();Vl!==e||K!==t?(Y=null,ru=je()+500,Su(e,t)):Wl=A(e,t);a:do try{if(q!==0&&G!==null){t=G;var o=Hl;b:switch(q){case 1:q=0,Hl=null,Pu(e,t,o,1);break;case 2:case 9:if(wa(o)){q=0,Hl=null,Nu(t);break}t=function(){q!==2&&q!==9||Vl!==e||(q=7),rd(e)},o.then(t,t);break a;case 3:q=7;break a;case 4:q=5;break a;case 7:wa(o)?(q=0,Hl=null,Nu(t)):(q=0,Hl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Gf(s):c.stateNode.complete){q=0,Hl=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,Fu(u))}break b}}q=0,Hl=null,Pu(e,t,o,5);break;case 6:q=0,Hl=null,Pu(e,t,o,6);break;case 8:xu(),ql=6;break a;default:throw Error(i(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Ki=Gi=null,O.H=r,O.A=a,W=n,G===null?(Vl=null,K=0,Qr(),ql):0}function ju(){for(;G!==null&&!ke();)Mu(G)}function Mu(e){var t=Nc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Fu(e):G=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:ko(t);default:Vc(n,t),t=G=li(t,Kl),t=Nc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Fu(e):G=t}function Pu(e,t,n,r){Ki=Gi=null,ko(t),Aa=null,ja=0;var i=t.return;try{if(nc(e,i,t,n,K)){ql=1,Zs(e,gi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;ql=1,Zs(e,gi(n,e.current)),G=null;return}t.flags&32768?(B||r===1?e=!0:Wl||K&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=to.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Ul);return}e=t.return;var n=zc(t.alternate,t,Kl);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ql===0&&(ql=5)}function Iu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);ql=6,G=null}function Lu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(W&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Zr,rt(e,n,o,s,c,l),e===Vl&&(G=Vl=null,K=0),ou=t,au=e,su=n,cu=o,lu=a,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Ie,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=O.T,O.T=null,a=k.p,k.p=2,s=W,W|=4;try{ol(e,t,n)}finally{W=s,k.p=a,O.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=W;W|=4;try{yl(t,e);var a=Bd,o=Tr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&wr(s.ownerDocument.documentElement,s)){if(c!==null&&Er(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Cr(s,h),v=Cr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!zd,Bd=zd=null}finally{W=i,k.p=r,O.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=W;W|=4;try{sl(e,t.alternate,t)}finally{W=i,k.p=r,O.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Ae();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(X=null),ct(n),t=t.stateNode,He&&typeof He.onCommitFiberRoot==`function`)try{He.onCommitFiberRoot(Ve,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{O.T=t,k.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=ct(su),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,W&6)throw Error(i(331));var c=W;if(W|=4,Il(o.current),Ol(o,o.current,s,n),W=c,id(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,o)}catch{}return!0}finally{k.p=a,O.T=r,Vu(e,t)}}function Wu(e,t,n){t=gi(n,t),t=$s(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(nt(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(X===null||!X.has(r))){e=gi(n,e),n=ec(2),r=Ha(t,n,2),r!==null&&(tc(n,r,t,e),nt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Vl===e&&(K&n)===n&&(ql===4||ql===3&&(K&62914560)===K&&300>je()-tu?!(W&2)&&Su(e,0):Xl|=n,Ql===K&&(Ql=0)),rd(e)}function qu(e,t){t===0&&(t=et()),e=ti(e,t),e!==null&&(nt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return De(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=K,a=Qe(r,r===Vl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||A(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Kd()&&(e=nd);for(var t=je(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-We(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=$e(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Vl,n=K,n=Qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(q===2||q===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||A(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Oe(r),ct(n)){case 2:case 8:n=Fe;break;case 32:n=Ie;break;case 268435456:n=Re;break;default:n=Ie}return r=cd.bind(null,e),n=De(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Oe(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=K;return r=Qe(e,e===Vl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,je()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Xd(function(){W&6?De(Pe,ad):od()})}function dd(){if(nd===0){var e=ua;e===0&&(e=Je,Je<<=1,!(Je&261888)&&(Je=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:rn(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[j]||null).action),o=r.submitter;o&&(t=(t=o[j]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Kr.length;hd++){var gd=Kr[hd];qr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}qr(Rr,`onAnimationEnd`),qr(zr,`onAnimationIteration`),qr(Br,`onAnimationStart`),qr(`dblclick`,`onDoubleClick`),qr(`focusin`,`onFocus`),qr(`focusout`,`onBlur`),qr(Vr,`onTransitionRun`),qr(Hr,`onTransitionStart`),qr(Ur,`onTransitionCancel`),qr(Wr,`onTransitionEnd`),Ot(`onMouseEnter`,[`mouseout`,`mouseover`]),Ot(`onMouseLeave`,[`mouseout`,`mouseover`]),Ot(`onPointerEnter`,[`pointerout`,`pointerover`]),Ot(`onPointerLeave`,[`pointerout`,`pointerover`]),Dt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Dt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Dt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Dt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Jr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Jr(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[mt];n===void 0&&(n=t[mt]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,Tt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!fn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=bt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}un(function(){var r=a,i=M(n),s=[];a:{var c=Gr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Rr:case zr:case Br:l=Mn;break;case Wr:l=Hn;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=P(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==on&&(u=n.relatedTarget||n.fromElement)&&(bt(u)||u[pt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?bt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:St(l),h=u==null?c:St(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,bt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?St(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c))if(dr)v=L;else{v=vr;var y=_r}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&en(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Kt(c,`number`,c.value)}switch(y=r?St(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Or=y,kr=r,Ar=null);break;case`focusout`:Ar=kr=Or=null;break;case`mousedown`:jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:jr=!1,Mr(s,n,i);break;case`selectionchange`:if(Dr)break;case`keydown`:case`keyup`:Mr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=gn()):(F=i,mn=`value`in F?F.value:F.textContent,er=!0)),y=Ed(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=P(e,n),i!=null&&r.unshift(Td(e,i,a)),i=P(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=P(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=P(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
20
+ `).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function Nd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Xt(e,``+r);break;case`className`:Pt(e,`class`,r);break;case`tabIndex`:Pt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Pt(e,n,r);break;case`style`:$t(e,r,o);break;case`data`:if(t!==`object`){Pt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=rn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Nd(e,t,`name`,a.name,a,null),Nd(e,t,`formEncType`,a.formEncType,a,null),Nd(e,t,`formMethod`,a.formMethod,a,null),Nd(e,t,`formTarget`,a.formTarget,a,null)):(Nd(e,t,`encType`,a.encType,a,null),Nd(e,t,`method`,a.method,a,null),Nd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=rn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=an);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=rn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Nt(e,`popover`,r);break;case`xlinkActuate`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Nt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=tn.get(n)||n,Nt(e,n,r))}}function Pd(e,t,n,r,a,o){switch(n){case`style`:$t(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Xt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=an);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Et.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[j]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Nt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Nd(e,t,o,s,n,null)}}a&&Nd(e,t,`srcSet`,n.srcSet,n,null),r&&Nd(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Nd(e,t,r,d,n,null)}}Gt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Nd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&qt(e,!!r,n,!0):qt(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Nd(e,t,s,c,n,null)}Yt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Nd(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Nd(e,t,u,r,n,null)}return;default:if(en(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Nd(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Nd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Nd(e,t,p,m,r,f)}}Wt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Nd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Nd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?qt(e,!!n,n?[]:``,!1):qt(e,!!n,t,!0)):qt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Nd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Nd(e,t,s,a,r,o)}Jt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Nd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Nd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Nd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Nd(e,t,u,p,r,m)}return;default:if(en(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Nd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Nd(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[vt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Np(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),yt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[vt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=k.d;k.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=bu();return e||t}function bf(e){var t=xt(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=Ct(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);wt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=Ct(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),wt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=Ct(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),wt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=pe.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=Ct(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=Ct(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=Ct(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Ut(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),wt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Ut(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,wt(a),a):(r=n,(a=hf.get(o))&&(r=f({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),wt(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[vt]||a[ft]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:b,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=oi(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function tp(e){return e?(e=ii,e):ii}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(hu(n,e,t),Ua(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ti(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=st(t);var n=ti(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=xt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ze(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-We(o);s.entanglements[1]|=c,o&=~c}rd(a),!(W&6)&&(ru=je()+500,id(0,!1))}}break;case 31:case 13:s=ti(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=M(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=bt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Me()){case Pe:return 2;case Fe:return 8;case Ie:case Le:return 32;case Re:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=xt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=bt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ut(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);on=r,n.target.dispatchEvent(r),on=null}else return t=xt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=xt(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[j]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[j]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[pt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.4`)throw Error(i(527,Lp,`19.2.4`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.4`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ve=zp.inject(Rp),He=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[pt]=t.current,Sd(e),new Fp(t)}})),Ki=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Gi()})),qi=`modulepreload`,Ji=function(e){return`/assets/plugin/site-generator/0.33.1/`+e},Yi={},Xi=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Ji(t,n),t in Yi)return;Yi[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:qi,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Zi=`popstate`;function Qi(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function $i(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=aa(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),ra(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:ia(t))}function r(e,t){ea(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return oa(t,n,r,e)}function V(e,t){if(e===!1||e==null)throw Error(t)}function ea(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ta(){return Math.random().toString(36).substring(2,10)}function na(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ra(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?aa(t):t,state:n,key:t&&t.key||r||ta(),unstable_mask:i}}function ia({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function aa(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function oa(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Qi(e)?e:ra(h.location,e,t);n&&n(r,e),l=u()+1;let d=na(r,l),f=h.createHref(r.unstable_mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Qi(e)?e:ra(h.location,e,t);n&&n(r,e),l=u();let i=na(r,l),d=h.createHref(r.unstable_mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return sa(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Zi,d),c=e,()=>{i.removeEventListener(Zi,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function sa(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),V(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:ia(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function ca(e,t,n=`/`){return la(e,t,n,!1)}function la(e,t,n,r){let i=Da((typeof t==`string`?aa(t):t).pathname||`/`,n);if(i==null)return null;let a=da(e);pa(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=Ea(i);o=Ca(a[e],t,r)}return o}function ua(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function da(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;V(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Fa([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(V(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),da(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:xa(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of fa(e.path))a(e,t,!0,n)}),t}function fa(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=fa(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function pa(e){e.sort((e,t)=>e.score===t.score?Sa(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ma=/^:[\w-]+$/,ha=3,ga=2,_a=1,va=10,ya=-2,ba=e=>e===`*`;function xa(e,t){let n=e.split(`/`),r=n.length;return n.some(ba)&&(r+=ya),t&&(r+=ga),n.filter(e=>!ba(e)).reduce((e,t)=>e+(ma.test(t)?ha:t===``?_a:va),r)}function Sa(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Ca(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=wa({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=wa({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:Fa([a,u.pathname]),pathnameBase:Ia(Fa([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Fa([a,u.pathnameBase]))}return o}function wa(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ta(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ta(e,t=!1,n=!0){ea(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ea(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ea(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Da(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var Oa=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ka(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?aa(e):e,a;return n?(n=n.replace(/\/\/+/g,`/`),a=n.startsWith(`/`)?Aa(n.substring(1),`/`):Aa(n,t)):a=t,{pathname:a,search:La(r),hash:Ra(i)}}function Aa(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ja(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ma(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Na(e){let t=Ma(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Pa(e,t,n,r=!1){let i;typeof e==`string`?i=aa(e):(i={...e},V(!i.pathname||!i.pathname.includes(`?`),ja(`?`,`pathname`,`search`,i)),V(!i.pathname||!i.pathname.includes(`#`),ja(`#`,`pathname`,`hash`,i)),V(!i.search||!i.search.includes(`#`),ja(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ka(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Fa=e=>e.join(`/`).replace(/\/\/+/g,`/`),Ia=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),La=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ra=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,za=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ba(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Va(e){return e.map(e=>e.route.path).filter(Boolean).join(`/`).replace(/\/\/*/g,`/`)||`/`}var Ha=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ua(e,t){let n=e;if(typeof n!=`string`||!Oa.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ha)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=Da(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ea(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Wa=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Wa);var Ga=[`GET`,...Wa];new Set(Ga);var Ka=A.createContext(null);Ka.displayName=`DataRouter`;var qa=A.createContext(null);qa.displayName=`DataRouterState`;var Ja=A.createContext(!1);function Ya(){return A.useContext(Ja)}var Xa=A.createContext({isTransitioning:!1});Xa.displayName=`ViewTransition`;var Za=A.createContext(new Map);Za.displayName=`Fetchers`;var Qa=A.createContext(null);Qa.displayName=`Await`;var $a=A.createContext(null);$a.displayName=`Navigation`;var eo=A.createContext(null);eo.displayName=`Location`;var to=A.createContext({outlet:null,matches:[],isDataRoute:!1});to.displayName=`Route`;var no=A.createContext(null);no.displayName=`RouteError`;var ro=`REACT_ROUTER_ERROR`,io=`REDIRECT`,ao=`ROUTE_ERROR_RESPONSE`;function oo(e){if(e.startsWith(`${ro}:${io}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function so(e){if(e.startsWith(`${ro}:${ao}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new za(t.status,t.statusText,t.data)}catch{}}function co(e,{relative:t}={}){V(lo(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=A.useContext($a),{hash:i,pathname:a,search:o}=go(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Fa([n,a])),r.createHref({pathname:s,search:o,hash:i})}function lo(){return A.useContext(eo)!=null}function uo(){return V(lo(),`useLocation() may be used only in the context of a <Router> component.`),A.useContext(eo).location}var H=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function fo(e){A.useContext($a).static||A.useLayoutEffect(e)}function po(){let{isDataRoute:e}=A.useContext(to);return e?Fo():mo()}function mo(){V(lo(),`useNavigate() may be used only in the context of a <Router> component.`);let e=A.useContext(Ka),{basename:t,navigator:n}=A.useContext($a),{matches:r}=A.useContext(to),{pathname:i}=uo(),a=JSON.stringify(Na(r)),o=A.useRef(!1);return fo(()=>{o.current=!0}),A.useCallback((r,s={})=>{if(ea(o.current,H),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Pa(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Fa([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}A.createContext(null);function ho(){let{matches:e}=A.useContext(to),t=e[e.length-1];return t?t.params:{}}function go(e,{relative:t}={}){let{matches:n}=A.useContext(to),{pathname:r}=uo(),i=JSON.stringify(Na(n));return A.useMemo(()=>Pa(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function _o(e,t){return vo(e,t)}function vo(e,t,n){V(lo(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=A.useContext($a),{matches:i}=A.useContext(to),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Lo(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) 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.
21
21
 
22
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let v=ca(),g;if(n){let A=typeof n=="string"?bi(n):n;Je(f==="/"||A.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=v;let S=g.pathname||"/",x=S;if(f!=="/"){let A=f.replace(/^\//,"").split("/");x="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let E=eb(a,{pathname:x});vn(m||E!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),vn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=p2(E&&E.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:Bn([f,l.encodeLocation?l.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:Bn([f,l.encodeLocation?l.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),s,i);return n&&O?N.createElement(Yr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},O):O}function u2(){let a=y2(),n=FN(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",a),c=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:u},"ErrorBoundary")," or"," ",N.createElement("code",{style:u},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},n),i?N.createElement("pre",{style:s},i):null,c)}var c2=N.createElement(u2,null),fb=class extends N.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,n){return n.location!==a.location||n.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:n.error,location:n.location,revalidation:a.revalidation||n.revalidation}}componentDidCatch(a,n){this.props.onError?this.props.onError(a,n):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const i=i2(a.digest);i&&(a=i)}let n=a!==void 0?N.createElement(On.Provider,{value:this.props.routeContext},N.createElement($d.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?N.createElement(f2,{error:a},n):n}};fb.contextType=JN;var Qf=new WeakMap;function f2({children:a,error:n}){let{basename:i}=N.useContext(nn);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let l=a2(n.digest);if(l){let s=Qf.get(n);if(s)throw s;let u=ib(l.location,i);if(ab&&!Qf.get(n))if(u.isExternal||l.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:l.replace}));throw Qf.set(n,c),c}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return a}function d2({routeContext:a,match:n,children:i}){let l=N.useContext(vl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(On.Provider,{value:a},i)}function p2(a,n=[],i){let l=i?.state;if(a==null){if(!l)return null;if(l.errors)a=l.matches;else if(n.length===0&&!l.initialized&&l.matches.length>0)a=l.matches;else return null}let s=a,u=l?.errors;if(u!=null){let v=s.findIndex(g=>g.route.id&&u?.[g.route.id]!==void 0);Je(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let c=!1,p=-1;if(i&&l){c=l.renderFallback;for(let v=0;v<s.length;v++){let g=s[v];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=v),g.route.id){let{loaderData:S,errors:x}=l,E=g.route.loader&&!S.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||E){i.isStatic&&(c=!0),p>=0?s=s.slice(0,p+1):s=[s[0]];break}}}}let f=i?.onError,m=l&&f?(v,g)=>{f(v,{location:l.location,params:l.matches?.[0]?.params??{},unstable_pattern:QN(l.matches),errorInfo:g})}:void 0;return s.reduceRight((v,g,S)=>{let x,E=!1,O=null,A=null;l&&(x=u&&g.route.id?u[g.route.id]:void 0,O=g.route.errorElement||c2,c&&(p<0&&S===0?(db("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,A=null):p===S&&(E=!0,A=g.route.hydrateFallbackElement||null)));let C=n.concat(s.slice(0,S+1)),T=()=>{let R;return x?R=O:E?R=A:g.route.Component?R=N.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=v,N.createElement(d2,{match:g,routeContext:{outlet:v,matches:C,isDataRoute:l!=null},children:R})};return l&&(g.route.ErrorBoundary||g.route.errorElement||S===0)?N.createElement(fb,{location:l.location,revalidation:l.revalidation,component:O,error:x,children:T(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:m}):T()},null)}function Ud(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function h2(a){let n=N.useContext(vl);return Je(n,Ud(a)),n}function m2(a){let n=N.useContext(eu);return Je(n,Ud(a)),n}function g2(a){let n=N.useContext(On);return Je(n,Ud(a)),n}function Hd(a){let n=g2(a),i=n.matches[n.matches.length-1];return Je(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function v2(){return Hd("useRouteId")}function y2(){let a=N.useContext($d),n=m2("useRouteError"),i=Hd("useRouteError");return a!==void 0?a:n.errors?.[i]}function b2(){let{router:a}=h2("useNavigate"),n=Hd("useNavigate"),i=N.useRef(!1);return ub(()=>{i.current=!0}),N.useCallback(async(s,u={})=>{vn(i.current,ob),i.current&&(typeof s=="number"?await a.navigate(s):await a.navigate(s,{fromRouteId:n,...u}))},[a,n])}var sy={};function db(a,n,i){!n&&!sy[a]&&(sy[a]=!0,vn(!1,i))}N.memo(S2);function S2({routes:a,future:n,state:i,isStatic:l,onError:s}){return cb(a,void 0,{state:i,isStatic:l,onError:s})}function x2({to:a,replace:n,state:i,relative:l}){Je(yl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=N.useContext(nn);vn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=N.useContext(On),{pathname:c}=ca(),p=bl(),f=Wo(a,Bd(u),c,l==="path"),m=JSON.stringify(f);return N.useEffect(()=>{p(JSON.parse(m),{replace:n,state:i,relative:l})},[p,m,l,n,i]),null}function Ro(a){Je(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function w2({basename:a="/",children:n=null,location:i,navigationType:l="POP",navigator:s,static:u=!1,unstable_useTransitions:c}){Je(!yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),f=N.useMemo(()=>({basename:p,navigator:s,static:u,unstable_useTransitions:c,future:{}}),[p,s,u,c]);typeof i=="string"&&(i=bi(i));let{pathname:m="/",search:v="",hash:g="",state:S=null,key:x="default",unstable_mask:E}=i,O=N.useMemo(()=>{let A=sa(m,p);return A==null?null:{location:{pathname:A,search:v,hash:g,state:S,key:x,unstable_mask:E},navigationType:l}},[p,m,v,g,S,x,l,E]);return vn(O!=null,`<Router basename="${p}"> is not able to match the URL "${m}${v}${g}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:N.createElement(nn.Provider,{value:f},N.createElement(Yr.Provider,{children:n,value:O}))}function E2({children:a,location:n}){return o2(yd(a),n)}function yd(a,n=[]){let i=[];return N.Children.forEach(a,(l,s)=>{if(!N.isValidElement(l))return;let u=[...n,s];if(l.type===N.Fragment){i.push.apply(i,yd(l.props.children,u));return}Je(l.type===Ro,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Je(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=yd(l.props.children,u)),i.push(c)}),i}var Ao="get",jo="application/x-www-form-urlencoded";function tu(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function T2(a){return tu(a)&&a.tagName.toLowerCase()==="button"}function C2(a){return tu(a)&&a.tagName.toLowerCase()==="form"}function N2(a){return tu(a)&&a.tagName.toLowerCase()==="input"}function O2(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function R2(a,n){return a.button===0&&(!n||n==="_self")&&!O2(a)}var bo=null;function A2(){if(bo===null)try{new FormData(document.createElement("form"),0),bo=!1}catch{bo=!0}return bo}var j2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zf(a){return a!=null&&!j2.has(a)?(vn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jo}"`),null):a}function D2(a,n){let i,l,s,u,c;if(C2(a)){let p=a.getAttribute("action");l=p?sa(p,n):null,i=a.getAttribute("method")||Ao,s=Zf(a.getAttribute("enctype"))||jo,u=new FormData(a)}else if(T2(a)||N2(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=a.getAttribute("formaction")||p.getAttribute("action");if(l=f?sa(f,n):null,i=a.getAttribute("formmethod")||p.getAttribute("method")||Ao,s=Zf(a.getAttribute("formenctype"))||Zf(p.getAttribute("enctype"))||jo,u=new FormData(p,a),!A2()){let{name:m,type:v,value:g}=a;if(v==="image"){let S=m?`${m}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else m&&u.append(m,g)}}else{if(tu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Ao,l=null,s=jo,c=a}return u&&s==="text/plain"&&(c=u,u=void 0),{action:l,method:i.toLowerCase(),encType:s,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vd(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function M2(a,n,i,l){let s=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${l}`:s.pathname=`${s.pathname}.${l}`:s.pathname==="/"?s.pathname=`_root.${l}`:n&&sa(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${l}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${l}`,s}async function _2(a,n){if(a.id in n)return n[a.id];try{let i=await import(a.module);return n[a.id]=i,i}catch(i){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function k2(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function L2(a,n,i){let l=await Promise.all(a.map(async s=>{let u=n.routes[s.route.id];if(u){let c=await _2(u,i);return c.links?c.links():[]}return[]}));return U2(l.flat(1).filter(k2).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function oy(a,n,i,l,s,u){let c=(f,m)=>i[m]?f.route.id!==i[m].route.id:!0,p=(f,m)=>i[m].pathname!==f.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==f.params["*"];return u==="assets"?n.filter((f,m)=>c(f,m)||p(f,m)):u==="data"?n.filter((f,m)=>{let v=l.routes[f.route.id];if(!v||!v.hasLoader)return!1;if(c(f,m)||p(f,m))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function z2(a,n,{includeHydrateFallback:i}={}){return B2(a.map(l=>{let s=n.routes[l.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),i&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function B2(a){return[...new Set(a)]}function $2(a){let n={},i=Object.keys(a).sort();for(let l of i)n[l]=a[l];return n}function U2(a,n){let i=new Set;return new Set(n),a.reduce((l,s)=>{let u=JSON.stringify($2(s));return i.has(u)||(i.add(u),l.push({key:u,link:s})),l},[])}function pb(){let a=N.useContext(vl);return Vd(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function H2(){let a=N.useContext(eu);return Vd(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Gd=N.createContext(void 0);Gd.displayName="FrameworkContext";function hb(){let a=N.useContext(Gd);return Vd(a,"You must render this element inside a <HydratedRouter> element"),a}function V2(a,n){let i=N.useContext(Gd),[l,s]=N.useState(!1),[u,c]=N.useState(!1),{onFocus:p,onBlur:f,onMouseEnter:m,onMouseLeave:v,onTouchStart:g}=n,S=N.useRef(null);N.useEffect(()=>{if(a==="render"&&c(!0),a==="viewport"){let O=C=>{C.forEach(T=>{c(T.isIntersecting)})},A=new IntersectionObserver(O,{threshold:.5});return S.current&&A.observe(S.current),()=>{A.disconnect()}}},[a]),N.useEffect(()=>{if(l){let O=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(O)}}},[l]);let x=()=>{s(!0)},E=()=>{s(!1),c(!1)};return i?a!=="intent"?[u,S,{}]:[u,S,{onFocus:Sr(p,x),onBlur:Sr(f,E),onMouseEnter:Sr(m,x),onMouseLeave:Sr(v,E),onTouchStart:Sr(g,x)}]:[!1,S,{}]}function Sr(a,n){return i=>{a&&a(i),i.defaultPrevented||n(i)}}function G2({page:a,...n}){let{router:i}=pb(),l=N.useMemo(()=>eb(i.routes,a,i.basename),[i.routes,a,i.basename]);return l?N.createElement(Y2,{page:a,matches:l,...n}):null}function q2(a){let{manifest:n,routeModules:i}=hb(),[l,s]=N.useState([]);return N.useEffect(()=>{let u=!1;return L2(a,n,i).then(c=>{u||s(c)}),()=>{u=!0}},[a,n,i]),l}function Y2({page:a,matches:n,...i}){let l=ca(),{future:s,manifest:u,routeModules:c}=hb(),{basename:p}=pb(),{loaderData:f,matches:m}=H2(),v=N.useMemo(()=>oy(a,n,m,u,l,"data"),[a,n,m,u,l]),g=N.useMemo(()=>oy(a,n,m,u,l,"assets"),[a,n,m,u,l]),S=N.useMemo(()=>{if(a===l.pathname+l.search+l.hash)return[];let O=new Set,A=!1;if(n.forEach(T=>{let R=u.routes[T.route.id];!R||!R.hasLoader||(!v.some(B=>B.route.id===T.route.id)&&T.route.id in f&&c[T.route.id]?.shouldRevalidate||R.hasClientLoader?A=!0:O.add(T.route.id))}),O.size===0)return[];let C=M2(a,p,s.unstable_trailingSlashAwareDataRequests,"data");return A&&O.size>0&&C.searchParams.set("_routes",n.filter(T=>O.has(T.route.id)).map(T=>T.route.id).join(",")),[C.pathname+C.search]},[p,s.unstable_trailingSlashAwareDataRequests,f,l,u,v,n,a,c]),x=N.useMemo(()=>z2(g,u),[g,u]),E=q2(g);return N.createElement(N.Fragment,null,S.map(O=>N.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...i})),x.map(O=>N.createElement("link",{key:O,rel:"modulepreload",href:O,...i})),E.map(({key:O,link:A})=>N.createElement("link",{key:O,nonce:i.nonce,...A,crossOrigin:A.crossOrigin??i.crossOrigin})))}function P2(...a){return n=>{a.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var X2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{X2&&(window.__reactRouterVersion="7.13.1")}catch{}function I2({basename:a,children:n,unstable_useTransitions:i,window:l}){let s=N.useRef();s.current==null&&(s.current=CN({window:l,v5Compat:!0}));let u=s.current,[c,p]=N.useState({action:u.action,location:u.location}),f=N.useCallback(m=>{i===!1?p(m):N.startTransition(()=>p(m))},[i]);return N.useLayoutEffect(()=>u.listen(f),[u,f]),N.createElement(w2,{basename:a,children:n,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:i})}var mb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gb=N.forwardRef(function({onClick:n,discover:i="render",prefetch:l="none",relative:s,reloadDocument:u,replace:c,unstable_mask:p,state:f,target:m,to:v,preventScrollReset:g,viewTransition:S,unstable_defaultShouldRevalidate:x,...E},O){let{basename:A,navigator:C,unstable_useTransitions:T}=N.useContext(nn),R=typeof v=="string"&&mb.test(v),B=ib(v,A);v=B.to;let Y=l2(v,{relative:s}),z=ca(),_=null;if(p){let le=Wo(p,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);A!=="/"&&(le.pathname=le.pathname==="/"?A:Bn([A,le.pathname])),_=C.createHref(le)}let[M,H,$]=V2(l,E),U=Z2(v,{replace:c,unstable_mask:p,state:f,target:m,preventScrollReset:g,relative:s,viewTransition:S,unstable_defaultShouldRevalidate:x,unstable_useTransitions:T});function I(le){n&&n(le),le.defaultPrevented||U(le)}let ee=!(B.isExternal||u),ne=N.createElement("a",{...E,...$,href:(ee?_:void 0)||B.absoluteURL||Y,onClick:ee?I:n,ref:P2(O,H),target:m,"data-discover":!R&&i==="render"?"true":void 0});return M&&!R?N.createElement(N.Fragment,null,ne,N.createElement(G2,{page:Y})):ne});gb.displayName="Link";var K2=N.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:l="",end:s=!1,style:u,to:c,viewTransition:p,children:f,...m},v){let g=Pr(c,{relative:m.relative}),S=ca(),x=N.useContext(eu),{navigator:E,basename:O}=N.useContext(nn),A=x!=null&&nO(g)&&p===!0,C=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,T=S.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(T=T.toLowerCase(),R=R?R.toLowerCase():null,C=C.toLowerCase()),R&&O&&(R=sa(R,O)||R);const B=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let Y=T===C||!s&&T.startsWith(C)&&T.charAt(B)==="/",z=R!=null&&(R===C||!s&&R.startsWith(C)&&R.charAt(C.length)==="/"),_={isActive:Y,isPending:z,isTransitioning:A},M=Y?n:void 0,H;typeof l=="function"?H=l(_):H=[l,Y?"active":null,z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let $=typeof u=="function"?u(_):u;return N.createElement(gb,{...m,"aria-current":M,className:H,ref:v,style:$,to:c,viewTransition:p},typeof f=="function"?f(_):f)});K2.displayName="NavLink";var F2=N.forwardRef(({discover:a="render",fetcherKey:n,navigate:i,reloadDocument:l,replace:s,state:u,method:c=Ao,action:p,onSubmit:f,relative:m,preventScrollReset:v,viewTransition:g,unstable_defaultShouldRevalidate:S,...x},E)=>{let{unstable_useTransitions:O}=N.useContext(nn),A=eO(),C=tO(p,{relative:m}),T=c.toLowerCase()==="get"?"get":"post",R=typeof p=="string"&&mb.test(p),B=Y=>{if(f&&f(Y),Y.defaultPrevented)return;Y.preventDefault();let z=Y.nativeEvent.submitter,_=z?.getAttribute("formmethod")||c,M=()=>A(z||Y.currentTarget,{fetcherKey:n,method:_,navigate:i,replace:s,state:u,relative:m,preventScrollReset:v,viewTransition:g,unstable_defaultShouldRevalidate:S});O&&i!==!1?N.startTransition(()=>M()):M()};return N.createElement("form",{ref:E,method:T,action:C,onSubmit:l?f:B,...x,"data-discover":!R&&a==="render"?"true":void 0})});F2.displayName="Form";function Q2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vb(a){let n=N.useContext(vl);return Je(n,Q2(a)),n}function Z2(a,{target:n,replace:i,unstable_mask:l,state:s,preventScrollReset:u,relative:c,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:m}={}){let v=bl(),g=ca(),S=Pr(a,{relative:c});return N.useCallback(x=>{if(R2(x,n)){x.preventDefault();let E=i!==void 0?i:Ur(g)===Ur(S),O=()=>v(a,{replace:E,unstable_mask:l,state:s,preventScrollReset:u,relative:c,viewTransition:p,unstable_defaultShouldRevalidate:f});m?N.startTransition(()=>O()):O()}},[g,v,S,i,l,s,n,a,u,c,p,f,m])}var J2=0,W2=()=>`__${String(++J2)}__`;function eO(){let{router:a}=vb("useSubmit"),{basename:n}=N.useContext(nn),i=v2(),l=a.fetch,s=a.navigate;return N.useCallback(async(u,c={})=>{let{action:p,method:f,encType:m,formData:v,body:g}=D2(u,n);if(c.navigate===!1){let S=c.fetcherKey||W2();await l(S,i,c.action||p,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||f,formEncType:c.encType||m,flushSync:c.flushSync})}else await s(c.action||p,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||f,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,s,n,i])}function tO(a,{relative:n}={}){let{basename:i}=N.useContext(nn),l=N.useContext(On);Je(l,"useFormAction must be used inside a RouteContext");let[s]=l.matches.slice(-1),u={...Pr(a||".",{relative:n})},c=ca();if(a==null){u.search=c.search;let p=new URLSearchParams(u.search),f=p.getAll("index");if(f.some(v=>v==="")){p.delete("index"),f.filter(g=>g).forEach(g=>p.append("index",g));let v=p.toString();u.search=v?`?${v}`:""}}return(!a||a===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(u.pathname=u.pathname==="/"?i:Bn([i,u.pathname])),Ur(u)}function nO(a,{relative:n}={}){let i=N.useContext(rb);Je(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=vb("useViewTransitionState"),s=Pr(a,{relative:n});if(!i.isTransitioning)return!1;let u=sa(i.currentLocation.pathname,l)||i.currentLocation.pathname,c=sa(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Ho(s.pathname,c)!=null||Ho(s.pathname,u)!=null}const aO="/api/plugin/site-generator-plugin",iO=`//${document.location.host}${aO}`;let yb;const[So]=document.getElementsByClassName("js-script-site-generator");if(So&&So instanceof HTMLScriptElement){if(!So.dataset.googleRecaptchaSiteKey)throw new Error('missing "data-google-recaptcha-site-key" in ".js-script-site-generator" element');yb=So.dataset.googleRecaptchaSiteKey}const Jf=yb;async function oa(a){try{const n=await fetch(iO,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${Ld(n)}`}}}function bb({placeholder:a,submitLabel:n,onSubmit:i,onCancel:l}){const{t:s}=Ot(),[u,c]=N.useState(""),{showError:p}=yi(),f=N.useRef(null),m=async()=>{u.trim()&&await i(u.trim())};return b.jsxs("form",{className:"PromptForm",onSubmit:v=>{v.preventDefault(),f.current?.click()},children:[b.jsx(EC,{className:"PromptForm-textarea",placeholder:a,value:u,onChange:c,rows:6}),b.jsx(Ha,{}),b.jsxs("div",{className:"PromptForm-actions",children:[b.jsx(ra,{ref:f,as:"async",onClick:m,disabled:!u.trim(),onError:p,children:n}),l&&b.jsx(ra,{severity:"secondary",onClick:l,type:"button",children:s("cancel")})]})]})}function lO({onSubmit:a}){const{t:n}=Ot();return b.jsxs("div",{className:"SgScreen",children:[b.jsxs("div",{className:"FirstStep-header",children:[b.jsx("h1",{className:"FirstStep-title",children:n("welcomeTitle")}),b.jsx("p",{className:"FirstStep-description",children:n("welcomeDescription")})]}),b.jsx("div",{className:"SgSection noBorder",children:b.jsx(bb,{submitLabel:n("createSchema"),onSubmit:a})}),b.jsx("footer",{className:"SgScreen-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:n("footerLinks")}})})]})}const uy=a=>{let n;const i=new Set,l=(m,v)=>{const g=typeof m=="function"?m(n):m;if(!Object.is(g,n)){const S=n;n=v??(typeof g!="object"||g===null)?g:Object.assign({},n,g),i.forEach(x=>x(n,S))}},s=()=>n,p={setState:l,getState:s,getInitialState:()=>f,subscribe:m=>(i.add(m),()=>i.delete(m))},f=n=a(l,s,p);return p},rO=(a=>a?uy(a):uy),sO=a=>a;function oO(a,n=sO){const i=Ze.useSyncExternalStore(a.subscribe,Ze.useCallback(()=>n(a.getState()),[a,n]),Ze.useCallback(()=>n(a.getInitialState()),[a,n]));return Ze.useDebugValue(i),i}const cy=a=>{const n=rO(a),i=l=>oO(n,l);return Object.assign(i,n),i},uO=(a=>a?cy(a):cy),qd="site-generator-session-token";function fy(a){try{sessionStorage.setItem(qd,a)}catch(n){console.error("Failed to save session token",n)}}function hi(){try{return sessionStorage.getItem(qd)??void 0}catch(a){console.error("Failed to get session token",a)}}function cO(){try{sessionStorage.removeItem(qd)}catch(a){console.error("Failed to remove session token",a)}}const fO=2e3,gl=new Map;function dO(a){if(gl.has(a))return;const n=window.setInterval(()=>{pO(a)},fO);gl.set(a,n)}function xo(a){const n=gl.get(a);n&&(window.clearInterval(n),gl.delete(a))}function Yd(){gl.forEach(a=>{window.clearInterval(a)}),gl.clear()}async function pO(a){const n=hi();if(!n){xo(a);return}try{const i=await oa({command:"loadStep",sessionToken:n,stepNumber:a});if(i.success&&i.result){const l=i.result;hO(l),l.status!=="pending"&&xo(a)}else console.error("Error polling step:",i),xo(a)}catch(i){console.error("Error polling step:",i),xo(a)}}function hO(a){const{updateStep:n}=Si.getState();n(a)}function Wf(a){Yd(),a.steps.forEach(n=>{n.status==="pending"&&dO(n.stepNumber)})}const Si=uO((a,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:i=>{a({workSession:i}),i&&Wf(i)},updateStep:i=>{const{workSession:l}=n();if(!l)return;const s=l.steps.map(c=>c.stepNumber===i.stepNumber?i:c),u={...l,steps:s};a({workSession:u}),i.status==="pending"&&Wf(u)},appendNewStep:i=>{const{workSession:l}=n();if(!l)return;const s={...l,steps:[...l.steps,i]};a({workSession:s}),i.status==="pending"&&Wf(s)},setIsLoading:i=>a({isLoading:i}),setError:i=>a({error:i}),setActiveStepNumber:i=>a({activeStepNumber:i}),resetSession:()=>{Yd(),a({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}}));let Sb=!1;function mO(){Sb=!0}function gO(){return Sb}function vO(){return b.jsxs(vi,{children:[b.jsx(Ha,{}),b.jsx(yO,{})]})}function yO(){const{t:a}=Ot(),n=bl(),{appendNewStep:i}=Si(),{showAlert:l}=yi(),s=async u=>{const c=hi();if(!c){l(a("sessionExpired"),{severity:"error"});return}const p=await oa({command:"createSiteSchema",sessionToken:c,prompt:u});if(p.success){bO(p.detectedLanguage);const f=p.result;i(f),n(`/step/${f.stepNumber}`)}else l(p.userMessage??a("promptSubmissionFailed"),{severity:"error"})};return b.jsx(lO,{onSubmit:s})}function bO(a){if(!a||a===ht.language||gO()||!(a in(ht.options.resources??{})))return;ht.changeLanguage(a);const n=hi();n&&oa({command:"setLanguage",sessionToken:n,language:a})}function SO(a){return"siteId"in a}function Pd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xi=Pd();function xb(a){xi=a}var fi={exec:()=>null};function Me(a,n=""){let i=typeof a=="string"?a:a.source,l={replace:(s,u)=>{let c=typeof u=="string"?u:u.source;return c=c.replace(jt.caret,"$1"),i=i.replace(s,c),l},getRegex:()=>new RegExp(i,n)};return l}var xO=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),jt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}>`)},wO=/^(?:[ \t]*(?:\n|$))+/,EO=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,TO=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,CO=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xd=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,wb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Eb=Me(wb).replace(/bull/g,Xd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),NO=Me(wb).replace(/bull/g,Xd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Id=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,OO=/^[^\n]+/,Kd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,RO=Me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),AO=Me(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xd).getRegex(),nu="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jO=Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fd).replace("tag",nu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Tb=Me(Id).replace("hr",Xr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nu).getRegex(),DO=Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Tb).getRegex(),Qd={blockquote:DO,code:EO,def:RO,fences:TO,heading:CO,hr:Xr,html:jO,lheading:Eb,list:AO,newline:wO,paragraph:Tb,table:fi,text:OO},dy=Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nu).getRegex(),MO={...Qd,lheading:NO,table:dy,paragraph:Me(Id).replace("hr",Xr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dy).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nu).getRegex()},_O={...Qd,html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(Id).replace("hr",Xr).replace("heading",` *#{1,6} *[^
23
- ]`).replace("lheading",Eb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kO=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,LO=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cb=/^( {2,}|\\)\n(?!\s*$)/,zO=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,au=/[\p{P}\p{S}]/u,Zd=/[\s\p{P}\p{S}]/u,Nb=/[^\s\p{P}\p{S}]/u,BO=Me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zd).getRegex(),Ob=/(?!~)[\p{P}\p{S}]/u,$O=/(?!~)[\s\p{P}\p{S}]/u,UO=/(?:[^\s\p{P}\p{S}]|~)/u,Rb=/(?![*_])[\p{P}\p{S}]/u,HO=/(?![*_])[\s\p{P}\p{S}]/u,VO=/(?:[^\s\p{P}\p{S}]|[*_])/u,GO=Me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xO?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ab=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qO=Me(Ab,"u").replace(/punct/g,au).getRegex(),YO=Me(Ab,"u").replace(/punct/g,Ob).getRegex(),jb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",PO=Me(jb,"gu").replace(/notPunctSpace/g,Nb).replace(/punctSpace/g,Zd).replace(/punct/g,au).getRegex(),XO=Me(jb,"gu").replace(/notPunctSpace/g,UO).replace(/punctSpace/g,$O).replace(/punct/g,Ob).getRegex(),IO=Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Nb).replace(/punctSpace/g,Zd).replace(/punct/g,au).getRegex(),KO=Me(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Rb).getRegex(),FO="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",QO=Me(FO,"gu").replace(/notPunctSpace/g,VO).replace(/punctSpace/g,HO).replace(/punct/g,Rb).getRegex(),ZO=Me(/\\(punct)/,"gu").replace(/punct/g,au).getRegex(),JO=Me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),WO=Me(Fd).replace("(?:-->|$)","-->").getRegex(),eR=Me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",WO).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Vo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,tR=Me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Vo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Db=Me(/^!?\[(label)\]\[(ref)\]/).replace("label",Vo).replace("ref",Kd).getRegex(),Mb=Me(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kd).getRegex(),nR=Me("reflink|nolink(?!\\()","g").replace("reflink",Db).replace("nolink",Mb).getRegex(),py=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Jd={_backpedal:fi,anyPunctuation:ZO,autolink:JO,blockSkip:GO,br:Cb,code:LO,del:fi,delLDelim:fi,delRDelim:fi,emStrongLDelim:qO,emStrongRDelimAst:PO,emStrongRDelimUnd:IO,escape:kO,link:tR,nolink:Mb,punctuation:BO,reflink:Db,reflinkSearch:nR,tag:eR,text:zO,url:fi},aR={...Jd,link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",Vo).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vo).getRegex()},bd={...Jd,emStrongRDelimAst:XO,emStrongLDelim:YO,delLDelim:KO,delRDelim:QO,url:Me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",py).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Me(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",py).getRegex()},iR={...bd,br:Me(Cb).replace("{2,}","*").getRegex(),text:Me(bd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wo={normal:Qd,gfm:MO,pedantic:_O},xr={normal:Jd,gfm:bd,breaks:iR,pedantic:aR},lR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hy=a=>lR[a];function _n(a,n){if(n){if(jt.escapeTest.test(a))return a.replace(jt.escapeReplace,hy)}else if(jt.escapeTestNoEncode.test(a))return a.replace(jt.escapeReplaceNoEncode,hy);return a}function my(a){try{a=encodeURI(a).replace(jt.percentDecode,"%")}catch{return null}return a}function gy(a,n){let i=a.replace(jt.findPipe,(u,c,p)=>{let f=!1,m=c;for(;--m>=0&&p[m]==="\\";)f=!f;return f?"|":" |"}),l=i.split(jt.splitPipe),s=0;if(l[0].trim()||l.shift(),l.length>0&&!l.at(-1)?.trim()&&l.pop(),n)if(l.length>n)l.splice(n);else for(;l.length<n;)l.push("");for(;s<l.length;s++)l[s]=l[s].trim().replace(jt.slashPipe,"|");return l}function wr(a,n,i){let l=a.length;if(l===0)return"";let s=0;for(;s<l&&a.charAt(l-s-1)===n;)s++;return a.slice(0,l-s)}function rR(a,n){if(a.indexOf(n[1])===-1)return-1;let i=0;for(let l=0;l<a.length;l++)if(a[l]==="\\")l++;else if(a[l]===n[0])i++;else if(a[l]===n[1]&&(i--,i<0))return l;return i>0?-2:-1}function sR(a,n=0){let i=n,l="";for(let s of a)if(s===" "){let u=4-i%4;l+=" ".repeat(u),i+=u}else l+=s,i++;return l}function vy(a,n,i,l,s){let u=n.href,c=n.title||null,p=a[1].replace(s.other.outputLinkReplace,"$1");l.state.inLink=!0;let f={type:a[0].charAt(0)==="!"?"image":"link",raw:i,href:u,title:c,text:p,tokens:l.inlineTokens(p)};return l.state.inLink=!1,f}function oR(a,n,i){let l=a.match(i.other.indentCodeCompensation);if(l===null)return n;let s=l[1];return n.split(`
24
- `).map(u=>{let c=u.match(i.other.beginningSpace);if(c===null)return u;let[p]=c;return p.length>=s.length?u.slice(s.length):u}).join(`
25
- `)}var Go=class{options;rules;lexer;constructor(a){this.options=a||xi}space(a){let n=this.rules.block.newline.exec(a);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(a){let n=this.rules.block.code.exec(a);if(n){let i=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:wr(i,`
26
- `)}}}fences(a){let n=this.rules.block.fences.exec(a);if(n){let i=n[0],l=oR(i,n[3]||"",this.rules);return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:l}}}heading(a){let n=this.rules.block.heading.exec(a);if(n){let i=n[2].trim();if(this.rules.other.endingHash.test(i)){let l=wr(i,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(i=l.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(a){let n=this.rules.block.hr.exec(a);if(n)return{type:"hr",raw:wr(n[0],`
27
- `)}}blockquote(a){let n=this.rules.block.blockquote.exec(a);if(n){let i=wr(n[0],`
22
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=uo(),d;if(t){let e=typeof t==`string`?aa(t):t;V(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=ca(e,{pathname:p});ea(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ea(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=To(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Fa([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Fa([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?A.createElement(eo.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,unstable_mask:void 0,...d},navigationType:`POP`}},h):h}function yo(){let e=Po(),t=Ba(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=A.createElement(A.Fragment,null,A.createElement(`p`,null,`💿 Hey developer 👋`),A.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,A.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,A.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),A.createElement(A.Fragment,null,A.createElement(`h2`,null,`Unexpected Application Error!`),A.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?A.createElement(`pre`,{style:i},n):null,o)}var bo=A.createElement(yo,null),xo=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=so(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:A.createElement(to.Provider,{value:this.props.routeContext},A.createElement(no.Provider,{value:e,children:this.props.component}));return this.context?A.createElement(Co,{error:e},t):t}};xo.contextType=Ja;var So=new WeakMap;function Co({children:e,error:t}){let{basename:n}=A.useContext($a);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=oo(t.digest);if(e){let r=So.get(t);if(r)throw r;let i=Ua(e.location,n);if(Ha&&!So.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw So.set(t,n),n}return A.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function wo({routeContext:e,match:t,children:n}){let r=A.useContext(Ka);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(to.Provider,{value:e},n)}function To(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);V(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Va(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||bo,o&&(s<0&&c===0?(Lo(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?A.createElement(n.route.Component,null):n.route.element?n.route.element:e,A.createElement(wo,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?A.createElement(xo,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Eo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Do(e){let t=A.useContext(Ka);return V(t,Eo(e)),t}function Oo(e){let t=A.useContext(qa);return V(t,Eo(e)),t}function ko(e){let t=A.useContext(to);return V(t,Eo(e)),t}function Ao(e){let t=ko(e),n=t.matches[t.matches.length-1];return V(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function jo(){return Ao(`useRouteId`)}function Mo(){return Oo(`useNavigation`).navigation}function No(){let{matches:e,loaderData:t}=Oo(`useMatches`);return A.useMemo(()=>e.map(e=>ua(e,t)),[e,t])}function Po(){let e=A.useContext(no),t=Oo(`useRouteError`),n=Ao(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Fo(){let{router:e}=Do(`useNavigate`),t=Ao(`useNavigate`),n=A.useRef(!1);return fo(()=>{n.current=!0}),A.useCallback(async(r,i={})=>{ea(n.current,H),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Io={};function Lo(e,t,n){!t&&!Io[e]&&(Io[e]=!0,ea(!1,n))}A.useOptimistic,A.memo(Ro);function Ro({routes:e,future:t,state:n,isStatic:r,onError:i}){return vo(e,void 0,{state:n,isStatic:r,onError:i,future:t})}function zo({to:e,replace:t,state:n,relative:r}){V(lo(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=A.useContext($a);ea(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=A.useContext(to),{pathname:o}=uo(),s=po(),c=Pa(e,Na(a),o,r===`path`),l=JSON.stringify(c);return A.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function Bo(e){V(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Vo({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,unstable_useTransitions:o}){V(!lo(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=A.useMemo(()=>({basename:s,navigator:i,static:a,unstable_useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=aa(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,unstable_mask:m}=n,h=A.useMemo(()=>{let e=Da(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,unstable_mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ea(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:A.createElement($a.Provider,{value:c},A.createElement(eo.Provider,{children:t,value:h}))}function Ho({children:e,location:t}){return _o(Uo(e),t)}A.Component;function Uo(e,t=[]){let n=[];return A.Children.forEach(e,(e,r)=>{if(!A.isValidElement(e))return;let i=[...t,r];if(e.type===A.Fragment){n.push.apply(n,Uo(e.props.children,i));return}V(e.type===Bo,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),V(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Uo(e.props.children,i)),n.push(a)}),n}var Wo=`get`,Go=`application/x-www-form-urlencoded`;function Ko(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function qo(e){return Ko(e)&&e.tagName.toLowerCase()===`button`}function Jo(e){return Ko(e)&&e.tagName.toLowerCase()===`form`}function Yo(e){return Ko(e)&&e.tagName.toLowerCase()===`input`}function Xo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zo(e,t){return e.button===0&&(!t||t===`_self`)&&!Xo(e)}var Qo=null;function $o(){if(Qo===null)try{new FormData(document.createElement(`form`),0),Qo=!1}catch{Qo=!0}return Qo}var es=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ts(e){return e!=null&&!es.has(e)?(ea(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Go}"`),null):e}function ns(e,t){let n,r,i,a,o;if(Jo(e)){let o=e.getAttribute(`action`);r=o?Da(o,t):null,n=e.getAttribute(`method`)||Wo,i=ts(e.getAttribute(`enctype`))||Go,a=new FormData(e)}else if(qo(e)||Yo(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Da(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Wo,i=ts(e.getAttribute(`formenctype`))||ts(o.getAttribute(`enctype`))||Go,a=new FormData(o,e),!$o()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Ko(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Wo,r=null,i=Go,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var rs={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},is=/[&><\u2028\u2029]/g;function as(e){return e.replace(is,e=>rs[e])}function os(e,t){if(e===!1||e==null)throw Error(t)}function ss(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Da(i.pathname,t)===`/`?i.pathname=`${t.replace(/\/$/,``)}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,``)}.${r}`,i}async function cs(e,t){if(e.id in t)return t[e.id];try{let n=await Xi(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ls(e){return e!=null&&typeof e.page==`string`}function us(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ds(e,t,n){return gs((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await cs(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(us).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function fs(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function ps(e,t,{includeHydrateFallback:n}={}){return ms(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function ms(e){return[...new Set(e)]}function hs(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function gs(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ls(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(hs(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function _s(){let e=A.useContext(Ka);return os(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function vs(){let e=A.useContext(qa);return os(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var ys=A.createContext(void 0);ys.displayName=`FrameworkContext`;function bs(){let e=A.useContext(ys);return os(e,`You must render this element inside a <HydratedRouter> element`),e}function xs(e,t){let n=A.useContext(ys),[r,i]=A.useState(!1),[a,o]=A.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=A.useRef(null);A.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),A.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Ss(s,p),onBlur:Ss(c,m),onMouseEnter:Ss(l,p),onMouseLeave:Ss(u,m),onTouchStart:Ss(d,p)}]:[a,f,{}]:[!1,f,{}]}function Ss(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Cs({page:e,...t}){let n=Ya(),{router:r}=_s(),i=A.useMemo(()=>ca(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?A.createElement(Ts,{page:e,matches:i,...t}):A.createElement(Es,{page:e,matches:i,...t}):null}function ws(e){let{manifest:t,routeModules:n}=bs(),[r,i]=A.useState([]);return A.useEffect(()=>{let r=!1;return ds(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ts({page:e,matches:t,...n}){let r=uo(),{future:i}=bs(),{basename:a}=_s(),o=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ss(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return A.createElement(A.Fragment,null,o.map(e=>A.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Es({page:e,matches:t,...n}){let r=uo(),{future:i,manifest:a,routeModules:o}=bs(),{basename:s}=_s(),{loaderData:c,matches:l}=vs(),u=A.useMemo(()=>fs(e,t,l,a,r,`data`),[e,t,l,a,r]),d=A.useMemo(()=>fs(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=ss(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=A.useMemo(()=>ps(d,a),[d,a]),m=ws(d);return A.createElement(A.Fragment,null,f.map(e=>A.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>A.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>A.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ds(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}A.Component;var Os=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Os&&(window.__reactRouterVersion=`7.14.0`)}catch{}function ks({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=A.useRef();i.current??=$i({window:r,v5Compat:!0});let a=i.current,[o,s]=A.useState({action:a.action,location:a.location}),c=A.useCallback(e=>{n===!1?s(e):A.startTransition(()=>s(e))},[n]);return A.useLayoutEffect(()=>a.listen(c),[a,c]),A.createElement(Vo,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,unstable_useTransitions:n})}function As({basename:e,children:t,history:n,unstable_useTransitions:r}){let[i,a]=A.useState({action:n.action,location:n.location}),o=A.useCallback(e=>{r===!1?a(e):A.startTransition(()=>a(e))},[r]);return A.useLayoutEffect(()=>n.listen(o),[n,o]),A.createElement(Vo,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,unstable_useTransitions:r})}As.displayName=`unstable_HistoryRouter`;var js=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ms=A.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,unstable_mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,unstable_useTransitions:_}=A.useContext($a),v=typeof l==`string`&&js.test(l),y=Ua(l,h);l=y.to;let b=co(l,{relative:r}),x=uo(),S=null;if(o){let e=Pa(o,[],x.unstable_mask?x.unstable_mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Fa([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=xs(n,p),E=zs(l,{replace:a,unstable_mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let ee=!(y.isExternal||i),te=A.createElement(`a`,{...p,...T,href:(ee?S:void 0)||y.absoluteURL||b,onClick:ee?D:e,ref:Ds(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?A.createElement(A.Fragment,null,te,A.createElement(Cs,{page:b})):te});Ms.displayName=`Link`;var Ns=A.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=go(a,{relative:c.relative}),d=uo(),f=A.useContext(qa),{navigator:p,basename:m}=A.useContext($a),h=f!=null&&Ys(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Da(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return A.createElement(Ms,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Ns.displayName=`NavLink`;var Ps=A.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Wo,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},m)=>{let{unstable_useTransitions:h}=A.useContext($a),g=Hs(),_=Us(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&js.test(s);return A.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});h&&n!==!1?A.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ps.displayName=`Form`;function Fs({getKey:e,storageKey:t,...n}){let r=A.useContext(ys),{basename:i}=A.useContext($a),a=uo(),o=No();qs({getKey:e,storageKey:t});let s=A.useMemo(()=>{if(!r||!e)return null;let t=Ks(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return A.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${as(JSON.stringify(t||Ws))}, ${as(JSON.stringify(s))})`}})}Fs.displayName=`ScrollRestoration`;function Is(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ls(e){let t=A.useContext(Ka);return V(t,Is(e)),t}function Rs(e){let t=A.useContext(qa);return V(t,Is(e)),t}function zs(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let u=po(),d=uo(),f=go(e,{relative:o});return A.useCallback(p=>{if(Zo(p,t)){p.preventDefault();let t=n===void 0?ia(d)===ia(f):n,m=()=>u(e,{replace:t,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:c});l?A.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var Bs=0,Vs=()=>`__${String(++Bs)}__`;function Hs(){let{router:e}=Ls(`useSubmit`),{basename:t}=A.useContext($a),n=jo(),r=e.fetch,i=e.navigate;return A.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=ns(e,t);a.navigate===!1?await r(a.fetcherKey||Vs(),n,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Us(e,{relative:t}={}){let{basename:n}=A.useContext($a),r=A.useContext(to);V(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...go(e||`.`,{relative:t})},o=uo();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Fa([n,a.pathname])),ia(a)}var Ws=`react-router-scroll-positions`,Gs={};function Ks(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Da(e.pathname,n)||e.pathname},t)),i??=e.key,i}function qs({getKey:e,storageKey:t}={}){let{router:n}=Ls(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Rs(`useScrollRestoration`),{basename:a}=A.useContext($a),o=uo(),s=No(),c=Mo();A.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Js(A.useCallback(()=>{if(c.state===`idle`){let t=Ks(o,s,a,e);Gs[t]=window.scrollY}try{sessionStorage.setItem(t||Ws,JSON.stringify(Gs))}catch(e){ea(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(A.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Ws);e&&(Gs=JSON.parse(e))}catch{}},[t]),A.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Gs,()=>window.scrollY,e?(t,n)=>Ks(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),A.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{ea(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Js(e,t){let{capture:n}=t||{};A.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Ys(e,{relative:t}={}){let n=A.useContext(Xa);V(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ls(`useViewTransitionState`),i=go(e,{relative:t});if(!n.isTransitioning)return!1;let a=Da(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Da(n.nextLocation.pathname,r)||n.nextLocation.pathname;return wa(i.pathname,o)!=null||wa(i.pathname,a)!=null}var Xs=u(Ki(),1),Zs=`//${document.location.host}/api/plugin/site-generator-plugin`,Qs,[$s]=document.getElementsByClassName(`js-script-site-generator`);if($s&&$s instanceof HTMLScriptElement){if(!$s.dataset.googleRecaptchaSiteKey)throw Error(`missing "data-google-recaptcha-site-key" in ".js-script-site-generator" element`);Qs=$s.dataset.googleRecaptchaSiteKey}var ec=Qs;async function tc(e){try{let t=await fetch(Zs,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});return t.ok?t.json():{success:!1,userMessage:`Failed to execute command: ${t.statusText}`}}catch(e){return{success:!1,userMessage:`Communication error: ${Ii(e)}`}}}function nc({placeholder:e,submitLabel:t,onSubmit:n,onCancel:r}){let{t:i}=at(),[a,o]=(0,A.useState)(``),{showError:s}=zi(),c=(0,A.useRef)(null);return(0,j.jsxs)(`form`,{className:`PromptForm`,onSubmit:e=>{e.preventDefault(),c.current?.click()},children:[(0,j.jsx)(At,{className:`PromptForm-textarea`,placeholder:e,value:a,onChange:o,rows:6}),(0,j.jsx)(Bi,{}),(0,j.jsxs)(`div`,{className:`PromptForm-actions`,children:[(0,j.jsx)(Ft,{ref:c,as:`async`,onClick:async()=>{a.trim()&&await n(a.trim())},disabled:!a.trim(),onError:s,children:t}),r&&(0,j.jsx)(Ft,{severity:`secondary`,onClick:r,type:`button`,children:i(`cancel`)})]})]})}function rc({onSubmit:e}){let{t}=at();return(0,j.jsxs)(`div`,{className:`SgScreen`,children:[(0,j.jsxs)(`div`,{className:`FirstStep-header`,children:[(0,j.jsx)(`h1`,{className:`FirstStep-title`,children:t(`welcomeTitle`)}),(0,j.jsx)(`p`,{className:`FirstStep-description`,children:t(`welcomeDescription`)})]}),(0,j.jsx)(`div`,{className:`SgSection noBorder`,children:(0,j.jsx)(nc,{submitLabel:t(`createSchema`),onSubmit:e})}),(0,j.jsx)(`footer`,{className:`SgScreen-footer`,children:(0,j.jsx)(`span`,{dangerouslySetInnerHTML:{__html:t(`footerLinks`)}})})]})}var ic=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},ac=(e=>e?ic(e):ic),oc=e=>e;function sc(e,t=oc){let n=A.useSyncExternalStore(e.subscribe,A.useCallback(()=>t(e.getState()),[e,t]),A.useCallback(()=>t(e.getInitialState()),[e,t]));return A.useDebugValue(n),n}var cc=e=>{let t=ac(e),n=e=>sc(t,e);return Object.assign(n,t),n},lc=(e=>e?cc(e):cc),uc=`site-generator-session-token`;function dc(e){try{sessionStorage.setItem(uc,e)}catch(e){console.error(`Failed to save session token`,e)}}function fc(){try{return sessionStorage.getItem(uc)??void 0}catch(e){console.error(`Failed to get session token`,e)}}function pc(){try{sessionStorage.removeItem(uc)}catch(e){console.error(`Failed to remove session token`,e)}}var mc=2e3,hc=new Map;function gc(e){if(hc.has(e))return;let t=window.setInterval(()=>{yc(e)},mc);hc.set(e,t)}function _c(e){let t=hc.get(e);t&&(window.clearInterval(t),hc.delete(e))}function vc(){hc.forEach(e=>{window.clearInterval(e)}),hc.clear()}async function yc(e){let t=fc();if(!t){_c(e);return}try{let n=await tc({command:`loadStep`,sessionToken:t,stepNumber:e});if(n.success&&n.result){let t=n.result;bc(t),t.status!==`pending`&&_c(e)}else console.error(`Error polling step:`,n),_c(e)}catch(t){console.error(`Error polling step:`,t),_c(e)}}function bc(e){let{updateStep:t}=Sc.getState();t(e)}function xc(e){vc(),e.steps.forEach(e=>{e.status===`pending`&&gc(e.stepNumber)})}var Sc=lc((e,t)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:t=>{e({workSession:t}),t&&xc(t)},updateStep:n=>{let{workSession:r}=t();if(!r)return;let i=r.steps.map(e=>e.stepNumber===n.stepNumber?n:e),a={...r,steps:i};e({workSession:a}),n.status===`pending`&&xc(a)},appendNewStep:n=>{let{workSession:r}=t();if(!r)return;let i={...r,steps:[...r.steps,n]};e({workSession:i}),n.status===`pending`&&xc(i)},setIsLoading:t=>e({isLoading:t}),setError:t=>e({error:t}),setActiveStepNumber:t=>e({activeStepNumber:t}),resetSession:()=>{vc(),e({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),Cc=!1;function wc(){Cc=!0}function Tc(){return Cc}function Ec(){return(0,j.jsxs)(Ri,{children:[(0,j.jsx)(Bi,{}),(0,j.jsx)(Dc,{})]})}function Dc(){let{t:e}=at(),t=po(),{appendNewStep:n}=Sc(),{showAlert:r}=zi();return(0,j.jsx)(rc,{onSubmit:async i=>{let a=fc();if(!a){r(e(`sessionExpired`),{severity:`error`});return}let o=await tc({command:`createSiteSchema`,sessionToken:a,prompt:i});if(o.success){Oc(o.detectedLanguage);let e=o.result;n(e),t(`/step/${e.stepNumber}`)}else r(o.userMessage??e(`promptSubmissionFailed`),{severity:`error`})}})}function Oc(e){if(!e||e===dt.language||Tc()||!(e in(dt.options.resources??{})))return;dt.changeLanguage(e);let t=fc();t&&tc({command:`setLanguage`,sessionToken:t,language:e})}function kc(e){return`siteId`in e}function Ac(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var jc=Ac();function Mc(e){jc=e}var Nc={exec:()=>null};function U(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Fc.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Pc=(()=>{try{return!0}catch{return!1}})(),Fc={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Ic=/^(?:[ \t]*(?:\n|$))+/,Lc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rc=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Bc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Hc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Uc=U(Hc).replace(/bull/g,Vc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Wc=U(Hc).replace(/bull/g,Vc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Gc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Kc=/^[^\n]+/,qc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Jc=U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,qc).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Yc=U(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vc).getRegex(),Xc=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Zc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Qc=U(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Zc).replace(`tag`,Xc).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$c=U(Gc).replace(`hr`,zc).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Xc).getRegex(),el={blockquote:U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,$c).getRegex(),code:Lc,def:Jc,fences:Rc,heading:Bc,hr:zc,html:Qc,lheading:Uc,list:Yc,newline:Ic,paragraph:$c,table:Nc,text:Kc},tl=U(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,zc).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Xc).getRegex(),nl={...el,lheading:Wc,table:tl,paragraph:U(Gc).replace(`hr`,zc).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,tl).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Xc).getRegex()},rl={...el,html:U(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Zc).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Nc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:U(Gc).replace(`hr`,zc).replace(`heading`,` *#{1,6} *[^
23
+ ]`).replace(`lheading`,Uc).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},il=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,al=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ol=/^( {2,}|\\)\n(?!\s*$)/,sl=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,cl=/[\p{P}\p{S}]/u,ll=/[\s\p{P}\p{S}]/u,ul=/[^\s\p{P}\p{S}]/u,dl=U(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ll).getRegex(),fl=/(?!~)[\p{P}\p{S}]/u,pl=/(?!~)[\s\p{P}\p{S}]/u,ml=/(?:[^\s\p{P}\p{S}]|~)/u,hl=U(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Pc?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),gl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_l=U(gl,`u`).replace(/punct/g,cl).getRegex(),vl=U(gl,`u`).replace(/punct/g,fl).getRegex(),yl=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,bl=U(yl,`gu`).replace(/notPunctSpace/g,ul).replace(/punctSpace/g,ll).replace(/punct/g,cl).getRegex(),xl=U(yl,`gu`).replace(/notPunctSpace/g,ml).replace(/punctSpace/g,pl).replace(/punct/g,fl).getRegex(),Sl=U(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ul).replace(/punctSpace/g,ll).replace(/punct/g,cl).getRegex(),Cl=U(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,cl).getRegex(),wl=U(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,ul).replace(/punctSpace/g,ll).replace(/punct/g,cl).getRegex(),Tl=U(/\\(punct)/,`gu`).replace(/punct/g,cl).getRegex(),El=U(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Dl=U(Zc).replace(`(?:-->|$)`,`-->`).getRegex(),Ol=U(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Dl).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Al=U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,kl).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jl=U(/^!?\[(label)\]\[(ref)\]/).replace(`label`,kl).replace(`ref`,qc).getRegex(),Ml=U(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,qc).getRegex(),Nl=U(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,jl).replace(`nolink`,Ml).getRegex(),Pl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Fl={_backpedal:Nc,anyPunctuation:Tl,autolink:El,blockSkip:hl,br:ol,code:al,del:Nc,delLDelim:Nc,delRDelim:Nc,emStrongLDelim:_l,emStrongRDelimAst:bl,emStrongRDelimUnd:Sl,escape:il,link:Al,nolink:Ml,punctuation:dl,reflink:jl,reflinkSearch:Nl,tag:Ol,text:sl,url:Nc},Il={...Fl,link:U(/^!?\[(label)\]\((.*?)\)/).replace(`label`,kl).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,kl).getRegex()},Ll={...Fl,emStrongRDelimAst:xl,emStrongLDelim:vl,delLDelim:Cl,delRDelim:wl,url:U(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Pl).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:U(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Pl).getRegex()},Rl={...Ll,br:U(ol).replace(`{2,}`,`*`).getRegex(),text:U(Ll.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},zl={normal:el,gfm:nl,pedantic:rl},Bl={normal:Fl,gfm:Ll,breaks:Rl,pedantic:Il},W={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Vl=e=>W[e];function G(e,t){if(t){if(Fc.escapeTest.test(e))return e.replace(Fc.escapeReplace,Vl)}else if(Fc.escapeTestNoEncode.test(e))return e.replace(Fc.escapeReplaceNoEncode,Vl);return e}function K(e){try{e=encodeURI(e).replace(Fc.percentDecode,`%`)}catch{return null}return e}function q(e,t){let n=e.replace(Fc.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Fc.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Fc.slashPipe,`|`);return n}function Hl(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Ul(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Wl(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Gl(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Kl(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
24
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
25
+ `)}var ql=class{options;rules;lexer;constructor(e){this.options=e||jc}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Hl(e,`
26
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Kl(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Hl(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Hl(t[0],`
27
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Hl(t[0],`
28
28
  `).split(`
29
- `),l="",s="",u=[];for(;i.length>0;){let c=!1,p=[],f;for(f=0;f<i.length;f++)if(this.rules.other.blockquoteStart.test(i[f]))p.push(i[f]),c=!0;else if(!c)p.push(i[f]);else break;i=i.slice(f);let m=p.join(`
30
- `),v=m.replace(this.rules.other.blockquoteSetextReplace,`
31
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
32
- ${m}`:m,s=s?`${s}
33
- ${v}`:v;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,u,!0),this.lexer.state.top=g,i.length===0)break;let S=u.at(-1);if(S?.type==="code")break;if(S?.type==="blockquote"){let x=S,E=x.raw+`
34
- `+i.join(`
35
- `),O=this.blockquote(E);u[u.length-1]=O,l=l.substring(0,l.length-x.raw.length)+O.raw,s=s.substring(0,s.length-x.text.length)+O.text;break}else if(S?.type==="list"){let x=S,E=x.raw+`
36
- `+i.join(`
37
- `),O=this.list(E);u[u.length-1]=O,l=l.substring(0,l.length-S.raw.length)+O.raw,s=s.substring(0,s.length-x.raw.length)+O.raw,i=E.substring(u.at(-1).raw.length).split(`
38
- `);continue}}return{type:"blockquote",raw:l,tokens:u,text:s}}}list(a){let n=this.rules.block.list.exec(a);if(n){let i=n[1].trim(),l=i.length>1,s={type:"list",raw:"",ordered:l,start:l?+i.slice(0,-1):"",loose:!1,items:[]};i=l?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=l?i:"[*+-]");let u=this.rules.other.listItemRegex(i),c=!1;for(;a;){let f=!1,m="",v="";if(!(n=u.exec(a))||this.rules.block.hr.test(a))break;m=n[0],a=a.substring(m.length);let g=sR(n[2].split(`
39
- `,1)[0],n[1].length),S=a.split(`
40
- `,1)[0],x=!g.trim(),E=0;if(this.options.pedantic?(E=2,v=g.trimStart()):x?E=n[1].length+1:(E=g.search(this.rules.other.nonSpaceChar),E=E>4?1:E,v=g.slice(E),E+=n[1].length),x&&this.rules.other.blankLine.test(S)&&(m+=S+`
41
- `,a=a.substring(S.length+1),f=!0),!f){let O=this.rules.other.nextBulletRegex(E),A=this.rules.other.hrRegex(E),C=this.rules.other.fencesBeginRegex(E),T=this.rules.other.headingBeginRegex(E),R=this.rules.other.htmlBeginRegex(E),B=this.rules.other.blockquoteBeginRegex(E);for(;a;){let Y=a.split(`
42
- `,1)[0],z;if(S=Y,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),z=S):z=S.replace(this.rules.other.tabCharGlobal," "),C.test(S)||T.test(S)||R.test(S)||B.test(S)||O.test(S)||A.test(S))break;if(z.search(this.rules.other.nonSpaceChar)>=E||!S.trim())v+=`
43
- `+z.slice(E);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(g)||T.test(g)||A.test(g))break;v+=`
44
- `+S}x=!S.trim(),m+=Y+`
45
- `,a=a.substring(Y.length+1),g=z.slice(E)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(c=!0)),s.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(v),loose:!1,text:v,tokens:[]}),s.raw+=m}let p=s.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f of s.items){if(this.lexer.state.top=!1,f.tokens=this.lexer.blockTokens(f.text,[]),f.task){if(f.text=f.text.replace(this.rules.other.listReplaceTask,""),f.tokens[0]?.type==="text"||f.tokens[0]?.type==="paragraph"){f.tokens[0].raw=f.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),f.tokens[0].text=f.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}}let m=this.rules.other.listTaskCheckbox.exec(f.raw);if(m){let v={type:"checkbox",raw:m[0]+" ",checked:m[0]!=="[ ]"};f.checked=v.checked,s.loose?f.tokens[0]&&["paragraph","text"].includes(f.tokens[0].type)&&"tokens"in f.tokens[0]&&f.tokens[0].tokens?(f.tokens[0].raw=v.raw+f.tokens[0].raw,f.tokens[0].text=v.raw+f.tokens[0].text,f.tokens[0].tokens.unshift(v)):f.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):f.tokens.unshift(v)}}if(!s.loose){let m=f.tokens.filter(g=>g.type==="space"),v=m.length>0&&m.some(g=>this.rules.other.anyLine.test(g.raw));s.loose=v}}if(s.loose)for(let f of s.items){f.loose=!0;for(let m of f.tokens)m.type==="text"&&(m.type="paragraph")}return s}}html(a){let n=this.rules.block.html.exec(a);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(a){let n=this.rules.block.def.exec(a);if(n){let i=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:l,title:s}}}table(a){let n=this.rules.block.table.exec(a);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let i=gy(n[1]),l=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
46
- `):[],u={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===l.length){for(let c of l)this.rules.other.tableAlignRight.test(c)?u.align.push("right"):this.rules.other.tableAlignCenter.test(c)?u.align.push("center"):this.rules.other.tableAlignLeft.test(c)?u.align.push("left"):u.align.push(null);for(let c=0;c<i.length;c++)u.header.push({text:i[c],tokens:this.lexer.inline(i[c]),header:!0,align:u.align[c]});for(let c of s)u.rows.push(gy(c,u.header.length).map((p,f)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[f]})));return u}}lheading(a){let n=this.rules.block.lheading.exec(a);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(a){let n=this.rules.block.paragraph.exec(a);if(n){let i=n[1].charAt(n[1].length-1)===`
47
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(a){let n=this.rules.block.text.exec(a);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(a){let n=this.rules.inline.escape.exec(a);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(a){let n=this.rules.inline.tag.exec(a);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(a){let n=this.rules.inline.link.exec(a);if(n){let i=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let u=wr(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=rR(n[2],"()");if(u===-2)return;if(u>-1){let c=(n[0].indexOf("!")===0?5:4)+n[1].length+u;n[2]=n[2].substring(0,u),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let l=n[2],s="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(l);u&&(l=u[1],s=u[3])}else s=n[3]?n[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?l=l.slice(1):l=l.slice(1,-1)),vy(n,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(a,n){let i;if((i=this.rules.inline.reflink.exec(a))||(i=this.rules.inline.nolink.exec(a))){let l=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[l.toLowerCase()];if(!s){let u=i[0].charAt(0);return{type:"text",raw:u,text:u}}return vy(i,s,i[0],this.lexer,this.rules)}}emStrong(a,n,i=""){let l=this.rules.inline.emStrongLDelim.exec(a);if(!(!l||l[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...l[0]].length-1,u,c,p=s,f=0,m=l[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,n=n.slice(-1*a.length+s);(l=m.exec(n))!=null;){if(u=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!u)continue;if(c=[...u].length,l[3]||l[4]){p+=c;continue}else if((l[5]||l[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(p-=c,p>0)continue;c=Math.min(c,c+p+f);let v=[...l[0]][0].length,g=a.slice(0,s+l.index+v+c);if(Math.min(s,c)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}let S=g.slice(2,-2);return{type:"strong",raw:g,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(a){let n=this.rules.inline.code.exec(a);if(n){let i=n[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return l&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:n[0],text:i}}}br(a){let n=this.rules.inline.br.exec(a);if(n)return{type:"br",raw:n[0]}}del(a,n,i=""){let l=this.rules.inline.delLDelim.exec(a);if(l&&(!l[1]||!i||this.rules.inline.punctuation.exec(i))){let s=[...l[0]].length-1,u,c,p=s,f=this.rules.inline.delRDelim;for(f.lastIndex=0,n=n.slice(-1*a.length+s);(l=f.exec(n))!=null;){if(u=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!u||(c=[...u].length,c!==s))continue;if(l[3]||l[4]){p+=c;continue}if(p-=c,p>0)continue;c=Math.min(c,c+p);let m=[...l[0]][0].length,v=a.slice(0,s+l.index+m+c),g=v.slice(s,-s);return{type:"del",raw:v,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(a){let n=this.rules.inline.autolink.exec(a);if(n){let i,l;return n[2]==="@"?(i=n[1],l="mailto:"+i):(i=n[1],l=i),{type:"link",raw:n[0],text:i,href:l,tokens:[{type:"text",raw:i,text:i}]}}}url(a){let n;if(n=this.rules.inline.url.exec(a)){let i,l;if(n[2]==="@")i=n[0],l="mailto:"+i;else{let s;do s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(s!==n[0]);i=n[0],n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:i,href:l,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(a){let n=this.rules.inline.text.exec(a);if(n){let i=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:i}}}},Tn=class Sd{tokens;options;state;inlineQueue;tokenizer;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||xi,this.options.tokenizer=this.options.tokenizer||new Go,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:jt,block:wo.normal,inline:xr.normal};this.options.pedantic?(i.block=wo.pedantic,i.inline=xr.pedantic):this.options.gfm&&(i.block=wo.gfm,this.options.breaks?i.inline=xr.breaks:i.inline=xr.gfm),this.tokenizer.rules=i}static get rules(){return{block:wo,inline:xr}}static lex(n,i){return new Sd(i).lex(n)}static lexInline(n,i){return new Sd(i).inlineTokens(n)}lex(n){n=n.replace(jt.carriageReturn,`
48
- `),this.blockTokens(n,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let l=this.inlineQueue[i];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,i=[],l=!1){for(this.options.pedantic&&(n=n.replace(jt.tabCharGlobal," ").replace(jt.spaceLine,""));n;){let s;if(this.options.extensions?.block?.some(c=>(s=c.call({lexer:this},n,i))?(n=n.substring(s.raw.length),i.push(s),!0):!1))continue;if(s=this.tokenizer.space(n)){n=n.substring(s.raw.length);let c=i.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
49
- `:i.push(s);continue}if(s=this.tokenizer.code(n)){n=n.substring(s.raw.length);let c=i.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
50
- `)?"":`
51
- `)+s.raw,c.text+=`
52
- `+s.text,this.inlineQueue.at(-1).src=c.text):i.push(s);continue}if(s=this.tokenizer.fences(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.heading(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.hr(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.blockquote(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.list(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.html(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.def(n)){n=n.substring(s.raw.length);let c=i.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
53
- `)?"":`
54
- `)+s.raw,c.text+=`
55
- `+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},i.push(s));continue}if(s=this.tokenizer.table(n)){n=n.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.lheading(n)){n=n.substring(s.raw.length),i.push(s);continue}let u=n;if(this.options.extensions?.startBlock){let c=1/0,p=n.slice(1),f;this.options.extensions.startBlock.forEach(m=>{f=m.call({lexer:this},p),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(u=n.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(u))){let c=i.at(-1);l&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(`
56
- `)?"":`
57
- `)+s.raw,c.text+=`
58
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):i.push(s),l=u.length!==n.length,n=n.substring(s.raw.length);continue}if(s=this.tokenizer.text(n)){n=n.substring(s.raw.length);let c=i.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(`
59
- `)?"":`
60
- `)+s.raw,c.text+=`
61
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):i.push(s);continue}if(n){let c="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,i}inline(n,i=[]){return this.inlineQueue.push({src:n,tokens:i}),i}inlineTokens(n,i=[]){let l=n,s=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)f.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let u;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)u=s[2]?s[2].length:0,l=l.slice(0,s.index+u)+"["+"a".repeat(s[0].length-u-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=this.options.hooks?.emStrongMask?.call({lexer:this},l)??l;let c=!1,p="";for(;n;){c||(p=""),c=!1;let f;if(this.options.extensions?.inline?.some(v=>(f=v.call({lexer:this},n,i))?(n=n.substring(f.raw.length),i.push(f),!0):!1))continue;if(f=this.tokenizer.escape(n)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.tag(n)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.link(n)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(f.raw.length);let v=i.at(-1);f.type==="text"&&v?.type==="text"?(v.raw+=f.raw,v.text+=f.text):i.push(f);continue}if(f=this.tokenizer.emStrong(n,l,p)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.codespan(n)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.br(n)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.del(n,l,p)){n=n.substring(f.raw.length),i.push(f);continue}if(f=this.tokenizer.autolink(n)){n=n.substring(f.raw.length),i.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(n))){n=n.substring(f.raw.length),i.push(f);continue}let m=n;if(this.options.extensions?.startInline){let v=1/0,g=n.slice(1),S;this.options.extensions.startInline.forEach(x=>{S=x.call({lexer:this},g),typeof S=="number"&&S>=0&&(v=Math.min(v,S))}),v<1/0&&v>=0&&(m=n.substring(0,v+1))}if(f=this.tokenizer.inlineText(m)){n=n.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(p=f.raw.slice(-1)),c=!0;let v=i.at(-1);v?.type==="text"?(v.raw+=f.raw,v.text+=f.text):i.push(f);continue}if(n){let v="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return i}},qo=class{options;parser;constructor(a){this.options=a||xi}space(a){return""}code({text:a,lang:n,escaped:i}){let l=(n||"").match(jt.notSpaceStart)?.[0],s=a.replace(jt.endingNewline,"")+`
62
- `;return l?'<pre><code class="language-'+_n(l)+'">'+(i?s:_n(s,!0))+`</code></pre>
63
- `:"<pre><code>"+(i?s:_n(s,!0))+`</code></pre>
64
- `}blockquote({tokens:a}){return`<blockquote>
65
- ${this.parser.parse(a)}</blockquote>
66
- `}html({text:a}){return a}def(a){return""}heading({tokens:a,depth:n}){return`<h${n}>${this.parser.parseInline(a)}</h${n}>
67
- `}hr(a){return`<hr>
68
- `}list(a){let n=a.ordered,i=a.start,l="";for(let c=0;c<a.items.length;c++){let p=a.items[c];l+=this.listitem(p)}let s=n?"ol":"ul",u=n&&i!==1?' start="'+i+'"':"";return"<"+s+u+`>
69
- `+l+"</"+s+`>
70
- `}listitem(a){return`<li>${this.parser.parse(a.tokens)}</li>
71
- `}checkbox({checked:a}){return"<input "+(a?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:a}){return`<p>${this.parser.parseInline(a)}</p>
72
- `}table(a){let n="",i="";for(let s=0;s<a.header.length;s++)i+=this.tablecell(a.header[s]);n+=this.tablerow({text:i});let l="";for(let s=0;s<a.rows.length;s++){let u=a.rows[s];i="";for(let c=0;c<u.length;c++)i+=this.tablecell(u[c]);l+=this.tablerow({text:i})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
29
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
30
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
31
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
32
+ ${s}`:s,r=r?`${r}
33
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
34
+ `+e.join(`
35
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
36
+ `+e.join(`
37
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
38
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Wl(t[2].split(`
39
+ `,1)[0],t[1].length),l=e.split(`
40
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
41
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
42
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
43
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
44
+ `+l}u=!l.trim(),r+=p+`
45
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=q(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
46
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(q(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
47
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Hl(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Ul(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Gl(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Gl(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Jl=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jc,this.options.tokenizer=this.options.tokenizer||new ql,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Fc,block:zl.normal,inline:Bl.normal};this.options.pedantic?(t.block=zl.pedantic,t.inline=Bl.pedantic):this.options.gfm&&(t.block=zl.gfm,this.options.breaks?t.inline=Bl.breaks:t.inline=Bl.gfm),this.tokenizer.rules=t}static get rules(){return{block:zl,inline:Bl}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Fc.carriageReturn,`
48
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Fc.tabCharGlobal,` `).replace(Fc.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
49
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
50
+ `)?``:`
51
+ `)+r.raw,n.text+=`
52
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
53
+ `)?``:`
54
+ `)+r.raw,n.text+=`
55
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
56
+ `)?``:`
57
+ `)+r.raw,a.text+=`
58
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
59
+ `)?``:`
60
+ `)+r.raw,n.text+=`
61
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},Yl=class{options;parser;constructor(e){this.options=e||jc}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Fc.notSpaceStart)?.[0],i=e.replace(Fc.endingNewline,``)+`
62
+ `;return r?`<pre><code class="language-`+G(r)+`">`+(n?i:G(i,!0))+`</code></pre>
63
+ `:`<pre><code>`+(n?i:G(i,!0))+`</code></pre>
64
+ `}blockquote({tokens:e}){return`<blockquote>
65
+ ${this.parser.parse(e)}</blockquote>
66
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
67
+ `}hr(e){return`<hr>
68
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
69
+ `+r+`</`+i+`>
70
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
71
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
72
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
73
73
  <thead>
74
- `+n+`</thead>
75
- `+l+`</table>
76
- `}tablerow({text:a}){return`<tr>
77
- ${a}</tr>
78
- `}tablecell(a){let n=this.parser.parseInline(a.tokens),i=a.header?"th":"td";return(a.align?`<${i} align="${a.align}">`:`<${i}>`)+n+`</${i}>
79
- `}strong({tokens:a}){return`<strong>${this.parser.parseInline(a)}</strong>`}em({tokens:a}){return`<em>${this.parser.parseInline(a)}</em>`}codespan({text:a}){return`<code>${_n(a,!0)}</code>`}br(a){return"<br>"}del({tokens:a}){return`<del>${this.parser.parseInline(a)}</del>`}link({href:a,title:n,tokens:i}){let l=this.parser.parseInline(i),s=my(a);if(s===null)return l;a=s;let u='<a href="'+a+'"';return n&&(u+=' title="'+_n(n)+'"'),u+=">"+l+"</a>",u}image({href:a,title:n,text:i,tokens:l}){l&&(i=this.parser.parseInline(l,this.parser.textRenderer));let s=my(a);if(s===null)return _n(i);a=s;let u=`<img src="${a}" alt="${_n(i)}"`;return n&&(u+=` title="${_n(n)}"`),u+=">",u}text(a){return"tokens"in a&&a.tokens?this.parser.parseInline(a.tokens):"escaped"in a&&a.escaped?a.text:_n(a.text)}},Wd=class{strong({text:a}){return a}em({text:a}){return a}codespan({text:a}){return a}del({text:a}){return a}html({text:a}){return a}text({text:a}){return a}link({text:a}){return""+a}image({text:a}){return""+a}br(){return""}checkbox({raw:a}){return a}},Cn=class xd{options;renderer;textRenderer;constructor(n){this.options=n||xi,this.options.renderer=this.options.renderer||new qo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Wd}static parse(n,i){return new xd(i).parse(n)}static parseInline(n,i){return new xd(i).parseInline(n)}parse(n){let i="";for(let l=0;l<n.length;l++){let s=n[l];if(this.options.extensions?.renderers?.[s.type]){let c=s,p=this.options.extensions.renderers[c.type].call({parser:this},c);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=p||"";continue}}let u=s;switch(u.type){case"space":{i+=this.renderer.space(u);break}case"hr":{i+=this.renderer.hr(u);break}case"heading":{i+=this.renderer.heading(u);break}case"code":{i+=this.renderer.code(u);break}case"table":{i+=this.renderer.table(u);break}case"blockquote":{i+=this.renderer.blockquote(u);break}case"list":{i+=this.renderer.list(u);break}case"checkbox":{i+=this.renderer.checkbox(u);break}case"html":{i+=this.renderer.html(u);break}case"def":{i+=this.renderer.def(u);break}case"paragraph":{i+=this.renderer.paragraph(u);break}case"text":{i+=this.renderer.text(u);break}default:{let c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}parseInline(n,i=this.renderer){let l="";for(let s=0;s<n.length;s++){let u=n[s];if(this.options.extensions?.renderers?.[u.type]){let p=this.options.extensions.renderers[u.type].call({parser:this},u);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){l+=p||"";continue}}let c=u;switch(c.type){case"escape":{l+=i.text(c);break}case"html":{l+=i.html(c);break}case"link":{l+=i.link(c);break}case"image":{l+=i.image(c);break}case"checkbox":{l+=i.checkbox(c);break}case"strong":{l+=i.strong(c);break}case"em":{l+=i.em(c);break}case"codespan":{l+=i.codespan(c);break}case"br":{l+=i.br(c);break}case"del":{l+=i.del(c);break}case"text":{l+=i.text(c);break}default:{let p='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return l}},Rr=class{options;block;constructor(a){this.options=a||xi}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(a){return a}postprocess(a){return a}processAllTokens(a){return a}emStrongMask(a){return a}provideLexer(){return this.block?Tn.lex:Tn.lexInline}provideParser(){return this.block?Cn.parse:Cn.parseInline}},uR=class{defaults=Pd();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Cn;Renderer=qo;TextRenderer=Wd;Lexer=Tn;Tokenizer=Go;Hooks=Rr;constructor(...a){this.use(...a)}walkTokens(a,n){let i=[];for(let l of a)switch(i=i.concat(n.call(this,l)),l.type){case"table":{let s=l;for(let u of s.header)i=i.concat(this.walkTokens(u.tokens,n));for(let u of s.rows)for(let c of u)i=i.concat(this.walkTokens(c.tokens,n));break}case"list":{let s=l;i=i.concat(this.walkTokens(s.items,n));break}default:{let s=l;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{let c=s[u].flat(1/0);i=i.concat(this.walkTokens(c,n))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,n)))}}return i}use(...a){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(i=>{let l={...i};if(l.async=this.defaults.async||l.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let u=n.renderers[s.name];u?n.renderers[s.name]=function(...c){let p=s.renderer.apply(this,c);return p===!1&&(p=u.apply(this,c)),p}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=n[s.level];u?u.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),l.extensions=n),i.renderer){let s=this.defaults.renderer||new qo(this.defaults);for(let u in i.renderer){if(!(u in s))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,p=i.renderer[c],f=s[c];s[c]=(...m)=>{let v=p.apply(s,m);return v===!1&&(v=f.apply(s,m)),v||""}}l.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Go(this.defaults);for(let u in i.tokenizer){if(!(u in s))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,p=i.tokenizer[c],f=s[c];s[c]=(...m)=>{let v=p.apply(s,m);return v===!1&&(v=f.apply(s,m)),v}}l.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new Rr;for(let u in i.hooks){if(!(u in s))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,p=i.hooks[c],f=s[c];Rr.passThroughHooks.has(u)?s[c]=m=>{if(this.defaults.async&&Rr.passThroughHooksRespectAsync.has(u))return(async()=>{let g=await p.call(s,m);return f.call(s,g)})();let v=p.call(s,m);return f.call(s,v)}:s[c]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await p.apply(s,m);return g===!1&&(g=await f.apply(s,m)),g})();let v=p.apply(s,m);return v===!1&&(v=f.apply(s,m)),v}}l.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,u=i.walkTokens;l.walkTokens=function(c){let p=[];return p.push(u.call(this,c)),s&&(p=p.concat(s.call(this,c))),p}}this.defaults={...this.defaults,...l}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,n){return Tn.lex(a,n??this.defaults)}parser(a,n){return Cn.parse(a,n??this.defaults)}parseMarkdown(a){return(n,i)=>{let l={...i},s={...this.defaults,...l},u=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&l.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=a),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(n):n,p=await(s.hooks?await s.hooks.provideLexer():a?Tn.lex:Tn.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(p):p;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let m=await(s.hooks?await s.hooks.provideParser():a?Cn.parse:Cn.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(m):m})().catch(u);try{s.hooks&&(n=s.hooks.preprocess(n));let c=(s.hooks?s.hooks.provideLexer():a?Tn.lex:Tn.lexInline)(n,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let p=(s.hooks?s.hooks.provideParser():a?Cn.parse:Cn.parseInline)(c,s);return s.hooks&&(p=s.hooks.postprocess(p)),p}catch(c){return u(c)}}}onError(a,n){return i=>{if(i.message+=`
80
- Please report this to https://github.com/markedjs/marked.`,a){let l="<p>An error occurred:</p><pre>"+_n(i.message+"",!0)+"</pre>";return n?Promise.resolve(l):l}if(n)return Promise.reject(i);throw i}}},mi=new uR;function Ue(a,n){return mi.parse(a,n)}Ue.options=Ue.setOptions=function(a){return mi.setOptions(a),Ue.defaults=mi.defaults,xb(Ue.defaults),Ue};Ue.getDefaults=Pd;Ue.defaults=xi;Ue.use=function(...a){return mi.use(...a),Ue.defaults=mi.defaults,xb(Ue.defaults),Ue};Ue.walkTokens=function(a,n){return mi.walkTokens(a,n)};Ue.parseInline=mi.parseInline;Ue.Parser=Cn;Ue.parser=Cn.parse;Ue.Renderer=qo;Ue.TextRenderer=Wd;Ue.Lexer=Tn;Ue.lexer=Tn.lex;Ue.Tokenizer=Go;Ue.Hooks=Rr;Ue.parse=Ue;Ue.options;Ue.setOptions;Ue.use;Ue.walkTokens;Ue.parseInline;Cn.parse;Tn.lex;function cR(a){if(!a)return"";try{return Ue.parse(a,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),a}}function ep({content:a,title:n,variant:i="info"}){const l=i==="error"?"error":i==="warning"?"warning":"primary";return b.jsx(Zo,{severity:l,title:n,className:"SgSection-alert",children:b.jsx("div",{dangerouslySetInnerHTML:{__html:cR(a)}})})}function fR(a){return b.jsx(vi,{children:b.jsx(dR,{...a})})}function dR({isOpen:a,title:n,message:i,confirmLabel:l,onConfirm:s,onCancel:u}){const{t:c}=Ot(),[p,f]=N.useState(!0),{showError:m}=yi(),v=async()=>{await s({withSampleData:p})},g=b.jsxs(b.Fragment,{children:[b.jsx(ra,{severity:"secondary",onClick:u,children:c("cancel")}),b.jsx(ra,{as:"async",onClick:v,onError:m,children:l??c("confirm")})]});return b.jsxs(OC,{visible:a,onHide:u,header:n,footer:g,size:"sm",children:[b.jsx(Ha,{}),b.jsx("div",{className:"Text",children:b.jsx("p",{className:"PaMb4",children:i})}),b.jsx(fC,{checked:p,onChange:f,inputLabel:c("generateSiteWithData")})]})}function K(){return K=Object.assign?Object.assign.bind():function(a){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var l in i)({}).hasOwnProperty.call(i,l)&&(a[l]=i[l])}return a},K.apply(null,arguments)}function je(a,n){if(a==null)return{};var i={};for(var l in a)if({}.hasOwnProperty.call(a,l)){if(n.indexOf(l)!==-1)continue;i[l]=a[l]}return i}var _b={},kb=N.createContext(_b),pR=(a,n)=>K({},a,n),hR=()=>N.useContext(kb),tp=N.createContext(()=>{});tp.displayName="JVR.DispatchShowTools";function mR(){return N.useReducer(pR,_b)}function Lb(){return N.useContext(tp)}var zb=a=>{var{initial:n,dispatch:i,children:l}=a;return b.jsx(kb.Provider,{value:n,children:b.jsx(tp.Provider,{value:i,children:l})})};zb.displayName="JVR.ShowTools";var Bb={},$b=N.createContext(Bb),gR=(a,n)=>K({},a,n),iu=()=>N.useContext($b),np=N.createContext(()=>{});np.displayName="JVR.DispatchExpands";function vR(){return N.useReducer(gR,Bb)}function yR(){return N.useContext(np)}var Ub=a=>{var{initial:n,dispatch:i,children:l}=a;return b.jsx($b.Provider,{value:n,children:b.jsx(np.Provider,{value:i,children:l})})};Ub.displayName="JVR.Expands";var Hb={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Vb=N.createContext(Hb),bR=(a,n)=>K({},a,n),Pe=()=>N.useContext(Vb),ap=N.createContext(()=>{});ap.displayName="JVR.DispatchTypes";function SR(){return N.useReducer(bR,Hb)}function xR(){return N.useContext(ap)}function Gb(a){var{initial:n,dispatch:i,children:l}=a;return b.jsx(Vb.Provider,{value:n,children:b.jsx(ap.Provider,{value:i,children:l})})}Gb.displayName="JVR.Types";var wR=["style"];function qb(a){var{style:n}=a,i=je(a,wR),l=K({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",K({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:l},i,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}qb.displayName="JVR.TriangleArrow";var Yb={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(qb,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Pb=N.createContext(Yb),ER=(a,n)=>K({},a,n),Gt=()=>N.useContext(Pb),ip=N.createContext(()=>{});ip.displayName="JVR.DispatchSymbols";function TR(){return N.useReducer(ER,Yb)}function CR(){return N.useContext(ip)}var Xb=a=>{var{initial:n,dispatch:i,children:l}=a;return b.jsx(Pb.Provider,{value:n,children:b.jsx(ip.Provider,{value:i,children:l})})};Xb.displayName="JVR.Symbols";var Ib={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Kb=N.createContext(Ib),NR=(a,n)=>K({},a,n),yn=()=>N.useContext(Kb),lp=N.createContext(()=>{});lp.displayName="JVR.DispatchSection";function OR(){return N.useReducer(NR,Ib)}function RR(){return N.useContext(lp)}var Fb=a=>{var{initial:n,dispatch:i,children:l}=a;return b.jsx(Kb.Provider,{value:n,children:b.jsx(lp.Provider,{value:i,children:l})})};Fb.displayName="JVR.Section";var Qb={objectSortKeys:!1,indentWidth:15},rp=N.createContext(Qb);rp.displayName="JVR.Context";var Zb=N.createContext(()=>{});Zb.displayName="JVR.DispatchContext";function AR(a,n){return K({},a,n)}var wi=()=>N.useContext(rp),Jb=a=>{var{children:n,initialState:i,initialTypes:l}=a,[s,u]=N.useReducer(AR,Object.assign({},Qb,i)),[c,p]=mR(),[f,m]=vR(),[v,g]=SR(),[S,x]=TR(),[E,O]=OR();return N.useEffect(()=>u(K({},i)),[i]),b.jsx(rp.Provider,{value:s,children:b.jsx(Zb.Provider,{value:u,children:b.jsx(zb,{initial:c,dispatch:p,children:b.jsx(Ub,{initial:f,dispatch:m,children:b.jsx(Gb,{initial:K({},v,l),dispatch:g,children:b.jsx(Xb,{initial:S,dispatch:x,children:b.jsx(Fb,{initial:E,dispatch:O,children:n})})})})})})})};Jb.displayName="JVR.Provider";function jR(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var DR=["isNumber","value","parentValue","keyName","keys"],MR=["as","render"],_R=["as","render"],kR=["as","render"],LR=["as","style","render"],zR=["as","render"],BR=["as","render"],$R=["as","render"],UR=["as","render"],wd=a=>{var{Quote:n={}}=Gt(),{isNumber:i,value:l,parentValue:s,keyName:u,keys:c}=a,p=je(a,DR);if(i)return null;var{as:f,render:m}=n,v=je(n,MR),g=f||"span",S=K({},p,v);if(typeof S.children=="string"){var x=S.children.trim();S.children=x||void 0}var E={value:l,parentValue:s,keyName:u,keys:c||(u?[u]:[])},O=m&&typeof m=="function"&&m(S,E);return O||b.jsx(g,K({},S))};wd.displayName="JVR.Quote";var Hr=a=>{var{ValueQuote:n={}}=Gt(),i=K({},(jR(a),a)),{as:l,render:s}=n,u=je(n,_R),c=l||"span",p=K({},i,u),f=s&&typeof s=="function"&&s(p,{});return f||b.jsx(c,K({},p))};Hr.displayName="JVR.ValueQuote";var Wb=a=>{var{value:n,parentValue:i,keyName:l,keys:s}=a,{Colon:u={}}=Gt(),{as:c,render:p}=u,f=je(u,kR),m=c||"span",v=p&&typeof p=="function"&&p(f,{value:n,parentValue:i,keyName:l,keys:s||(l?[l]:[])});return v||b.jsx(m,K({},f))};Wb.displayName="JVR.Colon";var eS=a=>{var{Arrow:n={}}=Gt(),i=iu(),{expandKey:l,style:s,value:u,parentValue:c,keyName:p,keys:f}=a,m=!!i[l],{as:v,style:g,render:S}=n,x=je(n,LR),E=v||"span",O=S&&typeof S=="function",A=K({},x,{"data-expanded":m,style:K({},g,s)}),C={value:u,parentValue:c,keyName:p,keys:f||(p?[p]:[])},T=O&&S(A,C);return T||b.jsx(E,K({},x,{style:K({},g,s)}))};eS.displayName="JVR.Arrow";var tS=a=>{var{isBrackets:n,value:i,parentValue:l,keyName:s,keys:u}=a,{BracketsLeft:c={},BraceLeft:p={}}=Gt(),f={value:i,parentValue:l,keyName:s,keys:u||(s?[s]:[])};if(n){var{as:m,render:v}=c,g=je(c,zR),S=m||"span",x=v&&typeof v=="function"&&v(g,f);return x||b.jsx(S,K({},g))}var{as:E,render:O}=p,A=je(p,BR),C=E||"span",T=O&&typeof O=="function"&&O(A,f);return T||b.jsx(C,K({},A))};tS.displayName="JVR.BracketsOpen";var sp=a=>{var{isBrackets:n,isVisiable:i,value:l,parentValue:s,keyName:u,keys:c}=a,p={value:l,parentValue:s,keyName:u,keys:c||(u?[u]:[])};if(!i)return null;var{BracketsRight:f={},BraceRight:m={}}=Gt();if(n){var{as:v,render:g}=f,S=je(f,$R),x=v||"span",E=g&&typeof g=="function"&&g(S,p);return E||b.jsx(x,K({},S))}var{as:O,render:A}=m,C=je(m,UR),T=O||"span",R=A&&typeof A=="function"&&A(C,p);return R||b.jsx(T,K({},C))};sp.displayName="JVR.BracketsClose";var nS=a=>{var n,{keyName:i,value:l,expandKey:s,parentValue:u,level:c,keys:p=[]}=a,f=iu(),{collapsed:m,shouldExpandNodeInitially:v}=wi(),g=typeof m=="boolean"?m:typeof m=="number"?c>m:!1,S=(n=f[s])!=null?n:v?!1:g,x=v&&v(!S,{value:l,keys:p,level:c,keyName:i,parentValue:u});if(v&&m===!1){if(f[s]===void 0&&!x)return null}else if(f[s]===void 0&&x)return null;var E=Object.keys(l).length;if(S||E===0)return null;var O={paddingLeft:4},A={keyName:i,value:l,keys:p,parentValue:u},C=Array.isArray(l),T=l instanceof Set;return b.jsx("div",{style:O,children:b.jsx(sp,K({isBrackets:C||T},A,{isVisiable:!0}))})};nS.displayName="JVR.NestedClose";var HR=["as","render"],VR=["as","render"],GR=["as","render"],qR=["as","render"],YR=["as","render"],PR=["as","render"],XR=["as","render"],IR=["as","render"],KR=["as","render"],FR=["as","render"],QR=["as","render"],ZR=["as","render"],JR=["as","render"],Ed=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},aS=a=>{var{value:n,keyName:i}=a,{Set:l={},displayDataTypes:s}=Pe(),u=n instanceof Set;if(!u||!s)return null;var{as:c,render:p}=l,f=je(l,HR),m=p&&typeof p=="function",v=m&&p(f,{type:"type",value:n,keyName:i});if(v)return v;var g=c||"span";return b.jsx(g,K({},f))};aS.displayName="JVR.SetComp";var iS=a=>{var{value:n,keyName:i}=a,{Map:l={},displayDataTypes:s}=Pe(),u=n instanceof Map;if(!u||!s)return null;var{as:c,render:p}=l,f=je(l,VR),m=p&&typeof p=="function",v=m&&p(f,{type:"type",value:n,keyName:i});if(v)return v;var g=c||"span";return b.jsx(g,K({},f))};iS.displayName="JVR.MapComp";var Rn={opacity:.75,paddingRight:4},lS=a=>{var{children:n="",keyName:i,keys:l}=a,{Str:s={},displayDataTypes:u}=Pe(),{shortenTextAfterLength:c=30,stringEllipsis:p="..."}=wi(),{as:f,render:m}=s,v=je(s,GR),g=n,[S,x]=N.useState(c&&g.length>c);N.useEffect(()=>x(c&&g.length>c),[c]);var E=f||"span",O=K({},Rn,s.style||{});c>0&&(v.style=K({},v.style,{cursor:g.length<=c?"initial":"pointer"}),g.length>c&&(v.onClick=()=>{x(!S)}));var A=S?""+g.slice(0,c)+p:g,C=m&&typeof m=="function",T=C&&m(K({},v,{style:O}),{type:"type",value:n,keyName:i,keys:l}),R=S?"w-rjv-value w-rjv-value-short":"w-rjv-value",B=C&&m(K({},v,{children:A,className:R}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(T||b.jsx(E,K({},v,{style:O}))),B||b.jsxs(N.Fragment,{children:[b.jsx(Hr,{}),b.jsx(E,K({},v,{className:R,children:A})),b.jsx(Hr,{})]})]})};lS.displayName="JVR.TypeString";var rS=a=>{var{children:n,keyName:i,keys:l}=a,{True:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,qR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x||b.jsx(m,K({},f,{className:"w-rjv-value",children:n?.toString()}))]})};rS.displayName="JVR.TypeTrue";var sS=a=>{var{children:n,keyName:i,keys:l}=a,{False:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,YR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x||b.jsx(m,K({},f,{className:"w-rjv-value",children:n?.toString()}))]})};sS.displayName="JVR.TypeFalse";var oS=a=>{var{children:n,keyName:i,keys:l}=a,{Float:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,PR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x||b.jsx(m,K({},f,{className:"w-rjv-value",children:n?.toString()}))]})};oS.displayName="JVR.TypeFloat";var uS=a=>{var{children:n,keyName:i,keys:l}=a,{Int:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,XR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x||b.jsx(m,K({},f,{className:"w-rjv-value",children:n?.toString()}))]})};uS.displayName="JVR.TypeInt";var cS=a=>{var{children:n,keyName:i,keys:l}=a,{Bigint:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,IR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x||b.jsx(m,K({},f,{className:"w-rjv-value",children:Ed(n?.toString())}))]})};cS.displayName="JVR.TypeFloat";var fS=a=>{var{children:n,keyName:i,keys:l}=a,{Url:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,KR),m=c||"span",v=K({},Rn,s.style),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n?.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x||b.jsxs("a",K({href:n?.href,target:"_blank"},f,{className:"w-rjv-value",children:[b.jsx(Hr,{}),n?.href,b.jsx(Hr,{})]}))]})};fS.displayName="JVR.TypeUrl";var dS=a=>{var{children:n,keyName:i,keys:l}=a,{Date:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,FR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=n instanceof Date?n.toLocaleString():n,E=g&&p(K({},f,{children:x,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),E||b.jsx(m,K({},f,{className:"w-rjv-value",children:x}))]})};dS.displayName="JVR.TypeDate";var pS=a=>{var{children:n,keyName:i,keys:l}=a,{Undefined:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,QR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x]})};pS.displayName="JVR.TypeUndefined";var hS=a=>{var{children:n,keyName:i,keys:l}=a,{Null:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,ZR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x]})};hS.displayName="JVR.TypeNull";var mS=a=>{var{children:n,keyName:i,keys:l}=a,{Nan:s={},displayDataTypes:u}=Pe(),{as:c,render:p}=s,f=je(s,JR),m=c||"span",v=K({},Rn,s.style||{}),g=p&&typeof p=="function",S=g&&p(K({},f,{style:v}),{type:"type",value:n,keyName:i,keys:l}),x=g&&p(K({},f,{children:n?.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:l});return b.jsxs(N.Fragment,{children:[u&&(S||b.jsx(m,K({},f,{style:v}))),x]})};mS.displayName="JVR.TypeNan";var WR=a=>Number(a)===a&&a%1!==0||isNaN(a),gS=a=>{var{value:n,keyName:i,keys:l}=a,s={keyName:i,keys:l};return n instanceof URL?b.jsx(fS,K({},s,{children:n})):typeof n=="string"?b.jsx(lS,K({},s,{children:n})):n===!0?b.jsx(rS,K({},s,{children:n})):n===!1?b.jsx(sS,K({},s,{children:n})):n===null?b.jsx(hS,K({},s,{children:n})):n===void 0?b.jsx(pS,K({},s,{children:n})):n instanceof Date?b.jsx(dS,K({},s,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(mS,K({},s,{children:n})):typeof n=="number"&&WR(n)?b.jsx(oS,K({},s,{children:n})):typeof n=="bigint"?b.jsx(cS,K({},s,{children:n})):typeof n=="number"?b.jsx(uS,K({},s,{children:n})):null};gS.displayName="JVR.Value";function Va(a,n,i){var l=CR(),s=[a.className,n.className].filter(Boolean).join(" "),u=K({},a,n,{className:s,style:K({},a.style,n.style),children:n.children||a.children});N.useEffect(()=>l({[i]:u}),[n])}function an(a,n,i){var l=xR(),s=[a.className,n.className].filter(Boolean).join(" "),u=K({},a,n,{className:s,style:K({},a.style,n.style),children:n.children||a.children});N.useEffect(()=>l({[i]:u}),[n])}function Sl(a,n,i){var l=RR(),s=[a.className,n.className].filter(Boolean).join(" "),u=K({},a,n,{className:s,style:K({},a.style,n.style),children:n.children||a.children});N.useEffect(()=>l({[i]:u}),[n])}var eA=["as","render"],vS=a=>{var{KeyName:n={}}=yn();return Sl(n,a,"KeyName"),null};vS.displayName="JVR.KeyName";var yS=a=>{var{children:n,value:i,parentValue:l,keyName:s,keys:u}=a,c=typeof n=="number",p={color:c?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=yn(),{as:m,render:v}=f,g=je(f,eA);g.style=K({},g.style,p);var S=m||"span",x=v&&typeof v=="function"&&v(K({},g,{children:n}),{value:i,parentValue:l,keyName:s,keys:u||(s?[s]:[])});return x||b.jsx(S,K({},g,{children:n}))};yS.displayName="JVR.KeyNameComp";var tA=["children","value","parentValue","keyName","keys"],nA=["as","render","children"],bS=a=>{var{Row:n={}}=yn();return Sl(n,a,"Row"),null};bS.displayName="JVR.Row";var SS=a=>{var{children:n,value:i,parentValue:l,keyName:s,keys:u}=a,c=je(a,tA),{Row:p={}}=yn(),{as:f,render:m}=p,v=je(p,nA),g=f||"div",S=m&&typeof m=="function"&&m(K({},c,v,{children:n}),{value:i,keyName:s,parentValue:l,keys:u});return S||b.jsx(g,K({},c,v,{children:n}))};SS.displayName="JVR.RowComp";function aA(a){var n=N.useRef();return N.useEffect(()=>{n.current=a}),n.current}function iA(a){var{value:n,highlightUpdates:i,highlightContainer:l}=a,s=aA(n),u=N.useMemo(()=>{if(!i||s===void 0)return!1;if(typeof n!=typeof s)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(s)?!1:n!==s;if(Array.isArray(n)!==Array.isArray(s))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==s)return!0},[i,n]);N.useEffect(()=>{l&&l.current&&u&&"animate"in l.current&&l.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[u,n,l])}var lA=["keyName","value","parentValue","expandKey","keys","beforeCopy"],rA=["as","render"],op=a=>{var{keyName:n,value:i,parentValue:l,expandKey:s,keys:u,beforeCopy:c}=a,p=je(a,lA),{onCopied:f,enableClipboard:m,beforeCopy:v}=wi(),g=hR(),S=g[s],[x,E]=N.useState(!1),{Copied:O={}}=yn(),A=O?.beforeCopy;if(m===!1||!S)return null;var C=M=>{M.stopPropagation();var H="";typeof i=="number"&&i===1/0?H="Infinity":typeof i=="number"&&isNaN(i)?H="NaN":typeof i=="bigint"?H=Ed(i):i instanceof Date?H=i.toLocaleString():H=JSON.stringify(i,(I,ee)=>typeof ee=="bigint"?Ed(ee):ee,2);var $=c||A||v;$&&typeof $=="function"&&(H=$(H,n,i,l,s,u)),f&&f(H,i),E(!0);var U=navigator.clipboard||{writeText(I){return new Promise((ee,ne)=>{var le=document.createElement("textarea");le.style.position="absolute",le.style.opacity="0",le.style.left="-99999999px",le.value=I,document.body.appendChild(le),le.select(),document.execCommand("copy")?ee():ne(),le.remove()})}};U.writeText(H).then(()=>{var I=setTimeout(()=>{E(!1),clearTimeout(I)},3e3)}).catch(I=>{})},T={style:{display:"inline-flex"},fill:x?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:C},{render:R}=O,B=je(O,rA),Y=K({},B,p,T,{style:K({},B.style,p.style,T.style)}),z=R&&typeof R=="function",_=z&&R(K({},Y,{"data-copied":x}),{value:i,keyName:n,keys:u,parentValue:l});return _||(x?b.jsx("svg",K({viewBox:"0 0 32 36"},Y,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",K({viewBox:"0 0 32 36"},Y,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};op.displayName="JVR.Copied";function xS(){var a=N.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var wS=a=>{var n,{keyName:i,value:l,expandKey:s="",level:u,keys:c=[],parentValue:p}=a,f=iu(),{objectSortKeys:m,indentWidth:v,collapsed:g,shouldExpandNodeInitially:S}=wi(),x=typeof g=="boolean"?g:typeof g=="number"?u>g:!1,E=(n=f[s])!=null?n:S?!1:x,O=S&&S(!E,{value:l,keys:c,level:u,keyName:i,parentValue:p});if(S&&g===!1){if(f[s]===void 0&&!O)return null}else if(f[s]===void 0&&O)return null;if(E)return null;var A=Array.isArray(l),C=A?Object.entries(l).map(R=>[Number(R[0]),R[1]]):Object.entries(l);m&&(C=m===!0?C.sort((R,B)=>{var[Y]=R,[z]=B;return typeof Y=="string"&&typeof z=="string"?Y.localeCompare(z):0}):C.sort((R,B)=>{var[Y,z]=R,[_,M]=B;return typeof Y=="string"&&typeof _=="string"?m(Y,_,z,M):0}));var T={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:v,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:T,children:C.map((R,B)=>{var[Y,z]=R;return b.jsx(ES,{parentValue:l,keyName:Y,keys:[...c,Y],value:z,level:u},B)})})};wS.displayName="JVR.KeyValues";var up=a=>{var{keyName:n,parentValue:i,keys:l,value:s}=a,{highlightUpdates:u}=wi(),c=typeof n=="number",p=N.useRef(null);iA({value:s,highlightUpdates:u,highlightContainer:p});var f={keyName:n,value:s,keys:l,parentValue:i};return b.jsxs(N.Fragment,{children:[b.jsxs("span",{ref:p,children:[b.jsx(wd,K({isNumber:c,"data-placement":"left"},f)),b.jsx(yS,K({},f,{children:n})),b.jsx(wd,K({isNumber:c,"data-placement":"right"},f))]}),b.jsx(Wb,K({},f))]})};up.displayName="JVR.KayName";var ES=a=>{var{keyName:n,value:i,parentValue:l,level:s=0,keys:u=[]}=a,c=Lb(),p=xS(),f=Array.isArray(i),m=i instanceof Set,v=i instanceof Map,g=i instanceof Date,S=i instanceof URL,x=i&&typeof i=="object"&&!f&&!m&&!v&&!g&&!S,E=x||f||m||v;if(E){var O=m?Array.from(i):v?Object.fromEntries(i):i;return b.jsx(cp,{keyName:n,value:O,parentValue:l,initialValue:i,keys:u,level:s+1})}var A={onMouseEnter:()=>c({[p]:!0}),onMouseLeave:()=>c({[p]:!1})};return b.jsxs(SS,K({className:"w-rjv-line",value:i,keyName:n,keys:u,parentValue:l},A,{children:[b.jsx(up,{keyName:n,value:i,keys:u,parentValue:l}),b.jsx(gS,{keyName:n,value:i,keys:u}),b.jsx(op,{keyName:n,value:i,keys:u,parentValue:l,expandKey:p})]}))};ES.displayName="JVR.KeyValuesItem";var sA=["value","keyName"],oA=["as","render"],TS=a=>{var{CountInfoExtra:n={}}=yn();return Sl(n,a,"CountInfoExtra"),null};TS.displayName="JVR.CountInfoExtra";var CS=a=>{var{value:n={},keyName:i}=a,l=je(a,sA),{CountInfoExtra:s={}}=yn(),{as:u,render:c}=s,p=je(s,oA);if(!c&&!p.children)return null;var f=u||"span",m=c&&typeof c=="function",v=K({},p,l),g=m&&c(v,{value:n,keyName:i});return g||b.jsx(f,K({},v))};CS.displayName="JVR.CountInfoExtraComps";var uA=["value","keyName"],cA=["as","render"],NS=a=>{var{CountInfo:n={}}=yn();return Sl(n,a,"CountInfo"),null};NS.displayName="JVR.CountInfo";var OS=a=>{var{value:n={},keyName:i}=a,l=je(a,uA),{displayObjectSize:s}=wi(),{CountInfo:u={}}=yn();if(!s)return null;var{as:c,render:p}=u,f=je(u,cA),m=c||"span";f.style=K({},f.style,a.style);var v=Object.keys(n).length;f.children||(f.children=v+" item"+(v===1?"":"s"));var g=K({},f,l),S=p&&typeof p=="function",x=S&&p(K({},g,{"data-length":v}),{value:n,keyName:i});return x||b.jsx(m,K({},g))};OS.displayName="JVR.CountInfoComp";var fA=["as","render"],RS=a=>{var{Ellipsis:n={}}=yn();return Sl(n,a,"Ellipsis"),null};RS.displayName="JVR.Ellipsis";var AS=a=>{var{isExpanded:n,value:i,keyName:l}=a,{Ellipsis:s={}}=yn(),{as:u,render:c}=s,p=je(s,fA),f=u||"span",m=c&&typeof c=="function"&&c(K({},p,{"data-expanded":n}),{value:i,keyName:l});return m||(!n||typeof i=="object"&&Object.keys(i).length==0?null:b.jsx(f,K({},p)))};AS.displayName="JVR.EllipsisComp";var jS=a=>{var n,{keyName:i,expandKey:l,keys:s=[],initialValue:u,value:c,parentValue:p,level:f}=a,m=iu(),v=yR(),{onExpand:g,collapsed:S,shouldExpandNodeInitially:x}=wi(),E=typeof S=="boolean"?S:typeof S=="number"?f>S:!1,O=(n=m[l])!=null?n:x?!1:E,A=x&&x(!O,{value:c,keys:s,level:f,keyName:i,parentValue:p});m[l]===void 0&&x&&(O=!A);var C=()=>{var U={expand:!O,value:c,keyid:l,keyName:i};g&&g(U),v({[l]:U.expand})},T={display:"inline-flex",alignItems:"center"},R={transform:"rotate("+(O?"-90":"0")+"deg)",transition:"all 0.3s"},B=Object.keys(c).length,Y=typeof c=="object",z=Array.isArray(c),_=c instanceof Set,M=B!==0&&(z||_||Y),H={style:T};M&&(H.onClick=C);var $={keyName:i,value:c,keys:s,parentValue:p};return b.jsxs("span",K({},H,{children:[M&&b.jsx(eS,K({style:R,expandKey:l},$)),(i||typeof i=="number")&&b.jsx(up,K({},$)),b.jsx(aS,{value:u,keyName:i}),b.jsx(iS,{value:u,keyName:i}),b.jsx(tS,K({isBrackets:z||_},$)),b.jsx(AS,{keyName:i,value:c,isExpanded:O}),b.jsx(sp,K({isVisiable:O||!M,isBrackets:z||_},$)),b.jsx(OS,{value:c,keyName:i}),b.jsx(CS,{value:c,keyName:i}),b.jsx(op,{keyName:i,value:c,expandKey:l,parentValue:p,keys:s})]}))};jS.displayName="JVR.NestedOpen";var dA=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],cp=N.forwardRef((a,n)=>{var{className:i="",parentValue:l,level:s=1,value:u,initialValue:c,keys:p,keyName:f}=a,m=je(a,dA),v=Lb(),g=xS(),S=[i,"w-rjv-inner"].filter(Boolean).join(" "),x={onMouseEnter:()=>v({[g]:!0}),onMouseLeave:()=>v({[g]:!1})};return b.jsxs("div",K({className:S,ref:n},m,x,{children:[b.jsx(jS,{expandKey:g,value:u,level:s,keys:p,parentValue:l,keyName:f,initialValue:c}),b.jsx(wS,{expandKey:g,value:u,level:s,keys:p,parentValue:l,keyName:f}),b.jsx(nS,{expandKey:g,value:u,level:s,keys:p,parentValue:l,keyName:f})]}))});cp.displayName="JVR.Container";var DS=a=>{var{BraceLeft:n={}}=Gt();return Va(n,a,"BraceLeft"),null};DS.displayName="JVR.BraceLeft";var MS=a=>{var{BraceRight:n={}}=Gt();return Va(n,a,"BraceRight"),null};MS.displayName="JVR.BraceRight";var _S=a=>{var{BracketsLeft:n={}}=Gt();return Va(n,a,"BracketsLeft"),null};_S.displayName="JVR.BracketsLeft";var kS=a=>{var{BracketsRight:n={}}=Gt();return Va(n,a,"BracketsRight"),null};kS.displayName="JVR.BracketsRight";var LS=a=>{var{Arrow:n={}}=Gt();return Va(n,a,"Arrow"),null};LS.displayName="JVR.Arrow";var zS=a=>{var{Colon:n={}}=Gt();return Va(n,a,"Colon"),null};zS.displayName="JVR.Colon";var BS=a=>{var{Quote:n={}}=Gt();return Va(n,a,"Quote"),null};BS.displayName="JVR.Quote";var $S=a=>{var{ValueQuote:n={}}=Gt();return Va(n,a,"ValueQuote"),null};$S.displayName="JVR.ValueQuote";var US=a=>{var{Bigint:n={}}=Pe();return an(n,a,"Bigint"),null};US.displayName="JVR.Bigint";var HS=a=>{var{Date:n={}}=Pe();return an(n,a,"Date"),null};HS.displayName="JVR.Date";var VS=a=>{var{False:n={}}=Pe();return an(n,a,"False"),null};VS.displayName="JVR.False";var GS=a=>{var{Float:n={}}=Pe();return an(n,a,"Float"),null};GS.displayName="JVR.Float";var qS=a=>{var{Int:n={}}=Pe();return an(n,a,"Int"),null};qS.displayName="JVR.Int";var YS=a=>{var{Map:n={}}=Pe();return an(n,a,"Map"),null};YS.displayName="JVR.Map";var PS=a=>{var{Nan:n={}}=Pe();return an(n,a,"Nan"),null};PS.displayName="JVR.Nan";var XS=a=>{var{Null:n={}}=Pe();return an(n,a,"Null"),null};XS.displayName="JVR.Null";var IS=a=>{var{Set:n={}}=Pe();return an(n,a,"Set"),null};IS.displayName="JVR.Set";var KS=a=>{var{Str:n={}}=Pe();return an(n,a,"Str"),null};KS.displayName="JVR.StringText";var FS=a=>{var{True:n={}}=Pe();return an(n,a,"True"),null};FS.displayName="JVR.True";var QS=a=>{var{Undefined:n={}}=Pe();return an(n,a,"Undefined"),null};QS.displayName="JVR.Undefined";var ZS=a=>{var{Url:n={}}=Pe();return an(n,a,"Url"),null};ZS.displayName="JVR.Url";var JS=a=>{var{Copied:n={}}=yn();return Sl(n,a,"Copied"),null};JS.displayName="JVR.Copied";var pA=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],De=N.forwardRef((a,n)=>{var{className:i="",style:l,value:s,children:u,collapsed:c=!1,shouldExpandNodeInitially:p,indentWidth:f=15,displayObjectSize:m=!0,shortenTextAfterLength:v=30,stringEllipsis:g,highlightUpdates:S=!0,enableClipboard:x=!0,displayDataTypes:E=!0,objectSortKeys:O=!1,onExpand:A,onCopied:C,beforeCopy:T}=a,R=je(a,pA),B=K({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},l),Y=["w-json-view-container","w-rjv",i].filter(Boolean).join(" ");return b.jsxs(Jb,{initialState:{value:s,objectSortKeys:O,indentWidth:f,shouldExpandNodeInitially:c===!1?p:void 0,displayObjectSize:m,collapsed:c,enableClipboard:x,shortenTextAfterLength:v,stringEllipsis:g,highlightUpdates:S,onCopied:C,onExpand:A,beforeCopy:T},initialTypes:{displayDataTypes:E},children:[b.jsx(cp,K({value:s},R,{ref:n,className:Y,style:B})),u]})});De.Bigint=US;De.Date=HS;De.False=VS;De.Float=GS;De.Int=qS;De.Map=YS;De.Nan=PS;De.Null=XS;De.Set=IS;De.String=KS;De.True=FS;De.Undefined=QS;De.Url=ZS;De.ValueQuote=$S;De.Arrow=LS;De.Colon=zS;De.Quote=BS;De.Ellipsis=RS;De.BraceLeft=DS;De.BraceRight=MS;De.BracketsLeft=_S;De.BracketsRight=kS;De.Copied=JS;De.CountInfo=NS;De.CountInfoExtra=TS;De.KeyName=vS;De.Row=bS;De.displayName="JVR.JsonView";var yy={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function hA(a){const n=Object.keys(a),i=n.length>0?n[0]:void 0;return(l,s,u={})=>{if(!i)return u.default??l;const c=a[s]??a[i],p=l.split(".");let f=c;for(const m of p){if(typeof f=="string"||!f||!Object.hasOwn(f,m))return u.default??l;f=f[m]}return typeof f=="string"?f:u.default??l}}function mA({siteSchema:a,schemaTranslate:n}){const i=new Set;return b.jsx("div",{className:"Tree",children:b.jsx("ul",{children:b.jsx(WS,{schema:a,schemaT:n,typeName:"home",displayedNodeTypeNames:i})})})}function WS({schema:a,schemaT:n,typeName:i,displayedNodeTypeNames:l}){const{i18n:s}=Ot(),u=gA(a,i);if(!u)return null;const c=u.routingChildren??[],p=u.regularChildren??[],f=[...c,...p],m=n(`nodeTypes.${i}.label`,s.language,{default:i});return l.has(i)?b.jsxs("li",{children:[b.jsx("span",{className:"Tree-label",children:m}),b.jsx("span",{className:"Tree-type",children:i})]}):(l.add(i),b.jsxs("li",{children:[b.jsx("span",{className:"Tree-label",children:m}),b.jsx("span",{className:"Tree-type",children:i}),f.length>0&&b.jsx("ul",{children:f.map(v=>b.jsx(WS,{schema:a,schemaT:n,typeName:v,displayedNodeTypeNames:l},v))})]}))}function gA(a,n){return a.nodeTypes?.find(i=>i.kind==="document"&&i.typeName===n)}function vA({step:a}){const{t:n}=Ot(),[i,l]=N.useState("tree"),{siteSchema:s,l10n:u}=a,c=hA(u),p=f=>{l(f)};return b.jsxs(b.Fragment,{children:[b.jsxs(NC,{value:i,onChange:p,className:"SgSection-tabs",children:[b.jsx(Mf,{value:"tree",label:n("treeView")}),b.jsx(Mf,{value:"schema",label:n("siteSchema")}),b.jsx(Mf,{value:"locales",label:n("labels")})]}),i==="tree"&&b.jsx(mA,{siteSchema:s,schemaTranslate:c}),i==="locales"&&b.jsxs(De,{value:u,style:yy,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,children:[b.jsx(De.KeyName,{render:(f,{parentValue:m})=>Array.isArray(m)&&Number.isFinite(f.children)?b.jsx("span",{}):b.jsx("span",{...f})}),b.jsx(De.Colon,{render:(f,{parentValue:m})=>Array.isArray(m)&&f.children===":"?b.jsx("span",{}):b.jsx("span",{...f})})]}),i==="schema"&&b.jsxs(De,{value:s,style:yy,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:(f,m)=>m.keyName!=="plugins",children:[b.jsx(De.KeyName,{render:(f,{parentValue:m})=>Array.isArray(m)&&Number.isFinite(f.children)?b.jsx("span",{}):b.jsx("span",{...f})}),b.jsx(De.Colon,{render:(f,{parentValue:m})=>Array.isArray(m)&&f.children===":"?b.jsx("span",{}):b.jsx("span",{...f})})]})]})}function yA(a){return b.jsx(vi,{children:b.jsx(bA,{...a})})}function bA({step:a}){const{t:n}=Ot(),{appendNewStep:i}=Si(),[l,s]=N.useState(!1),[u,c]=N.useState(!1),p=bl(),{showAlert:f}=yi(),m=async g=>{const S=hi();if(!S){f(n("sessionExpired"),{severity:"error"});return}const x=await oa({command:"updateSiteSchema",sessionToken:S,prompt:g,fromStepNumber:a.stepNumber});x.success?(s(!1),i(x.result),p(`/step/${x.result.stepNumber}`)):f(x.userMessage??n("promptSubmissionFailed"),{severity:"error"})},v=async({withSampleData:g})=>{const S=hi();if(!S){f(n("sessionExpired"),{severity:"error"});return}const x=await oa({command:"generateSite",sessionToken:S,fromStepNumber:a.stepNumber,withSampleData:g});x.success&&x.result?(c(!1),i(x.result),p(`/step/${x.result.stepNumber}`)):f(n("generationFailed"),{severity:"error"})};return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:a.stepNumber,kind:n(a.kind)})}),b.jsx(vA,{step:a}),a.explanation&&b.jsx(ep,{content:a.explanation,title:n("explanation")}),!l&&b.jsxs(b.Fragment,{children:[b.jsx(Ha,{}),b.jsxs("div",{className:"SgActions",children:[b.jsx(ra,{severity:"warning",onClick:()=>s(!0),children:n("modifySchema")}),b.jsx(ra,{onClick:()=>c(!0),children:n("generateTheWebsite")})]})]}),l&&b.jsxs("div",{className:"ModifySection",children:[b.jsx("h3",{className:"ModifySection-title",children:n("modifySchema")}),b.jsx(bb,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("applyChanges"),onSubmit:m,onCancel:()=>s(!1)})]}),b.jsx(fR,{isOpen:u,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:v,onCancel:()=>c(!1)})]})}function SA({step:a}){const{t:n}=Ot();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:a.stepNumber,kind:n(a.kind)})}),b.jsx(Zo,{severity:"error",title:n("stepFailed"),children:a.explanation?b.jsx("div",{dangerouslySetInnerHTML:{__html:a.explanation}}):n("unknownError")})]})}function xA(a){return b.jsx(vi,{children:b.jsx(wA,{...a})})}function wA({step:a}){const{t:n}=Ot(),{showError:i}=yi(),l=`${a.adminUiUrl}?unsafe-login=${btoa(`${a.loginEmail}:${a.loginPassword}`)}&local=1`,s=async()=>{const u=`
81
- ${n("siteGenerated")}
82
- ${n("loginEmail")}: ${a.loginEmail}
83
- ${n("loginPassword")}: ${a.loginPassword}
84
- ${n("siteUrl")}: ${a.siteUrl}
85
- ${n("adminUrl")}: ${a.adminUiUrl}
86
- ${n("quickLoginUrl")}: ${l}
87
- `.trim();await navigator.clipboard.writeText(u)};return b.jsxs("div",{className:"SgSection GeneratedSite",children:[b.jsx("h1",{className:"SgSection-title",children:n("generatedSite")}),b.jsx(Ha,{}),a.status==="pending"&&b.jsxs("div",{className:"GeneratedSite-pending",children:[b.jsx(Ad,{}),b.jsx("p",{children:n("generatingContent")})]}),a.explanation&&b.jsx(ep,{content:a.explanation,title:n("explanation")}),b.jsxs("div",{className:"GeneratedSite-credentials",children:[b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("loginEmail")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:a.loginEmail})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("loginPassword")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:a.loginPassword})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("adminUrl")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:a.adminUiUrl})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("siteUrl")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:a.siteUrl})})]})]}),b.jsxs("div",{className:"SgActions column",children:[b.jsx(ra,{as:"async",severity:"secondary",onClick:s,insideFeedback:{label:n("copied"),autoDismiss:!0},onError:i,children:n("copyToClipboard")}),b.jsx(ra,{as:"a",href:l,target:"_blank",rel:"noopener noreferrer",children:n("openAdminUI")})]})]})}function EA({step:a}){const{t:n}=Ot();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:a.stepNumber,kind:n(a.kind)})}),b.jsx(Zo,{severity:"warning",title:n("stepNoEffect"),children:a.explanation?b.jsx("div",{dangerouslySetInnerHTML:{__html:a.explanation}}):n("noChangesApplied")})]})}function by({step:a}){const{t:n}=Ot();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:a.stepNumber,kind:n(a.kind)})}),b.jsxs("div",{className:"LoadingState",children:[b.jsx(Ad,{}),a.currentActivity&&b.jsxs("div",{className:"LoadingState-status",children:[b.jsx("strong",{children:n("currentActivity")}),b.jsx("span",{children:n(`activity.${a.currentActivity}`)})]})]}),a.explanation&&b.jsx(ep,{content:a.explanation,title:n("explanation")})]})}function TA({step:a}){if(a.status==="failed")return b.jsx(SA,{step:a});if(a.status==="noEffect")return b.jsx(EA,{step:a});if(a.kind==="initialSchema"||a.kind==="updateSchema")return a.status==="pending"?b.jsx(by,{step:a}):b.jsx(yA,{step:a});if(a.kind==="generateSite")return a.status==="pending"&&!SO(a)?b.jsx(by,{step:a}):b.jsx(xA,{step:a});throw new Error(`Unknown step kind: ${a.kind}`)}function CA(){const a=bl(),{stepNumber:n}=s2(),{workSession:i,setActiveStepNumber:l}=Si(),s=n===void 0?void 0:Number.parseInt(n,10);if(N.useEffect(()=>(l(s),()=>l(void 0)),[s,l]),Hy(async()=>{if(!i?.steps)return;i.steps.some(p=>p.stepNumber===s)||a("/")},[s,i,a]),!i?.steps)return null;const u=i.steps.find(c=>c.stepNumber===s);return u?b.jsx(TA,{step:u}):null}function fp(){const{i18n:a}=Ot(),n=async i=>{const l=i.target.value;mO(),await a.changeLanguage(l);const s=hi();s&&await oa({command:"setLanguage",sessionToken:s,language:l})};return b.jsx("div",{className:"LangSwitcher",children:b.jsxs("select",{value:a.language,onChange:n,children:[b.jsx("option",{value:"en",children:"English"}),b.jsx("option",{value:"fr",children:"Français"})]})})}function NA({activeStepNumber:a}){const{t:n}=Ot(),i=bl(),{workSession:l}=Si(),s=()=>{i("/")},u=p=>{i(`/step/${p}`)},c=p=>p.stepNumber===a?"StepPill active":p.status==="pending"?"StepPill loading":"StepPill step";return b.jsxs("nav",{className:"StepNav",children:[b.jsxs("button",{type:"button",className:`StepPill new ${a===void 0?"active":""}`,onClick:s,children:["+ ",n("new")]}),l?.steps.map(p=>b.jsxs("button",{type:"button",className:c(p),onClick:()=>u(p.stepNumber),children:[n("stepNumber",{stepNumber:p.stepNumber}),b.jsx("span",{className:"StepPill-tooltip",children:n(p.kind)})]},p.stepNumber))]})}function OA({activeStepNumber:a}){return b.jsx("header",{className:"SgHeader",children:b.jsxs("div",{className:"SgHeader-inner",children:[b.jsx(NA,{activeStepNumber:a}),b.jsx("div",{className:"SgHeader-lang",children:b.jsx(fp,{})})]})})}function RA({sessionToken:a,onSessionExpired:n}){const{workSession:i,isLoading:l,error:s,activeStepNumber:u,setWorkSession:c,setIsLoading:p,setError:f,resetSession:m}=Si();return N.useEffect(()=>()=>{Yd()},[]),Hy(async()=>{p(!0),f(void 0);try{const v=await oa({command:"loadWorkSession",sessionToken:a});v.success&&v.result?(c(v.result),ht.changeLanguage(v.result.language)):(f(v.userMessage||"Failed to load session"),v.success||(m(),cO(),n()))}catch(v){f("Error connecting to server"),console.error(v)}finally{p(!1)}},[a,c,p,f,n]),l?b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"LoadingState",children:b.jsx("div",{className:"LoadingState-status",children:b.jsx("span",{children:"Loading session..."})})})})}):s?b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"SgSection",children:b.jsx("div",{className:"PaAlert error",children:b.jsx("div",{className:"PaAlert-content",children:s})})})})}):i?b.jsxs(I2,{children:[b.jsx(OA,{activeStepNumber:u}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs(E2,{children:[b.jsx(Ro,{path:"/",element:b.jsx(vO,{})}),b.jsx(Ro,{path:"/step/:stepNumber",element:b.jsx(CA,{})}),b.jsx(Ro,{path:"*",element:b.jsx(x2,{to:"/",replace:!0})})]})})})]}):b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"LoadingState",children:b.jsx("div",{className:"LoadingState-status",children:b.jsx("span",{children:"Session not available."})})})})})}function Sy(a){return a!==null&&typeof a=="object"&&"constructor"in a&&a.constructor===Object}function dp(a={},n={}){const i=["__proto__","constructor","prototype"];Object.keys(n).filter(l=>i.indexOf(l)<0).forEach(l=>{typeof a[l]>"u"?a[l]=n[l]:Sy(n[l])&&Sy(a[l])&&Object.keys(n[l]).length>0&&dp(a[l],n[l])})}const e0={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ei(){const a=typeof document<"u"?document:{};return dp(a,e0),a}const AA={document:e0,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(a){return typeof setTimeout>"u"?(a(),null):setTimeout(a,0)},cancelAnimationFrame(a){typeof setTimeout>"u"||clearTimeout(a)}};function Dt(){const a=typeof window<"u"?window:{};return dp(a,AA),a}function jA(a=""){return a.trim().split(" ").filter(n=>!!n.trim())}function DA(a){const n=a;Object.keys(n).forEach(i=>{try{n[i]=null}catch{}try{delete n[i]}catch{}})}function t0(a,n=0){return setTimeout(a,n)}function Yo(){return Date.now()}function MA(a){const n=Dt();let i;return n.getComputedStyle&&(i=n.getComputedStyle(a,null)),!i&&a.currentStyle&&(i=a.currentStyle),i||(i=a.style),i}function _A(a,n="x"){const i=Dt();let l,s,u;const c=MA(a);return i.WebKitCSSMatrix?(s=c.transform||c.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(p=>p.replace(",",".")).join(", ")),u=new i.WebKitCSSMatrix(s==="none"?"":s)):(u=c.MozTransform||c.OTransform||c.MsTransform||c.msTransform||c.transform||c.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=u.toString().split(",")),n==="x"&&(i.WebKitCSSMatrix?s=u.m41:l.length===16?s=parseFloat(l[12]):s=parseFloat(l[4])),n==="y"&&(i.WebKitCSSMatrix?s=u.m42:l.length===16?s=parseFloat(l[13]):s=parseFloat(l[5])),s||0}function Eo(a){return typeof a=="object"&&a!==null&&a.constructor&&Object.prototype.toString.call(a).slice(8,-1)==="Object"}function kA(a){return typeof window<"u"&&typeof window.HTMLElement<"u"?a instanceof HTMLElement:a&&(a.nodeType===1||a.nodeType===11)}function tn(...a){const n=Object(a[0]);for(let i=1;i<a.length;i+=1){const l=a[i];if(l!=null&&!kA(l)){const s=Object.keys(Object(l)).filter(u=>u!=="__proto__"&&u!=="constructor"&&u!=="prototype");for(let u=0,c=s.length;u<c;u+=1){const p=s[u],f=Object.getOwnPropertyDescriptor(l,p);f!==void 0&&f.enumerable&&(Eo(n[p])&&Eo(l[p])?l[p].__swiper__?n[p]=l[p]:tn(n[p],l[p]):!Eo(n[p])&&Eo(l[p])?(n[p]={},l[p].__swiper__?n[p]=l[p]:tn(n[p],l[p])):n[p]=l[p])}}}return n}function fl(a,n,i){a.style.setProperty(n,i)}function n0({swiper:a,targetPosition:n,side:i}){const l=Dt(),s=-a.translate;let u=null,c;const p=a.params.speed;a.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(a.cssModeFrameID);const f=n>s?"next":"prev",m=(g,S)=>f==="next"&&g>=S||f==="prev"&&g<=S,v=()=>{c=new Date().getTime(),u===null&&(u=c);const g=Math.max(Math.min((c-u)/p,1),0),S=.5-Math.cos(g*Math.PI)/2;let x=s+S*(n-s);if(m(x,n)&&(x=n),a.wrapperEl.scrollTo({[i]:x}),m(x,n)){a.wrapperEl.style.overflow="hidden",a.wrapperEl.style.scrollSnapType="",setTimeout(()=>{a.wrapperEl.style.overflow="",a.wrapperEl.scrollTo({[i]:x})}),l.cancelAnimationFrame(a.cssModeFrameID);return}a.cssModeFrameID=l.requestAnimationFrame(v)};v()}function Ln(a,n=""){const i=Dt(),l=[...a.children];return i.HTMLSlotElement&&a instanceof HTMLSlotElement&&l.push(...a.assignedElements()),n?l.filter(s=>s.matches(n)):l}function LA(a,n){const i=[n];for(;i.length>0;){const l=i.shift();if(a===l)return!0;i.push(...l.children,...l.shadowRoot?l.shadowRoot.children:[],...l.assignedElements?l.assignedElements():[])}}function zA(a,n){const i=Dt();let l=n.contains(a);return!l&&i.HTMLSlotElement&&n instanceof HTMLSlotElement&&(l=[...n.assignedElements()].includes(a),l||(l=LA(a,n))),l}function Po(a){try{console.warn(a);return}catch{}}function Xo(a,n=[]){const i=document.createElement(a);return i.classList.add(...Array.isArray(n)?n:jA(n)),i}function BA(a,n){const i=[];for(;a.previousElementSibling;){const l=a.previousElementSibling;n?l.matches(n)&&i.push(l):i.push(l),a=l}return i}function $A(a,n){const i=[];for(;a.nextElementSibling;){const l=a.nextElementSibling;n?l.matches(n)&&i.push(l):i.push(l),a=l}return i}function Ua(a,n){return Dt().getComputedStyle(a,null).getPropertyValue(n)}function Io(a){let n=a,i;if(n){for(i=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(i+=1);return i}}function a0(a,n){const i=[];let l=a.parentElement;for(;l;)n?l.matches(n)&&i.push(l):i.push(l),l=l.parentElement;return i}function Td(a,n,i){const l=Dt();return a[n==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(a,null).getPropertyValue(n==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(a,null).getPropertyValue(n==="width"?"margin-left":"margin-bottom"))}function aa(a){return(Array.isArray(a)?a:[a]).filter(n=>!!n)}function Ko(a,n=""){typeof trustedTypes<"u"?a.innerHTML=trustedTypes.createPolicy("html",{createHTML:i=>i}).createHTML(n):a.innerHTML=n}function UA(a,n,i,l){return a.params.createElements&&Object.keys(l).forEach(s=>{if(!i[s]&&i.auto===!0){let u=Ln(a.el,`.${l[s]}`)[0];u||(u=Xo("div",l[s]),u.className=l[s],a.el.append(u)),i[s]=u,n[s]=u}}),i}function Er(a=""){return`.${a.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function HA({swiper:a,extendParams:n,on:i,emit:l}){const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:C=>C,formatFractionTotal:C=>C,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),a.pagination={el:null,bullets:[]};let u,c=0;function p(){return!a.params.pagination.el||!a.pagination.el||Array.isArray(a.pagination.el)&&a.pagination.el.length===0}function f(C,T){const{bulletActiveClass:R}=a.params.pagination;C&&(C=C[`${T==="prev"?"previous":"next"}ElementSibling`],C&&(C.classList.add(`${R}-${T}`),C=C[`${T==="prev"?"previous":"next"}ElementSibling`],C&&C.classList.add(`${R}-${T}-${T}`)))}function m(C,T,R){if(C=C%R,T=T%R,T===C+1)return"next";if(T===C-1)return"previous"}function v(C){const T=C.target.closest(Er(a.params.pagination.bulletClass));if(!T)return;C.preventDefault();const R=Io(T)*a.params.slidesPerGroup;if(a.params.loop){if(a.realIndex===R)return;const B=m(a.realIndex,R,a.slides.length);B==="next"?a.slideNext():B==="previous"?a.slidePrev():a.slideToLoop(R)}else a.slideTo(R)}function g(){const C=a.rtl,T=a.params.pagination;if(p())return;let R=a.pagination.el;R=aa(R);let B,Y;const z=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:a.slides.length,_=a.params.loop?Math.ceil(z/a.params.slidesPerGroup):a.snapGrid.length;if(a.params.loop?(Y=a.previousRealIndex||0,B=a.params.slidesPerGroup>1?Math.floor(a.realIndex/a.params.slidesPerGroup):a.realIndex):typeof a.snapIndex<"u"?(B=a.snapIndex,Y=a.previousSnapIndex):(Y=a.previousIndex||0,B=a.activeIndex||0),T.type==="bullets"&&a.pagination.bullets&&a.pagination.bullets.length>0){const M=a.pagination.bullets;let H,$,U;if(T.dynamicBullets&&(u=Td(M[0],a.isHorizontal()?"width":"height"),R.forEach(I=>{I.style[a.isHorizontal()?"width":"height"]=`${u*(T.dynamicMainBullets+4)}px`}),T.dynamicMainBullets>1&&Y!==void 0&&(c+=B-(Y||0),c>T.dynamicMainBullets-1?c=T.dynamicMainBullets-1:c<0&&(c=0)),H=Math.max(B-c,0),$=H+(Math.min(M.length,T.dynamicMainBullets)-1),U=($+H)/2),M.forEach(I=>{const ee=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(ne=>`${T.bulletActiveClass}${ne}`)].map(ne=>typeof ne=="string"&&ne.includes(" ")?ne.split(" "):ne).flat();I.classList.remove(...ee)}),R.length>1)M.forEach(I=>{const ee=Io(I);ee===B?I.classList.add(...T.bulletActiveClass.split(" ")):a.isElement&&I.setAttribute("part","bullet"),T.dynamicBullets&&(ee>=H&&ee<=$&&I.classList.add(...`${T.bulletActiveClass}-main`.split(" ")),ee===H&&f(I,"prev"),ee===$&&f(I,"next"))});else{const I=M[B];if(I&&I.classList.add(...T.bulletActiveClass.split(" ")),a.isElement&&M.forEach((ee,ne)=>{ee.setAttribute("part",ne===B?"bullet-active":"bullet")}),T.dynamicBullets){const ee=M[H],ne=M[$];for(let le=H;le<=$;le+=1)M[le]&&M[le].classList.add(...`${T.bulletActiveClass}-main`.split(" "));f(ee,"prev"),f(ne,"next")}}if(T.dynamicBullets){const I=Math.min(M.length,T.dynamicMainBullets+4),ee=(u*I-u)/2-U*u,ne=C?"right":"left";M.forEach(le=>{le.style[a.isHorizontal()?ne:"top"]=`${ee}px`})}}R.forEach((M,H)=>{if(T.type==="fraction"&&(M.querySelectorAll(Er(T.currentClass)).forEach($=>{$.textContent=T.formatFractionCurrent(B+1)}),M.querySelectorAll(Er(T.totalClass)).forEach($=>{$.textContent=T.formatFractionTotal(_)})),T.type==="progressbar"){let $;T.progressbarOpposite?$=a.isHorizontal()?"vertical":"horizontal":$=a.isHorizontal()?"horizontal":"vertical";const U=(B+1)/_;let I=1,ee=1;$==="horizontal"?I=U:ee=U,M.querySelectorAll(Er(T.progressbarFillClass)).forEach(ne=>{ne.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${ee})`,ne.style.transitionDuration=`${a.params.speed}ms`})}T.type==="custom"&&T.renderCustom?(Ko(M,T.renderCustom(a,B+1,_)),H===0&&l("paginationRender",M)):(H===0&&l("paginationRender",M),l("paginationUpdate",M)),a.params.watchOverflow&&a.enabled&&M.classList[a.isLocked?"add":"remove"](T.lockClass)})}function S(){const C=a.params.pagination;if(p())return;const T=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:a.grid&&a.params.grid.rows>1?a.slides.length/Math.ceil(a.params.grid.rows):a.slides.length;let R=a.pagination.el;R=aa(R);let B="";if(C.type==="bullets"){let Y=a.params.loop?Math.ceil(T/a.params.slidesPerGroup):a.snapGrid.length;a.params.freeMode&&a.params.freeMode.enabled&&Y>T&&(Y=T);for(let z=0;z<Y;z+=1)C.renderBullet?B+=C.renderBullet.call(a,z,C.bulletClass):B+=`<${C.bulletElement} ${a.isElement?'part="bullet"':""} class="${C.bulletClass}"></${C.bulletElement}>`}C.type==="fraction"&&(C.renderFraction?B=C.renderFraction.call(a,C.currentClass,C.totalClass):B=`<span class="${C.currentClass}"></span> / <span class="${C.totalClass}"></span>`),C.type==="progressbar"&&(C.renderProgressbar?B=C.renderProgressbar.call(a,C.progressbarFillClass):B=`<span class="${C.progressbarFillClass}"></span>`),a.pagination.bullets=[],R.forEach(Y=>{C.type!=="custom"&&Ko(Y,B||""),C.type==="bullets"&&a.pagination.bullets.push(...Y.querySelectorAll(Er(C.bulletClass)))}),C.type!=="custom"&&l("paginationRender",R[0])}function x(){a.params.pagination=UA(a,a.originalParams.pagination,a.params.pagination,{el:"swiper-pagination"});const C=a.params.pagination;if(!C.el)return;let T;typeof C.el=="string"&&a.isElement&&(T=a.el.querySelector(C.el)),!T&&typeof C.el=="string"&&(T=[...document.querySelectorAll(C.el)]),T||(T=C.el),!(!T||T.length===0)&&(a.params.uniqueNavElements&&typeof C.el=="string"&&Array.isArray(T)&&T.length>1&&(T=[...a.el.querySelectorAll(C.el)],T.length>1&&(T=T.find(R=>a0(R,".swiper")[0]===a.el))),Array.isArray(T)&&T.length===1&&(T=T[0]),Object.assign(a.pagination,{el:T}),T=aa(T),T.forEach(R=>{C.type==="bullets"&&C.clickable&&R.classList.add(...(C.clickableClass||"").split(" ")),R.classList.add(C.modifierClass+C.type),R.classList.add(a.isHorizontal()?C.horizontalClass:C.verticalClass),C.type==="bullets"&&C.dynamicBullets&&(R.classList.add(`${C.modifierClass}${C.type}-dynamic`),c=0,C.dynamicMainBullets<1&&(C.dynamicMainBullets=1)),C.type==="progressbar"&&C.progressbarOpposite&&R.classList.add(C.progressbarOppositeClass),C.clickable&&R.addEventListener("click",v),a.enabled||R.classList.add(C.lockClass)}))}function E(){const C=a.params.pagination;if(p())return;let T=a.pagination.el;T&&(T=aa(T),T.forEach(R=>{R.classList.remove(C.hiddenClass),R.classList.remove(C.modifierClass+C.type),R.classList.remove(a.isHorizontal()?C.horizontalClass:C.verticalClass),C.clickable&&(R.classList.remove(...(C.clickableClass||"").split(" ")),R.removeEventListener("click",v))})),a.pagination.bullets&&a.pagination.bullets.forEach(R=>R.classList.remove(...C.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!a.pagination||!a.pagination.el)return;const C=a.params.pagination;let{el:T}=a.pagination;T=aa(T),T.forEach(R=>{R.classList.remove(C.horizontalClass,C.verticalClass),R.classList.add(a.isHorizontal()?C.horizontalClass:C.verticalClass)})}),i("init",()=>{a.params.pagination.enabled===!1?A():(x(),S(),g())}),i("activeIndexChange",()=>{typeof a.snapIndex>"u"&&g()}),i("snapIndexChange",()=>{g()}),i("snapGridLengthChange",()=>{S(),g()}),i("destroy",()=>{E()}),i("enable disable",()=>{let{el:C}=a.pagination;C&&(C=aa(C),C.forEach(T=>T.classList[a.enabled?"remove":"add"](a.params.pagination.lockClass)))}),i("lock unlock",()=>{g()}),i("click",(C,T)=>{const R=T.target,B=aa(a.pagination.el);if(a.params.pagination.el&&a.params.pagination.hideOnClick&&B&&B.length>0&&!R.classList.contains(a.params.pagination.bulletClass)){if(a.navigation&&(a.navigation.nextEl&&R===a.navigation.nextEl||a.navigation.prevEl&&R===a.navigation.prevEl))return;const Y=B[0].classList.contains(a.params.pagination.hiddenClass);l(Y===!0?"paginationShow":"paginationHide"),B.forEach(z=>z.classList.toggle(a.params.pagination.hiddenClass))}});const O=()=>{a.el.classList.remove(a.params.pagination.paginationDisabledClass);let{el:C}=a.pagination;C&&(C=aa(C),C.forEach(T=>T.classList.remove(a.params.pagination.paginationDisabledClass))),x(),S(),g()},A=()=>{a.el.classList.add(a.params.pagination.paginationDisabledClass);let{el:C}=a.pagination;C&&(C=aa(C),C.forEach(T=>T.classList.add(a.params.pagination.paginationDisabledClass))),E()};Object.assign(a.pagination,{enable:O,disable:A,render:S,update:g,init:x,destroy:E})}let ed;function VA(){const a=Dt(),n=Ei();return{smoothScroll:n.documentElement&&n.documentElement.style&&"scrollBehavior"in n.documentElement.style,touch:!!("ontouchstart"in a||a.DocumentTouch&&n instanceof a.DocumentTouch)}}function i0(){return ed||(ed=VA()),ed}let td;function GA({userAgent:a}={}){const n=i0(),i=Dt(),l=i.navigator.platform,s=a||i.navigator.userAgent,u={ios:!1,android:!1},c=i.screen.width,p=i.screen.height,f=s.match(/(Android);?[\s\/]+([\d.]+)?/);let m=s.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const v=s.match(/(iPod)(.*OS\s([\d_]+))?/),g=!m&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),S=l==="Win32";let x=l==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!m&&x&&n.touch&&E.indexOf(`${c}x${p}`)>=0&&(m=s.match(/(Version)\/([\d.]+)/),m||(m=[0,1,"13_0_0"]),x=!1),f&&!S&&(u.os="android",u.android=!0),(m||g||v)&&(u.os="ios",u.ios=!0),u}function l0(a={}){return td||(td=GA(a)),td}let nd;function qA(){const a=Dt(),n=l0();let i=!1;function l(){const p=a.navigator.userAgent.toLowerCase();return p.indexOf("safari")>=0&&p.indexOf("chrome")<0&&p.indexOf("android")<0}if(l()){const p=String(a.navigator.userAgent);if(p.includes("Version/")){const[f,m]=p.split("Version/")[1].split(" ")[0].split(".").map(v=>Number(v));i=f<16||f===16&&m<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(a.navigator.userAgent),u=l(),c=u||s&&n.ios;return{isSafari:i||u,needPerspectiveFix:i,need3dFix:c,isWebView:s}}function r0(){return nd||(nd=qA()),nd}function YA({swiper:a,on:n,emit:i}){const l=Dt();let s=null,u=null;const c=()=>{!a||a.destroyed||!a.initialized||(i("beforeResize"),i("resize"))},p=()=>{!a||a.destroyed||!a.initialized||(s=new ResizeObserver(v=>{u=l.requestAnimationFrame(()=>{const{width:g,height:S}=a;let x=g,E=S;v.forEach(({contentBoxSize:O,contentRect:A,target:C})=>{C&&C!==a.el||(x=A?A.width:(O[0]||O).inlineSize,E=A?A.height:(O[0]||O).blockSize)}),(x!==g||E!==S)&&c()})}),s.observe(a.el))},f=()=>{u&&l.cancelAnimationFrame(u),s&&s.unobserve&&a.el&&(s.unobserve(a.el),s=null)},m=()=>{!a||a.destroyed||!a.initialized||i("orientationchange")};n("init",()=>{if(a.params.resizeObserver&&typeof l.ResizeObserver<"u"){p();return}l.addEventListener("resize",c),l.addEventListener("orientationchange",m)}),n("destroy",()=>{f(),l.removeEventListener("resize",c),l.removeEventListener("orientationchange",m)})}function PA({swiper:a,extendParams:n,on:i,emit:l}){const s=[],u=Dt(),c=(m,v={})=>{const g=u.MutationObserver||u.WebkitMutationObserver,S=new g(x=>{if(a.__preventObserver__)return;if(x.length===1){l("observerUpdate",x[0]);return}const E=function(){l("observerUpdate",x[0])};u.requestAnimationFrame?u.requestAnimationFrame(E):u.setTimeout(E,0)});S.observe(m,{attributes:typeof v.attributes>"u"?!0:v.attributes,childList:a.isElement||(typeof v.childList>"u"?!0:v).childList,characterData:typeof v.characterData>"u"?!0:v.characterData}),s.push(S)},p=()=>{if(a.params.observer){if(a.params.observeParents){const m=a0(a.hostEl);for(let v=0;v<m.length;v+=1)c(m[v])}c(a.hostEl,{childList:a.params.observeSlideChildren}),c(a.wrapperEl,{attributes:!1})}},f=()=>{s.forEach(m=>{m.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",p),i("destroy",f)}var XA={on(a,n,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof n!="function")return l;const s=i?"unshift":"push";return a.split(" ").forEach(u=>{l.eventsListeners[u]||(l.eventsListeners[u]=[]),l.eventsListeners[u][s](n)}),l},once(a,n,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof n!="function")return l;function s(...u){l.off(a,s),s.__emitterProxy&&delete s.__emitterProxy,n.apply(l,u)}return s.__emitterProxy=n,l.on(a,s,i)},onAny(a,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof a!="function")return i;const l=n?"unshift":"push";return i.eventsAnyListeners.indexOf(a)<0&&i.eventsAnyListeners[l](a),i},offAny(a){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsAnyListeners)return n;const i=n.eventsAnyListeners.indexOf(a);return i>=0&&n.eventsAnyListeners.splice(i,1),n},off(a,n){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||a.split(" ").forEach(l=>{typeof n>"u"?i.eventsListeners[l]=[]:i.eventsListeners[l]&&i.eventsListeners[l].forEach((s,u)=>{(s===n||s.__emitterProxy&&s.__emitterProxy===n)&&i.eventsListeners[l].splice(u,1)})}),i},emit(...a){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let i,l,s;return typeof a[0]=="string"||Array.isArray(a[0])?(i=a[0],l=a.slice(1,a.length),s=n):(i=a[0].events,l=a[0].data,s=a[0].context||n),l.unshift(s),(Array.isArray(i)?i:i.split(" ")).forEach(c=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(p=>{p.apply(s,[c,...l])}),n.eventsListeners&&n.eventsListeners[c]&&n.eventsListeners[c].forEach(p=>{p.apply(s,l)})}),n}};function IA(){const a=this;let n,i;const l=a.el;typeof a.params.width<"u"&&a.params.width!==null?n=a.params.width:n=l.clientWidth,typeof a.params.height<"u"&&a.params.height!==null?i=a.params.height:i=l.clientHeight,!(n===0&&a.isHorizontal()||i===0&&a.isVertical())&&(n=n-parseInt(Ua(l,"padding-left")||0,10)-parseInt(Ua(l,"padding-right")||0,10),i=i-parseInt(Ua(l,"padding-top")||0,10)-parseInt(Ua(l,"padding-bottom")||0,10),Number.isNaN(n)&&(n=0),Number.isNaN(i)&&(i=0),Object.assign(a,{width:n,height:i,size:a.isHorizontal()?n:i}))}function KA(){const a=this;function n($,U){return parseFloat($.getPropertyValue(a.getDirectionLabel(U))||0)}const i=a.params,{wrapperEl:l,slidesEl:s,rtlTranslate:u,wrongRTL:c}=a,p=a.virtual&&i.virtual.enabled,f=p?a.virtual.slides.length:a.slides.length,m=Ln(s,`.${a.params.slideClass}, swiper-slide`),v=p?a.virtual.slides.length:m.length;let g=[];const S=[],x=[];let E=i.slidesOffsetBefore;typeof E=="function"&&(E=i.slidesOffsetBefore.call(a));let O=i.slidesOffsetAfter;typeof O=="function"&&(O=i.slidesOffsetAfter.call(a));const A=a.snapGrid.length,C=a.slidesGrid.length,T=a.size-E-O;let R=i.spaceBetween,B=-E,Y=0,z=0;if(typeof T>"u")return;typeof R=="string"&&R.indexOf("%")>=0?R=parseFloat(R.replace("%",""))/100*T:typeof R=="string"&&(R=parseFloat(R)),a.virtualSize=-R-E-O,m.forEach($=>{u?$.style.marginLeft="":$.style.marginRight="",$.style.marginBottom="",$.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(fl(l,"--swiper-centered-offset-before",""),fl(l,"--swiper-centered-offset-after","")),i.cssMode&&(fl(l,"--swiper-slides-offset-before",`${E}px`),fl(l,"--swiper-slides-offset-after",`${O}px`));const _=i.grid&&i.grid.rows>1&&a.grid;_?a.grid.initSlides(m):a.grid&&a.grid.unsetSlides();let M;const H=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter($=>typeof i.breakpoints[$].slidesPerView<"u").length>0;for(let $=0;$<v;$+=1){M=0;const U=m[$];if(!(U&&(_&&a.grid.updateSlide($,U,m),Ua(U,"display")==="none"))){if(p&&i.slidesPerView==="auto")i.virtual.slidesPerViewAutoSlideSize&&(M=i.virtual.slidesPerViewAutoSlideSize),M&&U&&(i.roundLengths&&(M=Math.floor(M)),U.style[a.getDirectionLabel("width")]=`${M}px`);else if(i.slidesPerView==="auto"){H&&(U.style[a.getDirectionLabel("width")]="");const I=getComputedStyle(U),ee=U.style.transform,ne=U.style.webkitTransform;if(ee&&(U.style.transform="none"),ne&&(U.style.webkitTransform="none"),i.roundLengths)M=a.isHorizontal()?Td(U,"width"):Td(U,"height");else{const le=n(I,"width"),V=n(I,"padding-left"),te=n(I,"padding-right"),J=n(I,"margin-left"),se=n(I,"margin-right"),de=I.getPropertyValue("box-sizing");if(de&&de==="border-box")M=le+J+se;else{const{clientWidth:D,offsetWidth:F}=U;M=le+V+te+J+se+(F-D)}}ee&&(U.style.transform=ee),ne&&(U.style.webkitTransform=ne),i.roundLengths&&(M=Math.floor(M))}else M=(T-(i.slidesPerView-1)*R)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),U&&(U.style[a.getDirectionLabel("width")]=`${M}px`);U&&(U.swiperSlideSize=M),x.push(M),i.centeredSlides?(B=B+M/2+Y/2+R,Y===0&&$!==0&&(B=B-T/2-R),$===0&&(B=B-T/2-R),Math.abs(B)<1/1e3&&(B=0),i.roundLengths&&(B=Math.floor(B)),z%i.slidesPerGroup===0&&g.push(B),S.push(B)):(i.roundLengths&&(B=Math.floor(B)),(z-Math.min(a.params.slidesPerGroupSkip,z))%a.params.slidesPerGroup===0&&g.push(B),S.push(B),B=B+M+R),a.virtualSize+=M+R,Y=M,z+=1}}if(a.virtualSize=Math.max(a.virtualSize,T)+O,u&&c&&(i.effect==="slide"||i.effect==="coverflow")&&(l.style.width=`${a.virtualSize+R}px`),i.setWrapperSize&&(l.style[a.getDirectionLabel("width")]=`${a.virtualSize+R}px`),_&&a.grid.updateWrapperSize(M,g),!i.centeredSlides){const $=i.slidesPerView!=="auto"&&i.slidesPerView%1!==0,U=i.snapToSlideEdge&&!i.loop&&(i.slidesPerView==="auto"||$);let I=g.length;if(U){let ne;if(i.slidesPerView==="auto"){ne=1;let le=0;for(let V=x.length-1;V>=0&&(le+=x[V]+(V<x.length-1?R:0),le<=T);V-=1)ne=x.length-V}else ne=Math.floor(i.slidesPerView);I=Math.max(v-ne,0)}const ee=[];for(let ne=0;ne<g.length;ne+=1){let le=g[ne];i.roundLengths&&(le=Math.floor(le)),U?ne<=I&&ee.push(le):g[ne]<=a.virtualSize-T&&ee.push(le)}g=ee,Math.floor(a.virtualSize-T)-Math.floor(g[g.length-1])>1&&(U||g.push(a.virtualSize-T))}if(p&&i.loop){const $=x[0]+R;if(i.slidesPerGroup>1){const U=Math.ceil((a.virtual.slidesBefore+a.virtual.slidesAfter)/i.slidesPerGroup),I=$*i.slidesPerGroup;for(let ee=0;ee<U;ee+=1)g.push(g[g.length-1]+I)}for(let U=0;U<a.virtual.slidesBefore+a.virtual.slidesAfter;U+=1)i.slidesPerGroup===1&&g.push(g[g.length-1]+$),S.push(S[S.length-1]+$),a.virtualSize+=$}if(g.length===0&&(g=[0]),R!==0){const $=a.isHorizontal()&&u?"marginLeft":a.getDirectionLabel("marginRight");m.filter((U,I)=>!i.cssMode||i.loop?!0:I!==m.length-1).forEach(U=>{U.style[$]=`${R}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let $=0;x.forEach(I=>{$+=I+(R||0)}),$-=R;const U=$>T?$-T:0;g=g.map(I=>I<=0?-E:I>U?U+O:I)}if(i.centerInsufficientSlides){let $=0;if(x.forEach(U=>{$+=U+(R||0)}),$-=R,$<T){const U=(T-$)/2;g.forEach((I,ee)=>{g[ee]=I-U}),S.forEach((I,ee)=>{S[ee]=I+U})}}if(Object.assign(a,{slides:m,snapGrid:g,slidesGrid:S,slidesSizesGrid:x}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){fl(l,"--swiper-centered-offset-before",`${-g[0]}px`),fl(l,"--swiper-centered-offset-after",`${a.size/2-x[x.length-1]/2}px`);const $=-a.snapGrid[0],U=-a.slidesGrid[0];a.snapGrid=a.snapGrid.map(I=>I+$),a.slidesGrid=a.slidesGrid.map(I=>I+U)}if(v!==f&&a.emit("slidesLengthChange"),g.length!==A&&(a.params.watchOverflow&&a.checkOverflow(),a.emit("snapGridLengthChange")),S.length!==C&&a.emit("slidesGridLengthChange"),i.watchSlidesProgress&&a.updateSlidesOffset(),a.emit("slidesUpdated"),!p&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const $=`${i.containerModifierClass}backface-hidden`,U=a.el.classList.contains($);v<=i.maxBackfaceHiddenSlides?U||a.el.classList.add($):U&&a.el.classList.remove($)}}function FA(a){const n=this,i=[],l=n.virtual&&n.params.virtual.enabled;let s=0,u;typeof a=="number"?n.setTransition(a):a===!0&&n.setTransition(n.params.speed);const c=p=>l?n.slides[n.getSlideIndexByData(p)]:n.slides[p];if(n.params.slidesPerView!=="auto"&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(p=>{i.push(p)});else for(u=0;u<Math.ceil(n.params.slidesPerView);u+=1){const p=n.activeIndex+u;if(p>n.slides.length&&!l)break;i.push(c(p))}else i.push(c(n.activeIndex));for(u=0;u<i.length;u+=1)if(typeof i[u]<"u"){const p=i[u].offsetHeight;s=p>s?p:s}(s||s===0)&&(n.wrapperEl.style.height=`${s}px`)}function QA(){const a=this,n=a.slides,i=a.isElement?a.isHorizontal()?a.wrapperEl.offsetLeft:a.wrapperEl.offsetTop:0;for(let l=0;l<n.length;l+=1)n[l].swiperSlideOffset=(a.isHorizontal()?n[l].offsetLeft:n[l].offsetTop)-i-a.cssOverflowAdjustment()}const xy=(a,n,i)=>{n&&!a.classList.contains(i)?a.classList.add(i):!n&&a.classList.contains(i)&&a.classList.remove(i)};function ZA(a=this&&this.translate||0){const n=this,i=n.params,{slides:l,rtlTranslate:s,snapGrid:u}=n;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&n.updateSlidesOffset();let c=-a;s&&(c=a),n.visibleSlidesIndexes=[],n.visibleSlides=[];let p=i.spaceBetween;typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*n.size:typeof p=="string"&&(p=parseFloat(p));for(let f=0;f<l.length;f+=1){const m=l[f];let v=m.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(v-=l[0].swiperSlideOffset);const g=(c+(i.centeredSlides?n.minTranslate():0)-v)/(m.swiperSlideSize+p),S=(c-u[0]+(i.centeredSlides?n.minTranslate():0)-v)/(m.swiperSlideSize+p),x=-(c-v),E=x+n.slidesSizesGrid[f],O=x>=0&&x<=n.size-n.slidesSizesGrid[f],A=x>=0&&x<n.size-1||E>1&&E<=n.size||x<=0&&E>=n.size;A&&(n.visibleSlides.push(m),n.visibleSlidesIndexes.push(f)),xy(m,A,i.slideVisibleClass),xy(m,O,i.slideFullyVisibleClass),m.progress=s?-g:g,m.originalProgress=s?-S:S}}function JA(a){const n=this;if(typeof a>"u"){const v=n.rtlTranslate?-1:1;a=n&&n.translate&&n.translate*v||0}const i=n.params,l=n.maxTranslate()-n.minTranslate();let{progress:s,isBeginning:u,isEnd:c,progressLoop:p}=n;const f=u,m=c;if(l===0)s=0,u=!0,c=!0;else{s=(a-n.minTranslate())/l;const v=Math.abs(a-n.minTranslate())<1,g=Math.abs(a-n.maxTranslate())<1;u=v||s<=0,c=g||s>=1,v&&(s=0),g&&(s=1)}if(i.loop){const v=n.getSlideIndexByData(0),g=n.getSlideIndexByData(n.slides.length-1),S=n.slidesGrid[v],x=n.slidesGrid[g],E=n.slidesGrid[n.slidesGrid.length-1],O=Math.abs(a);O>=S?p=(O-S)/E:p=(O+E-x)/E,p>1&&(p-=1)}Object.assign(n,{progress:s,progressLoop:p,isBeginning:u,isEnd:c}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&n.updateSlidesProgress(a),u&&!f&&n.emit("reachBeginning toEdge"),c&&!m&&n.emit("reachEnd toEdge"),(f&&!u||m&&!c)&&n.emit("fromEdge"),n.emit("progress",s)}const ad=(a,n,i)=>{n&&!a.classList.contains(i)?a.classList.add(i):!n&&a.classList.contains(i)&&a.classList.remove(i)};function WA(){const a=this,{slides:n,params:i,slidesEl:l,activeIndex:s}=a,u=a.virtual&&i.virtual.enabled,c=a.grid&&i.grid&&i.grid.rows>1,p=g=>Ln(l,`.${i.slideClass}${g}, swiper-slide${g}`)[0];let f,m,v;if(u)if(i.loop){let g=s-a.virtual.slidesBefore;g<0&&(g=a.virtual.slides.length+g),g>=a.virtual.slides.length&&(g-=a.virtual.slides.length),f=p(`[data-swiper-slide-index="${g}"]`)}else f=p(`[data-swiper-slide-index="${s}"]`);else c?(f=n.find(g=>g.column===s),v=n.find(g=>g.column===s+1),m=n.find(g=>g.column===s-1)):f=n[s];f&&(c||(v=$A(f,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!v&&(v=n[0]),m=BA(f,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!m===0&&(m=n[n.length-1]))),n.forEach(g=>{ad(g,g===f,i.slideActiveClass),ad(g,g===v,i.slideNextClass),ad(g,g===m,i.slidePrevClass)}),a.emitSlidesClasses()}const Do=(a,n)=>{if(!a||a.destroyed||!a.params)return;const i=()=>a.isElement?"swiper-slide":`.${a.params.slideClass}`,l=n.closest(i());if(l){let s=l.querySelector(`.${a.params.lazyPreloaderClass}`);!s&&a.isElement&&(l.shadowRoot?s=l.shadowRoot.querySelector(`.${a.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(s=l.shadowRoot.querySelector(`.${a.params.lazyPreloaderClass}`),s&&!s.lazyPreloaderManaged&&s.remove())})),s&&!s.lazyPreloaderManaged&&s.remove()}},id=(a,n)=>{if(!a.slides[n])return;const i=a.slides[n].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Cd=a=>{if(!a||a.destroyed||!a.params)return;let n=a.params.lazyPreloadPrevNext;const i=a.slides.length;if(!i||!n||n<0)return;n=Math.min(n,i);const l=a.params.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(a.params.slidesPerView),s=a.activeIndex;if(a.params.grid&&a.params.grid.rows>1){const c=s,p=[c-n];p.push(...Array.from({length:n}).map((f,m)=>c+l+m)),a.slides.forEach((f,m)=>{p.includes(f.column)&&id(a,m)});return}const u=s+l-1;if(a.params.rewind||a.params.loop)for(let c=s-n;c<=u+n;c+=1){const p=(c%i+i)%i;(p<s||p>u)&&id(a,p)}else for(let c=Math.max(s-n,0);c<=Math.min(u+n,i-1);c+=1)c!==s&&(c>u||c<s)&&id(a,c)};function ej(a){const{slidesGrid:n,params:i}=a,l=a.rtlTranslate?a.translate:-a.translate;let s;for(let u=0;u<n.length;u+=1)typeof n[u+1]<"u"?l>=n[u]&&l<n[u+1]-(n[u+1]-n[u])/2?s=u:l>=n[u]&&l<n[u+1]&&(s=u+1):l>=n[u]&&(s=u);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function tj(a){const n=this,i=n.rtlTranslate?n.translate:-n.translate,{snapGrid:l,params:s,activeIndex:u,realIndex:c,snapIndex:p}=n;let f=a,m;const v=x=>{let E=x-n.virtual.slidesBefore;return E<0&&(E=n.virtual.slides.length+E),E>=n.virtual.slides.length&&(E-=n.virtual.slides.length),E};if(typeof f>"u"&&(f=ej(n)),l.indexOf(i)>=0)m=l.indexOf(i);else{const x=Math.min(s.slidesPerGroupSkip,f);m=x+Math.floor((f-x)/s.slidesPerGroup)}if(m>=l.length&&(m=l.length-1),f===u&&!n.params.loop){m!==p&&(n.snapIndex=m,n.emit("snapIndexChange"));return}if(f===u&&n.params.loop&&n.virtual&&n.params.virtual.enabled){n.realIndex=v(f);return}const g=n.grid&&s.grid&&s.grid.rows>1;let S;if(n.virtual&&s.virtual.enabled)s.loop?S=v(f):S=f;else if(g){const x=n.slides.find(O=>O.column===f);let E=parseInt(x.getAttribute("data-swiper-slide-index"),10);Number.isNaN(E)&&(E=Math.max(n.slides.indexOf(x),0)),S=Math.floor(E/s.grid.rows)}else if(n.slides[f]){const x=n.slides[f].getAttribute("data-swiper-slide-index");x?S=parseInt(x,10):S=f}else S=f;Object.assign(n,{previousSnapIndex:p,snapIndex:m,previousRealIndex:c,realIndex:S,previousIndex:u,activeIndex:f}),n.initialized&&Cd(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&(c!==S&&n.emit("realIndexChange"),n.emit("slideChange"))}function nj(a,n){const i=this,l=i.params;let s=a.closest(`.${l.slideClass}, swiper-slide`);!s&&i.isElement&&n&&n.length>1&&n.includes(a)&&[...n.slice(n.indexOf(a)+1,n.length)].forEach(p=>{!s&&p.matches&&p.matches(`.${l.slideClass}, swiper-slide`)&&(s=p)});let u=!1,c;if(s){for(let p=0;p<i.slides.length;p+=1)if(i.slides[p]===s){u=!0,c=p;break}}if(s&&u)i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=c;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}l.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var aj={updateSize:IA,updateSlides:KA,updateAutoHeight:FA,updateSlidesOffset:QA,updateSlidesProgress:ZA,updateProgress:JA,updateSlidesClasses:WA,updateActiveIndex:tj,updateClickedSlide:nj};function ij(a=this.isHorizontal()?"x":"y"){const n=this,{params:i,rtlTranslate:l,translate:s,wrapperEl:u}=n;if(i.virtualTranslate)return l?-s:s;if(i.cssMode)return s;let c=_A(u,a);return c+=n.cssOverflowAdjustment(),l&&(c=-c),c||0}function lj(a,n){const i=this,{rtlTranslate:l,params:s,wrapperEl:u,progress:c}=i;let p=0,f=0;const m=0;i.isHorizontal()?p=l?-a:a:f=a,s.roundLengths&&(p=Math.floor(p),f=Math.floor(f)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?p:f,s.cssMode?u[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-p:-f:s.virtualTranslate||(i.isHorizontal()?p-=i.cssOverflowAdjustment():f-=i.cssOverflowAdjustment(),u.style.transform=`translate3d(${p}px, ${f}px, ${m}px)`);let v;const g=i.maxTranslate()-i.minTranslate();g===0?v=0:v=(a-i.minTranslate())/g,v!==c&&i.updateProgress(a),i.emit("setTranslate",i.translate,n)}function rj(){return-this.snapGrid[0]}function sj(){return-this.snapGrid[this.snapGrid.length-1]}function oj(a=0,n=this.params.speed,i=!0,l=!0,s){const u=this,{params:c,wrapperEl:p}=u;if(u.animating&&c.preventInteractionOnTransition)return!1;const f=u.minTranslate(),m=u.maxTranslate();let v;if(l&&a>f?v=f:l&&a<m?v=m:v=a,u.updateProgress(v),c.cssMode){const g=u.isHorizontal();if(n===0)p[g?"scrollLeft":"scrollTop"]=-v;else{if(!u.support.smoothScroll)return n0({swiper:u,targetPosition:-v,side:g?"left":"top"}),!0;p.scrollTo({[g?"left":"top"]:-v,behavior:"smooth"})}return!0}return n===0?(u.setTransition(0),u.setTranslate(v),i&&(u.emit("beforeTransitionStart",n,s),u.emit("transitionEnd"))):(u.setTransition(n),u.setTranslate(v),i&&(u.emit("beforeTransitionStart",n,s),u.emit("transitionStart")),u.animating||(u.animating=!0,u.onTranslateToWrapperTransitionEnd||(u.onTranslateToWrapperTransitionEnd=function(S){!u||u.destroyed||S.target===this&&(u.wrapperEl.removeEventListener("transitionend",u.onTranslateToWrapperTransitionEnd),u.onTranslateToWrapperTransitionEnd=null,delete u.onTranslateToWrapperTransitionEnd,u.animating=!1,i&&u.emit("transitionEnd"))}),u.wrapperEl.addEventListener("transitionend",u.onTranslateToWrapperTransitionEnd))),!0}var uj={getTranslate:ij,setTranslate:lj,minTranslate:rj,maxTranslate:sj,translateTo:oj};function cj(a,n){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${a}ms`,i.wrapperEl.style.transitionDelay=a===0?"0ms":""),i.emit("setTransition",a,n)}function s0({swiper:a,runCallbacks:n,direction:i,step:l}){const{activeIndex:s,previousIndex:u}=a;let c=i;c||(s>u?c="next":s<u?c="prev":c="reset"),a.emit(`transition${l}`),n&&c==="reset"?a.emit(`slideResetTransition${l}`):n&&s!==u&&(a.emit(`slideChangeTransition${l}`),c==="next"?a.emit(`slideNextTransition${l}`):a.emit(`slidePrevTransition${l}`))}function fj(a=!0,n){const i=this,{params:l}=i;l.cssMode||(l.autoHeight&&i.updateAutoHeight(),s0({swiper:i,runCallbacks:a,direction:n,step:"Start"}))}function dj(a=!0,n){const i=this,{params:l}=i;i.animating=!1,!l.cssMode&&(i.setTransition(0),s0({swiper:i,runCallbacks:a,direction:n,step:"End"}))}var pj={setTransition:cj,transitionStart:fj,transitionEnd:dj};function hj(a=0,n,i=!0,l,s){typeof a=="string"&&(a=parseInt(a,10));const u=this;let c=a;c<0&&(c=0);const{params:p,snapGrid:f,slidesGrid:m,previousIndex:v,activeIndex:g,rtlTranslate:S,wrapperEl:x,enabled:E}=u;if(!E&&!l&&!s||u.destroyed||u.animating&&p.preventInteractionOnTransition)return!1;typeof n>"u"&&(n=u.params.speed);const O=Math.min(u.params.slidesPerGroupSkip,c);let A=O+Math.floor((c-O)/u.params.slidesPerGroup);A>=f.length&&(A=f.length-1);const C=-f[A];if(p.normalizeSlideIndex)for(let _=0;_<m.length;_+=1){const M=-Math.floor(C*100),H=Math.floor(m[_]*100),$=Math.floor(m[_+1]*100);typeof m[_+1]<"u"?M>=H&&M<$-($-H)/2?c=_:M>=H&&M<$&&(c=_+1):M>=H&&(c=_)}if(u.initialized&&c!==g&&(!u.allowSlideNext&&(S?C>u.translate&&C>u.minTranslate():C<u.translate&&C<u.minTranslate())||!u.allowSlidePrev&&C>u.translate&&C>u.maxTranslate()&&(g||0)!==c))return!1;c!==(v||0)&&i&&u.emit("beforeSlideChangeStart"),u.updateProgress(C);let T;c>g?T="next":c<g?T="prev":T="reset";const R=u.virtual&&u.params.virtual.enabled;if(!(R&&s)&&(S&&-C===u.translate||!S&&C===u.translate))return u.updateActiveIndex(c),p.autoHeight&&u.updateAutoHeight(),u.updateSlidesClasses(),p.effect!=="slide"&&u.setTranslate(C),T!=="reset"&&(u.transitionStart(i,T),u.transitionEnd(i,T)),!1;if(p.cssMode){const _=u.isHorizontal(),M=S?C:-C;if(n===0)R&&(u.wrapperEl.style.scrollSnapType="none",u._immediateVirtual=!0),R&&!u._cssModeVirtualInitialSet&&u.params.initialSlide>0?(u._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{x[_?"scrollLeft":"scrollTop"]=M})):x[_?"scrollLeft":"scrollTop"]=M,R&&requestAnimationFrame(()=>{u.wrapperEl.style.scrollSnapType="",u._immediateVirtual=!1});else{if(!u.support.smoothScroll)return n0({swiper:u,targetPosition:M,side:_?"left":"top"}),!0;x.scrollTo({[_?"left":"top"]:M,behavior:"smooth"})}return!0}const z=r0().isSafari;return R&&!s&&z&&u.isElement&&u.virtual.update(!1,!1,c),u.setTransition(n),u.setTranslate(C),u.updateActiveIndex(c),u.updateSlidesClasses(),u.emit("beforeTransitionStart",n,l),u.transitionStart(i,T),n===0?u.transitionEnd(i,T):u.animating||(u.animating=!0,u.onSlideToWrapperTransitionEnd||(u.onSlideToWrapperTransitionEnd=function(M){!u||u.destroyed||M.target===this&&(u.wrapperEl.removeEventListener("transitionend",u.onSlideToWrapperTransitionEnd),u.onSlideToWrapperTransitionEnd=null,delete u.onSlideToWrapperTransitionEnd,u.transitionEnd(i,T))}),u.wrapperEl.addEventListener("transitionend",u.onSlideToWrapperTransitionEnd)),!0}function mj(a=0,n,i=!0,l){typeof a=="string"&&(a=parseInt(a,10));const s=this;if(s.destroyed)return;typeof n>"u"&&(n=s.params.speed);const u=s.grid&&s.params.grid&&s.params.grid.rows>1;let c=a;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)c=c+s.virtual.slidesBefore;else{let p;if(u){const O=c*s.params.grid.rows;p=s.slides.find(A=>A.getAttribute("data-swiper-slide-index")*1===O).column}else p=s.getSlideIndexByData(c);const f=u?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:m,slidesOffsetBefore:v,slidesOffsetAfter:g}=s.params,S=m||!!v||!!g;let x=s.params.slidesPerView;x==="auto"?x=s.slidesPerViewDynamic():(x=Math.ceil(parseFloat(s.params.slidesPerView,10)),S&&x%2===0&&(x=x+1));let E=f-p<x;if(S&&(E=E||p<Math.ceil(x/2)),l&&S&&s.params.slidesPerView!=="auto"&&!u&&(E=!1),E){const O=S?p<s.activeIndex?"prev":"next":p-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:O,slideTo:!0,activeSlideIndex:O==="next"?p+1:p-f+1,slideRealIndex:O==="next"?s.realIndex:void 0})}if(u){const O=c*s.params.grid.rows;c=s.slides.find(A=>A.getAttribute("data-swiper-slide-index")*1===O).column}else c=s.getSlideIndexByData(c)}return requestAnimationFrame(()=>{s.slideTo(c,n,i,l)}),s}function gj(a,n=!0,i){const l=this,{enabled:s,params:u,animating:c}=l;if(!s||l.destroyed)return l;typeof a>"u"&&(a=l.params.speed);let p=u.slidesPerGroup;u.slidesPerView==="auto"&&u.slidesPerGroup===1&&u.slidesPerGroupAuto&&(p=Math.max(l.slidesPerViewDynamic("current",!0),1));const f=l.activeIndex<u.slidesPerGroupSkip?1:p,m=l.virtual&&u.virtual.enabled;if(u.loop){if(c&&!m&&u.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&u.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+f,a,n,i)}),!0}return u.rewind&&l.isEnd?l.slideTo(0,a,n,i):l.slideTo(l.activeIndex+f,a,n,i)}function vj(a,n=!0,i){const l=this,{params:s,snapGrid:u,slidesGrid:c,rtlTranslate:p,enabled:f,animating:m}=l;if(!f||l.destroyed)return l;typeof a>"u"&&(a=l.params.speed);const v=l.virtual&&s.virtual.enabled;if(s.loop){if(m&&!v&&s.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const g=p?l.translate:-l.translate;function S(T){return T<0?-Math.floor(Math.abs(T)):Math.floor(T)}const x=S(g),E=u.map(T=>S(T)),O=s.freeMode&&s.freeMode.enabled;let A=u[E.indexOf(x)-1];if(typeof A>"u"&&(s.cssMode||O)){let T;u.forEach((R,B)=>{x>=R&&(T=B)}),typeof T<"u"&&(A=O?u[T]:u[T>0?T-1:T])}let C=0;if(typeof A<"u"&&(C=c.indexOf(A),C<0&&(C=l.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(C=C-l.slidesPerViewDynamic("previous",!0)+1,C=Math.max(C,0))),s.rewind&&l.isBeginning){const T=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(T,a,n,i)}else if(s.loop&&l.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{l.slideTo(C,a,n,i)}),!0;return l.slideTo(C,a,n,i)}function yj(a,n=!0,i){const l=this;if(!l.destroyed)return typeof a>"u"&&(a=l.params.speed),l.slideTo(l.activeIndex,a,n,i)}function bj(a,n=!0,i,l=.5){const s=this;if(s.destroyed)return;typeof a>"u"&&(a=s.params.speed);let u=s.activeIndex;const c=Math.min(s.params.slidesPerGroupSkip,u),p=c+Math.floor((u-c)/s.params.slidesPerGroup),f=s.rtlTranslate?s.translate:-s.translate;if(f>=s.snapGrid[p]){const m=s.snapGrid[p],v=s.snapGrid[p+1];f-m>(v-m)*l&&(u+=s.params.slidesPerGroup)}else{const m=s.snapGrid[p-1],v=s.snapGrid[p];f-m<=(v-m)*l&&(u-=s.params.slidesPerGroup)}return u=Math.max(u,0),u=Math.min(u,s.slidesGrid.length-1),s.slideTo(u,a,n,i)}function Sj(){const a=this;if(a.destroyed)return;const{params:n,slidesEl:i}=a,l=n.slidesPerView==="auto"?a.slidesPerViewDynamic():n.slidesPerView;let s=a.getSlideIndexWhenGrid(a.clickedIndex),u;const c=a.isElement?"swiper-slide":`.${n.slideClass}`,p=a.grid&&a.params.grid&&a.params.grid.rows>1;if(n.loop){if(a.animating)return;u=parseInt(a.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?a.slideToLoop(u):s>(p?(a.slides.length-l)/2-(a.params.grid.rows-1):a.slides.length-l)?(a.loopFix(),s=a.getSlideIndex(Ln(i,`${c}[data-swiper-slide-index="${u}"]`)[0]),t0(()=>{a.slideTo(s)})):a.slideTo(s)}else a.slideTo(s)}var xj={slideTo:hj,slideToLoop:mj,slideNext:gj,slidePrev:vj,slideReset:yj,slideToClosest:bj,slideToClickedSlide:Sj};function wj(a,n){const i=this,{params:l,slidesEl:s}=i;if(!l.loop||i.virtual&&i.params.virtual.enabled)return;const u=()=>{Ln(s,`.${l.slideClass}, swiper-slide`).forEach((E,O)=>{E.setAttribute("data-swiper-slide-index",O)})},c=()=>{const x=Ln(s,`.${l.slideBlankClass}`);x.forEach(E=>{E.remove()}),x.length>0&&(i.recalcSlides(),i.updateSlides())},p=i.grid&&l.grid&&l.grid.rows>1;l.loopAddBlankSlides&&(l.slidesPerGroup>1||p)&&c();const f=l.slidesPerGroup*(p?l.grid.rows:1),m=i.slides.length%f!==0,v=p&&i.slides.length%l.grid.rows!==0,g=x=>{for(let E=0;E<x;E+=1){const O=i.isElement?Xo("swiper-slide",[l.slideBlankClass]):Xo("div",[l.slideClass,l.slideBlankClass]);i.slidesEl.append(O)}};if(m){if(l.loopAddBlankSlides){const x=f-i.slides.length%f;g(x),i.recalcSlides(),i.updateSlides()}else Po("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");u()}else if(v){if(l.loopAddBlankSlides){const x=l.grid.rows-i.slides.length%l.grid.rows;g(x),i.recalcSlides(),i.updateSlides()}else Po("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");u()}else u();const S=l.centeredSlides||!!l.slidesOffsetBefore||!!l.slidesOffsetAfter;i.loopFix({slideRealIndex:a,direction:S?void 0:"next",initial:n})}function Ej({slideRealIndex:a,slideTo:n=!0,direction:i,setTranslate:l,activeSlideIndex:s,initial:u,byController:c,byMousewheel:p}={}){const f=this;if(!f.params.loop)return;f.emit("beforeLoopFix");const{slides:m,allowSlidePrev:v,allowSlideNext:g,slidesEl:S,params:x}=f,{centeredSlides:E,slidesOffsetBefore:O,slidesOffsetAfter:A,initialSlide:C}=x,T=E||!!O||!!A;if(f.allowSlidePrev=!0,f.allowSlideNext=!0,f.virtual&&x.virtual.enabled){n&&(!T&&f.snapIndex===0?f.slideTo(f.virtual.slides.length,0,!1,!0):T&&f.snapIndex<x.slidesPerView?f.slideTo(f.virtual.slides.length+f.snapIndex,0,!1,!0):f.snapIndex===f.snapGrid.length-1&&f.slideTo(f.virtual.slidesBefore,0,!1,!0)),f.allowSlidePrev=v,f.allowSlideNext=g,f.emit("loopFix");return}let R=x.slidesPerView;R==="auto"?R=f.slidesPerViewDynamic():(R=Math.ceil(parseFloat(x.slidesPerView,10)),T&&R%2===0&&(R=R+1));const B=x.slidesPerGroupAuto?R:x.slidesPerGroup;let Y=T?Math.max(B,Math.ceil(R/2)):B;Y%B!==0&&(Y+=B-Y%B),Y+=x.loopAdditionalSlides,f.loopedSlides=Y;const z=f.grid&&x.grid&&x.grid.rows>1;m.length<R+Y||f.params.effect==="cards"&&m.length<R+Y*2?Po("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):z&&x.grid.fill==="row"&&Po("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],M=[],H=z?Math.ceil(m.length/x.grid.rows):m.length,$=u&&H-C<R&&!T;let U=$?C:f.activeIndex;typeof s>"u"?s=f.getSlideIndex(m.find(J=>J.classList.contains(x.slideActiveClass))):U=s;const I=i==="next"||!i,ee=i==="prev"||!i;let ne=0,le=0;const te=(z?m[s].column:s)+(T&&typeof l>"u"?-R/2+.5:0);if(te<Y){ne=Math.max(Y-te,B);for(let J=0;J<Y-te;J+=1){const se=J-Math.floor(J/H)*H;if(z){const de=H-se-1;for(let D=m.length-1;D>=0;D-=1)m[D].column===de&&_.push(D)}else _.push(H-se-1)}}else if(te+R>H-Y){le=Math.max(te-(H-Y*2),B),$&&(le=Math.max(le,R-H+C+1));for(let J=0;J<le;J+=1){const se=J-Math.floor(J/H)*H;z?m.forEach((de,D)=>{de.column===se&&M.push(D)}):M.push(se)}}if(f.__preventObserver__=!0,requestAnimationFrame(()=>{f.__preventObserver__=!1}),f.params.effect==="cards"&&m.length<R+Y*2&&(M.includes(s)&&M.splice(M.indexOf(s),1),_.includes(s)&&_.splice(_.indexOf(s),1)),ee&&_.forEach(J=>{m[J].swiperLoopMoveDOM=!0,S.prepend(m[J]),m[J].swiperLoopMoveDOM=!1}),I&&M.forEach(J=>{m[J].swiperLoopMoveDOM=!0,S.append(m[J]),m[J].swiperLoopMoveDOM=!1}),f.recalcSlides(),x.slidesPerView==="auto"?f.updateSlides():z&&(_.length>0&&ee||M.length>0&&I)&&f.slides.forEach((J,se)=>{f.grid.updateSlide(se,J,f.slides)}),x.watchSlidesProgress&&f.updateSlidesOffset(),n){if(_.length>0&&ee){if(typeof a>"u"){const J=f.slidesGrid[U],de=f.slidesGrid[U+ne]-J;p?f.setTranslate(f.translate-de):(f.slideTo(U+Math.ceil(ne),0,!1,!0),l&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-de,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-de))}else if(l){const J=z?_.length/x.grid.rows:_.length;f.slideTo(f.activeIndex+J,0,!1,!0),f.touchEventsData.currentTranslate=f.translate}}else if(M.length>0&&I)if(typeof a>"u"){const J=f.slidesGrid[U],de=f.slidesGrid[U-le]-J;p?f.setTranslate(f.translate-de):(f.slideTo(U-le,0,!1,!0),l&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-de,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-de))}else{const J=z?M.length/x.grid.rows:M.length;f.slideTo(f.activeIndex-J,0,!1,!0)}}if(f.allowSlidePrev=v,f.allowSlideNext=g,f.controller&&f.controller.control&&!c){const J={slideRealIndex:a,direction:i,setTranslate:l,activeSlideIndex:s,byController:!0};Array.isArray(f.controller.control)?f.controller.control.forEach(se=>{!se.destroyed&&se.params.loop&&se.loopFix({...J,slideTo:se.params.slidesPerView===x.slidesPerView?n:!1})}):f.controller.control instanceof f.constructor&&f.controller.control.params.loop&&f.controller.control.loopFix({...J,slideTo:f.controller.control.params.slidesPerView===x.slidesPerView?n:!1})}f.emit("loopFix")}function Tj(){const a=this,{params:n,slidesEl:i}=a;if(!n.loop||!i||a.virtual&&a.params.virtual.enabled)return;a.recalcSlides();const l=[];a.slides.forEach(s=>{const u=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;l[u]=s}),a.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),l.forEach(s=>{i.append(s)}),a.recalcSlides(),a.slideTo(a.realIndex,0)}var Cj={loopCreate:wj,loopFix:Ej,loopDestroy:Tj};function Nj(a){const n=this;if(!n.params.simulateTouch||n.params.watchOverflow&&n.isLocked||n.params.cssMode)return;const i=n.params.touchEventsTarget==="container"?n.el:n.wrapperEl;n.isElement&&(n.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=a?"grabbing":"grab",n.isElement&&requestAnimationFrame(()=>{n.__preventObserver__=!1})}function Oj(){const a=this;a.params.watchOverflow&&a.isLocked||a.params.cssMode||(a.isElement&&(a.__preventObserver__=!0),a[a.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",a.isElement&&requestAnimationFrame(()=>{a.__preventObserver__=!1}))}var Rj={setGrabCursor:Nj,unsetGrabCursor:Oj};function Aj(a,n=this){function i(l){if(!l||l===Ei()||l===Dt())return null;l.assignedSlot&&(l=l.assignedSlot);const s=l.closest(a);return!s&&!l.getRootNode?null:s||i(l.getRootNode().host)}return i(n)}function wy(a,n,i){const l=Dt(),{params:s}=a,u=s.edgeSwipeDetection,c=s.edgeSwipeThreshold;return u&&(i<=c||i>=l.innerWidth-c)?u==="prevent"?(n.preventDefault(),!0):!1:!0}function jj(a){const n=this,i=Ei();let l=a;l.originalEvent&&(l=l.originalEvent);const s=n.touchEventsData;if(l.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==l.pointerId)return;s.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(s.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){wy(n,l,l.targetTouches[0].pageX);return}const{params:u,touches:c,enabled:p}=n;if(!p||!u.simulateTouch&&l.pointerType==="mouse"||n.animating&&u.preventInteractionOnTransition)return;!n.animating&&u.cssMode&&u.loop&&n.loopFix();let f=l.target;if(u.touchEventsTarget==="wrapper"&&!zA(f,n.wrapperEl)||"which"in l&&l.which===3||"button"in l&&l.button>0||s.isTouched&&s.isMoved)return;const m=!!u.noSwipingClass&&u.noSwipingClass!=="",v=l.composedPath?l.composedPath():l.path;m&&l.target&&l.target.shadowRoot&&v&&(f=v[0]);const g=u.noSwipingSelector?u.noSwipingSelector:`.${u.noSwipingClass}`,S=!!(l.target&&l.target.shadowRoot);if(u.noSwiping&&(S?Aj(g,f):f.closest(g))){n.allowClick=!0;return}if(u.swipeHandler&&!f.closest(u.swipeHandler))return;c.currentX=l.pageX,c.currentY=l.pageY;const x=c.currentX,E=c.currentY;if(!wy(n,l,x))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=x,c.startY=E,s.touchStartTime=Yo(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,u.threshold>0&&(s.allowThresholdMove=!1);let O=!0;f.matches(s.focusableElements)&&(O=!1,f.nodeName==="SELECT"&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==f&&(l.pointerType==="mouse"||l.pointerType!=="mouse"&&!f.matches(s.focusableElements))&&i.activeElement.blur();const A=O&&n.allowTouchMove&&u.touchStartPreventDefault;(u.touchStartForcePreventDefault||A)&&!f.isContentEditable&&l.preventDefault(),u.freeMode&&u.freeMode.enabled&&n.freeMode&&n.animating&&!u.cssMode&&n.freeMode.onTouchStart(),n.emit("touchStart",l)}function Dj(a){const n=Ei(),i=this,l=i.touchEventsData,{params:s,touches:u,rtlTranslate:c,enabled:p}=i;if(!p||!s.simulateTouch&&a.pointerType==="mouse")return;let f=a;if(f.originalEvent&&(f=f.originalEvent),f.type==="pointermove"&&(l.touchId!==null||f.pointerId!==l.pointerId))return;let m;if(f.type==="touchmove"){if(m=[...f.changedTouches].find(Y=>Y.identifier===l.touchId),!m||m.identifier!==l.touchId)return}else m=f;if(!l.isTouched){l.startMoving&&l.isScrolling&&i.emit("touchMoveOpposite",f);return}const v=m.pageX,g=m.pageY;if(f.preventedByNestedSwiper){u.startX=v,u.startY=g;return}if(!i.allowTouchMove){f.target.matches(l.focusableElements)||(i.allowClick=!1),l.isTouched&&(Object.assign(u,{startX:v,startY:g,currentX:v,currentY:g}),l.touchStartTime=Yo());return}if(s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(g<u.startY&&i.translate<=i.maxTranslate()||g>u.startY&&i.translate>=i.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else{if(c&&(v>u.startX&&-i.translate<=i.maxTranslate()||v<u.startX&&-i.translate>=i.minTranslate()))return;if(!c&&(v<u.startX&&i.translate<=i.maxTranslate()||v>u.startX&&i.translate>=i.minTranslate()))return}if(n.activeElement&&n.activeElement.matches(l.focusableElements)&&n.activeElement!==f.target&&f.pointerType!=="mouse"&&n.activeElement.blur(),n.activeElement&&f.target===n.activeElement&&f.target.matches(l.focusableElements)){l.isMoved=!0,i.allowClick=!1;return}l.allowTouchCallbacks&&i.emit("touchMove",f),u.previousX=u.currentX,u.previousY=u.currentY,u.currentX=v,u.currentY=g;const S=u.currentX-u.startX,x=u.currentY-u.startY;if(i.params.threshold&&Math.sqrt(S**2+x**2)<i.params.threshold)return;if(typeof l.isScrolling>"u"){let Y;i.isHorizontal()&&u.currentY===u.startY||i.isVertical()&&u.currentX===u.startX?l.isScrolling=!1:S*S+x*x>=25&&(Y=Math.atan2(Math.abs(x),Math.abs(S))*180/Math.PI,l.isScrolling=i.isHorizontal()?Y>s.touchAngle:90-Y>s.touchAngle)}if(l.isScrolling&&i.emit("touchMoveOpposite",f),typeof l.startMoving>"u"&&(u.currentX!==u.startX||u.currentY!==u.startY)&&(l.startMoving=!0),l.isScrolling||f.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;i.allowClick=!1,!s.cssMode&&f.cancelable&&f.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&f.stopPropagation();let E=i.isHorizontal()?S:x,O=i.isHorizontal()?u.currentX-u.previousX:u.currentY-u.previousY;s.oneWayMovement&&(E=Math.abs(E)*(c?1:-1),O=Math.abs(O)*(c?1:-1)),u.diff=E,E*=s.touchRatio,c&&(E=-E,O=-O);const A=i.touchesDirection;i.swipeDirection=E>0?"prev":"next",i.touchesDirection=O>0?"prev":"next";const C=i.params.loop&&!s.cssMode,T=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!l.isMoved){if(C&&T&&i.loopFix({direction:i.swipeDirection}),l.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const Y=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(Y)}l.allowMomentumBounce=!1,s.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",f)}if(new Date().getTime(),s._loopSwapReset!==!1&&l.isMoved&&l.allowThresholdMove&&A!==i.touchesDirection&&C&&T&&Math.abs(E)>=1){Object.assign(u,{startX:v,startY:g,currentX:v,currentY:g,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}i.emit("sliderMove",f),l.isMoved=!0,l.currentTranslate=E+l.startTranslate;let R=!0,B=s.resistanceRatio;if(s.touchReleaseOnEdges&&(B=0),E>0?(C&&T&&l.allowThresholdMove&&l.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(s.slidesPerView!=="auto"&&i.slides.length-s.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>i.minTranslate()&&(R=!1,s.resistance&&(l.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+l.startTranslate+E)**B))):E<0&&(C&&T&&l.allowThresholdMove&&l.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(s.slidesPerView!=="auto"&&i.slides.length-s.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(s.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),l.currentTranslate<i.maxTranslate()&&(R=!1,s.resistance&&(l.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-l.startTranslate-E)**B))),R&&(f.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(l.currentTranslate=l.startTranslate),s.threshold>0)if(Math.abs(E)>s.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,u.startX=u.currentX,u.startY=u.currentY,l.currentTranslate=l.startTranslate,u.diff=i.isHorizontal()?u.currentX-u.startX:u.currentY-u.startY;return}}else{l.currentTranslate=l.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(l.currentTranslate),i.setTranslate(l.currentTranslate))}function Mj(a){const n=this,i=n.touchEventsData;let l=a;l.originalEvent&&(l=l.originalEvent);let s;if(l.type==="touchend"||l.type==="touchcancel"){if(s=[...l.changedTouches].find(Y=>Y.identifier===i.touchId),!s||s.identifier!==i.touchId)return}else{if(i.touchId!==null||l.pointerId!==i.pointerId)return;s=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(n.browser.isSafari||n.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:c,touches:p,rtlTranslate:f,slidesGrid:m,enabled:v}=n;if(!v||!c.simulateTouch&&l.pointerType==="mouse")return;if(i.allowTouchCallbacks&&n.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&c.grabCursor&&n.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}c.grabCursor&&i.isMoved&&i.isTouched&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!1);const g=Yo(),S=g-i.touchStartTime;if(n.allowClick){const Y=l.path||l.composedPath&&l.composedPath();n.updateClickedSlide(Y&&Y[0]||l.target,Y),n.emit("tap click",l),S<300&&g-i.lastClickTime<300&&n.emit("doubleTap doubleClick",l)}if(i.lastClickTime=Yo(),t0(()=>{n.destroyed||(n.allowClick=!0)}),!i.isTouched||!i.isMoved||!n.swipeDirection||p.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let x;if(c.followFinger?x=f?n.translate:-n.translate:x=-i.currentTranslate,c.cssMode)return;if(c.freeMode&&c.freeMode.enabled){n.freeMode.onTouchEnd({currentPos:x});return}const E=x>=-n.maxTranslate()&&!n.params.loop;let O=0,A=n.slidesSizesGrid[0];for(let Y=0;Y<m.length;Y+=Y<c.slidesPerGroupSkip?1:c.slidesPerGroup){const z=Y<c.slidesPerGroupSkip-1?1:c.slidesPerGroup;typeof m[Y+z]<"u"?(E||x>=m[Y]&&x<m[Y+z])&&(O=Y,A=m[Y+z]-m[Y]):(E||x>=m[Y])&&(O=Y,A=m[m.length-1]-m[m.length-2])}let C=null,T=null;c.rewind&&(n.isBeginning?T=c.virtual&&c.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(C=0));const R=(x-m[O])/A,B=O<c.slidesPerGroupSkip-1?1:c.slidesPerGroup;if(S>c.longSwipesMs){if(!c.longSwipes){n.slideTo(n.activeIndex);return}n.swipeDirection==="next"&&(R>=c.longSwipesRatio?n.slideTo(c.rewind&&n.isEnd?C:O+B):n.slideTo(O)),n.swipeDirection==="prev"&&(R>1-c.longSwipesRatio?n.slideTo(O+B):T!==null&&R<0&&Math.abs(R)>c.longSwipesRatio?n.slideTo(T):n.slideTo(O))}else{if(!c.shortSwipes){n.slideTo(n.activeIndex);return}n.navigation&&(l.target===n.navigation.nextEl||l.target===n.navigation.prevEl)?l.target===n.navigation.nextEl?n.slideTo(O+B):n.slideTo(O):(n.swipeDirection==="next"&&n.slideTo(C!==null?C:O+B),n.swipeDirection==="prev"&&n.slideTo(T!==null?T:O))}}function Ey(){const a=this,{params:n,el:i}=a;if(i&&i.offsetWidth===0)return;n.breakpoints&&a.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:s,snapGrid:u}=a,c=a.virtual&&a.params.virtual.enabled;a.allowSlideNext=!0,a.allowSlidePrev=!0,a.updateSize(),a.updateSlides(),a.updateSlidesClasses();const p=c&&n.loop;(n.slidesPerView==="auto"||n.slidesPerView>1)&&a.isEnd&&!a.isBeginning&&!a.params.centeredSlides&&!p?a.slideTo(a.slides.length-1,0,!1,!0):a.params.loop&&!c?a.slideToLoop(a.realIndex,0,!1,!0):a.slideTo(a.activeIndex,0,!1,!0),a.autoplay&&a.autoplay.running&&a.autoplay.paused&&(clearTimeout(a.autoplay.resizeTimeout),a.autoplay.resizeTimeout=setTimeout(()=>{a.autoplay&&a.autoplay.running&&a.autoplay.paused&&a.autoplay.resume()},500)),a.allowSlidePrev=s,a.allowSlideNext=l,a.params.watchOverflow&&u!==a.snapGrid&&a.checkOverflow()}function _j(a){const n=this;n.enabled&&(n.allowClick||(n.params.preventClicks&&a.preventDefault(),n.params.preventClicksPropagation&&n.animating&&(a.stopPropagation(),a.stopImmediatePropagation())))}function kj(){const a=this,{wrapperEl:n,rtlTranslate:i,enabled:l}=a;if(!l)return;a.previousTranslate=a.translate,a.isHorizontal()?a.translate=-n.scrollLeft:a.translate=-n.scrollTop,a.translate===0&&(a.translate=0),a.updateActiveIndex(),a.updateSlidesClasses();let s;const u=a.maxTranslate()-a.minTranslate();u===0?s=0:s=(a.translate-a.minTranslate())/u,s!==a.progress&&a.updateProgress(i?-a.translate:a.translate),a.emit("setTranslate",a.translate,!1)}function Lj(a){const n=this;Do(n,a.target),!(n.params.cssMode||n.params.slidesPerView!=="auto"&&!n.params.autoHeight)&&n.update()}function zj(){const a=this;a.documentTouchHandlerProceeded||(a.documentTouchHandlerProceeded=!0,a.params.touchReleaseOnEdges&&(a.el.style.touchAction="auto"))}const o0=(a,n)=>{const i=Ei(),{params:l,el:s,wrapperEl:u,device:c}=a,p=!!l.nested,f=n==="on"?"addEventListener":"removeEventListener",m=n;!s||typeof s=="string"||(i[f]("touchstart",a.onDocumentTouchStart,{passive:!1,capture:p}),s[f]("touchstart",a.onTouchStart,{passive:!1}),s[f]("pointerdown",a.onTouchStart,{passive:!1}),i[f]("touchmove",a.onTouchMove,{passive:!1,capture:p}),i[f]("pointermove",a.onTouchMove,{passive:!1,capture:p}),i[f]("touchend",a.onTouchEnd,{passive:!0}),i[f]("pointerup",a.onTouchEnd,{passive:!0}),i[f]("pointercancel",a.onTouchEnd,{passive:!0}),i[f]("touchcancel",a.onTouchEnd,{passive:!0}),i[f]("pointerout",a.onTouchEnd,{passive:!0}),i[f]("pointerleave",a.onTouchEnd,{passive:!0}),i[f]("contextmenu",a.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&s[f]("click",a.onClick,!0),l.cssMode&&u[f]("scroll",a.onScroll),l.updateOnWindowResize?a[m](c.ios||c.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ey,!0):a[m]("observerUpdate",Ey,!0),s[f]("load",a.onLoad,{capture:!0}))};function Bj(){const a=this,{params:n}=a;a.onTouchStart=jj.bind(a),a.onTouchMove=Dj.bind(a),a.onTouchEnd=Mj.bind(a),a.onDocumentTouchStart=zj.bind(a),n.cssMode&&(a.onScroll=kj.bind(a)),a.onClick=_j.bind(a),a.onLoad=Lj.bind(a),o0(a,"on")}function $j(){o0(this,"off")}var Uj={attachEvents:Bj,detachEvents:$j};const Ty=(a,n)=>a.grid&&n.grid&&n.grid.rows>1;function Hj(){const a=this,{realIndex:n,initialized:i,params:l,el:s}=a,u=l.breakpoints;if(!u||u&&Object.keys(u).length===0)return;const c=Ei(),p=l.breakpointsBase==="window"||!l.breakpointsBase?l.breakpointsBase:"container",f=["window","container"].includes(l.breakpointsBase)||!l.breakpointsBase?a.el:c.querySelector(l.breakpointsBase),m=a.getBreakpoint(u,p,f);if(!m||a.currentBreakpoint===m)return;const g=(m in u?u[m]:void 0)||a.originalParams,S=Ty(a,l),x=Ty(a,g),E=a.params.grabCursor,O=g.grabCursor,A=l.enabled;S&&!x?(s.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),a.emitContainerClasses()):!S&&x&&(s.classList.add(`${l.containerModifierClass}grid`),(g.grid.fill&&g.grid.fill==="column"||!g.grid.fill&&l.grid.fill==="column")&&s.classList.add(`${l.containerModifierClass}grid-column`),a.emitContainerClasses()),E&&!O?a.unsetGrabCursor():!E&&O&&a.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(z=>{if(typeof g[z]>"u")return;const _=l[z]&&l[z].enabled,M=g[z]&&g[z].enabled;_&&!M&&a[z].disable(),!_&&M&&a[z].enable()});const C=g.direction&&g.direction!==l.direction,T=l.loop&&(g.slidesPerView!==l.slidesPerView||C),R=l.loop;C&&i&&a.changeDirection(),tn(a.params,g);const B=a.params.enabled,Y=a.params.loop;Object.assign(a,{allowTouchMove:a.params.allowTouchMove,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev}),A&&!B?a.disable():!A&&B&&a.enable(),a.currentBreakpoint=m,a.emit("_beforeBreakpoint",g),i&&(T?(a.loopDestroy(),a.loopCreate(n),a.updateSlides()):!R&&Y?(a.loopCreate(n),a.updateSlides()):R&&!Y&&a.loopDestroy()),a.emit("breakpoint",g)}function Vj(a,n="window",i){if(!a||n==="container"&&!i)return;let l=!1;const s=Dt(),u=n==="window"?s.innerHeight:i.clientHeight,c=Object.keys(a).map(p=>{if(typeof p=="string"&&p.indexOf("@")===0){const f=parseFloat(p.substr(1));return{value:u*f,point:p}}return{value:p,point:p}});c.sort((p,f)=>parseInt(p.value,10)-parseInt(f.value,10));for(let p=0;p<c.length;p+=1){const{point:f,value:m}=c[p];n==="window"?s.matchMedia(`(min-width: ${m}px)`).matches&&(l=f):m<=i.clientWidth&&(l=f)}return l||"max"}var Gj={setBreakpoint:Hj,getBreakpoint:Vj};function qj(a,n){const i=[];return a.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(s=>{l[s]&&i.push(n+s)}):typeof l=="string"&&i.push(n+l)}),i}function Yj(){const a=this,{classNames:n,params:i,rtl:l,el:s,device:u}=a,c=qj(["initialized",i.direction,{"free-mode":a.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:l},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:u.android},{ios:u.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);n.push(...c),s.classList.add(...n),a.emitContainerClasses()}function Pj(){const a=this,{el:n,classNames:i}=a;!n||typeof n=="string"||(n.classList.remove(...i),a.emitContainerClasses())}var Xj={addClasses:Yj,removeClasses:Pj};function Ij(){const a=this,{isLocked:n,params:i}=a,{slidesOffsetBefore:l}=i;if(l){const s=a.slides.length-1,u=a.slidesGrid[s]+a.slidesSizesGrid[s]+l*2;a.isLocked=a.size>u}else a.isLocked=a.snapGrid.length===1;i.allowSlideNext===!0&&(a.allowSlideNext=!a.isLocked),i.allowSlidePrev===!0&&(a.allowSlidePrev=!a.isLocked),n&&n!==a.isLocked&&(a.isEnd=!1),n!==a.isLocked&&a.emit(a.isLocked?"lock":"unlock")}var Kj={checkOverflow:Ij},Nd={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Fj(a,n){return function(l={}){const s=Object.keys(l)[0],u=l[s];if(typeof u!="object"||u===null){tn(n,l);return}if(a[s]===!0&&(a[s]={enabled:!0}),s==="navigation"&&a[s]&&a[s].enabled&&!a[s].prevEl&&!a[s].nextEl&&(a[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&a[s]&&a[s].enabled&&!a[s].el&&(a[s].auto=!0),!(s in a&&"enabled"in u)){tn(n,l);return}typeof a[s]=="object"&&!("enabled"in a[s])&&(a[s].enabled=!0),a[s]||(a[s]={enabled:!1}),tn(n,l)}}const ld={eventsEmitter:XA,update:aj,translate:uj,transition:pj,slide:xj,loop:Cj,grabCursor:Rj,events:Uj,breakpoints:Gj,checkOverflow:Kj,classes:Xj},rd={};let pp=class ia{constructor(...n){let i,l;n.length===1&&n[0].constructor&&Object.prototype.toString.call(n[0]).slice(8,-1)==="Object"?l=n[0]:[i,l]=n,l||(l={}),l=tn({},l),i&&!l.el&&(l.el=i);const s=Ei();if(l.el&&typeof l.el=="string"&&s.querySelectorAll(l.el).length>1){const f=[];return s.querySelectorAll(l.el).forEach(m=>{const v=tn({},l,{el:m});f.push(new ia(v))}),f}const u=this;u.__swiper__=!0,u.support=i0(),u.device=l0({userAgent:l.userAgent}),u.browser=r0(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],l.modules&&Array.isArray(l.modules)&&l.modules.forEach(f=>{typeof f=="function"&&u.modules.indexOf(f)<0&&u.modules.push(f)});const c={};u.modules.forEach(f=>{f({params:l,swiper:u,extendParams:Fj(l,c),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const p=tn({},Nd,c);return u.params=tn({},p,rd,l),u.originalParams=tn({},u.params),u.passedParams=tn({},l),u.params&&u.params.on&&Object.keys(u.params.on).forEach(f=>{u.on(f,u.params.on[f])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}getDirectionLabel(n){return this.isHorizontal()?n:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[n]}getSlideIndex(n){const{slidesEl:i,params:l}=this,s=Ln(i,`.${l.slideClass}, swiper-slide`),u=Io(s[0]);return Io(n)-u}getSlideIndexByData(n){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===n))}getSlideIndexWhenGrid(n){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?n=Math.floor(n/this.params.grid.rows):this.params.grid.fill==="row"&&(n=n%Math.ceil(this.slides.length/this.params.grid.rows))),n}recalcSlides(){const n=this,{slidesEl:i,params:l}=n;n.slides=Ln(i,`.${l.slideClass}, swiper-slide`)}enable(){const n=this;n.enabled||(n.enabled=!0,n.params.grabCursor&&n.setGrabCursor(),n.emit("enable"))}disable(){const n=this;n.enabled&&(n.enabled=!1,n.params.grabCursor&&n.unsetGrabCursor(),n.emit("disable"))}setProgress(n,i){const l=this;n=Math.min(Math.max(n,0),1);const s=l.minTranslate(),c=(l.maxTranslate()-s)*n+s;l.translateTo(c,typeof i>"u"?0:i),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const n=this;if(!n.params._emitClasses||!n.el)return;const i=n.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(n.params.containerModifierClass)===0);n.emit("_containerClasses",i.join(" "))}getSlideClasses(n){const i=this;return i.destroyed?"":n.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const n=this;if(!n.params._emitClasses||!n.el)return;const i=[];n.slides.forEach(l=>{const s=n.getSlideClasses(l);i.push({slideEl:l,classNames:s}),n.emit("_slideClass",l,s)}),n.emit("_slideClasses",i)}slidesPerViewDynamic(n="current",i=!1){const l=this,{params:s,slides:u,slidesGrid:c,slidesSizesGrid:p,size:f,activeIndex:m}=l;let v=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let g=u[m]?Math.ceil(u[m].swiperSlideSize):0,S;for(let x=m+1;x<u.length;x+=1)u[x]&&!S&&(g+=Math.ceil(u[x].swiperSlideSize),v+=1,g>f&&(S=!0));for(let x=m-1;x>=0;x-=1)u[x]&&!S&&(g+=u[x].swiperSlideSize,v+=1,g>f&&(S=!0))}else if(n==="current")for(let g=m+1;g<u.length;g+=1)(i?c[g]+p[g]-c[m]<f:c[g]-c[m]<f)&&(v+=1);else for(let g=m-1;g>=0;g-=1)c[m]-c[g]<f&&(v+=1);return v}update(){const n=this;if(!n||n.destroyed)return;const{snapGrid:i,params:l}=n;l.breakpoints&&n.setBreakpoint(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(c=>{c.complete&&Do(n,c)}),n.updateSize(),n.updateSlides(),n.updateProgress(),n.updateSlidesClasses();function s(){const c=n.rtlTranslate?n.translate*-1:n.translate,p=Math.min(Math.max(c,n.maxTranslate()),n.minTranslate());n.setTranslate(p),n.updateActiveIndex(),n.updateSlidesClasses()}let u;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)s(),l.autoHeight&&n.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&n.isEnd&&!l.centeredSlides){const c=n.virtual&&l.virtual.enabled?n.virtual.slides:n.slides;u=n.slideTo(c.length-1,0,!1,!0)}else u=n.slideTo(n.activeIndex,0,!1,!0);u||s()}l.watchOverflow&&i!==n.snapGrid&&n.checkOverflow(),n.emit("update")}changeDirection(n,i=!0){const l=this,s=l.params.direction;return n||(n=s==="horizontal"?"vertical":"horizontal"),n===s||n!=="horizontal"&&n!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${s}`),l.el.classList.add(`${l.params.containerModifierClass}${n}`),l.emitContainerClasses(),l.params.direction=n,l.slides.forEach(u=>{n==="vertical"?u.style.width="":u.style.height=""}),l.emit("changeDirection"),i&&l.update()),l}changeLanguageDirection(n){const i=this;i.rtl&&n==="rtl"||!i.rtl&&n==="ltr"||(i.rtl=n==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(n){const i=this;if(i.mounted)return!0;let l=n||i.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=i,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const s=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let c=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(s()):Ln(l,s())[0];return!c&&i.params.createElements&&(c=Xo("div",i.params.wrapperClass),l.append(c),Ln(l,`.${i.params.slideClass}`).forEach(p=>{c.append(p)})),Object.assign(i,{el:l,wrapperEl:c,slidesEl:i.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:c,hostEl:i.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||Ua(l,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||Ua(l,"direction")==="rtl"),wrongRTL:Ua(c,"display")==="-webkit-box"}),!0}init(n){const i=this;if(i.initialized||i.mount(n)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();const s=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(u=>{u.complete?Do(i,u):u.addEventListener("load",c=>{Do(i,c.target)})}),Cd(i),i.initialized=!0,Cd(i),i.emit("init"),i.emit("afterInit"),i}destroy(n=!0,i=!0){const l=this,{params:s,el:u,wrapperEl:c,slides:p}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),s.loop&&l.loopDestroy(),i&&(l.removeClasses(),u&&typeof u!="string"&&u.removeAttribute("style"),c&&c.removeAttribute("style"),p&&p.length&&p.forEach(f=>{f.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),f.removeAttribute("style"),f.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(f=>{l.off(f)}),n!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),DA(l)),l.destroyed=!0),null}static extendDefaults(n){tn(rd,n)}static get extendedDefaults(){return rd}static get defaults(){return Nd}static installModule(n){ia.prototype.__modules__||(ia.prototype.__modules__=[]);const i=ia.prototype.__modules__;typeof n=="function"&&i.indexOf(n)<0&&i.push(n)}static use(n){return Array.isArray(n)?(n.forEach(i=>ia.installModule(i)),ia):(ia.installModule(n),ia)}};Object.keys(ld).forEach(a=>{Object.keys(ld[a]).forEach(n=>{pp.prototype[n]=ld[a][n]})});pp.use([YA,PA]);const u0=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function gi(a){return typeof a=="object"&&a!==null&&a.constructor&&Object.prototype.toString.call(a).slice(8,-1)==="Object"&&!a.__swiper__}function hl(a,n){const i=["__proto__","constructor","prototype"];Object.keys(n).filter(l=>i.indexOf(l)<0).forEach(l=>{typeof a[l]>"u"?a[l]=n[l]:gi(n[l])&&gi(a[l])&&Object.keys(n[l]).length>0?n[l].__swiper__?a[l]=n[l]:hl(a[l],n[l]):a[l]=n[l]})}function c0(a={}){return a.navigation&&typeof a.navigation.nextEl>"u"&&typeof a.navigation.prevEl>"u"}function f0(a={}){return a.pagination&&typeof a.pagination.el>"u"}function d0(a={}){return a.scrollbar&&typeof a.scrollbar.el>"u"}function p0(a=""){const n=a.split(" ").map(l=>l.trim()).filter(l=>!!l),i=[];return n.forEach(l=>{i.indexOf(l)<0&&i.push(l)}),i.join(" ")}function Qj(a=""){return a?a.includes("swiper-wrapper")?a:`swiper-wrapper ${a}`:"swiper-wrapper"}function Zj({swiper:a,slides:n,passedParams:i,changedParams:l,nextEl:s,prevEl:u,scrollbarEl:c,paginationEl:p}){const f=l.filter(M=>M!=="children"&&M!=="direction"&&M!=="wrapperClass"),{params:m,pagination:v,navigation:g,scrollbar:S,virtual:x,thumbs:E}=a;let O,A,C,T,R,B,Y,z;l.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&m.thumbs&&(!m.thumbs.swiper||m.thumbs.swiper.destroyed)&&(O=!0),l.includes("controller")&&i.controller&&i.controller.control&&m.controller&&!m.controller.control&&(A=!0),l.includes("pagination")&&i.pagination&&(i.pagination.el||p)&&(m.pagination||m.pagination===!1)&&v&&!v.el&&(C=!0),l.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||c)&&(m.scrollbar||m.scrollbar===!1)&&S&&!S.el&&(T=!0),l.includes("navigation")&&i.navigation&&(i.navigation.prevEl||u)&&(i.navigation.nextEl||s)&&(m.navigation||m.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(R=!0);const _=M=>{a[M]&&(a[M].destroy(),M==="navigation"?(a.isElement&&(a[M].prevEl.remove(),a[M].nextEl.remove()),m[M].prevEl=void 0,m[M].nextEl=void 0,a[M].prevEl=void 0,a[M].nextEl=void 0):(a.isElement&&a[M].el.remove(),m[M].el=void 0,a[M].el=void 0))};l.includes("loop")&&a.isElement&&(m.loop&&!i.loop?B=!0:!m.loop&&i.loop?Y=!0:z=!0),f.forEach(M=>{if(gi(m[M])&&gi(i[M]))Object.assign(m[M],i[M]),(M==="navigation"||M==="pagination"||M==="scrollbar")&&"enabled"in i[M]&&!i[M].enabled&&_(M);else{const H=i[M];(H===!0||H===!1)&&(M==="navigation"||M==="pagination"||M==="scrollbar")?H===!1&&_(M):m[M]=i[M]}}),f.includes("controller")&&!A&&a.controller&&a.controller.control&&m.controller&&m.controller.control&&(a.controller.control=m.controller.control),l.includes("children")&&n&&x&&m.virtual.enabled?(x.slides=n,x.update(!0)):l.includes("virtual")&&x&&m.virtual.enabled&&(n&&(x.slides=n),x.update(!0)),l.includes("children")&&n&&m.loop&&(z=!0),O&&E.init()&&E.update(!0),A&&(a.controller.control=m.controller.control),C&&(a.isElement&&(!p||typeof p=="string")&&(p=document.createElement("div"),p.classList.add("swiper-pagination"),p.part.add("pagination"),a.el.appendChild(p)),p&&(m.pagination.el=p),v.init(),v.render(),v.update()),T&&(a.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-scrollbar"),c.part.add("scrollbar"),a.el.appendChild(c)),c&&(m.scrollbar.el=c),S.init(),S.updateSize(),S.setTranslate()),R&&(a.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),Ko(s,a.navigation.arrowSvg),s.part.add("button-next"),a.el.appendChild(s)),(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-button-prev"),Ko(u,a.navigation.arrowSvg),u.part.add("button-prev"),a.el.appendChild(u))),s&&(m.navigation.nextEl=s),u&&(m.navigation.prevEl=u),g.init(),g.update()),l.includes("allowSlideNext")&&(a.allowSlideNext=i.allowSlideNext),l.includes("allowSlidePrev")&&(a.allowSlidePrev=i.allowSlidePrev),l.includes("direction")&&a.changeDirection(i.direction,!1),(B||z)&&a.loopDestroy(),(Y||z)&&a.loopCreate(),a.update()}function Jj(a={},n=!0){const i={on:{}},l={},s={};hl(i,Nd),i._emitClasses=!0,i.init=!1;const u={},c=u0.map(f=>f.replace(/_/,"")),p=Object.assign({},a);return Object.keys(p).forEach(f=>{typeof a[f]>"u"||(c.indexOf(f)>=0?gi(a[f])?(i[f]={},s[f]={},hl(i[f],a[f]),hl(s[f],a[f])):(i[f]=a[f],s[f]=a[f]):f.search(/on[A-Z]/)===0&&typeof a[f]=="function"?n?l[`${f[2].toLowerCase()}${f.substr(3)}`]=a[f]:i.on[`${f[2].toLowerCase()}${f.substr(3)}`]=a[f]:u[f]=a[f])}),["navigation","pagination","scrollbar"].forEach(f=>{i[f]===!0&&(i[f]={}),i[f]===!1&&delete i[f]}),{params:i,passedParams:s,rest:u,events:l}}function Wj({el:a,nextEl:n,prevEl:i,paginationEl:l,scrollbarEl:s,swiper:u},c){c0(c)&&n&&i&&(u.params.navigation.nextEl=n,u.originalParams.navigation.nextEl=n,u.params.navigation.prevEl=i,u.originalParams.navigation.prevEl=i),f0(c)&&l&&(u.params.pagination.el=l,u.originalParams.pagination.el=l),d0(c)&&s&&(u.params.scrollbar.el=s,u.originalParams.scrollbar.el=s),u.init(a)}function eD(a,n,i,l,s){const u=[];if(!n)return u;const c=f=>{u.indexOf(f)<0&&u.push(f)};if(i&&l){const f=l.map(s),m=i.map(s);f.join("")!==m.join("")&&c("children"),l.length!==i.length&&c("children")}return u0.filter(f=>f[0]==="_").map(f=>f.replace(/_/,"")).forEach(f=>{if(f in a&&f in n)if(gi(a[f])&&gi(n[f])){const m=Object.keys(a[f]),v=Object.keys(n[f]);m.length!==v.length?c(f):(m.forEach(g=>{a[f][g]!==n[f][g]&&c(f)}),v.forEach(g=>{a[f][g]!==n[f][g]&&c(f)}))}else a[f]!==n[f]&&c(f)}),u}const tD=a=>{!a||a.destroyed||!a.params.virtual||a.params.virtual&&!a.params.virtual.enabled||(a.updateSlides(),a.updateProgress(),a.updateSlidesClasses(),a.emit("_virtualUpdated"),a.parallax&&a.params.parallax&&a.params.parallax.enabled&&a.parallax.setTranslate())};function Fo(){return Fo=Object.assign?Object.assign.bind():function(a){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=i[l])}return a},Fo.apply(this,arguments)}function h0(a){return a.type&&a.type.displayName&&a.type.displayName.includes("SwiperSlide")}function m0(a){const n=[];return Ze.Children.toArray(a).forEach(i=>{h0(i)?n.push(i):i.props&&i.props.children&&m0(i.props.children).forEach(l=>n.push(l))}),n}function nD(a){const n=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Ze.Children.toArray(a).forEach(l=>{if(h0(l))n.push(l);else if(l.props&&l.props.slot&&i[l.props.slot])i[l.props.slot].push(l);else if(l.props&&l.props.children){const s=m0(l.props.children);s.length>0?s.forEach(u=>n.push(u)):i["container-end"].push(l)}else i["container-end"].push(l)}),{slides:n,slots:i}}function aD(a,n,i){if(!i)return null;const l=v=>{let g=v;return v<0?g=n.length+v:g>=n.length&&(g=g-n.length),g},s=a.isHorizontal()?{[a.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:u,to:c}=i,p=a.params.loop?-n.length:0,f=a.params.loop?n.length*2:n.length,m=[];for(let v=p;v<f;v+=1)v>=u&&v<=c&&m.push(n[l(v)]);return m.map((v,g)=>Ze.cloneElement(v,{swiper:a,style:s,key:v.props.virtualIndex||v.key||`slide-${g}`}))}function Br(a,n){return typeof window>"u"?N.useEffect(a,n):N.useLayoutEffect(a,n)}const Cy=N.createContext(null),iD=N.createContext(null),g0=N.forwardRef(({className:a,tag:n="div",wrapperTag:i="div",children:l,onSwiper:s,...u}={},c)=>{let p=!1;const[f,m]=N.useState("swiper"),[v,g]=N.useState(null),[S,x]=N.useState(!1),E=N.useRef(!1),O=N.useRef(null),A=N.useRef(null),C=N.useRef(null),T=N.useRef(null),R=N.useRef(null),B=N.useRef(null),Y=N.useRef(null),z=N.useRef(null),{params:_,passedParams:M,rest:H,events:$}=Jj(u),{slides:U,slots:I}=nD(l),ee=()=>{x(!S)};Object.assign(_.on,{_containerClasses(J,se){m(se)}});const ne=()=>{Object.assign(_.on,$),p=!0;const J={..._};if(delete J.wrapperClass,A.current=new pp(J),A.current.virtual&&A.current.params.virtual.enabled){A.current.virtual.slides=U;const se={cache:!1,slides:U,renderExternal:g,renderExternalUpdate:!1};hl(A.current.params.virtual,se),hl(A.current.originalParams.virtual,se)}};O.current||ne(),A.current&&A.current.on("_beforeBreakpoint",ee);const le=()=>{p||!$||!A.current||Object.keys($).forEach(J=>{A.current.on(J,$[J])})},V=()=>{!$||!A.current||Object.keys($).forEach(J=>{A.current.off(J,$[J])})};N.useEffect(()=>()=>{A.current&&A.current.off("_beforeBreakpoint",ee)}),N.useEffect(()=>{!E.current&&A.current&&(A.current.emitSlidesClasses(),E.current=!0)}),Br(()=>{if(c&&(c.current=O.current),!!O.current)return A.current.destroyed&&ne(),Wj({el:O.current,nextEl:R.current,prevEl:B.current,paginationEl:Y.current,scrollbarEl:z.current,swiper:A.current},_),s&&!A.current.destroyed&&s(A.current),()=>{A.current&&!A.current.destroyed&&A.current.destroy(!0,!1)}},[]),Br(()=>{le();const J=eD(M,C.current,U,T.current,se=>se.key);return C.current=M,T.current=U,J.length&&A.current&&!A.current.destroyed&&Zj({swiper:A.current,slides:U,passedParams:M,changedParams:J,nextEl:R.current,prevEl:B.current,scrollbarEl:z.current,paginationEl:Y.current}),()=>{V()}}),Br(()=>{tD(A.current)},[v]);function te(){return _.virtual?aD(A.current,U,v):U.map((J,se)=>Ze.cloneElement(J,{swiper:A.current,swiperSlideIndex:se}))}return Ze.createElement(n,Fo({ref:O,className:p0(`${f}${a?` ${a}`:""}`)},H),Ze.createElement(iD.Provider,{value:A.current},I["container-start"],Ze.createElement(i,{className:Qj(_.wrapperClass)},I["wrapper-start"],te(),I["wrapper-end"]),c0(_)&&Ze.createElement(Ze.Fragment,null,Ze.createElement("div",{ref:B,className:"swiper-button-prev"}),Ze.createElement("div",{ref:R,className:"swiper-button-next"})),d0(_)&&Ze.createElement("div",{ref:z,className:"swiper-scrollbar"}),f0(_)&&Ze.createElement("div",{ref:Y,className:"swiper-pagination"}),I["container-end"]))});g0.displayName="Swiper";const Ar=N.forwardRef(({tag:a="div",children:n,className:i="",swiper:l,zoom:s,lazy:u,virtualIndex:c,swiperSlideIndex:p,...f}={},m)=>{const v=N.useRef(null),[g,S]=N.useState("swiper-slide"),[x,E]=N.useState(!1);function O(R,B,Y){B===v.current&&S(Y)}Br(()=>{if(typeof p<"u"&&(v.current.swiperSlideIndex=p),m&&(m.current=v.current),!(!v.current||!l)){if(l.destroyed){g!=="swiper-slide"&&S("swiper-slide");return}return l.on("_slideClass",O),()=>{l&&l.off("_slideClass",O)}}}),Br(()=>{l&&v.current&&!l.destroyed&&S(l.getSlideClasses(v.current))},[l]);const A={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},C=()=>typeof n=="function"?n(A):n,T=()=>{E(!0)};return Ze.createElement(a,Fo({ref:v,className:p0(`${g}${i?` ${i}`:""}`),"data-swiper-slide-index":c,onLoad:T},f),s&&Ze.createElement(Cy.Provider,{value:A},Ze.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},C(),u&&!x&&Ze.createElement("div",{className:"swiper-lazy-preloader",ref:R=>{R&&(R.lazyPreloaderManaged=!0)}}))),!s&&Ze.createElement(Cy.Provider,{value:A},C(),u&&!x&&Ze.createElement("div",{className:"swiper-lazy-preloader",ref:R=>{R&&(R.lazyPreloaderManaged=!0)}})))});Ar.displayName="SwiperSlide";function lD(){const{t:a}=Ot(),n=N.useRef(null);function i(){n.current?.slideNext()}return b.jsxs("div",{className:"ComparisonLayout",children:[b.jsx("div",{className:"SliderContainer",children:b.jsxs(g0,{modules:[HA],spaceBetween:20,slidesPerView:1,grabCursor:!0,pagination:{clickable:!1},observer:!0,observeParents:!0,onSwiper:l=>{n.current=l},children:[b.jsx(Ar,{children:b.jsxs("div",{className:"SliderCard",children:[b.jsx("div",{className:"SliderCard-header",children:b.jsx("div",{className:"SliderCard-headerTitle",children:a("welcome.canDoHeader")})}),b.jsxs("div",{className:"SliderCard-content",children:[b.jsxs("h3",{className:"SliderCard-title",children:[b.jsx("div",{className:"SliderCard-icon",children:"✨"}),a("welcome.slide1Title")]}),b.jsx("p",{className:"SliderCard-description",children:a("welcome.slide1Description")})]}),b.jsxs("button",{type:"button",className:"SliderCard-footer",onClick:i,children:[b.jsx("span",{className:"SliderCard-nextText",children:a("welcome.slide1Next")}),b.jsx("span",{className:"SliderCard-nextBtn",children:"→"})]})]})}),b.jsx(Ar,{children:b.jsxs("div",{className:"SliderCard",children:[b.jsxs("div",{className:"SliderCard-content",children:[b.jsx("div",{className:"SliderCard-step",children:a("welcome.slide2Step")}),b.jsxs("h2",{className:"SliderCard-title",children:[b.jsx("div",{className:"SliderCard-icon",children:"📦"}),a("welcome.slide2Title")]}),b.jsx("p",{className:"SliderCard-description",dangerouslySetInnerHTML:{__html:a("welcome.slide2Description")}})]}),b.jsxs("button",{type:"button",className:"SliderCard-footer",onClick:i,children:[b.jsx("span",{className:"SliderCard-nextText",children:a("welcome.slide2Next")}),b.jsx("span",{className:"SliderCard-nextBtn",children:"→"})]})]})}),b.jsx(Ar,{children:b.jsxs("div",{className:"SliderCard",children:[b.jsxs("div",{className:"SliderCard-content",children:[b.jsx("div",{className:"SliderCard-step",children:a("welcome.slide3Step")}),b.jsxs("h2",{className:"SliderCard-title",children:[b.jsx("div",{className:"SliderCard-icon",children:"💻"}),a("welcome.slide3Title")]}),b.jsx("div",{className:"SliderCard-codeBlock",children:a("welcome.slide3CodeBlock")}),b.jsx("p",{className:"SliderCard-description",children:a("welcome.slide3Description")})]}),b.jsxs("button",{type:"button",className:"SliderCard-footer",onClick:i,children:[b.jsx("span",{className:"SliderCard-nextText",children:a("welcome.slide3Next")}),b.jsx("span",{className:"SliderCard-nextBtn",children:"→"})]})]})}),b.jsx(Ar,{children:b.jsx("div",{className:"SliderCard",children:b.jsxs("div",{className:"SliderCard-content",children:[b.jsx("div",{className:"SliderCard-title",children:a("welcome.slide4Title")}),b.jsxs("div",{className:"ResultFeatureList",children:[b.jsxs("div",{className:"ResultFeature",children:[b.jsx("span",{className:"ResultFeature-icon",children:"✓"}),b.jsx("span",{children:a("welcome.slide4Feature1")})]}),b.jsxs("div",{className:"ResultFeature",children:[b.jsx("span",{className:"ResultFeature-icon",children:"✓"}),b.jsx("span",{children:a("welcome.slide4Feature2")})]}),b.jsxs("div",{className:"ResultFeature",children:[b.jsx("span",{className:"ResultFeature-icon",children:"✓"}),b.jsx("span",{children:a("welcome.slide4Feature3")})]})]}),b.jsx("p",{className:"SliderCard-description",children:a("welcome.slide4Description")})]})})})]})}),b.jsxs("div",{className:"SliderCard warning",children:[b.jsx("div",{className:"SliderCard-header warning",children:b.jsx("div",{className:"SliderCard-headerTitle",children:a("welcome.cantDoHeader")})}),b.jsxs("div",{className:"SliderCard-content",children:[b.jsxs("h3",{className:"SliderCard-title",children:[b.jsx("div",{className:"SliderCard-icon",children:"✕"}),a("welcome.cantDoTitle")]}),b.jsx("p",{className:"SliderCard-description",children:a("welcome.cantDoDescription")})]})]})]})}function v0({onTokenReceived:a}){const[n,i]=N.useState(!!window.grecaptcha),l=Jf;return N.useEffect(()=>{if(l){if(window.onRecaptchaSubmitted=s=>{a(s)},window.onRecaptchaExpired=()=>{a("")},n===!1&&!window.grecaptcha){i("loading");const s=document.createElement("script");s.src="https://www.google.com/recaptcha/api.js",s.async=!0,s.defer=!0,s.onload=()=>i(!0),document.head.appendChild(s)}else i(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[l,a]),b.jsx(b.Fragment,{children:Jf&&n===!0?b.jsx("div",{className:"g-recaptcha","data-sitekey":Jf,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):b.jsx("div",{className:"RecaptchaBox",children:b.jsx(Ad,{})})})}function rD(a){return b.jsx(vi,{children:b.jsx(sD,{...a})})}function sD({onVerified:a}){const{t:n,i18n:i}=Ot(),[l,s]=N.useState(""),{showError:u}=yi(),c=async()=>{if(!l)return;const p=await oa({command:"newSession",recaptchaToken:l,language:i.language});if(p.success&&p.result?.token)a(p.result.token);else throw new Error("Failed to create session")};return b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"SgHeader",children:b.jsx("div",{className:"SgHeader-inner large alignRight",children:b.jsx(fp,{})})}),b.jsx("main",{className:"SgMain",children:b.jsxs("div",{className:"SgMain-inner large",children:[b.jsxs("div",{className:"WelcomeScreen-hero",children:[b.jsx("h1",{className:"WelcomeScreen-heroTitle",children:n("welcome.heroTitle")}),b.jsx("p",{className:"WelcomeScreen-heroSubtitle",children:n("welcome.heroSubtitle")})]}),b.jsx(lD,{}),b.jsxs("div",{className:"SgSection noBorder",children:[b.jsx("p",{className:"WelcomeScreen-sessionWarning",children:n("welcome.sessionWarning")}),b.jsx(Ha,{}),b.jsxs("div",{className:"AuthScreen-actions",children:[b.jsx(v0,{onTokenReceived:s}),b.jsx(ra,{className:"BigBtn",as:"async",onClick:c,disabled:!l,onError:u,children:n("start")})]})]}),b.jsx("footer",{className:"SgScreen-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:n("footerLinks")}})})]})})]})}function oD(a){return b.jsx(vi,{children:b.jsx(uD,{...a})})}function uD({expiredToken:a,onTokenRefreshed:n}){const{t:i}=Ot(),{showAlert:l}=yi(),s=async u=>{if(u)try{const c=await oa({command:"renewSession",sessionToken:a,recaptchaToken:u});c.success&&c.result?.token?n(c.result.token):l(i("sessionRenewalFailed"),{severity:"error"})}catch{l(i("errorConnectingToServer"),{severity:"error"})}};return b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"SgHeader",children:b.jsx("div",{className:"SgHeader-inner",children:b.jsx("div",{className:"SgHeader-actions",children:b.jsx(fp,{})})})}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs("div",{className:"SgScreen",children:[b.jsx("div",{className:"RefreshDialog-header",children:b.jsx("h1",{className:"RefreshDialog-title",children:i("extendYourSession")})}),b.jsx("div",{className:"SgSection noBorder",children:b.jsxs("div",{className:"AuthScreen-card",children:[b.jsx(Ha,{}),b.jsx("div",{className:"AuthScreen-actions",children:b.jsx(v0,{onTokenReceived:s})}),b.jsx("p",{className:"AuthScreen-info",children:i("newTabRestartMessage")})]})}),b.jsx("footer",{className:"SgScreen-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:i("footerLinks")}})})]})})})]})}function cD(a){if(!a)return!1;try{const n=a.split(".");if(n.length!==3)return!1;const i=JSON.parse(atob(n[1]));if(!i.exp)return!1;const l=i.exp*1e3;return Date.now()<l?!0:"expired"}catch(n){return console.error("Error checking JWT token validity:",n),!1}}function fD(){const[a,n]=N.useState(),[i,l]=N.useState(),s=Si(p=>p.resetSession);N.useEffect(()=>{const p=hi(),f=cD(p);if(!p||!f){s();return}f==="expired"?l(p):n(p)},[s]);const u=p=>{fy(p),n(p)},c=p=>{fy(p),n(p),l(void 0)};return b.jsx("div",{className:"SgApp",children:a?b.jsx(RA,{sessionToken:a,onSessionExpired:()=>n(void 0)}):i?b.jsx(oD,{expiredToken:i,onTokenRefreshed:c}):b.jsx(rD,{onVerified:u})})}async function dD(){const a=document.getElementById("site-generator-app");a&&TN.createRoot(a).render(b.jsx(Ze.StrictMode,{children:b.jsx(TC,{config:{logger:console,autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3},children:b.jsxs(vi,{children:[b.jsx(Ha,{className:"NoMargin"}),b.jsx(fD,{})]})})}))}dD().catch(a=>console.error(a));
74
+ `+t+`</thead>
75
+ `+r+`</table>
76
+ `}tablerow({text:e}){return`<tr>
77
+ ${e}</tr>
78
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
79
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${G(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=K(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+G(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=K(e);if(i===null)return G(n);e=i;let a=`<img src="${e}" alt="${G(n)}"`;return t&&(a+=` title="${G(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:G(e.text)}},Xl=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Zl=class e{options;renderer;textRenderer;constructor(e){this.options=e||jc,this.options.renderer=this.options.renderer||new Yl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Xl}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Ql=class{options;block;constructor(e){this.options=e||jc}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Jl.lex:Jl.lexInline}provideParser(e=this.block){return e?Zl.parse:Zl.parseInline}},$l=new class{defaults=Ac();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Zl;Renderer=Yl;TextRenderer=Xl;Lexer=Jl;Tokenizer=ql;Hooks=Ql;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Yl(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ql(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Ql;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Ql.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Ql.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Jl.lex(e,t??this.defaults)}parser(e,t){return Zl.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Jl.lex:Jl.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Zl.parse:Zl.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Jl.lex:Jl.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Zl.parse:Zl.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
80
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+G(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function J(e,t){return $l.parse(e,t)}J.options=J.setOptions=function(e){return $l.setOptions(e),J.defaults=$l.defaults,Mc(J.defaults),J},J.getDefaults=Ac,J.defaults=jc,J.use=function(...e){return $l.use(...e),J.defaults=$l.defaults,Mc(J.defaults),J},J.walkTokens=function(e,t){return $l.walkTokens(e,t)},J.parseInline=$l.parseInline,J.Parser=Zl,J.parser=Zl.parse,J.Renderer=Yl,J.TextRenderer=Xl,J.Lexer=Jl,J.lexer=Jl.lex,J.Tokenizer=ql,J.Hooks=Ql,J.parse=J,J.options,J.setOptions,J.use,J.walkTokens,J.parseInline,Zl.parse,Jl.lex;function eu(e){if(!e)return``;try{return J.parse(e,{async:!1,gfm:!0,breaks:!0})}catch(t){return console.error(`Error rendering markdown:`,t),e}}function tu({content:e,title:t,variant:n=`info`}){return(0,j.jsx)(It,{severity:n===`error`?`error`:n===`warning`?`warning`:`primary`,title:t,className:`SgSection-alert`,children:(0,j.jsx)(`div`,{dangerouslySetInnerHTML:{__html:eu(e)}})})}function nu(e){return(0,j.jsx)(Ri,{children:(0,j.jsx)(ru,{...e})})}function ru({isOpen:e,title:t,message:n,confirmLabel:r,onConfirm:i,onCancel:a}){let{t:o}=at(),[s,c]=(0,A.useState)(!0),{showError:l}=zi();return(0,j.jsxs)(Ht,{visible:e,onHide:a,header:t,footer:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Ft,{severity:`secondary`,onClick:a,children:o(`cancel`)}),(0,j.jsx)(Ft,{as:`async`,onClick:async()=>{await i({withSampleData:s})},onError:l,children:r??o(`confirm`)})]}),size:`sm`,children:[(0,j.jsx)(Bi,{}),(0,j.jsx)(`div`,{className:`Text`,children:(0,j.jsx)(`p`,{className:`PaMb4`,children:n})}),(0,j.jsx)(ht,{checked:s,onChange:c,inputLabel:o(`generateSiteWithData`)})]})}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function X(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var iu={},au=(0,A.createContext)(iu),ou=(e,t)=>Y({},e,t),su=()=>(0,A.useContext)(au),cu=(0,A.createContext)(()=>{});cu.displayName=`JVR.DispatchShowTools`;function lu(){return(0,A.useReducer)(ou,iu)}function uu(){return(0,A.useContext)(cu)}var du=e=>{var{initial:t,dispatch:n,children:r}=e;return(0,j.jsx)(au.Provider,{value:t,children:(0,j.jsx)(cu.Provider,{value:n,children:r})})};du.displayName=`JVR.ShowTools`;var fu={},pu=(0,A.createContext)(fu),mu=(e,t)=>Y({},e,t),hu=()=>(0,A.useContext)(pu),gu=(0,A.createContext)(()=>{});gu.displayName=`JVR.DispatchExpands`;function _u(){return(0,A.useReducer)(mu,fu)}function vu(){return(0,A.useContext)(gu)}var yu=e=>{var{initial:t,dispatch:n,children:r}=e;return(0,j.jsx)(pu.Provider,{value:t,children:(0,j.jsx)(gu.Provider,{value:n,children:r})})};yu.displayName=`JVR.Expands`;var bu={Str:{as:`span`,"data-type":`string`,style:{color:`var(--w-rjv-type-string-color, #cb4b16)`},className:`w-rjv-type`,children:`string`},Url:{as:`a`,style:{color:`var(--w-rjv-type-url-color, #0969da)`},"data-type":`url`,className:`w-rjv-type`,children:`url`},Undefined:{style:{color:`var(--w-rjv-type-undefined-color, #586e75)`},as:`span`,"data-type":`undefined`,className:`w-rjv-type`,children:`undefined`},Null:{style:{color:`var(--w-rjv-type-null-color, #d33682)`},as:`span`,"data-type":`null`,className:`w-rjv-type`,children:`null`},Map:{style:{color:`var(--w-rjv-type-map-color, #268bd2)`,marginRight:3},as:`span`,"data-type":`map`,className:`w-rjv-type`,children:`Map`},Nan:{style:{color:`var(--w-rjv-type-nan-color, #859900)`},as:`span`,"data-type":`nan`,className:`w-rjv-type`,children:`NaN`},Bigint:{style:{color:`var(--w-rjv-type-bigint-color, #268bd2)`},as:`span`,"data-type":`bigint`,className:`w-rjv-type`,children:`bigint`},Int:{style:{color:`var(--w-rjv-type-int-color, #268bd2)`},as:`span`,"data-type":`int`,className:`w-rjv-type`,children:`int`},Set:{style:{color:`var(--w-rjv-type-set-color, #268bd2)`,marginRight:3},as:`span`,"data-type":`set`,className:`w-rjv-type`,children:`Set`},Float:{style:{color:`var(--w-rjv-type-float-color, #859900)`},as:`span`,"data-type":`float`,className:`w-rjv-type`,children:`float`},True:{style:{color:`var(--w-rjv-type-boolean-color, #2aa198)`},as:`span`,"data-type":`bool`,className:`w-rjv-type`,children:`bool`},False:{style:{color:`var(--w-rjv-type-boolean-color, #2aa198)`},as:`span`,"data-type":`bool`,className:`w-rjv-type`,children:`bool`},Date:{style:{color:`var(--w-rjv-type-date-color, #268bd2)`},as:`span`,"data-type":`date`,className:`w-rjv-type`,children:`date`}},xu=(0,A.createContext)(bu),Su=(e,t)=>Y({},e,t),Cu=()=>(0,A.useContext)(xu),wu=(0,A.createContext)(()=>{});wu.displayName=`JVR.DispatchTypes`;function Tu(){return(0,A.useReducer)(Su,bu)}function Eu(){return(0,A.useContext)(wu)}function Du(e){var{initial:t,dispatch:n,children:r}=e;return(0,j.jsx)(xu.Provider,{value:t,children:(0,j.jsx)(wu.Provider,{value:n,children:r})})}Du.displayName=`JVR.Types`;var Ou=[`style`];function ku(e){var{style:t}=e,n=X(e,Ou);return(0,j.jsx)(`svg`,Y({viewBox:`0 0 24 24`,fill:`var(--w-rjv-arrow-color, currentColor)`,style:Y({cursor:`pointer`,height:`1em`,width:`1em`,userSelect:`none`,display:`inline-flex`},t)},n,{children:(0,j.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`})}))}ku.displayName=`JVR.TriangleArrow`;var Au={Arrow:{as:`span`,className:`w-rjv-arrow`,style:{transform:`rotate(0deg)`,transition:`all 0.3s`},children:(0,j.jsx)(ku,{})},Colon:{as:`span`,style:{color:`var(--w-rjv-colon-color, var(--w-rjv-color))`,marginLeft:0,marginRight:2},className:`w-rjv-colon`,children:`:`},Quote:{as:`span`,style:{color:`var(--w-rjv-quotes-color, #236a7c)`},className:`w-rjv-quotes`,children:`"`},ValueQuote:{as:`span`,style:{color:`var(--w-rjv-quotes-string-color, #cb4b16)`},className:`w-rjv-quotes`,children:`"`},BracketsLeft:{as:`span`,style:{color:`var(--w-rjv-brackets-color, #236a7c)`},className:`w-rjv-brackets-start`,children:`[`},BracketsRight:{as:`span`,style:{color:`var(--w-rjv-brackets-color, #236a7c)`},className:`w-rjv-brackets-end`,children:`]`},BraceLeft:{as:`span`,style:{color:`var(--w-rjv-curlybraces-color, #236a7c)`},className:`w-rjv-curlybraces-start`,children:`{`},BraceRight:{as:`span`,style:{color:`var(--w-rjv-curlybraces-color, #236a7c)`},className:`w-rjv-curlybraces-end`,children:`}`}},ju=(0,A.createContext)(Au),Mu=(e,t)=>Y({},e,t),Nu=()=>(0,A.useContext)(ju),Pu=(0,A.createContext)(()=>{});Pu.displayName=`JVR.DispatchSymbols`;function Fu(){return(0,A.useReducer)(Mu,Au)}function Iu(){return(0,A.useContext)(Pu)}var Lu=e=>{var{initial:t,dispatch:n,children:r}=e;return(0,j.jsx)(ju.Provider,{value:t,children:(0,j.jsx)(Pu.Provider,{value:n,children:r})})};Lu.displayName=`JVR.Symbols`;var Ru={Copied:{className:`w-rjv-copied`,style:{height:`1em`,width:`1em`,cursor:`pointer`,verticalAlign:`middle`,marginLeft:5}},CountInfo:{as:`span`,className:`w-rjv-object-size`,style:{color:`var(--w-rjv-info-color, #0000004d)`,paddingLeft:8,fontStyle:`italic`}},CountInfoExtra:{as:`span`,className:`w-rjv-object-extra`,style:{paddingLeft:8}},Ellipsis:{as:`span`,style:{cursor:`pointer`,color:`var(--w-rjv-ellipsis-color, #cb4b16)`,userSelect:`none`},className:`w-rjv-ellipsis`,children:`...`},Row:{as:`div`,className:`w-rjv-line`},KeyName:{as:`span`,className:`w-rjv-object-key`}},zu=(0,A.createContext)(Ru),Bu=(e,t)=>Y({},e,t),Vu=()=>(0,A.useContext)(zu),Hu=(0,A.createContext)(()=>{});Hu.displayName=`JVR.DispatchSection`;function Uu(){return(0,A.useReducer)(Bu,Ru)}function Wu(){return(0,A.useContext)(Hu)}var Z=e=>{var{initial:t,dispatch:n,children:r}=e;return(0,j.jsx)(zu.Provider,{value:t,children:(0,j.jsx)(Hu.Provider,{value:n,children:r})})};Z.displayName=`JVR.Section`;var Gu={objectSortKeys:!1,indentWidth:15},Ku=(0,A.createContext)(Gu);Ku.displayName=`JVR.Context`;var qu=(0,A.createContext)(()=>{});qu.displayName=`JVR.DispatchContext`;function Ju(e,t){return Y({},e,t)}var Yu=()=>(0,A.useContext)(Ku),Xu=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,a]=(0,A.useReducer)(Ju,Object.assign({},Gu,n)),[o,s]=lu(),[c,l]=_u(),[u,d]=Tu(),[f,p]=Fu(),[m,h]=Uu();return(0,A.useEffect)(()=>a(Y({},n)),[n]),(0,j.jsx)(Ku.Provider,{value:i,children:(0,j.jsx)(qu.Provider,{value:a,children:(0,j.jsx)(du,{initial:o,dispatch:s,children:(0,j.jsx)(yu,{initial:c,dispatch:l,children:(0,j.jsx)(Du,{initial:Y({},u,r),dispatch:d,children:(0,j.jsx)(Lu,{initial:f,dispatch:p,children:(0,j.jsx)(Z,{initial:m,dispatch:h,children:t})})})})})})})};Xu.displayName=`JVR.Provider`;function Zu(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var Qu=[`isNumber`,`value`,`parentValue`,`keyName`,`keys`],$u=[`as`,`render`],ed=[`as`,`render`],td=[`as`,`render`],nd=[`as`,`style`,`render`],rd=[`as`,`render`],id=[`as`,`render`],ad=[`as`,`render`],od=[`as`,`render`],sd=e=>{var{Quote:t={}}=Nu(),{isNumber:n,value:r,parentValue:i,keyName:a,keys:o}=e,s=X(e,Qu);if(n)return null;var{as:c,render:l}=t,u=X(t,$u),d=c||`span`,f=Y({},s,u);return typeof f.children==`string`&&(f.children=f.children.trim()||void 0),l&&typeof l==`function`&&l(f,{value:r,parentValue:i,keyName:a,keys:o||(a?[a]:[])})||(0,j.jsx)(d,Y({},f))};sd.displayName=`JVR.Quote`;var cd=e=>{var{ValueQuote:t={}}=Nu(),n=Y({},(Zu(e),e)),{as:r,render:i}=t,a=X(t,ed),o=r||`span`,s=Y({},n,a);return i&&typeof i==`function`&&i(s,{})||(0,j.jsx)(o,Y({},s))};cd.displayName=`JVR.ValueQuote`;var ld=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:a={}}=Nu(),{as:o,render:s}=a,c=X(a,td),l=o||`span`;return s&&typeof s==`function`&&s(c,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])})||(0,j.jsx)(l,Y({},c))};ld.displayName=`JVR.Colon`;var ud=e=>{var{Arrow:t={}}=Nu(),n=hu(),{expandKey:r,style:i,value:a,parentValue:o,keyName:s,keys:c}=e,l=!!n[r],{as:u,style:d,render:f}=t,p=X(t,nd),m=u||`span`,h=f&&typeof f==`function`,g=Y({},p,{"data-expanded":l,style:Y({},d,i)});return h&&f(g,{value:a,parentValue:o,keyName:s,keys:c||(s?[s]:[])})||(0,j.jsx)(m,Y({},p,{style:Y({},d,i)}))};ud.displayName=`JVR.Arrow`;var dd=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:a}=e,{BracketsLeft:o={},BraceLeft:s={}}=Nu(),c={value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])};if(t){var{as:l,render:u}=o,d=X(o,rd),f=l||`span`;return u&&typeof u==`function`&&u(d,c)||(0,j.jsx)(f,Y({},d))}var{as:p,render:m}=s,h=X(s,id),g=p||`span`;return m&&typeof m==`function`&&m(h,c)||(0,j.jsx)(g,Y({},h))};dd.displayName=`JVR.BracketsOpen`;var fd=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:a,keys:o}=e,s={value:r,parentValue:i,keyName:a,keys:o||(a?[a]:[])};if(!n)return null;var{BracketsRight:c={},BraceRight:l={}}=Nu();if(t){var{as:u,render:d}=c,f=X(c,ad),p=u||`span`;return d&&typeof d==`function`&&d(f,s)||(0,j.jsx)(p,Y({},f))}var{as:m,render:h}=l,g=X(l,od),_=m||`span`;return h&&typeof h==`function`&&h(g,s)||(0,j.jsx)(_,Y({},g))};fd.displayName=`JVR.BracketsClose`;var pd=e=>{var{keyName:t,value:n,expandKey:r,parentValue:i,level:a,keys:o=[]}=e,s=hu(),{collapsed:c,shouldExpandNodeInitially:l}=Yu(),u=typeof c==`boolean`?c:typeof c==`number`?a>c:!1,d=s[r]??(l?!1:u),f=l&&l(!d,{value:n,keys:o,level:a,keyName:t,parentValue:i});if(l&&c===!1){if(s[r]===void 0&&!f)return null}else if(s[r]===void 0&&f)return null;var p=Object.keys(n).length;if(d||p===0)return null;var m={paddingLeft:4},h={keyName:t,value:n,keys:o,parentValue:i},g=Array.isArray(n),_=n instanceof Set;return(0,j.jsx)(`div`,{style:m,children:(0,j.jsx)(fd,Y({isBrackets:g||_},h,{isVisiable:!0}))})};pd.displayName=`JVR.NestedClose`;var md=[`as`,`render`],hd=[`as`,`render`],gd=[`as`,`render`],_d=[`as`,`render`],vd=[`as`,`render`],yd=[`as`,`render`],Q=[`as`,`render`],bd=[`as`,`render`],xd=[`as`,`render`],Sd=[`as`,`render`],Cd=[`as`,`render`],wd=[`as`,`render`],Td=[`as`,`render`],Ed=e=>{if(e===void 0)return`0n`;if(typeof e==`string`)try{e=BigInt(e)}catch{return`0n`}return e?e.toString()+`n`:`0n`},Dd=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=Cu();if(!(t instanceof Set)||!i)return null;var{as:a,render:o}=r,s=X(r,md);return o&&typeof o==`function`&&o(s,{type:`type`,value:t,keyName:n})||(0,j.jsx)(a||`span`,Y({},s))};Dd.displayName=`JVR.SetComp`;var Od=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=Cu();if(!(t instanceof Map)||!i)return null;var{as:a,render:o}=r,s=X(r,hd);return o&&typeof o==`function`&&o(s,{type:`type`,value:t,keyName:n})||(0,j.jsx)(a||`span`,Y({},s))};Od.displayName=`JVR.MapComp`;var kd={opacity:.75,paddingRight:4},Ad=e=>{var{children:t=``,keyName:n,keys:r}=e,{Str:i={},displayDataTypes:a}=Cu(),{shortenTextAfterLength:o=30,stringEllipsis:s=`...`}=Yu(),{as:c,render:l}=i,u=X(i,gd),d=t,[f,p]=(0,A.useState)(o&&d.length>o);(0,A.useEffect)(()=>p(o&&d.length>o),[o]);var m=c||`span`,h=Y({},kd,i.style||{});o>0&&(u.style=Y({},u.style,{cursor:d.length<=o?`initial`:`pointer`}),d.length>o&&(u.onClick=()=>{p(!f)}));var g=f?``+d.slice(0,o)+s:d,_=l&&typeof l==`function`,v=_&&l(Y({},u,{style:h}),{type:`type`,value:t,keyName:n,keys:r}),y=f?`w-rjv-value w-rjv-value-short`:`w-rjv-value`,b=_&&l(Y({},u,{children:g,className:y}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(v||(0,j.jsx)(m,Y({},u,{style:h}))),b||(0,j.jsxs)(A.Fragment,{children:[(0,j.jsx)(cd,{}),(0,j.jsx)(m,Y({},u,{className:y,children:g})),(0,j.jsx)(cd,{})]})]})};Ad.displayName=`JVR.TypeString`;var jd=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,_d),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p||(0,j.jsx)(l,Y({},c,{className:`w-rjv-value`,children:t?.toString()}))]})};jd.displayName=`JVR.TypeTrue`;var Md=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,vd),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p||(0,j.jsx)(l,Y({},c,{className:`w-rjv-value`,children:t?.toString()}))]})};Md.displayName=`JVR.TypeFalse`;var Nd=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,yd),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p||(0,j.jsx)(l,Y({},c,{className:`w-rjv-value`,children:t?.toString()}))]})};Nd.displayName=`JVR.TypeFloat`;var Pd=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,Q),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p||(0,j.jsx)(l,Y({},c,{className:`w-rjv-value`,children:t?.toString()}))]})};Pd.displayName=`JVR.TypeInt`;var Fd=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,bd),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p||(0,j.jsx)(l,Y({},c,{className:`w-rjv-value`,children:Ed(t?.toString())}))]})};Fd.displayName=`JVR.TypeFloat`;var Id=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,xd),l=o||`span`,u=Y({},kd,i.style),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t?.href,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p||(0,j.jsxs)(`a`,Y({href:t?.href,target:`_blank`},c,{className:`w-rjv-value`,children:[(0,j.jsx)(cd,{}),t?.href,(0,j.jsx)(cd,{})]}))]})};Id.displayName=`JVR.TypeUrl`;var Ld=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,Sd),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=t instanceof Date?t.toLocaleString():t,m=d&&s(Y({},c,{children:p,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),m||(0,j.jsx)(l,Y({},c,{className:`w-rjv-value`,children:p}))]})};Ld.displayName=`JVR.TypeDate`;var Rd=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,Cd),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p]})};Rd.displayName=`JVR.TypeUndefined`;var zd=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,wd),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t,className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p]})};zd.displayName=`JVR.TypeNull`;var Bd=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:a}=Cu(),{as:o,render:s}=i,c=X(i,Td),l=o||`span`,u=Y({},kd,i.style||{}),d=s&&typeof s==`function`,f=d&&s(Y({},c,{style:u}),{type:`type`,value:t,keyName:n,keys:r}),p=d&&s(Y({},c,{children:t?.toString(),className:`w-rjv-value`}),{type:`value`,value:t,keyName:n,keys:r});return(0,j.jsxs)(A.Fragment,{children:[a&&(f||(0,j.jsx)(l,Y({},c,{style:u}))),p]})};Bd.displayName=`JVR.TypeNan`;var Vd=e=>Number(e)===e&&e%1!=0||isNaN(e),Hd=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?(0,j.jsx)(Id,Y({},i,{children:t})):typeof t==`string`?(0,j.jsx)(Ad,Y({},i,{children:t})):t===!0?(0,j.jsx)(jd,Y({},i,{children:t})):t===!1?(0,j.jsx)(Md,Y({},i,{children:t})):t===null?(0,j.jsx)(zd,Y({},i,{children:t})):t===void 0?(0,j.jsx)(Rd,Y({},i,{children:t})):t instanceof Date?(0,j.jsx)(Ld,Y({},i,{children:t})):typeof t==`number`&&isNaN(t)?(0,j.jsx)(Bd,Y({},i,{children:t})):typeof t==`number`&&Vd(t)?(0,j.jsx)(Nd,Y({},i,{children:t})):typeof t==`bigint`?(0,j.jsx)(Fd,Y({},i,{children:t})):typeof t==`number`?(0,j.jsx)(Pd,Y({},i,{children:t})):null};Hd.displayName=`JVR.Value`;function Ud(e,t,n){var r=Iu(),i=Y({},e,t,{className:[e.className,t.className].filter(Boolean).join(` `),style:Y({},e.style,t.style),children:t.children||e.children});(0,A.useEffect)(()=>r({[n]:i}),[t])}function Wd(e,t,n){var r=Eu(),i=Y({},e,t,{className:[e.className,t.className].filter(Boolean).join(` `),style:Y({},e.style,t.style),children:t.children||e.children});(0,A.useEffect)(()=>r({[n]:i}),[t])}function Gd(e,t,n){var r=Wu(),i=Y({},e,t,{className:[e.className,t.className].filter(Boolean).join(` `),style:Y({},e.style,t.style),children:t.children||e.children});(0,A.useEffect)(()=>r({[n]:i}),[t])}var Kd=[`as`,`render`],qd=e=>{var{KeyName:t={}}=Vu();return Gd(t,e,`KeyName`),null};qd.displayName=`JVR.KeyName`;var Jd=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:a}=e,o={color:typeof t==`number`?`var(--w-rjv-key-number, #268bd2)`:`var(--w-rjv-key-string, #002b36)`},{KeyName:s={}}=Vu(),{as:c,render:l}=s,u=X(s,Kd);u.style=Y({},u.style,o);var d=c||`span`;return l&&typeof l==`function`&&l(Y({},u,{children:t}),{value:n,parentValue:r,keyName:i,keys:a||(i?[i]:[])})||(0,j.jsx)(d,Y({},u,{children:t}))};Jd.displayName=`JVR.KeyNameComp`;var Yd=[`children`,`value`,`parentValue`,`keyName`,`keys`],Xd=[`as`,`render`,`children`],Zd=e=>{var{Row:t={}}=Vu();return Gd(t,e,`Row`),null};Zd.displayName=`JVR.Row`;var Qd=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:a}=e,o=X(e,Yd),{Row:s={}}=Vu(),{as:c,render:l}=s,u=X(s,Xd),d=c||`div`;return l&&typeof l==`function`&&l(Y({},o,u,{children:t}),{value:n,keyName:i,parentValue:r,keys:a})||(0,j.jsx)(d,Y({},o,u,{children:t}))};Qd.displayName=`JVR.RowComp`;function $d(e){var t=(0,A.useRef)();return(0,A.useEffect)(()=>{t.current=e}),t.current}function ef(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=$d(t),a=(0,A.useMemo)(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t==`number`)return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t==`object`||typeof t==`function`)return!1;if(t!==i)return!0},[n,t]);(0,A.useEffect)(()=>{r&&r.current&&a&&`animate`in r.current&&r.current.animate([{backgroundColor:`var(--w-rjv-update-color, #ebcb8b)`},{backgroundColor:``}],{duration:1e3,easing:`ease-in`})},[a,t,r])}var tf=[`keyName`,`value`,`parentValue`,`expandKey`,`keys`,`beforeCopy`],nf=[`as`,`render`],rf=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:a,beforeCopy:o}=e,s=X(e,tf),{onCopied:c,enableClipboard:l,beforeCopy:u}=Yu(),d=su()[i],[f,p]=(0,A.useState)(!1),{Copied:m={}}=Vu(),h=m?.beforeCopy;if(l===!1||!d)return null;var g={style:{display:`inline-flex`},fill:f?`var(--w-rjv-copied-success-color, #28a745)`:`var(--w-rjv-copied-color, currentColor)`,onClick:e=>{e.stopPropagation();var s=``;s=typeof n==`number`&&n===1/0?`Infinity`:typeof n==`number`&&isNaN(n)?`NaN`:typeof n==`bigint`?Ed(n):n instanceof Date?n.toLocaleString():JSON.stringify(n,(e,t)=>typeof t==`bigint`?Ed(t):t,2);var l=o||h||u;l&&typeof l==`function`&&(s=l(s,t,n,r,i,a)),c&&c(s,n),p(!0),(navigator.clipboard||{writeText(e){return new Promise((t,n)=>{var r=document.createElement(`textarea`);r.style.position=`absolute`,r.style.opacity=`0`,r.style.left=`-99999999px`,r.value=e,document.body.appendChild(r),r.select(),document.execCommand(`copy`)?t():n(),r.remove()})}}).writeText(s).then(()=>{var e=setTimeout(()=>{p(!1),clearTimeout(e)},3e3)}).catch(e=>{})}},{render:_}=m,v=X(m,nf),y=Y({},v,s,g,{style:Y({},v.style,s.style,g.style)});return _&&typeof _==`function`&&_(Y({},y,{"data-copied":f}),{value:n,keyName:t,keys:a,parentValue:r})||(f?(0,j.jsx)(`svg`,Y({viewBox:`0 0 32 36`},y,{children:(0,j.jsx)(`path`,{d:`M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z`})})):(0,j.jsx)(`svg`,Y({viewBox:`0 0 32 36`},y,{children:(0,j.jsx)(`path`,{d:`M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z`})})))};rf.displayName=`JVR.Copied`;function af(){var e=(0,A.useRef)(null);return e.current===null&&(e.current=`custom-id-`+Math.random().toString(36).substr(2,9)),e.current}var of=e=>{var{keyName:t,value:n,expandKey:r=``,level:i,keys:a=[],parentValue:o}=e,s=hu(),{objectSortKeys:c,indentWidth:l,collapsed:u,shouldExpandNodeInitially:d}=Yu(),f=typeof u==`boolean`?u:typeof u==`number`?i>u:!1,p=s[r]??(d?!1:f),m=d&&d(!p,{value:n,keys:a,level:i,keyName:t,parentValue:o});if(d&&u===!1){if(s[r]===void 0&&!m)return null}else if(s[r]===void 0&&m)return null;if(p)return null;var h=Array.isArray(n)?Object.entries(n).map(e=>[Number(e[0]),e[1]]):Object.entries(n);return c&&(h=c===!0?h.sort((e,t)=>{var[n]=e,[r]=t;return typeof n==`string`&&typeof r==`string`?n.localeCompare(r):0}):h.sort((e,t)=>{var[n,r]=e,[i,a]=t;return typeof n==`string`&&typeof i==`string`?c(n,i,r,a):0})),(0,j.jsx)(`div`,{className:`w-rjv-wrap`,style:{borderLeft:`var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)`,paddingLeft:l,marginLeft:6},children:h.map((e,t)=>{var[r,o]=e;return(0,j.jsx)(cf,{parentValue:n,keyName:r,keys:[...a,r],value:o,level:i},t)})})};of.displayName=`JVR.KeyValues`;var sf=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:a}=Yu(),o=typeof t==`number`,s=(0,A.useRef)(null);ef({value:i,highlightUpdates:a,highlightContainer:s});var c={keyName:t,value:i,keys:r,parentValue:n};return(0,j.jsxs)(A.Fragment,{children:[(0,j.jsxs)(`span`,{ref:s,children:[(0,j.jsx)(sd,Y({isNumber:o,"data-placement":`left`},c)),(0,j.jsx)(Jd,Y({},c,{children:t})),(0,j.jsx)(sd,Y({isNumber:o,"data-placement":`right`},c))]}),(0,j.jsx)(ld,Y({},c))]})};sf.displayName=`JVR.KayName`;var cf=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:a=[]}=e,o=uu(),s=af(),c=Array.isArray(n),l=n instanceof Set,u=n instanceof Map,d=n instanceof Date,f=n instanceof URL;return n&&typeof n==`object`&&!c&&!l&&!u&&!d&&!f||c||l||u?(0,j.jsx)(Sf,{keyName:t,value:l?Array.from(n):u?Object.fromEntries(n):n,parentValue:r,initialValue:n,keys:a,level:i+1}):(0,j.jsxs)(Qd,Y({className:`w-rjv-line`,value:n,keyName:t,keys:a,parentValue:r},{onMouseEnter:()=>o({[s]:!0}),onMouseLeave:()=>o({[s]:!1})},{children:[(0,j.jsx)(sf,{keyName:t,value:n,keys:a,parentValue:r}),(0,j.jsx)(Hd,{keyName:t,value:n,keys:a}),(0,j.jsx)(rf,{keyName:t,value:n,keys:a,parentValue:r,expandKey:s})]}))};cf.displayName=`JVR.KeyValuesItem`;var lf=[`value`,`keyName`],uf=[`as`,`render`],df=e=>{var{CountInfoExtra:t={}}=Vu();return Gd(t,e,`CountInfoExtra`),null};df.displayName=`JVR.CountInfoExtra`;var ff=e=>{var{value:t={},keyName:n}=e,r=X(e,lf),{CountInfoExtra:i={}}=Vu(),{as:a,render:o}=i,s=X(i,uf);if(!o&&!s.children)return null;var c=a||`span`,l=o&&typeof o==`function`,u=Y({},s,r);return l&&o(u,{value:t,keyName:n})||(0,j.jsx)(c,Y({},u))};ff.displayName=`JVR.CountInfoExtraComps`;var pf=[`value`,`keyName`],mf=[`as`,`render`],hf=e=>{var{CountInfo:t={}}=Vu();return Gd(t,e,`CountInfo`),null};hf.displayName=`JVR.CountInfo`;var gf=e=>{var{value:t={},keyName:n}=e,r=X(e,pf),{displayObjectSize:i}=Yu(),{CountInfo:a={}}=Vu();if(!i)return null;var{as:o,render:s}=a,c=X(a,mf),l=o||`span`;c.style=Y({},c.style,e.style);var u=Object.keys(t).length;c.children||=u+` item`+(u===1?``:`s`);var d=Y({},c,r);return s&&typeof s==`function`&&s(Y({},d,{"data-length":u}),{value:t,keyName:n})||(0,j.jsx)(l,Y({},d))};gf.displayName=`JVR.CountInfoComp`;var _f=[`as`,`render`],vf=e=>{var{Ellipsis:t={}}=Vu();return Gd(t,e,`Ellipsis`),null};vf.displayName=`JVR.Ellipsis`;var yf=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=Vu(),{as:a,render:o}=i,s=X(i,_f),c=a||`span`;return o&&typeof o==`function`&&o(Y({},s,{"data-expanded":t}),{value:n,keyName:r})||(!t||typeof n==`object`&&Object.keys(n).length==0?null:(0,j.jsx)(c,Y({},s)))};yf.displayName=`JVR.EllipsisComp`;var bf=e=>{var{keyName:t,expandKey:n,keys:r=[],initialValue:i,value:a,parentValue:o,level:s}=e,c=hu(),l=vu(),{onExpand:u,collapsed:d,shouldExpandNodeInitially:f}=Yu(),p=typeof d==`boolean`?d:typeof d==`number`?s>d:!1,m=c[n]??(f?!1:p),h=f&&f(!m,{value:a,keys:r,level:s,keyName:t,parentValue:o});c[n]===void 0&&f&&(m=!h);var g=()=>{var e={expand:!m,value:a,keyid:n,keyName:t};u&&u(e),l({[n]:e.expand})},_={display:`inline-flex`,alignItems:`center`},v={transform:`rotate(`+(m?`-90`:`0`)+`deg)`,transition:`all 0.3s`},y=Object.keys(a).length,b=typeof a==`object`,x=Array.isArray(a),S=a instanceof Set,C=y!==0&&(x||S||b),w={style:_};C&&(w.onClick=g);var T={keyName:t,value:a,keys:r,parentValue:o};return(0,j.jsxs)(`span`,Y({},w,{children:[C&&(0,j.jsx)(ud,Y({style:v,expandKey:n},T)),(t||typeof t==`number`)&&(0,j.jsx)(sf,Y({},T)),(0,j.jsx)(Dd,{value:i,keyName:t}),(0,j.jsx)(Od,{value:i,keyName:t}),(0,j.jsx)(dd,Y({isBrackets:x||S},T)),(0,j.jsx)(yf,{keyName:t,value:a,isExpanded:m}),(0,j.jsx)(fd,Y({isVisiable:m||!C,isBrackets:x||S},T)),(0,j.jsx)(gf,{value:a,keyName:t}),(0,j.jsx)(ff,{value:a,keyName:t}),(0,j.jsx)(rf,{keyName:t,value:a,expandKey:n,parentValue:o,keys:r})]}))};bf.displayName=`JVR.NestedOpen`;var xf=[`className`,`children`,`parentValue`,`keyid`,`level`,`value`,`initialValue`,`keys`,`keyName`],Sf=(0,A.forwardRef)((e,t)=>{var{className:n=``,parentValue:r,level:i=1,value:a,initialValue:o,keys:s,keyName:c}=e,l=X(e,xf),u=uu(),d=af();return(0,j.jsxs)(`div`,Y({className:[n,`w-rjv-inner`].filter(Boolean).join(` `),ref:t},l,{onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})},{children:[(0,j.jsx)(bf,{expandKey:d,value:a,level:i,keys:s,parentValue:r,keyName:c,initialValue:o}),(0,j.jsx)(of,{expandKey:d,value:a,level:i,keys:s,parentValue:r,keyName:c}),(0,j.jsx)(pd,{expandKey:d,value:a,level:i,keys:s,parentValue:r,keyName:c})]}))});Sf.displayName=`JVR.Container`;var Cf=e=>{var{BraceLeft:t={}}=Nu();return Ud(t,e,`BraceLeft`),null};Cf.displayName=`JVR.BraceLeft`;var wf=e=>{var{BraceRight:t={}}=Nu();return Ud(t,e,`BraceRight`),null};wf.displayName=`JVR.BraceRight`;var Tf=e=>{var{BracketsLeft:t={}}=Nu();return Ud(t,e,`BracketsLeft`),null};Tf.displayName=`JVR.BracketsLeft`;var Ef=e=>{var{BracketsRight:t={}}=Nu();return Ud(t,e,`BracketsRight`),null};Ef.displayName=`JVR.BracketsRight`;var Df=e=>{var{Arrow:t={}}=Nu();return Ud(t,e,`Arrow`),null};Df.displayName=`JVR.Arrow`;var Of=e=>{var{Colon:t={}}=Nu();return Ud(t,e,`Colon`),null};Of.displayName=`JVR.Colon`;var kf=e=>{var{Quote:t={}}=Nu();return Ud(t,e,`Quote`),null};kf.displayName=`JVR.Quote`;var Af=e=>{var{ValueQuote:t={}}=Nu();return Ud(t,e,`ValueQuote`),null};Af.displayName=`JVR.ValueQuote`;var jf=e=>{var{Bigint:t={}}=Cu();return Wd(t,e,`Bigint`),null};jf.displayName=`JVR.Bigint`;var Mf=e=>{var{Date:t={}}=Cu();return Wd(t,e,`Date`),null};Mf.displayName=`JVR.Date`;var Nf=e=>{var{False:t={}}=Cu();return Wd(t,e,`False`),null};Nf.displayName=`JVR.False`;var Pf=e=>{var{Float:t={}}=Cu();return Wd(t,e,`Float`),null};Pf.displayName=`JVR.Float`;var Ff=e=>{var{Int:t={}}=Cu();return Wd(t,e,`Int`),null};Ff.displayName=`JVR.Int`;var If=e=>{var{Map:t={}}=Cu();return Wd(t,e,`Map`),null};If.displayName=`JVR.Map`;var Lf=e=>{var{Nan:t={}}=Cu();return Wd(t,e,`Nan`),null};Lf.displayName=`JVR.Nan`;var Rf=e=>{var{Null:t={}}=Cu();return Wd(t,e,`Null`),null};Rf.displayName=`JVR.Null`;var zf=e=>{var{Set:t={}}=Cu();return Wd(t,e,`Set`),null};zf.displayName=`JVR.Set`;var Bf=e=>{var{Str:t={}}=Cu();return Wd(t,e,`Str`),null};Bf.displayName=`JVR.StringText`;var Vf=e=>{var{True:t={}}=Cu();return Wd(t,e,`True`),null};Vf.displayName=`JVR.True`;var Hf=e=>{var{Undefined:t={}}=Cu();return Wd(t,e,`Undefined`),null};Hf.displayName=`JVR.Undefined`;var Uf=e=>{var{Url:t={}}=Cu();return Wd(t,e,`Url`),null};Uf.displayName=`JVR.Url`;var Wf=e=>{var{Copied:t={}}=Vu();return Gd(t,e,`Copied`),null};Wf.displayName=`JVR.Copied`;var Gf=[`className`,`style`,`value`,`children`,`collapsed`,`shouldExpandNodeInitially`,`indentWidth`,`displayObjectSize`,`shortenTextAfterLength`,`stringEllipsis`,`highlightUpdates`,`enableClipboard`,`displayDataTypes`,`objectSortKeys`,`onExpand`,`onCopied`,`beforeCopy`],$=(0,A.forwardRef)((e,t)=>{var{className:n=``,style:r,value:i,children:a,collapsed:o=!1,shouldExpandNodeInitially:s,indentWidth:c=15,displayObjectSize:l=!0,shortenTextAfterLength:u=30,stringEllipsis:d,highlightUpdates:f=!0,enableClipboard:p=!0,displayDataTypes:m=!0,objectSortKeys:h=!1,onExpand:g,onCopied:_,beforeCopy:v}=e,y=X(e,Gf),b=Y({lineHeight:1.4,fontFamily:`var(--w-rjv-font-family, Menlo, monospace)`,color:`var(--w-rjv-color, #002b36)`,backgroundColor:`var(--w-rjv-background-color, #00000000)`,fontSize:13},r),x=[`w-json-view-container`,`w-rjv`,n].filter(Boolean).join(` `);return(0,j.jsxs)(Xu,{initialState:{value:i,objectSortKeys:h,indentWidth:c,shouldExpandNodeInitially:o===!1?s:void 0,displayObjectSize:l,collapsed:o,enableClipboard:p,shortenTextAfterLength:u,stringEllipsis:d,highlightUpdates:f,onCopied:_,onExpand:g,beforeCopy:v},initialTypes:{displayDataTypes:m},children:[(0,j.jsx)(Sf,Y({value:i},y,{ref:t,className:x,style:b})),a]})});$.Bigint=jf,$.Date=Mf,$.False=Nf,$.Float=Pf,$.Int=Ff,$.Map=If,$.Nan=Lf,$.Null=Rf,$.Set=zf,$.String=Bf,$.True=Vf,$.Undefined=Hf,$.Url=Uf,$.ValueQuote=Af,$.Arrow=Df,$.Colon=Of,$.Quote=kf,$.Ellipsis=vf,$.BraceLeft=Cf,$.BraceRight=wf,$.BracketsLeft=Tf,$.BracketsRight=Ef,$.Copied=Wf,$.CountInfo=hf,$.CountInfoExtra=df,$.KeyName=qd,$.Row=Zd,$.displayName=`JVR.JsonView`;var Kf={"--w-rjv-font-family":`monospace`,"--w-rjv-color":`#002b36`,"--w-rjv-key-string":`#002b36`,"--w-rjv-background-color":`#ffffff`,"--w-rjv-line-color":`#ebebeb`,"--w-rjv-arrow-color":`var(--w-rjv-color)`,"--w-rjv-edit-color":`var(--w-rjv-color)`,"--w-rjv-info-color":`#0000004d`,"--w-rjv-update-color":`#ebcb8b`,"--w-rjv-copied-color":`#002b36`,"--w-rjv-copied-success-color":`#28a745`,"--w-rjv-curlybraces-color":`#236a7c`,"--w-rjv-colon-color":`#002b36`,"--w-rjv-brackets-color":`#236a7c`,"--w-rjv-quotes-color":`var(--w-rjv-key-string)`,"--w-rjv-quotes-string-color":`var(--w-rjv-type-string-color)`,"--w-rjv-type-string-color":`#cb4b16`,"--w-rjv-type-int-color":`#268bd2`,"--w-rjv-type-float-color":`#859900`,"--w-rjv-type-bigint-color":`#268bd2`,"--w-rjv-type-boolean-color":`#2aa198`,"--w-rjv-type-date-color":`#586e75`,"--w-rjv-type-url-color":`#0969da`,"--w-rjv-type-null-color":`#d33682`,"--w-rjv-type-nan-color":`#859900`,"--w-rjv-type-undefined-color":`#586e75`};function qf(e){let t=Object.keys(e),n=t.length>0?t[0]:void 0;return(t,r,i={})=>{if(!n)return i.default??t;let a=e[r]??e[n],o=t.split(`.`),s=a;for(let e of o){if(typeof s==`string`||!s||!Object.hasOwn(s,e))return i.default??t;s=s[e]}return typeof s==`string`?s:i.default??t}}function Jf({siteSchema:e,schemaTranslate:t}){return(0,j.jsx)(`div`,{className:`Tree`,children:(0,j.jsx)(`ul`,{children:(0,j.jsx)(Yf,{schema:e,schemaT:t,typeName:`home`,displayedNodeTypeNames:new Set})})})}function Yf({schema:e,schemaT:t,typeName:n,displayedNodeTypeNames:r}){let{i18n:i}=at(),a=Xf(e,n);if(!a)return null;let o=a.routingChildren??[],s=a.regularChildren??[],c=[...o,...s],l=t(`nodeTypes.${n}.label`,i.language,{default:n});return r.has(n)?(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{className:`Tree-label`,children:l}),(0,j.jsx)(`span`,{className:`Tree-type`,children:n})]}):(r.add(n),(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{className:`Tree-label`,children:l}),(0,j.jsx)(`span`,{className:`Tree-type`,children:n}),c.length>0&&(0,j.jsx)(`ul`,{children:c.map(n=>(0,j.jsx)(Yf,{schema:e,schemaT:t,typeName:n,displayedNodeTypeNames:r},n))})]}))}function Xf(e,t){return e.nodeTypes?.find(e=>e.kind===`document`&&e.typeName===t)}function Zf({step:e}){let{t}=at(),[n,r]=(0,A.useState)(`tree`),{siteSchema:i,l10n:a}=e,o=qf(a);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(Bt,{value:n,onChange:e=>{r(e)},className:`SgSection-tabs`,children:[(0,j.jsx)(Vt,{value:`tree`,label:t(`treeView`)}),(0,j.jsx)(Vt,{value:`schema`,label:t(`siteSchema`)}),(0,j.jsx)(Vt,{value:`locales`,label:t(`labels`)})]}),n===`tree`&&(0,j.jsx)(Jf,{siteSchema:i,schemaTranslate:o}),n===`locales`&&(0,j.jsxs)($,{value:a,style:Kf,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,children:[(0,j.jsx)($.KeyName,{render:(e,{parentValue:t})=>Array.isArray(t)&&Number.isFinite(e.children)?(0,j.jsx)(`span`,{}):(0,j.jsx)(`span`,{...e})}),(0,j.jsx)($.Colon,{render:(e,{parentValue:t})=>Array.isArray(t)&&e.children===`:`?(0,j.jsx)(`span`,{}):(0,j.jsx)(`span`,{...e})})]}),n===`schema`&&(0,j.jsxs)($,{value:i,style:Kf,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:(e,t)=>t.keyName!==`plugins`,children:[(0,j.jsx)($.KeyName,{render:(e,{parentValue:t})=>Array.isArray(t)&&Number.isFinite(e.children)?(0,j.jsx)(`span`,{}):(0,j.jsx)(`span`,{...e})}),(0,j.jsx)($.Colon,{render:(e,{parentValue:t})=>Array.isArray(t)&&e.children===`:`?(0,j.jsx)(`span`,{}):(0,j.jsx)(`span`,{...e})})]})]})}function Qf(e){return(0,j.jsx)(Ri,{children:(0,j.jsx)($f,{...e})})}function $f({step:e}){let{t}=at(),{appendNewStep:n}=Sc(),[r,i]=(0,A.useState)(!1),[a,o]=(0,A.useState)(!1),s=po(),{showAlert:c}=zi();return(0,j.jsxs)(`div`,{className:`SgSection`,children:[(0,j.jsx)(`h1`,{className:`SgSection-title`,children:t(`stepTitle`,{stepNumber:e.stepNumber,kind:t(e.kind)})}),(0,j.jsx)(Zf,{step:e}),e.explanation&&(0,j.jsx)(tu,{content:e.explanation,title:t(`explanation`)}),!r&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Bi,{}),(0,j.jsxs)(`div`,{className:`SgActions`,children:[(0,j.jsx)(Ft,{severity:`warning`,onClick:()=>i(!0),children:t(`modifySchema`)}),(0,j.jsx)(Ft,{onClick:()=>o(!0),children:t(`generateTheWebsite`)})]})]}),r&&(0,j.jsxs)(`div`,{className:`ModifySection`,children:[(0,j.jsx)(`h3`,{className:`ModifySection-title`,children:t(`modifySchema`)}),(0,j.jsx)(nc,{placeholder:t(`updatePromptPlaceholder`),submitLabel:t(`applyChanges`),onSubmit:async r=>{let a=fc();if(!a){c(t(`sessionExpired`),{severity:`error`});return}let o=await tc({command:`updateSiteSchema`,sessionToken:a,prompt:r,fromStepNumber:e.stepNumber});o.success?(i(!1),n(o.result),s(`/step/${o.result.stepNumber}`)):c(o.userMessage??t(`promptSubmissionFailed`),{severity:`error`})},onCancel:()=>i(!1)})]}),(0,j.jsx)(nu,{isOpen:a,title:t(`generateTheWebsite`),message:t(`aboutToGenerateWebsite`),confirmLabel:t(`confirm`),onConfirm:async({withSampleData:r})=>{let i=fc();if(!i){c(t(`sessionExpired`),{severity:`error`});return}let a=await tc({command:`generateSite`,sessionToken:i,fromStepNumber:e.stepNumber,withSampleData:r});a.success&&a.result?(o(!1),n(a.result),s(`/step/${a.result.stepNumber}`)):c(t(`generationFailed`),{severity:`error`})},onCancel:()=>o(!1)})]})}function ep({step:e}){let{t}=at();return(0,j.jsxs)(`div`,{className:`SgSection`,children:[(0,j.jsx)(`h1`,{className:`SgSection-title`,children:t(`stepTitle`,{stepNumber:e.stepNumber,kind:t(e.kind)})}),(0,j.jsx)(It,{severity:`error`,title:t(`stepFailed`),children:e.explanation?(0,j.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.explanation}}):t(`unknownError`)})]})}function tp(e){return(0,j.jsx)(Ri,{children:(0,j.jsx)(np,{...e})})}function np({step:e}){let{t}=at(),{showError:n}=zi(),r=`${e.adminUiUrl}?email=${encodeURIComponent(e.loginEmail)}&unsafe-password=${encodeURIComponent(e.loginPassword)}&local=1`;return(0,j.jsxs)(`div`,{className:`SgSection GeneratedSite`,children:[(0,j.jsx)(`h1`,{className:`SgSection-title`,children:t(`generatedSite`)}),(0,j.jsx)(Bi,{}),e.status===`pending`&&(0,j.jsxs)(`div`,{className:`GeneratedSite-pending`,children:[(0,j.jsx)(Lt,{}),(0,j.jsx)(`p`,{children:t(`generatingContent`)})]}),e.explanation&&(0,j.jsx)(tu,{content:e.explanation,title:t(`explanation`)}),(0,j.jsxs)(`div`,{className:`GeneratedSite-credentials`,children:[(0,j.jsxs)(`div`,{className:`GeneratedSite-field`,children:[(0,j.jsx)(`span`,{className:`GeneratedSite-label`,children:t(`loginEmail`)}),(0,j.jsx)(`div`,{className:`GeneratedSite-value`,children:(0,j.jsx)(`code`,{children:e.loginEmail})})]}),(0,j.jsxs)(`div`,{className:`GeneratedSite-field`,children:[(0,j.jsx)(`span`,{className:`GeneratedSite-label`,children:t(`loginPassword`)}),(0,j.jsx)(`div`,{className:`GeneratedSite-value`,children:(0,j.jsx)(`code`,{children:e.loginPassword})})]}),(0,j.jsxs)(`div`,{className:`GeneratedSite-field`,children:[(0,j.jsx)(`span`,{className:`GeneratedSite-label`,children:t(`adminUrl`)}),(0,j.jsx)(`div`,{className:`GeneratedSite-value`,children:(0,j.jsx)(`code`,{children:e.adminUiUrl})})]}),(0,j.jsxs)(`div`,{className:`GeneratedSite-field`,children:[(0,j.jsx)(`span`,{className:`GeneratedSite-label`,children:t(`siteUrl`)}),(0,j.jsx)(`div`,{className:`GeneratedSite-value`,children:(0,j.jsx)(`code`,{children:e.siteUrl})})]})]}),(0,j.jsxs)(`div`,{className:`SgActions column`,children:[(0,j.jsx)(Ft,{as:`async`,severity:`secondary`,onClick:async()=>{let n=`
81
+ ${t(`siteGenerated`)}
82
+ ${t(`loginEmail`)}: ${e.loginEmail}
83
+ ${t(`loginPassword`)}: ${e.loginPassword}
84
+ ${t(`siteUrl`)}: ${e.siteUrl}
85
+ ${t(`adminUrl`)}: ${e.adminUiUrl}
86
+ ${t(`quickLoginUrl`)}: ${r}
87
+ `.trim();await navigator.clipboard.writeText(n)},insideFeedback:{label:t(`copied`),autoDismiss:!0},onError:n,children:t(`copyToClipboard`)}),(0,j.jsx)(Ft,{as:`a`,href:r,target:`_blank`,rel:`noopener noreferrer`,children:t(`openAdminUI`)})]})]})}function rp({step:e}){let{t}=at();return(0,j.jsxs)(`div`,{className:`SgSection`,children:[(0,j.jsx)(`h1`,{className:`SgSection-title`,children:t(`stepTitle`,{stepNumber:e.stepNumber,kind:t(e.kind)})}),(0,j.jsx)(It,{severity:`warning`,title:t(`stepNoEffect`),children:e.explanation?(0,j.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.explanation}}):t(`noChangesApplied`)})]})}function ip({step:e}){let{t}=at();return(0,j.jsxs)(`div`,{className:`SgSection`,children:[(0,j.jsx)(`h1`,{className:`SgSection-title`,children:t(`stepTitle`,{stepNumber:e.stepNumber,kind:t(e.kind)})}),(0,j.jsxs)(`div`,{className:`LoadingState`,children:[(0,j.jsx)(Lt,{}),e.currentActivity&&(0,j.jsxs)(`div`,{className:`LoadingState-status`,children:[(0,j.jsx)(`strong`,{children:t(`currentActivity`)}),(0,j.jsx)(`span`,{children:t(`activity.${e.currentActivity}`)})]})]}),e.explanation&&(0,j.jsx)(tu,{content:e.explanation,title:t(`explanation`)})]})}function ap({step:e}){if(e.status===`failed`)return(0,j.jsx)(ep,{step:e});if(e.status===`noEffect`)return(0,j.jsx)(rp,{step:e});if(e.kind===`initialSchema`||e.kind===`updateSchema`)return e.status===`pending`?(0,j.jsx)(ip,{step:e}):(0,j.jsx)(Qf,{step:e});if(e.kind===`generateSite`)return e.status===`pending`&&!kc(e)?(0,j.jsx)(ip,{step:e}):(0,j.jsx)(tp,{step:e});throw Error(`Unknown step kind: ${e.kind}`)}function op(){let e=po(),{stepNumber:t}=ho(),{workSession:n,setActiveStepNumber:r}=Sc(),i=t===void 0?void 0:Number.parseInt(t,10);if((0,A.useEffect)(()=>(r(i),()=>r(void 0)),[i,r]),zt(async()=>{n?.steps&&(n.steps.some(e=>e.stepNumber===i)||e(`/`))},[i,n,e]),!n?.steps)return null;let a=n.steps.find(e=>e.stepNumber===i);return a?(0,j.jsx)(ap,{step:a}):null}function sp(){let{i18n:e}=at();return(0,j.jsx)(`div`,{className:`LangSwitcher`,children:(0,j.jsxs)(`select`,{value:e.language,onChange:async t=>{let n=t.target.value;wc(),await e.changeLanguage(n);let r=fc();r&&await tc({command:`setLanguage`,sessionToken:r,language:n})},children:[(0,j.jsx)(`option`,{value:`en`,children:`English`}),(0,j.jsx)(`option`,{value:`fr`,children:`Français`})]})})}function cp({activeStepNumber:e}){let{t}=at(),n=po(),{workSession:r}=Sc(),i=()=>{n(`/`)},a=e=>{n(`/step/${e}`)},o=t=>t.stepNumber===e?`StepPill active`:t.status===`pending`?`StepPill loading`:`StepPill step`;return(0,j.jsxs)(`nav`,{className:`StepNav`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`StepPill new ${e===void 0?`active`:``}`,onClick:i,children:[`+ `,t(`new`)]}),r?.steps.map(e=>(0,j.jsxs)(`button`,{type:`button`,className:o(e),onClick:()=>a(e.stepNumber),children:[t(`stepNumber`,{stepNumber:e.stepNumber}),(0,j.jsx)(`span`,{className:`StepPill-tooltip`,children:t(e.kind)})]},e.stepNumber))]})}function lp({activeStepNumber:e}){return(0,j.jsx)(`header`,{className:`SgHeader`,children:(0,j.jsxs)(`div`,{className:`SgHeader-inner`,children:[(0,j.jsx)(cp,{activeStepNumber:e}),(0,j.jsx)(`div`,{className:`SgHeader-lang`,children:(0,j.jsx)(sp,{})})]})})}function up({sessionToken:e,onSessionExpired:t}){let{workSession:n,isLoading:r,error:i,activeStepNumber:a,setWorkSession:o,setIsLoading:s,setError:c,resetSession:l}=Sc();return(0,A.useEffect)(()=>()=>{vc()},[]),zt(async()=>{s(!0),c(void 0);try{let n=await tc({command:`loadWorkSession`,sessionToken:e});n.success&&n.result?(o(n.result),dt.changeLanguage(n.result.language)):(c(n.userMessage||`Failed to load session`),n.success||(l(),pc(),t()))}catch(e){c(`Error connecting to server`),console.error(e)}finally{s(!1)}},[e,o,s,c,t]),r?(0,j.jsx)(`main`,{className:`SgMain`,children:(0,j.jsx)(`div`,{className:`SgMain-inner`,children:(0,j.jsx)(`div`,{className:`LoadingState`,children:(0,j.jsx)(`div`,{className:`LoadingState-status`,children:(0,j.jsx)(`span`,{children:`Loading session...`})})})})}):i?(0,j.jsx)(`main`,{className:`SgMain`,children:(0,j.jsx)(`div`,{className:`SgMain-inner`,children:(0,j.jsx)(`div`,{className:`SgSection`,children:(0,j.jsx)(`div`,{className:`PaAlert error`,children:(0,j.jsx)(`div`,{className:`PaAlert-content`,children:i})})})})}):n?(0,j.jsxs)(ks,{children:[(0,j.jsx)(lp,{activeStepNumber:a}),(0,j.jsx)(`main`,{className:`SgMain`,children:(0,j.jsx)(`div`,{className:`SgMain-inner`,children:(0,j.jsxs)(Ho,{children:[(0,j.jsx)(Bo,{path:`/`,element:(0,j.jsx)(Ec,{})}),(0,j.jsx)(Bo,{path:`/step/:stepNumber`,element:(0,j.jsx)(op,{})}),(0,j.jsx)(Bo,{path:`*`,element:(0,j.jsx)(zo,{to:`/`,replace:!0})})]})})})]}):(0,j.jsx)(`main`,{className:`SgMain`,children:(0,j.jsx)(`div`,{className:`SgMain-inner`,children:(0,j.jsx)(`div`,{className:`LoadingState`,children:(0,j.jsx)(`div`,{className:`LoadingState-status`,children:(0,j.jsx)(`span`,{children:`Session not available.`})})})})})}function dp(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function fp(e={},t={}){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:dp(t[n])&&dp(e[n])&&Object.keys(t[n]).length>0&&fp(e[n],t[n])})}var pp={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:``},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function mp(){let e=typeof document<`u`?document:{};return fp(e,pp),e}var hp={document:pp,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return``}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>`u`||clearTimeout(e)}};function gp(){let e=typeof window<`u`?window:{};return fp(e,hp),e}function _p(e=``){return e.trim().split(` `).filter(e=>!!e.trim())}function vp(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function yp(e,t=0){return setTimeout(e,t)}function bp(){return Date.now()}function xp(e){let t=gp(),n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||=e.style,n}function Sp(e,t=`x`){let n=gp(),r,i,a,o=xp(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(`,`).length>6&&(i=i.split(`, `).map(e=>e.replace(`,`,`.`)).join(`, `)),a=new n.WebKitCSSMatrix(i===`none`?``:i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),r=a.toString().split(`,`)),t===`x`&&(i=n.WebKitCSSMatrix?a.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),t===`y`&&(i=n.WebKitCSSMatrix?a.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),i||0}function Cp(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function wp(e){return typeof window<`u`&&window.HTMLElement!==void 0?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Tp(...e){let t=Object(e[0]);for(let n=1;n<e.length;n+=1){let r=e[n];if(r!=null&&!wp(r)){let e=Object.keys(Object(r)).filter(e=>e!==`__proto__`&&e!==`constructor`&&e!==`prototype`);for(let n=0,i=e.length;n<i;n+=1){let i=e[n],a=Object.getOwnPropertyDescriptor(r,i);a!==void 0&&a.enumerable&&(Cp(t[i])&&Cp(r[i])?r[i].__swiper__?t[i]=r[i]:Tp(t[i],r[i]):!Cp(t[i])&&Cp(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:Tp(t[i],r[i])):t[i]=r[i])}}}return t}function Ep(e,t,n){e.style.setProperty(t,n)}function Dp({swiper:e,targetPosition:t,side:n}){let r=gp(),i=-e.translate,a=null,o,s=e.params.speed;e.wrapperEl.style.scrollSnapType=`none`,r.cancelAnimationFrame(e.cssModeFrameID);let c=t>i?`next`:`prev`,l=(e,t)=>c===`next`&&e>=t||c===`prev`&&e<=t,u=()=>{o=new Date().getTime(),a===null&&(a=o);let c=Math.max(Math.min((o-a)/s,1),0),d=i+(.5-Math.cos(c*Math.PI)/2)*(t-i);if(l(d,t)&&(d=t),e.wrapperEl.scrollTo({[n]:d}),l(d,t)){e.wrapperEl.style.overflow=`hidden`,e.wrapperEl.style.scrollSnapType=``,setTimeout(()=>{e.wrapperEl.style.overflow=``,e.wrapperEl.scrollTo({[n]:d})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Op(e,t=``){let n=gp(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function kp(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function Ap(e,t){let n=gp(),r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||=kp(e,t)),r}function jp(e){try{console.warn(e);return}catch{}}function Mp(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:_p(t)),n}function Np(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Pp(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Fp(e,t){return gp().getComputedStyle(e,null).getPropertyValue(t)}function Ip(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Lp(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Rp(e,t,n){let r=gp();return n?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}function zp(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Bp(e,t=``){typeof trustedTypes<`u`?e.innerHTML=trustedTypes.createPolicy(`html`,{createHTML:e=>e}).createHTML(t):e.innerHTML=t}function Vp(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=Op(e.el,`.${r[i]}`)[0];a||(a=Mp(`div`,r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}}),n}function Hp(e=``){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,`\\$1`).replace(/ /g,`.`)}`}function Up({swiper:e,extendParams:t,on:n,emit:r}){let i=`swiper-pagination`;t({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(t,n){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&(t.classList.add(`${r}-${n}`),t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&t.classList.add(`${r}-${n}-${n}`)))}function l(e,t,n){if(e%=n,t%=n,t===e+1)return`next`;if(t===e-1)return`previous`}function u(t){let n=t.target.closest(Hp(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();let r=Ip(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;let t=l(e.realIndex,r,e.slides.length);t===`next`?e.slideNext():t===`previous`?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function d(){let t=e.rtl,n=e.params.pagination;if(s())return;let i=e.pagination.el;i=zp(i);let l,u,d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,f=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,l=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):e.snapIndex===void 0?(u=e.previousIndex||0,l=e.activeIndex||0):(l=e.snapIndex,u=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s,d,f;if(n.dynamicBullets&&(a=Rp(r[0],e.isHorizontal()?`width`:`height`,!0),i.forEach(t=>{t.style[e.isHorizontal()?`width`:`height`]=`${a*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&u!==void 0&&(o+=l-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(l-o,0),d=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(d+s)/2),r.forEach(e=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e).flat();e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=Ip(t);r===l?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&(r>=s&&r<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&c(t,`prev`),r===d&&c(t,`next`))});else{let t=r[l];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===l?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[d];for(let e=s;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));c(e,`prev`),c(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-f*a,s=t?`right`:`left`;r.forEach(t=>{t.style[e.isHorizontal()?s:`top`]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll(Hp(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(l+1)}),t.querySelectorAll(Hp(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(f)})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(l+1)/f,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll(Hp(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(Bp(t,n.renderCustom(e,l+1,f)),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function f(){let t=e.params.pagination;if(s())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,i=e.pagination.el;i=zp(i);let a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&Bp(n,a||``),t.type===`bullets`&&e.pagination.bullets.push(...n.querySelectorAll(Hp(t.bulletClass)))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function p(){e.params.pagination=Vp(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=e.params.pagination;if(!t.el)return;let n;typeof t.el==`string`&&e.isElement&&(n=e.el.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||=t.el,!(!n||n.length===0)&&(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>Lp(t,`.swiper`)[0]===e.el))),Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=zp(n),n.forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(...(t.clickableClass||``).split(` `)),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,u),e.enabled||n.classList.add(t.lockClass)}))}function m(){let t=e.params.pagination;if(s())return;let n=e.pagination.el;n&&(n=zp(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||``).split(` `)),n.removeEventListener(`click`,u))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:n}=e.pagination;n=zp(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{e.params.pagination.enabled===!1?g():(p(),f(),d())}),n(`activeIndexChange`,()=>{e.snapIndex===void 0&&d()}),n(`snapIndexChange`,()=>{d()}),n(`snapGridLengthChange`,()=>{f(),d()}),n(`destroy`,()=>{m()}),n(`enable disable`,()=>{let{el:t}=e.pagination;t&&(t=zp(t),t.forEach(t=>t.classList[e.enabled?`remove`:`add`](e.params.pagination.lockClass)))}),n(`lock unlock`,()=>{d()}),n(`click`,(t,n)=>{let i=n.target,a=zp(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;a[0].classList.contains(e.params.pagination.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=zp(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),d()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=zp(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:h,disable:g,render:f,update:d,init:p,destroy:m})}var Wp;function Gp(){let e=gp(),t=mp();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Kp(){return Wp||=Gp(),Wp}var qp;function Jp({userAgent:e}={}){let t=Kp(),n=gp(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/),l=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r===`Win32`,p=r===`MacIntel`;return!l&&p&&t.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${o}x${s}`)>=0&&(l=i.match(/(Version)\/([\d.]+)/),l||=[0,1,`13_0_0`],p=!1),c&&!f&&(a.os=`android`,a.android=!0),(l||d||u)&&(a.os=`ios`,a.ios=!0),a}function Yp(e={}){return qp||=Jp(e),qp}var Xp;function Zp(){let e=gp(),t=Yp(),n=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(r()){let t=String(e.navigator.userAgent);if(t.includes(`Version/`)){let[e,r]=t.split(`Version/`)[1].split(` `)[0].split(`.`).map(e=>Number(e));n=e<16||e===16&&r<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r(),o=a||i&&t.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function Qp(){return Xp||=Zp(),Xp}function $p({swiper:e,on:t,emit:n}){let r=gp(),i=null,a=null,o=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(t=>{a=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,a=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,a=n?n.height:(t[0]||t).blockSize)}),(i!==n||a!==r)&&o()})}),i.observe(e.el))},c=()=>{a&&r.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},l=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&r.ResizeObserver!==void 0){s();return}r.addEventListener(`resize`,o),r.addEventListener(`orientationchange`,l)}),t(`destroy`,()=>{c(),r.removeEventListener(`resize`,o),r.removeEventListener(`orientationchange`,l)})}function em({swiper:e,extendParams:t,on:n,emit:r}){let i=[],a=gp(),o=(t,n={})=>{let o=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(t.length===1){r(`observerUpdate`,t[0]);return}let n=function(){r(`observerUpdate`,t[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});o.observe(t,{attributes:n.attributes===void 0?!0:n.attributes,childList:e.isElement||(n.childList===void 0?!0:n).childList,characterData:n.characterData===void 0?!0:n.characterData}),i.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=Lp(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}var tm={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]==`string`||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function nm(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Fp(r,`padding-left`)||0,10)-parseInt(Fp(r,`padding-right`)||0,10),n=n-parseInt(Fp(r,`padding-top`)||0,10)-parseInt(Fp(r,`padding-bottom`)||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function rm(){let e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}let n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:o}=e,s=e.virtual&&n.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,l=Op(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:l.length,d=[],f=[],p=[],m=n.slidesOffsetBefore;typeof m==`function`&&(m=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h==`function`&&(h=n.slidesOffsetAfter.call(e));let g=e.snapGrid.length,_=e.slidesGrid.length,v=e.size-m-h,y=n.spaceBetween,b=-m,x=0,S=0;if(v===void 0)return;typeof y==`string`&&y.indexOf(`%`)>=0?y=parseFloat(y.replace(`%`,``))/100*v:typeof y==`string`&&(y=parseFloat(y)),e.virtualSize=-y-m-h,l.forEach(e=>{a?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),n.centeredSlides&&n.cssMode&&(Ep(r,`--swiper-centered-offset-before`,``),Ep(r,`--swiper-centered-offset-after`,``)),n.cssMode&&(Ep(r,`--swiper-slides-offset-before`,`${m}px`),Ep(r,`--swiper-slides-offset-after`,`${h}px`));let C=n.grid&&n.grid.rows>1&&e.grid;C?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let w,T=n.slidesPerView===`auto`&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>n.breakpoints[e].slidesPerView!==void 0).length>0;for(let r=0;r<u;r+=1){w=0;let i=l[r];if(!(i&&(C&&e.grid.updateSlide(r,i,l),Fp(i,`display`)===`none`))){if(s&&n.slidesPerView===`auto`)n.virtual.slidesPerViewAutoSlideSize&&(w=n.virtual.slidesPerViewAutoSlideSize),w&&i&&(n.roundLengths&&(w=Math.floor(w)),i.style[e.getDirectionLabel(`width`)]=`${w}px`);else if(n.slidesPerView===`auto`){T&&(i.style[e.getDirectionLabel(`width`)]=``);let r=getComputedStyle(i),a=i.style.transform,o=i.style.webkitTransform;if(a&&(i.style.transform=`none`),o&&(i.style.webkitTransform=`none`),n.roundLengths)w=e.isHorizontal()?Rp(i,`width`,!0):Rp(i,`height`,!0);else{let e=t(r,`width`),n=t(r,`padding-left`),a=t(r,`padding-right`),o=t(r,`margin-left`),s=t(r,`margin-right`),c=r.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)w=e+o+s;else{let{clientWidth:t,offsetWidth:r}=i;w=e+n+a+o+s+(r-t)}}a&&(i.style.transform=a),o&&(i.style.webkitTransform=o),n.roundLengths&&(w=Math.floor(w))}else w=(v-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),i&&(i.style[e.getDirectionLabel(`width`)]=`${w}px`);i&&(i.swiperSlideSize=w),p.push(w),n.centeredSlides?(b=b+w/2+x/2+y,x===0&&r!==0&&(b=b-v/2-y),r===0&&(b=b-v/2-y),Math.abs(b)<1/1e3&&(b=0),n.roundLengths&&(b=Math.floor(b)),S%n.slidesPerGroup===0&&d.push(b),f.push(b)):(n.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&d.push(b),f.push(b),b=b+w+y),e.virtualSize+=w+y,x=w,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,v)+h,a&&o&&(n.effect===`slide`||n.effect===`coverflow`)&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+y}px`),C&&e.grid.updateWrapperSize(w,d),!n.centeredSlides){let t=n.slidesPerView!==`auto`&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView===`auto`||t),i=d.length;if(r){let e;if(n.slidesPerView===`auto`){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?y:0),t<=v);--n)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}let a=[];for(let t=0;t<d.length;t+=1){let o=d[t];n.roundLengths&&(o=Math.floor(o)),r?t<=i&&a.push(o):d[t]<=e.virtualSize-v&&a.push(o)}d=a,Math.floor(e.virtualSize-v)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-v))}if(s&&n.loop){let t=p[0]+y;if(n.slidesPerGroup>1){let r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(d.length===0&&(d=[0]),y!==0){let t=e.isHorizontal()&&a?`marginLeft`:e.getDirectionLabel(`marginRight`);l.filter((e,t)=>!n.cssMode||n.loop?!0:t!==l.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(y||0)}),e-=y;let t=e>v?e-v:0;d=d.map(e=>e<=0?-m:e>t?t+h:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(y||0)}),e-=y,e<v){let t=(v-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:l,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ep(r,`--swiper-centered-offset-before`,`${-d[0]}px`),Ep(r,`--swiper-centered-offset-after`,`${e.size/2-p[p.length-1]/2}px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit(`slidesLengthChange`),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),f.length!==_&&e.emit(`slidesGridLengthChange`),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!s&&!n.cssMode&&(n.effect===`slide`||n.effect===`fade`)){let t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}}function im(e){let t=this,n=[],r=t.virtual&&t.params.virtual.enabled,i=0,a;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){let e=t.activeIndex+a;if(e>t.slides.length&&!r)break;n.push(o(e))}else n.push(o(t.activeIndex));for(a=0;a<n.length;a+=1)if(n[a]!==void 0){let e=n[a].offsetHeight;i=e>i?e:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function am(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}var om=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function sm(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);let u=(o+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),f=-(o-l),p=f+t.slidesSizesGrid[e],m=f>=0&&f<=t.size-t.slidesSizesGrid[e],h=f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size;h&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e)),om(c,h,n.slideVisibleClass),om(c,m,n.slideFullyVisibleClass),c.progress=i?-u:u,c.originalProgress=i?-d:d}}function cm(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=t,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}var lm=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function um(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,s=e=>Op(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0],c,l,u;if(a)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${t}"]`)}else c=s(`[data-swiper-slide-index="${i}"]`);else o?(c=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),l=t.find(e=>e.column===i-1)):c=t[i];c&&(o||(u=Pp(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),l=Np(c,`.${n.slideClass}, swiper-slide`)[0],n.loop)),t.forEach(e=>{lm(e,e===c,n.slideActiveClass),lm(e,e===u,n.slideNextClass),lm(e,e===l,n.slidePrevClass)}),e.emitSlidesClasses()}var dm=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},fm=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},pm=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{a.includes(t.column)&&fm(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&fm(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&fm(e,r)};function mm(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function hm(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c=e,l,u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(c===void 0&&(c=mm(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop){l!==s&&(t.snapIndex=l,t.emit(`snapIndexChange`));return}if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(c);return}let d=t.grid&&i.grid&&i.grid.rows>1,f;if(t.virtual&&i.virtual.enabled)f=i.loop?u(c):c;else if(d){let e=t.slides.find(e=>e.column===c),n=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){let e=t.slides[c].getAttribute(`data-swiper-slide-index`);f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:c}),t.initialized&&pm(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit(`realIndexChange`),t.emit(`slideChange`))}function gm(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let a=!1,o;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}}if(i&&a)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute(`data-swiper-slide-index`),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var _m={updateSize:nm,updateSlides:rm,updateAutoHeight:im,updateSlidesOffset:am,updateSlidesProgress:sm,updateProgress:cm,updateSlidesClasses:um,updateActiveIndex:hm,updateClickedSlide:gm};function vm(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=Sp(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function ym(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function bm(){return-this.snapGrid[0]}function xm(){return-this.snapGrid[this.snapGrid.length-1]}function Sm(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();if(t===0)s[e?`scrollLeft`:`scrollTop`]=-u;else{if(!a.support.smoothScroll)return Dp({swiper:a,targetPosition:-u,side:e?`left`:`top`}),!0;s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`})}return!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var Cm={getTranslate:vm,setTranslate:ym,minTranslate:bm,maxTranslate:xm,translateTo:Sm};function wm(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)}function Tm({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;o||=i>a?`next`:i<a?`prev`:`reset`,e.emit(`transition${r}`),t&&o===`reset`?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Em(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Tm({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}function Dm(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Tm({swiper:n,runCallbacks:e,direction:t,step:`End`}))}var Om={setTransition:wm,transitionStart:Em,transitionEnd:Dm};function km(e=0,t,n=!0,r,i){typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(!m&&!r&&!i||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;t===void 0&&(t=a.params.speed);let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(_*100),n=Math.floor(l[e]*100),r=Math.floor(l[e+1]*100);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_);let v;v=o>d?`next`:o<d?`prev`:`reset`;let y=a.virtual&&a.params.virtual.enabled;if(!(y&&i)&&(f&&-_===a.translate||!f&&_===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;if(t===0)y&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?`scrollLeft`:`scrollTop`]=n})):p[e?`scrollLeft`:`scrollTop`]=n,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return Dp({swiper:a,targetPosition:n,side:e?`left`:`top`}),!0;p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`})}return!0}let b=Qp().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0}function Am(e=0,t,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;t===void 0&&(t=i.params.speed);let a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o+=i.virtual.slidesBefore;else{let e;if(a){let t=o*i.params.grid.rows;e=i.slides.find(e=>e.getAttribute(`data-swiper-slide-index`)*1===t).column}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:c}=i.params,l=n||!!s||!!c,u=i.params.slidesPerView;u===`auto`?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),l&&u%2==0&&(u+=1));let d=t-e<u;if(l&&(d||=e<Math.ceil(u/2)),r&&l&&i.params.slidesPerView!==`auto`&&!a&&(d=!1),d){let n=l?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:n,slideTo:!0,activeSlideIndex:n===`next`?e+1:e-t+1,slideRealIndex:n===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows;o=i.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e).column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function jm(e,t=!0,n){let r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;e===void 0&&(e=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:`next`}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function Mm(e,t=!0,n){let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c||r.destroyed)return r;e===void 0&&(e=r.params.speed);let u=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}let d=s?r.translate:-r.translate;function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=f(d),m=a.map(e=>f(e)),h=i.freeMode&&i.freeMode.enabled,g=a[m.indexOf(p)-1];if(g===void 0&&(i.cssMode||h)){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),e!==void 0&&(g=h?a[e]:a[e>0?e-1:e])}let _=0;if(g!==void 0&&(_=o.indexOf(g),_<0&&(_=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic(`previous`,!0)+1,_=Math.max(_,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(_,e,t,n)}),!0;return r.slideTo(_,e,t,n)}function Nm(e,t=!0,n){let r=this;if(!r.destroyed)return e===void 0&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Pm(e,t=!0,n,r=.5){let i=this;if(i.destroyed)return;e===void 0&&(e=i.params.speed);let a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function Fm(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:n}=e,r=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,i=e.getSlideIndexWhenGrid(e.clickedIndex),a,o=e.isElement?`swiper-slide`:`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(a):i>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),i=e.getSlideIndex(Op(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),yp(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var Im={slideTo:km,slideToLoop:Am,slideNext:jm,slidePrev:Mm,slideReset:Nm,slideToClosest:Pm,slideToClickedSlide:Fm};function Lm(e,t){let n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;let a=()=>{Op(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)})},o=()=>{let e=Op(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&o();let c=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%c!==0,u=s&&n.slides.length%r.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){let e=n.isElement?Mp(`swiper-slide`,[r.slideBlankClass]):Mp(`div`,[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(d(c-n.slides.length%c),n.recalcSlides(),n.updateSlides()):jp(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),a()):(u&&(r.loopAddBlankSlides?(d(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):jp(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),a());let f=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:f?void 0:`next`,initial:t})}function Rm({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:a,byController:o,byMousewheel:s}={}){let c=this;if(!c.params.loop)return;c.emit(`beforeLoopFix`);let{slides:l,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=c,{centeredSlides:m,slidesOffsetBefore:h,slidesOffsetAfter:g,initialSlide:_}=p,v=m||!!h||!!g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!v&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=d,c.emit(`loopFix`);return}let y=p.slidesPerView;y===`auto`?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),v&&y%2==0&&(y+=1));let b=p.slidesPerGroupAuto?y:p.slidesPerGroup,x=v?Math.max(b,Math.ceil(y/2)):b;x%b!==0&&(x+=b-x%b),x+=p.loopAdditionalSlides,c.loopedSlides=x;let S=c.grid&&p.grid&&p.grid.rows>1;l.length<y+x||c.params.effect===`cards`&&l.length<y+x*2?jp(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):S&&p.grid.fill===`row`&&jp("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let C=[],w=[],T=S?Math.ceil(l.length/p.grid.rows):l.length,E=a&&T-_<y&&!v,D=E?_:c.activeIndex;i===void 0?i=c.getSlideIndex(l.find(e=>e.classList.contains(p.slideActiveClass))):D=i;let ee=n===`next`||!n,te=n===`prev`||!n,ne=0,re=0,ie=(S?l[i].column:i)+(v&&r===void 0?-y/2+.5:0);if(ie<x){ne=Math.max(x-ie,b);for(let e=0;e<x-ie;e+=1){let t=e-Math.floor(e/T)*T;if(S){let e=T-t-1;for(let t=l.length-1;t>=0;--t)l[t].column===e&&C.push(t)}else C.push(T-t-1)}}else if(ie+y>T-x){re=Math.max(ie-(T-x*2),b),E&&(re=Math.max(re,y-T+_+1));for(let e=0;e<re;e+=1){let t=e-Math.floor(e/T)*T;S?l.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect===`cards`&&l.length<y+x*2&&(w.includes(i)&&w.splice(w.indexOf(i),1),C.includes(i)&&C.splice(C.indexOf(i),1)),te&&C.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.prepend(l[e]),l[e].swiperLoopMoveDOM=!1}),ee&&w.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.append(l[e]),l[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView===`auto`?c.updateSlides():S&&(C.length>0&&te||w.length>0&&ee)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(C.length>0&&te){if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D+ne]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D+Math.ceil(ne),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(r){let e=S?C.length/p.grid.rows:C.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&ee)if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D-re]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D-re,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{let e=S?w.length/p.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=d,c.controller&&c.controller.control&&!o){let a={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...a,slideTo:e.params.slidesPerView===p.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...a,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}c.emit(`loopFix`)}function zm(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let r=[];e.slides.forEach(e=>{let t=e.swiperSlideIndex===void 0?e.getAttribute(`data-swiper-slide-index`)*1:e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Bm={loopCreate:Lm,loopFix:Rm,loopDestroy:zm};function Vm(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Hm(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Um={setGrabCursor:Vm,unsetGrabCursor:Hm};function Wm(e,t=this){function n(t){if(!t||t===mp()||t===gp())return null;t.assignedSlot&&(t=t.assignedSlot);let r=t.closest(e);return!r&&!t.getRootNode?null:r||n(t.getRootNode().host)}return n(t)}function Gm(e,t,n){let r=gp(),{params:i}=e,a=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return a&&(n<=o||n>=r.innerWidth-o)?a===`prevent`?(t.preventDefault(),!0):!1:!0}function Km(e){let t=this,n=mp(),r=e;r.originalEvent&&(r=r.originalEvent);let i=t.touchEventsData;if(r.type===`pointerdown`){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type===`touchstart`&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type===`touchstart`){Gm(t,r,r.targetTouches[0].pageX);return}let{params:a,touches:o,enabled:s}=t;if(!s||!a.simulateTouch&&r.pointerType===`mouse`||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let c=r.target;if(a.touchEventsTarget===`wrapper`&&!Ap(c,t.wrapperEl)||`which`in r&&r.which===3||`button`in r&&r.button>0||i.isTouched&&i.isMoved)return;let l=!!a.noSwipingClass&&a.noSwipingClass!==``,u=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&u&&(c=u[0]);let d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(a.noSwiping&&(f?Wm(d,c):c.closest(d))){t.allowClick=!0;return}if(a.swipeHandler&&!c.closest(a.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;let p=o.currentX,m=o.currentY;if(!Gm(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,i.touchStartTime=bp(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName===`SELECT`&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&(r.pointerType===`mouse`||r.pointerType!==`mouse`&&!c.matches(i.focusableElements))&&n.activeElement.blur();let g=h&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||g)&&!c.isContentEditable&&r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,r)}function qm(e){let t=mp(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType===`mouse`)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type===`pointermove`&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let l;if(c.type===`touchmove`){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit(`touchMoveOpposite`,c);return}let u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper){a.startX=u,a.startY=d;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=bp());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(o&&(u>a.startX&&-n.translate<=n.maxTranslate()||u<a.startX&&-n.translate>=n.minTranslate()))return;else if(!o&&(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!==`mouse`&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit(`touchMove`,c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;let f=a.currentX-a.startX,p=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(r.isScrolling===void 0){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit(`touchMoveOpposite`,c),r.startMoving===void 0&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||c.type===`touchmove`&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let m=n.isHorizontal()?f:p,h=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),h=Math.abs(h)*(o?1:-1)),a.diff=m,m*=i.touchRatio,o&&(m=-m,h=-h);let g=n.touchesDirection;n.swipeDirection=m>0?`prev`:`next`,n.touchesDirection=h>0?`prev`:`next`;let _=n.params.loop&&!i.cssMode,v=n.touchesDirection===`next`&&n.allowSlideNext||n.touchesDirection===`prev`&&n.allowSlidePrev;if(!r.isMoved){if(_&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit(`sliderFirstMove`,c)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&_&&v&&Math.abs(m)>=1){Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit(`sliderMove`,c),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let y=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),m>0?(_&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**b))):m<0&&(_&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView===`auto`?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**b))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection===`next`&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection===`prev`&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Jm(e){let t=this,n=t.touchEventsData,r=e;r.originalEvent&&(r=r.originalEvent);let i;if(!(r.type===`touchend`||r.type===`touchcancel`)){if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}else if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return;if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(r.type)&&!([`pointercancel`,`contextmenu`].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:a,touches:o,rtlTranslate:s,slidesGrid:c,enabled:l}=t;if(!l||!a.simulateTouch&&r.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let u=bp(),d=u-n.touchStartTime;if(t.allowClick){let e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit(`tap click`,r),d<300&&u-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,r)}if(n.lastClickTime=bp(),yp(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(f=a.followFinger?s?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=f>=-t.maxTranslate()&&!t.params.loop,m=0,h=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;c[e+t]===void 0?(p||f>=c[e])&&(m=e,h=c[c.length-1]-c[c.length-2]):(p||f>=c[e]&&f<c[e+t])&&(m=e,h=c[e+t]-c[e])}let g=null,_=null;a.rewind&&(t.isBeginning?_=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));let v=(f-c[m])/h,y=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+y):t.slideTo(m)),t.swipeDirection===`prev`&&(v>1-a.longSwipesRatio?t.slideTo(m+y):_!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(_):t.slideTo(m))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):(t.swipeDirection===`next`&&t.slideTo(g===null?m+y:g),t.swipeDirection===`prev`&&t.slideTo(_===null?m:_))}}function Ym(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;if((t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){let t=o?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}else e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function Xm(e){let t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Zm(){let e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function Qm(e){let t=this;dm(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update()}function $m(){let e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}var eh=(e,t)=>{let n=mp(),{params:r,el:i,wrapperEl:a,device:o}=e,s=!!r.nested,c=t===`on`?`addEventListener`:`removeEventListener`,l=t;!i||typeof i==`string`||(n[c](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:s}),i[c](`touchstart`,e.onTouchStart,{passive:!1}),i[c](`pointerdown`,e.onTouchStart,{passive:!1}),n[c](`touchmove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`pointermove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`touchend`,e.onTouchEnd,{passive:!0}),n[c](`pointerup`,e.onTouchEnd,{passive:!0}),n[c](`pointercancel`,e.onTouchEnd,{passive:!0}),n[c](`touchcancel`,e.onTouchEnd,{passive:!0}),n[c](`pointerout`,e.onTouchEnd,{passive:!0}),n[c](`pointerleave`,e.onTouchEnd,{passive:!0}),n[c](`contextmenu`,e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c](`click`,e.onClick,!0),r.cssMode&&a[c](`scroll`,e.onScroll),r.updateOnWindowResize?e[l](o.ios||o.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,Ym,!0):e[l](`observerUpdate`,Ym,!0),i[c](`load`,e.onLoad,{capture:!0}))};function th(){let e=this,{params:t}=e;e.onTouchStart=Km.bind(e),e.onTouchMove=qm.bind(e),e.onTouchEnd=Jm.bind(e),e.onDocumentTouchStart=$m.bind(e),t.cssMode&&(e.onScroll=Zm.bind(e)),e.onClick=Xm.bind(e),e.onLoad=Qm.bind(e),eh(e,`on`)}function nh(){eh(this,`off`)}var rh={attachEvents:th,detachEvents:nh},ih=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function ah(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=mp(),s=r.breakpointsBase===`window`||!r.breakpointsBase?r.breakpointsBase:`container`,c=[`window`,`container`].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:o.querySelector(r.breakpointsBase),l=e.getBreakpoint(a,s,c);if(!l||e.currentBreakpoint===l)return;let u=(l in a?a[l]:void 0)||e.originalParams,d=ih(e,r),f=ih(e,u),p=e.params.grabCursor,m=u.grabCursor,h=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill===`column`||!u.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor(),[`navigation`,`pagination`,`scrollbar`].forEach(t=>{if(u[t]===void 0)return;let n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let g=u.direction&&u.direction!==r.direction,_=r.loop&&(u.slidesPerView!==r.slidesPerView||g),v=r.loop;g&&n&&e.changeDirection(),Tp(e.params,u);let y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!y?e.disable():!h&&y&&e.enable(),e.currentBreakpoint=l,e.emit(`_beforeBreakpoint`,u),n&&(_?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&b?(e.loopCreate(t),e.updateSlides()):v&&!b&&e.loopDestroy()),e.emit(`breakpoint`,u)}function oh(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=gp(),a=t===`window`?i.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>typeof e==`string`&&e.indexOf(`@`)===0?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){let{point:a,value:s}=o[e];t===`window`?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=a):s<=n.clientWidth&&(r=a)}return r||`max`}var sh={setBreakpoint:ah,getBreakpoint:oh};function ch(e,t){let n=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function lh(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=ch([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function uh(){let e=this,{el:t,classNames:n}=e;!t||typeof t==`string`||(t.classList.remove(...n),e.emitContainerClasses())}var dh={addClasses:lh,removeClasses:uh};function fh(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var ph={checkOverflow:fh},mh={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function hh(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){Tp(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&`enabled`in i)){Tp(t,n);return}typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Tp(t,n)}}var gh={eventsEmitter:tm,update:_m,translate:Cm,transition:Om,slide:Im,loop:Bm,grabCursor:Um,events:rh,breakpoints:sh,checkOverflow:ph,classes:dh},_h={},vh=class e{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||={},r=Tp({},r),n&&!r.el&&(r.el=n);let i=mp();if(r.el&&typeof r.el==`string`&&i.querySelectorAll(r.el).length>1){let t=[];return i.querySelectorAll(r.el).forEach(n=>{let i=Tp({},r,{el:n});t.push(new e(i))}),t}let a=this;a.__swiper__=!0,a.support=Kp(),a.device=Yp({userAgent:r.userAgent}),a.browser=Qp(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(e=>{typeof e==`function`&&a.modules.indexOf(e)<0&&a.modules.push(e)});let o={};return a.modules.forEach(e=>{e({params:r,swiper:a,extendParams:hh(r,o),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}),a.params=Tp({},Tp({},mh,o),_h,r),a.originalParams=Tp({},a.params),a.passedParams=Tp({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction===`horizontal`},isVertical(){return a.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit(`_swiper`),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=Ip(Op(t,`.${n.slideClass}, swiper-slide`)[0]);return Ip(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:t,params:n}=e;e.slides=Op(t,`.${n.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let n=this;e=Math.min(Math.max(e,0),1);let r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,t===void 0?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter(t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0);e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit(`_slideClass`,n,r)}),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(n.centeredSlides){let e=r[s]?Math.ceil(r[s].swiperSlideSize):0,t;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize),c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach(t=>{t.complete&&dm(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){let t=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Op(n,r())[0];return!i&&t.params.createElements&&(i=Mp(`div`,t.params.wrapperClass),n.append(i),Op(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()===`rtl`||Fp(n,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(n.dir.toLowerCase()===`rtl`||Fp(n,`direction`)===`rtl`),wrongRTL:Fp(i,`display`)===`-webkit-box`}),!0}init(e){let t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit(`beforeInit`),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let n=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&n.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),n.forEach(e=>{e.complete?dm(t,e):e.addEventListener(`load`,e=>{dm(t,e.target)})}),pm(t),t.initialized=!0,pm(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&typeof i!=`string`&&i.removeAttribute(`style`),a&&a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el&&typeof n.el!=`string`&&(n.el.swiper=null),vp(n)),n.destroyed=!0,null)}static extendDefaults(e){Tp(_h,e)}static get extendedDefaults(){return _h}static get defaults(){return mh}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.keys(gh).forEach(e=>{Object.keys(gh[e]).forEach(t=>{vh.prototype[t]=gh[e][t]})}),vh.use([$p,em]);var yh=`eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._snapToSlideEdge._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control`.split(`.`);function bh(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`&&!e.__swiper__}function xh(e,t){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:bh(t[n])&&bh(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:xh(e[n],t[n]):e[n]=t[n]})}function Sh(e={}){return e.navigation&&e.navigation.nextEl===void 0&&e.navigation.prevEl===void 0}function Ch(e={}){return e.pagination&&e.pagination.el===void 0}function wh(e={}){return e.scrollbar&&e.scrollbar.el===void 0}function Th(e=``){let t=e.split(` `).map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(` `)}function Eh(e=``){return e?e.includes(`swiper-wrapper`)?e:`swiper-wrapper ${e}`:`swiper-wrapper`}function Dh({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:s}){let c=r.filter(e=>e!==`children`&&e!==`direction`&&e!==`wrapperClass`),{params:l,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:m}=e,h,g,_,v,y,b,x,S;r.includes(`thumbs`)&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(h=!0),r.includes(`controller`)&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(g=!0),r.includes(`pagination`)&&n.pagination&&(n.pagination.el||s)&&(l.pagination||l.pagination===!1)&&u&&!u.el&&(_=!0),r.includes(`scrollbar`)&&n.scrollbar&&(n.scrollbar.el||o)&&(l.scrollbar||l.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes(`navigation`)&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(l.navigation||l.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);let C=t=>{e[t]&&(e[t].destroy(),t===`navigation`?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),l[t].prevEl=void 0,l[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),l[t].el=void 0,e[t].el=void 0))};r.includes(`loop`)&&e.isElement&&(l.loop&&!n.loop?b=!0:!l.loop&&n.loop?x=!0:S=!0),c.forEach(e=>{if(bh(l[e])&&bh(n[e]))Object.assign(l[e],n[e]),(e===`navigation`||e===`pagination`||e===`scrollbar`)&&`enabled`in n[e]&&!n[e].enabled&&C(e);else{let t=n[e];(t===!0||t===!1)&&(e===`navigation`||e===`pagination`||e===`scrollbar`)?t===!1&&C(e):l[e]=n[e]}}),c.includes(`controller`)&&!g&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes(`children`)&&t&&p&&l.virtual.enabled?(p.slides=t,p.update(!0)):r.includes(`virtual`)&&p&&l.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes(`children`)&&t&&l.loop&&(S=!0),h&&m.init()&&m.update(!0),g&&(e.controller.control=l.controller.control),_&&(e.isElement&&(!s||typeof s==`string`)&&(s=document.createElement(`div`),s.classList.add(`swiper-pagination`),s.part.add(`pagination`),e.el.appendChild(s)),s&&(l.pagination.el=s),u.init(),u.render(),u.update()),v&&(e.isElement&&(!o||typeof o==`string`)&&(o=document.createElement(`div`),o.classList.add(`swiper-scrollbar`),o.part.add(`scrollbar`),e.el.appendChild(o)),o&&(l.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),y&&(e.isElement&&((!i||typeof i==`string`)&&(i=document.createElement(`div`),i.classList.add(`swiper-button-next`),Bp(i,e.navigation.arrowSvg),i.part.add(`button-next`),e.el.appendChild(i)),(!a||typeof a==`string`)&&(a=document.createElement(`div`),a.classList.add(`swiper-button-prev`),Bp(a,e.navigation.arrowSvg),a.part.add(`button-prev`),e.el.appendChild(a))),i&&(l.navigation.nextEl=i),a&&(l.navigation.prevEl=a),d.init(),d.update()),r.includes(`allowSlideNext`)&&(e.allowSlideNext=n.allowSlideNext),r.includes(`allowSlidePrev`)&&(e.allowSlidePrev=n.allowSlidePrev),r.includes(`direction`)&&e.changeDirection(n.direction,!1),(b||S)&&e.loopDestroy(),(x||S)&&e.loopCreate(),e.update()}function Oh(e={},t=!0){let n={on:{}},r={},i={};xh(n,mh),n._emitClasses=!0,n.init=!1;let a={},o=yh.map(e=>e.replace(/_/,``)),s=Object.assign({},e);return Object.keys(s).forEach(s=>{e[s]!==void 0&&(o.indexOf(s)>=0?bh(e[s])?(n[s]={},i[s]={},xh(n[s],e[s]),xh(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]==`function`?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a[s]=e[s])}),[`navigation`,`pagination`,`scrollbar`].forEach(e=>{n[e]===!0&&(n[e]={}),n[e]===!1&&delete n[e]}),{params:n,passedParams:i,rest:a,events:r}}function kh({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:a},o){Sh(o)&&t&&n&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),Ch(o)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),wh(o)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(e)}function Ah(e,t,n,r,i){let a=[];if(!t)return a;let o=e=>{a.indexOf(e)<0&&a.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join(``)!==t.join(``)&&o(`children`),r.length!==n.length&&o(`children`)}return yh.filter(e=>e[0]===`_`).map(e=>e.replace(/_/,``)).forEach(n=>{if(n in e&&n in t)if(bh(e[n])&&bh(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length===i.length?(r.forEach(r=>{e[n][r]!==t[n][r]&&o(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&o(n)})):o(n)}else e[n]!==t[n]&&o(n)}),a}var jh=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit(`_virtualUpdated`),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(this,arguments)}function Nh(e){return e.type&&e.type.displayName&&e.type.displayName.includes(`SwiperSlide`)}function Ph(e){let t=[];return A.Children.toArray(e).forEach(e=>{Nh(e)?t.push(e):e.props&&e.props.children&&Ph(e.props.children).forEach(e=>t.push(e))}),t}function Fh(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return A.Children.toArray(e).forEach(e=>{if(Nh(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=Ph(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n[`container-end`].push(e)}else n[`container-end`].push(e)}),{slides:t,slots:n}}function Ih(e,t,n){if(!n)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?`right`:`left`]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,s=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,l=[];for(let e=s;e<c;e+=1)e>=a&&e<=o&&l.push(t[r(e)]);return l.map((t,n)=>A.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${n}`}))}function Lh(e,t){return typeof window>`u`?(0,A.useEffect)(e,t):(0,A.useLayoutEffect)(e,t)}var Rh=(0,A.createContext)(null),zh=(0,A.createContext)(null),Bh=(0,A.forwardRef)(({className:e,tag:t=`div`,wrapperTag:n=`div`,children:r,onSwiper:i,...a}={},o)=>{let s=!1,[c,l]=(0,A.useState)(`swiper`),[u,d]=(0,A.useState)(null),[f,p]=(0,A.useState)(!1),m=(0,A.useRef)(!1),h=(0,A.useRef)(null),g=(0,A.useRef)(null),_=(0,A.useRef)(null),v=(0,A.useRef)(null),y=(0,A.useRef)(null),b=(0,A.useRef)(null),x=(0,A.useRef)(null),S=(0,A.useRef)(null),{params:C,passedParams:w,rest:T,events:E}=Oh(a),{slides:D,slots:ee}=Fh(r),te=()=>{p(!f)};Object.assign(C.on,{_containerClasses(e,t){l(t)}});let ne=()=>{Object.assign(C.on,E),s=!0;let e={...C};if(delete e.wrapperClass,g.current=new vh(e),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=D;let e={cache:!1,slides:D,renderExternal:d,renderExternalUpdate:!1};xh(g.current.params.virtual,e),xh(g.current.originalParams.virtual,e)}};h.current||ne(),g.current&&g.current.on(`_beforeBreakpoint`,te);let re=()=>{s||!E||!g.current||Object.keys(E).forEach(e=>{g.current.on(e,E[e])})},ie=()=>{!E||!g.current||Object.keys(E).forEach(e=>{g.current.off(e,E[e])})};(0,A.useEffect)(()=>()=>{g.current&&g.current.off(`_beforeBreakpoint`,te)}),(0,A.useEffect)(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),Lh(()=>{if(o&&(o.current=h.current),h.current)return g.current.destroyed&&ne(),kh({el:h.current,nextEl:y.current,prevEl:b.current,paginationEl:x.current,scrollbarEl:S.current,swiper:g.current},C),i&&!g.current.destroyed&&i(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Lh(()=>{re();let e=Ah(w,_.current,D,v.current,e=>e.key);return _.current=w,v.current=D,e.length&&g.current&&!g.current.destroyed&&Dh({swiper:g.current,slides:D,passedParams:w,changedParams:e,nextEl:y.current,prevEl:b.current,scrollbarEl:S.current,paginationEl:x.current}),()=>{ie()}}),Lh(()=>{jh(g.current)},[u]);function O(){return C.virtual?Ih(g.current,D,u):D.map((e,t)=>A.cloneElement(e,{swiper:g.current,swiperSlideIndex:t}))}return A.createElement(t,Mh({ref:h,className:Th(`${c}${e?` ${e}`:``}`)},T),A.createElement(zh.Provider,{value:g.current},ee[`container-start`],A.createElement(n,{className:Eh(C.wrapperClass)},ee[`wrapper-start`],O(),ee[`wrapper-end`]),Sh(C)&&A.createElement(A.Fragment,null,A.createElement(`div`,{ref:b,className:`swiper-button-prev`}),A.createElement(`div`,{ref:y,className:`swiper-button-next`})),wh(C)&&A.createElement(`div`,{ref:S,className:`swiper-scrollbar`}),Ch(C)&&A.createElement(`div`,{ref:x,className:`swiper-pagination`}),ee[`container-end`]))});Bh.displayName=`Swiper`;var Vh=(0,A.forwardRef)(({tag:e=`div`,children:t,className:n=``,swiper:r,zoom:i,lazy:a,virtualIndex:o,swiperSlideIndex:s,...c}={},l)=>{let u=(0,A.useRef)(null),[d,f]=(0,A.useState)(`swiper-slide`),[p,m]=(0,A.useState)(!1);function h(e,t,n){t===u.current&&f(n)}Lh(()=>{if(s!==void 0&&(u.current.swiperSlideIndex=s),l&&(l.current=u.current),!(!u.current||!r)){if(r.destroyed){d!==`swiper-slide`&&f(`swiper-slide`);return}return r.on(`_slideClass`,h),()=>{r&&r.off(`_slideClass`,h)}}}),Lh(()=>{r&&u.current&&!r.destroyed&&f(r.getSlideClasses(u.current))},[r]);let g={isActive:d.indexOf(`swiper-slide-active`)>=0,isVisible:d.indexOf(`swiper-slide-visible`)>=0,isPrev:d.indexOf(`swiper-slide-prev`)>=0,isNext:d.indexOf(`swiper-slide-next`)>=0},_=()=>typeof t==`function`?t(g):t,v=()=>{m(!0)};return A.createElement(e,Mh({ref:u,className:Th(`${d}${n?` ${n}`:``}`),"data-swiper-slide-index":o,onLoad:v},c),i&&A.createElement(Rh.Provider,{value:g},A.createElement(`div`,{className:`swiper-zoom-container`,"data-swiper-zoom":typeof i==`number`?i:void 0},_(),a&&!p&&A.createElement(`div`,{className:`swiper-lazy-preloader`,ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!i&&A.createElement(Rh.Provider,{value:g},_(),a&&!p&&A.createElement(`div`,{className:`swiper-lazy-preloader`,ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});Vh.displayName=`SwiperSlide`;function Hh(){let{t:e}=at(),t=(0,A.useRef)(null);function n(){t.current?.slideNext()}return(0,j.jsxs)(`div`,{className:`ComparisonLayout`,children:[(0,j.jsx)(`div`,{className:`SliderContainer`,children:(0,j.jsxs)(Bh,{modules:[Up],spaceBetween:20,slidesPerView:1,grabCursor:!0,pagination:{clickable:!1},observer:!0,observeParents:!0,onSwiper:e=>{t.current=e},children:[(0,j.jsx)(Vh,{children:(0,j.jsxs)(`div`,{className:`SliderCard`,children:[(0,j.jsx)(`div`,{className:`SliderCard-header`,children:(0,j.jsx)(`div`,{className:`SliderCard-headerTitle`,children:e(`welcome.canDoHeader`)})}),(0,j.jsxs)(`div`,{className:`SliderCard-content`,children:[(0,j.jsxs)(`h3`,{className:`SliderCard-title`,children:[(0,j.jsx)(`div`,{className:`SliderCard-icon`,children:`✨`}),e(`welcome.slide1Title`)]}),(0,j.jsx)(`p`,{className:`SliderCard-description`,children:e(`welcome.slide1Description`)})]}),(0,j.jsxs)(`button`,{type:`button`,className:`SliderCard-footer`,onClick:n,children:[(0,j.jsx)(`span`,{className:`SliderCard-nextText`,children:e(`welcome.slide1Next`)}),(0,j.jsx)(`span`,{className:`SliderCard-nextBtn`,children:`→`})]})]})}),(0,j.jsx)(Vh,{children:(0,j.jsxs)(`div`,{className:`SliderCard`,children:[(0,j.jsxs)(`div`,{className:`SliderCard-content`,children:[(0,j.jsx)(`div`,{className:`SliderCard-step`,children:e(`welcome.slide2Step`)}),(0,j.jsxs)(`h2`,{className:`SliderCard-title`,children:[(0,j.jsx)(`div`,{className:`SliderCard-icon`,children:`📦`}),e(`welcome.slide2Title`)]}),(0,j.jsx)(`p`,{className:`SliderCard-description`,dangerouslySetInnerHTML:{__html:e(`welcome.slide2Description`)}})]}),(0,j.jsxs)(`button`,{type:`button`,className:`SliderCard-footer`,onClick:n,children:[(0,j.jsx)(`span`,{className:`SliderCard-nextText`,children:e(`welcome.slide2Next`)}),(0,j.jsx)(`span`,{className:`SliderCard-nextBtn`,children:`→`})]})]})}),(0,j.jsx)(Vh,{children:(0,j.jsxs)(`div`,{className:`SliderCard`,children:[(0,j.jsxs)(`div`,{className:`SliderCard-content`,children:[(0,j.jsx)(`div`,{className:`SliderCard-step`,children:e(`welcome.slide3Step`)}),(0,j.jsxs)(`h2`,{className:`SliderCard-title`,children:[(0,j.jsx)(`div`,{className:`SliderCard-icon`,children:`💻`}),e(`welcome.slide3Title`)]}),(0,j.jsx)(`div`,{className:`SliderCard-codeBlock`,children:e(`welcome.slide3CodeBlock`)}),(0,j.jsx)(`p`,{className:`SliderCard-description`,children:e(`welcome.slide3Description`)})]}),(0,j.jsxs)(`button`,{type:`button`,className:`SliderCard-footer`,onClick:n,children:[(0,j.jsx)(`span`,{className:`SliderCard-nextText`,children:e(`welcome.slide3Next`)}),(0,j.jsx)(`span`,{className:`SliderCard-nextBtn`,children:`→`})]})]})}),(0,j.jsx)(Vh,{children:(0,j.jsx)(`div`,{className:`SliderCard`,children:(0,j.jsxs)(`div`,{className:`SliderCard-content`,children:[(0,j.jsx)(`div`,{className:`SliderCard-title`,children:e(`welcome.slide4Title`)}),(0,j.jsxs)(`div`,{className:`ResultFeatureList`,children:[(0,j.jsxs)(`div`,{className:`ResultFeature`,children:[(0,j.jsx)(`span`,{className:`ResultFeature-icon`,children:`✓`}),(0,j.jsx)(`span`,{children:e(`welcome.slide4Feature1`)})]}),(0,j.jsxs)(`div`,{className:`ResultFeature`,children:[(0,j.jsx)(`span`,{className:`ResultFeature-icon`,children:`✓`}),(0,j.jsx)(`span`,{children:e(`welcome.slide4Feature2`)})]}),(0,j.jsxs)(`div`,{className:`ResultFeature`,children:[(0,j.jsx)(`span`,{className:`ResultFeature-icon`,children:`✓`}),(0,j.jsx)(`span`,{children:e(`welcome.slide4Feature3`)})]})]}),(0,j.jsx)(`p`,{className:`SliderCard-description`,children:e(`welcome.slide4Description`)})]})})})]})}),(0,j.jsxs)(`div`,{className:`SliderCard warning`,children:[(0,j.jsx)(`div`,{className:`SliderCard-header warning`,children:(0,j.jsx)(`div`,{className:`SliderCard-headerTitle`,children:e(`welcome.cantDoHeader`)})}),(0,j.jsxs)(`div`,{className:`SliderCard-content`,children:[(0,j.jsxs)(`h3`,{className:`SliderCard-title`,children:[(0,j.jsx)(`div`,{className:`SliderCard-icon`,children:`✕`}),e(`welcome.cantDoTitle`)]}),(0,j.jsx)(`p`,{className:`SliderCard-description`,children:e(`welcome.cantDoDescription`)})]})]})]})}function Uh({onTokenReceived:e}){let[t,n]=(0,A.useState)(!!window.grecaptcha),r=ec;return(0,A.useEffect)(()=>{if(r){if(window.onRecaptchaSubmitted=t=>{e(t)},window.onRecaptchaExpired=()=>{e(``)},t===!1&&!window.grecaptcha){n(`loading`);let e=document.createElement(`script`);e.src=`https://www.google.com/recaptcha/api.js`,e.async=!0,e.defer=!0,e.onload=()=>n(!0),document.head.appendChild(e)}else n(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[r,e]),(0,j.jsx)(j.Fragment,{children:ec&&t===!0?(0,j.jsx)(`div`,{className:`g-recaptcha`,"data-sitekey":ec,"data-callback":`onRecaptchaSubmitted`,"data-expired-callback":`onRecaptchaExpired`}):(0,j.jsx)(`div`,{className:`RecaptchaBox`,children:(0,j.jsx)(Lt,{})})})}function Wh(e){return(0,j.jsx)(Ri,{children:(0,j.jsx)(Gh,{...e})})}function Gh({onVerified:e}){let{t,i18n:n}=at(),[r,i]=(0,A.useState)(``),{showError:a}=zi();return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`header`,{className:`SgHeader`,children:(0,j.jsx)(`div`,{className:`SgHeader-inner large alignRight`,children:(0,j.jsx)(sp,{})})}),(0,j.jsx)(`main`,{className:`SgMain`,children:(0,j.jsxs)(`div`,{className:`SgMain-inner large`,children:[(0,j.jsxs)(`div`,{className:`WelcomeScreen-hero`,children:[(0,j.jsx)(`h1`,{className:`WelcomeScreen-heroTitle`,children:t(`welcome.heroTitle`)}),(0,j.jsx)(`p`,{className:`WelcomeScreen-heroSubtitle`,children:t(`welcome.heroSubtitle`)})]}),(0,j.jsx)(Hh,{}),(0,j.jsxs)(`div`,{className:`SgSection noBorder`,children:[(0,j.jsx)(`p`,{className:`WelcomeScreen-sessionWarning`,children:t(`welcome.sessionWarning`)}),(0,j.jsx)(Bi,{}),(0,j.jsxs)(`div`,{className:`AuthScreen-actions`,children:[(0,j.jsx)(Uh,{onTokenReceived:i}),(0,j.jsx)(Ft,{className:`BigBtn`,as:`async`,onClick:async()=>{if(!r)return;let t=await tc({command:`newSession`,recaptchaToken:r,language:n.language});if(t.success&&t.result?.token)e(t.result.token);else throw Error(`Failed to create session`)},disabled:!r,onError:a,children:t(`start`)})]})]}),(0,j.jsx)(`footer`,{className:`SgScreen-footer`,children:(0,j.jsx)(`span`,{dangerouslySetInnerHTML:{__html:t(`footerLinks`)}})})]})})]})}function Kh(e){return(0,j.jsx)(Ri,{children:(0,j.jsx)(qh,{...e})})}function qh({expiredToken:e,onTokenRefreshed:t}){let{t:n}=at(),{showAlert:r}=zi();return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`header`,{className:`SgHeader`,children:(0,j.jsx)(`div`,{className:`SgHeader-inner`,children:(0,j.jsx)(`div`,{className:`SgHeader-actions`,children:(0,j.jsx)(sp,{})})})}),(0,j.jsx)(`main`,{className:`SgMain`,children:(0,j.jsx)(`div`,{className:`SgMain-inner`,children:(0,j.jsxs)(`div`,{className:`SgScreen`,children:[(0,j.jsx)(`div`,{className:`RefreshDialog-header`,children:(0,j.jsx)(`h1`,{className:`RefreshDialog-title`,children:n(`extendYourSession`)})}),(0,j.jsx)(`div`,{className:`SgSection noBorder`,children:(0,j.jsxs)(`div`,{className:`AuthScreen-card`,children:[(0,j.jsx)(Bi,{}),(0,j.jsx)(`div`,{className:`AuthScreen-actions`,children:(0,j.jsx)(Uh,{onTokenReceived:async i=>{if(i)try{let a=await tc({command:`renewSession`,sessionToken:e,recaptchaToken:i});a.success&&a.result?.token?t(a.result.token):r(n(`sessionRenewalFailed`),{severity:`error`})}catch{r(n(`errorConnectingToServer`),{severity:`error`})}}})}),(0,j.jsx)(`p`,{className:`AuthScreen-info`,children:n(`newTabRestartMessage`)})]})}),(0,j.jsx)(`footer`,{className:`SgScreen-footer`,children:(0,j.jsx)(`span`,{dangerouslySetInnerHTML:{__html:n(`footerLinks`)}})})]})})})]})}function Jh(e){if(!e)return!1;try{let t=e.split(`.`);if(t.length!==3)return!1;let n=JSON.parse(atob(t[1]));if(!n.exp)return!1;let r=n.exp*1e3;return Date.now()<r?!0:`expired`}catch(e){return console.error(`Error checking JWT token validity:`,e),!1}}function Yh(){let[e,t]=(0,A.useState)(),[n,r]=(0,A.useState)(),i=Sc(e=>e.resetSession);return(0,A.useEffect)(()=>{let e=fc(),n=Jh(e);if(!e||!n){i();return}n===`expired`?r(e):t(e)},[i]),(0,j.jsx)(`div`,{className:`SgApp`,children:e?(0,j.jsx)(up,{sessionToken:e,onSessionExpired:()=>t(void 0)}):n?(0,j.jsx)(Kh,{expiredToken:n,onTokenRefreshed:e=>{dc(e),t(e),r(void 0)}}):(0,j.jsx)(Wh,{onVerified:e=>{dc(e),t(e)}})})}async function Xh(){let e=document.getElementById(`site-generator-app`);e&&Xs.createRoot(e).render((0,j.jsx)(A.StrictMode,{children:(0,j.jsx)(Nt,{config:{logger:console,autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3},children:(0,j.jsxs)(Ri,{children:[(0,j.jsx)(Bi,{className:`NoMargin`}),(0,j.jsx)(Yh,{})]})})}))}Xh().catch(e=>console.error(e));