@monotykamary/dsh-web-frontend 0.1.7 → 0.1.9

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,20 +1,20 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/langs/ruby-DCxyoPen.js","assets/langs/html-CfGypltT.js","assets/langs/css-CLj8gQPS.js","assets/langs/xml-sdJ4AIDG.js","assets/langs/java-CylS5w8V.js","assets/langs/sql-CRqJ_cUM.js","assets/vendor-D22_Mp1f.js","assets/vendor-CjyC-hUb.css","assets/langs/cpp-DIPi6g--.js","assets/langs/c-BIGW1oBm.js","assets/langs/lua-BaeVxFsk.js","assets/langs/yaml-Buea-lGh.js","assets/langs/php-DDkx9sim.js","assets/langs/scss-D5BDwBP9.js"])))=>i.map(i=>d[i]);
2
- var iv=Object.defineProperty;var sv=(e,n,i)=>n in e?iv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var I=(e,n,i)=>sv(e,typeof n!="symbol"?n+"":n,i);import{c as ov,a as av,b as lv,f as wm,g as xm,m as uv,n as $c,d as cv,e as xe,h as vp,i as Ju,u as fv,j as Jr,t as Pt,k as wp,l as pu,o as dv,p as hv,s as pv,q as mv,r as _m,v as yv}from"./vendor-D22_Mp1f.js";function fa(e,n){for(var i=0;i<n.length;i++){const s=n[i];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function _n(e){return e==null}function gv(e){return!_n(e)}function vv(e,n){return Object.fromEntries(Object.entries(e).map(([i,s])=>[i,n(s,i)]))}function ln(e,n,i){return Object.defineProperty(e,n,{writable:!0,value:i,enumerable:!1})}function ss(e,n){return arguments.length===1?i=>ss(e,i):e in globalThis&&n instanceof globalThis[e]||Object.prototype.toString.call(n).slice(8,-1)===e}function zc(e){return ss("ArrayBuffer",e)||ss("SharedArrayBuffer",e)}function wv(e){return zc(e)||ArrayBuffer.isView(e)}var ti;(function(e){e.is=zc,e.isSource=wv;function n(c){return ArrayBuffer.isView(c)?c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength):c}e.fromSource=n;function i(c){if(c=n(c),typeof Buffer<"u")return Buffer.from(c).toString("base64");let d="";const p=new Uint8Array(c);for(let m=0;m<p.byteLength;m++)d+=String.fromCharCode(p[m]);return btoa(d)}e.toBase64=i;function s(c){return typeof Buffer<"u"?n(Buffer.from(c,"base64")):Uint8Array.from(atob(c),d=>d.charCodeAt(0))}e.fromBase64=s;function a(c){return c=n(c),typeof Buffer<"u"?Buffer.from(c).toString("hex"):Array.from(new Uint8Array(c),d=>d.toString(16).padStart(2,"0")).join("")}e.toHex=a;function u(c){if(typeof Buffer<"u")return n(Buffer.from(c,"hex"));const d=c.length%2===0?c:c.slice(0,c.length-1),p=[];for(let m=0;m<d.length;m+=2)p.push(parseInt(`${d[m]}${d[m+1]}`,16));return Uint8Array.from(p).buffer}e.fromHex=u})(ti||(ti={}));ti.fromBase64;ti.toBase64;ti.fromHex;ti.toHex;function ec(e,n,i){if(e===n||_n(e)&&_n(n))return!0;if(typeof e!=typeof n||typeof e!="object"||!e||!n)return!1;function s(a,u){return a(e)?a(n)?u(e,n):!1:a(n)?!1:void 0}return s(Array.isArray,(a,u)=>a.length===u.length&&a.every((c,d)=>ec(c,u[d])))??s(ss("Date"),(a,u)=>a.valueOf()===u.valueOf())??s(ss("RegExp"),(a,u)=>a.source===u.source&&a.flags===u.flags)??s(zc,(a,u)=>{if(a.byteLength!==u.byteLength)return!1;const c=new Uint8Array(a),d=new Uint8Array(u);for(let p=0;p<c.length;p++)if(c[p]!==d[p])return!1;return!0})??Object.keys({...e,...n}).every(a=>ec(e[a],n[a]))}function xv(e,n,i){const s=[];let a=0;for(let u=0;u<e.length;u++){const c=e.charCodeAt(u);if(c>=65&&c<=90){if(a===1){const d=e.charCodeAt(u+1);d>=97&&d<=122&&s.push(i),s.push(c+32)}else a!==0&&s.push(i),s.push(c+32);a=1}else c>=97&&c<=122?(s.push(c),a=2):n.includes(c)?(a!==0&&s.push(i),a=0):s.push(c)}return String.fromCharCode(...s)}function _v(e){return xv(e,[45,95],45)}const kv=_v;var xp;(function(e){e.millisecond=1,e.second=1e3,e.minute=e.second*60,e.hour=e.minute*60,e.day=e.hour*24,e.week=e.day*7;let n=new Date().getTimezoneOffset();function i(k){n=k}e.setTimezoneOffset=i;function s(){return n}e.getTimezoneOffset=s;function a(k=new Date,x){return typeof k=="number"&&(k=new Date(k)),x===void 0&&(x=n),Math.floor((k.valueOf()/e.minute-x)/1440)}e.getDateNumber=a;function u(k,x){const C=new Date(k*e.day);return x===void 0&&(x=n),new Date(+C+x*e.minute)}e.fromDateNumber=u;const c=/\d+(?:\.\d+)?/.source,d=new RegExp(`^${["w(?:eek(?:s)?)?","d(?:ay(?:s)?)?","h(?:our(?:s)?)?","m(?:in(?:ute)?(?:s)?)?","s(?:ec(?:ond)?(?:s)?)?"].map(k=>`(${c}${k})?`).join("")}$`);function p(k){const x=d.exec(k);return x?(parseFloat(x[1])*e.week||0)+(parseFloat(x[2])*e.day||0)+(parseFloat(x[3])*e.hour||0)+(parseFloat(x[4])*e.minute||0)+(parseFloat(x[5])*e.second||0):0}e.parseTime=p;function m(k){const x=p(k);return x?k=Date.now()+x:/^\d{1,2}(:\d{1,2}){1,2}$/.test(k)?k=`${new Date().toLocaleDateString()}-${k}`:/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(k)&&(k=`${new Date().getFullYear()}-${k}`),k?new Date(k):new Date}e.parseDate=m;function y(k){const x=Math.abs(k);return x>=e.day-e.hour/2?Math.round(k/e.day)+"d":x>=e.hour-e.minute/2?Math.round(k/e.hour)+"h":x>=e.minute-e.second/2?Math.round(k/e.minute)+"m":x>=e.second?Math.round(k/e.second)+"s":k+"ms"}e.format=y;function w(k,x=2){return k.toString().padStart(x,"0")}e.toDigits=w;function g(k,x=new Date){return k.replace("yyyy",x.getFullYear().toString()).replace("yy",x.getFullYear().toString().slice(2)).replace("MM",w(x.getMonth()+1)).replace("dd",w(x.getDate())).replace("hh",w(x.getHours())).replace("mm",w(x.getMinutes())).replace("ss",w(x.getSeconds())).replace("SSS",w(x.getMilliseconds(),3))}e.template=g})(xp||(xp={}));var da=class{constructor(){I(this,"sn",0);I(this,"map",new Map);I(this,"weak",new WeakMap)}get length(){return this.map.size}push(e){const n=++this.sn;return this.map.set(n,e),this.weak.set(e,n),()=>this.map.delete(n)}delete(e){const n=this.weak.get(e);return n?this.map.delete(n):!1}clear(){const e=[...this.map.values()];return this.map.clear(),e.reverse()}[Symbol.iterator](){return this.map.values()}[Symbol.for("nodejs.util.inspect.custom")](){return[...this]}};const te={shadow:Symbol.for("cordis.shadow"),receiver:Symbol.for("cordis.receiver"),original:Symbol.for("cordis.original"),metadata:Symbol.for("cordis.metadata"),initHooks:Symbol.for("cordis.initHooks"),checkProto:Symbol.for("cordis.checkProto"),effect:Symbol.for("cordis.effect"),filter:Symbol.for("cordis.filter"),isolate:Symbol.for("cordis.isolate"),intercept:Symbol.for("cordis.intercept"),init:Symbol.for("cordis.init"),check:Symbol.for("cordis.check"),config:Symbol.for("cordis.config"),invoke:Symbol.for("cordis.invoke"),extend:Symbol.for("cordis.extend"),tracker:Symbol.for("cordis.tracker"),resolveConfig:Symbol.for("cordis.resolveConfig")},Sv=(function*(){}).constructor,_p=(async function*(){}).constructor;function km(e){return!(!e.prototype||e instanceof Sv||_p!==Function&&e instanceof _p)}function ha(e,n){if(e===Object.prototype)return n;const i=Object.create(ha(Object.getPrototypeOf(e),n));for(const s of Reflect.ownKeys(e))Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(e,s));return i}function mr(e){return e&&(typeof e=="object"||typeof e=="function")}function Sm(e,n){let i=e;for(;i;){const s=Reflect.getOwnPropertyDescriptor(i,n);if(s)return s;i=Object.getPrototypeOf(i)}}function Bn(e,n){if(!mr(n))return n;if(Object.hasOwn(n,te.shadow))return Object.getPrototypeOf(n);const i=n[te.tracker];return i?Fc(e,n,i):n}function os(e,n){return n?new Proxy(e,{get:(i,s,a)=>s in n&&s!=="constructor"?Reflect.get(n,s,a):Reflect.get(i,s,a),set:(i,s,a,u)=>s in n&&s!=="constructor"?Reflect.set(n,s,a,u):Reflect.set(i,s,a,u)}):e}function tc(e,n,i){return os(e,Object.defineProperty(Object.create(null),n,{value:i,writable:!1}))}function mu(e,n,i,s){var u;if(!i)return s;const a=(u=Reflect.getOwnPropertyDescriptor(n,i))==null?void 0:u.value;return a?tc(s,i,e.extend({[te.shadow]:a})):s}function Cv(e,n,i,s){return new Proxy(n,{apply:(a,u,c)=>(u===i&&(u=s),Bn(e,Reflect.apply(a,u,c)))})}function Fc(e,n,i){e[te.shadow]&&!i.noShadow&&(e=Object.getPrototypeOf(e));const s=new Proxy(n,{get:(a,u,c)=>{if(u===te.original)return a;if(u===i.property)return e;if(typeof u=="symbol")return Reflect.get(a,u,c);if(i.associate&&e.reflect.props[`${i.associate}.${u}`])return Reflect.get(e,`${i.associate}.${u}`,tc(e,te.receiver,c));let d,p;const m=Sm(a,u);m&&"value"in m?p=m.value:(d=mu(e,a,i.property,c),p=Reflect.get(a,u,d));const y=p==null?void 0:p[te.tracker];return y?Fc(e,p,y):!i.noShadow&&typeof p=="function"?(d??(d=mu(e,a,i.property,c)),Cv(e,p,c,d)):p},set:(a,u,c,d)=>{if(u===te.original||u===i.property)return!1;if(typeof u=="symbol")return Reflect.set(a,u,c,d);if(i.associate&&e.reflect.props[`${i.associate}.${u}`])return Reflect.set(e,`${i.associate}.${u}`,c,tc(e,te.receiver,d));const p=mu(e,a,i.property,d);return Reflect.set(a,u,c,p)},apply:(a,u,c)=>Cm(s,a,u,c)});return s}function Cm(e,n,i,s){return n[te.invoke]?n[te.invoke].apply(e,s):Reflect.apply(n,i,s)}function Ko(e,n,i){const s=function(...a){return Cm(Fc(s.ctx,s,i),s,this,a)};return ln(s,"name",e),Object.setPrototypeOf(s,n)}function kp(e,n,i){const s=e.error.stack.split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/langs/ruby-dP0UDNDP.js","assets/langs/html-CfGypltT.js","assets/langs/css-CLj8gQPS.js","assets/langs/xml-sdJ4AIDG.js","assets/langs/java-CylS5w8V.js","assets/langs/sql-CRqJ_cUM.js","assets/vendor-CWyLzNZy.js","assets/vendor-CjyC-hUb.css","assets/langs/cpp-DddhVWhK.js","assets/langs/c-BIGW1oBm.js","assets/langs/lua-BaeVxFsk.js","assets/langs/yaml-Buea-lGh.js","assets/langs/php-CFFe39Ui.js","assets/langs/scss-D5BDwBP9.js"])))=>i.map(i=>d[i]);
2
+ var sv=Object.defineProperty;var ov=(e,n,i)=>n in e?sv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var I=(e,n,i)=>ov(e,typeof n!="symbol"?n+"":n,i);import{c as av,a as lv,b as uv,f as xm,g as _m,m as cv,n as $c,d as fv,e as xe,h as vp,i as Ju,u as dv,j as Jr,t as Pt,k as wp,l as pu,o as hv,p as pv,s as mv,q as yv,r as km,v as gv}from"./vendor-CWyLzNZy.js";function fa(e,n){for(var i=0;i<n.length;i++){const s=n[i];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function _n(e){return e==null}function vv(e){return!_n(e)}function wv(e,n){return Object.fromEntries(Object.entries(e).map(([i,s])=>[i,n(s,i)]))}function ln(e,n,i){return Object.defineProperty(e,n,{writable:!0,value:i,enumerable:!1})}function ss(e,n){return arguments.length===1?i=>ss(e,i):e in globalThis&&n instanceof globalThis[e]||Object.prototype.toString.call(n).slice(8,-1)===e}function zc(e){return ss("ArrayBuffer",e)||ss("SharedArrayBuffer",e)}function xv(e){return zc(e)||ArrayBuffer.isView(e)}var ti;(function(e){e.is=zc,e.isSource=xv;function n(c){return ArrayBuffer.isView(c)?c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength):c}e.fromSource=n;function i(c){if(c=n(c),typeof Buffer<"u")return Buffer.from(c).toString("base64");let d="";const p=new Uint8Array(c);for(let m=0;m<p.byteLength;m++)d+=String.fromCharCode(p[m]);return btoa(d)}e.toBase64=i;function s(c){return typeof Buffer<"u"?n(Buffer.from(c,"base64")):Uint8Array.from(atob(c),d=>d.charCodeAt(0))}e.fromBase64=s;function a(c){return c=n(c),typeof Buffer<"u"?Buffer.from(c).toString("hex"):Array.from(new Uint8Array(c),d=>d.toString(16).padStart(2,"0")).join("")}e.toHex=a;function u(c){if(typeof Buffer<"u")return n(Buffer.from(c,"hex"));const d=c.length%2===0?c:c.slice(0,c.length-1),p=[];for(let m=0;m<d.length;m+=2)p.push(parseInt(`${d[m]}${d[m+1]}`,16));return Uint8Array.from(p).buffer}e.fromHex=u})(ti||(ti={}));ti.fromBase64;ti.toBase64;ti.fromHex;ti.toHex;function ec(e,n,i){if(e===n||_n(e)&&_n(n))return!0;if(typeof e!=typeof n||typeof e!="object"||!e||!n)return!1;function s(a,u){return a(e)?a(n)?u(e,n):!1:a(n)?!1:void 0}return s(Array.isArray,(a,u)=>a.length===u.length&&a.every((c,d)=>ec(c,u[d])))??s(ss("Date"),(a,u)=>a.valueOf()===u.valueOf())??s(ss("RegExp"),(a,u)=>a.source===u.source&&a.flags===u.flags)??s(zc,(a,u)=>{if(a.byteLength!==u.byteLength)return!1;const c=new Uint8Array(a),d=new Uint8Array(u);for(let p=0;p<c.length;p++)if(c[p]!==d[p])return!1;return!0})??Object.keys({...e,...n}).every(a=>ec(e[a],n[a]))}function _v(e,n,i){const s=[];let a=0;for(let u=0;u<e.length;u++){const c=e.charCodeAt(u);if(c>=65&&c<=90){if(a===1){const d=e.charCodeAt(u+1);d>=97&&d<=122&&s.push(i),s.push(c+32)}else a!==0&&s.push(i),s.push(c+32);a=1}else c>=97&&c<=122?(s.push(c),a=2):n.includes(c)?(a!==0&&s.push(i),a=0):s.push(c)}return String.fromCharCode(...s)}function kv(e){return _v(e,[45,95],45)}const Sv=kv;var xp;(function(e){e.millisecond=1,e.second=1e3,e.minute=e.second*60,e.hour=e.minute*60,e.day=e.hour*24,e.week=e.day*7;let n=new Date().getTimezoneOffset();function i(k){n=k}e.setTimezoneOffset=i;function s(){return n}e.getTimezoneOffset=s;function a(k=new Date,x){return typeof k=="number"&&(k=new Date(k)),x===void 0&&(x=n),Math.floor((k.valueOf()/e.minute-x)/1440)}e.getDateNumber=a;function u(k,x){const C=new Date(k*e.day);return x===void 0&&(x=n),new Date(+C+x*e.minute)}e.fromDateNumber=u;const c=/\d+(?:\.\d+)?/.source,d=new RegExp(`^${["w(?:eek(?:s)?)?","d(?:ay(?:s)?)?","h(?:our(?:s)?)?","m(?:in(?:ute)?(?:s)?)?","s(?:ec(?:ond)?(?:s)?)?"].map(k=>`(${c}${k})?`).join("")}$`);function p(k){const x=d.exec(k);return x?(parseFloat(x[1])*e.week||0)+(parseFloat(x[2])*e.day||0)+(parseFloat(x[3])*e.hour||0)+(parseFloat(x[4])*e.minute||0)+(parseFloat(x[5])*e.second||0):0}e.parseTime=p;function m(k){const x=p(k);return x?k=Date.now()+x:/^\d{1,2}(:\d{1,2}){1,2}$/.test(k)?k=`${new Date().toLocaleDateString()}-${k}`:/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(k)&&(k=`${new Date().getFullYear()}-${k}`),k?new Date(k):new Date}e.parseDate=m;function y(k){const x=Math.abs(k);return x>=e.day-e.hour/2?Math.round(k/e.day)+"d":x>=e.hour-e.minute/2?Math.round(k/e.hour)+"h":x>=e.minute-e.second/2?Math.round(k/e.minute)+"m":x>=e.second?Math.round(k/e.second)+"s":k+"ms"}e.format=y;function w(k,x=2){return k.toString().padStart(x,"0")}e.toDigits=w;function g(k,x=new Date){return k.replace("yyyy",x.getFullYear().toString()).replace("yy",x.getFullYear().toString().slice(2)).replace("MM",w(x.getMonth()+1)).replace("dd",w(x.getDate())).replace("hh",w(x.getHours())).replace("mm",w(x.getMinutes())).replace("ss",w(x.getSeconds())).replace("SSS",w(x.getMilliseconds(),3))}e.template=g})(xp||(xp={}));var da=class{constructor(){I(this,"sn",0);I(this,"map",new Map);I(this,"weak",new WeakMap)}get length(){return this.map.size}push(e){const n=++this.sn;return this.map.set(n,e),this.weak.set(e,n),()=>this.map.delete(n)}delete(e){const n=this.weak.get(e);return n?this.map.delete(n):!1}clear(){const e=[...this.map.values()];return this.map.clear(),e.reverse()}[Symbol.iterator](){return this.map.values()}[Symbol.for("nodejs.util.inspect.custom")](){return[...this]}};const te={shadow:Symbol.for("cordis.shadow"),receiver:Symbol.for("cordis.receiver"),original:Symbol.for("cordis.original"),metadata:Symbol.for("cordis.metadata"),initHooks:Symbol.for("cordis.initHooks"),checkProto:Symbol.for("cordis.checkProto"),effect:Symbol.for("cordis.effect"),filter:Symbol.for("cordis.filter"),isolate:Symbol.for("cordis.isolate"),intercept:Symbol.for("cordis.intercept"),init:Symbol.for("cordis.init"),check:Symbol.for("cordis.check"),config:Symbol.for("cordis.config"),invoke:Symbol.for("cordis.invoke"),extend:Symbol.for("cordis.extend"),tracker:Symbol.for("cordis.tracker"),resolveConfig:Symbol.for("cordis.resolveConfig")},Cv=(function*(){}).constructor,_p=(async function*(){}).constructor;function Sm(e){return!(!e.prototype||e instanceof Cv||_p!==Function&&e instanceof _p)}function ha(e,n){if(e===Object.prototype)return n;const i=Object.create(ha(Object.getPrototypeOf(e),n));for(const s of Reflect.ownKeys(e))Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(e,s));return i}function mr(e){return e&&(typeof e=="object"||typeof e=="function")}function Cm(e,n){let i=e;for(;i;){const s=Reflect.getOwnPropertyDescriptor(i,n);if(s)return s;i=Object.getPrototypeOf(i)}}function Bn(e,n){if(!mr(n))return n;if(Object.hasOwn(n,te.shadow))return Object.getPrototypeOf(n);const i=n[te.tracker];return i?Fc(e,n,i):n}function os(e,n){return n?new Proxy(e,{get:(i,s,a)=>s in n&&s!=="constructor"?Reflect.get(n,s,a):Reflect.get(i,s,a),set:(i,s,a,u)=>s in n&&s!=="constructor"?Reflect.set(n,s,a,u):Reflect.set(i,s,a,u)}):e}function tc(e,n,i){return os(e,Object.defineProperty(Object.create(null),n,{value:i,writable:!1}))}function mu(e,n,i,s){var u;if(!i)return s;const a=(u=Reflect.getOwnPropertyDescriptor(n,i))==null?void 0:u.value;return a?tc(s,i,e.extend({[te.shadow]:a})):s}function Ev(e,n,i,s){return new Proxy(n,{apply:(a,u,c)=>(u===i&&(u=s),Bn(e,Reflect.apply(a,u,c)))})}function Fc(e,n,i){e[te.shadow]&&!i.noShadow&&(e=Object.getPrototypeOf(e));const s=new Proxy(n,{get:(a,u,c)=>{if(u===te.original)return a;if(u===i.property)return e;if(typeof u=="symbol")return Reflect.get(a,u,c);if(i.associate&&e.reflect.props[`${i.associate}.${u}`])return Reflect.get(e,`${i.associate}.${u}`,tc(e,te.receiver,c));let d,p;const m=Cm(a,u);m&&"value"in m?p=m.value:(d=mu(e,a,i.property,c),p=Reflect.get(a,u,d));const y=p==null?void 0:p[te.tracker];return y?Fc(e,p,y):!i.noShadow&&typeof p=="function"?(d??(d=mu(e,a,i.property,c)),Ev(e,p,c,d)):p},set:(a,u,c,d)=>{if(u===te.original||u===i.property)return!1;if(typeof u=="symbol")return Reflect.set(a,u,c,d);if(i.associate&&e.reflect.props[`${i.associate}.${u}`])return Reflect.set(e,`${i.associate}.${u}`,c,tc(e,te.receiver,d));const p=mu(e,a,i.property,d);return Reflect.set(a,u,c,p)},apply:(a,u,c)=>Em(s,a,u,c)});return s}function Em(e,n,i,s){return n[te.invoke]?n[te.invoke].apply(e,s):Reflect.apply(n,i,s)}function Ko(e,n,i){const s=function(...a){return Em(Fc(s.ctx,s,i),s,this,a)};return ln(s,"name",e),Object.setPrototypeOf(s,n)}function kp(e,n,i){const s=e.error.stack.split(`
3
3
  `);if(typeof(n==null?void 0:n.stack)!="string"){const c=new Error(n),d=c.stack.split(`
4
4
  `);throw d.splice(1,1/0,...i()),c.stack=d.join(`
5
5
  `),c}const a=n.stack.split(`
6
6
  `);let u=a.indexOf(s[2]);if(u===-1)throw n;for(u-=e.offset;u>0&&a[u-1].endsWith(" (<anonymous>)");)u-=1;throw a.splice(u,1/0,...i()),n.stack=a.join(`
7
7
  `),n}function Go(e,n=pa()){const i={offset:1,error:new Error};try{const s=e(i);return mr(s)&&"then"in s?s.then(void 0,a=>kp(i,a,n)):s}catch(s){kp(i,s,n)}}function pa(e=0){const n=new Error;return()=>n.stack.split(`
8
- `).slice(3+e)}function nc(e){return e!==null&&e!==!1&&e!==void 0}var Em=class{constructor(e){I(this,"ctx");I(this,"_hooks",{});this.ctx=e,ln(this,te.tracker,{property:"ctx",noShadow:!0}),this.on("internal/listener",function(n,i,s){var a;if(n==="internal/update"&&!s.global)return((a=this.fiber._hooks)["internal/update"]??(a["internal/update"]=new da))[s.prepend?"unshift":"push"](i)}),this.on("internal/update",function(n,i,s){const a=[...this._hooks["internal/update"]||[]],u=()=>(a.shift()??s).call(this,n,i,u);return u()},{global:!0,prepend:!0})}dispatch(e,n){const i=typeof n[0]=="object"||typeof n[0]=="function"?n.shift():null,s=n.shift();s.startsWith("internal/")||this.emit("internal/dispatch",e,s,n,i);const a=i==null?void 0:i[We.filter];return(this._hooks[s]||[]).filter(u=>u.global||!a||a.call(i,u.ctx)).map(u=>u.callback.bind(i))}async parallel(...e){const n=(await Promise.allSettled(this.dispatch("emit",e).map(async i=>i(...e)))).filter(i=>i.status==="rejected");if(n.length)throw new AggregateError(n.map(i=>i.reason))}emit(...e){this.dispatch("emit",e).map(n=>n(...e))}async serial(...e){for(const n of this.dispatch("serial",e)){const i=await n(...e);if(nc(i))return i}}bail(...e){for(const n of this.dispatch("bail",e)){const i=n(...e);if(nc(i))return i}}waterfall(...e){const n=this.dispatch("waterfall",e),i=e.pop(),s=()=>(n.shift()??i)(...e);return e.push(s),s()}register(e,n,i,s){const a=s.prepend?"unshift":"push";return this.ctx.fiber.effect(()=>(n[a]({ctx:this.ctx,callback:i,...s}),()=>this.unregister(n,i)),e)}unregister(e,n){const i=e.findIndex(s=>s.callback===n);if(i>=0)return e.splice(i,1),!0}on(e,n,i){var c;typeof i!="object"&&(i={prepend:i}),this.ctx.fiber.assertActive(),n=this.ctx.reflect.bind(n);const s=this.bail(this.ctx,"internal/listener",e,n,i);if(s)return s;const a=(c=this._hooks)[e]||(c[e]=[]),u=`ctx.on(${typeof e=="string"?JSON.stringify(e):e.toString()})`;return this.register(u,a,n,i)}once(e,n,i){const s=this.on(e,function(...a){return s(),n.apply(this,a)},i);return s}};const rc={s:e=>String(e),d:e=>Math.trunc(Number(e)),i:e=>Math.trunc(Number(e)),f:e=>Number(e),o:e=>JSON.stringify(e),O:e=>JSON.stringify(e),c:()=>"",C:(e,n,i)=>Yo.color(n,Yo.code(i.name,n.colors),e)};function Ev(e){return e instanceof Error&&Array.isArray(e.errors)}var Yo=class{constructor(e,n){I(this,"service");this.service=n,Object.assign(this,e),this.error=this._method("error",0),this.info=this._method("info",1),this.warn=this._method("warn",2),this.debug=this._method("debug",3)}static color(e,n,i,s=""){return e.colors?`\x1B[3${n<8?n:"8;5;"+n}${e.colors>=2?s:""}m${i}\x1B[0m`:""+i}static code(e,n){let i=0;for(let a=0;a<e.length;a++)i=(i<<3)-i+e.charCodeAt(a)+13,i|=0;const s=n?n>=2?Pm:Tm:[];return s[Math.abs(i)%s.length]}static format(e,n){var c;const i=n.args.slice();i[0]instanceof Error?(i[0]=i[0].stack||i[0].message,i.unshift("%s")):typeof i[0]!="string"&&i.unshift("%o");let s=i.shift();s=s.replace(/%([a-zA-Z%])/g,(d,p)=>{var y;if(d==="%%")return"%";const m=((y=e.formatters)==null?void 0:y[p])??rc[p];return typeof m=="function"?m(i.shift(),e,n):d});const a=((c=e.formatters)==null?void 0:c.o)??rc.o;for(let d of i)typeof d=="object"&&d&&(d=a(d,e,n)),s+=" "+d;const{maxLength:u=10240}=e;return s.split(/\r?\n/g).map(d=>d.slice(0,u)+(d.length>u?"...":"")).join(`
9
- `)}_method(e,n){return(...i)=>{var u,c;if(i.length===1&&i[0]instanceof Error){if(i[0].cause)this[e](i[0].cause);else if(Ev(i[0])){i[0].errors.forEach(d=>this[e](d));return}}const s=++this.service._snMessage,a=Date.now();for(const d of this.service.exporters.values()){if((((u=d.levels)==null?void 0:u[this.name])??((c=d.levels)==null?void 0:c.default)??this.level??1)<n)continue;const p={sn:s,ts:a,type:e,level:n,name:this.name,...this.meta,args:i};d.export(p)}}}};const Tm=[6,2,3,4,5,1],Pm=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221];var ei,bm=(ei=class{constructor(n){I(this,"bufferSize",1e3);I(this,"buffer",[]);I(this,"ctx");I(this,"_snMessage",0);I(this,"_snExporter",0);I(this,"exporters",new Map);const i={property:"ctx",noShadow:!0},s=Ko("logger",ha(Object.getPrototypeOf(this),Function.prototype),i);return Object.assign(s,this),s.ctx=n,ln(s,te.tracker,i),s.exporter({colors:3,export:a=>{s.buffer.push(a),s.buffer.length>s.bufferSize&&(s.buffer=s.buffer.slice(-s.bufferSize))}}),s}exporter(n){return this.ctx.effect(()=>(this.exporters.set(++this._snExporter,n),()=>this.exporters.delete(this._snExporter)),"ctx.logger.exporter()")}_resolveConfig(){let n=this.ctx[te.intercept];const i=[];for(;"logger"in n;)Object.hasOwn(n,"logger")&&i.unshift(n.logger),n=Object.getPrototypeOf(n);return Object.assign({},...i)}[te.invoke](n){const i=this._resolveConfig(),s=(this.ctx[te.shadow]??this.ctx).fiber;return n??(n=i.name),n??(n=kv(s.name)),new Yo({name:n,level:i.level,meta:{fiber:new WeakRef(s)}},this)}},(()=>{for(const n of["error","info","warn","debug"])ei.prototype[n]=function(...i){return this()[n](...i)}})(),ei);function yu(e){const n=e.stack.split(`
8
+ `).slice(3+e)}function nc(e){return e!==null&&e!==!1&&e!==void 0}var Tm=class{constructor(e){I(this,"ctx");I(this,"_hooks",{});this.ctx=e,ln(this,te.tracker,{property:"ctx",noShadow:!0}),this.on("internal/listener",function(n,i,s){var a;if(n==="internal/update"&&!s.global)return((a=this.fiber._hooks)["internal/update"]??(a["internal/update"]=new da))[s.prepend?"unshift":"push"](i)}),this.on("internal/update",function(n,i,s){const a=[...this._hooks["internal/update"]||[]],u=()=>(a.shift()??s).call(this,n,i,u);return u()},{global:!0,prepend:!0})}dispatch(e,n){const i=typeof n[0]=="object"||typeof n[0]=="function"?n.shift():null,s=n.shift();s.startsWith("internal/")||this.emit("internal/dispatch",e,s,n,i);const a=i==null?void 0:i[We.filter];return(this._hooks[s]||[]).filter(u=>u.global||!a||a.call(i,u.ctx)).map(u=>u.callback.bind(i))}async parallel(...e){const n=(await Promise.allSettled(this.dispatch("emit",e).map(async i=>i(...e)))).filter(i=>i.status==="rejected");if(n.length)throw new AggregateError(n.map(i=>i.reason))}emit(...e){this.dispatch("emit",e).map(n=>n(...e))}async serial(...e){for(const n of this.dispatch("serial",e)){const i=await n(...e);if(nc(i))return i}}bail(...e){for(const n of this.dispatch("bail",e)){const i=n(...e);if(nc(i))return i}}waterfall(...e){const n=this.dispatch("waterfall",e),i=e.pop(),s=()=>(n.shift()??i)(...e);return e.push(s),s()}register(e,n,i,s){const a=s.prepend?"unshift":"push";return this.ctx.fiber.effect(()=>(n[a]({ctx:this.ctx,callback:i,...s}),()=>this.unregister(n,i)),e)}unregister(e,n){const i=e.findIndex(s=>s.callback===n);if(i>=0)return e.splice(i,1),!0}on(e,n,i){var c;typeof i!="object"&&(i={prepend:i}),this.ctx.fiber.assertActive(),n=this.ctx.reflect.bind(n);const s=this.bail(this.ctx,"internal/listener",e,n,i);if(s)return s;const a=(c=this._hooks)[e]||(c[e]=[]),u=`ctx.on(${typeof e=="string"?JSON.stringify(e):e.toString()})`;return this.register(u,a,n,i)}once(e,n,i){const s=this.on(e,function(...a){return s(),n.apply(this,a)},i);return s}};const rc={s:e=>String(e),d:e=>Math.trunc(Number(e)),i:e=>Math.trunc(Number(e)),f:e=>Number(e),o:e=>JSON.stringify(e),O:e=>JSON.stringify(e),c:()=>"",C:(e,n,i)=>Yo.color(n,Yo.code(i.name,n.colors),e)};function Tv(e){return e instanceof Error&&Array.isArray(e.errors)}var Yo=class{constructor(e,n){I(this,"service");this.service=n,Object.assign(this,e),this.error=this._method("error",0),this.info=this._method("info",1),this.warn=this._method("warn",2),this.debug=this._method("debug",3)}static color(e,n,i,s=""){return e.colors?`\x1B[3${n<8?n:"8;5;"+n}${e.colors>=2?s:""}m${i}\x1B[0m`:""+i}static code(e,n){let i=0;for(let a=0;a<e.length;a++)i=(i<<3)-i+e.charCodeAt(a)+13,i|=0;const s=n?n>=2?bm:Pm:[];return s[Math.abs(i)%s.length]}static format(e,n){var c;const i=n.args.slice();i[0]instanceof Error?(i[0]=i[0].stack||i[0].message,i.unshift("%s")):typeof i[0]!="string"&&i.unshift("%o");let s=i.shift();s=s.replace(/%([a-zA-Z%])/g,(d,p)=>{var y;if(d==="%%")return"%";const m=((y=e.formatters)==null?void 0:y[p])??rc[p];return typeof m=="function"?m(i.shift(),e,n):d});const a=((c=e.formatters)==null?void 0:c.o)??rc.o;for(let d of i)typeof d=="object"&&d&&(d=a(d,e,n)),s+=" "+d;const{maxLength:u=10240}=e;return s.split(/\r?\n/g).map(d=>d.slice(0,u)+(d.length>u?"...":"")).join(`
9
+ `)}_method(e,n){return(...i)=>{var u,c;if(i.length===1&&i[0]instanceof Error){if(i[0].cause)this[e](i[0].cause);else if(Tv(i[0])){i[0].errors.forEach(d=>this[e](d));return}}const s=++this.service._snMessage,a=Date.now();for(const d of this.service.exporters.values()){if((((u=d.levels)==null?void 0:u[this.name])??((c=d.levels)==null?void 0:c.default)??this.level??1)<n)continue;const p={sn:s,ts:a,type:e,level:n,name:this.name,...this.meta,args:i};d.export(p)}}}};const Pm=[6,2,3,4,5,1],bm=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221];var ei,Mm=(ei=class{constructor(n){I(this,"bufferSize",1e3);I(this,"buffer",[]);I(this,"ctx");I(this,"_snMessage",0);I(this,"_snExporter",0);I(this,"exporters",new Map);const i={property:"ctx",noShadow:!0},s=Ko("logger",ha(Object.getPrototypeOf(this),Function.prototype),i);return Object.assign(s,this),s.ctx=n,ln(s,te.tracker,i),s.exporter({colors:3,export:a=>{s.buffer.push(a),s.buffer.length>s.bufferSize&&(s.buffer=s.buffer.slice(-s.bufferSize))}}),s}exporter(n){return this.ctx.effect(()=>(this.exporters.set(++this._snExporter,n),()=>this.exporters.delete(this._snExporter)),"ctx.logger.exporter()")}_resolveConfig(){let n=this.ctx[te.intercept];const i=[];for(;"logger"in n;)Object.hasOwn(n,"logger")&&i.unshift(n.logger),n=Object.getPrototypeOf(n);return Object.assign({},...i)}[te.invoke](n){const i=this._resolveConfig(),s=(this.ctx[te.shadow]??this.ctx).fiber;return n??(n=i.name),n??(n=Sv(s.name)),new Yo({name:n,level:i.level,meta:{fiber:new WeakRef(s)}},this)}},(()=>{for(const n of["error","info","warn","debug"])ei.prototype[n]=function(...i){return this()[n](...i)}})(),ei);function yu(e){const n=e.stack.split(`
10
10
  `);return n.splice(0,2,`Error: ${e.message}`),e.stack=n.join(`
11
- `),e}const Tv=["prototype","then"];function gu(e){return typeof e=="symbol"||Tv.includes(e)||parseInt(e).toString()===e||e.startsWith("_")}var Zu,Sp=(Zu=class{constructor(e){I(this,"ctx");I(this,"store",Object.create(null));I(this,"props",Object.create(null));this.ctx=e,ln(this,te.tracker,{property:"ctx",noShadow:!0}),this.mixin("reflect",["get","set","provide","accessor","mixin"]),this.mixin("fiber",["runtime","effect"]),this.mixin("registry",["inject","plugin"]),this.mixin("events",["on","once","parallel","emit","serial","bail","waterfall"])}get(e,n=!0){var i;return Bn(this.ctx,(i=this._getImpl(e,n))==null?void 0:i.value)}_getImpl(e,n=!0){const i=this.ctx[te.isolate][e],s=i&&this.store[i];if(s&&!(n&&s.fiber.state!==2))return s}set(e,n,i){const s=this.ctx[te.isolate][e],a=this.store[s];if(!a)throw new Error(`cannot set property "${e}" without provide`);if(a.fiber!==this.ctx.fiber)throw new Error(`cannot set property "${e}" in multiple fibers`);return a.value=n,!0}provide(e,n,i){return this.ctx.fiber.effect(()=>{var u,c;if(!this.props[e])(u=this.props)[e]??(u[e]={type:"service"});else if(this.props[e].type!=="service")throw new Error(`property "${e}" is already declared as ${this.props[e].type}`);this.props[e]={type:"service"},(c=this.ctx.root[te.isolate])[e]??(c[e]=Symbol(e));const s=this.ctx[te.isolate][e],a={name:e,value:n,fiber:this.ctx.fiber,check:i};if(this.store[s])throw new Error(`service "${e}" has been registered at <${this.store[s].fiber.name}>`);return this.store[s]=a,this.ctx.fiber.store[e]=a,this.ctx.fiber.state===2&&this.notify([e]),async()=>{delete this.store[s];const d=this.notify([e]);await Promise.allSettled(d.map(p=>p.await())),delete this.ctx.fiber.store[e]}},`ctx.provide(${JSON.stringify(e)})`)}notify(e,n=(i,s)=>i[te.isolate][s]===this.ctx[te.isolate][s]){var s;const i=[];for(const a of this.ctx.registry.values())for(const u of a.fibers){let c=!1;for(const d of e)d in u.inject&&n(u.ctx,d)&&(c=!0,u._checkImpl(d));c&&(u._refresh(),i.push(u))}for(const a of e){const u=Object.create(this.ctx);u[te.filter]=c=>n(c,a),this.ctx.events.emit(u,"internal/service",a,(s=this._getImpl(a,!1))==null?void 0:s.value)}return i}accessor(e,n){return this.ctx.fiber.effect(()=>{if(e in this.props)throw new Error(`property "${e}" is already declared as ${this.props[e].type}`);return this.props[e]={type:"accessor",...n},()=>delete this.props[e]},`ctx.accessor(${JSON.stringify(e)})`)}mixin(e,n){const i=this;return this.ctx.fiber.effect(function*(){const s=Array.isArray(n)?n.map(u=>[u,u]):Object.entries(n),a=(u,c)=>u[e];for(const[u,c]of s)yield i.accessor(c,{get(d,p){const m=a(this);if(_n(m))return m;const y=d?os(d,m):m,w=Reflect.get(m,u,y);return typeof w!="function"?w:w.bind(y??m)},set(d,p,m){const y=a(this),w=p?os(p,y):y;return Reflect.set(y,u,d,w)}})},`ctx.mixin(${JSON.stringify(e)})`)}trace(e){return Bn(this.ctx,e)}bind(e){return new Proxy(e,{apply:(n,i,s)=>Reflect.apply(n,this.trace(i),s.map(a=>this.trace(a))),construct:(n,i,s)=>Reflect.construct(n,i.map(a=>this.trace(a)),s)})}},I(Zu,"handler",{get:(e,n,i)=>{if(gu(n))return Reflect.get(e,n,i);if(Reflect.has(e,n))return Bn(i,Reflect.get(e,n,i));const s=new Error(`cannot get property "${n}" without inject`);try{const a=e.reflect.props[n];return(a==null?void 0:a.type)==="accessor"?a.get.call(i,i[te.receiver],s):i.fiber.runtime?i.events.waterfall("internal/get",i,n,s,()=>{var d;const u=e[te.isolate][n];let c=(i[te.shadow]??i).fiber;for(;;){const p=(d=c.store)==null?void 0:d[n];if(p)return Bn(i,p.value);if(n in c.inject)throw s.message=`cannot get required service "${n}" in inactive context`,s;if(!c.runtime||c.parent[te.isolate][n]!==u)throw s;c=c.parent.fiber}}):i.reflect.get(n,!1)}catch(a){throw a===s?yu(a):a}},set:(e,n,i,s)=>{if(gu(n))return Reflect.set(e,n,i,s);const a=new Error(`cannot set property "${n}" without provide`),u=e.reflect.props[n];if(!u){if(!s.fiber.runtime)return Reflect.set(e,n,i,s);throw yu(a)}try{return u.type==="accessor"?u.set?u.set.call(s,i,s[te.receiver],a):!1:s.events.waterfall("internal/set",s,n,i,a,()=>s.reflect.set(n,i,a))}catch(c){throw c===a?yu(c):c}},has:(e,n)=>gu(n)?Reflect.has(e,n):Reflect.has(e,n)?!0:!!e.reflect.props[n]}),Zu);const Pv=Symbol.for("ValidationError");var Bc=class extends TypeError{constructor(n){super(`invalid config:
11
+ `),e}const Pv=["prototype","then"];function gu(e){return typeof e=="symbol"||Pv.includes(e)||parseInt(e).toString()===e||e.startsWith("_")}var Zu,Sp=(Zu=class{constructor(e){I(this,"ctx");I(this,"store",Object.create(null));I(this,"props",Object.create(null));this.ctx=e,ln(this,te.tracker,{property:"ctx",noShadow:!0}),this.mixin("reflect",["get","set","provide","accessor","mixin"]),this.mixin("fiber",["runtime","effect"]),this.mixin("registry",["inject","plugin"]),this.mixin("events",["on","once","parallel","emit","serial","bail","waterfall"])}get(e,n=!0){var i;return Bn(this.ctx,(i=this._getImpl(e,n))==null?void 0:i.value)}_getImpl(e,n=!0){const i=this.ctx[te.isolate][e],s=i&&this.store[i];if(s&&!(n&&s.fiber.state!==2))return s}set(e,n,i){const s=this.ctx[te.isolate][e],a=this.store[s];if(!a)throw new Error(`cannot set property "${e}" without provide`);if(a.fiber!==this.ctx.fiber)throw new Error(`cannot set property "${e}" in multiple fibers`);return a.value=n,!0}provide(e,n,i){return this.ctx.fiber.effect(()=>{var u,c;if(!this.props[e])(u=this.props)[e]??(u[e]={type:"service"});else if(this.props[e].type!=="service")throw new Error(`property "${e}" is already declared as ${this.props[e].type}`);this.props[e]={type:"service"},(c=this.ctx.root[te.isolate])[e]??(c[e]=Symbol(e));const s=this.ctx[te.isolate][e],a={name:e,value:n,fiber:this.ctx.fiber,check:i};if(this.store[s])throw new Error(`service "${e}" has been registered at <${this.store[s].fiber.name}>`);return this.store[s]=a,this.ctx.fiber.store[e]=a,this.ctx.fiber.state===2&&this.notify([e]),async()=>{delete this.store[s];const d=this.notify([e]);await Promise.allSettled(d.map(p=>p.await())),delete this.ctx.fiber.store[e]}},`ctx.provide(${JSON.stringify(e)})`)}notify(e,n=(i,s)=>i[te.isolate][s]===this.ctx[te.isolate][s]){var s;const i=[];for(const a of this.ctx.registry.values())for(const u of a.fibers){let c=!1;for(const d of e)d in u.inject&&n(u.ctx,d)&&(c=!0,u._checkImpl(d));c&&(u._refresh(),i.push(u))}for(const a of e){const u=Object.create(this.ctx);u[te.filter]=c=>n(c,a),this.ctx.events.emit(u,"internal/service",a,(s=this._getImpl(a,!1))==null?void 0:s.value)}return i}accessor(e,n){return this.ctx.fiber.effect(()=>{if(e in this.props)throw new Error(`property "${e}" is already declared as ${this.props[e].type}`);return this.props[e]={type:"accessor",...n},()=>delete this.props[e]},`ctx.accessor(${JSON.stringify(e)})`)}mixin(e,n){const i=this;return this.ctx.fiber.effect(function*(){const s=Array.isArray(n)?n.map(u=>[u,u]):Object.entries(n),a=(u,c)=>u[e];for(const[u,c]of s)yield i.accessor(c,{get(d,p){const m=a(this);if(_n(m))return m;const y=d?os(d,m):m,w=Reflect.get(m,u,y);return typeof w!="function"?w:w.bind(y??m)},set(d,p,m){const y=a(this),w=p?os(p,y):y;return Reflect.set(y,u,d,w)}})},`ctx.mixin(${JSON.stringify(e)})`)}trace(e){return Bn(this.ctx,e)}bind(e){return new Proxy(e,{apply:(n,i,s)=>Reflect.apply(n,this.trace(i),s.map(a=>this.trace(a))),construct:(n,i,s)=>Reflect.construct(n,i.map(a=>this.trace(a)),s)})}},I(Zu,"handler",{get:(e,n,i)=>{if(gu(n))return Reflect.get(e,n,i);if(Reflect.has(e,n))return Bn(i,Reflect.get(e,n,i));const s=new Error(`cannot get property "${n}" without inject`);try{const a=e.reflect.props[n];return(a==null?void 0:a.type)==="accessor"?a.get.call(i,i[te.receiver],s):i.fiber.runtime?i.events.waterfall("internal/get",i,n,s,()=>{var d;const u=e[te.isolate][n];let c=(i[te.shadow]??i).fiber;for(;;){const p=(d=c.store)==null?void 0:d[n];if(p)return Bn(i,p.value);if(n in c.inject)throw s.message=`cannot get required service "${n}" in inactive context`,s;if(!c.runtime||c.parent[te.isolate][n]!==u)throw s;c=c.parent.fiber}}):i.reflect.get(n,!1)}catch(a){throw a===s?yu(a):a}},set:(e,n,i,s)=>{if(gu(n))return Reflect.set(e,n,i,s);const a=new Error(`cannot set property "${n}" without provide`),u=e.reflect.props[n];if(!u){if(!s.fiber.runtime)return Reflect.set(e,n,i,s);throw yu(a)}try{return u.type==="accessor"?u.set?u.set.call(s,i,s[te.receiver],a):!1:s.events.waterfall("internal/set",s,n,i,a,()=>s.reflect.set(n,i,a))}catch(c){throw c===a?yu(c):c}},has:(e,n)=>gu(n)?Reflect.has(e,n):Reflect.has(e,n)?!0:!!e.reflect.props[n]}),Zu);const bv=Symbol.for("ValidationError");var Bc=class extends TypeError{constructor(n){super(`invalid config:
12
12
  `+n.map(i=>i.path?` - ${i.message} (at ${i.path.join(".")})`:` - ${i.message}`).join(`
13
- `));I(this,"name","ValidationError")}};Object.defineProperty(Bc.prototype,Pv,{value:!0});function Mm(e,n){if(!e.Config)return n;const i=e.Config["~standard"].validate(n);if("then"in i)throw new TypeError("Async config validation is not supported");if(i.issues)throw new Bc(i.issues);return i.value}const jm=new WeakMap;function vu(e){var i;const n=e();return((i=jm.get(e))==null?void 0:i())??n}function bv(e,n){const i=["internal/plugin",n];let s;try{s=e.events.dispatch("emit",i)}catch(a){e.logger.error(a);return}for(const a of s)try{const u=a(...i);Promise.resolve(u).catch(c=>e.logger.error(c))}catch(u){e.logger.error(u)}}var as=class Lm extends Error{constructor(i,s){super(s??Lm.Code[i]);I(this,"code");this.code=i}};(function(e){e.Code={INACTIVE_EFFECT:"cannot create effect on inactive context"}})(as||(as={}));const tn="__INACTIVE__";var Hc=class{constructor(e,n,i,s,a){I(this,"parent");I(this,"inject");I(this,"runtime");I(this,"uid");I(this,"ctx");I(this,"config");I(this,"_config");I(this,"state",0);I(this,"dispose");I(this,"store");I(this,"inertia");I(this,"_hooks",Object.create(null));I(this,"_disposables",new da);I(this,"context");I(this,"_error");I(this,"_runner");I(this,"_store",Object.create(null));this.parent=e,this.inject=i,this.runtime=s,this._config=n;const u=c=>{this._disposables.push(c)};if(s){this.uid=e.registry.counter,this.ctx=this.context=e.extend({fiber:this});const c=Object.entries(this.inject);if(c.length){this.ctx[We.intercept]=Object.create(e[We.intercept]);for(const[d,p]of c)_n(p)||(this.ctx[We.intercept][d]=p)}this._runner={epoch:tn,getOuterStack:a,execute:function(){var d;if(km(s.callback)){const p=new s.callback(this.ctx,this.config);for(const m of(p==null?void 0:p[te.initHooks])??[])m();return(d=p==null?void 0:p[te.init])==null?void 0:d.call(p)}else return s.callback(this.ctx,this.config)},collect:u},this.dispose=e.fiber.effect(()=>{const d=s.fibers.push(this);return async()=>{for(this.uid=null,bv(this.context,this),this.ctx.registry.has(s.callback)&&(d(),s.fibers.length||this.ctx.registry.delete(s.callback)),this._setEpoch(tn),this.inertia||this._updateState(()=>(this.inertia=this._unload(),5));this.inertia;)await this.inertia}},"ctx.plugin()");try{this.context.emit("internal/plugin",this)}catch(d){throw Promise.resolve(this.dispose()).catch(p=>this.ctx.logger.error(p)),d}if(this.uid!==null&&e.fiber.state!==5){for(const d of Object.keys(this.inject))this._checkImpl(d);this._refresh()}}else this.uid=0,this.ctx=this.context=e,this.state=2,this.store=Object.create(null),this._runner={epoch:"",getOuterStack:a,execute:()=>{},collect:u},this.dispose=()=>this.restart()}get name(){var n;let e=this;do{if((n=e.runtime)!=null&&n.name)return e.runtime.name;e=e.parent.fiber}while(e!==e.parent.fiber);return"root"}assertActive(){if(this.uid===null)throw new as("INACTIVE_EFFECT")}_execute(e){const n=e.epoch;return Go(i=>{const s=u=>{if(typeof u=="function")e.collect(u);else if(!_n(u))throw new TypeError("Invalid effect")},a=e.execute.call(this);if(typeof a=="function")return e.collect(a);if(!_n(a))if(mr(a)){if("then"in a)return a.then(s);if(Symbol.iterator in a){i.error=new Error;const u=a[Symbol.iterator]();for(;;){const c=u.next();if(s(c.value),c.done)return}}else if(Symbol.asyncIterator in a){const u=a[Symbol.asyncIterator]();return(async()=>{for(await Promise.resolve(),i.error=new Error;;){if(e.epoch!==n)return;const c=await u.next();if(s(c.value),c.done)return}})()}else throw new TypeError("Invalid effect")}else throw new TypeError("Invalid effect")},e.getOuterStack)}effect(e,n="anonymous"){if(this.assertActive(),this.state===5)throw new as("INACTIVE_EFFECT");const i=[];let s=!1,a;const u=()=>{if(s)return a;s=!0;let V;for(const F of i.splice(0).reverse())if(V)V=V.then(()=>vu(F));else{const U=vu(F);mr(U)&&"then"in U&&(V=U)}return a=V},c={label:n,children:[]},d={execute:e,epoch:!0,collect:V=>{i.push(V),this._disposables.delete(V),V[te.effect]&&c.children.push(V[te.effect])},getOuterStack:pa()};let p,m=!0,y,w,g,k=!1,x,C=()=>!1;const T=()=>(g??(g=new Promise((V,F)=>{y=V,w=F})),g),A=V=>Promise.resolve(V).then(()=>u(),async F=>{throw await u(),F}),D=V=>{let F;try{F=V()}catch(U){throw C(),U}if(mr(F)&&"then"in F){const U=Promise.resolve(F).finally(()=>{C(),x===U&&(x=void 0)});return x=U}return C(),F},O=ln(()=>d.epoch?(d.epoch=!1,D(()=>m?A(T()):p?A(p):u())):k?x:void 0,te.effect,c);jm.set(O,()=>x),C=this._disposables.push(O);try{p=this._execute(d)}catch(V){m=!1,k=!0,d.epoch=!1;let F;try{F=D(u)}finally{w==null||w(V)}throw mr(F)&&"then"in F&&F.catch(U=>this.ctx.logger.error(U)),V}m=!1,g&&Promise.resolve(p).then(y,w),p==null||p.catch(()=>d.epoch?D(u):u()).catch(V=>this.ctx.logger.error(V));const z=()=>{if(d.epoch)return d.epoch=!1,D(u)};return O.then=async(V,F)=>Promise.resolve(p).then(()=>z).then(V,F),O}getEffects(){return[...this._disposables].map(e=>e[te.effect]).filter(Boolean)}_getState(){return this.uid===null?4:this._error?3:this._runner.epoch!==tn?2:0}_updateState(e){const n=this.state;if(this.state=e()??this._getState(),n!==this.state&&(this.context.emit("internal/status",this,n),!(n!==2&&this.state!==2)))for(const i of Reflect.ownKeys(this.ctx.reflect.store)){const s=this.ctx.reflect.store[i];s.fiber===this&&this.ctx.reflect.notify([s.name])}}_checkImpl(e){const n=this.ctx.reflect._getImpl(e,!0);if(!n)return delete this._store[e];try{if(n.check&&!n.check.call(Bn(this.ctx,n.value)))return delete this._store[e]}catch(i){return n.fiber.ctx.logger.error(i),delete this._store[e]}this._store[e]=n}_refresh(){let e=!1;e="";for(const n of Object.keys(this.inject)){const i=this._store[n];if(!i){e=tn;break}e+=":"+i.fiber.uid}this._setEpoch(e)}_setEpoch(e){const n=this._runner.epoch;e!==n&&(this._runner.epoch=e,!this.inertia&&this._updateState(()=>e!==tn&&n===tn?(this.inertia=this._reload(),1):(this.inertia=this._unload(),5)))}_resolveConfig(e){return e=this.context.waterfall(this,"internal/config",e,()=>e),this.runtime?Mm(this.runtime,e):e}async _reload(){this.store={...this._store};const e=this._runner.epoch;try{await Promise.resolve(),this._runner.epoch===e&&(this.config=this._resolveConfig(this._config),await this._execute(this._runner),this._error=void 0)}catch(n){this.ctx.logger.error(n),this._error=n,this._runner.epoch=tn}this._updateState(()=>{if(this._runner.epoch===e)this.inertia=void 0;else return this.inertia=this._unload(),5})}async _unload(){await Promise.all(this._disposables.clear().map(async e=>{try{await Go(async n=>{await Promise.resolve(),n.error=new Error,await vu(e)},this._runner.getOuterStack)}catch(n){this.ctx.logger.error(n)}})),this.store=void 0,this._updateState(()=>{if(this._runner.epoch===tn)this.inertia=void 0;else return this.inertia=this._reload(),1})}async await(){for(;this.inertia;)await this.inertia;if(this._error)throw this._error;return this}async restart(){this.assertActive(),this._setEpoch(tn),this._refresh(),await this.await()}update(e,n=!1){if(this.assertActive(),this._config=e,this.state!==2){this._error=void 0,this._setEpoch(tn),this._refresh();return}return e=this._resolveConfig(e),this.context.waterfall(this,"internal/update",e,n,()=>(this.config=e,this._error=void 0,this.restart()))}};function Mv(e){return e&&typeof e=="object"&&typeof e.apply=="function"}function ls(e,n){return function(i,s){var a,u;if(s.kind==="class")Object.hasOwn(i,"inject")||(ln(i,"inject",Object.create(Object.getPrototypeOf(i).inject??null)),ln(i.inject,te.checkProto,!0)),i.inject[e]=n;else if(s.kind==="method"){const c=(u=i[a=te.metadata]??(i[a]={})).inject??(u.inject=Object.create(null));c[e]=n,s.addInitializer(function(){var p,m;const d=(p=this[te.tracker])==null?void 0:p.property;(this[m=te.initHooks]??(this[m]=[])).push(()=>{this.ctx.inject(c,y=>i.call(d?os(this,{[d]:y}):this))})})}else throw new Error("@Inject() can only be used on class or class methods")}}(function(e){function n(i,s=Object.create(null)){if(!i)return s;if(Array.isArray(i))for(const a of i)s[a]=null;else if(Reflect.has(i,te.checkProto)){Object.assign(s,n(Object.getPrototypeOf(i)));for(const a of Object.keys(i))s[a]=i[a]??null}else for(const a of Object.keys(i))s[a]=i[a]??null;return s}e.resolve=n})(ls||(ls={}));var Nm=class{constructor(e){I(this,"ctx");I(this,"_counter",0);I(this,"_internal",new Map);this.ctx=e,ln(this,te.tracker,{property:"ctx",noShadow:!0})}get counter(){return++this._counter}get size(){return this._internal.size}resolve(e){try{if(typeof e=="function")return e;if(Mv(e))return e.apply}catch{}}get(e){const n=this.resolve(e);return n&&this._internal.get(n)}has(e){const n=this.resolve(e);return!!n&&this._internal.has(n)}delete(e){const n=this.resolve(e),i=n&&this._internal.get(n);if(i){this._internal.delete(n);for(const s of i.fibers)s.dispose();return i}}keys(){return this._internal.keys()}values(){return this._internal.values()}entries(){return this._internal.entries()}forEach(e){return this._internal.forEach(e)}inject(e,n){return this.plugin({inject:e,apply:n,name:n.name})}plugin(e,n,i=pa()){const s=this.resolve(e);if(!s)throw new Error('invalid plugin, expect function or object with an "apply" method, received '+typeof e);this.ctx.fiber.assertActive();let a=this._internal.get(s);if(!a){let d=e.name;d==="apply"&&(d=void 0),a={name:d,callback:s,fibers:new da,Config:e.Config},this._internal.set(s,a)}const u=new Hc(this.ctx,n,ls.resolve(e.inject),a,i),c=Object.create(u);return c.then=(d,p)=>u.await().then(d,p),c}},Tt,We=(Tt=class{static is(n){return!!(n!=null&&n[Tt.is])}constructor(){this[te.isolate]=Object.create(null),this[te.intercept]=Object.create(null);const n=new Proxy(this,Sp.handler);return this.root=n,this.baseUrl=void 0,this.fiber=new Hc(n,{},Object.create(null),null,()=>[]),this.reflect=new Sp(n),this.registry=new Nm(n),this.events=new Em(n),this.logger=new bm(n),this.fiber._disposables.clear(),n}[Symbol.for("nodejs.util.inspect.custom")](){return`Context <${this.fiber.name}>`}extend(n={}){var a;const i=(a=Reflect.getOwnPropertyDescriptor(this,te.shadow))==null?void 0:a.value,s=Object.create(Bn(this,this));for(const u of Reflect.ownKeys(n))Object.defineProperty(s,u,Reflect.getOwnPropertyDescriptor(n,u));return i?Object.assign(Object.create(s),{[te.shadow]:i}):s}isolate(n,i){const s=Object.create(this[te.isolate]);return s[n]=i??Symbol(n),this.extend({[te.isolate]:s})}intercept(n,i){const s=Object.create(this[te.intercept]);return s[n]=i,this.extend({[te.intercept]:s})}},I(Tt,"effect",te.effect),I(Tt,"filter",te.filter),I(Tt,"isolate",te.isolate),I(Tt,"intercept",te.intercept),Tt.is[Symbol.toPrimitive]=()=>Symbol.for("cordis.is"),Tt.prototype[Tt.is]=!0,Tt),Et,pr=(Et=class{constructor(n,i){I(this,"ctx");I(this,"name");this.ctx=n,i??(i=this.constructor.provide);let s=this;const a={associate:i,property:"ctx"};return s[te.invoke]&&(s=Ko(i,ha(Object.getPrototypeOf(this),Function.prototype),a)),s.ctx=n,s.name=i,ln(s,te.tracker,a),s.ctx.reflect.provide(i,s,this[te.check]),s}[te.filter](n){return n[te.isolate][this.name]===this.ctx[te.isolate][this.name]}[te.extend](n){let i;return this[Et.invoke]?i=Ko(this.name,this,this[te.tracker]):i=Object.create(this),Object.assign(i,n)}[te.resolveConfig](n,i){var u;let s=this.ctx[We.intercept];const a=[];for(;this.name in s;)Object.hasOwn(s,this.name)&&a.unshift(s[this.name]),s=Object.getPrototypeOf(s);return n&&a.unshift(n),i&&a.push(i),(u=this.Config)!=null&&u.merge?this.Config.merge(...a):Object.assign({},...a)}static[Symbol.hasInstance](n){var s;if(!n)return!1;let i=n.constructor;for(;i;){if(i=(s=i.prototype)==null?void 0:s.constructor,i===this)return!0;i&&(i=Object.getPrototypeOf(i))}return!1}},I(Et,"init",te.init),I(Et,"check",te.check),I(Et,"config",te.config),I(Et,"invoke",te.invoke),I(Et,"extend",te.extend),I(Et,"tracker",te.tracker),I(Et,"resolveConfig",te.resolveConfig),Et);const jv=Object.freeze(Object.defineProperty({__proto__:null,Context:We,get CordisError(){return as},DisposableList:da,EventsService:Em,Fiber:Hc,get Inject(){return ls},Logger:Yo,LoggerService:bm,RegistryService:Nm,Service:pr,ValidationError:Bc,buildOuterStack:pa,c16:Tm,c256:Pm,composeError:Go,createCallable:Ko,defaultFormatters:rc,getPropertyDescriptor:Sm,getTraceable:Bn,isBailed:nc,isConstructor:km,isObject:mr,joinPrototype:ha,resolveConfig:Mm,symbols:te,withProps:os},Symbol.toStringTag,{value:"Module"})),Lv=()=>{throw new Error("node:module is not available in the browser")};var Nv=[],ic;(function(e){let n;function i(a){const u=Lv();if(Nv.includes("--expose-internals"))try{return u(a)}catch{}try{return u("node-addon-require-builtin").requireBuiltin(a)}catch{}}function s(){var u,c;if(n)return n;const[a]="0.0.0".split(".").map(Number);if(a>=24){const d=(u=i("internal/modules/esm/loader"))==null?void 0:u.getOrInitializeCascadedLoader();if(d)return n=Object.assign(d,{version:"v2"})}else if(a>=22){const d=(c=i("internal/modules/esm/loader"))==null?void 0:c.getOrInitializeCascadedLoader();if(d)return n=Object.assign(d,{version:"v1"})}}e.fromInternal=s})(ic||(ic={}));var Qu,Xo=(Qu=class{constructor(e,n){I(this,"ctx");I(this,"tree");I(this,"data",[]);this.ctx=e,this.tree=n;const i=e.fiber.entry;i&&(i.subgroup=this)}get context(){return this.ctx}async create(e){const n=this.tree.ensureId(e),i=this.tree.store[n],s=i??(this.tree.store[n]=new oc(this.ctx.loader)),a=s.parent;s.parent=this;try{await s.update(e,!0,!0)}catch(u){throw i?s.parent=a:delete this.tree.store[n],u}return s.id}unlink(e){const n=this.data,i=n.indexOf(e);i>=0&&n.splice(i,1)}async remove(e,n=!1){const i=this.tree.store[e];i&&(await i._dispose(),n||this.unlink(i.options),delete this.tree.store[e],this.context.emit("loader/partial-dispose",i,i.options,!1))}async update(e){const n=this.data,i=new Set;for(const u of e){const c=this.tree.ensureId(u);if(i.has(c))throw new TypeError(`duplicate loader entry id: ${c}`);i.add(c)}const s=Object.fromEntries(n.map(u=>[u.id,u])),a=Object.fromEntries(e.map(u=>[u.id,u]));try{const u=await Promise.allSettled(e.map(d=>this.create(d)));if(this.ctx.fiber.uid===null)return;const c=u.filter(d=>d.status==="rejected").map(d=>d.reason);if(c.length===1)throw c[0];if(c.length>1)throw new AggregateError(c,"loader entries failed to apply");for(const d of Object.keys(s))a[d]||await this.remove(d,!0);this.data=e}catch(u){const c=[];for(const d of Object.keys(a).reverse())if(!s[d])try{await this.remove(d,!0)}catch(p){c.push(p)}for(const d of n)try{await this.create(d)}catch(p){c.push(p)}throw this.data=n,c.length?new AggregateError([u,...c],"loader entry rollback failed"):u}}async stop(){for(const e of this.data)await this.remove(e.id,!0)}},I(Qu,"key",Symbol.for("cordis.group")),Qu),ym,Io;Io=class extends Xo{constructor(n,i){super(n,n.fiber.entry.parent.tree);I(this,"ctx");I(this,"config");this.ctx=n,this.config=i,n.on("internal/update",s=>this.update(s))}async*[(ym=Xo.key,pr.init)](){yield()=>this.stop(),await this.update(this.config)}},I(Io,"initial",[]),I(Io,ym,!0);var Cp=function(e,n){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,s,a,u,c){return s?".js":a&&(!u||!c)?i:a+u+"."+c.toLowerCase()+"js"}):e},vr,Am=(vr=class{constructor(n){I(this,"ctx");I(this,"enableLogs");I(this,"root");I(this,"store",Object.create(null));this.ctx=n.extend({baseUrl:n.baseUrl}),this.root=new Xo(this.ctx,this);const i=this.ctx.fiber.entry;i&&(i.subtree=this)}get context(){return this.ctx}*entries(){for(const n of Object.values(this.store))yield n,n.subtree&&(yield*n.subtree.entries())}getTasks(){return[...this.entries()].map(n=>{var i;return n._initTask||((i=n.fiber)==null?void 0:i.inertia)}).filter(gv)}async await(){for(;;){const n=this.getTasks();if(n.length){await Promise.allSettled(n);continue}const i=(await Promise.allSettled([...this.entries()].map(s=>s._await()))).filter(s=>s.status==="rejected").map(s=>s.reason);if(i.length===1)throw i[0];if(i.length>1)throw new AggregateError(i,"loader fibers failed");if(this.ctx.reflect.notify(["loader"]),!this.getTasks().length)return}}ensureId(n){if(!n.id)do n.id=Math.random().toString(16).slice(2,10);while(this.store[n.id]);return n.id}resolve(n){var c;const i=n.split(vr.sep);let s=this;const a=i.pop();for(const d of i)if(s=(c=s.store[d])==null?void 0:c.subtree,!s)throw new Error(`cannot resolve entry ${n}`);const u=s.store[a];if(!u)throw new Error(`cannot resolve entry ${n}`);return u}resolveGroup(n){if(!n)return this.root;const i=this.resolve(n);if(!i.subgroup)throw new Error(`entry ${n} is not a group`);return i.subgroup}async create(n,i=null,s=1/0){const a=this.resolveGroup(i),u=await a.create(n),c=this.resolve(u);return a.data.splice(s,0,c.options),a.tree.write(),u}async remove(n){const i=this.resolve(n);await i.parent.remove(n),i.parent.tree.write()}async update(n,i,s,a){const u=this.resolve(n),c=u.parent,d=c.data.indexOf(u.options);let p=c;s!==void 0&&(p=this.resolveGroup(s),c.unlink(u.options),p.data.splice(a??1/0,0,u.options),u.parent=p);try{await u.update(i,!1,!0)}catch(m){if(s!==void 0){p.unlink(u.options),c.data.splice(d<0?c.data.length:d,0,u.options),u.parent=c;try{await u.update({},!1,!0)}catch(y){throw new AggregateError([m,y],`failed to roll back loader entry move ${n}`)}}throw m}c.tree.write(),p!==c&&p.tree.write()}import(n,i){return n.startsWith("cordis:")?this.ctx.loader.builtins[n.slice(7)]:Go(async s=>(s.offset+=3,this.ctx.loader.internal?await this.ctx.loader.internal.import(n,this.ctx.baseUrl,{}):n.startsWith(".")?await import(Cp(new URL(n,this.ctx.baseUrl).href)):await import(Cp(n))),i)}},I(vr,"sep",":"),vr);const Rm=new Function("ctx","expr",`
13
+ `));I(this,"name","ValidationError")}};Object.defineProperty(Bc.prototype,bv,{value:!0});function jm(e,n){if(!e.Config)return n;const i=e.Config["~standard"].validate(n);if("then"in i)throw new TypeError("Async config validation is not supported");if(i.issues)throw new Bc(i.issues);return i.value}const Lm=new WeakMap;function vu(e){var i;const n=e();return((i=Lm.get(e))==null?void 0:i())??n}function Mv(e,n){const i=["internal/plugin",n];let s;try{s=e.events.dispatch("emit",i)}catch(a){e.logger.error(a);return}for(const a of s)try{const u=a(...i);Promise.resolve(u).catch(c=>e.logger.error(c))}catch(u){e.logger.error(u)}}var as=class Nm extends Error{constructor(i,s){super(s??Nm.Code[i]);I(this,"code");this.code=i}};(function(e){e.Code={INACTIVE_EFFECT:"cannot create effect on inactive context"}})(as||(as={}));const tn="__INACTIVE__";var Hc=class{constructor(e,n,i,s,a){I(this,"parent");I(this,"inject");I(this,"runtime");I(this,"uid");I(this,"ctx");I(this,"config");I(this,"_config");I(this,"state",0);I(this,"dispose");I(this,"store");I(this,"inertia");I(this,"_hooks",Object.create(null));I(this,"_disposables",new da);I(this,"context");I(this,"_error");I(this,"_runner");I(this,"_store",Object.create(null));this.parent=e,this.inject=i,this.runtime=s,this._config=n;const u=c=>{this._disposables.push(c)};if(s){this.uid=e.registry.counter,this.ctx=this.context=e.extend({fiber:this});const c=Object.entries(this.inject);if(c.length){this.ctx[We.intercept]=Object.create(e[We.intercept]);for(const[d,p]of c)_n(p)||(this.ctx[We.intercept][d]=p)}this._runner={epoch:tn,getOuterStack:a,execute:function(){var d;if(Sm(s.callback)){const p=new s.callback(this.ctx,this.config);for(const m of(p==null?void 0:p[te.initHooks])??[])m();return(d=p==null?void 0:p[te.init])==null?void 0:d.call(p)}else return s.callback(this.ctx,this.config)},collect:u},this.dispose=e.fiber.effect(()=>{const d=s.fibers.push(this);return async()=>{for(this.uid=null,Mv(this.context,this),this.ctx.registry.has(s.callback)&&(d(),s.fibers.length||this.ctx.registry.delete(s.callback)),this._setEpoch(tn),this.inertia||this._updateState(()=>(this.inertia=this._unload(),5));this.inertia;)await this.inertia}},"ctx.plugin()");try{this.context.emit("internal/plugin",this)}catch(d){throw Promise.resolve(this.dispose()).catch(p=>this.ctx.logger.error(p)),d}if(this.uid!==null&&e.fiber.state!==5){for(const d of Object.keys(this.inject))this._checkImpl(d);this._refresh()}}else this.uid=0,this.ctx=this.context=e,this.state=2,this.store=Object.create(null),this._runner={epoch:"",getOuterStack:a,execute:()=>{},collect:u},this.dispose=()=>this.restart()}get name(){var n;let e=this;do{if((n=e.runtime)!=null&&n.name)return e.runtime.name;e=e.parent.fiber}while(e!==e.parent.fiber);return"root"}assertActive(){if(this.uid===null)throw new as("INACTIVE_EFFECT")}_execute(e){const n=e.epoch;return Go(i=>{const s=u=>{if(typeof u=="function")e.collect(u);else if(!_n(u))throw new TypeError("Invalid effect")},a=e.execute.call(this);if(typeof a=="function")return e.collect(a);if(!_n(a))if(mr(a)){if("then"in a)return a.then(s);if(Symbol.iterator in a){i.error=new Error;const u=a[Symbol.iterator]();for(;;){const c=u.next();if(s(c.value),c.done)return}}else if(Symbol.asyncIterator in a){const u=a[Symbol.asyncIterator]();return(async()=>{for(await Promise.resolve(),i.error=new Error;;){if(e.epoch!==n)return;const c=await u.next();if(s(c.value),c.done)return}})()}else throw new TypeError("Invalid effect")}else throw new TypeError("Invalid effect")},e.getOuterStack)}effect(e,n="anonymous"){if(this.assertActive(),this.state===5)throw new as("INACTIVE_EFFECT");const i=[];let s=!1,a;const u=()=>{if(s)return a;s=!0;let V;for(const F of i.splice(0).reverse())if(V)V=V.then(()=>vu(F));else{const U=vu(F);mr(U)&&"then"in U&&(V=U)}return a=V},c={label:n,children:[]},d={execute:e,epoch:!0,collect:V=>{i.push(V),this._disposables.delete(V),V[te.effect]&&c.children.push(V[te.effect])},getOuterStack:pa()};let p,m=!0,y,w,g,k=!1,x,C=()=>!1;const T=()=>(g??(g=new Promise((V,F)=>{y=V,w=F})),g),A=V=>Promise.resolve(V).then(()=>u(),async F=>{throw await u(),F}),D=V=>{let F;try{F=V()}catch(U){throw C(),U}if(mr(F)&&"then"in F){const U=Promise.resolve(F).finally(()=>{C(),x===U&&(x=void 0)});return x=U}return C(),F},O=ln(()=>d.epoch?(d.epoch=!1,D(()=>m?A(T()):p?A(p):u())):k?x:void 0,te.effect,c);Lm.set(O,()=>x),C=this._disposables.push(O);try{p=this._execute(d)}catch(V){m=!1,k=!0,d.epoch=!1;let F;try{F=D(u)}finally{w==null||w(V)}throw mr(F)&&"then"in F&&F.catch(U=>this.ctx.logger.error(U)),V}m=!1,g&&Promise.resolve(p).then(y,w),p==null||p.catch(()=>d.epoch?D(u):u()).catch(V=>this.ctx.logger.error(V));const z=()=>{if(d.epoch)return d.epoch=!1,D(u)};return O.then=async(V,F)=>Promise.resolve(p).then(()=>z).then(V,F),O}getEffects(){return[...this._disposables].map(e=>e[te.effect]).filter(Boolean)}_getState(){return this.uid===null?4:this._error?3:this._runner.epoch!==tn?2:0}_updateState(e){const n=this.state;if(this.state=e()??this._getState(),n!==this.state&&(this.context.emit("internal/status",this,n),!(n!==2&&this.state!==2)))for(const i of Reflect.ownKeys(this.ctx.reflect.store)){const s=this.ctx.reflect.store[i];s.fiber===this&&this.ctx.reflect.notify([s.name])}}_checkImpl(e){const n=this.ctx.reflect._getImpl(e,!0);if(!n)return delete this._store[e];try{if(n.check&&!n.check.call(Bn(this.ctx,n.value)))return delete this._store[e]}catch(i){return n.fiber.ctx.logger.error(i),delete this._store[e]}this._store[e]=n}_refresh(){let e=!1;e="";for(const n of Object.keys(this.inject)){const i=this._store[n];if(!i){e=tn;break}e+=":"+i.fiber.uid}this._setEpoch(e)}_setEpoch(e){const n=this._runner.epoch;e!==n&&(this._runner.epoch=e,!this.inertia&&this._updateState(()=>e!==tn&&n===tn?(this.inertia=this._reload(),1):(this.inertia=this._unload(),5)))}_resolveConfig(e){return e=this.context.waterfall(this,"internal/config",e,()=>e),this.runtime?jm(this.runtime,e):e}async _reload(){this.store={...this._store};const e=this._runner.epoch;try{await Promise.resolve(),this._runner.epoch===e&&(this.config=this._resolveConfig(this._config),await this._execute(this._runner),this._error=void 0)}catch(n){this.ctx.logger.error(n),this._error=n,this._runner.epoch=tn}this._updateState(()=>{if(this._runner.epoch===e)this.inertia=void 0;else return this.inertia=this._unload(),5})}async _unload(){await Promise.all(this._disposables.clear().map(async e=>{try{await Go(async n=>{await Promise.resolve(),n.error=new Error,await vu(e)},this._runner.getOuterStack)}catch(n){this.ctx.logger.error(n)}})),this.store=void 0,this._updateState(()=>{if(this._runner.epoch===tn)this.inertia=void 0;else return this.inertia=this._reload(),1})}async await(){for(;this.inertia;)await this.inertia;if(this._error)throw this._error;return this}async restart(){this.assertActive(),this._setEpoch(tn),this._refresh(),await this.await()}update(e,n=!1){if(this.assertActive(),this._config=e,this.state!==2){this._error=void 0,this._setEpoch(tn),this._refresh();return}return e=this._resolveConfig(e),this.context.waterfall(this,"internal/update",e,n,()=>(this.config=e,this._error=void 0,this.restart()))}};function jv(e){return e&&typeof e=="object"&&typeof e.apply=="function"}function ls(e,n){return function(i,s){var a,u;if(s.kind==="class")Object.hasOwn(i,"inject")||(ln(i,"inject",Object.create(Object.getPrototypeOf(i).inject??null)),ln(i.inject,te.checkProto,!0)),i.inject[e]=n;else if(s.kind==="method"){const c=(u=i[a=te.metadata]??(i[a]={})).inject??(u.inject=Object.create(null));c[e]=n,s.addInitializer(function(){var p,m;const d=(p=this[te.tracker])==null?void 0:p.property;(this[m=te.initHooks]??(this[m]=[])).push(()=>{this.ctx.inject(c,y=>i.call(d?os(this,{[d]:y}):this))})})}else throw new Error("@Inject() can only be used on class or class methods")}}(function(e){function n(i,s=Object.create(null)){if(!i)return s;if(Array.isArray(i))for(const a of i)s[a]=null;else if(Reflect.has(i,te.checkProto)){Object.assign(s,n(Object.getPrototypeOf(i)));for(const a of Object.keys(i))s[a]=i[a]??null}else for(const a of Object.keys(i))s[a]=i[a]??null;return s}e.resolve=n})(ls||(ls={}));var Am=class{constructor(e){I(this,"ctx");I(this,"_counter",0);I(this,"_internal",new Map);this.ctx=e,ln(this,te.tracker,{property:"ctx",noShadow:!0})}get counter(){return++this._counter}get size(){return this._internal.size}resolve(e){try{if(typeof e=="function")return e;if(jv(e))return e.apply}catch{}}get(e){const n=this.resolve(e);return n&&this._internal.get(n)}has(e){const n=this.resolve(e);return!!n&&this._internal.has(n)}delete(e){const n=this.resolve(e),i=n&&this._internal.get(n);if(i){this._internal.delete(n);for(const s of i.fibers)s.dispose();return i}}keys(){return this._internal.keys()}values(){return this._internal.values()}entries(){return this._internal.entries()}forEach(e){return this._internal.forEach(e)}inject(e,n){return this.plugin({inject:e,apply:n,name:n.name})}plugin(e,n,i=pa()){const s=this.resolve(e);if(!s)throw new Error('invalid plugin, expect function or object with an "apply" method, received '+typeof e);this.ctx.fiber.assertActive();let a=this._internal.get(s);if(!a){let d=e.name;d==="apply"&&(d=void 0),a={name:d,callback:s,fibers:new da,Config:e.Config},this._internal.set(s,a)}const u=new Hc(this.ctx,n,ls.resolve(e.inject),a,i),c=Object.create(u);return c.then=(d,p)=>u.await().then(d,p),c}},Tt,We=(Tt=class{static is(n){return!!(n!=null&&n[Tt.is])}constructor(){this[te.isolate]=Object.create(null),this[te.intercept]=Object.create(null);const n=new Proxy(this,Sp.handler);return this.root=n,this.baseUrl=void 0,this.fiber=new Hc(n,{},Object.create(null),null,()=>[]),this.reflect=new Sp(n),this.registry=new Am(n),this.events=new Tm(n),this.logger=new Mm(n),this.fiber._disposables.clear(),n}[Symbol.for("nodejs.util.inspect.custom")](){return`Context <${this.fiber.name}>`}extend(n={}){var a;const i=(a=Reflect.getOwnPropertyDescriptor(this,te.shadow))==null?void 0:a.value,s=Object.create(Bn(this,this));for(const u of Reflect.ownKeys(n))Object.defineProperty(s,u,Reflect.getOwnPropertyDescriptor(n,u));return i?Object.assign(Object.create(s),{[te.shadow]:i}):s}isolate(n,i){const s=Object.create(this[te.isolate]);return s[n]=i??Symbol(n),this.extend({[te.isolate]:s})}intercept(n,i){const s=Object.create(this[te.intercept]);return s[n]=i,this.extend({[te.intercept]:s})}},I(Tt,"effect",te.effect),I(Tt,"filter",te.filter),I(Tt,"isolate",te.isolate),I(Tt,"intercept",te.intercept),Tt.is[Symbol.toPrimitive]=()=>Symbol.for("cordis.is"),Tt.prototype[Tt.is]=!0,Tt),Et,pr=(Et=class{constructor(n,i){I(this,"ctx");I(this,"name");this.ctx=n,i??(i=this.constructor.provide);let s=this;const a={associate:i,property:"ctx"};return s[te.invoke]&&(s=Ko(i,ha(Object.getPrototypeOf(this),Function.prototype),a)),s.ctx=n,s.name=i,ln(s,te.tracker,a),s.ctx.reflect.provide(i,s,this[te.check]),s}[te.filter](n){return n[te.isolate][this.name]===this.ctx[te.isolate][this.name]}[te.extend](n){let i;return this[Et.invoke]?i=Ko(this.name,this,this[te.tracker]):i=Object.create(this),Object.assign(i,n)}[te.resolveConfig](n,i){var u;let s=this.ctx[We.intercept];const a=[];for(;this.name in s;)Object.hasOwn(s,this.name)&&a.unshift(s[this.name]),s=Object.getPrototypeOf(s);return n&&a.unshift(n),i&&a.push(i),(u=this.Config)!=null&&u.merge?this.Config.merge(...a):Object.assign({},...a)}static[Symbol.hasInstance](n){var s;if(!n)return!1;let i=n.constructor;for(;i;){if(i=(s=i.prototype)==null?void 0:s.constructor,i===this)return!0;i&&(i=Object.getPrototypeOf(i))}return!1}},I(Et,"init",te.init),I(Et,"check",te.check),I(Et,"config",te.config),I(Et,"invoke",te.invoke),I(Et,"extend",te.extend),I(Et,"tracker",te.tracker),I(Et,"resolveConfig",te.resolveConfig),Et);const Lv=Object.freeze(Object.defineProperty({__proto__:null,Context:We,get CordisError(){return as},DisposableList:da,EventsService:Tm,Fiber:Hc,get Inject(){return ls},Logger:Yo,LoggerService:Mm,RegistryService:Am,Service:pr,ValidationError:Bc,buildOuterStack:pa,c16:Pm,c256:bm,composeError:Go,createCallable:Ko,defaultFormatters:rc,getPropertyDescriptor:Cm,getTraceable:Bn,isBailed:nc,isConstructor:Sm,isObject:mr,joinPrototype:ha,resolveConfig:jm,symbols:te,withProps:os},Symbol.toStringTag,{value:"Module"})),Cp=()=>{throw new Error("node:module is not available in the browser")};var Nv=[],ic;(function(e){let n;function i(a){const u=Cp();if(Nv.includes("--expose-internals"))try{return u(a)}catch{}try{return u("node-addon-require-builtin").requireBuiltin(a)}catch{}try{const c=Cp(u.resolve("node-addon-require-builtin/package.json"));return c(c("node-addon-native-custom-loader").optionalPackageName("node-addon-require-builtin")).requireBuiltin(a)}catch{}}function s(){var u,c;if(n)return n;const[a]="0.0.0".split(".").map(Number);if(a>=24){const d=(u=i("internal/modules/esm/loader"))==null?void 0:u.getOrInitializeCascadedLoader();if(d)return n=Object.assign(d,{version:"v2"})}else if(a>=22){const d=(c=i("internal/modules/esm/loader"))==null?void 0:c.getOrInitializeCascadedLoader();if(d)return n=Object.assign(d,{version:"v1"})}}e.fromInternal=s})(ic||(ic={}));var Qu,Xo=(Qu=class{constructor(e,n){I(this,"ctx");I(this,"tree");I(this,"data",[]);this.ctx=e,this.tree=n;const i=e.fiber.entry;i&&(i.subgroup=this)}get context(){return this.ctx}async create(e){const n=this.tree.ensureId(e),i=this.tree.store[n],s=i??(this.tree.store[n]=new oc(this.ctx.loader)),a=s.parent;s.parent=this;try{await s.update(e,!0,!0)}catch(u){throw i?s.parent=a:delete this.tree.store[n],u}return s.id}unlink(e){const n=this.data,i=n.indexOf(e);i>=0&&n.splice(i,1)}async remove(e,n=!1){const i=this.tree.store[e];i&&(await i._dispose(),n||this.unlink(i.options),delete this.tree.store[e],this.context.emit("loader/partial-dispose",i,i.options,!1))}async update(e){const n=this.data,i=new Set;for(const u of e){const c=this.tree.ensureId(u);if(i.has(c))throw new TypeError(`duplicate loader entry id: ${c}`);i.add(c)}const s=Object.fromEntries(n.map(u=>[u.id,u])),a=Object.fromEntries(e.map(u=>[u.id,u]));try{const u=await Promise.allSettled(e.map(d=>this.create(d)));if(this.ctx.fiber.uid===null)return;const c=u.filter(d=>d.status==="rejected").map(d=>d.reason);if(c.length===1)throw c[0];if(c.length>1)throw new AggregateError(c,"loader entries failed to apply");for(const d of Object.keys(s))a[d]||await this.remove(d,!0);this.data=e}catch(u){const c=[];for(const d of Object.keys(a).reverse())if(!s[d])try{await this.remove(d,!0)}catch(p){c.push(p)}for(const d of n)try{await this.create(d)}catch(p){c.push(p)}throw this.data=n,c.length?new AggregateError([u,...c],"loader entry rollback failed"):u}}async stop(){for(const e of this.data)await this.remove(e.id,!0)}},I(Qu,"key",Symbol.for("cordis.group")),Qu),gm,Io;Io=class extends Xo{constructor(n,i){super(n,n.fiber.entry.parent.tree);I(this,"ctx");I(this,"config");this.ctx=n,this.config=i,n.on("internal/update",s=>this.update(s))}async*[(gm=Xo.key,pr.init)](){yield()=>this.stop(),await this.update(this.config)}},I(Io,"initial",[]),I(Io,gm,!0);var Ep=function(e,n){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,s,a,u,c){return s?".js":a&&(!u||!c)?i:a+u+"."+c.toLowerCase()+"js"}):e},vr,Rm=(vr=class{constructor(n){I(this,"ctx");I(this,"enableLogs");I(this,"root");I(this,"store",Object.create(null));this.ctx=n.extend({baseUrl:n.baseUrl}),this.root=new Xo(this.ctx,this);const i=this.ctx.fiber.entry;i&&(i.subtree=this)}get context(){return this.ctx}*entries(){for(const n of Object.values(this.store))yield n,n.subtree&&(yield*n.subtree.entries())}getTasks(){return[...this.entries()].map(n=>{var i;return n._initTask||((i=n.fiber)==null?void 0:i.inertia)}).filter(vv)}async await(){for(;;){const n=this.getTasks();if(n.length){await Promise.allSettled(n);continue}const i=(await Promise.allSettled([...this.entries()].map(s=>s._await()))).filter(s=>s.status==="rejected").map(s=>s.reason);if(i.length===1)throw i[0];if(i.length>1)throw new AggregateError(i,"loader fibers failed");if(this.ctx.reflect.notify(["loader"]),!this.getTasks().length)return}}ensureId(n){if(!n.id)do n.id=Math.random().toString(16).slice(2,10);while(this.store[n.id]);return n.id}resolve(n){var c;const i=n.split(vr.sep);let s=this;const a=i.pop();for(const d of i)if(s=(c=s.store[d])==null?void 0:c.subtree,!s)throw new Error(`cannot resolve entry ${n}`);const u=s.store[a];if(!u)throw new Error(`cannot resolve entry ${n}`);return u}resolveGroup(n){if(!n)return this.root;const i=this.resolve(n);if(!i.subgroup)throw new Error(`entry ${n} is not a group`);return i.subgroup}async create(n,i=null,s=1/0){const a=this.resolveGroup(i),u=await a.create(n),c=this.resolve(u);return a.data.splice(s,0,c.options),a.tree.write(),u}async remove(n){const i=this.resolve(n);await i.parent.remove(n),i.parent.tree.write()}async update(n,i,s,a){const u=this.resolve(n),c=u.parent,d=c.data.indexOf(u.options);let p=c;s!==void 0&&(p=this.resolveGroup(s),c.unlink(u.options),p.data.splice(a??1/0,0,u.options),u.parent=p);try{await u.update(i,!1,!0)}catch(m){if(s!==void 0){p.unlink(u.options),c.data.splice(d<0?c.data.length:d,0,u.options),u.parent=c;try{await u.update({},!1,!0)}catch(y){throw new AggregateError([m,y],`failed to roll back loader entry move ${n}`)}}throw m}c.tree.write(),p!==c&&p.tree.write()}import(n,i){return n.startsWith("cordis:")?this.ctx.loader.builtins[n.slice(7)]:Go(async s=>(s.offset+=3,this.ctx.loader.internal?await this.ctx.loader.internal.import(n,this.ctx.baseUrl,{}):n.startsWith(".")?await import(Ep(new URL(n,this.ctx.baseUrl).href)):await import(Ep(n))),i)}},I(vr,"sep",":"),vr);const Dm=new Function("ctx","expr",`
14
14
  with (ctx) {
15
15
  return eval(expr)
16
16
  }
17
- `);function sc(e,n){return Dm(n)?Rm(e,n.__jsExpr):!n||typeof n!="object"?n:Array.isArray(n)?n.map(i=>sc(e,i)):vv(n,i=>sc(e,i))}function Dm(e){return e instanceof Object&&"__jsExpr"in e}function nn(e,n,i){const s=i instanceof Error?i.message:String(i);return new Error(`failed to ${e} loader entry ${n.id} (${n.name}): ${s}`,{cause:i})}function wu(e,n){const i=[];for(const s of n)s in e&&(i.push([s,e[s]]),delete e[s]);return i}function Av(e,n=["id","name"],i=["config"]){const s=wu(e,n),a=wu(e,i),u=wu(e,Object.keys(e)).sort(([c],[d])=>c.localeCompare(d));return Object.assign(e,Object.fromEntries([...s,...u,...a]))}function Rv(e,n){for(const i of Object.keys(e))Reflect.deleteProperty(e,i);return Object.assign(e,n)}var wr,oc=(wr=class{constructor(n){I(this,"loader");I(this,"ctx");I(this,"fiber");I(this,"parent");I(this,"options",{});I(this,"subgroup");I(this,"subtree");I(this,"_initTask");I(this,"_disposing",0);I(this,"getOuterStack",()=>{let n=this;const i=[];do i.push(` at ${n.parent.tree.ctx.baseUrl}#${n.options.id}`),n=n.parent.ctx.fiber.entry;while(n);return i});this.loader=n,this.ctx=n.ctx.extend({[wr.key]:this}),this.context.emit("loader/entry-init",this)}get context(){return this.ctx}get id(){let n=this.options.id;return this.parent.tree.ctx.fiber.entry&&(n=this.parent.tree.ctx.fiber.entry.id+Am.sep+n),n}get disabled(){return this._disabled(this.options)}_disabled(n){if(n.group)return!1;if(this.disabledOf(n))return!0;let i=this.parent.ctx.fiber.entry;for(;i;){if(this.disabledOf(i.options))return!0;i=i.parent.ctx.fiber.entry}return!1}disabledOf(n){return Dm(n.disabled)?!!this.evaluate(n.disabled.__jsExpr):!!n.disabled}evaluate(n){return Rm(this.ctx,n)}async _patchContext(n){await this.context.waterfall("loader/patch-context",this,async()=>{var i;Object.setPrototypeOf(this.ctx,this.parent.ctx),(i=this.fiber)!=null&&i.uid&&(n.includes("config")||this.options.group)&&await this.fiber.update(this.options.config,!0)})}async refresh(){this.fiber||this.disabled||await this.init()}async _dispose(n=this.fiber){if(n){this.fiber===n&&(this.fiber=void 0),this._disposing+=1;try{await n.dispose()}finally{this._disposing-=1}}}async update(n,i=!1,s=!1){const a=this.options,u={...a},c=i?n:{...a};if(!i)for(const[g,k]of Object.entries(n))_n(k)?delete c[g]:c[g]=k;Av(c);const d=Object.keys({...c,...u}).filter(g=>!ec(c[g],u[g]));if(!d.length&&!s)return;const p=()=>{i||(this.options=Rv(a,c))},m=this.fiber;if(!(m!=null&&m.uid)){this.fiber=void 0,this.options=c;try{this._disabled(c)||await this.init()}catch(g){throw this.options=a,g}p();return}if(this._disabled(c)){this.options=c;try{await this._dispose(m)}catch(g){throw this.options=a,nn("dispose",c,g)}p(),this.context.emit("loader/partial-dispose",this,u,!0);return}if(!d.some(g=>g==="name"||g==="inject"||g==="group")){this.options=c;try{await this._patchContext(d)}catch(g){this.options=a;try{await this._patchContext(d)}catch(k){throw nn("rollback",u,new AggregateError([g,k]))}throw this.context.emit("loader/partial-dispose",this,c,!0),nn("apply",c,g)}p(),this.context.emit("loader/partial-dispose",this,u,!0);return}let y;try{y=d.includes("name")?this.loader.unwrapExports(await this.parent.tree.import(c.name,this.getOuterStack)):m.runtime.callback}catch(g){throw nn("import",c,g)}const w=m.runtime.callback;this.options=c;try{await this._dispose(m)}catch(g){throw this.options=a,nn("dispose",c,g)}try{await this._start(y)}catch(g){this.options=a;try{await this._start(w)}catch(k){throw nn("rollback",u,new AggregateError([g,k]))}throw this.context.emit("loader/partial-dispose",this,c,!0),nn("apply",c,g)}p(),this.context.emit("loader/partial-dispose",this,u,!0)}async init(){try{await(this._initTask??(this._initTask=this._init()))}finally{this._initTask=void 0,this.loader.getTasks().length||this.ctx.reflect.notify(["loader"])}await this._await()}async _await(){var n;try{await((n=this.fiber)==null?void 0:n.await())}catch(i){throw nn("apply",this.options,i)}}async _init(){let n;try{n=this.loader.unwrapExports(await this.parent.tree.import(this.options.name,this.getOuterStack))}catch(i){throw nn("import",this.options,i)}try{await this._start(n)}catch(i){throw nn("apply",this.options,i)}}async _start(n){let i;try{await this._patchContext([]),this.loader.showLog(this,"apply"),i=this.fiber=this.ctx.registry.plugin(n,this.options.config,this.getOuterStack),await i.await()}catch(s){throw await this._dispose(i),s}}},I(wr,"key",Symbol.for("cordis.entry")),wr);function Ep(e,n){for(const i of Reflect.ownKeys(e))Reflect.deleteProperty(e,i);for(const i of Reflect.ownKeys(n||{}))Reflect.defineProperty(e,i,Reflect.getOwnPropertyDescriptor(n,i))}var Om=class{constructor(){I(this,"store",Object.create(null))}access(e,n=!1){var i;return n?(i=this.store)[e]??(i[e]=Symbol(`${e}${this.suffix}`)):this.store[e]??Symbol(`${e}${this.suffix}`)}delete(e){delete this.store[e]}get size(){return Object.keys(this.store).length}},Dv=class extends Om{constructor(n){super();I(this,"entry");this.entry=n}get suffix(){return"#"+this.entry.options.id}},Ov=class extends Om{constructor(n){super();I(this,"label");this.label=n}get suffix(){return"@"+this.label}};function Vv(e){const n=Object.create(null),i=Object.create(null);function s(a,u,c=!1){var m;let d;const p=(m=a.options.isolate)==null?void 0:m[u];if(p)return p===!0?d=a.realm??(a.realm=new Dv(a)):c?d=n[p]??(n[p]=new Ov(p)):d=n[p],d==null?void 0:d.access(u,c)}e.on("loader/entry-init",a=>{a.ctx[We.intercept]=Object.create(a.ctx[We.intercept]),a.ctx[We.isolate]=Object.create(a.ctx[We.isolate])}),e.on("loader/patch-context",async(a,u)=>{const c=Object.create(a.parent.ctx[We.isolate]);for(const m of Object.keys(a.options.isolate??{}))c[m]=s(a,m,!0);const d=Object.create(null),p=a.ctx[We.isolate];for(const m in{...c,...i}){if(c[m]===p[m])continue;const y=i[m]??(i[m]=Symbol(`delim:${m}`));a.ctx[y]=Symbol(`${m}#${a.id}`);for(const w of[p[m],c[m]]){const g=w&&a.ctx.reflect.store[w];if(g){if(!g.fiber){a.ctx.logger.warn(new Error(`expected service ${m} to be implemented`));continue}if(d[m]=[p[m],c[m],a.ctx[y],g.fiber.ctx[y]],a.ctx[y]!==g.fiber.ctx[y])break}}}Object.setPrototypeOf(a.ctx[We.isolate],a.parent.ctx[We.isolate]),Object.setPrototypeOf(a.ctx[We.intercept],a.parent.ctx[We.intercept]),Ep(a.ctx[We.isolate],c),Ep(a.ctx[We.intercept],a.options.intercept),await u();for(const[m,y,w,g]of Object.values(d))w===g&&a.ctx.reflect.store[m]&&!a.ctx.reflect.store[y]&&(a.ctx.reflect.store[y]=a.ctx.reflect.store[m],delete a.ctx.reflect.store[m]);e.reflect.notify(Object.keys(d),(m,y)=>{const[w,g,k,x]=d[y],C=m[We.isolate][y],T=m[i[y]];return(w===C||g===C)&&k===T!=(k===x)});for(const m in i)Reflect.ownKeys(c).includes(m)||delete a.ctx[i[m]]}),e.on("loader/partial-dispose",(a,u,c)=>{var d,p;for(const[m,y]of Object.entries(u.isolate??{})){if(y===!0||c&&((d=a.options.isolate)==null?void 0:d[m])===y)continue;const w=n[y];if(w){for(const g of e.loader.entries())if(((p=g.options.isolate)==null?void 0:p[m])===w.label)return;w.delete(m),w.size||delete n[w.label]}}})}var Iv=class extends Am{constructor(n,i={}){super(n);I(this,"config");I(this,"envData",{startTime:Date.now()});I(this,"name","loader");I(this,"internal",ic.fromInternal());I(this,"builtins",Object.create(null));this.config=i,i.baseUrl&&(this.ctx.baseUrl=i.baseUrl);const s=this;ln(this,pr.tracker,{associate:"loader",property:"ctx",noShadow:!0}),n.reflect.provide("loader",this,this[pr.check]),n.on("internal/config",function(a,u){var d,p,m;const c=u();return!this.entry||((d=this.parent.fiber)==null?void 0:d.entry)===this.entry||(m=(p=this.runtime)==null?void 0:p.callback)!=null&&m[Xo.key]?c:sc(this.ctx,c)},{global:!0}),n.on("internal/update",async function(a,u,c){var p,m,y;if(!this.entry||u||((p=this.parent.fiber)==null?void 0:p.entry)===this.entry)return c();await c();const d=(y=(m=this.runtime)==null?void 0:m.Config)==null?void 0:y.simplify;this.entry.options.config=d?d(a):a,this.entry.parent.tree.write()},{global:!0,prepend:!0}),n.on("internal/update",function(a,u,c){var d;return!this.entry||((d=this.parent.fiber)==null?void 0:d.entry)===this.entry||s.showLog(this.entry,"reload"),c()},{global:!0}),n.on("internal/plugin",a=>{var c;if(a.parent[oc.key]&&!a.entry&&(a.entry=a.parent[oc.key],ls.resolve(a.entry.options.inject,a.inject)),a.uid||!a.entry||((c=a.parent.fiber)==null?void 0:c.entry)===a.entry||!n.registry.has(a.runtime.callback))return;const u=a.entry.parent.tree.ctx.fiber;!u.uid||u.state===5||a.entry._disposing||(this.showLog(a.entry,"unload"),!a.entry.disabled&&(a.entry.options.disabled=!0,a.entry.parent.tree.write()))}),n.plugin(Vv)}write(){}[pr.check](){return!(pr.prototype[pr.resolveConfig].call(this).await&&this.getTasks().length)}showLog(n,i){var s,a;n.options.group||!n.parent.tree.enableLogs||(a=(s=this.ctx.root).logger)==null||a.call(s,"loader").info("%s plugin %C",i,n.options.name)}locate(n=this.ctx.fiber){for(;;){if(n.entry)return n.entry.id;const i=n.parent.fiber;if(n===i)return;n=i}}exit(){}unwrapExports(n){return _n(n)||(n=n.default??n,!n.__esModule)?n:n.default??n}};const $v="_boot_1ionb_3",zv="_card_1ionb_26",Fv="_wordmark_1ionb_33",Bv="_hint_1ionb_41",Hv="_spinner_1ionb_47",Uv="_failed_1ionb_73",Wv="_failedTitle_1ionb_80",qv="_failedItem_1ionb_87",vn={boot:$v,card:zv,wordmark:Fv,hint:Bv,spinner:Hv,failed:Uv,failedTitle:Wv,failedItem:qv};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xu={exports:{}},we={};/**
17
+ `);function sc(e,n){return Om(n)?Dm(e,n.__jsExpr):!n||typeof n!="object"?n:Array.isArray(n)?n.map(i=>sc(e,i)):wv(n,i=>sc(e,i))}function Om(e){return e instanceof Object&&"__jsExpr"in e}function nn(e,n,i){const s=i instanceof Error?i.message:String(i);return new Error(`failed to ${e} loader entry ${n.id} (${n.name}): ${s}`,{cause:i})}function wu(e,n){const i=[];for(const s of n)s in e&&(i.push([s,e[s]]),delete e[s]);return i}function Av(e,n=["id","name"],i=["config"]){const s=wu(e,n),a=wu(e,i),u=wu(e,Object.keys(e)).sort(([c],[d])=>c.localeCompare(d));return Object.assign(e,Object.fromEntries([...s,...u,...a]))}function Rv(e,n){for(const i of Object.keys(e))Reflect.deleteProperty(e,i);return Object.assign(e,n)}var wr,oc=(wr=class{constructor(n){I(this,"loader");I(this,"ctx");I(this,"fiber");I(this,"parent");I(this,"options",{});I(this,"subgroup");I(this,"subtree");I(this,"_initTask");I(this,"_disposing",0);I(this,"getOuterStack",()=>{let n=this;const i=[];do i.push(` at ${n.parent.tree.ctx.baseUrl}#${n.options.id}`),n=n.parent.ctx.fiber.entry;while(n);return i});this.loader=n,this.ctx=n.ctx.extend({[wr.key]:this}),this.context.emit("loader/entry-init",this)}get context(){return this.ctx}get id(){let n=this.options.id;return this.parent.tree.ctx.fiber.entry&&(n=this.parent.tree.ctx.fiber.entry.id+Rm.sep+n),n}get disabled(){return this._disabled(this.options)}_disabled(n){if(n.group)return!1;if(this.disabledOf(n))return!0;let i=this.parent.ctx.fiber.entry;for(;i;){if(this.disabledOf(i.options))return!0;i=i.parent.ctx.fiber.entry}return!1}disabledOf(n){return Om(n.disabled)?!!this.evaluate(n.disabled.__jsExpr):!!n.disabled}evaluate(n){return Dm(this.ctx,n)}async _patchContext(n){await this.context.waterfall("loader/patch-context",this,async()=>{var i;Object.setPrototypeOf(this.ctx,this.parent.ctx),(i=this.fiber)!=null&&i.uid&&(n.includes("config")||this.options.group)&&await this.fiber.update(this.options.config,!0)})}async refresh(){this.fiber||this.disabled||await this.init()}async _dispose(n=this.fiber){if(n){this.fiber===n&&(this.fiber=void 0),this._disposing+=1;try{await n.dispose()}finally{this._disposing-=1}}}async update(n,i=!1,s=!1){const a=this.options,u={...a},c=i?n:{...a};if(!i)for(const[g,k]of Object.entries(n))_n(k)?delete c[g]:c[g]=k;Av(c);const d=Object.keys({...c,...u}).filter(g=>!ec(c[g],u[g]));if(!d.length&&!s)return;const p=()=>{i||(this.options=Rv(a,c))},m=this.fiber;if(!(m!=null&&m.uid)){this.fiber=void 0,this.options=c;try{this._disabled(c)||await this.init()}catch(g){throw this.options=a,g}p();return}if(this._disabled(c)){this.options=c;try{await this._dispose(m)}catch(g){throw this.options=a,nn("dispose",c,g)}p(),this.context.emit("loader/partial-dispose",this,u,!0);return}if(!d.some(g=>g==="name"||g==="inject"||g==="group")){this.options=c;try{await this._patchContext(d)}catch(g){this.options=a;try{await this._patchContext(d)}catch(k){throw nn("rollback",u,new AggregateError([g,k]))}throw this.context.emit("loader/partial-dispose",this,c,!0),nn("apply",c,g)}p(),this.context.emit("loader/partial-dispose",this,u,!0);return}let y;try{y=d.includes("name")?this.loader.unwrapExports(await this.parent.tree.import(c.name,this.getOuterStack)):m.runtime.callback}catch(g){throw nn("import",c,g)}const w=m.runtime.callback;this.options=c;try{await this._dispose(m)}catch(g){throw this.options=a,nn("dispose",c,g)}try{await this._start(y)}catch(g){this.options=a;try{await this._start(w)}catch(k){throw nn("rollback",u,new AggregateError([g,k]))}throw this.context.emit("loader/partial-dispose",this,c,!0),nn("apply",c,g)}p(),this.context.emit("loader/partial-dispose",this,u,!0)}async init(){try{await(this._initTask??(this._initTask=this._init()))}finally{this._initTask=void 0,this.loader.getTasks().length||this.ctx.reflect.notify(["loader"])}await this._await()}async _await(){var n;try{await((n=this.fiber)==null?void 0:n.await())}catch(i){throw nn("apply",this.options,i)}}async _init(){let n;try{n=this.loader.unwrapExports(await this.parent.tree.import(this.options.name,this.getOuterStack))}catch(i){throw nn("import",this.options,i)}try{await this._start(n)}catch(i){throw nn("apply",this.options,i)}}async _start(n){let i;try{await this._patchContext([]),this.loader.showLog(this,"apply"),i=this.fiber=this.ctx.registry.plugin(n,this.options.config,this.getOuterStack),await i.await()}catch(s){throw await this._dispose(i),s}}},I(wr,"key",Symbol.for("cordis.entry")),wr);function Tp(e,n){for(const i of Reflect.ownKeys(e))Reflect.deleteProperty(e,i);for(const i of Reflect.ownKeys(n||{}))Reflect.defineProperty(e,i,Reflect.getOwnPropertyDescriptor(n,i))}var Vm=class{constructor(){I(this,"store",Object.create(null))}access(e,n=!1){var i;return n?(i=this.store)[e]??(i[e]=Symbol(`${e}${this.suffix}`)):this.store[e]??Symbol(`${e}${this.suffix}`)}delete(e){delete this.store[e]}get size(){return Object.keys(this.store).length}},Dv=class extends Vm{constructor(n){super();I(this,"entry");this.entry=n}get suffix(){return"#"+this.entry.options.id}},Ov=class extends Vm{constructor(n){super();I(this,"label");this.label=n}get suffix(){return"@"+this.label}};function Vv(e){const n=Object.create(null),i=Object.create(null);function s(a,u,c=!1){var m;let d;const p=(m=a.options.isolate)==null?void 0:m[u];if(p)return p===!0?d=a.realm??(a.realm=new Dv(a)):c?d=n[p]??(n[p]=new Ov(p)):d=n[p],d==null?void 0:d.access(u,c)}e.on("loader/entry-init",a=>{a.ctx[We.intercept]=Object.create(a.ctx[We.intercept]),a.ctx[We.isolate]=Object.create(a.ctx[We.isolate])}),e.on("loader/patch-context",async(a,u)=>{const c=Object.create(a.parent.ctx[We.isolate]);for(const m of Object.keys(a.options.isolate??{}))c[m]=s(a,m,!0);const d=Object.create(null),p=a.ctx[We.isolate];for(const m in{...c,...i}){if(c[m]===p[m])continue;const y=i[m]??(i[m]=Symbol(`delim:${m}`));a.ctx[y]=Symbol(`${m}#${a.id}`);for(const w of[p[m],c[m]]){const g=w&&a.ctx.reflect.store[w];if(g){if(!g.fiber){a.ctx.logger.warn(new Error(`expected service ${m} to be implemented`));continue}if(d[m]=[p[m],c[m],a.ctx[y],g.fiber.ctx[y]],a.ctx[y]!==g.fiber.ctx[y])break}}}Object.setPrototypeOf(a.ctx[We.isolate],a.parent.ctx[We.isolate]),Object.setPrototypeOf(a.ctx[We.intercept],a.parent.ctx[We.intercept]),Tp(a.ctx[We.isolate],c),Tp(a.ctx[We.intercept],a.options.intercept),await u();for(const[m,y,w,g]of Object.values(d))w===g&&a.ctx.reflect.store[m]&&!a.ctx.reflect.store[y]&&(a.ctx.reflect.store[y]=a.ctx.reflect.store[m],delete a.ctx.reflect.store[m]);e.reflect.notify(Object.keys(d),(m,y)=>{const[w,g,k,x]=d[y],C=m[We.isolate][y],T=m[i[y]];return(w===C||g===C)&&k===T!=(k===x)});for(const m in i)Reflect.ownKeys(c).includes(m)||delete a.ctx[i[m]]}),e.on("loader/partial-dispose",(a,u,c)=>{var d,p;for(const[m,y]of Object.entries(u.isolate??{})){if(y===!0||c&&((d=a.options.isolate)==null?void 0:d[m])===y)continue;const w=n[y];if(w){for(const g of e.loader.entries())if(((p=g.options.isolate)==null?void 0:p[m])===w.label)return;w.delete(m),w.size||delete n[w.label]}}})}var Iv=class extends Rm{constructor(n,i={}){super(n);I(this,"config");I(this,"envData",{startTime:Date.now()});I(this,"name","loader");I(this,"internal",ic.fromInternal());I(this,"builtins",Object.create(null));this.config=i,i.baseUrl&&(this.ctx.baseUrl=i.baseUrl);const s=this;ln(this,pr.tracker,{associate:"loader",property:"ctx",noShadow:!0}),n.reflect.provide("loader",this,this[pr.check]),n.on("internal/config",function(a,u){var d,p,m;const c=u();return!this.entry||((d=this.parent.fiber)==null?void 0:d.entry)===this.entry||(m=(p=this.runtime)==null?void 0:p.callback)!=null&&m[Xo.key]?c:sc(this.ctx,c)},{global:!0}),n.on("internal/update",async function(a,u,c){var p,m,y;if(!this.entry||u||((p=this.parent.fiber)==null?void 0:p.entry)===this.entry)return c();await c();const d=(y=(m=this.runtime)==null?void 0:m.Config)==null?void 0:y.simplify;this.entry.options.config=d?d(a):a,this.entry.parent.tree.write()},{global:!0,prepend:!0}),n.on("internal/update",function(a,u,c){var d;return!this.entry||((d=this.parent.fiber)==null?void 0:d.entry)===this.entry||s.showLog(this.entry,"reload"),c()},{global:!0}),n.on("internal/plugin",a=>{var c;if(a.parent[oc.key]&&!a.entry&&(a.entry=a.parent[oc.key],ls.resolve(a.entry.options.inject,a.inject)),a.uid||!a.entry||((c=a.parent.fiber)==null?void 0:c.entry)===a.entry||!n.registry.has(a.runtime.callback))return;const u=a.entry.parent.tree.ctx.fiber;!u.uid||u.state===5||a.entry._disposing||(this.showLog(a.entry,"unload"),!a.entry.disabled&&(a.entry.options.disabled=!0,a.entry.parent.tree.write()))}),n.plugin(Vv)}write(){}[pr.check](){return!(pr.prototype[pr.resolveConfig].call(this).await&&this.getTasks().length)}showLog(n,i){var s,a;n.options.group||!n.parent.tree.enableLogs||(a=(s=this.ctx.root).logger)==null||a.call(s,"loader").info("%s plugin %C",i,n.options.name)}locate(n=this.ctx.fiber){for(;;){if(n.entry)return n.entry.id;const i=n.parent.fiber;if(n===i)return;n=i}}exit(){}unwrapExports(n){return _n(n)||(n=n.default??n,!n.__esModule)?n:n.default??n}};const $v="_boot_1ionb_3",zv="_card_1ionb_26",Fv="_wordmark_1ionb_33",Bv="_hint_1ionb_41",Hv="_spinner_1ionb_47",Uv="_failed_1ionb_73",Wv="_failedTitle_1ionb_80",qv="_failedItem_1ionb_87",vn={boot:$v,card:zv,wordmark:Fv,hint:Bv,spinner:Hv,failed:Uv,failedTitle:Wv,failedItem:qv};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xu={exports:{}},we={};/**
18
18
  * @license React
19
19
  * react.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var iv=Object.defineProperty;var sv=(e,n,i)=>n in e?iv(e,n,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Tp;function Kv(){if(Tp)return we;Tp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function g(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function T(b,L,ne){this.props=b,this.context=L,this.refs=C,this.updater=ne||k}T.prototype.isReactComponent={},T.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,L,"setState")},T.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function A(){}A.prototype=T.prototype;function D(b,L,ne){this.props=b,this.context=L,this.refs=C,this.updater=ne||k}var O=D.prototype=new A;O.constructor=D,x(O,T.prototype),O.isPureReactComponent=!0;var z=Array.isArray,V=Object.prototype.hasOwnProperty,F={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function q(b,L,ne){var pe,_e={},Ce=null,Le=null;if(L!=null)for(pe in L.ref!==void 0&&(Le=L.ref),L.key!==void 0&&(Ce=""+L.key),L)V.call(L,pe)&&!U.hasOwnProperty(pe)&&(_e[pe]=L[pe]);var Te=arguments.length-2;if(Te===1)_e.children=ne;else if(1<Te){for(var De=Array(Te),wt=0;wt<Te;wt++)De[wt]=arguments[wt+2];_e.children=De}if(b&&b.defaultProps)for(pe in Te=b.defaultProps,Te)_e[pe]===void 0&&(_e[pe]=Te[pe]);return{$$typeof:e,type:b,key:Ce,ref:Le,props:_e,_owner:F.current}}function $(b,L){return{$$typeof:e,type:b.type,key:L,ref:b.ref,props:b.props,_owner:b._owner}}function B(b){return typeof b=="object"&&b!==null&&b.$$typeof===e}function oe(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(ne){return L[ne]})}var me=/\/+/g;function J(b,L){return typeof b=="object"&&b!==null&&b.key!=null?oe(""+b.key):L.toString(36)}function ae(b,L,ne,pe,_e){var Ce=typeof b;(Ce==="undefined"||Ce==="boolean")&&(b=null);var Le=!1;if(b===null)Le=!0;else switch(Ce){case"string":case"number":Le=!0;break;case"object":switch(b.$$typeof){case e:case n:Le=!0}}if(Le)return Le=b,_e=_e(Le),b=pe===""?"."+J(Le,0):pe,z(_e)?(ne="",b!=null&&(ne=b.replace(me,"$&/")+"/"),ae(_e,L,ne,"",function(wt){return wt})):_e!=null&&(B(_e)&&(_e=$(_e,ne+(!_e.key||Le&&Le.key===_e.key?"":(""+_e.key).replace(me,"$&/")+"/")+b)),L.push(_e)),1;if(Le=0,pe=pe===""?".":pe+":",z(b))for(var Te=0;Te<b.length;Te++){Ce=b[Te];var De=pe+J(Ce,Te);Le+=ae(Ce,L,ne,De,_e)}else if(De=g(b),typeof De=="function")for(b=De.call(b),Te=0;!(Ce=b.next()).done;)Ce=Ce.value,De=pe+J(Ce,Te++),Le+=ae(Ce,L,ne,De,_e);else if(Ce==="object")throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Le}function ce(b,L,ne){if(b==null)return b;var pe=[],_e=0;return ae(b,pe,"","",function(Ce){return L.call(ne,Ce,_e++)}),pe}function ve(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(ne){(b._status===0||b._status===-1)&&(b._status=1,b._result=ne)},function(ne){(b._status===0||b._status===-1)&&(b._status=2,b._result=ne)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var ge={current:null},H={transition:null},Z={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:H,ReactCurrentOwner:F};function Y(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:ce,forEach:function(b,L,ne){ce(b,function(){L.apply(this,arguments)},ne)},count:function(b){var L=0;return ce(b,function(){L++}),L},toArray:function(b){return ce(b,function(L){return L})||[]},only:function(b){if(!B(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},we.Component=T,we.Fragment=i,we.Profiler=a,we.PureComponent=D,we.StrictMode=s,we.Suspense=p,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,we.act=Y,we.cloneElement=function(b,L,ne){if(b==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var pe=x({},b.props),_e=b.key,Ce=b.ref,Le=b._owner;if(L!=null){if(L.ref!==void 0&&(Ce=L.ref,Le=F.current),L.key!==void 0&&(_e=""+L.key),b.type&&b.type.defaultProps)var Te=b.type.defaultProps;for(De in L)V.call(L,De)&&!U.hasOwnProperty(De)&&(pe[De]=L[De]===void 0&&Te!==void 0?Te[De]:L[De])}var De=arguments.length-2;if(De===1)pe.children=ne;else if(1<De){Te=Array(De);for(var wt=0;wt<De;wt++)Te[wt]=arguments[wt+2];pe.children=Te}return{$$typeof:e,type:b.type,key:_e,ref:Ce,props:pe,_owner:Le}},we.createContext=function(b){return b={$$typeof:c,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},b.Provider={$$typeof:u,_context:b},b.Consumer=b},we.createElement=q,we.createFactory=function(b){var L=q.bind(null,b);return L.type=b,L},we.createRef=function(){return{current:null}},we.forwardRef=function(b){return{$$typeof:d,render:b}},we.isValidElement=B,we.lazy=function(b){return{$$typeof:y,_payload:{_status:-1,_result:b},_init:ve}},we.memo=function(b,L){return{$$typeof:m,type:b,compare:L===void 0?null:L}},we.startTransition=function(b){var L=H.transition;H.transition={};try{b()}finally{H.transition=L}},we.unstable_act=Y,we.useCallback=function(b,L){return ge.current.useCallback(b,L)},we.useContext=function(b){return ge.current.useContext(b)},we.useDebugValue=function(){},we.useDeferredValue=function(b){return ge.current.useDeferredValue(b)},we.useEffect=function(b,L){return ge.current.useEffect(b,L)},we.useId=function(){return ge.current.useId()},we.useImperativeHandle=function(b,L,ne){return ge.current.useImperativeHandle(b,L,ne)},we.useInsertionEffect=function(b,L){return ge.current.useInsertionEffect(b,L)},we.useLayoutEffect=function(b,L){return ge.current.useLayoutEffect(b,L)},we.useMemo=function(b,L){return ge.current.useMemo(b,L)},we.useReducer=function(b,L,ne){return ge.current.useReducer(b,L,ne)},we.useRef=function(b){return ge.current.useRef(b)},we.useState=function(b){return ge.current.useState(b)},we.useSyncExternalStore=function(b,L,ne){return ge.current.useSyncExternalStore(b,L,ne)},we.useTransition=function(){return ge.current.useTransition()},we.version="18.3.1",we}var Pp;function Uc(){return Pp||(Pp=1,xu.exports=Kv()),xu.exports}var M=Uc();const Gv=ps(M),Yv=fa({__proto__:null,default:Gv},[M]);var _u={exports:{}},Yi={};/**
25
+ */var Pp;function Kv(){if(Pp)return we;Pp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function g(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function T(b,L,ne){this.props=b,this.context=L,this.refs=C,this.updater=ne||k}T.prototype.isReactComponent={},T.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,L,"setState")},T.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function A(){}A.prototype=T.prototype;function D(b,L,ne){this.props=b,this.context=L,this.refs=C,this.updater=ne||k}var O=D.prototype=new A;O.constructor=D,x(O,T.prototype),O.isPureReactComponent=!0;var z=Array.isArray,V=Object.prototype.hasOwnProperty,F={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function q(b,L,ne){var pe,_e={},Ce=null,Le=null;if(L!=null)for(pe in L.ref!==void 0&&(Le=L.ref),L.key!==void 0&&(Ce=""+L.key),L)V.call(L,pe)&&!U.hasOwnProperty(pe)&&(_e[pe]=L[pe]);var Te=arguments.length-2;if(Te===1)_e.children=ne;else if(1<Te){for(var De=Array(Te),wt=0;wt<Te;wt++)De[wt]=arguments[wt+2];_e.children=De}if(b&&b.defaultProps)for(pe in Te=b.defaultProps,Te)_e[pe]===void 0&&(_e[pe]=Te[pe]);return{$$typeof:e,type:b,key:Ce,ref:Le,props:_e,_owner:F.current}}function $(b,L){return{$$typeof:e,type:b.type,key:L,ref:b.ref,props:b.props,_owner:b._owner}}function B(b){return typeof b=="object"&&b!==null&&b.$$typeof===e}function oe(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(ne){return L[ne]})}var me=/\/+/g;function J(b,L){return typeof b=="object"&&b!==null&&b.key!=null?oe(""+b.key):L.toString(36)}function ae(b,L,ne,pe,_e){var Ce=typeof b;(Ce==="undefined"||Ce==="boolean")&&(b=null);var Le=!1;if(b===null)Le=!0;else switch(Ce){case"string":case"number":Le=!0;break;case"object":switch(b.$$typeof){case e:case n:Le=!0}}if(Le)return Le=b,_e=_e(Le),b=pe===""?"."+J(Le,0):pe,z(_e)?(ne="",b!=null&&(ne=b.replace(me,"$&/")+"/"),ae(_e,L,ne,"",function(wt){return wt})):_e!=null&&(B(_e)&&(_e=$(_e,ne+(!_e.key||Le&&Le.key===_e.key?"":(""+_e.key).replace(me,"$&/")+"/")+b)),L.push(_e)),1;if(Le=0,pe=pe===""?".":pe+":",z(b))for(var Te=0;Te<b.length;Te++){Ce=b[Te];var De=pe+J(Ce,Te);Le+=ae(Ce,L,ne,De,_e)}else if(De=g(b),typeof De=="function")for(b=De.call(b),Te=0;!(Ce=b.next()).done;)Ce=Ce.value,De=pe+J(Ce,Te++),Le+=ae(Ce,L,ne,De,_e);else if(Ce==="object")throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Le}function ce(b,L,ne){if(b==null)return b;var pe=[],_e=0;return ae(b,pe,"","",function(Ce){return L.call(ne,Ce,_e++)}),pe}function ve(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(ne){(b._status===0||b._status===-1)&&(b._status=1,b._result=ne)},function(ne){(b._status===0||b._status===-1)&&(b._status=2,b._result=ne)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var ge={current:null},H={transition:null},Z={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:H,ReactCurrentOwner:F};function Y(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:ce,forEach:function(b,L,ne){ce(b,function(){L.apply(this,arguments)},ne)},count:function(b){var L=0;return ce(b,function(){L++}),L},toArray:function(b){return ce(b,function(L){return L})||[]},only:function(b){if(!B(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},we.Component=T,we.Fragment=i,we.Profiler=a,we.PureComponent=D,we.StrictMode=s,we.Suspense=p,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,we.act=Y,we.cloneElement=function(b,L,ne){if(b==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var pe=x({},b.props),_e=b.key,Ce=b.ref,Le=b._owner;if(L!=null){if(L.ref!==void 0&&(Ce=L.ref,Le=F.current),L.key!==void 0&&(_e=""+L.key),b.type&&b.type.defaultProps)var Te=b.type.defaultProps;for(De in L)V.call(L,De)&&!U.hasOwnProperty(De)&&(pe[De]=L[De]===void 0&&Te!==void 0?Te[De]:L[De])}var De=arguments.length-2;if(De===1)pe.children=ne;else if(1<De){Te=Array(De);for(var wt=0;wt<De;wt++)Te[wt]=arguments[wt+2];pe.children=Te}return{$$typeof:e,type:b.type,key:_e,ref:Ce,props:pe,_owner:Le}},we.createContext=function(b){return b={$$typeof:c,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},b.Provider={$$typeof:u,_context:b},b.Consumer=b},we.createElement=q,we.createFactory=function(b){var L=q.bind(null,b);return L.type=b,L},we.createRef=function(){return{current:null}},we.forwardRef=function(b){return{$$typeof:d,render:b}},we.isValidElement=B,we.lazy=function(b){return{$$typeof:y,_payload:{_status:-1,_result:b},_init:ve}},we.memo=function(b,L){return{$$typeof:m,type:b,compare:L===void 0?null:L}},we.startTransition=function(b){var L=H.transition;H.transition={};try{b()}finally{H.transition=L}},we.unstable_act=Y,we.useCallback=function(b,L){return ge.current.useCallback(b,L)},we.useContext=function(b){return ge.current.useContext(b)},we.useDebugValue=function(){},we.useDeferredValue=function(b){return ge.current.useDeferredValue(b)},we.useEffect=function(b,L){return ge.current.useEffect(b,L)},we.useId=function(){return ge.current.useId()},we.useImperativeHandle=function(b,L,ne){return ge.current.useImperativeHandle(b,L,ne)},we.useInsertionEffect=function(b,L){return ge.current.useInsertionEffect(b,L)},we.useLayoutEffect=function(b,L){return ge.current.useLayoutEffect(b,L)},we.useMemo=function(b,L){return ge.current.useMemo(b,L)},we.useReducer=function(b,L,ne){return ge.current.useReducer(b,L,ne)},we.useRef=function(b){return ge.current.useRef(b)},we.useState=function(b){return ge.current.useState(b)},we.useSyncExternalStore=function(b,L,ne){return ge.current.useSyncExternalStore(b,L,ne)},we.useTransition=function(){return ge.current.useTransition()},we.version="18.3.1",we}var bp;function Uc(){return bp||(bp=1,xu.exports=Kv()),xu.exports}var M=Uc();const Gv=ps(M),Yv=fa({__proto__:null,default:Gv},[M]);var _u={exports:{}},Yi={};/**
26
26
  * @license React
27
27
  * react-jsx-runtime.production.min.js
28
28
  *
@@ -30,7 +30,7 @@ var iv=Object.defineProperty;var sv=(e,n,i)=>n in e?iv(e,n,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var bp;function Xv(){if(bp)return Yi;bp=1;var e=Uc(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(d,p,m){var y,w={},g=null,k=null;m!==void 0&&(g=""+m),p.key!==void 0&&(g=""+p.key),p.ref!==void 0&&(k=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(w[y]=p[y]);if(d&&d.defaultProps)for(y in p=d.defaultProps,p)w[y]===void 0&&(w[y]=p[y]);return{$$typeof:n,type:d,key:g,ref:k,props:w,_owner:a.current}}return Yi.Fragment=i,Yi.jsx=c,Yi.jsxs=c,Yi}var Mp;function Zv(){return Mp||(Mp=1,_u.exports=Xv()),_u.exports}var _=Zv();const Qv=ps(_),Jv=fa({__proto__:null,default:Qv},[_]);var ku={exports:{}},vt={},Su={exports:{}},Cu={};/**
33
+ */var Mp;function Xv(){if(Mp)return Yi;Mp=1;var e=Uc(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(d,p,m){var y,w={},g=null,k=null;m!==void 0&&(g=""+m),p.key!==void 0&&(g=""+p.key),p.ref!==void 0&&(k=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(w[y]=p[y]);if(d&&d.defaultProps)for(y in p=d.defaultProps,p)w[y]===void 0&&(w[y]=p[y]);return{$$typeof:n,type:d,key:g,ref:k,props:w,_owner:a.current}}return Yi.Fragment=i,Yi.jsx=c,Yi.jsxs=c,Yi}var jp;function Zv(){return jp||(jp=1,_u.exports=Xv()),_u.exports}var _=Zv();const Qv=ps(_),Jv=fa({__proto__:null,default:Qv},[_]);var ku={exports:{}},vt={},Su={exports:{}},Cu={};/**
34
34
  * @license React
35
35
  * scheduler.production.min.js
36
36
  *
@@ -38,7 +38,7 @@ var iv=Object.defineProperty;var sv=(e,n,i)=>n in e?iv(e,n,{enumerable:!0,config
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var jp;function e3(){return jp||(jp=1,(function(e){function n(H,Z){var Y=H.length;H.push(Z);e:for(;0<Y;){var b=Y-1>>>1,L=H[b];if(0<a(L,Z))H[b]=Z,H[Y]=L,Y=b;else break e}}function i(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var Z=H[0],Y=H.pop();if(Y!==Z){H[0]=Y;e:for(var b=0,L=H.length,ne=L>>>1;b<ne;){var pe=2*(b+1)-1,_e=H[pe],Ce=pe+1,Le=H[Ce];if(0>a(_e,Y))Ce<L&&0>a(Le,_e)?(H[b]=Le,H[Ce]=Y,b=Ce):(H[b]=_e,H[pe]=Y,b=pe);else if(Ce<L&&0>a(Le,Y))H[b]=Le,H[Ce]=Y,b=Ce;else break e}}return Z}function a(H,Z){var Y=H.sortIndex-Z.sortIndex;return Y!==0?Y:H.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],y=1,w=null,g=3,k=!1,x=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(H){for(var Z=i(m);Z!==null;){if(Z.callback===null)s(m);else if(Z.startTime<=H)s(m),Z.sortIndex=Z.expirationTime,n(p,Z);else break;Z=i(m)}}function z(H){if(C=!1,O(H),!x)if(i(p)!==null)x=!0,ve(V);else{var Z=i(m);Z!==null&&ge(z,Z.startTime-H)}}function V(H,Z){x=!1,C&&(C=!1,A(q),q=-1),k=!0;var Y=g;try{for(O(Z),w=i(p);w!==null&&(!(w.expirationTime>Z)||H&&!oe());){var b=w.callback;if(typeof b=="function"){w.callback=null,g=w.priorityLevel;var L=b(w.expirationTime<=Z);Z=e.unstable_now(),typeof L=="function"?w.callback=L:w===i(p)&&s(p),O(Z)}else s(p);w=i(p)}if(w!==null)var ne=!0;else{var pe=i(m);pe!==null&&ge(z,pe.startTime-Z),ne=!1}return ne}finally{w=null,g=Y,k=!1}}var F=!1,U=null,q=-1,$=5,B=-1;function oe(){return!(e.unstable_now()-B<$)}function me(){if(U!==null){var H=e.unstable_now();B=H;var Z=!0;try{Z=U(!0,H)}finally{Z?J():(F=!1,U=null)}}else F=!1}var J;if(typeof D=="function")J=function(){D(me)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ce=ae.port2;ae.port1.onmessage=me,J=function(){ce.postMessage(null)}}else J=function(){T(me,0)};function ve(H){U=H,F||(F=!0,J())}function ge(H,Z){q=T(function(){H(e.unstable_now())},Z)}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(H){H.callback=null},e.unstable_continueExecution=function(){x||k||(x=!0,ve(V))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var Y=g;g=Z;try{return H()}finally{g=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Y=g;g=H;try{return Z()}finally{g=Y}},e.unstable_scheduleCallback=function(H,Z,Y){var b=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?b+Y:b):Y=b,H){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=Y+L,H={id:y++,callback:Z,priorityLevel:H,startTime:Y,expirationTime:L,sortIndex:-1},Y>b?(H.sortIndex=Y,n(m,H),i(p)===null&&H===i(m)&&(C?(A(q),q=-1):C=!0,ge(z,Y-b))):(H.sortIndex=L,n(p,H),x||k||(x=!0,ve(V))),H},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(H){var Z=g;return function(){var Y=g;g=Z;try{return H.apply(this,arguments)}finally{g=Y}}}})(Cu)),Cu}var Lp;function t3(){return Lp||(Lp=1,Su.exports=e3()),Su.exports}/**
41
+ */var Lp;function e3(){return Lp||(Lp=1,(function(e){function n(H,Z){var Y=H.length;H.push(Z);e:for(;0<Y;){var b=Y-1>>>1,L=H[b];if(0<a(L,Z))H[b]=Z,H[Y]=L,Y=b;else break e}}function i(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var Z=H[0],Y=H.pop();if(Y!==Z){H[0]=Y;e:for(var b=0,L=H.length,ne=L>>>1;b<ne;){var pe=2*(b+1)-1,_e=H[pe],Ce=pe+1,Le=H[Ce];if(0>a(_e,Y))Ce<L&&0>a(Le,_e)?(H[b]=Le,H[Ce]=Y,b=Ce):(H[b]=_e,H[pe]=Y,b=pe);else if(Ce<L&&0>a(Le,Y))H[b]=Le,H[Ce]=Y,b=Ce;else break e}}return Z}function a(H,Z){var Y=H.sortIndex-Z.sortIndex;return Y!==0?Y:H.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],y=1,w=null,g=3,k=!1,x=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(H){for(var Z=i(m);Z!==null;){if(Z.callback===null)s(m);else if(Z.startTime<=H)s(m),Z.sortIndex=Z.expirationTime,n(p,Z);else break;Z=i(m)}}function z(H){if(C=!1,O(H),!x)if(i(p)!==null)x=!0,ve(V);else{var Z=i(m);Z!==null&&ge(z,Z.startTime-H)}}function V(H,Z){x=!1,C&&(C=!1,A(q),q=-1),k=!0;var Y=g;try{for(O(Z),w=i(p);w!==null&&(!(w.expirationTime>Z)||H&&!oe());){var b=w.callback;if(typeof b=="function"){w.callback=null,g=w.priorityLevel;var L=b(w.expirationTime<=Z);Z=e.unstable_now(),typeof L=="function"?w.callback=L:w===i(p)&&s(p),O(Z)}else s(p);w=i(p)}if(w!==null)var ne=!0;else{var pe=i(m);pe!==null&&ge(z,pe.startTime-Z),ne=!1}return ne}finally{w=null,g=Y,k=!1}}var F=!1,U=null,q=-1,$=5,B=-1;function oe(){return!(e.unstable_now()-B<$)}function me(){if(U!==null){var H=e.unstable_now();B=H;var Z=!0;try{Z=U(!0,H)}finally{Z?J():(F=!1,U=null)}}else F=!1}var J;if(typeof D=="function")J=function(){D(me)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ce=ae.port2;ae.port1.onmessage=me,J=function(){ce.postMessage(null)}}else J=function(){T(me,0)};function ve(H){U=H,F||(F=!0,J())}function ge(H,Z){q=T(function(){H(e.unstable_now())},Z)}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(H){H.callback=null},e.unstable_continueExecution=function(){x||k||(x=!0,ve(V))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var Y=g;g=Z;try{return H()}finally{g=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Y=g;g=H;try{return Z()}finally{g=Y}},e.unstable_scheduleCallback=function(H,Z,Y){var b=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?b+Y:b):Y=b,H){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=Y+L,H={id:y++,callback:Z,priorityLevel:H,startTime:Y,expirationTime:L,sortIndex:-1},Y>b?(H.sortIndex=Y,n(m,H),i(p)===null&&H===i(m)&&(C?(A(q),q=-1):C=!0,ge(z,Y-b))):(H.sortIndex=L,n(p,H),x||k||(x=!0,ve(V))),H},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(H){var Z=g;return function(){var Y=g;g=Z;try{return H.apply(this,arguments)}finally{g=Y}}}})(Cu)),Cu}var Np;function t3(){return Np||(Np=1,Su.exports=e3()),Su.exports}/**
42
42
  * @license React
43
43
  * react-dom.production.min.js
44
44
  *
@@ -46,512 +46,512 @@ var iv=Object.defineProperty;var sv=(e,n,i)=>n in e?iv(e,n,{enumerable:!0,config
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Np;function n3(){if(Np)return vt;Np=1;var e=Uc(),n=t3();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(t,r){c(t,r),c(t+"Capture",r)}function c(t,r){for(a[t]=r,t=0;t<r.length;t++)s.add(r[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},w={};function g(t){return p.call(w,t)?!0:p.call(y,t)?!1:m.test(t)?w[t]=!0:(y[t]=!0,!1)}function k(t,r,o,l){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function x(t,r,o,l){if(r===null||typeof r>"u"||k(t,r,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(t,r,o,l,f,h,v){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=t,this.type=r,this.sanitizeURL=h,this.removeEmptyString=v}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){T[t]=new C(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];T[r]=new C(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){T[t]=new C(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){T[t]=new C(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){T[t]=new C(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){T[t]=new C(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){T[t]=new C(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){T[t]=new C(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){T[t]=new C(t,5,!1,t.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function D(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(A,D);T[r]=new C(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(A,D);T[r]=new C(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(A,D);T[r]=new C(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){T[t]=new C(t,1,!1,t.toLowerCase(),null,!1,!1)}),T.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){T[t]=new C(t,1,!1,t.toLowerCase(),null,!0,!0)});function O(t,r,o,l){var f=T.hasOwnProperty(r)?T[r]:null;(f!==null?f.type!==0:l||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(x(r,o,f,l)&&(o=null),l||f===null?g(r)&&(o===null?t.removeAttribute(r):t.setAttribute(r,""+o)):f.mustUseProperty?t[f.propertyName]=o===null?f.type===3?!1:"":o:(r=f.attributeName,l=f.attributeNamespace,o===null?t.removeAttribute(r):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,l?t.setAttributeNS(l,r,o):t.setAttribute(r,o))))}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),F=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),oe=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),H=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=H&&t[H]||t["@@iterator"],typeof t=="function"?t:null)}var Y=Object.assign,b;function L(t){if(b===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);b=r&&r[1]||""}return`
49
+ */var Ap;function n3(){if(Ap)return vt;Ap=1;var e=Uc(),n=t3();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(t,r){c(t,r),c(t+"Capture",r)}function c(t,r){for(a[t]=r,t=0;t<r.length;t++)s.add(r[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},w={};function g(t){return p.call(w,t)?!0:p.call(y,t)?!1:m.test(t)?w[t]=!0:(y[t]=!0,!1)}function k(t,r,o,l){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function x(t,r,o,l){if(r===null||typeof r>"u"||k(t,r,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(t,r,o,l,f,h,v){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=t,this.type=r,this.sanitizeURL=h,this.removeEmptyString=v}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){T[t]=new C(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];T[r]=new C(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){T[t]=new C(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){T[t]=new C(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){T[t]=new C(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){T[t]=new C(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){T[t]=new C(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){T[t]=new C(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){T[t]=new C(t,5,!1,t.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function D(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(A,D);T[r]=new C(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(A,D);T[r]=new C(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(A,D);T[r]=new C(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){T[t]=new C(t,1,!1,t.toLowerCase(),null,!1,!1)}),T.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){T[t]=new C(t,1,!1,t.toLowerCase(),null,!0,!0)});function O(t,r,o,l){var f=T.hasOwnProperty(r)?T[r]:null;(f!==null?f.type!==0:l||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(x(r,o,f,l)&&(o=null),l||f===null?g(r)&&(o===null?t.removeAttribute(r):t.setAttribute(r,""+o)):f.mustUseProperty?t[f.propertyName]=o===null?f.type===3?!1:"":o:(r=f.attributeName,l=f.attributeNamespace,o===null?t.removeAttribute(r):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,l?t.setAttributeNS(l,r,o):t.setAttribute(r,o))))}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),F=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),oe=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),H=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=H&&t[H]||t["@@iterator"],typeof t=="function"?t:null)}var Y=Object.assign,b;function L(t){if(b===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);b=r&&r[1]||""}return`
50
50
  `+b+t}var ne=!1;function pe(t,r){if(!t||ne)return"";ne=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(R){var l=R}Reflect.construct(t,[],r)}else{try{r.call()}catch(R){l=R}t.call(r.prototype)}else{try{throw Error()}catch(R){l=R}t()}}catch(R){if(R&&l&&typeof R.stack=="string"){for(var f=R.stack.split(`
51
51
  `),h=l.stack.split(`
52
52
  `),v=f.length-1,S=h.length-1;1<=v&&0<=S&&f[v]!==h[S];)S--;for(;1<=v&&0<=S;v--,S--)if(f[v]!==h[S]){if(v!==1||S!==1)do if(v--,S--,0>S||f[v]!==h[S]){var E=`
53
- `+f[v].replace(" at new "," at ");return t.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",t.displayName)),E}while(1<=v&&0<=S);break}}}finally{ne=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?L(t):""}function _e(t){switch(t.tag){case 5:return L(t.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return t=pe(t.type,!1),t;case 11:return t=pe(t.type.render,!1),t;case 1:return t=pe(t.type,!0),t;default:return""}}function Ce(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case F:return"Portal";case $:return"Profiler";case q:return"StrictMode";case J:return"Suspense";case ae:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case B:return(t._context.displayName||"Context")+".Provider";case me:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ce:return r=t.displayName||null,r!==null?r:Ce(t.type)||"Memo";case ve:r=t._payload,t=t._init;try{return Ce(t(r))}catch{}}return null}function Le(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(r);case 8:return r===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function De(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function wt(t){var r=De(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,h=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return f.call(this)},set:function(v){l=""+v,h.call(this,v)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ws(t){t._valueTracker||(t._valueTracker=wt(t))}function Cf(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),l="";return t&&(l=De(t)?t.checked?"true":"false":t.value),t=l,t!==o?(r.setValue(t),!0):!1}function xs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _a(t,r){var o=r.checked;return Y({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function Ef(t,r){var o=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;o=Te(r.value!=null?r.value:o),t._wrapperState={initialChecked:l,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Tf(t,r){r=r.checked,r!=null&&O(t,"checked",r,!1)}function ka(t,r){Tf(t,r);var o=Te(r.value),l=r.type;if(o!=null)l==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Sa(t,r.type,o):r.hasOwnProperty("defaultValue")&&Sa(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Pf(t,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,o||r===t.value||(t.value=r),t.defaultValue=r}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function Sa(t,r,o){(r!=="number"||xs(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ci=Array.isArray;function kr(t,r,o,l){if(t=t.options,r){r={};for(var f=0;f<o.length;f++)r["$"+o[f]]=!0;for(o=0;o<t.length;o++)f=r.hasOwnProperty("$"+t[o].value),t[o].selected!==f&&(t[o].selected=f),f&&l&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),r=null,f=0;f<t.length;f++){if(t[f].value===o){t[f].selected=!0,l&&(t[f].defaultSelected=!0);return}r!==null||t[f].disabled||(r=t[f])}r!==null&&(r.selected=!0)}}function Ca(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Y({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function bf(t,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(i(92));if(ci(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),o=r}t._wrapperState={initialValue:Te(o)}}function Mf(t,r){var o=Te(r.value),l=Te(r.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),r.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),l!=null&&(t.defaultValue=""+l)}function jf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Lf(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ea(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Lf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var _s,Nf=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,l,f){MSApp.execUnsafeLocalFunction(function(){return t(r,o,l,f)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(_s=_s||document.createElement("div"),_s.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=_s.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function fi(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var di={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lg=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(t){lg.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),di[r]=di[t]})});function Af(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||di.hasOwnProperty(t)&&di[t]?(""+r).trim():r+"px"}function Rf(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var l=o.indexOf("--")===0,f=Af(o,r[o],l);o==="float"&&(o="cssFloat"),l?t.setProperty(o,f):t[o]=f}}var ug=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ta(t,r){if(r){if(ug[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Pa(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 ba=null;function Ma(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ja=null,Sr=null,Cr=null;function Df(t){if(t=Ri(t)){if(typeof ja!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Us(r),ja(t.stateNode,t.type,r))}}function Of(t){Sr?Cr?Cr.push(t):Cr=[t]:Sr=t}function Vf(){if(Sr){var t=Sr,r=Cr;if(Cr=Sr=null,Df(t),r)for(t=0;t<r.length;t++)Df(r[t])}}function If(t,r){return t(r)}function $f(){}var La=!1;function zf(t,r,o){if(La)return t(r,o);La=!0;try{return If(t,r,o)}finally{La=!1,(Sr!==null||Cr!==null)&&($f(),Vf())}}function hi(t,r){var o=t.stateNode;if(o===null)return null;var l=Us(o);if(l===null)return null;o=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var Na=!1;if(d)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){Na=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{Na=!1}function cg(t,r,o,l,f,h,v,S,E){var R=Array.prototype.slice.call(arguments,3);try{r.apply(o,R)}catch(K){this.onError(K)}}var mi=!1,ks=null,Ss=!1,Aa=null,fg={onError:function(t){mi=!0,ks=t}};function dg(t,r,o,l,f,h,v,S,E){mi=!1,ks=null,cg.apply(fg,arguments)}function hg(t,r,o,l,f,h,v,S,E){if(dg.apply(this,arguments),mi){if(mi){var R=ks;mi=!1,ks=null}else throw Error(i(198));Ss||(Ss=!0,Aa=R)}}function Gn(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Ff(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Bf(t){if(Gn(t)!==t)throw Error(i(188))}function pg(t){var r=t.alternate;if(!r){if(r=Gn(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,l=r;;){var f=o.return;if(f===null)break;var h=f.alternate;if(h===null){if(l=f.return,l!==null){o=l;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===o)return Bf(f),t;if(h===l)return Bf(f),r;h=h.sibling}throw Error(i(188))}if(o.return!==l.return)o=f,l=h;else{for(var v=!1,S=f.child;S;){if(S===o){v=!0,o=f,l=h;break}if(S===l){v=!0,l=f,o=h;break}S=S.sibling}if(!v){for(S=h.child;S;){if(S===o){v=!0,o=h,l=f;break}if(S===l){v=!0,l=h,o=f;break}S=S.sibling}if(!v)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function Hf(t){return t=pg(t),t!==null?Uf(t):null}function Uf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Uf(t);if(r!==null)return r;t=t.sibling}return null}var Wf=n.unstable_scheduleCallback,qf=n.unstable_cancelCallback,mg=n.unstable_shouldYield,yg=n.unstable_requestPaint,Be=n.unstable_now,gg=n.unstable_getCurrentPriorityLevel,Ra=n.unstable_ImmediatePriority,Kf=n.unstable_UserBlockingPriority,Cs=n.unstable_NormalPriority,vg=n.unstable_LowPriority,Gf=n.unstable_IdlePriority,Es=null,Xt=null;function wg(t){if(Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Es,t,void 0,(t.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:kg,xg=Math.log,_g=Math.LN2;function kg(t){return t>>>=0,t===0?32:31-(xg(t)/_g|0)|0}var Ts=64,Ps=4194304;function yi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function bs(t,r){var o=t.pendingLanes;if(o===0)return 0;var l=0,f=t.suspendedLanes,h=t.pingedLanes,v=o&268435455;if(v!==0){var S=v&~f;S!==0?l=yi(S):(h&=v,h!==0&&(l=yi(h)))}else v=o&~f,v!==0?l=yi(v):h!==0&&(l=yi(h));if(l===0)return 0;if(r!==0&&r!==l&&(r&f)===0&&(f=l&-l,h=r&-r,f>=h||f===16&&(h&4194240)!==0))return r;if((l&4)!==0&&(l|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0<r;)o=31-It(r),f=1<<o,l|=t[o],r&=~f;return l}function Sg(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cg(t,r){for(var o=t.suspendedLanes,l=t.pingedLanes,f=t.expirationTimes,h=t.pendingLanes;0<h;){var v=31-It(h),S=1<<v,E=f[v];E===-1?((S&o)===0||(S&l)!==0)&&(f[v]=Sg(S,r)):E<=r&&(t.expiredLanes|=S),h&=~S}}function Da(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Yf(){var t=Ts;return Ts<<=1,(Ts&4194240)===0&&(Ts=64),t}function Oa(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function gi(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-It(r),t[r]=o}function Eg(t,r){var o=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0<o;){var f=31-It(o),h=1<<f;r[f]=0,l[f]=-1,t[f]=-1,o&=~h}}function Va(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var l=31-It(o),f=1<<l;f&r|t[l]&r&&(t[l]|=r),o&=~f}}var Pe=0;function Xf(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Zf,Ia,Qf,Jf,ed,$a=!1,Ms=[],kn=null,Sn=null,Cn=null,vi=new Map,wi=new Map,En=[],Tg="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 submit".split(" ");function td(t,r){switch(t){case"focusin":case"focusout":kn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":vi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(r.pointerId)}}function xi(t,r,o,l,f,h){return t===null||t.nativeEvent!==h?(t={blockedOn:r,domEventName:o,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]},r!==null&&(r=Ri(r),r!==null&&Ia(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),t)}function Pg(t,r,o,l,f){switch(r){case"focusin":return kn=xi(kn,t,r,o,l,f),!0;case"dragenter":return Sn=xi(Sn,t,r,o,l,f),!0;case"mouseover":return Cn=xi(Cn,t,r,o,l,f),!0;case"pointerover":var h=f.pointerId;return vi.set(h,xi(vi.get(h)||null,t,r,o,l,f)),!0;case"gotpointercapture":return h=f.pointerId,wi.set(h,xi(wi.get(h)||null,t,r,o,l,f)),!0}return!1}function nd(t){var r=Yn(t.target);if(r!==null){var o=Gn(r);if(o!==null){if(r=o.tag,r===13){if(r=Ff(o),r!==null){t.blockedOn=r,ed(t.priority,function(){Qf(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function js(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Fa(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var l=new o.constructor(o.type,o);ba=l,o.target.dispatchEvent(l),ba=null}else return r=Ri(o),r!==null&&Ia(r),t.blockedOn=o,!1;r.shift()}return!0}function rd(t,r,o){js(t)&&o.delete(r)}function bg(){$a=!1,kn!==null&&js(kn)&&(kn=null),Sn!==null&&js(Sn)&&(Sn=null),Cn!==null&&js(Cn)&&(Cn=null),vi.forEach(rd),wi.forEach(rd)}function _i(t,r){t.blockedOn===r&&(t.blockedOn=null,$a||($a=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,bg)))}function ki(t){function r(f){return _i(f,t)}if(0<Ms.length){_i(Ms[0],t);for(var o=1;o<Ms.length;o++){var l=Ms[o];l.blockedOn===t&&(l.blockedOn=null)}}for(kn!==null&&_i(kn,t),Sn!==null&&_i(Sn,t),Cn!==null&&_i(Cn,t),vi.forEach(r),wi.forEach(r),o=0;o<En.length;o++)l=En[o],l.blockedOn===t&&(l.blockedOn=null);for(;0<En.length&&(o=En[0],o.blockedOn===null);)nd(o),o.blockedOn===null&&En.shift()}var Er=z.ReactCurrentBatchConfig,Ls=!0;function Mg(t,r,o,l){var f=Pe,h=Er.transition;Er.transition=null;try{Pe=1,za(t,r,o,l)}finally{Pe=f,Er.transition=h}}function jg(t,r,o,l){var f=Pe,h=Er.transition;Er.transition=null;try{Pe=4,za(t,r,o,l)}finally{Pe=f,Er.transition=h}}function za(t,r,o,l){if(Ls){var f=Fa(t,r,o,l);if(f===null)il(t,r,l,Ns,o),td(t,l);else if(Pg(f,t,r,o,l))l.stopPropagation();else if(td(t,l),r&4&&-1<Tg.indexOf(t)){for(;f!==null;){var h=Ri(f);if(h!==null&&Zf(h),h=Fa(t,r,o,l),h===null&&il(t,r,l,Ns,o),h===f)break;f=h}f!==null&&l.stopPropagation()}else il(t,r,l,null,o)}}var Ns=null;function Fa(t,r,o,l){if(Ns=null,t=Ma(l),t=Yn(t),t!==null)if(r=Gn(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Ff(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return Ns=t,null}function id(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(gg()){case Ra:return 1;case Kf:return 4;case Cs:case vg:return 16;case Gf:return 536870912;default:return 16}default:return 16}}var Tn=null,Ba=null,As=null;function sd(){if(As)return As;var t,r=Ba,o=r.length,l,f="value"in Tn?Tn.value:Tn.textContent,h=f.length;for(t=0;t<o&&r[t]===f[t];t++);var v=o-t;for(l=1;l<=v&&r[o-l]===f[h-l];l++);return As=f.slice(t,1<l?1-l:void 0)}function Rs(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Ds(){return!0}function od(){return!1}function xt(t){function r(o,l,f,h,v){this._reactName=o,this._targetInst=f,this.type=l,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(o=t[S],this[S]=o?o(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ds:od,this.isPropagationStopped=od,this}return Y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ds)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ds)},persist:function(){},isPersistent:Ds}),r}var Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ha=xt(Tr),Si=Y({},Tr,{view:0,detail:0}),Lg=xt(Si),Ua,Wa,Ci,Os=Y({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ka,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ci&&(Ci&&t.type==="mousemove"?(Ua=t.screenX-Ci.screenX,Wa=t.screenY-Ci.screenY):Wa=Ua=0,Ci=t),Ua)},movementY:function(t){return"movementY"in t?t.movementY:Wa}}),ad=xt(Os),Ng=Y({},Os,{dataTransfer:0}),Ag=xt(Ng),Rg=Y({},Si,{relatedTarget:0}),qa=xt(Rg),Dg=Y({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Og=xt(Dg),Vg=Y({},Tr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ig=xt(Vg),$g=Y({},Tr,{data:0}),ld=xt($g),zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fg={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"},Bg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hg(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Bg[t])?!!r[t]:!1}function Ka(){return Hg}var Ug=Y({},Si,{key:function(t){if(t.key){var r=zg[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Rs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Fg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ka,charCode:function(t){return t.type==="keypress"?Rs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Rs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Wg=xt(Ug),qg=Y({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=xt(qg),Kg=Y({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ka}),Gg=xt(Kg),Yg=Y({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xg=xt(Yg),Zg=Y({},Os,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Qg=xt(Zg),Jg=[9,13,27,32],Ga=d&&"CompositionEvent"in window,Ei=null;d&&"documentMode"in document&&(Ei=document.documentMode);var e2=d&&"TextEvent"in window&&!Ei,cd=d&&(!Ga||Ei&&8<Ei&&11>=Ei),fd=" ",dd=!1;function hd(t,r){switch(t){case"keyup":return Jg.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pr=!1;function t2(t,r){switch(t){case"compositionend":return pd(r);case"keypress":return r.which!==32?null:(dd=!0,fd);case"textInput":return t=r.data,t===fd&&dd?null:t;default:return null}}function n2(t,r){if(Pr)return t==="compositionend"||!Ga&&hd(t,r)?(t=sd(),As=Ba=Tn=null,Pr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return cd&&r.locale!=="ko"?null:r.data;default:return null}}var r2={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 md(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!r2[t.type]:r==="textarea"}function yd(t,r,o,l){Of(l),r=Fs(r,"onChange"),0<r.length&&(o=new Ha("onChange","change",null,o,l),t.push({event:o,listeners:r}))}var Ti=null,Pi=null;function i2(t){Rd(t,0)}function Vs(t){var r=Nr(t);if(Cf(r))return t}function s2(t,r){if(t==="change")return r}var gd=!1;if(d){var Ya;if(d){var Xa="oninput"in document;if(!Xa){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),Xa=typeof vd.oninput=="function"}Ya=Xa}else Ya=!1;gd=Ya&&(!document.documentMode||9<document.documentMode)}function wd(){Ti&&(Ti.detachEvent("onpropertychange",xd),Pi=Ti=null)}function xd(t){if(t.propertyName==="value"&&Vs(Pi)){var r=[];yd(r,Pi,t,Ma(t)),zf(i2,r)}}function o2(t,r,o){t==="focusin"?(wd(),Ti=r,Pi=o,Ti.attachEvent("onpropertychange",xd)):t==="focusout"&&wd()}function a2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vs(Pi)}function l2(t,r){if(t==="click")return Vs(r)}function u2(t,r){if(t==="input"||t==="change")return Vs(r)}function c2(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var $t=typeof Object.is=="function"?Object.is:c2;function bi(t,r){if($t(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),l=Object.keys(r);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var f=o[l];if(!p.call(r,f)||!$t(t[f],r[f]))return!1}return!0}function _d(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kd(t,r){var o=_d(t);t=0;for(var l;o;){if(o.nodeType===3){if(l=t+o.textContent.length,t<=r&&l>=r)return{node:o,offset:r-t};t=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=_d(o)}}function Sd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Sd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Cd(){for(var t=window,r=xs();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=xs(t.document)}return r}function Za(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function f2(t){var r=Cd(),o=t.focusedElem,l=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Sd(o.ownerDocument.documentElement,o)){if(l!==null&&Za(o)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(t,o.value.length);else if(t=(r=o.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var f=o.textContent.length,h=Math.min(l.start,f);l=l.end===void 0?h:Math.min(l.end,f),!t.extend&&h>l&&(f=l,l=h,h=f),f=kd(o,h);var v=kd(o,l);f&&v&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==v.node||t.focusOffset!==v.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),t.removeAllRanges(),h>l?(t.addRange(r),t.extend(v.node,v.offset)):(r.setEnd(v.node,v.offset),t.addRange(r)))}}for(r=[],t=o;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)t=r[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var d2=d&&"documentMode"in document&&11>=document.documentMode,br=null,Qa=null,Mi=null,Ja=!1;function Ed(t,r,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ja||br==null||br!==xs(l)||(l=br,"selectionStart"in l&&Za(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Mi&&bi(Mi,l)||(Mi=l,l=Fs(Qa,"onSelect"),0<l.length&&(r=new Ha("onSelect","select",null,r,o),t.push({event:r,listeners:l}),r.target=br)))}function Is(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var Mr={animationend:Is("Animation","AnimationEnd"),animationiteration:Is("Animation","AnimationIteration"),animationstart:Is("Animation","AnimationStart"),transitionend:Is("Transition","TransitionEnd")},el={},Td={};d&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);function $s(t){if(el[t])return el[t];if(!Mr[t])return t;var r=Mr[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in Td)return el[t]=r[o];return t}var Pd=$s("animationend"),bd=$s("animationiteration"),Md=$s("animationstart"),jd=$s("transitionend"),Ld=new Map,Nd="abort auxClick 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(" ");function Pn(t,r){Ld.set(t,r),u(r,[t])}for(var tl=0;tl<Nd.length;tl++){var nl=Nd[tl],h2=nl.toLowerCase(),p2=nl[0].toUpperCase()+nl.slice(1);Pn(h2,"on"+p2)}Pn(Pd,"onAnimationEnd"),Pn(bd,"onAnimationIteration"),Pn(Md,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(jd,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),m2=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function Ad(t,r,o){var l=t.type||"unknown-event";t.currentTarget=o,hg(l,r,void 0,t),t.currentTarget=null}function Rd(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var l=t[o],f=l.event;l=l.listeners;e:{var h=void 0;if(r)for(var v=l.length-1;0<=v;v--){var S=l[v],E=S.instance,R=S.currentTarget;if(S=S.listener,E!==h&&f.isPropagationStopped())break e;Ad(f,S,R),h=E}else for(v=0;v<l.length;v++){if(S=l[v],E=S.instance,R=S.currentTarget,S=S.listener,E!==h&&f.isPropagationStopped())break e;Ad(f,S,R),h=E}}}if(Ss)throw t=Aa,Ss=!1,Aa=null,t}function Ae(t,r){var o=r[cl];o===void 0&&(o=r[cl]=new Set);var l=t+"__bubble";o.has(l)||(Dd(r,t,2,!1),o.add(l))}function rl(t,r,o){var l=0;r&&(l|=4),Dd(o,t,l,r)}var zs="_reactListening"+Math.random().toString(36).slice(2);function Li(t){if(!t[zs]){t[zs]=!0,s.forEach(function(o){o!=="selectionchange"&&(m2.has(o)||rl(o,!1,t),rl(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[zs]||(r[zs]=!0,rl("selectionchange",!1,r))}}function Dd(t,r,o,l){switch(id(r)){case 1:var f=Mg;break;case 4:f=jg;break;default:f=za}o=f.bind(null,r,o,t),f=void 0,!Na||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),l?f!==void 0?t.addEventListener(r,o,{capture:!0,passive:f}):t.addEventListener(r,o,!0):f!==void 0?t.addEventListener(r,o,{passive:f}):t.addEventListener(r,o,!1)}function il(t,r,o,l,f){var h=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var S=l.stateNode.containerInfo;if(S===f||S.nodeType===8&&S.parentNode===f)break;if(v===4)for(v=l.return;v!==null;){var E=v.tag;if((E===3||E===4)&&(E=v.stateNode.containerInfo,E===f||E.nodeType===8&&E.parentNode===f))return;v=v.return}for(;S!==null;){if(v=Yn(S),v===null)return;if(E=v.tag,E===5||E===6){l=h=v;continue e}S=S.parentNode}}l=l.return}zf(function(){var R=h,K=Ma(o),G=[];e:{var W=Ld.get(t);if(W!==void 0){var ee=Ha,ie=t;switch(t){case"keypress":if(Rs(o)===0)break e;case"keydown":case"keyup":ee=Wg;break;case"focusin":ie="focus",ee=qa;break;case"focusout":ie="blur",ee=qa;break;case"beforeblur":case"afterblur":ee=qa;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=Gg;break;case Pd:case bd:case Md:ee=Og;break;case jd:ee=Xg;break;case"scroll":ee=Lg;break;case"wheel":ee=Qg;break;case"copy":case"cut":case"paste":ee=Ig;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=ud}var le=(r&4)!==0,He=!le&&t==="scroll",j=le?W!==null?W+"Capture":null:W;le=[];for(var P=R,N;P!==null;){N=P;var X=N.stateNode;if(N.tag===5&&X!==null&&(N=X,j!==null&&(X=hi(P,j),X!=null&&le.push(Ni(P,X,N)))),He)break;P=P.return}0<le.length&&(W=new ee(W,ie,null,o,K),G.push({event:W,listeners:le}))}}if((r&7)===0){e:{if(W=t==="mouseover"||t==="pointerover",ee=t==="mouseout"||t==="pointerout",W&&o!==ba&&(ie=o.relatedTarget||o.fromElement)&&(Yn(ie)||ie[cn]))break e;if((ee||W)&&(W=K.window===K?K:(W=K.ownerDocument)?W.defaultView||W.parentWindow:window,ee?(ie=o.relatedTarget||o.toElement,ee=R,ie=ie?Yn(ie):null,ie!==null&&(He=Gn(ie),ie!==He||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ee=null,ie=R),ee!==ie)){if(le=ad,X="onMouseLeave",j="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(le=ud,X="onPointerLeave",j="onPointerEnter",P="pointer"),He=ee==null?W:Nr(ee),N=ie==null?W:Nr(ie),W=new le(X,P+"leave",ee,o,K),W.target=He,W.relatedTarget=N,X=null,Yn(K)===R&&(le=new le(j,P+"enter",ie,o,K),le.target=N,le.relatedTarget=He,X=le),He=X,ee&&ie)t:{for(le=ee,j=ie,P=0,N=le;N;N=jr(N))P++;for(N=0,X=j;X;X=jr(X))N++;for(;0<P-N;)le=jr(le),P--;for(;0<N-P;)j=jr(j),N--;for(;P--;){if(le===j||j!==null&&le===j.alternate)break t;le=jr(le),j=jr(j)}le=null}else le=null;ee!==null&&Od(G,W,ee,le,!1),ie!==null&&He!==null&&Od(G,He,ie,le,!0)}}e:{if(W=R?Nr(R):window,ee=W.nodeName&&W.nodeName.toLowerCase(),ee==="select"||ee==="input"&&W.type==="file")var ue=s2;else if(md(W))if(gd)ue=u2;else{ue=a2;var fe=o2}else(ee=W.nodeName)&&ee.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ue=l2);if(ue&&(ue=ue(t,R))){yd(G,ue,o,K);break e}fe&&fe(t,W,R),t==="focusout"&&(fe=W._wrapperState)&&fe.controlled&&W.type==="number"&&Sa(W,"number",W.value)}switch(fe=R?Nr(R):window,t){case"focusin":(md(fe)||fe.contentEditable==="true")&&(br=fe,Qa=R,Mi=null);break;case"focusout":Mi=Qa=br=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Ed(G,o,K);break;case"selectionchange":if(d2)break;case"keydown":case"keyup":Ed(G,o,K)}var de;if(Ga)e:{switch(t){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Pr?hd(t,o)&&(ye="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ye="onCompositionStart");ye&&(cd&&o.locale!=="ko"&&(Pr||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Pr&&(de=sd()):(Tn=K,Ba="value"in Tn?Tn.value:Tn.textContent,Pr=!0)),fe=Fs(R,ye),0<fe.length&&(ye=new ld(ye,t,null,o,K),G.push({event:ye,listeners:fe}),de?ye.data=de:(de=pd(o),de!==null&&(ye.data=de)))),(de=e2?t2(t,o):n2(t,o))&&(R=Fs(R,"onBeforeInput"),0<R.length&&(K=new ld("onBeforeInput","beforeinput",null,o,K),G.push({event:K,listeners:R}),K.data=de))}Rd(G,r)})}function Ni(t,r,o){return{instance:t,listener:r,currentTarget:o}}function Fs(t,r){for(var o=r+"Capture",l=[];t!==null;){var f=t,h=f.stateNode;f.tag===5&&h!==null&&(f=h,h=hi(t,o),h!=null&&l.unshift(Ni(t,h,f)),h=hi(t,r),h!=null&&l.push(Ni(t,h,f))),t=t.return}return l}function jr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Od(t,r,o,l,f){for(var h=r._reactName,v=[];o!==null&&o!==l;){var S=o,E=S.alternate,R=S.stateNode;if(E!==null&&E===l)break;S.tag===5&&R!==null&&(S=R,f?(E=hi(o,h),E!=null&&v.unshift(Ni(o,E,S))):f||(E=hi(o,h),E!=null&&v.push(Ni(o,E,S)))),o=o.return}v.length!==0&&t.push({event:r,listeners:v})}var y2=/\r\n?/g,g2=/\u0000|\uFFFD/g;function Vd(t){return(typeof t=="string"?t:""+t).replace(y2,`
54
- `).replace(g2,"")}function Bs(t,r,o){if(r=Vd(r),Vd(t)!==r&&o)throw Error(i(425))}function Hs(){}var sl=null,ol=null;function al(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ll=typeof setTimeout=="function"?setTimeout:void 0,v2=typeof clearTimeout=="function"?clearTimeout:void 0,Id=typeof Promise=="function"?Promise:void 0,w2=typeof queueMicrotask=="function"?queueMicrotask:typeof Id<"u"?function(t){return Id.resolve(null).then(t).catch(x2)}:ll;function x2(t){setTimeout(function(){throw t})}function ul(t,r){var o=r,l=0;do{var f=o.nextSibling;if(t.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(l===0){t.removeChild(f),ki(r);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=f}while(o);ki(r)}function bn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function $d(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Lr,Ai="__reactProps$"+Lr,cn="__reactContainer$"+Lr,cl="__reactEvents$"+Lr,_2="__reactListeners$"+Lr,k2="__reactHandles$"+Lr;function Yn(t){var r=t[Zt];if(r)return r;for(var o=t.parentNode;o;){if(r=o[cn]||o[Zt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=$d(t);t!==null;){if(o=t[Zt])return o;t=$d(t)}return r}t=o,o=t.parentNode}return null}function Ri(t){return t=t[Zt]||t[cn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Nr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Us(t){return t[Ai]||null}var fl=[],Ar=-1;function Mn(t){return{current:t}}function Re(t){0>Ar||(t.current=fl[Ar],fl[Ar]=null,Ar--)}function Ne(t,r){Ar++,fl[Ar]=t.current,t.current=r}var jn={},rt=Mn(jn),ht=Mn(!1),Xn=jn;function Rr(t,r){var o=t.type.contextTypes;if(!o)return jn;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var f={},h;for(h in o)f[h]=r[h];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=f),f}function pt(t){return t=t.childContextTypes,t!=null}function Ws(){Re(ht),Re(rt)}function zd(t,r,o){if(rt.current!==jn)throw Error(i(168));Ne(rt,r),Ne(ht,o)}function Fd(t,r,o){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var f in l)if(!(f in r))throw Error(i(108,Le(t)||"Unknown",f));return Y({},o,l)}function qs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||jn,Xn=rt.current,Ne(rt,t),Ne(ht,ht.current),!0}function Bd(t,r,o){var l=t.stateNode;if(!l)throw Error(i(169));o?(t=Fd(t,r,Xn),l.__reactInternalMemoizedMergedChildContext=t,Re(ht),Re(rt),Ne(rt,t)):Re(ht),Ne(ht,o)}var fn=null,Ks=!1,dl=!1;function Hd(t){fn===null?fn=[t]:fn.push(t)}function S2(t){Ks=!0,Hd(t)}function Ln(){if(!dl&&fn!==null){dl=!0;var t=0,r=Pe;try{var o=fn;for(Pe=1;t<o.length;t++){var l=o[t];do l=l(!0);while(l!==null)}fn=null,Ks=!1}catch(f){throw fn!==null&&(fn=fn.slice(t+1)),Wf(Ra,Ln),f}finally{Pe=r,dl=!1}}return null}var Dr=[],Or=0,Gs=null,Ys=0,Mt=[],jt=0,Zn=null,dn=1,hn="";function Qn(t,r){Dr[Or++]=Ys,Dr[Or++]=Gs,Gs=t,Ys=r}function Ud(t,r,o){Mt[jt++]=dn,Mt[jt++]=hn,Mt[jt++]=Zn,Zn=t;var l=dn;t=hn;var f=32-It(l)-1;l&=~(1<<f),o+=1;var h=32-It(r)+f;if(30<h){var v=f-f%5;h=(l&(1<<v)-1).toString(32),l>>=v,f-=v,dn=1<<32-It(r)+f|o<<f|l,hn=h+t}else dn=1<<h|o<<f|l,hn=t}function hl(t){t.return!==null&&(Qn(t,1),Ud(t,1,0))}function pl(t){for(;t===Gs;)Gs=Dr[--Or],Dr[Or]=null,Ys=Dr[--Or],Dr[Or]=null;for(;t===Zn;)Zn=Mt[--jt],Mt[jt]=null,hn=Mt[--jt],Mt[jt]=null,dn=Mt[--jt],Mt[jt]=null}var _t=null,kt=null,Oe=!1,zt=null;function Wd(t,r){var o=Rt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=t,r=t.deletions,r===null?(t.deletions=[o],t.flags|=16):r.push(o)}function qd(t,r){switch(t.tag){case 5:var o=t.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,_t=t,kt=bn(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,_t=t,kt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=Zn!==null?{id:dn,overflow:hn}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Rt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,_t=t,kt=null,!0):!1;default:return!1}}function ml(t){return(t.mode&1)!==0&&(t.flags&128)===0}function yl(t){if(Oe){var r=kt;if(r){var o=r;if(!qd(t,r)){if(ml(t))throw Error(i(418));r=bn(o.nextSibling);var l=_t;r&&qd(t,r)?Wd(l,o):(t.flags=t.flags&-4097|2,Oe=!1,_t=t)}}else{if(ml(t))throw Error(i(418));t.flags=t.flags&-4097|2,Oe=!1,_t=t}}}function Kd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_t=t}function Xs(t){if(t!==_t)return!1;if(!Oe)return Kd(t),Oe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!al(t.type,t.memoizedProps)),r&&(r=kt)){if(ml(t))throw Gd(),Error(i(418));for(;r;)Wd(t,r),r=bn(r.nextSibling)}if(Kd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(r===0){kt=bn(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}kt=null}}else kt=_t?bn(t.stateNode.nextSibling):null;return!0}function Gd(){for(var t=kt;t;)t=bn(t.nextSibling)}function Vr(){kt=_t=null,Oe=!1}function gl(t){zt===null?zt=[t]:zt.push(t)}var C2=z.ReactCurrentBatchConfig;function Di(t,r,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var l=o.stateNode}if(!l)throw Error(i(147,t));var f=l,h=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===h?r.ref:(r=function(v){var S=f.refs;v===null?delete S[h]:S[h]=v},r._stringRef=h,r)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Zs(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Yd(t){var r=t._init;return r(t._payload)}function Xd(t){function r(j,P){if(t){var N=j.deletions;N===null?(j.deletions=[P],j.flags|=16):N.push(P)}}function o(j,P){if(!t)return null;for(;P!==null;)r(j,P),P=P.sibling;return null}function l(j,P){for(j=new Map;P!==null;)P.key!==null?j.set(P.key,P):j.set(P.index,P),P=P.sibling;return j}function f(j,P){return j=$n(j,P),j.index=0,j.sibling=null,j}function h(j,P,N){return j.index=N,t?(N=j.alternate,N!==null?(N=N.index,N<P?(j.flags|=2,P):N):(j.flags|=2,P)):(j.flags|=1048576,P)}function v(j){return t&&j.alternate===null&&(j.flags|=2),j}function S(j,P,N,X){return P===null||P.tag!==6?(P=lu(N,j.mode,X),P.return=j,P):(P=f(P,N),P.return=j,P)}function E(j,P,N,X){var ue=N.type;return ue===U?K(j,P,N.props.children,X,N.key):P!==null&&(P.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ve&&Yd(ue)===P.type)?(X=f(P,N.props),X.ref=Di(j,P,N),X.return=j,X):(X=ko(N.type,N.key,N.props,null,j.mode,X),X.ref=Di(j,P,N),X.return=j,X)}function R(j,P,N,X){return P===null||P.tag!==4||P.stateNode.containerInfo!==N.containerInfo||P.stateNode.implementation!==N.implementation?(P=uu(N,j.mode,X),P.return=j,P):(P=f(P,N.children||[]),P.return=j,P)}function K(j,P,N,X,ue){return P===null||P.tag!==7?(P=or(N,j.mode,X,ue),P.return=j,P):(P=f(P,N),P.return=j,P)}function G(j,P,N){if(typeof P=="string"&&P!==""||typeof P=="number")return P=lu(""+P,j.mode,N),P.return=j,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case V:return N=ko(P.type,P.key,P.props,null,j.mode,N),N.ref=Di(j,null,P),N.return=j,N;case F:return P=uu(P,j.mode,N),P.return=j,P;case ve:var X=P._init;return G(j,X(P._payload),N)}if(ci(P)||Z(P))return P=or(P,j.mode,N,null),P.return=j,P;Zs(j,P)}return null}function W(j,P,N,X){var ue=P!==null?P.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return ue!==null?null:S(j,P,""+N,X);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case V:return N.key===ue?E(j,P,N,X):null;case F:return N.key===ue?R(j,P,N,X):null;case ve:return ue=N._init,W(j,P,ue(N._payload),X)}if(ci(N)||Z(N))return ue!==null?null:K(j,P,N,X,null);Zs(j,N)}return null}function ee(j,P,N,X,ue){if(typeof X=="string"&&X!==""||typeof X=="number")return j=j.get(N)||null,S(P,j,""+X,ue);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case V:return j=j.get(X.key===null?N:X.key)||null,E(P,j,X,ue);case F:return j=j.get(X.key===null?N:X.key)||null,R(P,j,X,ue);case ve:var fe=X._init;return ee(j,P,N,fe(X._payload),ue)}if(ci(X)||Z(X))return j=j.get(N)||null,K(P,j,X,ue,null);Zs(P,X)}return null}function ie(j,P,N,X){for(var ue=null,fe=null,de=P,ye=P=0,Qe=null;de!==null&&ye<N.length;ye++){de.index>ye?(Qe=de,de=null):Qe=de.sibling;var Ee=W(j,de,N[ye],X);if(Ee===null){de===null&&(de=Qe);break}t&&de&&Ee.alternate===null&&r(j,de),P=h(Ee,P,ye),fe===null?ue=Ee:fe.sibling=Ee,fe=Ee,de=Qe}if(ye===N.length)return o(j,de),Oe&&Qn(j,ye),ue;if(de===null){for(;ye<N.length;ye++)de=G(j,N[ye],X),de!==null&&(P=h(de,P,ye),fe===null?ue=de:fe.sibling=de,fe=de);return Oe&&Qn(j,ye),ue}for(de=l(j,de);ye<N.length;ye++)Qe=ee(de,j,ye,N[ye],X),Qe!==null&&(t&&Qe.alternate!==null&&de.delete(Qe.key===null?ye:Qe.key),P=h(Qe,P,ye),fe===null?ue=Qe:fe.sibling=Qe,fe=Qe);return t&&de.forEach(function(zn){return r(j,zn)}),Oe&&Qn(j,ye),ue}function le(j,P,N,X){var ue=Z(N);if(typeof ue!="function")throw Error(i(150));if(N=ue.call(N),N==null)throw Error(i(151));for(var fe=ue=null,de=P,ye=P=0,Qe=null,Ee=N.next();de!==null&&!Ee.done;ye++,Ee=N.next()){de.index>ye?(Qe=de,de=null):Qe=de.sibling;var zn=W(j,de,Ee.value,X);if(zn===null){de===null&&(de=Qe);break}t&&de&&zn.alternate===null&&r(j,de),P=h(zn,P,ye),fe===null?ue=zn:fe.sibling=zn,fe=zn,de=Qe}if(Ee.done)return o(j,de),Oe&&Qn(j,ye),ue;if(de===null){for(;!Ee.done;ye++,Ee=N.next())Ee=G(j,Ee.value,X),Ee!==null&&(P=h(Ee,P,ye),fe===null?ue=Ee:fe.sibling=Ee,fe=Ee);return Oe&&Qn(j,ye),ue}for(de=l(j,de);!Ee.done;ye++,Ee=N.next())Ee=ee(de,j,ye,Ee.value,X),Ee!==null&&(t&&Ee.alternate!==null&&de.delete(Ee.key===null?ye:Ee.key),P=h(Ee,P,ye),fe===null?ue=Ee:fe.sibling=Ee,fe=Ee);return t&&de.forEach(function(rv){return r(j,rv)}),Oe&&Qn(j,ye),ue}function He(j,P,N,X){if(typeof N=="object"&&N!==null&&N.type===U&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case V:e:{for(var ue=N.key,fe=P;fe!==null;){if(fe.key===ue){if(ue=N.type,ue===U){if(fe.tag===7){o(j,fe.sibling),P=f(fe,N.props.children),P.return=j,j=P;break e}}else if(fe.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ve&&Yd(ue)===fe.type){o(j,fe.sibling),P=f(fe,N.props),P.ref=Di(j,fe,N),P.return=j,j=P;break e}o(j,fe);break}else r(j,fe);fe=fe.sibling}N.type===U?(P=or(N.props.children,j.mode,X,N.key),P.return=j,j=P):(X=ko(N.type,N.key,N.props,null,j.mode,X),X.ref=Di(j,P,N),X.return=j,j=X)}return v(j);case F:e:{for(fe=N.key;P!==null;){if(P.key===fe)if(P.tag===4&&P.stateNode.containerInfo===N.containerInfo&&P.stateNode.implementation===N.implementation){o(j,P.sibling),P=f(P,N.children||[]),P.return=j,j=P;break e}else{o(j,P);break}else r(j,P);P=P.sibling}P=uu(N,j.mode,X),P.return=j,j=P}return v(j);case ve:return fe=N._init,He(j,P,fe(N._payload),X)}if(ci(N))return ie(j,P,N,X);if(Z(N))return le(j,P,N,X);Zs(j,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,P!==null&&P.tag===6?(o(j,P.sibling),P=f(P,N),P.return=j,j=P):(o(j,P),P=lu(N,j.mode,X),P.return=j,j=P),v(j)):o(j,P)}return He}var Ir=Xd(!0),Zd=Xd(!1),Qs=Mn(null),Js=null,$r=null,vl=null;function wl(){vl=$r=Js=null}function xl(t){var r=Qs.current;Re(Qs),t._currentValue=r}function _l(t,r,o){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===o)break;t=t.return}}function zr(t,r){Js=t,vl=$r=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(mt=!0),t.firstContext=null)}function Lt(t){var r=t._currentValue;if(vl!==t)if(t={context:t,memoizedValue:r,next:null},$r===null){if(Js===null)throw Error(i(308));$r=t,Js.dependencies={lanes:0,firstContext:t}}else $r=$r.next=t;return r}var Jn=null;function kl(t){Jn===null?Jn=[t]:Jn.push(t)}function Qd(t,r,o,l){var f=r.interleaved;return f===null?(o.next=o,kl(r)):(o.next=f.next,f.next=o),r.interleaved=o,pn(t,l)}function pn(t,r){t.lanes|=r;var o=t.alternate;for(o!==null&&(o.lanes|=r),o=t,t=t.return;t!==null;)t.childLanes|=r,o=t.alternate,o!==null&&(o.childLanes|=r),o=t,t=t.return;return o.tag===3?o.stateNode:null}var Nn=!1;function Sl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mn(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function An(t,r,o){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var f=l.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r,pn(t,o)}return f=l.interleaved,f===null?(r.next=r,kl(l)):(r.next=f.next,f.next=r),l.interleaved=r,pn(t,o)}function eo(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var l=r.lanes;l&=t.pendingLanes,o|=l,r.lanes=o,Va(t,o)}}function eh(t,r){var o=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var f=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?f=h=v:h=h.next=v,o=o.next}while(o!==null);h===null?f=h=r:h=h.next=r}else f=h=r;o={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,effects:l.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function to(t,r,o,l){var f=t.updateQueue;Nn=!1;var h=f.firstBaseUpdate,v=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var E=S,R=E.next;E.next=null,v===null?h=R:v.next=R,v=E;var K=t.alternate;K!==null&&(K=K.updateQueue,S=K.lastBaseUpdate,S!==v&&(S===null?K.firstBaseUpdate=R:S.next=R,K.lastBaseUpdate=E))}if(h!==null){var G=f.baseState;v=0,K=R=E=null,S=h;do{var W=S.lane,ee=S.eventTime;if((l&W)===W){K!==null&&(K=K.next={eventTime:ee,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var ie=t,le=S;switch(W=r,ee=o,le.tag){case 1:if(ie=le.payload,typeof ie=="function"){G=ie.call(ee,G,W);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=le.payload,W=typeof ie=="function"?ie.call(ee,G,W):ie,W==null)break e;G=Y({},G,W);break e;case 2:Nn=!0}}S.callback!==null&&S.lane!==0&&(t.flags|=64,W=f.effects,W===null?f.effects=[S]:W.push(S))}else ee={eventTime:ee,lane:W,tag:S.tag,payload:S.payload,callback:S.callback,next:null},K===null?(R=K=ee,E=G):K=K.next=ee,v|=W;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;W=S,S=W.next,W.next=null,f.lastBaseUpdate=W,f.shared.pending=null}}while(!0);if(K===null&&(E=G),f.baseState=E,f.firstBaseUpdate=R,f.lastBaseUpdate=K,r=f.shared.interleaved,r!==null){f=r;do v|=f.lane,f=f.next;while(f!==r)}else h===null&&(f.shared.lanes=0);nr|=v,t.lanes=v,t.memoizedState=G}}function th(t,r,o){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var l=t[r],f=l.callback;if(f!==null){if(l.callback=null,l=o,typeof f!="function")throw Error(i(191,f));f.call(l)}}}var Oi={},Qt=Mn(Oi),Vi=Mn(Oi),Ii=Mn(Oi);function er(t){if(t===Oi)throw Error(i(174));return t}function Cl(t,r){switch(Ne(Ii,r),Ne(Vi,t),Ne(Qt,Oi),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ea(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Ea(r,t)}Re(Qt),Ne(Qt,r)}function Fr(){Re(Qt),Re(Vi),Re(Ii)}function nh(t){er(Ii.current);var r=er(Qt.current),o=Ea(r,t.type);r!==o&&(Ne(Vi,t),Ne(Qt,o))}function El(t){Vi.current===t&&(Re(Qt),Re(Vi))}var Ve=Mn(0);function no(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Tl=[];function Pl(){for(var t=0;t<Tl.length;t++)Tl[t]._workInProgressVersionPrimary=null;Tl.length=0}var ro=z.ReactCurrentDispatcher,bl=z.ReactCurrentBatchConfig,tr=0,Ie=null,Ke=null,Xe=null,io=!1,$i=!1,zi=0,E2=0;function it(){throw Error(i(321))}function Ml(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!$t(t[o],r[o]))return!1;return!0}function jl(t,r,o,l,f,h){if(tr=h,Ie=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,ro.current=t===null||t.memoizedState===null?M2:j2,t=o(l,f),$i){h=0;do{if($i=!1,zi=0,25<=h)throw Error(i(301));h+=1,Xe=Ke=null,r.updateQueue=null,ro.current=L2,t=o(l,f)}while($i)}if(ro.current=ao,r=Ke!==null&&Ke.next!==null,tr=0,Xe=Ke=Ie=null,io=!1,r)throw Error(i(300));return t}function Ll(){var t=zi!==0;return zi=0,t}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Ie.memoizedState=Xe=t:Xe=Xe.next=t,Xe}function Nt(){if(Ke===null){var t=Ie.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var r=Xe===null?Ie.memoizedState:Xe.next;if(r!==null)Xe=r,Ke=t;else{if(t===null)throw Error(i(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Xe===null?Ie.memoizedState=Xe=t:Xe=Xe.next=t}return Xe}function Fi(t,r){return typeof r=="function"?r(t):r}function Nl(t){var r=Nt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var l=Ke,f=l.baseQueue,h=o.pending;if(h!==null){if(f!==null){var v=f.next;f.next=h.next,h.next=v}l.baseQueue=f=h,o.pending=null}if(f!==null){h=f.next,l=l.baseState;var S=v=null,E=null,R=h;do{var K=R.lane;if((tr&K)===K)E!==null&&(E=E.next={lane:0,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),l=R.hasEagerState?R.eagerState:t(l,R.action);else{var G={lane:K,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null};E===null?(S=E=G,v=l):E=E.next=G,Ie.lanes|=K,nr|=K}R=R.next}while(R!==null&&R!==h);E===null?v=l:E.next=S,$t(l,r.memoizedState)||(mt=!0),r.memoizedState=l,r.baseState=v,r.baseQueue=E,o.lastRenderedState=l}if(t=o.interleaved,t!==null){f=t;do h=f.lane,Ie.lanes|=h,nr|=h,f=f.next;while(f!==t)}else f===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Al(t){var r=Nt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var l=o.dispatch,f=o.pending,h=r.memoizedState;if(f!==null){o.pending=null;var v=f=f.next;do h=t(h,v.action),v=v.next;while(v!==f);$t(h,r.memoizedState)||(mt=!0),r.memoizedState=h,r.baseQueue===null&&(r.baseState=h),o.lastRenderedState=h}return[h,l]}function rh(){}function ih(t,r){var o=Ie,l=Nt(),f=r(),h=!$t(l.memoizedState,f);if(h&&(l.memoizedState=f,mt=!0),l=l.queue,Rl(ah.bind(null,o,l,t),[t]),l.getSnapshot!==r||h||Xe!==null&&Xe.memoizedState.tag&1){if(o.flags|=2048,Bi(9,oh.bind(null,o,l,f,r),void 0,null),Ze===null)throw Error(i(349));(tr&30)!==0||sh(o,r,f)}return f}function sh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Ie.updateQueue,r===null?(r={lastEffect:null,stores:null},Ie.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function oh(t,r,o,l){r.value=o,r.getSnapshot=l,lh(r)&&uh(t)}function ah(t,r,o){return o(function(){lh(r)&&uh(t)})}function lh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!$t(t,o)}catch{return!0}}function uh(t){var r=pn(t,1);r!==null&&Ut(r,t,1,-1)}function ch(t){var r=Jt();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:t},r.queue=t,t=t.dispatch=b2.bind(null,Ie,t),[r.memoizedState,t]}function Bi(t,r,o,l){return t={tag:t,create:r,destroy:o,deps:l,next:null},r=Ie.updateQueue,r===null?(r={lastEffect:null,stores:null},Ie.updateQueue=r,r.lastEffect=t.next=t):(o=r.lastEffect,o===null?r.lastEffect=t.next=t:(l=o.next,o.next=t,t.next=l,r.lastEffect=t)),t}function fh(){return Nt().memoizedState}function so(t,r,o,l){var f=Jt();Ie.flags|=t,f.memoizedState=Bi(1|r,o,void 0,l===void 0?null:l)}function oo(t,r,o,l){var f=Nt();l=l===void 0?null:l;var h=void 0;if(Ke!==null){var v=Ke.memoizedState;if(h=v.destroy,l!==null&&Ml(l,v.deps)){f.memoizedState=Bi(r,o,h,l);return}}Ie.flags|=t,f.memoizedState=Bi(1|r,o,h,l)}function dh(t,r){return so(8390656,8,t,r)}function Rl(t,r){return oo(2048,8,t,r)}function hh(t,r){return oo(4,2,t,r)}function ph(t,r){return oo(4,4,t,r)}function mh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function yh(t,r,o){return o=o!=null?o.concat([t]):null,oo(4,4,mh.bind(null,r,t),o)}function Dl(){}function gh(t,r){var o=Nt();r=r===void 0?null:r;var l=o.memoizedState;return l!==null&&r!==null&&Ml(r,l[1])?l[0]:(o.memoizedState=[t,r],t)}function vh(t,r){var o=Nt();r=r===void 0?null:r;var l=o.memoizedState;return l!==null&&r!==null&&Ml(r,l[1])?l[0]:(t=t(),o.memoizedState=[t,r],t)}function wh(t,r,o){return(tr&21)===0?(t.baseState&&(t.baseState=!1,mt=!0),t.memoizedState=o):($t(o,r)||(o=Yf(),Ie.lanes|=o,nr|=o,t.baseState=!0),r)}function T2(t,r){var o=Pe;Pe=o!==0&&4>o?o:4,t(!0);var l=bl.transition;bl.transition={};try{t(!1),r()}finally{Pe=o,bl.transition=l}}function xh(){return Nt().memoizedState}function P2(t,r,o){var l=Vn(t);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},_h(t))kh(r,o);else if(o=Qd(t,r,o,l),o!==null){var f=lt();Ut(o,t,l,f),Sh(o,r,l)}}function b2(t,r,o){var l=Vn(t),f={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(_h(t))kh(r,f);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var v=r.lastRenderedState,S=h(v,o);if(f.hasEagerState=!0,f.eagerState=S,$t(S,v)){var E=r.interleaved;E===null?(f.next=f,kl(r)):(f.next=E.next,E.next=f),r.interleaved=f;return}}catch{}finally{}o=Qd(t,r,f,l),o!==null&&(f=lt(),Ut(o,t,l,f),Sh(o,r,l))}}function _h(t){var r=t.alternate;return t===Ie||r!==null&&r===Ie}function kh(t,r){$i=io=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Sh(t,r,o){if((o&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,o|=l,r.lanes=o,Va(t,o)}}var ao={readContext:Lt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},M2={readContext:Lt,useCallback:function(t,r){return Jt().memoizedState=[t,r===void 0?null:r],t},useContext:Lt,useEffect:dh,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,so(4194308,4,mh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return so(4194308,4,t,r)},useInsertionEffect:function(t,r){return so(4,2,t,r)},useMemo:function(t,r){var o=Jt();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var l=Jt();return r=o!==void 0?o(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=P2.bind(null,Ie,t),[l.memoizedState,t]},useRef:function(t){var r=Jt();return t={current:t},r.memoizedState=t},useState:ch,useDebugValue:Dl,useDeferredValue:function(t){return Jt().memoizedState=t},useTransition:function(){var t=ch(!1),r=t[0];return t=T2.bind(null,t[1]),Jt().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var l=Ie,f=Jt();if(Oe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Ze===null)throw Error(i(349));(tr&30)!==0||sh(l,r,o)}f.memoizedState=o;var h={value:o,getSnapshot:r};return f.queue=h,dh(ah.bind(null,l,h,t),[t]),l.flags|=2048,Bi(9,oh.bind(null,l,h,o,r),void 0,null),o},useId:function(){var t=Jt(),r=Ze.identifierPrefix;if(Oe){var o=hn,l=dn;o=(l&~(1<<32-It(l)-1)).toString(32)+o,r=":"+r+"R"+o,o=zi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=E2++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},j2={readContext:Lt,useCallback:gh,useContext:Lt,useEffect:Rl,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:ph,useMemo:vh,useReducer:Nl,useRef:fh,useState:function(){return Nl(Fi)},useDebugValue:Dl,useDeferredValue:function(t){var r=Nt();return wh(r,Ke.memoizedState,t)},useTransition:function(){var t=Nl(Fi)[0],r=Nt().memoizedState;return[t,r]},useMutableSource:rh,useSyncExternalStore:ih,useId:xh,unstable_isNewReconciler:!1},L2={readContext:Lt,useCallback:gh,useContext:Lt,useEffect:Rl,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:ph,useMemo:vh,useReducer:Al,useRef:fh,useState:function(){return Al(Fi)},useDebugValue:Dl,useDeferredValue:function(t){var r=Nt();return Ke===null?r.memoizedState=t:wh(r,Ke.memoizedState,t)},useTransition:function(){var t=Al(Fi)[0],r=Nt().memoizedState;return[t,r]},useMutableSource:rh,useSyncExternalStore:ih,useId:xh,unstable_isNewReconciler:!1};function Ft(t,r){if(t&&t.defaultProps){r=Y({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Ol(t,r,o,l){r=t.memoizedState,o=o(l,r),o=o==null?r:Y({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var lo={isMounted:function(t){return(t=t._reactInternals)?Gn(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var l=lt(),f=Vn(t),h=mn(l,f);h.payload=r,o!=null&&(h.callback=o),r=An(t,h,f),r!==null&&(Ut(r,t,f,l),eo(r,t,f))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var l=lt(),f=Vn(t),h=mn(l,f);h.tag=1,h.payload=r,o!=null&&(h.callback=o),r=An(t,h,f),r!==null&&(Ut(r,t,f,l),eo(r,t,f))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=lt(),l=Vn(t),f=mn(o,l);f.tag=2,r!=null&&(f.callback=r),r=An(t,f,l),r!==null&&(Ut(r,t,l,o),eo(r,t,l))}};function Ch(t,r,o,l,f,h,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,h,v):r.prototype&&r.prototype.isPureReactComponent?!bi(o,l)||!bi(f,h):!0}function Eh(t,r,o){var l=!1,f=jn,h=r.contextType;return typeof h=="object"&&h!==null?h=Lt(h):(f=pt(r)?Xn:rt.current,l=r.contextTypes,h=(l=l!=null)?Rr(t,f):jn),r=new r(o,h),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=lo,t.stateNode=r,r._reactInternals=t,l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=h),r}function Th(t,r,o,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==t&&lo.enqueueReplaceState(r,r.state,null)}function Vl(t,r,o,l){var f=t.stateNode;f.props=o,f.state=t.memoizedState,f.refs={},Sl(t);var h=r.contextType;typeof h=="object"&&h!==null?f.context=Lt(h):(h=pt(r)?Xn:rt.current,f.context=Rr(t,h)),f.state=t.memoizedState,h=r.getDerivedStateFromProps,typeof h=="function"&&(Ol(t,r,h,o),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&lo.enqueueReplaceState(f,f.state,null),to(t,o,f,l),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Br(t,r){try{var o="",l=r;do o+=_e(l),l=l.return;while(l);var f=o}catch(h){f=`
53
+ `+f[v].replace(" at new "," at ");return t.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",t.displayName)),E}while(1<=v&&0<=S);break}}}finally{ne=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?L(t):""}function _e(t){switch(t.tag){case 5:return L(t.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return t=pe(t.type,!1),t;case 11:return t=pe(t.type.render,!1),t;case 1:return t=pe(t.type,!0),t;default:return""}}function Ce(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case F:return"Portal";case $:return"Profiler";case q:return"StrictMode";case J:return"Suspense";case ae:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case B:return(t._context.displayName||"Context")+".Provider";case me:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ce:return r=t.displayName||null,r!==null?r:Ce(t.type)||"Memo";case ve:r=t._payload,t=t._init;try{return Ce(t(r))}catch{}}return null}function Le(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(r);case 8:return r===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function De(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function wt(t){var r=De(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,h=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return f.call(this)},set:function(v){l=""+v,h.call(this,v)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ws(t){t._valueTracker||(t._valueTracker=wt(t))}function Cf(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),l="";return t&&(l=De(t)?t.checked?"true":"false":t.value),t=l,t!==o?(r.setValue(t),!0):!1}function xs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _a(t,r){var o=r.checked;return Y({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function Ef(t,r){var o=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;o=Te(r.value!=null?r.value:o),t._wrapperState={initialChecked:l,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Tf(t,r){r=r.checked,r!=null&&O(t,"checked",r,!1)}function ka(t,r){Tf(t,r);var o=Te(r.value),l=r.type;if(o!=null)l==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Sa(t,r.type,o):r.hasOwnProperty("defaultValue")&&Sa(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Pf(t,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,o||r===t.value||(t.value=r),t.defaultValue=r}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function Sa(t,r,o){(r!=="number"||xs(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ci=Array.isArray;function kr(t,r,o,l){if(t=t.options,r){r={};for(var f=0;f<o.length;f++)r["$"+o[f]]=!0;for(o=0;o<t.length;o++)f=r.hasOwnProperty("$"+t[o].value),t[o].selected!==f&&(t[o].selected=f),f&&l&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),r=null,f=0;f<t.length;f++){if(t[f].value===o){t[f].selected=!0,l&&(t[f].defaultSelected=!0);return}r!==null||t[f].disabled||(r=t[f])}r!==null&&(r.selected=!0)}}function Ca(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Y({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function bf(t,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(i(92));if(ci(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),o=r}t._wrapperState={initialValue:Te(o)}}function Mf(t,r){var o=Te(r.value),l=Te(r.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),r.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),l!=null&&(t.defaultValue=""+l)}function jf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Lf(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ea(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Lf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var _s,Nf=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,l,f){MSApp.execUnsafeLocalFunction(function(){return t(r,o,l,f)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(_s=_s||document.createElement("div"),_s.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=_s.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function fi(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var di={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ug=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(t){ug.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),di[r]=di[t]})});function Af(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||di.hasOwnProperty(t)&&di[t]?(""+r).trim():r+"px"}function Rf(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var l=o.indexOf("--")===0,f=Af(o,r[o],l);o==="float"&&(o="cssFloat"),l?t.setProperty(o,f):t[o]=f}}var cg=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ta(t,r){if(r){if(cg[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Pa(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 ba=null;function Ma(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ja=null,Sr=null,Cr=null;function Df(t){if(t=Ri(t)){if(typeof ja!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Us(r),ja(t.stateNode,t.type,r))}}function Of(t){Sr?Cr?Cr.push(t):Cr=[t]:Sr=t}function Vf(){if(Sr){var t=Sr,r=Cr;if(Cr=Sr=null,Df(t),r)for(t=0;t<r.length;t++)Df(r[t])}}function If(t,r){return t(r)}function $f(){}var La=!1;function zf(t,r,o){if(La)return t(r,o);La=!0;try{return If(t,r,o)}finally{La=!1,(Sr!==null||Cr!==null)&&($f(),Vf())}}function hi(t,r){var o=t.stateNode;if(o===null)return null;var l=Us(o);if(l===null)return null;o=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var Na=!1;if(d)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){Na=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{Na=!1}function fg(t,r,o,l,f,h,v,S,E){var R=Array.prototype.slice.call(arguments,3);try{r.apply(o,R)}catch(K){this.onError(K)}}var mi=!1,ks=null,Ss=!1,Aa=null,dg={onError:function(t){mi=!0,ks=t}};function hg(t,r,o,l,f,h,v,S,E){mi=!1,ks=null,fg.apply(dg,arguments)}function pg(t,r,o,l,f,h,v,S,E){if(hg.apply(this,arguments),mi){if(mi){var R=ks;mi=!1,ks=null}else throw Error(i(198));Ss||(Ss=!0,Aa=R)}}function Gn(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Ff(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Bf(t){if(Gn(t)!==t)throw Error(i(188))}function mg(t){var r=t.alternate;if(!r){if(r=Gn(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,l=r;;){var f=o.return;if(f===null)break;var h=f.alternate;if(h===null){if(l=f.return,l!==null){o=l;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===o)return Bf(f),t;if(h===l)return Bf(f),r;h=h.sibling}throw Error(i(188))}if(o.return!==l.return)o=f,l=h;else{for(var v=!1,S=f.child;S;){if(S===o){v=!0,o=f,l=h;break}if(S===l){v=!0,l=f,o=h;break}S=S.sibling}if(!v){for(S=h.child;S;){if(S===o){v=!0,o=h,l=f;break}if(S===l){v=!0,l=h,o=f;break}S=S.sibling}if(!v)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function Hf(t){return t=mg(t),t!==null?Uf(t):null}function Uf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Uf(t);if(r!==null)return r;t=t.sibling}return null}var Wf=n.unstable_scheduleCallback,qf=n.unstable_cancelCallback,yg=n.unstable_shouldYield,gg=n.unstable_requestPaint,Be=n.unstable_now,vg=n.unstable_getCurrentPriorityLevel,Ra=n.unstable_ImmediatePriority,Kf=n.unstable_UserBlockingPriority,Cs=n.unstable_NormalPriority,wg=n.unstable_LowPriority,Gf=n.unstable_IdlePriority,Es=null,Xt=null;function xg(t){if(Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Es,t,void 0,(t.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:Sg,_g=Math.log,kg=Math.LN2;function Sg(t){return t>>>=0,t===0?32:31-(_g(t)/kg|0)|0}var Ts=64,Ps=4194304;function yi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function bs(t,r){var o=t.pendingLanes;if(o===0)return 0;var l=0,f=t.suspendedLanes,h=t.pingedLanes,v=o&268435455;if(v!==0){var S=v&~f;S!==0?l=yi(S):(h&=v,h!==0&&(l=yi(h)))}else v=o&~f,v!==0?l=yi(v):h!==0&&(l=yi(h));if(l===0)return 0;if(r!==0&&r!==l&&(r&f)===0&&(f=l&-l,h=r&-r,f>=h||f===16&&(h&4194240)!==0))return r;if((l&4)!==0&&(l|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0<r;)o=31-It(r),f=1<<o,l|=t[o],r&=~f;return l}function Cg(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Eg(t,r){for(var o=t.suspendedLanes,l=t.pingedLanes,f=t.expirationTimes,h=t.pendingLanes;0<h;){var v=31-It(h),S=1<<v,E=f[v];E===-1?((S&o)===0||(S&l)!==0)&&(f[v]=Cg(S,r)):E<=r&&(t.expiredLanes|=S),h&=~S}}function Da(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Yf(){var t=Ts;return Ts<<=1,(Ts&4194240)===0&&(Ts=64),t}function Oa(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function gi(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-It(r),t[r]=o}function Tg(t,r){var o=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0<o;){var f=31-It(o),h=1<<f;r[f]=0,l[f]=-1,t[f]=-1,o&=~h}}function Va(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var l=31-It(o),f=1<<l;f&r|t[l]&r&&(t[l]|=r),o&=~f}}var Pe=0;function Xf(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Zf,Ia,Qf,Jf,ed,$a=!1,Ms=[],kn=null,Sn=null,Cn=null,vi=new Map,wi=new Map,En=[],Pg="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 submit".split(" ");function td(t,r){switch(t){case"focusin":case"focusout":kn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":vi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(r.pointerId)}}function xi(t,r,o,l,f,h){return t===null||t.nativeEvent!==h?(t={blockedOn:r,domEventName:o,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]},r!==null&&(r=Ri(r),r!==null&&Ia(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),t)}function bg(t,r,o,l,f){switch(r){case"focusin":return kn=xi(kn,t,r,o,l,f),!0;case"dragenter":return Sn=xi(Sn,t,r,o,l,f),!0;case"mouseover":return Cn=xi(Cn,t,r,o,l,f),!0;case"pointerover":var h=f.pointerId;return vi.set(h,xi(vi.get(h)||null,t,r,o,l,f)),!0;case"gotpointercapture":return h=f.pointerId,wi.set(h,xi(wi.get(h)||null,t,r,o,l,f)),!0}return!1}function nd(t){var r=Yn(t.target);if(r!==null){var o=Gn(r);if(o!==null){if(r=o.tag,r===13){if(r=Ff(o),r!==null){t.blockedOn=r,ed(t.priority,function(){Qf(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function js(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Fa(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var l=new o.constructor(o.type,o);ba=l,o.target.dispatchEvent(l),ba=null}else return r=Ri(o),r!==null&&Ia(r),t.blockedOn=o,!1;r.shift()}return!0}function rd(t,r,o){js(t)&&o.delete(r)}function Mg(){$a=!1,kn!==null&&js(kn)&&(kn=null),Sn!==null&&js(Sn)&&(Sn=null),Cn!==null&&js(Cn)&&(Cn=null),vi.forEach(rd),wi.forEach(rd)}function _i(t,r){t.blockedOn===r&&(t.blockedOn=null,$a||($a=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Mg)))}function ki(t){function r(f){return _i(f,t)}if(0<Ms.length){_i(Ms[0],t);for(var o=1;o<Ms.length;o++){var l=Ms[o];l.blockedOn===t&&(l.blockedOn=null)}}for(kn!==null&&_i(kn,t),Sn!==null&&_i(Sn,t),Cn!==null&&_i(Cn,t),vi.forEach(r),wi.forEach(r),o=0;o<En.length;o++)l=En[o],l.blockedOn===t&&(l.blockedOn=null);for(;0<En.length&&(o=En[0],o.blockedOn===null);)nd(o),o.blockedOn===null&&En.shift()}var Er=z.ReactCurrentBatchConfig,Ls=!0;function jg(t,r,o,l){var f=Pe,h=Er.transition;Er.transition=null;try{Pe=1,za(t,r,o,l)}finally{Pe=f,Er.transition=h}}function Lg(t,r,o,l){var f=Pe,h=Er.transition;Er.transition=null;try{Pe=4,za(t,r,o,l)}finally{Pe=f,Er.transition=h}}function za(t,r,o,l){if(Ls){var f=Fa(t,r,o,l);if(f===null)il(t,r,l,Ns,o),td(t,l);else if(bg(f,t,r,o,l))l.stopPropagation();else if(td(t,l),r&4&&-1<Pg.indexOf(t)){for(;f!==null;){var h=Ri(f);if(h!==null&&Zf(h),h=Fa(t,r,o,l),h===null&&il(t,r,l,Ns,o),h===f)break;f=h}f!==null&&l.stopPropagation()}else il(t,r,l,null,o)}}var Ns=null;function Fa(t,r,o,l){if(Ns=null,t=Ma(l),t=Yn(t),t!==null)if(r=Gn(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Ff(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return Ns=t,null}function id(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vg()){case Ra:return 1;case Kf:return 4;case Cs:case wg:return 16;case Gf:return 536870912;default:return 16}default:return 16}}var Tn=null,Ba=null,As=null;function sd(){if(As)return As;var t,r=Ba,o=r.length,l,f="value"in Tn?Tn.value:Tn.textContent,h=f.length;for(t=0;t<o&&r[t]===f[t];t++);var v=o-t;for(l=1;l<=v&&r[o-l]===f[h-l];l++);return As=f.slice(t,1<l?1-l:void 0)}function Rs(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Ds(){return!0}function od(){return!1}function xt(t){function r(o,l,f,h,v){this._reactName=o,this._targetInst=f,this.type=l,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(o=t[S],this[S]=o?o(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ds:od,this.isPropagationStopped=od,this}return Y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ds)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ds)},persist:function(){},isPersistent:Ds}),r}var Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ha=xt(Tr),Si=Y({},Tr,{view:0,detail:0}),Ng=xt(Si),Ua,Wa,Ci,Os=Y({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ka,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ci&&(Ci&&t.type==="mousemove"?(Ua=t.screenX-Ci.screenX,Wa=t.screenY-Ci.screenY):Wa=Ua=0,Ci=t),Ua)},movementY:function(t){return"movementY"in t?t.movementY:Wa}}),ad=xt(Os),Ag=Y({},Os,{dataTransfer:0}),Rg=xt(Ag),Dg=Y({},Si,{relatedTarget:0}),qa=xt(Dg),Og=Y({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Vg=xt(Og),Ig=Y({},Tr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$g=xt(Ig),zg=Y({},Tr,{data:0}),ld=xt(zg),Fg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bg={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"},Hg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ug(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Hg[t])?!!r[t]:!1}function Ka(){return Ug}var Wg=Y({},Si,{key:function(t){if(t.key){var r=Fg[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Rs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Bg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ka,charCode:function(t){return t.type==="keypress"?Rs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Rs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qg=xt(Wg),Kg=Y({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=xt(Kg),Gg=Y({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ka}),Yg=xt(Gg),Xg=Y({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zg=xt(Xg),Qg=Y({},Os,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Jg=xt(Qg),e2=[9,13,27,32],Ga=d&&"CompositionEvent"in window,Ei=null;d&&"documentMode"in document&&(Ei=document.documentMode);var t2=d&&"TextEvent"in window&&!Ei,cd=d&&(!Ga||Ei&&8<Ei&&11>=Ei),fd=" ",dd=!1;function hd(t,r){switch(t){case"keyup":return e2.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pr=!1;function n2(t,r){switch(t){case"compositionend":return pd(r);case"keypress":return r.which!==32?null:(dd=!0,fd);case"textInput":return t=r.data,t===fd&&dd?null:t;default:return null}}function r2(t,r){if(Pr)return t==="compositionend"||!Ga&&hd(t,r)?(t=sd(),As=Ba=Tn=null,Pr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return cd&&r.locale!=="ko"?null:r.data;default:return null}}var i2={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 md(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!i2[t.type]:r==="textarea"}function yd(t,r,o,l){Of(l),r=Fs(r,"onChange"),0<r.length&&(o=new Ha("onChange","change",null,o,l),t.push({event:o,listeners:r}))}var Ti=null,Pi=null;function s2(t){Rd(t,0)}function Vs(t){var r=Nr(t);if(Cf(r))return t}function o2(t,r){if(t==="change")return r}var gd=!1;if(d){var Ya;if(d){var Xa="oninput"in document;if(!Xa){var vd=document.createElement("div");vd.setAttribute("oninput","return;"),Xa=typeof vd.oninput=="function"}Ya=Xa}else Ya=!1;gd=Ya&&(!document.documentMode||9<document.documentMode)}function wd(){Ti&&(Ti.detachEvent("onpropertychange",xd),Pi=Ti=null)}function xd(t){if(t.propertyName==="value"&&Vs(Pi)){var r=[];yd(r,Pi,t,Ma(t)),zf(s2,r)}}function a2(t,r,o){t==="focusin"?(wd(),Ti=r,Pi=o,Ti.attachEvent("onpropertychange",xd)):t==="focusout"&&wd()}function l2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vs(Pi)}function u2(t,r){if(t==="click")return Vs(r)}function c2(t,r){if(t==="input"||t==="change")return Vs(r)}function f2(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var $t=typeof Object.is=="function"?Object.is:f2;function bi(t,r){if($t(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),l=Object.keys(r);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var f=o[l];if(!p.call(r,f)||!$t(t[f],r[f]))return!1}return!0}function _d(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kd(t,r){var o=_d(t);t=0;for(var l;o;){if(o.nodeType===3){if(l=t+o.textContent.length,t<=r&&l>=r)return{node:o,offset:r-t};t=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=_d(o)}}function Sd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Sd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Cd(){for(var t=window,r=xs();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=xs(t.document)}return r}function Za(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function d2(t){var r=Cd(),o=t.focusedElem,l=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Sd(o.ownerDocument.documentElement,o)){if(l!==null&&Za(o)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(t,o.value.length);else if(t=(r=o.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var f=o.textContent.length,h=Math.min(l.start,f);l=l.end===void 0?h:Math.min(l.end,f),!t.extend&&h>l&&(f=l,l=h,h=f),f=kd(o,h);var v=kd(o,l);f&&v&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==v.node||t.focusOffset!==v.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),t.removeAllRanges(),h>l?(t.addRange(r),t.extend(v.node,v.offset)):(r.setEnd(v.node,v.offset),t.addRange(r)))}}for(r=[],t=o;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)t=r[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var h2=d&&"documentMode"in document&&11>=document.documentMode,br=null,Qa=null,Mi=null,Ja=!1;function Ed(t,r,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ja||br==null||br!==xs(l)||(l=br,"selectionStart"in l&&Za(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Mi&&bi(Mi,l)||(Mi=l,l=Fs(Qa,"onSelect"),0<l.length&&(r=new Ha("onSelect","select",null,r,o),t.push({event:r,listeners:l}),r.target=br)))}function Is(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var Mr={animationend:Is("Animation","AnimationEnd"),animationiteration:Is("Animation","AnimationIteration"),animationstart:Is("Animation","AnimationStart"),transitionend:Is("Transition","TransitionEnd")},el={},Td={};d&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);function $s(t){if(el[t])return el[t];if(!Mr[t])return t;var r=Mr[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in Td)return el[t]=r[o];return t}var Pd=$s("animationend"),bd=$s("animationiteration"),Md=$s("animationstart"),jd=$s("transitionend"),Ld=new Map,Nd="abort auxClick 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(" ");function Pn(t,r){Ld.set(t,r),u(r,[t])}for(var tl=0;tl<Nd.length;tl++){var nl=Nd[tl],p2=nl.toLowerCase(),m2=nl[0].toUpperCase()+nl.slice(1);Pn(p2,"on"+m2)}Pn(Pd,"onAnimationEnd"),Pn(bd,"onAnimationIteration"),Pn(Md,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(jd,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),y2=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function Ad(t,r,o){var l=t.type||"unknown-event";t.currentTarget=o,pg(l,r,void 0,t),t.currentTarget=null}function Rd(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var l=t[o],f=l.event;l=l.listeners;e:{var h=void 0;if(r)for(var v=l.length-1;0<=v;v--){var S=l[v],E=S.instance,R=S.currentTarget;if(S=S.listener,E!==h&&f.isPropagationStopped())break e;Ad(f,S,R),h=E}else for(v=0;v<l.length;v++){if(S=l[v],E=S.instance,R=S.currentTarget,S=S.listener,E!==h&&f.isPropagationStopped())break e;Ad(f,S,R),h=E}}}if(Ss)throw t=Aa,Ss=!1,Aa=null,t}function Ae(t,r){var o=r[cl];o===void 0&&(o=r[cl]=new Set);var l=t+"__bubble";o.has(l)||(Dd(r,t,2,!1),o.add(l))}function rl(t,r,o){var l=0;r&&(l|=4),Dd(o,t,l,r)}var zs="_reactListening"+Math.random().toString(36).slice(2);function Li(t){if(!t[zs]){t[zs]=!0,s.forEach(function(o){o!=="selectionchange"&&(y2.has(o)||rl(o,!1,t),rl(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[zs]||(r[zs]=!0,rl("selectionchange",!1,r))}}function Dd(t,r,o,l){switch(id(r)){case 1:var f=jg;break;case 4:f=Lg;break;default:f=za}o=f.bind(null,r,o,t),f=void 0,!Na||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),l?f!==void 0?t.addEventListener(r,o,{capture:!0,passive:f}):t.addEventListener(r,o,!0):f!==void 0?t.addEventListener(r,o,{passive:f}):t.addEventListener(r,o,!1)}function il(t,r,o,l,f){var h=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var S=l.stateNode.containerInfo;if(S===f||S.nodeType===8&&S.parentNode===f)break;if(v===4)for(v=l.return;v!==null;){var E=v.tag;if((E===3||E===4)&&(E=v.stateNode.containerInfo,E===f||E.nodeType===8&&E.parentNode===f))return;v=v.return}for(;S!==null;){if(v=Yn(S),v===null)return;if(E=v.tag,E===5||E===6){l=h=v;continue e}S=S.parentNode}}l=l.return}zf(function(){var R=h,K=Ma(o),G=[];e:{var W=Ld.get(t);if(W!==void 0){var ee=Ha,ie=t;switch(t){case"keypress":if(Rs(o)===0)break e;case"keydown":case"keyup":ee=qg;break;case"focusin":ie="focus",ee=qa;break;case"focusout":ie="blur",ee=qa;break;case"beforeblur":case"afterblur":ee=qa;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Rg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=Yg;break;case Pd:case bd:case Md:ee=Vg;break;case jd:ee=Zg;break;case"scroll":ee=Ng;break;case"wheel":ee=Jg;break;case"copy":case"cut":case"paste":ee=$g;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=ud}var le=(r&4)!==0,He=!le&&t==="scroll",j=le?W!==null?W+"Capture":null:W;le=[];for(var P=R,N;P!==null;){N=P;var X=N.stateNode;if(N.tag===5&&X!==null&&(N=X,j!==null&&(X=hi(P,j),X!=null&&le.push(Ni(P,X,N)))),He)break;P=P.return}0<le.length&&(W=new ee(W,ie,null,o,K),G.push({event:W,listeners:le}))}}if((r&7)===0){e:{if(W=t==="mouseover"||t==="pointerover",ee=t==="mouseout"||t==="pointerout",W&&o!==ba&&(ie=o.relatedTarget||o.fromElement)&&(Yn(ie)||ie[cn]))break e;if((ee||W)&&(W=K.window===K?K:(W=K.ownerDocument)?W.defaultView||W.parentWindow:window,ee?(ie=o.relatedTarget||o.toElement,ee=R,ie=ie?Yn(ie):null,ie!==null&&(He=Gn(ie),ie!==He||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ee=null,ie=R),ee!==ie)){if(le=ad,X="onMouseLeave",j="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(le=ud,X="onPointerLeave",j="onPointerEnter",P="pointer"),He=ee==null?W:Nr(ee),N=ie==null?W:Nr(ie),W=new le(X,P+"leave",ee,o,K),W.target=He,W.relatedTarget=N,X=null,Yn(K)===R&&(le=new le(j,P+"enter",ie,o,K),le.target=N,le.relatedTarget=He,X=le),He=X,ee&&ie)t:{for(le=ee,j=ie,P=0,N=le;N;N=jr(N))P++;for(N=0,X=j;X;X=jr(X))N++;for(;0<P-N;)le=jr(le),P--;for(;0<N-P;)j=jr(j),N--;for(;P--;){if(le===j||j!==null&&le===j.alternate)break t;le=jr(le),j=jr(j)}le=null}else le=null;ee!==null&&Od(G,W,ee,le,!1),ie!==null&&He!==null&&Od(G,He,ie,le,!0)}}e:{if(W=R?Nr(R):window,ee=W.nodeName&&W.nodeName.toLowerCase(),ee==="select"||ee==="input"&&W.type==="file")var ue=o2;else if(md(W))if(gd)ue=c2;else{ue=l2;var fe=a2}else(ee=W.nodeName)&&ee.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(ue=u2);if(ue&&(ue=ue(t,R))){yd(G,ue,o,K);break e}fe&&fe(t,W,R),t==="focusout"&&(fe=W._wrapperState)&&fe.controlled&&W.type==="number"&&Sa(W,"number",W.value)}switch(fe=R?Nr(R):window,t){case"focusin":(md(fe)||fe.contentEditable==="true")&&(br=fe,Qa=R,Mi=null);break;case"focusout":Mi=Qa=br=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Ed(G,o,K);break;case"selectionchange":if(h2)break;case"keydown":case"keyup":Ed(G,o,K)}var de;if(Ga)e:{switch(t){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Pr?hd(t,o)&&(ye="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ye="onCompositionStart");ye&&(cd&&o.locale!=="ko"&&(Pr||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Pr&&(de=sd()):(Tn=K,Ba="value"in Tn?Tn.value:Tn.textContent,Pr=!0)),fe=Fs(R,ye),0<fe.length&&(ye=new ld(ye,t,null,o,K),G.push({event:ye,listeners:fe}),de?ye.data=de:(de=pd(o),de!==null&&(ye.data=de)))),(de=t2?n2(t,o):r2(t,o))&&(R=Fs(R,"onBeforeInput"),0<R.length&&(K=new ld("onBeforeInput","beforeinput",null,o,K),G.push({event:K,listeners:R}),K.data=de))}Rd(G,r)})}function Ni(t,r,o){return{instance:t,listener:r,currentTarget:o}}function Fs(t,r){for(var o=r+"Capture",l=[];t!==null;){var f=t,h=f.stateNode;f.tag===5&&h!==null&&(f=h,h=hi(t,o),h!=null&&l.unshift(Ni(t,h,f)),h=hi(t,r),h!=null&&l.push(Ni(t,h,f))),t=t.return}return l}function jr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Od(t,r,o,l,f){for(var h=r._reactName,v=[];o!==null&&o!==l;){var S=o,E=S.alternate,R=S.stateNode;if(E!==null&&E===l)break;S.tag===5&&R!==null&&(S=R,f?(E=hi(o,h),E!=null&&v.unshift(Ni(o,E,S))):f||(E=hi(o,h),E!=null&&v.push(Ni(o,E,S)))),o=o.return}v.length!==0&&t.push({event:r,listeners:v})}var g2=/\r\n?/g,v2=/\u0000|\uFFFD/g;function Vd(t){return(typeof t=="string"?t:""+t).replace(g2,`
54
+ `).replace(v2,"")}function Bs(t,r,o){if(r=Vd(r),Vd(t)!==r&&o)throw Error(i(425))}function Hs(){}var sl=null,ol=null;function al(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ll=typeof setTimeout=="function"?setTimeout:void 0,w2=typeof clearTimeout=="function"?clearTimeout:void 0,Id=typeof Promise=="function"?Promise:void 0,x2=typeof queueMicrotask=="function"?queueMicrotask:typeof Id<"u"?function(t){return Id.resolve(null).then(t).catch(_2)}:ll;function _2(t){setTimeout(function(){throw t})}function ul(t,r){var o=r,l=0;do{var f=o.nextSibling;if(t.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(l===0){t.removeChild(f),ki(r);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=f}while(o);ki(r)}function bn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function $d(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}var Lr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Lr,Ai="__reactProps$"+Lr,cn="__reactContainer$"+Lr,cl="__reactEvents$"+Lr,k2="__reactListeners$"+Lr,S2="__reactHandles$"+Lr;function Yn(t){var r=t[Zt];if(r)return r;for(var o=t.parentNode;o;){if(r=o[cn]||o[Zt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=$d(t);t!==null;){if(o=t[Zt])return o;t=$d(t)}return r}t=o,o=t.parentNode}return null}function Ri(t){return t=t[Zt]||t[cn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Nr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Us(t){return t[Ai]||null}var fl=[],Ar=-1;function Mn(t){return{current:t}}function Re(t){0>Ar||(t.current=fl[Ar],fl[Ar]=null,Ar--)}function Ne(t,r){Ar++,fl[Ar]=t.current,t.current=r}var jn={},rt=Mn(jn),ht=Mn(!1),Xn=jn;function Rr(t,r){var o=t.type.contextTypes;if(!o)return jn;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var f={},h;for(h in o)f[h]=r[h];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=f),f}function pt(t){return t=t.childContextTypes,t!=null}function Ws(){Re(ht),Re(rt)}function zd(t,r,o){if(rt.current!==jn)throw Error(i(168));Ne(rt,r),Ne(ht,o)}function Fd(t,r,o){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var f in l)if(!(f in r))throw Error(i(108,Le(t)||"Unknown",f));return Y({},o,l)}function qs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||jn,Xn=rt.current,Ne(rt,t),Ne(ht,ht.current),!0}function Bd(t,r,o){var l=t.stateNode;if(!l)throw Error(i(169));o?(t=Fd(t,r,Xn),l.__reactInternalMemoizedMergedChildContext=t,Re(ht),Re(rt),Ne(rt,t)):Re(ht),Ne(ht,o)}var fn=null,Ks=!1,dl=!1;function Hd(t){fn===null?fn=[t]:fn.push(t)}function C2(t){Ks=!0,Hd(t)}function Ln(){if(!dl&&fn!==null){dl=!0;var t=0,r=Pe;try{var o=fn;for(Pe=1;t<o.length;t++){var l=o[t];do l=l(!0);while(l!==null)}fn=null,Ks=!1}catch(f){throw fn!==null&&(fn=fn.slice(t+1)),Wf(Ra,Ln),f}finally{Pe=r,dl=!1}}return null}var Dr=[],Or=0,Gs=null,Ys=0,Mt=[],jt=0,Zn=null,dn=1,hn="";function Qn(t,r){Dr[Or++]=Ys,Dr[Or++]=Gs,Gs=t,Ys=r}function Ud(t,r,o){Mt[jt++]=dn,Mt[jt++]=hn,Mt[jt++]=Zn,Zn=t;var l=dn;t=hn;var f=32-It(l)-1;l&=~(1<<f),o+=1;var h=32-It(r)+f;if(30<h){var v=f-f%5;h=(l&(1<<v)-1).toString(32),l>>=v,f-=v,dn=1<<32-It(r)+f|o<<f|l,hn=h+t}else dn=1<<h|o<<f|l,hn=t}function hl(t){t.return!==null&&(Qn(t,1),Ud(t,1,0))}function pl(t){for(;t===Gs;)Gs=Dr[--Or],Dr[Or]=null,Ys=Dr[--Or],Dr[Or]=null;for(;t===Zn;)Zn=Mt[--jt],Mt[jt]=null,hn=Mt[--jt],Mt[jt]=null,dn=Mt[--jt],Mt[jt]=null}var _t=null,kt=null,Oe=!1,zt=null;function Wd(t,r){var o=Rt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=t,r=t.deletions,r===null?(t.deletions=[o],t.flags|=16):r.push(o)}function qd(t,r){switch(t.tag){case 5:var o=t.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,_t=t,kt=bn(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,_t=t,kt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=Zn!==null?{id:dn,overflow:hn}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Rt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,_t=t,kt=null,!0):!1;default:return!1}}function ml(t){return(t.mode&1)!==0&&(t.flags&128)===0}function yl(t){if(Oe){var r=kt;if(r){var o=r;if(!qd(t,r)){if(ml(t))throw Error(i(418));r=bn(o.nextSibling);var l=_t;r&&qd(t,r)?Wd(l,o):(t.flags=t.flags&-4097|2,Oe=!1,_t=t)}}else{if(ml(t))throw Error(i(418));t.flags=t.flags&-4097|2,Oe=!1,_t=t}}}function Kd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_t=t}function Xs(t){if(t!==_t)return!1;if(!Oe)return Kd(t),Oe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!al(t.type,t.memoizedProps)),r&&(r=kt)){if(ml(t))throw Gd(),Error(i(418));for(;r;)Wd(t,r),r=bn(r.nextSibling)}if(Kd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(r===0){kt=bn(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}kt=null}}else kt=_t?bn(t.stateNode.nextSibling):null;return!0}function Gd(){for(var t=kt;t;)t=bn(t.nextSibling)}function Vr(){kt=_t=null,Oe=!1}function gl(t){zt===null?zt=[t]:zt.push(t)}var E2=z.ReactCurrentBatchConfig;function Di(t,r,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var l=o.stateNode}if(!l)throw Error(i(147,t));var f=l,h=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===h?r.ref:(r=function(v){var S=f.refs;v===null?delete S[h]:S[h]=v},r._stringRef=h,r)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Zs(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Yd(t){var r=t._init;return r(t._payload)}function Xd(t){function r(j,P){if(t){var N=j.deletions;N===null?(j.deletions=[P],j.flags|=16):N.push(P)}}function o(j,P){if(!t)return null;for(;P!==null;)r(j,P),P=P.sibling;return null}function l(j,P){for(j=new Map;P!==null;)P.key!==null?j.set(P.key,P):j.set(P.index,P),P=P.sibling;return j}function f(j,P){return j=$n(j,P),j.index=0,j.sibling=null,j}function h(j,P,N){return j.index=N,t?(N=j.alternate,N!==null?(N=N.index,N<P?(j.flags|=2,P):N):(j.flags|=2,P)):(j.flags|=1048576,P)}function v(j){return t&&j.alternate===null&&(j.flags|=2),j}function S(j,P,N,X){return P===null||P.tag!==6?(P=lu(N,j.mode,X),P.return=j,P):(P=f(P,N),P.return=j,P)}function E(j,P,N,X){var ue=N.type;return ue===U?K(j,P,N.props.children,X,N.key):P!==null&&(P.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ve&&Yd(ue)===P.type)?(X=f(P,N.props),X.ref=Di(j,P,N),X.return=j,X):(X=ko(N.type,N.key,N.props,null,j.mode,X),X.ref=Di(j,P,N),X.return=j,X)}function R(j,P,N,X){return P===null||P.tag!==4||P.stateNode.containerInfo!==N.containerInfo||P.stateNode.implementation!==N.implementation?(P=uu(N,j.mode,X),P.return=j,P):(P=f(P,N.children||[]),P.return=j,P)}function K(j,P,N,X,ue){return P===null||P.tag!==7?(P=or(N,j.mode,X,ue),P.return=j,P):(P=f(P,N),P.return=j,P)}function G(j,P,N){if(typeof P=="string"&&P!==""||typeof P=="number")return P=lu(""+P,j.mode,N),P.return=j,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case V:return N=ko(P.type,P.key,P.props,null,j.mode,N),N.ref=Di(j,null,P),N.return=j,N;case F:return P=uu(P,j.mode,N),P.return=j,P;case ve:var X=P._init;return G(j,X(P._payload),N)}if(ci(P)||Z(P))return P=or(P,j.mode,N,null),P.return=j,P;Zs(j,P)}return null}function W(j,P,N,X){var ue=P!==null?P.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return ue!==null?null:S(j,P,""+N,X);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case V:return N.key===ue?E(j,P,N,X):null;case F:return N.key===ue?R(j,P,N,X):null;case ve:return ue=N._init,W(j,P,ue(N._payload),X)}if(ci(N)||Z(N))return ue!==null?null:K(j,P,N,X,null);Zs(j,N)}return null}function ee(j,P,N,X,ue){if(typeof X=="string"&&X!==""||typeof X=="number")return j=j.get(N)||null,S(P,j,""+X,ue);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case V:return j=j.get(X.key===null?N:X.key)||null,E(P,j,X,ue);case F:return j=j.get(X.key===null?N:X.key)||null,R(P,j,X,ue);case ve:var fe=X._init;return ee(j,P,N,fe(X._payload),ue)}if(ci(X)||Z(X))return j=j.get(N)||null,K(P,j,X,ue,null);Zs(P,X)}return null}function ie(j,P,N,X){for(var ue=null,fe=null,de=P,ye=P=0,Qe=null;de!==null&&ye<N.length;ye++){de.index>ye?(Qe=de,de=null):Qe=de.sibling;var Ee=W(j,de,N[ye],X);if(Ee===null){de===null&&(de=Qe);break}t&&de&&Ee.alternate===null&&r(j,de),P=h(Ee,P,ye),fe===null?ue=Ee:fe.sibling=Ee,fe=Ee,de=Qe}if(ye===N.length)return o(j,de),Oe&&Qn(j,ye),ue;if(de===null){for(;ye<N.length;ye++)de=G(j,N[ye],X),de!==null&&(P=h(de,P,ye),fe===null?ue=de:fe.sibling=de,fe=de);return Oe&&Qn(j,ye),ue}for(de=l(j,de);ye<N.length;ye++)Qe=ee(de,j,ye,N[ye],X),Qe!==null&&(t&&Qe.alternate!==null&&de.delete(Qe.key===null?ye:Qe.key),P=h(Qe,P,ye),fe===null?ue=Qe:fe.sibling=Qe,fe=Qe);return t&&de.forEach(function(zn){return r(j,zn)}),Oe&&Qn(j,ye),ue}function le(j,P,N,X){var ue=Z(N);if(typeof ue!="function")throw Error(i(150));if(N=ue.call(N),N==null)throw Error(i(151));for(var fe=ue=null,de=P,ye=P=0,Qe=null,Ee=N.next();de!==null&&!Ee.done;ye++,Ee=N.next()){de.index>ye?(Qe=de,de=null):Qe=de.sibling;var zn=W(j,de,Ee.value,X);if(zn===null){de===null&&(de=Qe);break}t&&de&&zn.alternate===null&&r(j,de),P=h(zn,P,ye),fe===null?ue=zn:fe.sibling=zn,fe=zn,de=Qe}if(Ee.done)return o(j,de),Oe&&Qn(j,ye),ue;if(de===null){for(;!Ee.done;ye++,Ee=N.next())Ee=G(j,Ee.value,X),Ee!==null&&(P=h(Ee,P,ye),fe===null?ue=Ee:fe.sibling=Ee,fe=Ee);return Oe&&Qn(j,ye),ue}for(de=l(j,de);!Ee.done;ye++,Ee=N.next())Ee=ee(de,j,ye,Ee.value,X),Ee!==null&&(t&&Ee.alternate!==null&&de.delete(Ee.key===null?ye:Ee.key),P=h(Ee,P,ye),fe===null?ue=Ee:fe.sibling=Ee,fe=Ee);return t&&de.forEach(function(iv){return r(j,iv)}),Oe&&Qn(j,ye),ue}function He(j,P,N,X){if(typeof N=="object"&&N!==null&&N.type===U&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case V:e:{for(var ue=N.key,fe=P;fe!==null;){if(fe.key===ue){if(ue=N.type,ue===U){if(fe.tag===7){o(j,fe.sibling),P=f(fe,N.props.children),P.return=j,j=P;break e}}else if(fe.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ve&&Yd(ue)===fe.type){o(j,fe.sibling),P=f(fe,N.props),P.ref=Di(j,fe,N),P.return=j,j=P;break e}o(j,fe);break}else r(j,fe);fe=fe.sibling}N.type===U?(P=or(N.props.children,j.mode,X,N.key),P.return=j,j=P):(X=ko(N.type,N.key,N.props,null,j.mode,X),X.ref=Di(j,P,N),X.return=j,j=X)}return v(j);case F:e:{for(fe=N.key;P!==null;){if(P.key===fe)if(P.tag===4&&P.stateNode.containerInfo===N.containerInfo&&P.stateNode.implementation===N.implementation){o(j,P.sibling),P=f(P,N.children||[]),P.return=j,j=P;break e}else{o(j,P);break}else r(j,P);P=P.sibling}P=uu(N,j.mode,X),P.return=j,j=P}return v(j);case ve:return fe=N._init,He(j,P,fe(N._payload),X)}if(ci(N))return ie(j,P,N,X);if(Z(N))return le(j,P,N,X);Zs(j,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,P!==null&&P.tag===6?(o(j,P.sibling),P=f(P,N),P.return=j,j=P):(o(j,P),P=lu(N,j.mode,X),P.return=j,j=P),v(j)):o(j,P)}return He}var Ir=Xd(!0),Zd=Xd(!1),Qs=Mn(null),Js=null,$r=null,vl=null;function wl(){vl=$r=Js=null}function xl(t){var r=Qs.current;Re(Qs),t._currentValue=r}function _l(t,r,o){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===o)break;t=t.return}}function zr(t,r){Js=t,vl=$r=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(mt=!0),t.firstContext=null)}function Lt(t){var r=t._currentValue;if(vl!==t)if(t={context:t,memoizedValue:r,next:null},$r===null){if(Js===null)throw Error(i(308));$r=t,Js.dependencies={lanes:0,firstContext:t}}else $r=$r.next=t;return r}var Jn=null;function kl(t){Jn===null?Jn=[t]:Jn.push(t)}function Qd(t,r,o,l){var f=r.interleaved;return f===null?(o.next=o,kl(r)):(o.next=f.next,f.next=o),r.interleaved=o,pn(t,l)}function pn(t,r){t.lanes|=r;var o=t.alternate;for(o!==null&&(o.lanes|=r),o=t,t=t.return;t!==null;)t.childLanes|=r,o=t.alternate,o!==null&&(o.childLanes|=r),o=t,t=t.return;return o.tag===3?o.stateNode:null}var Nn=!1;function Sl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mn(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function An(t,r,o){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var f=l.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r,pn(t,o)}return f=l.interleaved,f===null?(r.next=r,kl(l)):(r.next=f.next,f.next=r),l.interleaved=r,pn(t,o)}function eo(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var l=r.lanes;l&=t.pendingLanes,o|=l,r.lanes=o,Va(t,o)}}function eh(t,r){var o=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var f=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var v={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?f=h=v:h=h.next=v,o=o.next}while(o!==null);h===null?f=h=r:h=h.next=r}else f=h=r;o={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,effects:l.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function to(t,r,o,l){var f=t.updateQueue;Nn=!1;var h=f.firstBaseUpdate,v=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var E=S,R=E.next;E.next=null,v===null?h=R:v.next=R,v=E;var K=t.alternate;K!==null&&(K=K.updateQueue,S=K.lastBaseUpdate,S!==v&&(S===null?K.firstBaseUpdate=R:S.next=R,K.lastBaseUpdate=E))}if(h!==null){var G=f.baseState;v=0,K=R=E=null,S=h;do{var W=S.lane,ee=S.eventTime;if((l&W)===W){K!==null&&(K=K.next={eventTime:ee,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var ie=t,le=S;switch(W=r,ee=o,le.tag){case 1:if(ie=le.payload,typeof ie=="function"){G=ie.call(ee,G,W);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=le.payload,W=typeof ie=="function"?ie.call(ee,G,W):ie,W==null)break e;G=Y({},G,W);break e;case 2:Nn=!0}}S.callback!==null&&S.lane!==0&&(t.flags|=64,W=f.effects,W===null?f.effects=[S]:W.push(S))}else ee={eventTime:ee,lane:W,tag:S.tag,payload:S.payload,callback:S.callback,next:null},K===null?(R=K=ee,E=G):K=K.next=ee,v|=W;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;W=S,S=W.next,W.next=null,f.lastBaseUpdate=W,f.shared.pending=null}}while(!0);if(K===null&&(E=G),f.baseState=E,f.firstBaseUpdate=R,f.lastBaseUpdate=K,r=f.shared.interleaved,r!==null){f=r;do v|=f.lane,f=f.next;while(f!==r)}else h===null&&(f.shared.lanes=0);nr|=v,t.lanes=v,t.memoizedState=G}}function th(t,r,o){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var l=t[r],f=l.callback;if(f!==null){if(l.callback=null,l=o,typeof f!="function")throw Error(i(191,f));f.call(l)}}}var Oi={},Qt=Mn(Oi),Vi=Mn(Oi),Ii=Mn(Oi);function er(t){if(t===Oi)throw Error(i(174));return t}function Cl(t,r){switch(Ne(Ii,r),Ne(Vi,t),Ne(Qt,Oi),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ea(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Ea(r,t)}Re(Qt),Ne(Qt,r)}function Fr(){Re(Qt),Re(Vi),Re(Ii)}function nh(t){er(Ii.current);var r=er(Qt.current),o=Ea(r,t.type);r!==o&&(Ne(Vi,t),Ne(Qt,o))}function El(t){Vi.current===t&&(Re(Qt),Re(Vi))}var Ve=Mn(0);function no(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Tl=[];function Pl(){for(var t=0;t<Tl.length;t++)Tl[t]._workInProgressVersionPrimary=null;Tl.length=0}var ro=z.ReactCurrentDispatcher,bl=z.ReactCurrentBatchConfig,tr=0,Ie=null,Ke=null,Xe=null,io=!1,$i=!1,zi=0,T2=0;function it(){throw Error(i(321))}function Ml(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!$t(t[o],r[o]))return!1;return!0}function jl(t,r,o,l,f,h){if(tr=h,Ie=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,ro.current=t===null||t.memoizedState===null?j2:L2,t=o(l,f),$i){h=0;do{if($i=!1,zi=0,25<=h)throw Error(i(301));h+=1,Xe=Ke=null,r.updateQueue=null,ro.current=N2,t=o(l,f)}while($i)}if(ro.current=ao,r=Ke!==null&&Ke.next!==null,tr=0,Xe=Ke=Ie=null,io=!1,r)throw Error(i(300));return t}function Ll(){var t=zi!==0;return zi=0,t}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Ie.memoizedState=Xe=t:Xe=Xe.next=t,Xe}function Nt(){if(Ke===null){var t=Ie.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var r=Xe===null?Ie.memoizedState:Xe.next;if(r!==null)Xe=r,Ke=t;else{if(t===null)throw Error(i(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Xe===null?Ie.memoizedState=Xe=t:Xe=Xe.next=t}return Xe}function Fi(t,r){return typeof r=="function"?r(t):r}function Nl(t){var r=Nt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var l=Ke,f=l.baseQueue,h=o.pending;if(h!==null){if(f!==null){var v=f.next;f.next=h.next,h.next=v}l.baseQueue=f=h,o.pending=null}if(f!==null){h=f.next,l=l.baseState;var S=v=null,E=null,R=h;do{var K=R.lane;if((tr&K)===K)E!==null&&(E=E.next={lane:0,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),l=R.hasEagerState?R.eagerState:t(l,R.action);else{var G={lane:K,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null};E===null?(S=E=G,v=l):E=E.next=G,Ie.lanes|=K,nr|=K}R=R.next}while(R!==null&&R!==h);E===null?v=l:E.next=S,$t(l,r.memoizedState)||(mt=!0),r.memoizedState=l,r.baseState=v,r.baseQueue=E,o.lastRenderedState=l}if(t=o.interleaved,t!==null){f=t;do h=f.lane,Ie.lanes|=h,nr|=h,f=f.next;while(f!==t)}else f===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Al(t){var r=Nt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var l=o.dispatch,f=o.pending,h=r.memoizedState;if(f!==null){o.pending=null;var v=f=f.next;do h=t(h,v.action),v=v.next;while(v!==f);$t(h,r.memoizedState)||(mt=!0),r.memoizedState=h,r.baseQueue===null&&(r.baseState=h),o.lastRenderedState=h}return[h,l]}function rh(){}function ih(t,r){var o=Ie,l=Nt(),f=r(),h=!$t(l.memoizedState,f);if(h&&(l.memoizedState=f,mt=!0),l=l.queue,Rl(ah.bind(null,o,l,t),[t]),l.getSnapshot!==r||h||Xe!==null&&Xe.memoizedState.tag&1){if(o.flags|=2048,Bi(9,oh.bind(null,o,l,f,r),void 0,null),Ze===null)throw Error(i(349));(tr&30)!==0||sh(o,r,f)}return f}function sh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Ie.updateQueue,r===null?(r={lastEffect:null,stores:null},Ie.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function oh(t,r,o,l){r.value=o,r.getSnapshot=l,lh(r)&&uh(t)}function ah(t,r,o){return o(function(){lh(r)&&uh(t)})}function lh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!$t(t,o)}catch{return!0}}function uh(t){var r=pn(t,1);r!==null&&Ut(r,t,1,-1)}function ch(t){var r=Jt();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:t},r.queue=t,t=t.dispatch=M2.bind(null,Ie,t),[r.memoizedState,t]}function Bi(t,r,o,l){return t={tag:t,create:r,destroy:o,deps:l,next:null},r=Ie.updateQueue,r===null?(r={lastEffect:null,stores:null},Ie.updateQueue=r,r.lastEffect=t.next=t):(o=r.lastEffect,o===null?r.lastEffect=t.next=t:(l=o.next,o.next=t,t.next=l,r.lastEffect=t)),t}function fh(){return Nt().memoizedState}function so(t,r,o,l){var f=Jt();Ie.flags|=t,f.memoizedState=Bi(1|r,o,void 0,l===void 0?null:l)}function oo(t,r,o,l){var f=Nt();l=l===void 0?null:l;var h=void 0;if(Ke!==null){var v=Ke.memoizedState;if(h=v.destroy,l!==null&&Ml(l,v.deps)){f.memoizedState=Bi(r,o,h,l);return}}Ie.flags|=t,f.memoizedState=Bi(1|r,o,h,l)}function dh(t,r){return so(8390656,8,t,r)}function Rl(t,r){return oo(2048,8,t,r)}function hh(t,r){return oo(4,2,t,r)}function ph(t,r){return oo(4,4,t,r)}function mh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function yh(t,r,o){return o=o!=null?o.concat([t]):null,oo(4,4,mh.bind(null,r,t),o)}function Dl(){}function gh(t,r){var o=Nt();r=r===void 0?null:r;var l=o.memoizedState;return l!==null&&r!==null&&Ml(r,l[1])?l[0]:(o.memoizedState=[t,r],t)}function vh(t,r){var o=Nt();r=r===void 0?null:r;var l=o.memoizedState;return l!==null&&r!==null&&Ml(r,l[1])?l[0]:(t=t(),o.memoizedState=[t,r],t)}function wh(t,r,o){return(tr&21)===0?(t.baseState&&(t.baseState=!1,mt=!0),t.memoizedState=o):($t(o,r)||(o=Yf(),Ie.lanes|=o,nr|=o,t.baseState=!0),r)}function P2(t,r){var o=Pe;Pe=o!==0&&4>o?o:4,t(!0);var l=bl.transition;bl.transition={};try{t(!1),r()}finally{Pe=o,bl.transition=l}}function xh(){return Nt().memoizedState}function b2(t,r,o){var l=Vn(t);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},_h(t))kh(r,o);else if(o=Qd(t,r,o,l),o!==null){var f=lt();Ut(o,t,l,f),Sh(o,r,l)}}function M2(t,r,o){var l=Vn(t),f={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(_h(t))kh(r,f);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var v=r.lastRenderedState,S=h(v,o);if(f.hasEagerState=!0,f.eagerState=S,$t(S,v)){var E=r.interleaved;E===null?(f.next=f,kl(r)):(f.next=E.next,E.next=f),r.interleaved=f;return}}catch{}finally{}o=Qd(t,r,f,l),o!==null&&(f=lt(),Ut(o,t,l,f),Sh(o,r,l))}}function _h(t){var r=t.alternate;return t===Ie||r!==null&&r===Ie}function kh(t,r){$i=io=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Sh(t,r,o){if((o&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,o|=l,r.lanes=o,Va(t,o)}}var ao={readContext:Lt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},j2={readContext:Lt,useCallback:function(t,r){return Jt().memoizedState=[t,r===void 0?null:r],t},useContext:Lt,useEffect:dh,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,so(4194308,4,mh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return so(4194308,4,t,r)},useInsertionEffect:function(t,r){return so(4,2,t,r)},useMemo:function(t,r){var o=Jt();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var l=Jt();return r=o!==void 0?o(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=b2.bind(null,Ie,t),[l.memoizedState,t]},useRef:function(t){var r=Jt();return t={current:t},r.memoizedState=t},useState:ch,useDebugValue:Dl,useDeferredValue:function(t){return Jt().memoizedState=t},useTransition:function(){var t=ch(!1),r=t[0];return t=P2.bind(null,t[1]),Jt().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var l=Ie,f=Jt();if(Oe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Ze===null)throw Error(i(349));(tr&30)!==0||sh(l,r,o)}f.memoizedState=o;var h={value:o,getSnapshot:r};return f.queue=h,dh(ah.bind(null,l,h,t),[t]),l.flags|=2048,Bi(9,oh.bind(null,l,h,o,r),void 0,null),o},useId:function(){var t=Jt(),r=Ze.identifierPrefix;if(Oe){var o=hn,l=dn;o=(l&~(1<<32-It(l)-1)).toString(32)+o,r=":"+r+"R"+o,o=zi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=T2++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},L2={readContext:Lt,useCallback:gh,useContext:Lt,useEffect:Rl,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:ph,useMemo:vh,useReducer:Nl,useRef:fh,useState:function(){return Nl(Fi)},useDebugValue:Dl,useDeferredValue:function(t){var r=Nt();return wh(r,Ke.memoizedState,t)},useTransition:function(){var t=Nl(Fi)[0],r=Nt().memoizedState;return[t,r]},useMutableSource:rh,useSyncExternalStore:ih,useId:xh,unstable_isNewReconciler:!1},N2={readContext:Lt,useCallback:gh,useContext:Lt,useEffect:Rl,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:ph,useMemo:vh,useReducer:Al,useRef:fh,useState:function(){return Al(Fi)},useDebugValue:Dl,useDeferredValue:function(t){var r=Nt();return Ke===null?r.memoizedState=t:wh(r,Ke.memoizedState,t)},useTransition:function(){var t=Al(Fi)[0],r=Nt().memoizedState;return[t,r]},useMutableSource:rh,useSyncExternalStore:ih,useId:xh,unstable_isNewReconciler:!1};function Ft(t,r){if(t&&t.defaultProps){r=Y({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Ol(t,r,o,l){r=t.memoizedState,o=o(l,r),o=o==null?r:Y({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var lo={isMounted:function(t){return(t=t._reactInternals)?Gn(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var l=lt(),f=Vn(t),h=mn(l,f);h.payload=r,o!=null&&(h.callback=o),r=An(t,h,f),r!==null&&(Ut(r,t,f,l),eo(r,t,f))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var l=lt(),f=Vn(t),h=mn(l,f);h.tag=1,h.payload=r,o!=null&&(h.callback=o),r=An(t,h,f),r!==null&&(Ut(r,t,f,l),eo(r,t,f))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=lt(),l=Vn(t),f=mn(o,l);f.tag=2,r!=null&&(f.callback=r),r=An(t,f,l),r!==null&&(Ut(r,t,l,o),eo(r,t,l))}};function Ch(t,r,o,l,f,h,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,h,v):r.prototype&&r.prototype.isPureReactComponent?!bi(o,l)||!bi(f,h):!0}function Eh(t,r,o){var l=!1,f=jn,h=r.contextType;return typeof h=="object"&&h!==null?h=Lt(h):(f=pt(r)?Xn:rt.current,l=r.contextTypes,h=(l=l!=null)?Rr(t,f):jn),r=new r(o,h),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=lo,t.stateNode=r,r._reactInternals=t,l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=h),r}function Th(t,r,o,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==t&&lo.enqueueReplaceState(r,r.state,null)}function Vl(t,r,o,l){var f=t.stateNode;f.props=o,f.state=t.memoizedState,f.refs={},Sl(t);var h=r.contextType;typeof h=="object"&&h!==null?f.context=Lt(h):(h=pt(r)?Xn:rt.current,f.context=Rr(t,h)),f.state=t.memoizedState,h=r.getDerivedStateFromProps,typeof h=="function"&&(Ol(t,r,h,o),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&lo.enqueueReplaceState(f,f.state,null),to(t,o,f,l),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Br(t,r){try{var o="",l=r;do o+=_e(l),l=l.return;while(l);var f=o}catch(h){f=`
55
55
  Error generating stack: `+h.message+`
56
- `+h.stack}return{value:t,source:r,stack:f,digest:null}}function Il(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function $l(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var N2=typeof WeakMap=="function"?WeakMap:Map;function Ph(t,r,o){o=mn(-1,o),o.tag=3,o.payload={element:null};var l=r.value;return o.callback=function(){yo||(yo=!0,eu=l),$l(t,r)},o}function bh(t,r,o){o=mn(-1,o),o.tag=3;var l=t.type.getDerivedStateFromError;if(typeof l=="function"){var f=r.value;o.payload=function(){return l(f)},o.callback=function(){$l(t,r)}}var h=t.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){$l(t,r),typeof l!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})}),o}function Mh(t,r,o){var l=t.pingCache;if(l===null){l=t.pingCache=new N2;var f=new Set;l.set(r,f)}else f=l.get(r),f===void 0&&(f=new Set,l.set(r,f));f.has(o)||(f.add(o),t=q2.bind(null,t,r,o),r.then(t,t))}function jh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Lh(t,r,o,l,f){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=mn(-1,1),r.tag=2,An(o,r,1))),o.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var A2=z.ReactCurrentOwner,mt=!1;function at(t,r,o,l){r.child=t===null?Zd(r,null,o,l):Ir(r,t.child,o,l)}function Nh(t,r,o,l,f){o=o.render;var h=r.ref;return zr(r,f),l=jl(t,r,o,l,h,f),o=Ll(),t!==null&&!mt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,yn(t,r,f)):(Oe&&o&&hl(r),r.flags|=1,at(t,r,l,f),r.child)}function Ah(t,r,o,l,f){if(t===null){var h=o.type;return typeof h=="function"&&!au(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=h,Rh(t,r,h,l,f)):(t=ko(o.type,null,l,r,r.mode,f),t.ref=r.ref,t.return=r,r.child=t)}if(h=t.child,(t.lanes&f)===0){var v=h.memoizedProps;if(o=o.compare,o=o!==null?o:bi,o(v,l)&&t.ref===r.ref)return yn(t,r,f)}return r.flags|=1,t=$n(h,l),t.ref=r.ref,t.return=r,r.child=t}function Rh(t,r,o,l,f){if(t!==null){var h=t.memoizedProps;if(bi(h,l)&&t.ref===r.ref)if(mt=!1,r.pendingProps=l=h,(t.lanes&f)!==0)(t.flags&131072)!==0&&(mt=!0);else return r.lanes=t.lanes,yn(t,r,f)}return zl(t,r,o,l,f)}function Dh(t,r,o){var l=r.pendingProps,f=l.children,h=t!==null?t.memoizedState:null;if(l.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(Ur,St),St|=o;else{if((o&1073741824)===0)return t=h!==null?h.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ne(Ur,St),St|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=h!==null?h.baseLanes:o,Ne(Ur,St),St|=l}else h!==null?(l=h.baseLanes|o,r.memoizedState=null):l=o,Ne(Ur,St),St|=l;return at(t,r,f,o),r.child}function Oh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function zl(t,r,o,l,f){var h=pt(o)?Xn:rt.current;return h=Rr(r,h),zr(r,f),o=jl(t,r,o,l,h,f),l=Ll(),t!==null&&!mt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,yn(t,r,f)):(Oe&&l&&hl(r),r.flags|=1,at(t,r,o,f),r.child)}function Vh(t,r,o,l,f){if(pt(o)){var h=!0;qs(r)}else h=!1;if(zr(r,f),r.stateNode===null)co(t,r),Eh(r,o,l),Vl(r,o,l,f),l=!0;else if(t===null){var v=r.stateNode,S=r.memoizedProps;v.props=S;var E=v.context,R=o.contextType;typeof R=="object"&&R!==null?R=Lt(R):(R=pt(o)?Xn:rt.current,R=Rr(r,R));var K=o.getDerivedStateFromProps,G=typeof K=="function"||typeof v.getSnapshotBeforeUpdate=="function";G||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==l||E!==R)&&Th(r,v,l,R),Nn=!1;var W=r.memoizedState;v.state=W,to(r,l,v,f),E=r.memoizedState,S!==l||W!==E||ht.current||Nn?(typeof K=="function"&&(Ol(r,o,K,l),E=r.memoizedState),(S=Nn||Ch(r,o,S,l,W,E,R))?(G||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=E),v.props=l,v.state=E,v.context=R,l=S):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{v=r.stateNode,Jd(t,r),S=r.memoizedProps,R=r.type===r.elementType?S:Ft(r.type,S),v.props=R,G=r.pendingProps,W=v.context,E=o.contextType,typeof E=="object"&&E!==null?E=Lt(E):(E=pt(o)?Xn:rt.current,E=Rr(r,E));var ee=o.getDerivedStateFromProps;(K=typeof ee=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==G||W!==E)&&Th(r,v,l,E),Nn=!1,W=r.memoizedState,v.state=W,to(r,l,v,f);var ie=r.memoizedState;S!==G||W!==ie||ht.current||Nn?(typeof ee=="function"&&(Ol(r,o,ee,l),ie=r.memoizedState),(R=Nn||Ch(r,o,R,l,W,ie,E)||!1)?(K||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(l,ie,E),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(l,ie,E)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=ie),v.props=l,v.state=ie,v.context=E,l=R):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),l=!1)}return Fl(t,r,o,l,h,f)}function Fl(t,r,o,l,f,h){Oh(t,r);var v=(r.flags&128)!==0;if(!l&&!v)return f&&Bd(r,o,!1),yn(t,r,h);l=r.stateNode,A2.current=r;var S=v&&typeof o.getDerivedStateFromError!="function"?null:l.render();return r.flags|=1,t!==null&&v?(r.child=Ir(r,t.child,null,h),r.child=Ir(r,null,S,h)):at(t,r,S,h),r.memoizedState=l.state,f&&Bd(r,o,!0),r.child}function Ih(t){var r=t.stateNode;r.pendingContext?zd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&zd(t,r.context,!1),Cl(t,r.containerInfo)}function $h(t,r,o,l,f){return Vr(),gl(f),r.flags|=256,at(t,r,o,l),r.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function Hl(t){return{baseLanes:t,cachePool:null,transitions:null}}function zh(t,r,o){var l=r.pendingProps,f=Ve.current,h=!1,v=(r.flags&128)!==0,S;if((S=v)||(S=t!==null&&t.memoizedState===null?!1:(f&2)!==0),S?(h=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),Ne(Ve,f&1),t===null)return yl(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(v=l.children,t=l.fallback,h?(l=r.mode,h=r.child,v={mode:"hidden",children:v},(l&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=v):h=So(v,l,0,null),t=or(t,l,o,null),h.return=r,t.return=r,h.sibling=t,r.child=h,r.child.memoizedState=Hl(o),r.memoizedState=Bl,t):Ul(r,v));if(f=t.memoizedState,f!==null&&(S=f.dehydrated,S!==null))return R2(t,r,v,l,S,f,o);if(h){h=l.fallback,v=r.mode,f=t.child,S=f.sibling;var E={mode:"hidden",children:l.children};return(v&1)===0&&r.child!==f?(l=r.child,l.childLanes=0,l.pendingProps=E,r.deletions=null):(l=$n(f,E),l.subtreeFlags=f.subtreeFlags&14680064),S!==null?h=$n(S,h):(h=or(h,v,o,null),h.flags|=2),h.return=r,l.return=r,l.sibling=h,r.child=l,l=h,h=r.child,v=t.child.memoizedState,v=v===null?Hl(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},h.memoizedState=v,h.childLanes=t.childLanes&~o,r.memoizedState=Bl,l}return h=t.child,t=h.sibling,l=$n(h,{mode:"visible",children:l.children}),(r.mode&1)===0&&(l.lanes=o),l.return=r,l.sibling=null,t!==null&&(o=r.deletions,o===null?(r.deletions=[t],r.flags|=16):o.push(t)),r.child=l,r.memoizedState=null,l}function Ul(t,r){return r=So({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function uo(t,r,o,l){return l!==null&&gl(l),Ir(r,t.child,null,o),t=Ul(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function R2(t,r,o,l,f,h,v){if(o)return r.flags&256?(r.flags&=-257,l=Il(Error(i(422))),uo(t,r,v,l)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(h=l.fallback,f=r.mode,l=So({mode:"visible",children:l.children},f,0,null),h=or(h,f,v,null),h.flags|=2,l.return=r,h.return=r,l.sibling=h,r.child=l,(r.mode&1)!==0&&Ir(r,t.child,null,v),r.child.memoizedState=Hl(v),r.memoizedState=Bl,h);if((r.mode&1)===0)return uo(t,r,v,null);if(f.data==="$!"){if(l=f.nextSibling&&f.nextSibling.dataset,l)var S=l.dgst;return l=S,h=Error(i(419)),l=Il(h,l,void 0),uo(t,r,v,l)}if(S=(v&t.childLanes)!==0,mt||S){if(l=Ze,l!==null){switch(v&-v){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(l.suspendedLanes|v))!==0?0:f,f!==0&&f!==h.retryLane&&(h.retryLane=f,pn(t,f),Ut(l,t,f,-1))}return ou(),l=Il(Error(i(421))),uo(t,r,v,l)}return f.data==="$?"?(r.flags|=128,r.child=t.child,r=K2.bind(null,t),f._reactRetry=r,null):(t=h.treeContext,kt=bn(f.nextSibling),_t=r,Oe=!0,zt=null,t!==null&&(Mt[jt++]=dn,Mt[jt++]=hn,Mt[jt++]=Zn,dn=t.id,hn=t.overflow,Zn=r),r=Ul(r,l.children),r.flags|=4096,r)}function Fh(t,r,o){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),_l(t.return,r,o)}function Wl(t,r,o,l,f){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:f}:(h.isBackwards=r,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=o,h.tailMode=f)}function Bh(t,r,o){var l=r.pendingProps,f=l.revealOrder,h=l.tail;if(at(t,r,l.children,o),l=Ve.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fh(t,o,r);else if(t.tag===19)Fh(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}if(Ne(Ve,l),(r.mode&1)===0)r.memoizedState=null;else switch(f){case"forwards":for(o=r.child,f=null;o!==null;)t=o.alternate,t!==null&&no(t)===null&&(f=o),o=o.sibling;o=f,o===null?(f=r.child,r.child=null):(f=o.sibling,o.sibling=null),Wl(r,!1,f,o,h);break;case"backwards":for(o=null,f=r.child,r.child=null;f!==null;){if(t=f.alternate,t!==null&&no(t)===null){r.child=f;break}t=f.sibling,f.sibling=o,o=f,f=t}Wl(r,!0,o,null,h);break;case"together":Wl(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function co(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function yn(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),nr|=r.lanes,(o&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=$n(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=$n(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function D2(t,r,o){switch(r.tag){case 3:Ih(r),Vr();break;case 5:nh(r);break;case 1:pt(r.type)&&qs(r);break;case 4:Cl(r,r.stateNode.containerInfo);break;case 10:var l=r.type._context,f=r.memoizedProps.value;Ne(Qs,l._currentValue),l._currentValue=f;break;case 13:if(l=r.memoizedState,l!==null)return l.dehydrated!==null?(Ne(Ve,Ve.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?zh(t,r,o):(Ne(Ve,Ve.current&1),t=yn(t,r,o),t!==null?t.sibling:null);Ne(Ve,Ve.current&1);break;case 19:if(l=(o&r.childLanes)!==0,(t.flags&128)!==0){if(l)return Bh(t,r,o);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ne(Ve,Ve.current),l)break;return null;case 22:case 23:return r.lanes=0,Dh(t,r,o)}return yn(t,r,o)}var Hh,ql,Uh,Wh;Hh=function(t,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},ql=function(){},Uh=function(t,r,o,l){var f=t.memoizedProps;if(f!==l){t=r.stateNode,er(Qt.current);var h=null;switch(o){case"input":f=_a(t,f),l=_a(t,l),h=[];break;case"select":f=Y({},f,{value:void 0}),l=Y({},l,{value:void 0}),h=[];break;case"textarea":f=Ca(t,f),l=Ca(t,l),h=[];break;default:typeof f.onClick!="function"&&typeof l.onClick=="function"&&(t.onclick=Hs)}Ta(o,l);var v;o=null;for(R in f)if(!l.hasOwnProperty(R)&&f.hasOwnProperty(R)&&f[R]!=null)if(R==="style"){var S=f[R];for(v in S)S.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else R!=="dangerouslySetInnerHTML"&&R!=="children"&&R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(a.hasOwnProperty(R)?h||(h=[]):(h=h||[]).push(R,null));for(R in l){var E=l[R];if(S=f!=null?f[R]:void 0,l.hasOwnProperty(R)&&E!==S&&(E!=null||S!=null))if(R==="style")if(S){for(v in S)!S.hasOwnProperty(v)||E&&E.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in E)E.hasOwnProperty(v)&&S[v]!==E[v]&&(o||(o={}),o[v]=E[v])}else o||(h||(h=[]),h.push(R,o)),o=E;else R==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,S=S?S.__html:void 0,E!=null&&S!==E&&(h=h||[]).push(R,E)):R==="children"?typeof E!="string"&&typeof E!="number"||(h=h||[]).push(R,""+E):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&(a.hasOwnProperty(R)?(E!=null&&R==="onScroll"&&Ae("scroll",t),h||S===E||(h=[])):(h=h||[]).push(R,E))}o&&(h=h||[]).push("style",o);var R=h;(r.updateQueue=R)&&(r.flags|=4)}},Wh=function(t,r,o,l){o!==l&&(r.flags|=4)};function Hi(t,r){if(!Oe)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function st(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,l=0;if(r)for(var f=t.child;f!==null;)o|=f.lanes|f.childLanes,l|=f.subtreeFlags&14680064,l|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)o|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=l,t.childLanes=o,r}function O2(t,r,o){var l=r.pendingProps;switch(pl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(r),null;case 1:return pt(r.type)&&Ws(),st(r),null;case 3:return l=r.stateNode,Fr(),Re(ht),Re(rt),Pl(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Xs(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zt!==null&&(ru(zt),zt=null))),ql(t,r),st(r),null;case 5:El(r);var f=er(Ii.current);if(o=r.type,t!==null&&r.stateNode!=null)Uh(t,r,o,l,f),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!l){if(r.stateNode===null)throw Error(i(166));return st(r),null}if(t=er(Qt.current),Xs(r)){l=r.stateNode,o=r.type;var h=r.memoizedProps;switch(l[Zt]=r,l[Ai]=h,t=(r.mode&1)!==0,o){case"dialog":Ae("cancel",l),Ae("close",l);break;case"iframe":case"object":case"embed":Ae("load",l);break;case"video":case"audio":for(f=0;f<ji.length;f++)Ae(ji[f],l);break;case"source":Ae("error",l);break;case"img":case"image":case"link":Ae("error",l),Ae("load",l);break;case"details":Ae("toggle",l);break;case"input":Ef(l,h),Ae("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!h.multiple},Ae("invalid",l);break;case"textarea":bf(l,h),Ae("invalid",l)}Ta(o,h),f=null;for(var v in h)if(h.hasOwnProperty(v)){var S=h[v];v==="children"?typeof S=="string"?l.textContent!==S&&(h.suppressHydrationWarning!==!0&&Bs(l.textContent,S,t),f=["children",S]):typeof S=="number"&&l.textContent!==""+S&&(h.suppressHydrationWarning!==!0&&Bs(l.textContent,S,t),f=["children",""+S]):a.hasOwnProperty(v)&&S!=null&&v==="onScroll"&&Ae("scroll",l)}switch(o){case"input":ws(l),Pf(l,h,!0);break;case"textarea":ws(l),jf(l);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(l.onclick=Hs)}l=f,r.updateQueue=l,l!==null&&(r.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Lf(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=v.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=v.createElement(o,{is:l.is}):(t=v.createElement(o),o==="select"&&(v=t,l.multiple?v.multiple=!0:l.size&&(v.size=l.size))):t=v.createElementNS(t,o),t[Zt]=r,t[Ai]=l,Hh(t,r,!1,!1),r.stateNode=t;e:{switch(v=Pa(o,l),o){case"dialog":Ae("cancel",t),Ae("close",t),f=l;break;case"iframe":case"object":case"embed":Ae("load",t),f=l;break;case"video":case"audio":for(f=0;f<ji.length;f++)Ae(ji[f],t);f=l;break;case"source":Ae("error",t),f=l;break;case"img":case"image":case"link":Ae("error",t),Ae("load",t),f=l;break;case"details":Ae("toggle",t),f=l;break;case"input":Ef(t,l),f=_a(t,l),Ae("invalid",t);break;case"option":f=l;break;case"select":t._wrapperState={wasMultiple:!!l.multiple},f=Y({},l,{value:void 0}),Ae("invalid",t);break;case"textarea":bf(t,l),f=Ca(t,l),Ae("invalid",t);break;default:f=l}Ta(o,f),S=f;for(h in S)if(S.hasOwnProperty(h)){var E=S[h];h==="style"?Rf(t,E):h==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&Nf(t,E)):h==="children"?typeof E=="string"?(o!=="textarea"||E!=="")&&fi(t,E):typeof E=="number"&&fi(t,""+E):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(a.hasOwnProperty(h)?E!=null&&h==="onScroll"&&Ae("scroll",t):E!=null&&O(t,h,E,v))}switch(o){case"input":ws(t),Pf(t,l,!1);break;case"textarea":ws(t),jf(t);break;case"option":l.value!=null&&t.setAttribute("value",""+Te(l.value));break;case"select":t.multiple=!!l.multiple,h=l.value,h!=null?kr(t,!!l.multiple,h,!1):l.defaultValue!=null&&kr(t,!!l.multiple,l.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=Hs)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return st(r),null;case 6:if(t&&r.stateNode!=null)Wh(t,r,t.memoizedProps,l);else{if(typeof l!="string"&&r.stateNode===null)throw Error(i(166));if(o=er(Ii.current),er(Qt.current),Xs(r)){if(l=r.stateNode,o=r.memoizedProps,l[Zt]=r,(h=l.nodeValue!==o)&&(t=_t,t!==null))switch(t.tag){case 3:Bs(l.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Bs(l.nodeValue,o,(t.mode&1)!==0)}h&&(r.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Zt]=r,r.stateNode=l}return st(r),null;case 13:if(Re(Ve),l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Oe&&kt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Gd(),Vr(),r.flags|=98560,h=!1;else if(h=Xs(r),l!==null&&l.dehydrated!==null){if(t===null){if(!h)throw Error(i(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[Zt]=r}else Vr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;st(r),h=!1}else zt!==null&&(ru(zt),zt=null),h=!0;if(!h)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(l=l!==null,l!==(t!==null&&t.memoizedState!==null)&&l&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Ve.current&1)!==0?Ge===0&&(Ge=3):ou())),r.updateQueue!==null&&(r.flags|=4),st(r),null);case 4:return Fr(),ql(t,r),t===null&&Li(r.stateNode.containerInfo),st(r),null;case 10:return xl(r.type._context),st(r),null;case 17:return pt(r.type)&&Ws(),st(r),null;case 19:if(Re(Ve),h=r.memoizedState,h===null)return st(r),null;if(l=(r.flags&128)!==0,v=h.rendering,v===null)if(l)Hi(h,!1);else{if(Ge!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(v=no(t),v!==null){for(r.flags|=128,Hi(h,!1),l=v.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),r.subtreeFlags=0,l=o,o=r.child;o!==null;)h=o,t=l,h.flags&=14680066,v=h.alternate,v===null?(h.childLanes=0,h.lanes=t,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=v.childLanes,h.lanes=v.lanes,h.child=v.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=v.memoizedProps,h.memoizedState=v.memoizedState,h.updateQueue=v.updateQueue,h.type=v.type,t=v.dependencies,h.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ne(Ve,Ve.current&1|2),r.child}t=t.sibling}h.tail!==null&&Be()>Wr&&(r.flags|=128,l=!0,Hi(h,!1),r.lanes=4194304)}else{if(!l)if(t=no(v),t!==null){if(r.flags|=128,l=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Hi(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Oe)return st(r),null}else 2*Be()-h.renderingStartTime>Wr&&o!==1073741824&&(r.flags|=128,l=!0,Hi(h,!1),r.lanes=4194304);h.isBackwards?(v.sibling=r.child,r.child=v):(o=h.last,o!==null?o.sibling=v:r.child=v,h.last=v)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Be(),r.sibling=null,o=Ve.current,Ne(Ve,l?o&1|2:o&1),r):(st(r),null);case 22:case 23:return su(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(St&1073741824)!==0&&(st(r),r.subtreeFlags&6&&(r.flags|=8192)):st(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function V2(t,r){switch(pl(r),r.tag){case 1:return pt(r.type)&&Ws(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Fr(),Re(ht),Re(rt),Pl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return El(r),null;case 13:if(Re(Ve),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Vr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Re(Ve),null;case 4:return Fr(),null;case 10:return xl(r.type._context),null;case 22:case 23:return su(),null;case 24:return null;default:return null}}var fo=!1,ot=!1,I2=typeof WeakSet=="function"?WeakSet:Set,re=null;function Hr(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){ze(t,r,l)}else o.current=null}function Kl(t,r,o){try{o()}catch(l){ze(t,r,l)}}var qh=!1;function $2(t,r){if(sl=Ls,t=Cd(),Za(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var f=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var v=0,S=-1,E=-1,R=0,K=0,G=t,W=null;t:for(;;){for(var ee;G!==o||f!==0&&G.nodeType!==3||(S=v+f),G!==h||l!==0&&G.nodeType!==3||(E=v+l),G.nodeType===3&&(v+=G.nodeValue.length),(ee=G.firstChild)!==null;)W=G,G=ee;for(;;){if(G===t)break t;if(W===o&&++R===f&&(S=v),W===h&&++K===l&&(E=v),(ee=G.nextSibling)!==null)break;G=W,W=G.parentNode}G=ee}o=S===-1||E===-1?null:{start:S,end:E}}else o=null}o=o||{start:0,end:0}}else o=null;for(ol={focusedElem:t,selectionRange:o},Ls=!1,re=r;re!==null;)if(r=re,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,re=t;else for(;re!==null;){r=re;try{var ie=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var le=ie.memoizedProps,He=ie.memoizedState,j=r.stateNode,P=j.getSnapshotBeforeUpdate(r.elementType===r.type?le:Ft(r.type,le),He);j.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var N=r.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(X){ze(r,r.return,X)}if(t=r.sibling,t!==null){t.return=r.return,re=t;break}re=r.return}return ie=qh,qh=!1,ie}function Ui(t,r,o){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var f=l=l.next;do{if((f.tag&t)===t){var h=f.destroy;f.destroy=void 0,h!==void 0&&Kl(r,o,h)}f=f.next}while(f!==l)}}function ho(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var l=o.create;o.destroy=l()}o=o.next}while(o!==r)}}function Gl(t){var r=t.ref;if(r!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof r=="function"?r(t):r.current=t}}function Kh(t){var r=t.alternate;r!==null&&(t.alternate=null,Kh(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[Zt],delete r[Ai],delete r[cl],delete r[_2],delete r[k2])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Gh(t){return t.tag===5||t.tag===3||t.tag===4}function Yh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Gh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Yl(t,r,o){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Hs));else if(l!==4&&(t=t.child,t!==null))for(Yl(t,r,o),t=t.sibling;t!==null;)Yl(t,r,o),t=t.sibling}function Xl(t,r,o){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(Xl(t,r,o),t=t.sibling;t!==null;)Xl(t,r,o),t=t.sibling}var Je=null,Bt=!1;function Rn(t,r,o){for(o=o.child;o!==null;)Xh(t,r,o),o=o.sibling}function Xh(t,r,o){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Es,o)}catch{}switch(o.tag){case 5:ot||Hr(o,r);case 6:var l=Je,f=Bt;Je=null,Rn(t,r,o),Je=l,Bt=f,Je!==null&&(Bt?(t=Je,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):Je.removeChild(o.stateNode));break;case 18:Je!==null&&(Bt?(t=Je,o=o.stateNode,t.nodeType===8?ul(t.parentNode,o):t.nodeType===1&&ul(t,o),ki(t)):ul(Je,o.stateNode));break;case 4:l=Je,f=Bt,Je=o.stateNode.containerInfo,Bt=!0,Rn(t,r,o),Je=l,Bt=f;break;case 0:case 11:case 14:case 15:if(!ot&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){f=l=l.next;do{var h=f,v=h.destroy;h=h.tag,v!==void 0&&((h&2)!==0||(h&4)!==0)&&Kl(o,r,v),f=f.next}while(f!==l)}Rn(t,r,o);break;case 1:if(!ot&&(Hr(o,r),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(S){ze(o,r,S)}Rn(t,r,o);break;case 21:Rn(t,r,o);break;case 22:o.mode&1?(ot=(l=ot)||o.memoizedState!==null,Rn(t,r,o),ot=l):Rn(t,r,o);break;default:Rn(t,r,o)}}function Zh(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new I2),r.forEach(function(l){var f=G2.bind(null,t,l);o.has(l)||(o.add(l),l.then(f,f))})}}function Ht(t,r){var o=r.deletions;if(o!==null)for(var l=0;l<o.length;l++){var f=o[l];try{var h=t,v=r,S=v;e:for(;S!==null;){switch(S.tag){case 5:Je=S.stateNode,Bt=!1;break e;case 3:Je=S.stateNode.containerInfo,Bt=!0;break e;case 4:Je=S.stateNode.containerInfo,Bt=!0;break e}S=S.return}if(Je===null)throw Error(i(160));Xh(h,v,f),Je=null,Bt=!1;var E=f.alternate;E!==null&&(E.return=null),f.return=null}catch(R){ze(f,r,R)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Qh(r,t),r=r.sibling}function Qh(t,r){var o=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ht(r,t),en(t),l&4){try{Ui(3,t,t.return),ho(3,t)}catch(le){ze(t,t.return,le)}try{Ui(5,t,t.return)}catch(le){ze(t,t.return,le)}}break;case 1:Ht(r,t),en(t),l&512&&o!==null&&Hr(o,o.return);break;case 5:if(Ht(r,t),en(t),l&512&&o!==null&&Hr(o,o.return),t.flags&32){var f=t.stateNode;try{fi(f,"")}catch(le){ze(t,t.return,le)}}if(l&4&&(f=t.stateNode,f!=null)){var h=t.memoizedProps,v=o!==null?o.memoizedProps:h,S=t.type,E=t.updateQueue;if(t.updateQueue=null,E!==null)try{S==="input"&&h.type==="radio"&&h.name!=null&&Tf(f,h),Pa(S,v);var R=Pa(S,h);for(v=0;v<E.length;v+=2){var K=E[v],G=E[v+1];K==="style"?Rf(f,G):K==="dangerouslySetInnerHTML"?Nf(f,G):K==="children"?fi(f,G):O(f,K,G,R)}switch(S){case"input":ka(f,h);break;case"textarea":Mf(f,h);break;case"select":var W=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!h.multiple;var ee=h.value;ee!=null?kr(f,!!h.multiple,ee,!1):W!==!!h.multiple&&(h.defaultValue!=null?kr(f,!!h.multiple,h.defaultValue,!0):kr(f,!!h.multiple,h.multiple?[]:"",!1))}f[Ai]=h}catch(le){ze(t,t.return,le)}}break;case 6:if(Ht(r,t),en(t),l&4){if(t.stateNode===null)throw Error(i(162));f=t.stateNode,h=t.memoizedProps;try{f.nodeValue=h}catch(le){ze(t,t.return,le)}}break;case 3:if(Ht(r,t),en(t),l&4&&o!==null&&o.memoizedState.isDehydrated)try{ki(r.containerInfo)}catch(le){ze(t,t.return,le)}break;case 4:Ht(r,t),en(t);break;case 13:Ht(r,t),en(t),f=t.child,f.flags&8192&&(h=f.memoizedState!==null,f.stateNode.isHidden=h,!h||f.alternate!==null&&f.alternate.memoizedState!==null||(Jl=Be())),l&4&&Zh(t);break;case 22:if(K=o!==null&&o.memoizedState!==null,t.mode&1?(ot=(R=ot)||K,Ht(r,t),ot=R):Ht(r,t),en(t),l&8192){if(R=t.memoizedState!==null,(t.stateNode.isHidden=R)&&!K&&(t.mode&1)!==0)for(re=t,K=t.child;K!==null;){for(G=re=K;re!==null;){switch(W=re,ee=W.child,W.tag){case 0:case 11:case 14:case 15:Ui(4,W,W.return);break;case 1:Hr(W,W.return);var ie=W.stateNode;if(typeof ie.componentWillUnmount=="function"){l=W,o=W.return;try{r=l,ie.props=r.memoizedProps,ie.state=r.memoizedState,ie.componentWillUnmount()}catch(le){ze(l,o,le)}}break;case 5:Hr(W,W.return);break;case 22:if(W.memoizedState!==null){tp(G);continue}}ee!==null?(ee.return=W,re=ee):tp(G)}K=K.sibling}e:for(K=null,G=t;;){if(G.tag===5){if(K===null){K=G;try{f=G.stateNode,R?(h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(S=G.stateNode,E=G.memoizedProps.style,v=E!=null&&E.hasOwnProperty("display")?E.display:null,S.style.display=Af("display",v))}catch(le){ze(t,t.return,le)}}}else if(G.tag===6){if(K===null)try{G.stateNode.nodeValue=R?"":G.memoizedProps}catch(le){ze(t,t.return,le)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;K===G&&(K=null),G=G.return}K===G&&(K=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Ht(r,t),en(t),l&4&&Zh(t);break;case 21:break;default:Ht(r,t),en(t)}}function en(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(Gh(o)){var l=o;break e}o=o.return}throw Error(i(160))}switch(l.tag){case 5:var f=l.stateNode;l.flags&32&&(fi(f,""),l.flags&=-33);var h=Yh(t);Xl(t,h,f);break;case 3:case 4:var v=l.stateNode.containerInfo,S=Yh(t);Yl(t,S,v);break;default:throw Error(i(161))}}catch(E){ze(t,t.return,E)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function z2(t,r,o){re=t,Jh(t)}function Jh(t,r,o){for(var l=(t.mode&1)!==0;re!==null;){var f=re,h=f.child;if(f.tag===22&&l){var v=f.memoizedState!==null||fo;if(!v){var S=f.alternate,E=S!==null&&S.memoizedState!==null||ot;S=fo;var R=ot;if(fo=v,(ot=E)&&!R)for(re=f;re!==null;)v=re,E=v.child,v.tag===22&&v.memoizedState!==null?np(f):E!==null?(E.return=v,re=E):np(f);for(;h!==null;)re=h,Jh(h),h=h.sibling;re=f,fo=S,ot=R}ep(t)}else(f.subtreeFlags&8772)!==0&&h!==null?(h.return=f,re=h):ep(t)}}function ep(t){for(;re!==null;){var r=re;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ot||ho(5,r);break;case 1:var l=r.stateNode;if(r.flags&4&&!ot)if(o===null)l.componentDidMount();else{var f=r.elementType===r.type?o.memoizedProps:Ft(r.type,o.memoizedProps);l.componentDidUpdate(f,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var h=r.updateQueue;h!==null&&th(r,h,l);break;case 3:var v=r.updateQueue;if(v!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}th(r,v,o)}break;case 5:var S=r.stateNode;if(o===null&&r.flags&4){o=S;var E=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&o.focus();break;case"img":E.src&&(o.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var R=r.alternate;if(R!==null){var K=R.memoizedState;if(K!==null){var G=K.dehydrated;G!==null&&ki(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ot||r.flags&512&&Gl(r)}catch(W){ze(r,r.return,W)}}if(r===t){re=null;break}if(o=r.sibling,o!==null){o.return=r.return,re=o;break}re=r.return}}function tp(t){for(;re!==null;){var r=re;if(r===t){re=null;break}var o=r.sibling;if(o!==null){o.return=r.return,re=o;break}re=r.return}}function np(t){for(;re!==null;){var r=re;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{ho(4,r)}catch(E){ze(r,o,E)}break;case 1:var l=r.stateNode;if(typeof l.componentDidMount=="function"){var f=r.return;try{l.componentDidMount()}catch(E){ze(r,f,E)}}var h=r.return;try{Gl(r)}catch(E){ze(r,h,E)}break;case 5:var v=r.return;try{Gl(r)}catch(E){ze(r,v,E)}}}catch(E){ze(r,r.return,E)}if(r===t){re=null;break}var S=r.sibling;if(S!==null){S.return=r.return,re=S;break}re=r.return}}var F2=Math.ceil,po=z.ReactCurrentDispatcher,Zl=z.ReactCurrentOwner,At=z.ReactCurrentBatchConfig,Se=0,Ze=null,Ue=null,et=0,St=0,Ur=Mn(0),Ge=0,Wi=null,nr=0,mo=0,Ql=0,qi=null,yt=null,Jl=0,Wr=1/0,gn=null,yo=!1,eu=null,Dn=null,go=!1,On=null,vo=0,Ki=0,tu=null,wo=-1,xo=0;function lt(){return(Se&6)!==0?Be():wo!==-1?wo:wo=Be()}function Vn(t){return(t.mode&1)===0?1:(Se&2)!==0&&et!==0?et&-et:C2.transition!==null?(xo===0&&(xo=Yf()),xo):(t=Pe,t!==0||(t=window.event,t=t===void 0?16:id(t.type)),t)}function Ut(t,r,o,l){if(50<Ki)throw Ki=0,tu=null,Error(i(185));gi(t,o,l),((Se&2)===0||t!==Ze)&&(t===Ze&&((Se&2)===0&&(mo|=o),Ge===4&&In(t,et)),gt(t,l),o===1&&Se===0&&(r.mode&1)===0&&(Wr=Be()+500,Ks&&Ln()))}function gt(t,r){var o=t.callbackNode;Cg(t,r);var l=bs(t,t===Ze?et:0);if(l===0)o!==null&&qf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=l&-l,t.callbackPriority!==r){if(o!=null&&qf(o),r===1)t.tag===0?S2(ip.bind(null,t)):Hd(ip.bind(null,t)),w2(function(){(Se&6)===0&&Ln()}),o=null;else{switch(Xf(l)){case 1:o=Ra;break;case 4:o=Kf;break;case 16:o=Cs;break;case 536870912:o=Gf;break;default:o=Cs}o=dp(o,rp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function rp(t,r){if(wo=-1,xo=0,(Se&6)!==0)throw Error(i(327));var o=t.callbackNode;if(qr()&&t.callbackNode!==o)return null;var l=bs(t,t===Ze?et:0);if(l===0)return null;if((l&30)!==0||(l&t.expiredLanes)!==0||r)r=_o(t,l);else{r=l;var f=Se;Se|=2;var h=op();(Ze!==t||et!==r)&&(gn=null,Wr=Be()+500,ir(t,r));do try{U2();break}catch(S){sp(t,S)}while(!0);wl(),po.current=h,Se=f,Ue!==null?r=0:(Ze=null,et=0,r=Ge)}if(r!==0){if(r===2&&(f=Da(t),f!==0&&(l=f,r=nu(t,f))),r===1)throw o=Wi,ir(t,0),In(t,l),gt(t,Be()),o;if(r===6)In(t,l);else{if(f=t.current.alternate,(l&30)===0&&!B2(f)&&(r=_o(t,l),r===2&&(h=Da(t),h!==0&&(l=h,r=nu(t,h))),r===1))throw o=Wi,ir(t,0),In(t,l),gt(t,Be()),o;switch(t.finishedWork=f,t.finishedLanes=l,r){case 0:case 1:throw Error(i(345));case 2:sr(t,yt,gn);break;case 3:if(In(t,l),(l&130023424)===l&&(r=Jl+500-Be(),10<r)){if(bs(t,0)!==0)break;if(f=t.suspendedLanes,(f&l)!==l){lt(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=ll(sr.bind(null,t,yt,gn),r);break}sr(t,yt,gn);break;case 4:if(In(t,l),(l&4194240)===l)break;for(r=t.eventTimes,f=-1;0<l;){var v=31-It(l);h=1<<v,v=r[v],v>f&&(f=v),l&=~h}if(l=f,l=Be()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*F2(l/1960))-l,10<l){t.timeoutHandle=ll(sr.bind(null,t,yt,gn),l);break}sr(t,yt,gn);break;case 5:sr(t,yt,gn);break;default:throw Error(i(329))}}}return gt(t,Be()),t.callbackNode===o?rp.bind(null,t):null}function nu(t,r){var o=qi;return t.current.memoizedState.isDehydrated&&(ir(t,r).flags|=256),t=_o(t,r),t!==2&&(r=yt,yt=o,r!==null&&ru(r)),t}function ru(t){yt===null?yt=t:yt.push.apply(yt,t)}function B2(t){for(var r=t;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var f=o[l],h=f.getSnapshot;f=f.value;try{if(!$t(h(),f))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function In(t,r){for(r&=~Ql,r&=~mo,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-It(r),l=1<<o;t[o]=-1,r&=~l}}function ip(t){if((Se&6)!==0)throw Error(i(327));qr();var r=bs(t,0);if((r&1)===0)return gt(t,Be()),null;var o=_o(t,r);if(t.tag!==0&&o===2){var l=Da(t);l!==0&&(r=l,o=nu(t,l))}if(o===1)throw o=Wi,ir(t,0),In(t,r),gt(t,Be()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,sr(t,yt,gn),gt(t,Be()),null}function iu(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Wr=Be()+500,Ks&&Ln())}}function rr(t){On!==null&&On.tag===0&&(Se&6)===0&&qr();var r=Se;Se|=1;var o=At.transition,l=Pe;try{if(At.transition=null,Pe=1,t)return t()}finally{Pe=l,At.transition=o,Se=r,(Se&6)===0&&Ln()}}function su(){St=Ur.current,Re(Ur)}function ir(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,v2(o)),Ue!==null)for(o=Ue.return;o!==null;){var l=o;switch(pl(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Ws();break;case 3:Fr(),Re(ht),Re(rt),Pl();break;case 5:El(l);break;case 4:Fr();break;case 13:Re(Ve);break;case 19:Re(Ve);break;case 10:xl(l.type._context);break;case 22:case 23:su()}o=o.return}if(Ze=t,Ue=t=$n(t.current,null),et=St=r,Ge=0,Wi=null,Ql=mo=nr=0,yt=qi=null,Jn!==null){for(r=0;r<Jn.length;r++)if(o=Jn[r],l=o.interleaved,l!==null){o.interleaved=null;var f=l.next,h=o.pending;if(h!==null){var v=h.next;h.next=f,l.next=v}o.pending=l}Jn=null}return t}function sp(t,r){do{var o=Ue;try{if(wl(),ro.current=ao,io){for(var l=Ie.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}io=!1}if(tr=0,Xe=Ke=Ie=null,$i=!1,zi=0,Zl.current=null,o===null||o.return===null){Ge=1,Wi=r,Ue=null;break}e:{var h=t,v=o.return,S=o,E=r;if(r=et,S.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var R=E,K=S,G=K.tag;if((K.mode&1)===0&&(G===0||G===11||G===15)){var W=K.alternate;W?(K.updateQueue=W.updateQueue,K.memoizedState=W.memoizedState,K.lanes=W.lanes):(K.updateQueue=null,K.memoizedState=null)}var ee=jh(v);if(ee!==null){ee.flags&=-257,Lh(ee,v,S,h,r),ee.mode&1&&Mh(h,R,r),r=ee,E=R;var ie=r.updateQueue;if(ie===null){var le=new Set;le.add(E),r.updateQueue=le}else ie.add(E);break e}else{if((r&1)===0){Mh(h,R,r),ou();break e}E=Error(i(426))}}else if(Oe&&S.mode&1){var He=jh(v);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),Lh(He,v,S,h,r),gl(Br(E,S));break e}}h=E=Br(E,S),Ge!==4&&(Ge=2),qi===null?qi=[h]:qi.push(h),h=v;do{switch(h.tag){case 3:h.flags|=65536,r&=-r,h.lanes|=r;var j=Ph(h,E,r);eh(h,j);break e;case 1:S=E;var P=h.type,N=h.stateNode;if((h.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Dn===null||!Dn.has(N)))){h.flags|=65536,r&=-r,h.lanes|=r;var X=bh(h,S,r);eh(h,X);break e}}h=h.return}while(h!==null)}lp(o)}catch(ue){r=ue,Ue===o&&o!==null&&(Ue=o=o.return);continue}break}while(!0)}function op(){var t=po.current;return po.current=ao,t===null?ao:t}function ou(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ze===null||(nr&268435455)===0&&(mo&268435455)===0||In(Ze,et)}function _o(t,r){var o=Se;Se|=2;var l=op();(Ze!==t||et!==r)&&(gn=null,ir(t,r));do try{H2();break}catch(f){sp(t,f)}while(!0);if(wl(),Se=o,po.current=l,Ue!==null)throw Error(i(261));return Ze=null,et=0,Ge}function H2(){for(;Ue!==null;)ap(Ue)}function U2(){for(;Ue!==null&&!mg();)ap(Ue)}function ap(t){var r=fp(t.alternate,t,St);t.memoizedProps=t.pendingProps,r===null?lp(t):Ue=r,Zl.current=null}function lp(t){var r=t;do{var o=r.alternate;if(t=r.return,(r.flags&32768)===0){if(o=O2(o,r,St),o!==null){Ue=o;return}}else{if(o=V2(o,r),o!==null){o.flags&=32767,Ue=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ge=6,Ue=null;return}}if(r=r.sibling,r!==null){Ue=r;return}Ue=r=t}while(r!==null);Ge===0&&(Ge=5)}function sr(t,r,o){var l=Pe,f=At.transition;try{At.transition=null,Pe=1,W2(t,r,o,l)}finally{At.transition=f,Pe=l}return null}function W2(t,r,o,l){do qr();while(On!==null);if((Se&6)!==0)throw Error(i(327));o=t.finishedWork;var f=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var h=o.lanes|o.childLanes;if(Eg(t,h),t===Ze&&(Ue=Ze=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||go||(go=!0,dp(Cs,function(){return qr(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=At.transition,At.transition=null;var v=Pe;Pe=1;var S=Se;Se|=4,Zl.current=null,$2(t,o),Qh(o,t),f2(ol),Ls=!!sl,ol=sl=null,t.current=o,z2(o),yg(),Se=S,Pe=v,At.transition=h}else t.current=o;if(go&&(go=!1,On=t,vo=f),h=t.pendingLanes,h===0&&(Dn=null),wg(o.stateNode),gt(t,Be()),r!==null)for(l=t.onRecoverableError,o=0;o<r.length;o++)f=r[o],l(f.value,{componentStack:f.stack,digest:f.digest});if(yo)throw yo=!1,t=eu,eu=null,t;return(vo&1)!==0&&t.tag!==0&&qr(),h=t.pendingLanes,(h&1)!==0?t===tu?Ki++:(Ki=0,tu=t):Ki=0,Ln(),null}function qr(){if(On!==null){var t=Xf(vo),r=At.transition,o=Pe;try{if(At.transition=null,Pe=16>t?16:t,On===null)var l=!1;else{if(t=On,On=null,vo=0,(Se&6)!==0)throw Error(i(331));var f=Se;for(Se|=4,re=t.current;re!==null;){var h=re,v=h.child;if((re.flags&16)!==0){var S=h.deletions;if(S!==null){for(var E=0;E<S.length;E++){var R=S[E];for(re=R;re!==null;){var K=re;switch(K.tag){case 0:case 11:case 15:Ui(8,K,h)}var G=K.child;if(G!==null)G.return=K,re=G;else for(;re!==null;){K=re;var W=K.sibling,ee=K.return;if(Kh(K),K===R){re=null;break}if(W!==null){W.return=ee,re=W;break}re=ee}}}var ie=h.alternate;if(ie!==null){var le=ie.child;if(le!==null){ie.child=null;do{var He=le.sibling;le.sibling=null,le=He}while(le!==null)}}re=h}}if((h.subtreeFlags&2064)!==0&&v!==null)v.return=h,re=v;else e:for(;re!==null;){if(h=re,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Ui(9,h,h.return)}var j=h.sibling;if(j!==null){j.return=h.return,re=j;break e}re=h.return}}var P=t.current;for(re=P;re!==null;){v=re;var N=v.child;if((v.subtreeFlags&2064)!==0&&N!==null)N.return=v,re=N;else e:for(v=P;re!==null;){if(S=re,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:ho(9,S)}}catch(ue){ze(S,S.return,ue)}if(S===v){re=null;break e}var X=S.sibling;if(X!==null){X.return=S.return,re=X;break e}re=S.return}}if(Se=f,Ln(),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Es,t)}catch{}l=!0}return l}finally{Pe=o,At.transition=r}}return!1}function up(t,r,o){r=Br(o,r),r=Ph(t,r,1),t=An(t,r,1),r=lt(),t!==null&&(gi(t,1,r),gt(t,r))}function ze(t,r,o){if(t.tag===3)up(t,t,o);else for(;r!==null;){if(r.tag===3){up(r,t,o);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Dn===null||!Dn.has(l))){t=Br(o,t),t=bh(r,t,1),r=An(r,t,1),t=lt(),r!==null&&(gi(r,1,t),gt(r,t));break}}r=r.return}}function q2(t,r,o){var l=t.pingCache;l!==null&&l.delete(r),r=lt(),t.pingedLanes|=t.suspendedLanes&o,Ze===t&&(et&o)===o&&(Ge===4||Ge===3&&(et&130023424)===et&&500>Be()-Jl?ir(t,0):Ql|=o),gt(t,r)}function cp(t,r){r===0&&((t.mode&1)===0?r=1:(r=Ps,Ps<<=1,(Ps&130023424)===0&&(Ps=4194304)));var o=lt();t=pn(t,r),t!==null&&(gi(t,r,o),gt(t,o))}function K2(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),cp(t,o)}function G2(t,r){var o=0;switch(t.tag){case 13:var l=t.stateNode,f=t.memoizedState;f!==null&&(o=f.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),cp(t,o)}var fp;fp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||ht.current)mt=!0;else{if((t.lanes&o)===0&&(r.flags&128)===0)return mt=!1,D2(t,r,o);mt=(t.flags&131072)!==0}else mt=!1,Oe&&(r.flags&1048576)!==0&&Ud(r,Ys,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;co(t,r),t=r.pendingProps;var f=Rr(r,rt.current);zr(r,o),f=jl(null,r,l,t,f,o);var h=Ll();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,pt(l)?(h=!0,qs(r)):h=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Sl(r),f.updater=lo,r.stateNode=f,f._reactInternals=r,Vl(r,l,t,o),r=Fl(null,r,l,!0,h,o)):(r.tag=0,Oe&&h&&hl(r),at(null,r,f,o),r=r.child),r;case 16:l=r.elementType;e:{switch(co(t,r),t=r.pendingProps,f=l._init,l=f(l._payload),r.type=l,f=r.tag=X2(l),t=Ft(l,t),f){case 0:r=zl(null,r,l,t,o);break e;case 1:r=Vh(null,r,l,t,o);break e;case 11:r=Nh(null,r,l,t,o);break e;case 14:r=Ah(null,r,l,Ft(l.type,t),o);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),zl(t,r,l,f,o);case 1:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),Vh(t,r,l,f,o);case 3:e:{if(Ih(r),t===null)throw Error(i(387));l=r.pendingProps,h=r.memoizedState,f=h.element,Jd(t,r),to(r,l,null,o);var v=r.memoizedState;if(l=v.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){f=Br(Error(i(423)),r),r=$h(t,r,l,o,f);break e}else if(l!==f){f=Br(Error(i(424)),r),r=$h(t,r,l,o,f);break e}else for(kt=bn(r.stateNode.containerInfo.firstChild),_t=r,Oe=!0,zt=null,o=Zd(r,null,l,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Vr(),l===f){r=yn(t,r,o);break e}at(t,r,l,o)}r=r.child}return r;case 5:return nh(r),t===null&&yl(r),l=r.type,f=r.pendingProps,h=t!==null?t.memoizedProps:null,v=f.children,al(l,f)?v=null:h!==null&&al(l,h)&&(r.flags|=32),Oh(t,r),at(t,r,v,o),r.child;case 6:return t===null&&yl(r),null;case 13:return zh(t,r,o);case 4:return Cl(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Ir(r,null,l,o):at(t,r,l,o),r.child;case 11:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),Nh(t,r,l,f,o);case 7:return at(t,r,r.pendingProps,o),r.child;case 8:return at(t,r,r.pendingProps.children,o),r.child;case 12:return at(t,r,r.pendingProps.children,o),r.child;case 10:e:{if(l=r.type._context,f=r.pendingProps,h=r.memoizedProps,v=f.value,Ne(Qs,l._currentValue),l._currentValue=v,h!==null)if($t(h.value,v)){if(h.children===f.children&&!ht.current){r=yn(t,r,o);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var S=h.dependencies;if(S!==null){v=h.child;for(var E=S.firstContext;E!==null;){if(E.context===l){if(h.tag===1){E=mn(-1,o&-o),E.tag=2;var R=h.updateQueue;if(R!==null){R=R.shared;var K=R.pending;K===null?E.next=E:(E.next=K.next,K.next=E),R.pending=E}}h.lanes|=o,E=h.alternate,E!==null&&(E.lanes|=o),_l(h.return,o,r),S.lanes|=o;break}E=E.next}}else if(h.tag===10)v=h.type===r.type?null:h.child;else if(h.tag===18){if(v=h.return,v===null)throw Error(i(341));v.lanes|=o,S=v.alternate,S!==null&&(S.lanes|=o),_l(v,o,r),v=h.sibling}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===r){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}at(t,r,f.children,o),r=r.child}return r;case 9:return f=r.type,l=r.pendingProps.children,zr(r,o),f=Lt(f),l=l(f),r.flags|=1,at(t,r,l,o),r.child;case 14:return l=r.type,f=Ft(l,r.pendingProps),f=Ft(l.type,f),Ah(t,r,l,f,o);case 15:return Rh(t,r,r.type,r.pendingProps,o);case 17:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),co(t,r),r.tag=1,pt(l)?(t=!0,qs(r)):t=!1,zr(r,o),Eh(r,l,f),Vl(r,l,f,o),Fl(null,r,l,!0,t,o);case 19:return Bh(t,r,o);case 22:return Dh(t,r,o)}throw Error(i(156,r.tag))};function dp(t,r){return Wf(t,r)}function Y2(t,r,o,l){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(t,r,o,l){return new Y2(t,r,o,l)}function au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function X2(t){if(typeof t=="function")return au(t)?1:0;if(t!=null){if(t=t.$$typeof,t===me)return 11;if(t===ce)return 14}return 2}function $n(t,r){var o=t.alternate;return o===null?(o=Rt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function ko(t,r,o,l,f,h){var v=2;if(l=t,typeof t=="function")au(t)&&(v=1);else if(typeof t=="string")v=5;else e:switch(t){case U:return or(o.children,f,h,r);case q:v=8,f|=8;break;case $:return t=Rt(12,o,r,f|2),t.elementType=$,t.lanes=h,t;case J:return t=Rt(13,o,r,f),t.elementType=J,t.lanes=h,t;case ae:return t=Rt(19,o,r,f),t.elementType=ae,t.lanes=h,t;case ge:return So(o,f,h,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case B:v=10;break e;case oe:v=9;break e;case me:v=11;break e;case ce:v=14;break e;case ve:v=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Rt(v,o,r,f),r.elementType=t,r.type=l,r.lanes=h,r}function or(t,r,o,l){return t=Rt(7,t,l,r),t.lanes=o,t}function So(t,r,o,l){return t=Rt(22,t,l,r),t.elementType=ge,t.lanes=o,t.stateNode={isHidden:!1},t}function lu(t,r,o){return t=Rt(6,t,null,r),t.lanes=o,t}function uu(t,r,o){return r=Rt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function Z2(t,r,o,l,f){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Oa(0),this.expirationTimes=Oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oa(0),this.identifierPrefix=l,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function cu(t,r,o,l,f,h,v,S,E){return t=new Z2(t,r,o,S,E),r===1?(r=1,h===!0&&(r|=8)):r=0,h=Rt(3,null,null,r),t.current=h,h.stateNode=t,h.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(h),t}function Q2(t,r,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:l==null?null:""+l,children:t,containerInfo:r,implementation:o}}function hp(t){if(!t)return jn;t=t._reactInternals;e:{if(Gn(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(pt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(pt(o))return Fd(t,o,r)}return r}function pp(t,r,o,l,f,h,v,S,E){return t=cu(o,l,!0,t,f,h,v,S,E),t.context=hp(null),o=t.current,l=lt(),f=Vn(o),h=mn(l,f),h.callback=r??null,An(o,h,f),t.current.lanes=f,gi(t,f,l),gt(t,l),t}function Co(t,r,o,l){var f=r.current,h=lt(),v=Vn(f);return o=hp(o),r.context===null?r.context=o:r.pendingContext=o,r=mn(h,v),r.payload={element:t},l=l===void 0?null:l,l!==null&&(r.callback=l),t=An(f,r,v),t!==null&&(Ut(t,f,v,h),eo(t,f,v)),v}function Eo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function mp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function fu(t,r){mp(t,r),(t=t.alternate)&&mp(t,r)}function J2(){return null}var yp=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}To.prototype.render=du.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));Co(t,r,null,null)},To.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;rr(function(){Co(null,t,null,null)}),r[cn]=null}};function To(t){this._internalRoot=t}To.prototype.unstable_scheduleHydration=function(t){if(t){var r=Jf();t={blockedOn:null,target:t,priority:r};for(var o=0;o<En.length&&r!==0&&r<En[o].priority;o++);En.splice(o,0,t),o===0&&nd(t)}};function hu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Po(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function gp(){}function ev(t,r,o,l,f){if(f){if(typeof l=="function"){var h=l;l=function(){var R=Eo(v);h.call(R)}}var v=pp(r,l,t,0,null,!1,!1,"",gp);return t._reactRootContainer=v,t[cn]=v.current,Li(t.nodeType===8?t.parentNode:t),rr(),v}for(;f=t.lastChild;)t.removeChild(f);if(typeof l=="function"){var S=l;l=function(){var R=Eo(E);S.call(R)}}var E=cu(t,0,!1,null,null,!1,!1,"",gp);return t._reactRootContainer=E,t[cn]=E.current,Li(t.nodeType===8?t.parentNode:t),rr(function(){Co(r,E,o,l)}),E}function bo(t,r,o,l,f){var h=o._reactRootContainer;if(h){var v=h;if(typeof f=="function"){var S=f;f=function(){var E=Eo(v);S.call(E)}}Co(r,v,t,f)}else v=ev(o,r,t,f,l);return Eo(v)}Zf=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=yi(r.pendingLanes);o!==0&&(Va(r,o|1),gt(r,Be()),(Se&6)===0&&(Wr=Be()+500,Ln()))}break;case 13:rr(function(){var l=pn(t,1);if(l!==null){var f=lt();Ut(l,t,1,f)}}),fu(t,1)}},Ia=function(t){if(t.tag===13){var r=pn(t,134217728);if(r!==null){var o=lt();Ut(r,t,134217728,o)}fu(t,134217728)}},Qf=function(t){if(t.tag===13){var r=Vn(t),o=pn(t,r);if(o!==null){var l=lt();Ut(o,t,r,l)}fu(t,r)}},Jf=function(){return Pe},ed=function(t,r){var o=Pe;try{return Pe=t,r()}finally{Pe=o}},ja=function(t,r,o){switch(r){case"input":if(ka(t,o),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var l=o[r];if(l!==t&&l.form===t.form){var f=Us(l);if(!f)throw Error(i(90));Cf(l),ka(l,f)}}}break;case"textarea":Mf(t,o);break;case"select":r=o.value,r!=null&&kr(t,!!o.multiple,r,!1)}},If=iu,$f=rr;var tv={usingClientEntryPoint:!1,Events:[Ri,Nr,Us,Of,Vf,iu]},Gi={findFiberByHostInstance:Yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nv={bundleType:Gi.bundleType,version:Gi.version,rendererPackageName:Gi.rendererPackageName,rendererConfig:Gi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Hf(t),t===null?null:t.stateNode},findFiberByHostInstance:Gi.findFiberByHostInstance||J2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mo.isDisabled&&Mo.supportsFiber)try{Es=Mo.inject(nv),Xt=Mo}catch{}}return vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tv,vt.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hu(r))throw Error(i(200));return Q2(t,r,null,o)},vt.createRoot=function(t,r){if(!hu(t))throw Error(i(299));var o=!1,l="",f=yp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),r=cu(t,1,!1,null,null,o,!1,l,f),t[cn]=r.current,Li(t.nodeType===8?t.parentNode:t),new du(r)},vt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Hf(r),t=t===null?null:t.stateNode,t},vt.flushSync=function(t){return rr(t)},vt.hydrate=function(t,r,o){if(!Po(r))throw Error(i(200));return bo(null,t,r,!0,o)},vt.hydrateRoot=function(t,r,o){if(!hu(t))throw Error(i(405));var l=o!=null&&o.hydratedSources||null,f=!1,h="",v=yp;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),r=pp(r,null,t,1,o??null,f,!1,h,v),t[cn]=r.current,Li(t),l)for(t=0;t<l.length;t++)o=l[t],f=o._getVersion,f=f(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,f]:r.mutableSourceEagerHydrationData.push(o,f);return new To(r)},vt.render=function(t,r,o){if(!Po(r))throw Error(i(200));return bo(null,t,r,!1,o)},vt.unmountComponentAtNode=function(t){if(!Po(t))throw Error(i(40));return t._reactRootContainer?(rr(function(){bo(null,null,t,!1,function(){t._reactRootContainer=null,t[cn]=null})}),!0):!1},vt.unstable_batchedUpdates=iu,vt.unstable_renderSubtreeIntoContainer=function(t,r,o,l){if(!Po(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return bo(t,r,o,!1,l)},vt.version="18.3.1-next-f1338f8080-20240426",vt}var Ap;function Vm(){if(Ap)return ku.exports;Ap=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),ku.exports=n3(),ku.exports}var qn=Vm();const r3=ps(qn),i3=fa({__proto__:null,default:r3},[qn]);var jo={},Rp;function s3(){if(Rp)return jo;Rp=1;var e=Vm();return jo.createRoot=e.createRoot,jo.hydrateRoot=e.hydrateRoot,jo}var Im=s3();const o3=ps(Im),a3=fa({__proto__:null,default:o3},[Im]);var l3=class extends Error{},u3=class extends Error{};function c3(e){return typeof e=="function"?e():e}const Lo=Object.freeze([]);var f3=class{constructor(){I(this,"records",new Map);I(this,"mutateListeners",new Set);I(this,"handleScopes",new Map);I(this,"dirty",new Set);I(this,"flushScheduled",!1);I(this,"abdicated",new WeakSet);I(this,"entryErrorListeners",new Set);const e=this.record("root");e.spec={kind:"single",scope:"root"},e.declaredBy="(built-in)",e.declarationEpoch=1}register(e,n){const i=this.records.get(e.name);if(!(i!=null&&i.spec))throw new Error(`slot "${e.name}" is not declared (a parent entry's children table must declare it)`);const s=i.spec,a=e.priority??0,u=p=>`at priority ${a}${p.registrant!==void 0?` (registered by ${p.registrant})`:""} — register at a different priority to shadow it (lowest renders)`;switch(s.kind){case"single":{const p=i.entries.find(m=>(m.options.priority??0)===a);if(p)throw new Error(`single slot "${e.name}" already has a registration ${u(p)}`);break}case"keyed":{if(e.key===void 0)throw new Error(`keyed slot "${e.name}" requires options.key`);const p=i.entries.find(m=>m.options.key===e.key&&(m.options.priority??0)===a);if(p)throw new Error(`keyed slot "${e.name}" already has an entry for key "${e.key}" ${u(p)}`);break}case"list":{if(e.id===void 0)throw new Error(`list slot "${e.name}" requires options.id`);const p=i.entries.find(m=>m.options.id===e.id&&(m.options.priority??0)===a);if(p)throw new Error(`list slot "${e.name}" already has an entry with id "${e.id}" ${u(p)}`);break}case"chain":if(e.select===void 0)throw new Error(`chain slot "${e.name}" requires options.select`);break}if(e.children)for(const p of Object.keys(e.children)){const m=this.records.get(p);if(m!=null&&m.spec)throw new Error(`slot "${p}" is already declared (by ${m.declaredBy??"an unknown entry"})`)}if(e.store!==void 0&&typeof e.store!="function"){const p=this.handleScopes.get(e.store);if(p&&p.scope!==s.scope)throw new Error(`store handle mounted under "${e.name}" (scope "${s.scope}") is already mounted under scope "${p.scope}" — one handle, one scope`);p?p.count+=1:this.handleScopes.set(e.store,{scope:s.scope,count:1})}const c={component:n,options:{...e.key!==void 0?{key:e.key}:{},...e.id!==void 0?{id:e.id}:{},...e.order!==void 0?{order:e.order}:{},...e.label!==void 0?{label:e.label}:{},...e.priority!==void 0?{priority:e.priority}:{}},...e.select!==void 0?{select:e.select}:{},...e.inject!==void 0?{inject:e.inject}:{},...e.children!==void 0?{children:e.children}:{},...e.store!==void 0?{store:e.store}:{},...e.locale!==void 0?{locale:e.locale}:{},...e.registrant!==void 0?{registrant:e.registrant}:{}},d=[...i.entries,c];if(d.sort(s.kind==="list"?(p,m)=>(p.options.priority??0)-(m.options.priority??0)||(p.options.order??0)-(m.options.order??0):(p,m)=>(p.options.priority??0)-(m.options.priority??0)),i.entries=d,this.markDirty(e.name,i),e.children){const p=[];for(const[m,y]of Object.entries(e.children)){const w=this.record(m);w.spec=y,w.declaredBy=`an entry in "${e.name}"${e.registrant?` (${e.registrant})`:""}`,w.parent=e.name,w.declarationEpoch+=1,p.push([m,w])}for(const[m,y]of p)this.markDirty(m,y);for(const[,m]of p)this.notifyDeclaration(m)}return()=>{i.entries.includes(c)&&(i.entries=i.entries.filter(p=>p!==c),this.markDirty(e.name,i),this.releaseEntry(c))}}isLive(e){for(const n of this.records.values())if(n.entries.includes(e))return!0;return!1}entries(e){var n;return((n=this.records.get(e))==null?void 0:n.entries)??Lo}entriesOfSlot(e){const n=this.records.get(e);if(!(n!=null&&n.spec))return Lo;const i=n.spec.kind;if(i==="chain")return n.entries;const s=[],a=new Set;for(const u of n.entries){if(this.abdicated.has(u))continue;const c=i==="keyed"?u.options.key:i==="list"?u.options.id:void 0;a.has(c)||(a.add(c),s.push(u))}return s}spec(e){var n;return(n=this.records.get(e))==null?void 0:n.spec}specDynamic(e){var n;return(n=this.records.get(e))==null?void 0:n.spec}snapshot(e){const n=(i,s)=>{const a=this.records.get(i);if((a==null?void 0:a.spec)===void 0||s.has(i))return;const u=new Set(s);u.add(i);const c=new Set(this.entriesOfSlot(i)),d=[...this.records.entries()].filter(([,p])=>p.spec!==void 0&&p.parent===i).flatMap(([p])=>{const m=n(p,u);return m===void 0?[]:[m]});return{name:i,kind:a.spec.kind,scope:a.spec.scope,...a.declaredBy===void 0?{}:{declaredBy:a.declaredBy},occupants:a.entries.map(p=>({...p.registrant===void 0?{}:{registrant:p.registrant},...p.options.key===void 0?{}:{key:p.options.key},...p.options.id===void 0?{}:{id:p.options.id},...p.options.order===void 0?{}:{order:p.options.order},priority:p.options.priority??0,active:c.has(p)})),children:d}};if(e!==void 0){const i=n(e,new Set);return i===void 0?[]:[i]}return[...this.records.entries()].filter(([,i])=>{var s;return i.spec!==void 0&&(i.parent===void 0||((s=this.records.get(i.parent))==null?void 0:s.spec)===void 0)}).flatMap(([i])=>{const s=n(i,new Set);return s===void 0?[]:[s]})}declarationEpoch(e){var n;return((n=this.records.get(e))==null?void 0:n.declarationEpoch)??0}subscribe(e,n){const i=this.record(e);return i.listeners.add(n),()=>{i.listeners.delete(n)}}subscribeDeclaration(e,n){const i=this.record(e);return i.declarationListeners.add(n),()=>{i.declarationListeners.delete(n)}}getVersion(e){var n;return((n=this.records.get(e))==null?void 0:n.version)??0}onMutate(e){return this.mutateListeners.add(e),()=>{this.mutateListeners.delete(e)}}reportEntryError(e,n,i,s){if(s.abdicate){if(this.abdicated.has(n))return;this.abdicated.add(n);const a=this.records.get(e);a!==void 0&&this.markDirty(e,a)}for(const a of[...this.entryErrorListeners])a(e,n,i,{abdicated:s.abdicate})}onEntryError(e){return this.entryErrorListeners.add(e),()=>{this.entryErrorListeners.delete(e)}}releaseEntry(e){if(e.store!==void 0&&typeof e.store!="function"){const n=this.handleScopes.get(e.store);n&&--n.count===0&&this.handleScopes.delete(e.store)}if(e.children)for(const n of Object.keys(e.children)){const i=this.records.get(n);if(!i)continue;const s=i.entries;i.spec=void 0,i.declaredBy=void 0,i.parent=void 0,i.declarationEpoch+=1,i.entries=Lo,this.markDirty(n,i),this.notifyDeclaration(i);for(const a of s)this.releaseEntry(a)}}record(e){let n=this.records.get(e);return n||(n={spec:void 0,declaredBy:void 0,parent:void 0,declarationEpoch:0,entries:Lo,version:0,listeners:new Set,declarationListeners:new Set},this.records.set(e,n)),n}markDirty(e,n){n.version+=1;for(const i of[...this.mutateListeners])i(e);this.dirty.add(n),this.flushScheduled||(this.flushScheduled=!0,queueMicrotask(()=>{this.flush()}))}notifyDeclaration(e){for(const n of[...e.declarationListeners])n()}flush(){this.flushScheduled=!1;const e=[...this.dirty];this.dirty.clear();for(const n of e)for(const i of[...n.listeners])i()}};const d3=Object.freeze(Object.defineProperty({__proto__:null,SlotCore:f3,SlotOwnershipError:u3,StaleAuthorizationError:l3,resolveSlotLabel:c3},Symbol.toStringTag,{value:"Module"})),h3="modulepreload",p3=function(e){return"/"+e},Dp={},$e=function(n,i,s){let a=Promise.resolve();if(i&&i.length>0){let c=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(w=>({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=c(i.map(m=>{if(m=p3(m),m in Dp)return;Dp[m]=!0;const y=m.endsWith(".css"),w=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${w}`))return;const g=document.createElement("link");if(g.rel=y?"stylesheet":h3,y||(g.as="script"),g.crossOrigin="",g.href=m,p&&g.setAttribute("nonce",p),document.head.appendChild(g),y)return new Promise((k,x)=>{g.addEventListener("load",k),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return a.then(c=>{for(const d of c||[])d.status==="rejected"&&u(d.reason);return n().catch(u)})};function $m(e){var n,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(i=$m(e[n]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function ke(){for(var e,n,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(n=$m(e))&&(s&&(s+=" "),s+=n);return s}/**
57
- * @license lucide-react v1.31.0 - ISC
56
+ `+h.stack}return{value:t,source:r,stack:f,digest:null}}function Il(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function $l(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var A2=typeof WeakMap=="function"?WeakMap:Map;function Ph(t,r,o){o=mn(-1,o),o.tag=3,o.payload={element:null};var l=r.value;return o.callback=function(){yo||(yo=!0,eu=l),$l(t,r)},o}function bh(t,r,o){o=mn(-1,o),o.tag=3;var l=t.type.getDerivedStateFromError;if(typeof l=="function"){var f=r.value;o.payload=function(){return l(f)},o.callback=function(){$l(t,r)}}var h=t.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){$l(t,r),typeof l!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})}),o}function Mh(t,r,o){var l=t.pingCache;if(l===null){l=t.pingCache=new A2;var f=new Set;l.set(r,f)}else f=l.get(r),f===void 0&&(f=new Set,l.set(r,f));f.has(o)||(f.add(o),t=K2.bind(null,t,r,o),r.then(t,t))}function jh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Lh(t,r,o,l,f){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=mn(-1,1),r.tag=2,An(o,r,1))),o.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var R2=z.ReactCurrentOwner,mt=!1;function at(t,r,o,l){r.child=t===null?Zd(r,null,o,l):Ir(r,t.child,o,l)}function Nh(t,r,o,l,f){o=o.render;var h=r.ref;return zr(r,f),l=jl(t,r,o,l,h,f),o=Ll(),t!==null&&!mt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,yn(t,r,f)):(Oe&&o&&hl(r),r.flags|=1,at(t,r,l,f),r.child)}function Ah(t,r,o,l,f){if(t===null){var h=o.type;return typeof h=="function"&&!au(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=h,Rh(t,r,h,l,f)):(t=ko(o.type,null,l,r,r.mode,f),t.ref=r.ref,t.return=r,r.child=t)}if(h=t.child,(t.lanes&f)===0){var v=h.memoizedProps;if(o=o.compare,o=o!==null?o:bi,o(v,l)&&t.ref===r.ref)return yn(t,r,f)}return r.flags|=1,t=$n(h,l),t.ref=r.ref,t.return=r,r.child=t}function Rh(t,r,o,l,f){if(t!==null){var h=t.memoizedProps;if(bi(h,l)&&t.ref===r.ref)if(mt=!1,r.pendingProps=l=h,(t.lanes&f)!==0)(t.flags&131072)!==0&&(mt=!0);else return r.lanes=t.lanes,yn(t,r,f)}return zl(t,r,o,l,f)}function Dh(t,r,o){var l=r.pendingProps,f=l.children,h=t!==null?t.memoizedState:null;if(l.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(Ur,St),St|=o;else{if((o&1073741824)===0)return t=h!==null?h.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ne(Ur,St),St|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=h!==null?h.baseLanes:o,Ne(Ur,St),St|=l}else h!==null?(l=h.baseLanes|o,r.memoizedState=null):l=o,Ne(Ur,St),St|=l;return at(t,r,f,o),r.child}function Oh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function zl(t,r,o,l,f){var h=pt(o)?Xn:rt.current;return h=Rr(r,h),zr(r,f),o=jl(t,r,o,l,h,f),l=Ll(),t!==null&&!mt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,yn(t,r,f)):(Oe&&l&&hl(r),r.flags|=1,at(t,r,o,f),r.child)}function Vh(t,r,o,l,f){if(pt(o)){var h=!0;qs(r)}else h=!1;if(zr(r,f),r.stateNode===null)co(t,r),Eh(r,o,l),Vl(r,o,l,f),l=!0;else if(t===null){var v=r.stateNode,S=r.memoizedProps;v.props=S;var E=v.context,R=o.contextType;typeof R=="object"&&R!==null?R=Lt(R):(R=pt(o)?Xn:rt.current,R=Rr(r,R));var K=o.getDerivedStateFromProps,G=typeof K=="function"||typeof v.getSnapshotBeforeUpdate=="function";G||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==l||E!==R)&&Th(r,v,l,R),Nn=!1;var W=r.memoizedState;v.state=W,to(r,l,v,f),E=r.memoizedState,S!==l||W!==E||ht.current||Nn?(typeof K=="function"&&(Ol(r,o,K,l),E=r.memoizedState),(S=Nn||Ch(r,o,S,l,W,E,R))?(G||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=E),v.props=l,v.state=E,v.context=R,l=S):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{v=r.stateNode,Jd(t,r),S=r.memoizedProps,R=r.type===r.elementType?S:Ft(r.type,S),v.props=R,G=r.pendingProps,W=v.context,E=o.contextType,typeof E=="object"&&E!==null?E=Lt(E):(E=pt(o)?Xn:rt.current,E=Rr(r,E));var ee=o.getDerivedStateFromProps;(K=typeof ee=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==G||W!==E)&&Th(r,v,l,E),Nn=!1,W=r.memoizedState,v.state=W,to(r,l,v,f);var ie=r.memoizedState;S!==G||W!==ie||ht.current||Nn?(typeof ee=="function"&&(Ol(r,o,ee,l),ie=r.memoizedState),(R=Nn||Ch(r,o,R,l,W,ie,E)||!1)?(K||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(l,ie,E),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(l,ie,E)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=ie),v.props=l,v.state=ie,v.context=E,l=R):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),l=!1)}return Fl(t,r,o,l,h,f)}function Fl(t,r,o,l,f,h){Oh(t,r);var v=(r.flags&128)!==0;if(!l&&!v)return f&&Bd(r,o,!1),yn(t,r,h);l=r.stateNode,R2.current=r;var S=v&&typeof o.getDerivedStateFromError!="function"?null:l.render();return r.flags|=1,t!==null&&v?(r.child=Ir(r,t.child,null,h),r.child=Ir(r,null,S,h)):at(t,r,S,h),r.memoizedState=l.state,f&&Bd(r,o,!0),r.child}function Ih(t){var r=t.stateNode;r.pendingContext?zd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&zd(t,r.context,!1),Cl(t,r.containerInfo)}function $h(t,r,o,l,f){return Vr(),gl(f),r.flags|=256,at(t,r,o,l),r.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function Hl(t){return{baseLanes:t,cachePool:null,transitions:null}}function zh(t,r,o){var l=r.pendingProps,f=Ve.current,h=!1,v=(r.flags&128)!==0,S;if((S=v)||(S=t!==null&&t.memoizedState===null?!1:(f&2)!==0),S?(h=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),Ne(Ve,f&1),t===null)return yl(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(v=l.children,t=l.fallback,h?(l=r.mode,h=r.child,v={mode:"hidden",children:v},(l&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=v):h=So(v,l,0,null),t=or(t,l,o,null),h.return=r,t.return=r,h.sibling=t,r.child=h,r.child.memoizedState=Hl(o),r.memoizedState=Bl,t):Ul(r,v));if(f=t.memoizedState,f!==null&&(S=f.dehydrated,S!==null))return D2(t,r,v,l,S,f,o);if(h){h=l.fallback,v=r.mode,f=t.child,S=f.sibling;var E={mode:"hidden",children:l.children};return(v&1)===0&&r.child!==f?(l=r.child,l.childLanes=0,l.pendingProps=E,r.deletions=null):(l=$n(f,E),l.subtreeFlags=f.subtreeFlags&14680064),S!==null?h=$n(S,h):(h=or(h,v,o,null),h.flags|=2),h.return=r,l.return=r,l.sibling=h,r.child=l,l=h,h=r.child,v=t.child.memoizedState,v=v===null?Hl(o):{baseLanes:v.baseLanes|o,cachePool:null,transitions:v.transitions},h.memoizedState=v,h.childLanes=t.childLanes&~o,r.memoizedState=Bl,l}return h=t.child,t=h.sibling,l=$n(h,{mode:"visible",children:l.children}),(r.mode&1)===0&&(l.lanes=o),l.return=r,l.sibling=null,t!==null&&(o=r.deletions,o===null?(r.deletions=[t],r.flags|=16):o.push(t)),r.child=l,r.memoizedState=null,l}function Ul(t,r){return r=So({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function uo(t,r,o,l){return l!==null&&gl(l),Ir(r,t.child,null,o),t=Ul(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function D2(t,r,o,l,f,h,v){if(o)return r.flags&256?(r.flags&=-257,l=Il(Error(i(422))),uo(t,r,v,l)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(h=l.fallback,f=r.mode,l=So({mode:"visible",children:l.children},f,0,null),h=or(h,f,v,null),h.flags|=2,l.return=r,h.return=r,l.sibling=h,r.child=l,(r.mode&1)!==0&&Ir(r,t.child,null,v),r.child.memoizedState=Hl(v),r.memoizedState=Bl,h);if((r.mode&1)===0)return uo(t,r,v,null);if(f.data==="$!"){if(l=f.nextSibling&&f.nextSibling.dataset,l)var S=l.dgst;return l=S,h=Error(i(419)),l=Il(h,l,void 0),uo(t,r,v,l)}if(S=(v&t.childLanes)!==0,mt||S){if(l=Ze,l!==null){switch(v&-v){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(l.suspendedLanes|v))!==0?0:f,f!==0&&f!==h.retryLane&&(h.retryLane=f,pn(t,f),Ut(l,t,f,-1))}return ou(),l=Il(Error(i(421))),uo(t,r,v,l)}return f.data==="$?"?(r.flags|=128,r.child=t.child,r=G2.bind(null,t),f._reactRetry=r,null):(t=h.treeContext,kt=bn(f.nextSibling),_t=r,Oe=!0,zt=null,t!==null&&(Mt[jt++]=dn,Mt[jt++]=hn,Mt[jt++]=Zn,dn=t.id,hn=t.overflow,Zn=r),r=Ul(r,l.children),r.flags|=4096,r)}function Fh(t,r,o){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),_l(t.return,r,o)}function Wl(t,r,o,l,f){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:f}:(h.isBackwards=r,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=o,h.tailMode=f)}function Bh(t,r,o){var l=r.pendingProps,f=l.revealOrder,h=l.tail;if(at(t,r,l.children,o),l=Ve.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fh(t,o,r);else if(t.tag===19)Fh(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}if(Ne(Ve,l),(r.mode&1)===0)r.memoizedState=null;else switch(f){case"forwards":for(o=r.child,f=null;o!==null;)t=o.alternate,t!==null&&no(t)===null&&(f=o),o=o.sibling;o=f,o===null?(f=r.child,r.child=null):(f=o.sibling,o.sibling=null),Wl(r,!1,f,o,h);break;case"backwards":for(o=null,f=r.child,r.child=null;f!==null;){if(t=f.alternate,t!==null&&no(t)===null){r.child=f;break}t=f.sibling,f.sibling=o,o=f,f=t}Wl(r,!0,o,null,h);break;case"together":Wl(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function co(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function yn(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),nr|=r.lanes,(o&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=$n(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=$n(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function O2(t,r,o){switch(r.tag){case 3:Ih(r),Vr();break;case 5:nh(r);break;case 1:pt(r.type)&&qs(r);break;case 4:Cl(r,r.stateNode.containerInfo);break;case 10:var l=r.type._context,f=r.memoizedProps.value;Ne(Qs,l._currentValue),l._currentValue=f;break;case 13:if(l=r.memoizedState,l!==null)return l.dehydrated!==null?(Ne(Ve,Ve.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?zh(t,r,o):(Ne(Ve,Ve.current&1),t=yn(t,r,o),t!==null?t.sibling:null);Ne(Ve,Ve.current&1);break;case 19:if(l=(o&r.childLanes)!==0,(t.flags&128)!==0){if(l)return Bh(t,r,o);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Ne(Ve,Ve.current),l)break;return null;case 22:case 23:return r.lanes=0,Dh(t,r,o)}return yn(t,r,o)}var Hh,ql,Uh,Wh;Hh=function(t,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},ql=function(){},Uh=function(t,r,o,l){var f=t.memoizedProps;if(f!==l){t=r.stateNode,er(Qt.current);var h=null;switch(o){case"input":f=_a(t,f),l=_a(t,l),h=[];break;case"select":f=Y({},f,{value:void 0}),l=Y({},l,{value:void 0}),h=[];break;case"textarea":f=Ca(t,f),l=Ca(t,l),h=[];break;default:typeof f.onClick!="function"&&typeof l.onClick=="function"&&(t.onclick=Hs)}Ta(o,l);var v;o=null;for(R in f)if(!l.hasOwnProperty(R)&&f.hasOwnProperty(R)&&f[R]!=null)if(R==="style"){var S=f[R];for(v in S)S.hasOwnProperty(v)&&(o||(o={}),o[v]="")}else R!=="dangerouslySetInnerHTML"&&R!=="children"&&R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(a.hasOwnProperty(R)?h||(h=[]):(h=h||[]).push(R,null));for(R in l){var E=l[R];if(S=f!=null?f[R]:void 0,l.hasOwnProperty(R)&&E!==S&&(E!=null||S!=null))if(R==="style")if(S){for(v in S)!S.hasOwnProperty(v)||E&&E.hasOwnProperty(v)||(o||(o={}),o[v]="");for(v in E)E.hasOwnProperty(v)&&S[v]!==E[v]&&(o||(o={}),o[v]=E[v])}else o||(h||(h=[]),h.push(R,o)),o=E;else R==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,S=S?S.__html:void 0,E!=null&&S!==E&&(h=h||[]).push(R,E)):R==="children"?typeof E!="string"&&typeof E!="number"||(h=h||[]).push(R,""+E):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&(a.hasOwnProperty(R)?(E!=null&&R==="onScroll"&&Ae("scroll",t),h||S===E||(h=[])):(h=h||[]).push(R,E))}o&&(h=h||[]).push("style",o);var R=h;(r.updateQueue=R)&&(r.flags|=4)}},Wh=function(t,r,o,l){o!==l&&(r.flags|=4)};function Hi(t,r){if(!Oe)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function st(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,l=0;if(r)for(var f=t.child;f!==null;)o|=f.lanes|f.childLanes,l|=f.subtreeFlags&14680064,l|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)o|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=l,t.childLanes=o,r}function V2(t,r,o){var l=r.pendingProps;switch(pl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(r),null;case 1:return pt(r.type)&&Ws(),st(r),null;case 3:return l=r.stateNode,Fr(),Re(ht),Re(rt),Pl(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Xs(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zt!==null&&(ru(zt),zt=null))),ql(t,r),st(r),null;case 5:El(r);var f=er(Ii.current);if(o=r.type,t!==null&&r.stateNode!=null)Uh(t,r,o,l,f),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!l){if(r.stateNode===null)throw Error(i(166));return st(r),null}if(t=er(Qt.current),Xs(r)){l=r.stateNode,o=r.type;var h=r.memoizedProps;switch(l[Zt]=r,l[Ai]=h,t=(r.mode&1)!==0,o){case"dialog":Ae("cancel",l),Ae("close",l);break;case"iframe":case"object":case"embed":Ae("load",l);break;case"video":case"audio":for(f=0;f<ji.length;f++)Ae(ji[f],l);break;case"source":Ae("error",l);break;case"img":case"image":case"link":Ae("error",l),Ae("load",l);break;case"details":Ae("toggle",l);break;case"input":Ef(l,h),Ae("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!h.multiple},Ae("invalid",l);break;case"textarea":bf(l,h),Ae("invalid",l)}Ta(o,h),f=null;for(var v in h)if(h.hasOwnProperty(v)){var S=h[v];v==="children"?typeof S=="string"?l.textContent!==S&&(h.suppressHydrationWarning!==!0&&Bs(l.textContent,S,t),f=["children",S]):typeof S=="number"&&l.textContent!==""+S&&(h.suppressHydrationWarning!==!0&&Bs(l.textContent,S,t),f=["children",""+S]):a.hasOwnProperty(v)&&S!=null&&v==="onScroll"&&Ae("scroll",l)}switch(o){case"input":ws(l),Pf(l,h,!0);break;case"textarea":ws(l),jf(l);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(l.onclick=Hs)}l=f,r.updateQueue=l,l!==null&&(r.flags|=4)}else{v=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Lf(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=v.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=v.createElement(o,{is:l.is}):(t=v.createElement(o),o==="select"&&(v=t,l.multiple?v.multiple=!0:l.size&&(v.size=l.size))):t=v.createElementNS(t,o),t[Zt]=r,t[Ai]=l,Hh(t,r,!1,!1),r.stateNode=t;e:{switch(v=Pa(o,l),o){case"dialog":Ae("cancel",t),Ae("close",t),f=l;break;case"iframe":case"object":case"embed":Ae("load",t),f=l;break;case"video":case"audio":for(f=0;f<ji.length;f++)Ae(ji[f],t);f=l;break;case"source":Ae("error",t),f=l;break;case"img":case"image":case"link":Ae("error",t),Ae("load",t),f=l;break;case"details":Ae("toggle",t),f=l;break;case"input":Ef(t,l),f=_a(t,l),Ae("invalid",t);break;case"option":f=l;break;case"select":t._wrapperState={wasMultiple:!!l.multiple},f=Y({},l,{value:void 0}),Ae("invalid",t);break;case"textarea":bf(t,l),f=Ca(t,l),Ae("invalid",t);break;default:f=l}Ta(o,f),S=f;for(h in S)if(S.hasOwnProperty(h)){var E=S[h];h==="style"?Rf(t,E):h==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&Nf(t,E)):h==="children"?typeof E=="string"?(o!=="textarea"||E!=="")&&fi(t,E):typeof E=="number"&&fi(t,""+E):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(a.hasOwnProperty(h)?E!=null&&h==="onScroll"&&Ae("scroll",t):E!=null&&O(t,h,E,v))}switch(o){case"input":ws(t),Pf(t,l,!1);break;case"textarea":ws(t),jf(t);break;case"option":l.value!=null&&t.setAttribute("value",""+Te(l.value));break;case"select":t.multiple=!!l.multiple,h=l.value,h!=null?kr(t,!!l.multiple,h,!1):l.defaultValue!=null&&kr(t,!!l.multiple,l.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=Hs)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return st(r),null;case 6:if(t&&r.stateNode!=null)Wh(t,r,t.memoizedProps,l);else{if(typeof l!="string"&&r.stateNode===null)throw Error(i(166));if(o=er(Ii.current),er(Qt.current),Xs(r)){if(l=r.stateNode,o=r.memoizedProps,l[Zt]=r,(h=l.nodeValue!==o)&&(t=_t,t!==null))switch(t.tag){case 3:Bs(l.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Bs(l.nodeValue,o,(t.mode&1)!==0)}h&&(r.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Zt]=r,r.stateNode=l}return st(r),null;case 13:if(Re(Ve),l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Oe&&kt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Gd(),Vr(),r.flags|=98560,h=!1;else if(h=Xs(r),l!==null&&l.dehydrated!==null){if(t===null){if(!h)throw Error(i(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[Zt]=r}else Vr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;st(r),h=!1}else zt!==null&&(ru(zt),zt=null),h=!0;if(!h)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(l=l!==null,l!==(t!==null&&t.memoizedState!==null)&&l&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Ve.current&1)!==0?Ge===0&&(Ge=3):ou())),r.updateQueue!==null&&(r.flags|=4),st(r),null);case 4:return Fr(),ql(t,r),t===null&&Li(r.stateNode.containerInfo),st(r),null;case 10:return xl(r.type._context),st(r),null;case 17:return pt(r.type)&&Ws(),st(r),null;case 19:if(Re(Ve),h=r.memoizedState,h===null)return st(r),null;if(l=(r.flags&128)!==0,v=h.rendering,v===null)if(l)Hi(h,!1);else{if(Ge!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(v=no(t),v!==null){for(r.flags|=128,Hi(h,!1),l=v.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),r.subtreeFlags=0,l=o,o=r.child;o!==null;)h=o,t=l,h.flags&=14680066,v=h.alternate,v===null?(h.childLanes=0,h.lanes=t,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=v.childLanes,h.lanes=v.lanes,h.child=v.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=v.memoizedProps,h.memoizedState=v.memoizedState,h.updateQueue=v.updateQueue,h.type=v.type,t=v.dependencies,h.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ne(Ve,Ve.current&1|2),r.child}t=t.sibling}h.tail!==null&&Be()>Wr&&(r.flags|=128,l=!0,Hi(h,!1),r.lanes=4194304)}else{if(!l)if(t=no(v),t!==null){if(r.flags|=128,l=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Hi(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Oe)return st(r),null}else 2*Be()-h.renderingStartTime>Wr&&o!==1073741824&&(r.flags|=128,l=!0,Hi(h,!1),r.lanes=4194304);h.isBackwards?(v.sibling=r.child,r.child=v):(o=h.last,o!==null?o.sibling=v:r.child=v,h.last=v)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=Be(),r.sibling=null,o=Ve.current,Ne(Ve,l?o&1|2:o&1),r):(st(r),null);case 22:case 23:return su(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(St&1073741824)!==0&&(st(r),r.subtreeFlags&6&&(r.flags|=8192)):st(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function I2(t,r){switch(pl(r),r.tag){case 1:return pt(r.type)&&Ws(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Fr(),Re(ht),Re(rt),Pl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return El(r),null;case 13:if(Re(Ve),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Vr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Re(Ve),null;case 4:return Fr(),null;case 10:return xl(r.type._context),null;case 22:case 23:return su(),null;case 24:return null;default:return null}}var fo=!1,ot=!1,$2=typeof WeakSet=="function"?WeakSet:Set,re=null;function Hr(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){ze(t,r,l)}else o.current=null}function Kl(t,r,o){try{o()}catch(l){ze(t,r,l)}}var qh=!1;function z2(t,r){if(sl=Ls,t=Cd(),Za(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var f=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var v=0,S=-1,E=-1,R=0,K=0,G=t,W=null;t:for(;;){for(var ee;G!==o||f!==0&&G.nodeType!==3||(S=v+f),G!==h||l!==0&&G.nodeType!==3||(E=v+l),G.nodeType===3&&(v+=G.nodeValue.length),(ee=G.firstChild)!==null;)W=G,G=ee;for(;;){if(G===t)break t;if(W===o&&++R===f&&(S=v),W===h&&++K===l&&(E=v),(ee=G.nextSibling)!==null)break;G=W,W=G.parentNode}G=ee}o=S===-1||E===-1?null:{start:S,end:E}}else o=null}o=o||{start:0,end:0}}else o=null;for(ol={focusedElem:t,selectionRange:o},Ls=!1,re=r;re!==null;)if(r=re,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,re=t;else for(;re!==null;){r=re;try{var ie=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var le=ie.memoizedProps,He=ie.memoizedState,j=r.stateNode,P=j.getSnapshotBeforeUpdate(r.elementType===r.type?le:Ft(r.type,le),He);j.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var N=r.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(X){ze(r,r.return,X)}if(t=r.sibling,t!==null){t.return=r.return,re=t;break}re=r.return}return ie=qh,qh=!1,ie}function Ui(t,r,o){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var f=l=l.next;do{if((f.tag&t)===t){var h=f.destroy;f.destroy=void 0,h!==void 0&&Kl(r,o,h)}f=f.next}while(f!==l)}}function ho(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var l=o.create;o.destroy=l()}o=o.next}while(o!==r)}}function Gl(t){var r=t.ref;if(r!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof r=="function"?r(t):r.current=t}}function Kh(t){var r=t.alternate;r!==null&&(t.alternate=null,Kh(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[Zt],delete r[Ai],delete r[cl],delete r[k2],delete r[S2])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Gh(t){return t.tag===5||t.tag===3||t.tag===4}function Yh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Gh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Yl(t,r,o){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Hs));else if(l!==4&&(t=t.child,t!==null))for(Yl(t,r,o),t=t.sibling;t!==null;)Yl(t,r,o),t=t.sibling}function Xl(t,r,o){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(Xl(t,r,o),t=t.sibling;t!==null;)Xl(t,r,o),t=t.sibling}var Je=null,Bt=!1;function Rn(t,r,o){for(o=o.child;o!==null;)Xh(t,r,o),o=o.sibling}function Xh(t,r,o){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Es,o)}catch{}switch(o.tag){case 5:ot||Hr(o,r);case 6:var l=Je,f=Bt;Je=null,Rn(t,r,o),Je=l,Bt=f,Je!==null&&(Bt?(t=Je,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):Je.removeChild(o.stateNode));break;case 18:Je!==null&&(Bt?(t=Je,o=o.stateNode,t.nodeType===8?ul(t.parentNode,o):t.nodeType===1&&ul(t,o),ki(t)):ul(Je,o.stateNode));break;case 4:l=Je,f=Bt,Je=o.stateNode.containerInfo,Bt=!0,Rn(t,r,o),Je=l,Bt=f;break;case 0:case 11:case 14:case 15:if(!ot&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){f=l=l.next;do{var h=f,v=h.destroy;h=h.tag,v!==void 0&&((h&2)!==0||(h&4)!==0)&&Kl(o,r,v),f=f.next}while(f!==l)}Rn(t,r,o);break;case 1:if(!ot&&(Hr(o,r),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(S){ze(o,r,S)}Rn(t,r,o);break;case 21:Rn(t,r,o);break;case 22:o.mode&1?(ot=(l=ot)||o.memoizedState!==null,Rn(t,r,o),ot=l):Rn(t,r,o);break;default:Rn(t,r,o)}}function Zh(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new $2),r.forEach(function(l){var f=Y2.bind(null,t,l);o.has(l)||(o.add(l),l.then(f,f))})}}function Ht(t,r){var o=r.deletions;if(o!==null)for(var l=0;l<o.length;l++){var f=o[l];try{var h=t,v=r,S=v;e:for(;S!==null;){switch(S.tag){case 5:Je=S.stateNode,Bt=!1;break e;case 3:Je=S.stateNode.containerInfo,Bt=!0;break e;case 4:Je=S.stateNode.containerInfo,Bt=!0;break e}S=S.return}if(Je===null)throw Error(i(160));Xh(h,v,f),Je=null,Bt=!1;var E=f.alternate;E!==null&&(E.return=null),f.return=null}catch(R){ze(f,r,R)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Qh(r,t),r=r.sibling}function Qh(t,r){var o=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ht(r,t),en(t),l&4){try{Ui(3,t,t.return),ho(3,t)}catch(le){ze(t,t.return,le)}try{Ui(5,t,t.return)}catch(le){ze(t,t.return,le)}}break;case 1:Ht(r,t),en(t),l&512&&o!==null&&Hr(o,o.return);break;case 5:if(Ht(r,t),en(t),l&512&&o!==null&&Hr(o,o.return),t.flags&32){var f=t.stateNode;try{fi(f,"")}catch(le){ze(t,t.return,le)}}if(l&4&&(f=t.stateNode,f!=null)){var h=t.memoizedProps,v=o!==null?o.memoizedProps:h,S=t.type,E=t.updateQueue;if(t.updateQueue=null,E!==null)try{S==="input"&&h.type==="radio"&&h.name!=null&&Tf(f,h),Pa(S,v);var R=Pa(S,h);for(v=0;v<E.length;v+=2){var K=E[v],G=E[v+1];K==="style"?Rf(f,G):K==="dangerouslySetInnerHTML"?Nf(f,G):K==="children"?fi(f,G):O(f,K,G,R)}switch(S){case"input":ka(f,h);break;case"textarea":Mf(f,h);break;case"select":var W=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!h.multiple;var ee=h.value;ee!=null?kr(f,!!h.multiple,ee,!1):W!==!!h.multiple&&(h.defaultValue!=null?kr(f,!!h.multiple,h.defaultValue,!0):kr(f,!!h.multiple,h.multiple?[]:"",!1))}f[Ai]=h}catch(le){ze(t,t.return,le)}}break;case 6:if(Ht(r,t),en(t),l&4){if(t.stateNode===null)throw Error(i(162));f=t.stateNode,h=t.memoizedProps;try{f.nodeValue=h}catch(le){ze(t,t.return,le)}}break;case 3:if(Ht(r,t),en(t),l&4&&o!==null&&o.memoizedState.isDehydrated)try{ki(r.containerInfo)}catch(le){ze(t,t.return,le)}break;case 4:Ht(r,t),en(t);break;case 13:Ht(r,t),en(t),f=t.child,f.flags&8192&&(h=f.memoizedState!==null,f.stateNode.isHidden=h,!h||f.alternate!==null&&f.alternate.memoizedState!==null||(Jl=Be())),l&4&&Zh(t);break;case 22:if(K=o!==null&&o.memoizedState!==null,t.mode&1?(ot=(R=ot)||K,Ht(r,t),ot=R):Ht(r,t),en(t),l&8192){if(R=t.memoizedState!==null,(t.stateNode.isHidden=R)&&!K&&(t.mode&1)!==0)for(re=t,K=t.child;K!==null;){for(G=re=K;re!==null;){switch(W=re,ee=W.child,W.tag){case 0:case 11:case 14:case 15:Ui(4,W,W.return);break;case 1:Hr(W,W.return);var ie=W.stateNode;if(typeof ie.componentWillUnmount=="function"){l=W,o=W.return;try{r=l,ie.props=r.memoizedProps,ie.state=r.memoizedState,ie.componentWillUnmount()}catch(le){ze(l,o,le)}}break;case 5:Hr(W,W.return);break;case 22:if(W.memoizedState!==null){tp(G);continue}}ee!==null?(ee.return=W,re=ee):tp(G)}K=K.sibling}e:for(K=null,G=t;;){if(G.tag===5){if(K===null){K=G;try{f=G.stateNode,R?(h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(S=G.stateNode,E=G.memoizedProps.style,v=E!=null&&E.hasOwnProperty("display")?E.display:null,S.style.display=Af("display",v))}catch(le){ze(t,t.return,le)}}}else if(G.tag===6){if(K===null)try{G.stateNode.nodeValue=R?"":G.memoizedProps}catch(le){ze(t,t.return,le)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;K===G&&(K=null),G=G.return}K===G&&(K=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Ht(r,t),en(t),l&4&&Zh(t);break;case 21:break;default:Ht(r,t),en(t)}}function en(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(Gh(o)){var l=o;break e}o=o.return}throw Error(i(160))}switch(l.tag){case 5:var f=l.stateNode;l.flags&32&&(fi(f,""),l.flags&=-33);var h=Yh(t);Xl(t,h,f);break;case 3:case 4:var v=l.stateNode.containerInfo,S=Yh(t);Yl(t,S,v);break;default:throw Error(i(161))}}catch(E){ze(t,t.return,E)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function F2(t,r,o){re=t,Jh(t)}function Jh(t,r,o){for(var l=(t.mode&1)!==0;re!==null;){var f=re,h=f.child;if(f.tag===22&&l){var v=f.memoizedState!==null||fo;if(!v){var S=f.alternate,E=S!==null&&S.memoizedState!==null||ot;S=fo;var R=ot;if(fo=v,(ot=E)&&!R)for(re=f;re!==null;)v=re,E=v.child,v.tag===22&&v.memoizedState!==null?np(f):E!==null?(E.return=v,re=E):np(f);for(;h!==null;)re=h,Jh(h),h=h.sibling;re=f,fo=S,ot=R}ep(t)}else(f.subtreeFlags&8772)!==0&&h!==null?(h.return=f,re=h):ep(t)}}function ep(t){for(;re!==null;){var r=re;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ot||ho(5,r);break;case 1:var l=r.stateNode;if(r.flags&4&&!ot)if(o===null)l.componentDidMount();else{var f=r.elementType===r.type?o.memoizedProps:Ft(r.type,o.memoizedProps);l.componentDidUpdate(f,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var h=r.updateQueue;h!==null&&th(r,h,l);break;case 3:var v=r.updateQueue;if(v!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}th(r,v,o)}break;case 5:var S=r.stateNode;if(o===null&&r.flags&4){o=S;var E=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&o.focus();break;case"img":E.src&&(o.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var R=r.alternate;if(R!==null){var K=R.memoizedState;if(K!==null){var G=K.dehydrated;G!==null&&ki(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ot||r.flags&512&&Gl(r)}catch(W){ze(r,r.return,W)}}if(r===t){re=null;break}if(o=r.sibling,o!==null){o.return=r.return,re=o;break}re=r.return}}function tp(t){for(;re!==null;){var r=re;if(r===t){re=null;break}var o=r.sibling;if(o!==null){o.return=r.return,re=o;break}re=r.return}}function np(t){for(;re!==null;){var r=re;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{ho(4,r)}catch(E){ze(r,o,E)}break;case 1:var l=r.stateNode;if(typeof l.componentDidMount=="function"){var f=r.return;try{l.componentDidMount()}catch(E){ze(r,f,E)}}var h=r.return;try{Gl(r)}catch(E){ze(r,h,E)}break;case 5:var v=r.return;try{Gl(r)}catch(E){ze(r,v,E)}}}catch(E){ze(r,r.return,E)}if(r===t){re=null;break}var S=r.sibling;if(S!==null){S.return=r.return,re=S;break}re=r.return}}var B2=Math.ceil,po=z.ReactCurrentDispatcher,Zl=z.ReactCurrentOwner,At=z.ReactCurrentBatchConfig,Se=0,Ze=null,Ue=null,et=0,St=0,Ur=Mn(0),Ge=0,Wi=null,nr=0,mo=0,Ql=0,qi=null,yt=null,Jl=0,Wr=1/0,gn=null,yo=!1,eu=null,Dn=null,go=!1,On=null,vo=0,Ki=0,tu=null,wo=-1,xo=0;function lt(){return(Se&6)!==0?Be():wo!==-1?wo:wo=Be()}function Vn(t){return(t.mode&1)===0?1:(Se&2)!==0&&et!==0?et&-et:E2.transition!==null?(xo===0&&(xo=Yf()),xo):(t=Pe,t!==0||(t=window.event,t=t===void 0?16:id(t.type)),t)}function Ut(t,r,o,l){if(50<Ki)throw Ki=0,tu=null,Error(i(185));gi(t,o,l),((Se&2)===0||t!==Ze)&&(t===Ze&&((Se&2)===0&&(mo|=o),Ge===4&&In(t,et)),gt(t,l),o===1&&Se===0&&(r.mode&1)===0&&(Wr=Be()+500,Ks&&Ln()))}function gt(t,r){var o=t.callbackNode;Eg(t,r);var l=bs(t,t===Ze?et:0);if(l===0)o!==null&&qf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=l&-l,t.callbackPriority!==r){if(o!=null&&qf(o),r===1)t.tag===0?C2(ip.bind(null,t)):Hd(ip.bind(null,t)),x2(function(){(Se&6)===0&&Ln()}),o=null;else{switch(Xf(l)){case 1:o=Ra;break;case 4:o=Kf;break;case 16:o=Cs;break;case 536870912:o=Gf;break;default:o=Cs}o=dp(o,rp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function rp(t,r){if(wo=-1,xo=0,(Se&6)!==0)throw Error(i(327));var o=t.callbackNode;if(qr()&&t.callbackNode!==o)return null;var l=bs(t,t===Ze?et:0);if(l===0)return null;if((l&30)!==0||(l&t.expiredLanes)!==0||r)r=_o(t,l);else{r=l;var f=Se;Se|=2;var h=op();(Ze!==t||et!==r)&&(gn=null,Wr=Be()+500,ir(t,r));do try{W2();break}catch(S){sp(t,S)}while(!0);wl(),po.current=h,Se=f,Ue!==null?r=0:(Ze=null,et=0,r=Ge)}if(r!==0){if(r===2&&(f=Da(t),f!==0&&(l=f,r=nu(t,f))),r===1)throw o=Wi,ir(t,0),In(t,l),gt(t,Be()),o;if(r===6)In(t,l);else{if(f=t.current.alternate,(l&30)===0&&!H2(f)&&(r=_o(t,l),r===2&&(h=Da(t),h!==0&&(l=h,r=nu(t,h))),r===1))throw o=Wi,ir(t,0),In(t,l),gt(t,Be()),o;switch(t.finishedWork=f,t.finishedLanes=l,r){case 0:case 1:throw Error(i(345));case 2:sr(t,yt,gn);break;case 3:if(In(t,l),(l&130023424)===l&&(r=Jl+500-Be(),10<r)){if(bs(t,0)!==0)break;if(f=t.suspendedLanes,(f&l)!==l){lt(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=ll(sr.bind(null,t,yt,gn),r);break}sr(t,yt,gn);break;case 4:if(In(t,l),(l&4194240)===l)break;for(r=t.eventTimes,f=-1;0<l;){var v=31-It(l);h=1<<v,v=r[v],v>f&&(f=v),l&=~h}if(l=f,l=Be()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*B2(l/1960))-l,10<l){t.timeoutHandle=ll(sr.bind(null,t,yt,gn),l);break}sr(t,yt,gn);break;case 5:sr(t,yt,gn);break;default:throw Error(i(329))}}}return gt(t,Be()),t.callbackNode===o?rp.bind(null,t):null}function nu(t,r){var o=qi;return t.current.memoizedState.isDehydrated&&(ir(t,r).flags|=256),t=_o(t,r),t!==2&&(r=yt,yt=o,r!==null&&ru(r)),t}function ru(t){yt===null?yt=t:yt.push.apply(yt,t)}function H2(t){for(var r=t;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var f=o[l],h=f.getSnapshot;f=f.value;try{if(!$t(h(),f))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function In(t,r){for(r&=~Ql,r&=~mo,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-It(r),l=1<<o;t[o]=-1,r&=~l}}function ip(t){if((Se&6)!==0)throw Error(i(327));qr();var r=bs(t,0);if((r&1)===0)return gt(t,Be()),null;var o=_o(t,r);if(t.tag!==0&&o===2){var l=Da(t);l!==0&&(r=l,o=nu(t,l))}if(o===1)throw o=Wi,ir(t,0),In(t,r),gt(t,Be()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,sr(t,yt,gn),gt(t,Be()),null}function iu(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Wr=Be()+500,Ks&&Ln())}}function rr(t){On!==null&&On.tag===0&&(Se&6)===0&&qr();var r=Se;Se|=1;var o=At.transition,l=Pe;try{if(At.transition=null,Pe=1,t)return t()}finally{Pe=l,At.transition=o,Se=r,(Se&6)===0&&Ln()}}function su(){St=Ur.current,Re(Ur)}function ir(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,w2(o)),Ue!==null)for(o=Ue.return;o!==null;){var l=o;switch(pl(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Ws();break;case 3:Fr(),Re(ht),Re(rt),Pl();break;case 5:El(l);break;case 4:Fr();break;case 13:Re(Ve);break;case 19:Re(Ve);break;case 10:xl(l.type._context);break;case 22:case 23:su()}o=o.return}if(Ze=t,Ue=t=$n(t.current,null),et=St=r,Ge=0,Wi=null,Ql=mo=nr=0,yt=qi=null,Jn!==null){for(r=0;r<Jn.length;r++)if(o=Jn[r],l=o.interleaved,l!==null){o.interleaved=null;var f=l.next,h=o.pending;if(h!==null){var v=h.next;h.next=f,l.next=v}o.pending=l}Jn=null}return t}function sp(t,r){do{var o=Ue;try{if(wl(),ro.current=ao,io){for(var l=Ie.memoizedState;l!==null;){var f=l.queue;f!==null&&(f.pending=null),l=l.next}io=!1}if(tr=0,Xe=Ke=Ie=null,$i=!1,zi=0,Zl.current=null,o===null||o.return===null){Ge=1,Wi=r,Ue=null;break}e:{var h=t,v=o.return,S=o,E=r;if(r=et,S.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var R=E,K=S,G=K.tag;if((K.mode&1)===0&&(G===0||G===11||G===15)){var W=K.alternate;W?(K.updateQueue=W.updateQueue,K.memoizedState=W.memoizedState,K.lanes=W.lanes):(K.updateQueue=null,K.memoizedState=null)}var ee=jh(v);if(ee!==null){ee.flags&=-257,Lh(ee,v,S,h,r),ee.mode&1&&Mh(h,R,r),r=ee,E=R;var ie=r.updateQueue;if(ie===null){var le=new Set;le.add(E),r.updateQueue=le}else ie.add(E);break e}else{if((r&1)===0){Mh(h,R,r),ou();break e}E=Error(i(426))}}else if(Oe&&S.mode&1){var He=jh(v);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),Lh(He,v,S,h,r),gl(Br(E,S));break e}}h=E=Br(E,S),Ge!==4&&(Ge=2),qi===null?qi=[h]:qi.push(h),h=v;do{switch(h.tag){case 3:h.flags|=65536,r&=-r,h.lanes|=r;var j=Ph(h,E,r);eh(h,j);break e;case 1:S=E;var P=h.type,N=h.stateNode;if((h.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Dn===null||!Dn.has(N)))){h.flags|=65536,r&=-r,h.lanes|=r;var X=bh(h,S,r);eh(h,X);break e}}h=h.return}while(h!==null)}lp(o)}catch(ue){r=ue,Ue===o&&o!==null&&(Ue=o=o.return);continue}break}while(!0)}function op(){var t=po.current;return po.current=ao,t===null?ao:t}function ou(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ze===null||(nr&268435455)===0&&(mo&268435455)===0||In(Ze,et)}function _o(t,r){var o=Se;Se|=2;var l=op();(Ze!==t||et!==r)&&(gn=null,ir(t,r));do try{U2();break}catch(f){sp(t,f)}while(!0);if(wl(),Se=o,po.current=l,Ue!==null)throw Error(i(261));return Ze=null,et=0,Ge}function U2(){for(;Ue!==null;)ap(Ue)}function W2(){for(;Ue!==null&&!yg();)ap(Ue)}function ap(t){var r=fp(t.alternate,t,St);t.memoizedProps=t.pendingProps,r===null?lp(t):Ue=r,Zl.current=null}function lp(t){var r=t;do{var o=r.alternate;if(t=r.return,(r.flags&32768)===0){if(o=V2(o,r,St),o!==null){Ue=o;return}}else{if(o=I2(o,r),o!==null){o.flags&=32767,Ue=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ge=6,Ue=null;return}}if(r=r.sibling,r!==null){Ue=r;return}Ue=r=t}while(r!==null);Ge===0&&(Ge=5)}function sr(t,r,o){var l=Pe,f=At.transition;try{At.transition=null,Pe=1,q2(t,r,o,l)}finally{At.transition=f,Pe=l}return null}function q2(t,r,o,l){do qr();while(On!==null);if((Se&6)!==0)throw Error(i(327));o=t.finishedWork;var f=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var h=o.lanes|o.childLanes;if(Tg(t,h),t===Ze&&(Ue=Ze=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||go||(go=!0,dp(Cs,function(){return qr(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=At.transition,At.transition=null;var v=Pe;Pe=1;var S=Se;Se|=4,Zl.current=null,z2(t,o),Qh(o,t),d2(ol),Ls=!!sl,ol=sl=null,t.current=o,F2(o),gg(),Se=S,Pe=v,At.transition=h}else t.current=o;if(go&&(go=!1,On=t,vo=f),h=t.pendingLanes,h===0&&(Dn=null),xg(o.stateNode),gt(t,Be()),r!==null)for(l=t.onRecoverableError,o=0;o<r.length;o++)f=r[o],l(f.value,{componentStack:f.stack,digest:f.digest});if(yo)throw yo=!1,t=eu,eu=null,t;return(vo&1)!==0&&t.tag!==0&&qr(),h=t.pendingLanes,(h&1)!==0?t===tu?Ki++:(Ki=0,tu=t):Ki=0,Ln(),null}function qr(){if(On!==null){var t=Xf(vo),r=At.transition,o=Pe;try{if(At.transition=null,Pe=16>t?16:t,On===null)var l=!1;else{if(t=On,On=null,vo=0,(Se&6)!==0)throw Error(i(331));var f=Se;for(Se|=4,re=t.current;re!==null;){var h=re,v=h.child;if((re.flags&16)!==0){var S=h.deletions;if(S!==null){for(var E=0;E<S.length;E++){var R=S[E];for(re=R;re!==null;){var K=re;switch(K.tag){case 0:case 11:case 15:Ui(8,K,h)}var G=K.child;if(G!==null)G.return=K,re=G;else for(;re!==null;){K=re;var W=K.sibling,ee=K.return;if(Kh(K),K===R){re=null;break}if(W!==null){W.return=ee,re=W;break}re=ee}}}var ie=h.alternate;if(ie!==null){var le=ie.child;if(le!==null){ie.child=null;do{var He=le.sibling;le.sibling=null,le=He}while(le!==null)}}re=h}}if((h.subtreeFlags&2064)!==0&&v!==null)v.return=h,re=v;else e:for(;re!==null;){if(h=re,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:Ui(9,h,h.return)}var j=h.sibling;if(j!==null){j.return=h.return,re=j;break e}re=h.return}}var P=t.current;for(re=P;re!==null;){v=re;var N=v.child;if((v.subtreeFlags&2064)!==0&&N!==null)N.return=v,re=N;else e:for(v=P;re!==null;){if(S=re,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:ho(9,S)}}catch(ue){ze(S,S.return,ue)}if(S===v){re=null;break e}var X=S.sibling;if(X!==null){X.return=S.return,re=X;break e}re=S.return}}if(Se=f,Ln(),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Es,t)}catch{}l=!0}return l}finally{Pe=o,At.transition=r}}return!1}function up(t,r,o){r=Br(o,r),r=Ph(t,r,1),t=An(t,r,1),r=lt(),t!==null&&(gi(t,1,r),gt(t,r))}function ze(t,r,o){if(t.tag===3)up(t,t,o);else for(;r!==null;){if(r.tag===3){up(r,t,o);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Dn===null||!Dn.has(l))){t=Br(o,t),t=bh(r,t,1),r=An(r,t,1),t=lt(),r!==null&&(gi(r,1,t),gt(r,t));break}}r=r.return}}function K2(t,r,o){var l=t.pingCache;l!==null&&l.delete(r),r=lt(),t.pingedLanes|=t.suspendedLanes&o,Ze===t&&(et&o)===o&&(Ge===4||Ge===3&&(et&130023424)===et&&500>Be()-Jl?ir(t,0):Ql|=o),gt(t,r)}function cp(t,r){r===0&&((t.mode&1)===0?r=1:(r=Ps,Ps<<=1,(Ps&130023424)===0&&(Ps=4194304)));var o=lt();t=pn(t,r),t!==null&&(gi(t,r,o),gt(t,o))}function G2(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),cp(t,o)}function Y2(t,r){var o=0;switch(t.tag){case 13:var l=t.stateNode,f=t.memoizedState;f!==null&&(o=f.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),cp(t,o)}var fp;fp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||ht.current)mt=!0;else{if((t.lanes&o)===0&&(r.flags&128)===0)return mt=!1,O2(t,r,o);mt=(t.flags&131072)!==0}else mt=!1,Oe&&(r.flags&1048576)!==0&&Ud(r,Ys,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;co(t,r),t=r.pendingProps;var f=Rr(r,rt.current);zr(r,o),f=jl(null,r,l,t,f,o);var h=Ll();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,pt(l)?(h=!0,qs(r)):h=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Sl(r),f.updater=lo,r.stateNode=f,f._reactInternals=r,Vl(r,l,t,o),r=Fl(null,r,l,!0,h,o)):(r.tag=0,Oe&&h&&hl(r),at(null,r,f,o),r=r.child),r;case 16:l=r.elementType;e:{switch(co(t,r),t=r.pendingProps,f=l._init,l=f(l._payload),r.type=l,f=r.tag=Z2(l),t=Ft(l,t),f){case 0:r=zl(null,r,l,t,o);break e;case 1:r=Vh(null,r,l,t,o);break e;case 11:r=Nh(null,r,l,t,o);break e;case 14:r=Ah(null,r,l,Ft(l.type,t),o);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),zl(t,r,l,f,o);case 1:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),Vh(t,r,l,f,o);case 3:e:{if(Ih(r),t===null)throw Error(i(387));l=r.pendingProps,h=r.memoizedState,f=h.element,Jd(t,r),to(r,l,null,o);var v=r.memoizedState;if(l=v.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){f=Br(Error(i(423)),r),r=$h(t,r,l,o,f);break e}else if(l!==f){f=Br(Error(i(424)),r),r=$h(t,r,l,o,f);break e}else for(kt=bn(r.stateNode.containerInfo.firstChild),_t=r,Oe=!0,zt=null,o=Zd(r,null,l,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Vr(),l===f){r=yn(t,r,o);break e}at(t,r,l,o)}r=r.child}return r;case 5:return nh(r),t===null&&yl(r),l=r.type,f=r.pendingProps,h=t!==null?t.memoizedProps:null,v=f.children,al(l,f)?v=null:h!==null&&al(l,h)&&(r.flags|=32),Oh(t,r),at(t,r,v,o),r.child;case 6:return t===null&&yl(r),null;case 13:return zh(t,r,o);case 4:return Cl(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Ir(r,null,l,o):at(t,r,l,o),r.child;case 11:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),Nh(t,r,l,f,o);case 7:return at(t,r,r.pendingProps,o),r.child;case 8:return at(t,r,r.pendingProps.children,o),r.child;case 12:return at(t,r,r.pendingProps.children,o),r.child;case 10:e:{if(l=r.type._context,f=r.pendingProps,h=r.memoizedProps,v=f.value,Ne(Qs,l._currentValue),l._currentValue=v,h!==null)if($t(h.value,v)){if(h.children===f.children&&!ht.current){r=yn(t,r,o);break e}}else for(h=r.child,h!==null&&(h.return=r);h!==null;){var S=h.dependencies;if(S!==null){v=h.child;for(var E=S.firstContext;E!==null;){if(E.context===l){if(h.tag===1){E=mn(-1,o&-o),E.tag=2;var R=h.updateQueue;if(R!==null){R=R.shared;var K=R.pending;K===null?E.next=E:(E.next=K.next,K.next=E),R.pending=E}}h.lanes|=o,E=h.alternate,E!==null&&(E.lanes|=o),_l(h.return,o,r),S.lanes|=o;break}E=E.next}}else if(h.tag===10)v=h.type===r.type?null:h.child;else if(h.tag===18){if(v=h.return,v===null)throw Error(i(341));v.lanes|=o,S=v.alternate,S!==null&&(S.lanes|=o),_l(v,o,r),v=h.sibling}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===r){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}at(t,r,f.children,o),r=r.child}return r;case 9:return f=r.type,l=r.pendingProps.children,zr(r,o),f=Lt(f),l=l(f),r.flags|=1,at(t,r,l,o),r.child;case 14:return l=r.type,f=Ft(l,r.pendingProps),f=Ft(l.type,f),Ah(t,r,l,f,o);case 15:return Rh(t,r,r.type,r.pendingProps,o);case 17:return l=r.type,f=r.pendingProps,f=r.elementType===l?f:Ft(l,f),co(t,r),r.tag=1,pt(l)?(t=!0,qs(r)):t=!1,zr(r,o),Eh(r,l,f),Vl(r,l,f,o),Fl(null,r,l,!0,t,o);case 19:return Bh(t,r,o);case 22:return Dh(t,r,o)}throw Error(i(156,r.tag))};function dp(t,r){return Wf(t,r)}function X2(t,r,o,l){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(t,r,o,l){return new X2(t,r,o,l)}function au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Z2(t){if(typeof t=="function")return au(t)?1:0;if(t!=null){if(t=t.$$typeof,t===me)return 11;if(t===ce)return 14}return 2}function $n(t,r){var o=t.alternate;return o===null?(o=Rt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function ko(t,r,o,l,f,h){var v=2;if(l=t,typeof t=="function")au(t)&&(v=1);else if(typeof t=="string")v=5;else e:switch(t){case U:return or(o.children,f,h,r);case q:v=8,f|=8;break;case $:return t=Rt(12,o,r,f|2),t.elementType=$,t.lanes=h,t;case J:return t=Rt(13,o,r,f),t.elementType=J,t.lanes=h,t;case ae:return t=Rt(19,o,r,f),t.elementType=ae,t.lanes=h,t;case ge:return So(o,f,h,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case B:v=10;break e;case oe:v=9;break e;case me:v=11;break e;case ce:v=14;break e;case ve:v=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Rt(v,o,r,f),r.elementType=t,r.type=l,r.lanes=h,r}function or(t,r,o,l){return t=Rt(7,t,l,r),t.lanes=o,t}function So(t,r,o,l){return t=Rt(22,t,l,r),t.elementType=ge,t.lanes=o,t.stateNode={isHidden:!1},t}function lu(t,r,o){return t=Rt(6,t,null,r),t.lanes=o,t}function uu(t,r,o){return r=Rt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function Q2(t,r,o,l,f){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Oa(0),this.expirationTimes=Oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oa(0),this.identifierPrefix=l,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function cu(t,r,o,l,f,h,v,S,E){return t=new Q2(t,r,o,S,E),r===1?(r=1,h===!0&&(r|=8)):r=0,h=Rt(3,null,null,r),t.current=h,h.stateNode=t,h.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(h),t}function J2(t,r,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:l==null?null:""+l,children:t,containerInfo:r,implementation:o}}function hp(t){if(!t)return jn;t=t._reactInternals;e:{if(Gn(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(pt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(pt(o))return Fd(t,o,r)}return r}function pp(t,r,o,l,f,h,v,S,E){return t=cu(o,l,!0,t,f,h,v,S,E),t.context=hp(null),o=t.current,l=lt(),f=Vn(o),h=mn(l,f),h.callback=r??null,An(o,h,f),t.current.lanes=f,gi(t,f,l),gt(t,l),t}function Co(t,r,o,l){var f=r.current,h=lt(),v=Vn(f);return o=hp(o),r.context===null?r.context=o:r.pendingContext=o,r=mn(h,v),r.payload={element:t},l=l===void 0?null:l,l!==null&&(r.callback=l),t=An(f,r,v),t!==null&&(Ut(t,f,v,h),eo(t,f,v)),v}function Eo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function mp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function fu(t,r){mp(t,r),(t=t.alternate)&&mp(t,r)}function ev(){return null}var yp=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}To.prototype.render=du.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));Co(t,r,null,null)},To.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;rr(function(){Co(null,t,null,null)}),r[cn]=null}};function To(t){this._internalRoot=t}To.prototype.unstable_scheduleHydration=function(t){if(t){var r=Jf();t={blockedOn:null,target:t,priority:r};for(var o=0;o<En.length&&r!==0&&r<En[o].priority;o++);En.splice(o,0,t),o===0&&nd(t)}};function hu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Po(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function gp(){}function tv(t,r,o,l,f){if(f){if(typeof l=="function"){var h=l;l=function(){var R=Eo(v);h.call(R)}}var v=pp(r,l,t,0,null,!1,!1,"",gp);return t._reactRootContainer=v,t[cn]=v.current,Li(t.nodeType===8?t.parentNode:t),rr(),v}for(;f=t.lastChild;)t.removeChild(f);if(typeof l=="function"){var S=l;l=function(){var R=Eo(E);S.call(R)}}var E=cu(t,0,!1,null,null,!1,!1,"",gp);return t._reactRootContainer=E,t[cn]=E.current,Li(t.nodeType===8?t.parentNode:t),rr(function(){Co(r,E,o,l)}),E}function bo(t,r,o,l,f){var h=o._reactRootContainer;if(h){var v=h;if(typeof f=="function"){var S=f;f=function(){var E=Eo(v);S.call(E)}}Co(r,v,t,f)}else v=tv(o,r,t,f,l);return Eo(v)}Zf=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=yi(r.pendingLanes);o!==0&&(Va(r,o|1),gt(r,Be()),(Se&6)===0&&(Wr=Be()+500,Ln()))}break;case 13:rr(function(){var l=pn(t,1);if(l!==null){var f=lt();Ut(l,t,1,f)}}),fu(t,1)}},Ia=function(t){if(t.tag===13){var r=pn(t,134217728);if(r!==null){var o=lt();Ut(r,t,134217728,o)}fu(t,134217728)}},Qf=function(t){if(t.tag===13){var r=Vn(t),o=pn(t,r);if(o!==null){var l=lt();Ut(o,t,r,l)}fu(t,r)}},Jf=function(){return Pe},ed=function(t,r){var o=Pe;try{return Pe=t,r()}finally{Pe=o}},ja=function(t,r,o){switch(r){case"input":if(ka(t,o),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var l=o[r];if(l!==t&&l.form===t.form){var f=Us(l);if(!f)throw Error(i(90));Cf(l),ka(l,f)}}}break;case"textarea":Mf(t,o);break;case"select":r=o.value,r!=null&&kr(t,!!o.multiple,r,!1)}},If=iu,$f=rr;var nv={usingClientEntryPoint:!1,Events:[Ri,Nr,Us,Of,Vf,iu]},Gi={findFiberByHostInstance:Yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rv={bundleType:Gi.bundleType,version:Gi.version,rendererPackageName:Gi.rendererPackageName,rendererConfig:Gi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Hf(t),t===null?null:t.stateNode},findFiberByHostInstance:Gi.findFiberByHostInstance||ev,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mo.isDisabled&&Mo.supportsFiber)try{Es=Mo.inject(rv),Xt=Mo}catch{}}return vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nv,vt.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hu(r))throw Error(i(200));return J2(t,r,null,o)},vt.createRoot=function(t,r){if(!hu(t))throw Error(i(299));var o=!1,l="",f=yp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),r=cu(t,1,!1,null,null,o,!1,l,f),t[cn]=r.current,Li(t.nodeType===8?t.parentNode:t),new du(r)},vt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Hf(r),t=t===null?null:t.stateNode,t},vt.flushSync=function(t){return rr(t)},vt.hydrate=function(t,r,o){if(!Po(r))throw Error(i(200));return bo(null,t,r,!0,o)},vt.hydrateRoot=function(t,r,o){if(!hu(t))throw Error(i(405));var l=o!=null&&o.hydratedSources||null,f=!1,h="",v=yp;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),r=pp(r,null,t,1,o??null,f,!1,h,v),t[cn]=r.current,Li(t),l)for(t=0;t<l.length;t++)o=l[t],f=o._getVersion,f=f(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,f]:r.mutableSourceEagerHydrationData.push(o,f);return new To(r)},vt.render=function(t,r,o){if(!Po(r))throw Error(i(200));return bo(null,t,r,!1,o)},vt.unmountComponentAtNode=function(t){if(!Po(t))throw Error(i(40));return t._reactRootContainer?(rr(function(){bo(null,null,t,!1,function(){t._reactRootContainer=null,t[cn]=null})}),!0):!1},vt.unstable_batchedUpdates=iu,vt.unstable_renderSubtreeIntoContainer=function(t,r,o,l){if(!Po(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return bo(t,r,o,!1,l)},vt.version="18.3.1-next-f1338f8080-20240426",vt}var Rp;function Im(){if(Rp)return ku.exports;Rp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),ku.exports=n3(),ku.exports}var qn=Im();const r3=ps(qn),i3=fa({__proto__:null,default:r3},[qn]);var jo={},Dp;function s3(){if(Dp)return jo;Dp=1;var e=Im();return jo.createRoot=e.createRoot,jo.hydrateRoot=e.hydrateRoot,jo}var $m=s3();const o3=ps($m),a3=fa({__proto__:null,default:o3},[$m]);var l3=class extends Error{},u3=class extends Error{};function c3(e){return typeof e=="function"?e():e}const Lo=Object.freeze([]);var f3=class{constructor(){I(this,"records",new Map);I(this,"mutateListeners",new Set);I(this,"handleScopes",new Map);I(this,"dirty",new Set);I(this,"flushScheduled",!1);I(this,"abdicated",new WeakSet);I(this,"entryErrorListeners",new Set);const e=this.record("root");e.spec={kind:"single",scope:"root"},e.declaredBy="(built-in)",e.declarationEpoch=1}register(e,n){const i=this.records.get(e.name);if(!(i!=null&&i.spec))throw new Error(`slot "${e.name}" is not declared (a parent entry's children table must declare it)`);const s=i.spec,a=e.priority??0,u=p=>`at priority ${a}${p.registrant!==void 0?` (registered by ${p.registrant})`:""} — register at a different priority to shadow it (lowest renders)`;switch(s.kind){case"single":{const p=i.entries.find(m=>(m.options.priority??0)===a);if(p)throw new Error(`single slot "${e.name}" already has a registration ${u(p)}`);break}case"keyed":{if(e.key===void 0)throw new Error(`keyed slot "${e.name}" requires options.key`);const p=i.entries.find(m=>m.options.key===e.key&&(m.options.priority??0)===a);if(p)throw new Error(`keyed slot "${e.name}" already has an entry for key "${e.key}" ${u(p)}`);break}case"list":{if(e.id===void 0)throw new Error(`list slot "${e.name}" requires options.id`);const p=i.entries.find(m=>m.options.id===e.id&&(m.options.priority??0)===a);if(p)throw new Error(`list slot "${e.name}" already has an entry with id "${e.id}" ${u(p)}`);break}case"chain":if(e.select===void 0)throw new Error(`chain slot "${e.name}" requires options.select`);break}if(e.children)for(const p of Object.keys(e.children)){const m=this.records.get(p);if(m!=null&&m.spec)throw new Error(`slot "${p}" is already declared (by ${m.declaredBy??"an unknown entry"})`)}if(e.store!==void 0&&typeof e.store!="function"){const p=this.handleScopes.get(e.store);if(p&&p.scope!==s.scope)throw new Error(`store handle mounted under "${e.name}" (scope "${s.scope}") is already mounted under scope "${p.scope}" — one handle, one scope`);p?p.count+=1:this.handleScopes.set(e.store,{scope:s.scope,count:1})}const c={component:n,options:{...e.key!==void 0?{key:e.key}:{},...e.id!==void 0?{id:e.id}:{},...e.order!==void 0?{order:e.order}:{},...e.label!==void 0?{label:e.label}:{},...e.priority!==void 0?{priority:e.priority}:{}},...e.select!==void 0?{select:e.select}:{},...e.inject!==void 0?{inject:e.inject}:{},...e.children!==void 0?{children:e.children}:{},...e.store!==void 0?{store:e.store}:{},...e.locale!==void 0?{locale:e.locale}:{},...e.registrant!==void 0?{registrant:e.registrant}:{}},d=[...i.entries,c];if(d.sort(s.kind==="list"?(p,m)=>(p.options.priority??0)-(m.options.priority??0)||(p.options.order??0)-(m.options.order??0):(p,m)=>(p.options.priority??0)-(m.options.priority??0)),i.entries=d,this.markDirty(e.name,i),e.children){const p=[];for(const[m,y]of Object.entries(e.children)){const w=this.record(m);w.spec=y,w.declaredBy=`an entry in "${e.name}"${e.registrant?` (${e.registrant})`:""}`,w.parent=e.name,w.declarationEpoch+=1,p.push([m,w])}for(const[m,y]of p)this.markDirty(m,y);for(const[,m]of p)this.notifyDeclaration(m)}return()=>{i.entries.includes(c)&&(i.entries=i.entries.filter(p=>p!==c),this.markDirty(e.name,i),this.releaseEntry(c))}}isLive(e){for(const n of this.records.values())if(n.entries.includes(e))return!0;return!1}entries(e){var n;return((n=this.records.get(e))==null?void 0:n.entries)??Lo}entriesOfSlot(e){const n=this.records.get(e);if(!(n!=null&&n.spec))return Lo;const i=n.spec.kind;if(i==="chain")return n.entries;const s=[],a=new Set;for(const u of n.entries){if(this.abdicated.has(u))continue;const c=i==="keyed"?u.options.key:i==="list"?u.options.id:void 0;a.has(c)||(a.add(c),s.push(u))}return s}spec(e){var n;return(n=this.records.get(e))==null?void 0:n.spec}specDynamic(e){var n;return(n=this.records.get(e))==null?void 0:n.spec}snapshot(e){const n=(i,s)=>{const a=this.records.get(i);if((a==null?void 0:a.spec)===void 0||s.has(i))return;const u=new Set(s);u.add(i);const c=new Set(this.entriesOfSlot(i)),d=[...this.records.entries()].filter(([,p])=>p.spec!==void 0&&p.parent===i).flatMap(([p])=>{const m=n(p,u);return m===void 0?[]:[m]});return{name:i,kind:a.spec.kind,scope:a.spec.scope,...a.declaredBy===void 0?{}:{declaredBy:a.declaredBy},occupants:a.entries.map(p=>({...p.registrant===void 0?{}:{registrant:p.registrant},...p.options.key===void 0?{}:{key:p.options.key},...p.options.id===void 0?{}:{id:p.options.id},...p.options.order===void 0?{}:{order:p.options.order},priority:p.options.priority??0,active:c.has(p)})),children:d}};if(e!==void 0){const i=n(e,new Set);return i===void 0?[]:[i]}return[...this.records.entries()].filter(([,i])=>{var s;return i.spec!==void 0&&(i.parent===void 0||((s=this.records.get(i.parent))==null?void 0:s.spec)===void 0)}).flatMap(([i])=>{const s=n(i,new Set);return s===void 0?[]:[s]})}declarationEpoch(e){var n;return((n=this.records.get(e))==null?void 0:n.declarationEpoch)??0}subscribe(e,n){const i=this.record(e);return i.listeners.add(n),()=>{i.listeners.delete(n)}}subscribeDeclaration(e,n){const i=this.record(e);return i.declarationListeners.add(n),()=>{i.declarationListeners.delete(n)}}getVersion(e){var n;return((n=this.records.get(e))==null?void 0:n.version)??0}onMutate(e){return this.mutateListeners.add(e),()=>{this.mutateListeners.delete(e)}}reportEntryError(e,n,i,s){if(s.abdicate){if(this.abdicated.has(n))return;this.abdicated.add(n);const a=this.records.get(e);a!==void 0&&this.markDirty(e,a)}for(const a of[...this.entryErrorListeners])a(e,n,i,{abdicated:s.abdicate})}onEntryError(e){return this.entryErrorListeners.add(e),()=>{this.entryErrorListeners.delete(e)}}releaseEntry(e){if(e.store!==void 0&&typeof e.store!="function"){const n=this.handleScopes.get(e.store);n&&--n.count===0&&this.handleScopes.delete(e.store)}if(e.children)for(const n of Object.keys(e.children)){const i=this.records.get(n);if(!i)continue;const s=i.entries;i.spec=void 0,i.declaredBy=void 0,i.parent=void 0,i.declarationEpoch+=1,i.entries=Lo,this.markDirty(n,i),this.notifyDeclaration(i);for(const a of s)this.releaseEntry(a)}}record(e){let n=this.records.get(e);return n||(n={spec:void 0,declaredBy:void 0,parent:void 0,declarationEpoch:0,entries:Lo,version:0,listeners:new Set,declarationListeners:new Set},this.records.set(e,n)),n}markDirty(e,n){n.version+=1;for(const i of[...this.mutateListeners])i(e);this.dirty.add(n),this.flushScheduled||(this.flushScheduled=!0,queueMicrotask(()=>{this.flush()}))}notifyDeclaration(e){for(const n of[...e.declarationListeners])n()}flush(){this.flushScheduled=!1;const e=[...this.dirty];this.dirty.clear();for(const n of e)for(const i of[...n.listeners])i()}};const d3=Object.freeze(Object.defineProperty({__proto__:null,SlotCore:f3,SlotOwnershipError:u3,StaleAuthorizationError:l3,resolveSlotLabel:c3},Symbol.toStringTag,{value:"Module"})),h3="modulepreload",p3=function(e){return"/"+e},Op={},$e=function(n,i,s){let a=Promise.resolve();if(i&&i.length>0){let c=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(w=>({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=c(i.map(m=>{if(m=p3(m),m in Op)return;Op[m]=!0;const y=m.endsWith(".css"),w=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${w}`))return;const g=document.createElement("link");if(g.rel=y?"stylesheet":h3,y||(g.as="script"),g.crossOrigin="",g.href=m,p&&g.setAttribute("nonce",p),document.head.appendChild(g),y)return new Promise((k,x)=>{g.addEventListener("load",k),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return a.then(c=>{for(const d of c||[])d.status==="rejected"&&u(d.reason);return n().catch(u)})};function zm(e){var n,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(i=zm(e[n]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function ke(){for(var e,n,i=0,s="",a=arguments.length;i<a;i++)(e=arguments[i])&&(n=zm(e))&&(s&&(s+=" "),s+=n);return s}/**
57
+ * @license lucide-react v1.38.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const zm=(...e)=>e.filter((n,i,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===i).join(" ").trim();/**
62
- * @license lucide-react v1.31.0 - ISC
61
+ */const Fm=(...e)=>e.filter((n,i,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===i).join(" ").trim();/**
62
+ * @license lucide-react v1.38.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
66
  */const m3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
67
- * @license lucide-react v1.31.0 - ISC
67
+ * @license lucide-react v1.38.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
71
  */const y3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,s)=>s?s.toUpperCase():i.toLowerCase());/**
72
- * @license lucide-react v1.31.0 - ISC
72
+ * @license lucide-react v1.38.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const Op=e=>{const n=y3(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
77
- * @license lucide-react v1.31.0 - ISC
76
+ */const Vp=e=>{const n=y3(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
77
+ * @license lucide-react v1.38.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
81
  */var Eu={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"};/**
82
- * @license lucide-react v1.31.0 - ISC
82
+ * @license lucide-react v1.38.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const g3=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},v3=M.createContext({}),w3=()=>M.useContext(v3),x3=M.forwardRef(({color:e,size:n,strokeWidth:i,absoluteStrokeWidth:s,className:a="",children:u,iconNode:c,...d},p)=>{const{size:m=24,strokeWidth:y=2,absoluteStrokeWidth:w=!1,color:g="currentColor",className:k=""}=w3()??{},x=s??w?Number(i??y)*24/Number(n??m):i??y;return M.createElement("svg",{ref:p,...Eu,width:n??m??Eu.width,height:n??m??Eu.height,stroke:e??g,strokeWidth:x,className:zm("lucide",k,a),...!u&&!g3(d)&&{"aria-hidden":"true"},...d},[...c.map(([C,T])=>M.createElement(C,T)),...Array.isArray(u)?u:[u]])});/**
87
- * @license lucide-react v1.31.0 - ISC
86
+ */const g3=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},v3=M.createContext({}),w3=()=>M.useContext(v3),x3=M.forwardRef(({color:e,size:n,strokeWidth:i,absoluteStrokeWidth:s,className:a="",children:u,iconNode:c,...d},p)=>{const{size:m=24,strokeWidth:y=2,absoluteStrokeWidth:w=!1,color:g="currentColor",className:k=""}=w3()??{},x=s??w?Number(i??y)*24/Number(n??m):i??y;return M.createElement("svg",{ref:p,...Eu,width:n??m??Eu.width,height:n??m??Eu.height,stroke:e??g,strokeWidth:x,className:Fm("lucide",k,a),...!u&&!g3(d)&&{"aria-hidden":"true"},...d},[...c.map(([C,T])=>M.createElement(C,T)),...Array.isArray(u)?u:[u]])});/**
87
+ * @license lucide-react v1.38.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const Q=(e,n)=>{const i=M.forwardRef(({className:s,...a},u)=>M.createElement(x3,{ref:u,iconNode:n,className:zm(`lucide-${m3(Op(e))}`,`lucide-${e}`,s),...a}));return i.displayName=Op(e),i};/**
92
- * @license lucide-react v1.31.0 - ISC
91
+ */const Q=(e,n)=>{const i=M.forwardRef(({className:s,...a},u)=>M.createElement(x3,{ref:u,iconNode:n,className:Fm(`lucide-${m3(Vp(e))}`,`lucide-${e}`,s),...a}));return i.displayName=Vp(e),i};/**
92
+ * @license lucide-react v1.38.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
96
  */const _3=[["path",{d:"M6.87 6.87a8 8 0 1 0 11.26 11.26",key:"3on8tj"}],["path",{d:"M19.9 14.25a8 8 0 0 0-9.15-9.15",key:"15ghsc"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.26 18.67 4 21",key:"yzmioq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 4 2 6",key:"1ycko6"}]],k3=Q("alarm-clock-off",_3);/**
97
- * @license lucide-react v1.31.0 - ISC
97
+ * @license lucide-react v1.38.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
101
  */const S3=[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]],C3=Q("alarm-clock",S3);/**
102
- * @license lucide-react v1.31.0 - ISC
102
+ * @license lucide-react v1.38.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
106
  */const E3=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],T3=Q("archive",E3);/**
107
- * @license lucide-react v1.31.0 - ISC
107
+ * @license lucide-react v1.38.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
111
  */const P3=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],b3=Q("arrow-up-right",P3);/**
112
- * @license lucide-react v1.31.0 - ISC
112
+ * @license lucide-react v1.38.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
116
  */const M3=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],j3=Q("arrow-up",M3);/**
117
- * @license lucide-react v1.31.0 - ISC
117
+ * @license lucide-react v1.38.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
121
  */const L3=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],N3=Q("bot",L3);/**
122
- * @license lucide-react v1.31.0 - ISC
122
+ * @license lucide-react v1.38.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
126
  */const A3=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],R3=Q("braces",A3);/**
127
- * @license lucide-react v1.31.0 - ISC
127
+ * @license lucide-react v1.38.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
131
  */const D3=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],O3=Q("brain",D3);/**
132
- * @license lucide-react v1.31.0 - ISC
132
+ * @license lucide-react v1.38.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
136
  */const V3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ma=Q("check",V3);/**
137
- * @license lucide-react v1.31.0 - ISC
137
+ * @license lucide-react v1.38.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
141
  */const I3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ac=Q("chevron-down",I3);/**
142
- * @license lucide-react v1.31.0 - ISC
142
+ * @license lucide-react v1.38.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
146
  */const $3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],z3=Q("chevron-left",$3);/**
147
- * @license lucide-react v1.31.0 - ISC
147
+ * @license lucide-react v1.38.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
151
  */const F3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],B3=Q("chevron-right",F3);/**
152
- * @license lucide-react v1.31.0 - ISC
152
+ * @license lucide-react v1.38.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
156
  */const H3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],U3=Q("chevron-up",H3);/**
157
- * @license lucide-react v1.31.0 - ISC
157
+ * @license lucide-react v1.38.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const W3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],q3=Q("circle-check",W3);/**
162
- * @license lucide-react v1.31.0 - ISC
161
+ */const W3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],q3=Q("circle-check",W3);/**
162
+ * @license lucide-react v1.38.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
166
  */const K3=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],G3=Q("circle-dashed",K3);/**
167
- * @license lucide-react v1.31.0 - ISC
167
+ * @license lucide-react v1.38.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
171
  */const Y3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],X3=Q("circle-question-mark",Y3);/**
172
- * @license lucide-react v1.31.0 - ISC
172
+ * @license lucide-react v1.38.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const Z3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Q3=Q("circle-x",Z3);/**
177
- * @license lucide-react v1.31.0 - ISC
176
+ */const Z3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Q3=Q("circle",Z3);/**
177
+ * @license lucide-react v1.38.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const J3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e5=Q("circle",J3);/**
182
- * @license lucide-react v1.31.0 - ISC
181
+ */const J3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],e5=Q("circle-x",J3);/**
182
+ * @license lucide-react v1.38.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
186
  */const t5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],n5=Q("clock-3",t5);/**
187
- * @license lucide-react v1.31.0 - ISC
187
+ * @license lucide-react v1.38.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
191
  */const r5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],i5=Q("clock",r5);/**
192
- * @license lucide-react v1.31.0 - ISC
192
+ * @license lucide-react v1.38.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
196
  */const s5=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],o5=Q("code-xml",s5);/**
197
- * @license lucide-react v1.31.0 - ISC
197
+ * @license lucide-react v1.38.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
201
  */const a5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],l5=Q("columns-2",a5);/**
202
- * @license lucide-react v1.31.0 - ISC
202
+ * @license lucide-react v1.38.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
206
  */const u5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Wc=Q("copy",u5);/**
207
- * @license lucide-react v1.31.0 - ISC
207
+ * @license lucide-react v1.38.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
211
  */const c5=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],f5=Q("corner-down-right",c5);/**
212
- * @license lucide-react v1.31.0 - ISC
212
+ * @license lucide-react v1.38.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
216
  */const d5=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],h5=Q("database",d5);/**
217
- * @license lucide-react v1.31.0 - ISC
217
+ * @license lucide-react v1.38.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
221
  */const p5=[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z",key:"1f1r0c"}]],m5=Q("diamond",p5);/**
222
- * @license lucide-react v1.31.0 - ISC
222
+ * @license lucide-react v1.38.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
226
  */const y5=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],g5=Q("download",y5);/**
227
- * @license lucide-react v1.31.0 - ISC
227
+ * @license lucide-react v1.38.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
231
  */const v5=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],w5=Q("ellipsis",v5);/**
232
- * @license lucide-react v1.31.0 - ISC
232
+ * @license lucide-react v1.38.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
236
  */const x5=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],_5=Q("file",x5);/**
237
- * @license lucide-react v1.31.0 - ISC
237
+ * @license lucide-react v1.38.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
241
  */const k5=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],S5=Q("folder-open",k5);/**
242
- * @license lucide-react v1.31.0 - ISC
242
+ * @license lucide-react v1.38.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
246
  */const C5=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],E5=Q("folder-plus",C5);/**
247
- * @license lucide-react v1.31.0 - ISC
247
+ * @license lucide-react v1.38.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
251
  */const T5=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],P5=Q("folder",T5);/**
252
- * @license lucide-react v1.31.0 - ISC
252
+ * @license lucide-react v1.38.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
256
  */const b5=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],M5=Q("git-branch",b5);/**
257
- * @license lucide-react v1.31.0 - ISC
257
+ * @license lucide-react v1.38.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
261
  */const j5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],L5=Q("globe",j5);/**
262
- * @license lucide-react v1.31.0 - ISC
262
+ * @license lucide-react v1.38.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
266
  */const N5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],A5=Q("info",N5);/**
267
- * @license lucide-react v1.31.0 - ISC
267
+ * @license lucide-react v1.38.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
271
  */const R5=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],D5=Q("link",R5);/**
272
- * @license lucide-react v1.31.0 - ISC
272
+ * @license lucide-react v1.38.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
276
  */const O5=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],V5=Q("list-checks",O5);/**
277
- * @license lucide-react v1.31.0 - ISC
277
+ * @license lucide-react v1.38.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
281
  */const I5=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],$5=Q("list-plus",I5);/**
282
- * @license lucide-react v1.31.0 - ISC
282
+ * @license lucide-react v1.38.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
286
  */const z5=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],F5=Q("list-todo",z5);/**
287
- * @license lucide-react v1.31.0 - ISC
287
+ * @license lucide-react v1.38.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const B5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Fm=Q("loader-circle",B5);/**
292
- * @license lucide-react v1.31.0 - ISC
291
+ */const B5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Bm=Q("loader-circle",B5);/**
292
+ * @license lucide-react v1.38.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
296
  */const H5=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],U5=Q("maximize-2",H5);/**
297
- * @license lucide-react v1.31.0 - ISC
297
+ * @license lucide-react v1.38.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
300
300
  * See the LICENSE file in the root directory of this source tree.
301
301
  */const W5=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],q5=Q("maximize",W5);/**
302
- * @license lucide-react v1.31.0 - ISC
302
+ * @license lucide-react v1.38.0 - ISC
303
303
  *
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
306
  */const K5=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],G5=Q("message-square-plus",K5);/**
307
- * @license lucide-react v1.31.0 - ISC
307
+ * @license lucide-react v1.38.0 - ISC
308
308
  *
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
311
  */const Y5=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],X5=Q("message-square-text",Y5);/**
312
- * @license lucide-react v1.31.0 - ISC
312
+ * @license lucide-react v1.38.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
316
  */const Z5=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Q5=Q("minimize-2",Z5);/**
317
- * @license lucide-react v1.31.0 - ISC
317
+ * @license lucide-react v1.38.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
321
  */const J5=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],e4=Q("monitor",J5);/**
322
- * @license lucide-react v1.31.0 - ISC
322
+ * @license lucide-react v1.38.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
326
  */const t4=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],n4=Q("moon",t4);/**
327
- * @license lucide-react v1.31.0 - ISC
327
+ * @license lucide-react v1.38.0 - ISC
328
328
  *
329
329
  * This source code is licensed under the ISC license.
330
330
  * See the LICENSE file in the root directory of this source tree.
331
331
  */const r4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]],i4=Q("panel-bottom",r4);/**
332
- * @license lucide-react v1.31.0 - ISC
332
+ * @license lucide-react v1.38.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
336
  */const s4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],o4=Q("panel-left",s4);/**
337
- * @license lucide-react v1.31.0 - ISC
337
+ * @license lucide-react v1.38.0 - ISC
338
338
  *
339
339
  * This source code is licensed under the ISC license.
340
340
  * See the LICENSE file in the root directory of this source tree.
341
341
  */const a4=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],l4=Q("paperclip",a4);/**
342
- * @license lucide-react v1.31.0 - ISC
342
+ * @license lucide-react v1.38.0 - ISC
343
343
  *
344
344
  * This source code is licensed under the ISC license.
345
345
  * See the LICENSE file in the root directory of this source tree.
346
346
  */const u4=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],c4=Q("pause",u4);/**
347
- * @license lucide-react v1.31.0 - ISC
347
+ * @license lucide-react v1.38.0 - ISC
348
348
  *
349
349
  * This source code is licensed under the ISC license.
350
350
  * See the LICENSE file in the root directory of this source tree.
351
351
  */const f4=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],d4=Q("pencil",f4);/**
352
- * @license lucide-react v1.31.0 - ISC
352
+ * @license lucide-react v1.38.0 - ISC
353
353
  *
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
356
  */const h4=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],p4=Q("play",h4);/**
357
- * @license lucide-react v1.31.0 - ISC
357
+ * @license lucide-react v1.38.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
361
  */const m4=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],y4=Q("plug",m4);/**
362
- * @license lucide-react v1.31.0 - ISC
362
+ * @license lucide-react v1.38.0 - ISC
363
363
  *
364
364
  * This source code is licensed under the ISC license.
365
365
  * See the LICENSE file in the root directory of this source tree.
366
366
  */const g4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],v4=Q("plus",g4);/**
367
- * @license lucide-react v1.31.0 - ISC
367
+ * @license lucide-react v1.38.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
371
  */const w4=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],x4=Q("refresh-cw",w4);/**
372
- * @license lucide-react v1.31.0 - ISC
372
+ * @license lucide-react v1.38.0 - ISC
373
373
  *
374
374
  * This source code is licensed under the ISC license.
375
375
  * See the LICENSE file in the root directory of this source tree.
376
376
  */const _4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],k4=Q("rows-2",_4);/**
377
- * @license lucide-react v1.31.0 - ISC
377
+ * @license lucide-react v1.38.0 - ISC
378
378
  *
379
379
  * This source code is licensed under the ISC license.
380
380
  * See the LICENSE file in the root directory of this source tree.
381
381
  */const S4=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],C4=Q("scan-search",S4);/**
382
- * @license lucide-react v1.31.0 - ISC
382
+ * @license lucide-react v1.38.0 - ISC
383
383
  *
384
384
  * This source code is licensed under the ISC license.
385
385
  * See the LICENSE file in the root directory of this source tree.
386
386
  */const E4=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],T4=Q("search",E4);/**
387
- * @license lucide-react v1.31.0 - ISC
387
+ * @license lucide-react v1.38.0 - ISC
388
388
  *
389
389
  * This source code is licensed under the ISC license.
390
390
  * See the LICENSE file in the root directory of this source tree.
391
391
  */const P4=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],b4=Q("send",P4);/**
392
- * @license lucide-react v1.31.0 - ISC
392
+ * @license lucide-react v1.38.0 - ISC
393
393
  *
394
394
  * This source code is licensed under the ISC license.
395
395
  * See the LICENSE file in the root directory of this source tree.
396
396
  */const M4=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],j4=Q("settings",M4);/**
397
- * @license lucide-react v1.31.0 - ISC
397
+ * @license lucide-react v1.38.0 - ISC
398
398
  *
399
399
  * This source code is licensed under the ISC license.
400
400
  * See the LICENSE file in the root directory of this source tree.
401
401
  */const L4=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],N4=Q("share-2",L4);/**
402
- * @license lucide-react v1.31.0 - ISC
402
+ * @license lucide-react v1.38.0 - ISC
403
403
  *
404
404
  * This source code is licensed under the ISC license.
405
405
  * See the LICENSE file in the root directory of this source tree.
406
406
  */const A4=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],R4=Q("shield-alert",A4);/**
407
- * @license lucide-react v1.31.0 - ISC
407
+ * @license lucide-react v1.38.0 - ISC
408
408
  *
409
409
  * This source code is licensed under the ISC license.
410
410
  * See the LICENSE file in the root directory of this source tree.
411
411
  */const D4=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],O4=Q("shield-check",D4);/**
412
- * @license lucide-react v1.31.0 - ISC
412
+ * @license lucide-react v1.38.0 - ISC
413
413
  *
414
414
  * This source code is licensed under the ISC license.
415
415
  * See the LICENSE file in the root directory of this source tree.
416
416
  */const V4=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],I4=Q("shield",V4);/**
417
- * @license lucide-react v1.31.0 - ISC
417
+ * @license lucide-react v1.38.0 - ISC
418
418
  *
419
419
  * This source code is licensed under the ISC license.
420
420
  * See the LICENSE file in the root directory of this source tree.
421
421
  */const $4=[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]],z4=Q("shrink",$4);/**
422
- * @license lucide-react v1.31.0 - ISC
422
+ * @license lucide-react v1.38.0 - ISC
423
423
  *
424
424
  * This source code is licensed under the ISC license.
425
425
  * See the LICENSE file in the root directory of this source tree.
426
426
  */const F4=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],B4=Q("sliders-horizontal",F4);/**
427
- * @license lucide-react v1.31.0 - ISC
427
+ * @license lucide-react v1.38.0 - ISC
428
428
  *
429
429
  * This source code is licensed under the ISC license.
430
430
  * See the LICENSE file in the root directory of this source tree.
431
431
  */const H4=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],U4=Q("sparkles",H4);/**
432
- * @license lucide-react v1.31.0 - ISC
432
+ * @license lucide-react v1.38.0 - ISC
433
433
  *
434
434
  * This source code is licensed under the ISC license.
435
435
  * See the LICENSE file in the root directory of this source tree.
436
436
  */const W4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],q4=Q("square-minus",W4);/**
437
- * @license lucide-react v1.31.0 - ISC
437
+ * @license lucide-react v1.38.0 - ISC
438
438
  *
439
439
  * This source code is licensed under the ISC license.
440
440
  * See the LICENSE file in the root directory of this source tree.
441
441
  */const K4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],G4=Q("square-plus",K4);/**
442
- * @license lucide-react v1.31.0 - ISC
442
+ * @license lucide-react v1.38.0 - ISC
443
443
  *
444
444
  * This source code is licensed under the ISC license.
445
445
  * See the LICENSE file in the root directory of this source tree.
446
446
  */const Y4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],X4=Q("square",Y4);/**
447
- * @license lucide-react v1.31.0 - ISC
447
+ * @license lucide-react v1.38.0 - ISC
448
448
  *
449
449
  * This source code is licensed under the ISC license.
450
450
  * See the LICENSE file in the root directory of this source tree.
451
451
  */const Z4=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Q4=Q("sun",Z4);/**
452
- * @license lucide-react v1.31.0 - ISC
452
+ * @license lucide-react v1.38.0 - ISC
453
453
  *
454
454
  * This source code is licensed under the ISC license.
455
455
  * See the LICENSE file in the root directory of this source tree.
456
456
  */const J4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],e6=Q("target",J4);/**
457
- * @license lucide-react v1.31.0 - ISC
457
+ * @license lucide-react v1.38.0 - ISC
458
458
  *
459
459
  * This source code is licensed under the ISC license.
460
460
  * See the LICENSE file in the root directory of this source tree.
461
461
  */const t6=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],n6=Q("text-wrap",t6);/**
462
- * @license lucide-react v1.31.0 - ISC
462
+ * @license lucide-react v1.38.0 - ISC
463
463
  *
464
464
  * This source code is licensed under the ISC license.
465
465
  * See the LICENSE file in the root directory of this source tree.
466
466
  */const r6=[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]],i6=Q("thumbs-down",r6);/**
467
- * @license lucide-react v1.31.0 - ISC
467
+ * @license lucide-react v1.38.0 - ISC
468
468
  *
469
469
  * This source code is licensed under the ISC license.
470
470
  * See the LICENSE file in the root directory of this source tree.
471
471
  */const s6=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],o6=Q("thumbs-up",s6);/**
472
- * @license lucide-react v1.31.0 - ISC
472
+ * @license lucide-react v1.38.0 - ISC
473
473
  *
474
474
  * This source code is licensed under the ISC license.
475
475
  * See the LICENSE file in the root directory of this source tree.
476
476
  */const a6=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],l6=Q("trash-2",a6);/**
477
- * @license lucide-react v1.31.0 - ISC
477
+ * @license lucide-react v1.38.0 - ISC
478
478
  *
479
479
  * This source code is licensed under the ISC license.
480
480
  * See the LICENSE file in the root directory of this source tree.
481
- */const u6=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Bm=Q("triangle-alert",u6);/**
482
- * @license lucide-react v1.31.0 - ISC
481
+ */const u6=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Hm=Q("triangle-alert",u6);/**
482
+ * @license lucide-react v1.38.0 - ISC
483
483
  *
484
484
  * This source code is licensed under the ISC license.
485
485
  * See the LICENSE file in the root directory of this source tree.
486
486
  */const c6=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],f6=Q("triangle",c6);/**
487
- * @license lucide-react v1.31.0 - ISC
487
+ * @license lucide-react v1.38.0 - ISC
488
488
  *
489
489
  * This source code is licensed under the ISC license.
490
490
  * See the LICENSE file in the root directory of this source tree.
491
491
  */const d6=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],h6=Q("undo-2",d6);/**
492
- * @license lucide-react v1.31.0 - ISC
492
+ * @license lucide-react v1.38.0 - ISC
493
493
  *
494
494
  * This source code is licensed under the ISC license.
495
495
  * See the LICENSE file in the root directory of this source tree.
496
496
  */const p6=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],m6=Q("user",p6);/**
497
- * @license lucide-react v1.31.0 - ISC
497
+ * @license lucide-react v1.38.0 - ISC
498
498
  *
499
499
  * This source code is licensed under the ISC license.
500
500
  * See the LICENSE file in the root directory of this source tree.
501
501
  */const y6=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],g6=Q("users-round",y6);/**
502
- * @license lucide-react v1.31.0 - ISC
502
+ * @license lucide-react v1.38.0 - ISC
503
503
  *
504
504
  * This source code is licensed under the ISC license.
505
505
  * See the LICENSE file in the root directory of this source tree.
506
506
  */const v6=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],w6=Q("wand-sparkles",v6);/**
507
- * @license lucide-react v1.31.0 - ISC
507
+ * @license lucide-react v1.38.0 - ISC
508
508
  *
509
509
  * This source code is licensed under the ISC license.
510
510
  * See the LICENSE file in the root directory of this source tree.
511
511
  */const x6=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],_6=Q("wrench",x6);/**
512
- * @license lucide-react v1.31.0 - ISC
512
+ * @license lucide-react v1.38.0 - ISC
513
513
  *
514
514
  * This source code is licensed under the ISC license.
515
515
  * See the LICENSE file in the root directory of this source tree.
516
- */const k6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hm=Q("x",k6),S6="_dot_1nv0v_3",C6="_matrix_1nv0v_4",Vp={dot:S6,matrix:C6},E6="_root_1ti1t_3",T6="_row_1ti1t_10",P6="_leading_1ti1t_30",b6="_iconIdle_1ti1t_55",M6="_chevronHover_1ti1t_61",j6="_title_1ti1t_77",ar={root:E6,row:T6,leading:P6,iconIdle:b6,chevronHover:M6,title:j6},Um=M.createContext({});function L6(e){const n=M.useRef(null);return n.current===null&&(n.current=e()),n.current}const N6=typeof window<"u",A6=N6?M.useLayoutEffect:M.useEffect,qc=M.createContext(null);function Kc(e,n){e.indexOf(n)===-1&&e.push(n)}function Zo(e,n){const i=e.indexOf(n);i>-1&&e.splice(i,1)}const un=(e,n,i)=>i>n?n:i<e?e:i;let ya=()=>{};const Un={},Wm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qm=e=>typeof e=="object"&&e!==null,Km=e=>/^0[^.\s]+$/u.test(e);function Gm(e){let n;return()=>(n===void 0&&(n=e()),n)}const Vt=e=>e,ms=(...e)=>e.reduce((n,i)=>s=>i(n(s))),us=(e,n,i)=>{const s=n-e;return s?(i-e)/s:1};class Gc{constructor(){this.subscriptions=[]}add(n){return Kc(this.subscriptions,n),()=>Zo(this.subscriptions,n)}notify(n,i,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](n,i,s);else for(let u=0;u<a;u++){const c=this.subscriptions[u];c&&c(n,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bt=e=>e*1e3,Ot=e=>e/1e3,Ym=(e,n)=>n?e*(1e3/n):0,Xm=(e,n,i)=>(((1-3*i+3*n)*e+(3*i-6*n))*e+3*n)*e,R6=1e-7,D6=12;function O6(e,n,i,s,a){let u,c,d=0;do c=n+(i-n)/2,u=Xm(c,s,a)-e,u>0?i=c:n=c;while(Math.abs(u)>R6&&++d<D6);return c}function ys(e,n,i,s){if(e===n&&i===s)return Vt;const a=u=>O6(u,0,1,e,i);return u=>u===0||u===1?u:Xm(a(u),n,s)}const Zm=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,Qm=e=>n=>1-e(1-n),Jm=ys(.33,1.53,.69,.99),Yc=Qm(Jm),e0=Zm(Yc),t0=e=>e>=1?1:(e*=2)<1?.5*Yc(e):.5*(2-Math.pow(2,-10*(e-1))),Xc=e=>1-Math.sin(Math.acos(e)),n0=Qm(Xc),r0=Zm(Xc),V6=ys(.42,0,1,1),I6=ys(0,0,.58,1),i0=ys(.42,0,.58,1),$6=e=>Array.isArray(e)&&typeof e[0]!="number",s0=e=>Array.isArray(e)&&typeof e[0]=="number",z6={linear:Vt,easeIn:V6,easeInOut:i0,easeOut:I6,circIn:Xc,circInOut:r0,circOut:n0,backIn:Yc,backInOut:e0,backOut:Jm,anticipate:t0},F6=e=>typeof e=="string",Ip=e=>{if(s0(e)){ya(e.length===4);const[n,i,s,a]=e;return ys(n,i,s,a)}else if(F6(e))return z6[e];return e},No=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function B6(e){let n=new Set,i=new Set,s=!1,a=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){u.has(m)&&(p.schedule(m),e()),m(c)}const p={schedule:(m,y=!1,w=!1)=>{const k=w&&s?n:i;return y&&u.add(m),k.add(m),m},cancel:m=>{i.delete(m),u.delete(m)},process:m=>{if(c=m,s){a=!0;return}s=!0;const y=n;n=i,i=y,n.forEach(d),n.clear(),s=!1,a&&(a=!1,p.process(m))}};return p}const H6=40;function o0(e,n){let i=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=No.reduce((O,z)=>(O[z]=B6(u),O),{}),{setup:d,read:p,resolveKeyframes:m,preUpdate:y,update:w,preRender:g,render:k,postRender:x}=c,C=()=>{const O=Un.useManualTiming,z=O?a.timestamp:performance.now();i=!1,O||(a.delta=s?1e3/60:Math.max(Math.min(z-a.timestamp,H6),1)),a.timestamp=z,a.isProcessing=!0,d.process(a),p.process(a),m.process(a),y.process(a),w.process(a),g.process(a),k.process(a),x.process(a),a.isProcessing=!1,i&&n&&(s=!1,e(C))},T=()=>{i=!0,s=!0,a.isProcessing||e(C)};return{schedule:No.reduce((O,z)=>{const V=c[z];return O[z]=(F,U=!1,q=!1)=>(i||T(),V.schedule(F,U,q)),O},{}),cancel:O=>{for(let z=0;z<No.length;z++)c[No[z]].cancel(O)},state:a,steps:c}}const{schedule:je,cancel:Wn,state:tt,steps:Tu}=o0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vt,!0);let $o;function U6(){$o=void 0}const ft={now:()=>($o===void 0&&ft.set(tt.isProcessing||Un.useManualTiming?tt.timestamp:performance.now()),$o),set:e=>{$o=e,queueMicrotask(U6)}},a0=e=>n=>typeof n=="string"&&n.startsWith(e),l0=a0("--"),W6=a0("var(--"),Zc=e=>W6(e)?q6.test(e.split("/*")[0].trim()):!1,q6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $p(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const oi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cs={...oi,transform:e=>un(0,1,e)},Ao={...oi,default:1},Ji=e=>Math.round(e*1e5)/1e5,Qc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function K6(e){return e==null}const G6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jc=(e,n)=>i=>!!(typeof i=="string"&&G6.test(i)&&i.startsWith(e)||n&&!K6(i)&&Object.prototype.hasOwnProperty.call(i,n)),u0=(e,n,i)=>s=>{if(typeof s!="string")return s;const[a,u,c,d]=s.match(Qc);return{[e]:parseFloat(a),[n]:parseFloat(u),[i]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},Y6=e=>un(0,255,e),Pu={...oi,transform:e=>Math.round(Y6(e))},yr={test:Jc("rgb","red"),parse:u0("red","green","blue"),transform:({red:e,green:n,blue:i,alpha:s=1})=>"rgba("+Pu.transform(e)+", "+Pu.transform(n)+", "+Pu.transform(i)+", "+Ji(cs.transform(s))+")"};function X6(e){let n="",i="",s="",a="";return e.length>5?(n=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(n=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),n+=n,i+=i,s+=s,a+=a),{red:parseInt(n,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const lc={test:Jc("#"),parse:X6,transform:yr.transform},gs=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),xn=gs("deg"),an=gs("%"),se=gs("px"),Z6=gs("vh"),Q6=gs("vw"),zp={...an,parse:e=>an.parse(e)/100,transform:e=>an.transform(e*100)},Xr={test:Jc("hsl","hue"),parse:u0("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+an.transform(Ji(n))+", "+an.transform(Ji(i))+", "+Ji(cs.transform(s))+")"},qe={test:e=>yr.test(e)||lc.test(e)||Xr.test(e),parse:e=>yr.test(e)?yr.parse(e):Xr.test(e)?Xr.parse(e):lc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yr.transform(e):Xr.transform(e),getAnimatableNone:e=>{const n=qe.parse(e);return n.alpha=0,qe.transform(n)}},J6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ew(e){var n,i;return isNaN(e)&&typeof e=="string"&&(((n=e.match(Qc))==null?void 0:n.length)||0)+(((i=e.match(J6))==null?void 0:i.length)||0)>0}const c0="number",f0="color",tw="var",nw="var(",Fp="${}",rw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ni(e){const n=e.toString(),i=[],s={color:[],number:[],var:[]},a=[];let u=0;const d=n.replace(rw,p=>(qe.test(p)?(s.color.push(u),a.push(f0),i.push(qe.parse(p))):p.startsWith(nw)?(s.var.push(u),a.push(tw),i.push(p)):(s.number.push(u),a.push(c0),i.push(parseFloat(p))),++u,Fp)).split(Fp);return{values:i,split:d,indexes:s,types:a}}function iw(e){return ni(e).values}function d0({split:e,types:n}){const i=e.length;return s=>{let a="";for(let u=0;u<i;u++)if(a+=e[u],s[u]!==void 0){const c=n[u];c===c0?a+=Ji(s[u]):c===f0?a+=qe.transform(s[u]):a+=s[u]}return a}}function sw(e){return d0(ni(e))}const ow=e=>typeof e=="number"?0:qe.test(e)?qe.getAnimatableNone(e):e,aw=(e,n)=>typeof e=="number"?n!=null&&n.trim().endsWith("/")?e:0:ow(e);function lw(e){const n=ni(e);return d0(n)(n.values.map((s,a)=>aw(s,n.split[a])))}const Yt={test:ew,parse:iw,createTransformer:sw,getAnimatableNone:lw};function bu(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*6*i:i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function uw({hue:e,saturation:n,lightness:i,alpha:s}){e/=360,n/=100,i/=100;let a=0,u=0,c=0;if(!n)a=u=c=i;else{const d=i<.5?i*(1+n):i+n-i*n,p=2*i-d;a=bu(p,d,e+1/3),u=bu(p,d,e),c=bu(p,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function Qo(e,n){return i=>i>0?n:e}const Me=(e,n,i)=>e+(n-e)*i,Mu=(e,n,i)=>{const s=e*e,a=i*(n*n-s)+s;return a<0?0:Math.sqrt(a)},cw=[lc,yr,Xr],fw=e=>cw.find(n=>n.test(e));function Bp(e){const n=fw(e);if(!n)return!1;let i=n.parse(e);return n===Xr&&(i=uw(i)),i}const Hp=(e,n)=>{const i=Bp(e),s=Bp(n);if(!i||!s)return Qo(e,n);const a={...i};return u=>(a.red=Mu(i.red,s.red,u),a.green=Mu(i.green,s.green,u),a.blue=Mu(i.blue,s.blue,u),a.alpha=Me(i.alpha,s.alpha,u),yr.transform(a))},uc=new Set(["none","hidden"]);function dw(e,n){return uc.has(e)?i=>i<=0?e:n:i=>i>=1?n:e}function hw(e,n){return i=>Me(e,n,i)}function ef(e){return typeof e=="number"?hw:typeof e=="string"?Zc(e)?Qo:qe.test(e)?Hp:yw:Array.isArray(e)?h0:typeof e=="object"?qe.test(e)?Hp:pw:Qo}function h0(e,n){const i=[...e],s=i.length,a=e.map((u,c)=>ef(u)(u,n[c]));return u=>{for(let c=0;c<s;c++)i[c]=a[c](u);return i}}function pw(e,n){const i={...e,...n},s={};for(const a in i)e[a]!==void 0&&n[a]!==void 0&&(s[a]=ef(e[a])(e[a],n[a]));return a=>{for(const u in s)i[u]=s[u](a);return i}}function mw(e,n){const i=[],s={color:0,var:0,number:0};for(let a=0;a<n.values.length;a++){const u=n.types[a],c=e.indexes[u][s[u]],d=e.values[c]??0;i[a]=d,s[u]++}return i}const yw=(e,n)=>{const i=Yt.createTransformer(n),s=ni(e),a=ni(n);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?uc.has(e)&&!a.values.length||uc.has(n)&&!s.values.length?dw(e,n):ms(h0(mw(s,a),a.values),i):Qo(e,n)};function p0(e,n,i){return typeof e=="number"&&typeof n=="number"&&typeof i=="number"?Me(e,n,i):ef(e)(e,n)}const gw=e=>{const n=({timestamp:i})=>e(i);return{start:(i=!0)=>je.update(n,i),stop:()=>Wn(n),now:()=>tt.isProcessing?tt.timestamp:ft.now()}},m0=(e,n,i=10)=>{let s="";const a=Math.max(Math.round(n/i),2);for(let u=0;u<a;u++)s+=Math.round(e(u/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Jo=2e4;function tf(e){let n=0;const i=50;let s=e.next(n);for(;!s.done&&n<Jo;)n+=i,s=e.next(n);return n>=Jo?1/0:n}function vw(e,n=100,i){const s=i({...e,keyframes:[0,n]}),a=Math.min(tf(s),Jo);return{type:"keyframes",ease:u=>s.next(a*u).value/n,duration:Ot(a)}}const Fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function cc(e,n){return e*Math.sqrt(1-n*n)}const ww=12;function xw(e,n,i){let s=i;for(let a=1;a<ww;a++)s=s-e(s)/n(s);return s}const ju=.001;function _w({duration:e=Fe.duration,bounce:n=Fe.bounce,velocity:i=Fe.velocity,mass:s=Fe.mass}){let a,u,c=1-n;c=un(Fe.minDamping,Fe.maxDamping,c),e=un(Fe.minDuration,Fe.maxDuration,Ot(e)),c<1?(a=m=>{const y=m*c,w=y*e,g=y-i,k=cc(m,c),x=Math.exp(-w);return ju-g/k*x},u=m=>{const w=m*c*e,g=w*i+i,k=Math.pow(c,2)*Math.pow(m,2)*e,x=Math.exp(-w),C=cc(Math.pow(m,2),c);return(-a(m)+ju>0?-1:1)*((g-k)*x)/C}):(a=m=>{const y=Math.exp(-m*e),w=(m-i)*e+1;return-ju+y*w},u=m=>{const y=Math.exp(-m*e),w=(i-m)*(e*e);return y*w});const d=5/e,p=xw(a,u,d);if(e=bt(e),isNaN(p))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:e};{const m=Math.pow(p,2)*s;return{stiffness:m,damping:c*2*Math.sqrt(s*m),duration:e}}}const kw=["duration","bounce"],Sw=["stiffness","damping","mass"];function Up(e,n){return n.some(i=>e[i]!==void 0)}function Cw(e){let n={velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1,...e};if(!Up(e,Sw)&&Up(e,kw))if(n.velocity=0,e.visualDuration){const i=e.visualDuration,s=2*Math.PI/(i*1.2),a=s*s,u=2*un(.05,1,1-(e.bounce||0))*Math.sqrt(a);n={...n,mass:Fe.mass,stiffness:a,damping:u}}else{const i=_w({...e,velocity:0});n={...n,...i,mass:Fe.mass},n.isResolvedFromDuration=!0}return n}function ea(e=Fe.visualDuration,n=Fe.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:a}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],d={done:!1,value:u},{stiffness:p,damping:m,mass:y,duration:w,velocity:g,isResolvedFromDuration:k}=Cw({...i,velocity:-Ot(i.velocity||0)}),x=g||0,C=m/(2*Math.sqrt(p*y)),T=c-u,A=Ot(Math.sqrt(p/y)),D=Math.abs(T)<5;s||(s=D?Fe.restSpeed.granular:Fe.restSpeed.default),a||(a=D?Fe.restDelta.granular:Fe.restDelta.default);let O,z,V,F,U,q;if(C<1)V=cc(A,C),F=(x+C*A*T)/V,O=B=>{const oe=Math.exp(-C*A*B);return c-oe*(F*Math.sin(V*B)+T*Math.cos(V*B))},U=C*A*F+T*V,q=C*A*T-F*V,z=B=>Math.exp(-C*A*B)*(U*Math.sin(V*B)+q*Math.cos(V*B));else if(C===1){O=oe=>c-Math.exp(-A*oe)*(T+(x+A*T)*oe);const B=x+A*T;z=oe=>Math.exp(-A*oe)*(A*B*oe-x)}else{const B=A*Math.sqrt(C*C-1);O=ae=>{const ce=Math.exp(-C*A*ae),ve=Math.min(B*ae,300);return c-ce*((x+C*A*T)*Math.sinh(ve)+B*T*Math.cosh(ve))/B};const oe=(x+C*A*T)/B,me=C*A*oe-T*B,J=C*A*T-oe*B;z=ae=>{const ce=Math.exp(-C*A*ae),ve=Math.min(B*ae,300);return ce*(me*Math.sinh(ve)+J*Math.cosh(ve))}}const $={calculatedDuration:k&&w||null,velocity:B=>bt(z(B)),next:B=>{if(!k&&C<1){const me=Math.exp(-C*A*B),J=Math.sin(V*B),ae=Math.cos(V*B),ce=c-me*(F*J+T*ae),ve=bt(me*(U*J+q*ae));return d.done=Math.abs(ve)<=s&&Math.abs(c-ce)<=a,d.value=d.done?c:ce,d}const oe=O(B);if(k)d.done=B>=w;else{const me=bt(z(B));d.done=Math.abs(me)<=s&&Math.abs(c-oe)<=a}return d.value=d.done?c:oe,d},toString:()=>{const B=Math.min(tf($),Jo),oe=m0(me=>$.next(B*me).value,B,30);return B+"ms "+oe},toTransition:()=>{}};return $}ea.applyToOptions=e=>{const n=vw(e,100,ea);return e.ease=n.ease,e.duration=bt(n.duration),e.type="keyframes",e};const Ew=5;function y0(e,n,i){const s=Math.max(n-Ew,0);return Ym(i-e(s),n-s)}function fc({keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:u=500,modifyTarget:c,min:d,max:p,restDelta:m=.5,restSpeed:y}){const w=e[0],g={done:!1,value:w},k=q=>d!==void 0&&q<d||p!==void 0&&q>p,x=q=>d===void 0?p:p===void 0||Math.abs(d-q)<Math.abs(p-q)?d:p;let C=i*n;const T=w+C,A=c===void 0?T:c(T);A!==T&&(C=A-w);const D=q=>-C*Math.exp(-q/s),O=q=>A+D(q),z=q=>{const $=D(q),B=O(q);g.done=Math.abs($)<=m,g.value=g.done?A:B};let V,F;const U=q=>{k(g.value)&&(V=q,F=ea({keyframes:[g.value,x(g.value)],velocity:y0(O,q,g.value),damping:a,stiffness:u,restDelta:m,restSpeed:y}))};return U(0),{calculatedDuration:null,next:q=>{let $=!1;return!F&&V===void 0&&($=!0,z(q),U(q)),V!==void 0&&q>=V?F.next(q-V):(!$&&z(q),g)}}}function Tw(e,n,i){const s=[],a=i||Un.mix||p0,u=e.length-1;for(let c=0;c<u;c++){let d=a(e[c],e[c+1]);if(n){const p=Array.isArray(n)?n[c]||Vt:n;d=ms(p,d)}s.push(d)}return s}function Pw(e,n,{clamp:i=!0,ease:s,mixer:a}={}){const u=e.length;if(ya(u===n.length),u===1)return()=>n[0];if(u===2&&n[0]===n[1])return()=>n[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),n=[...n].reverse());const d=Tw(n,s,a),p=d.length,m=y=>{if(c&&y<e[0])return n[0];let w=0;if(p>1)for(;w<e.length-2&&!(y<e[w+1]);w++);const g=us(e[w],e[w+1],y);return d[w](g)};return i?y=>m(un(e[0],e[u-1],y)):m}function bw(e,n){const i=e[e.length-1];for(let s=1;s<=n;s++){const a=us(0,n,s);e.push(Me(i,1,a))}}function Mw(e){const n=[0];return bw(n,e.length-1),n}function jw(e,n){return e.map(i=>i*n)}function Lw(e,n){return e.map(()=>n||i0).splice(0,e.length-1)}function es({duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}){const a=$6(s)?s.map(Ip):Ip(s),u={done:!1,value:n[0]},c=jw(i&&i.length===n.length?i:Mw(n),e),d=Pw(c,n,{ease:Array.isArray(a)?a:Lw(n,a)});return{calculatedDuration:e,next:p=>(u.value=d(p),u.done=p>=e,u)}}const Nw=e=>e!==null;function ga(e,{repeat:n,repeatType:i="loop"},s,a=1){const u=e.filter(Nw),d=a<0||n&&i!=="loop"&&n%2===1?0:u.length-1;return!d||s===void 0?u[d]:s}const Aw={decay:fc,inertia:fc,tween:es,keyframes:es,spring:ea};function g0(e){typeof e.type=="string"&&(e.type=Aw[e.type])}class nf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,i){return this.finished.then(n,i)}}const Rw=e=>e/100;class ta extends nf{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,a;const{motionValue:i}=this.options;i&&i.updatedAt!==ft.now()&&this.tick(ft.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(s=this.options).onStop)==null||a.call(s))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;g0(n);const{type:i=es,repeat:s=0,repeatDelay:a=0,repeatType:u,velocity:c=0}=n;let{keyframes:d}=n;const p=i||es;p!==es&&typeof d[0]!="number"&&(this.mixKeyframes=ms(Rw,p0(d[0],d[1])),d=[0,100]);const m=p({...n,keyframes:d});u==="mirror"&&(this.mirroredGenerator=p({...n,keyframes:[...d].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=tf(m));const{calculatedDuration:y}=m;this.calculatedDuration=y,this.resolvedDuration=y+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=m}updateTime(n){const i=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(n,i=!1){const{generator:s,totalDuration:a,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:p}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:y,repeat:w,repeatType:g,repeatDelay:k,type:x,onUpdate:C,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-a/this.speed,this.startTime)),i?this.currentTime=n:this.updateTime(n);const A=this.currentTime-m*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let O=this.currentTime,z=s;if(w){const q=Math.min(this.currentTime,a)/d;let $=Math.floor(q),B=q%1;!B&&q>=1&&(B=1),B===1&&$--,$=Math.min($,w+1),!!($%2)&&(g==="reverse"?(B=1-B,k&&(B-=k/d)):g==="mirror"&&(z=c)),O=un(0,1,B)*d}let V;D?(this.delayState.value=y[0],V=this.delayState):V=z.next(O),u&&!D&&(V.value=u(V.value));let{done:F}=V;!D&&p!==null&&(F=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return U&&x!==fc&&(V.value=ga(y,this.options,T,this.speed)),C&&C(V.value),U&&this.finish(),V}then(n,i){return this.finished.then(n,i)}get duration(){return Ot(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+Ot(n)}get time(){return Ot(this.currentTime)}set time(n){n=bt(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=n,this.tick(n))}getGeneratorVelocity(){const n=this.currentTime;if(n<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(n);const i=this.generator.next(n).value;return y0(s=>this.generator.next(s).value,n,i)}get speed(){return this.playbackSpeed}set speed(n){const i=this.playbackSpeed!==n;i&&this.driver&&this.updateTime(ft.now()),this.playbackSpeed=n,i&&this.driver&&(this.time=Ot(this.currentTime))}play(){var a,u;if(this.isStopped)return;const{driver:n=gw,startTime:i}=this.options;this.driver||(this.driver=n(c=>this.tick(c))),(u=(a=this.options).onPlay)==null||u.call(a);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ft.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(n=this.options).onComplete)==null||i.call(n)}cancel(){var n,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(n=this.options).onCancel)==null||i.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),n.observe(this)}}function Dw(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const gr=e=>e*180/Math.PI,dc=e=>{const n=gr(Math.atan2(e[1],e[0]));return hc(n)},Ow={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:dc,rotateZ:dc,skewX:e=>gr(Math.atan(e[1])),skewY:e=>gr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},hc=e=>(e=e%360,e<0&&(e+=360),e),Wp=dc,qp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qp,scaleY:Kp,scale:e=>(qp(e)+Kp(e))/2,rotateX:e=>hc(gr(Math.atan2(e[6],e[5]))),rotateY:e=>hc(gr(Math.atan2(-e[2],e[0]))),rotateZ:Wp,rotate:Wp,skewX:e=>gr(Math.atan(e[4])),skewY:e=>gr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pc(e){return e.includes("scale")?1:0}function mc(e,n){if(!e||e==="none")return pc(n);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(i)s=Vw,a=i;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ow,a=d}if(!a)return pc(n);const u=s[n],c=a[1].split(",").map($w);return typeof u=="function"?u(c):c[u]}const Iw=(e,n)=>{const{transform:i="none"}=getComputedStyle(e);return mc(i,n)};function $w(e){return parseFloat(e.trim())}const ai=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set([...ai,"pathRotation"]),Gp=e=>e===oi||e===se,zw=new Set(["x","y","z"]),Fw=ai.filter(e=>!zw.has(e));function Bw(e){const n=[];return Fw.forEach(i=>{const s=e.getValue(i);s!==void 0&&(n.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),n}const Hn={width:({x:e},{paddingLeft:n="0",paddingRight:i="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(n)-parseFloat(i)},height:({y:e},{paddingTop:n="0",paddingBottom:i="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(n)-parseFloat(i)},top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>mc(n,"x"),y:(e,{transform:n})=>mc(n,"y")};Hn.translateX=Hn.x;Hn.translateY=Hn.y;const xr=new Set;let yc=!1,gc=!1,vc=!1;function v0(){if(gc){const e=Array.from(xr).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),i=new Map;n.forEach(s=>{const a=Bw(s);a.length&&(i.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const a=i.get(s);a&&a.forEach(([u,c])=>{var d;(d=s.getValue(u))==null||d.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}gc=!1,yc=!1,xr.forEach(e=>e.complete(vc)),xr.clear()}function w0(){xr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gc=!0)})}function Hw(){vc=!0,w0(),v0(),vc=!1}class rf{constructor(n,i,s,a,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=i,this.name=s,this.motionValue=a,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(xr.add(this),yc||(yc=!0,je.read(w0),je.resolveKeyframes(v0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:i,element:s,motionValue:a}=this;if(n[0]===null){const u=a==null?void 0:a.get(),c=n[n.length-1];if(u!==void 0)n[0]=u;else if(s&&i){const d=s.readValue(i,c);d!=null&&(n[0]=d)}n[0]===void 0&&(n[0]=c),a&&u===void 0&&a.set(n[0])}Dw(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),xr.delete(this)}cancel(){this.state==="scheduled"&&(xr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uw=e=>e.startsWith("--");function x0(e,n,i){Uw(n)?e.style.setProperty(n,i):e.style[n]=i}const Ww={};function _0(e,n){const i=Gm(e);return()=>Ww[n]??i()}const qw=_0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),k0=_0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qi=([e,n,i,s])=>`cubic-bezier(${e}, ${n}, ${i}, ${s})`,Yp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qi([0,.65,.55,1]),circOut:Qi([.55,0,1,.45]),backIn:Qi([.31,.01,.66,-.59]),backOut:Qi([.33,1.53,.69,.99])};function S0(e,n){if(e)return typeof e=="function"?k0()?m0(e,n):"ease-out":s0(e)?Qi(e):Array.isArray(e)?e.map(i=>S0(i,n)||Yp.easeOut):Yp[e]}function Kw(e,n,i,{delay:s=0,duration:a=300,repeat:u=0,repeatType:c="loop",ease:d="easeOut",times:p}={},m=void 0){const y={[n]:i};p&&(y.offset=p);const w=S0(d,a);Array.isArray(w)&&(y.easing=w);const g={delay:s,duration:a,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return m&&(g.pseudoElement=m),e.animate(y,g)}function C0(e){return typeof e=="function"&&"applyToOptions"in e}function Gw({type:e,...n}){return C0(e)&&k0()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class E0 extends nf{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:i,name:s,keyframes:a,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:d,onComplete:p}=n;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=n,ya(typeof n.type!="string");const m=Gw(n);this.animation=Kw(i,s,a,m,u),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=ga(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(y),x0(i,s,y),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,i;(i=(n=this.animation).finish)==null||i.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s,a;const n=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((a=(s=this.animation).commitStyles)==null||a.call(s))}get duration(){var i,s;const n=((s=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:s.call(i).duration)||0;return Ot(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+Ot(n)}get time(){return Ot(Number(this.animation.currentTime)||0)}set time(n){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=bt(n),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,rangeStart:i,rangeEnd:s,observe:a}){var u;return this.allowFlatten&&((u=this.animation.effect)==null||u.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&qw()?(this.animation.timeline=n,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),Vt):a(this)}}const T0={anticipate:t0,backInOut:e0,circInOut:r0};function Yw(e){return e in T0}function Xw(e){typeof e.ease=="string"&&Yw(e.ease)&&(e.ease=T0[e.ease])}const Lu=10;class Zw extends E0{constructor(n){Xw(n),g0(n),super(n),n.startTime!==void 0&&n.autoplay!==!1&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:i,onUpdate:s,onComplete:a,element:u,...c}=this.options;if(!i)return;if(n!==void 0){i.set(n);return}const d=new ta({...c,autoplay:!1}),p=Math.max(Lu,ft.now()-this.startTime),m=un(0,Lu,p-Lu),y=d.sample(p).value,{name:w}=this.options;u&&w&&x0(u,w,y),i.setWithVelocity(d.sample(Math.max(0,p-m)).value,y,m),d.stop()}}const Xp=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yt.test(e)||e==="0")&&!e.startsWith("url("));function Qw(e){const n=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}function Jw(e,n,i,s){const a=e[0];if(a===null)return!1;if(n==="display"||n==="visibility")return!0;const u=e[e.length-1],c=Xp(a,n),d=Xp(u,n);return!c||!d?!1:Qw(e)||(i==="spring"||C0(i))&&s}function wc(e){e.duration=0,e.type="keyframes"}const P0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),e8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function t8(e){for(let n=0;n<e.length;n++)if(typeof e[n]=="string"&&e8.test(e[n]))return!0;return!1}const n8=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),r8=Gm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function i8(e){var w;const{motionValue:n,name:i,repeatDelay:s,repeatType:a,damping:u,type:c,keyframes:d}=e,p=(w=n==null?void 0:n.owner)==null?void 0:w.current;if(!(p instanceof HTMLElement)&&!(p instanceof SVGElement))return!1;const{onUpdate:m,transformTemplate:y}=n.owner.getProps();return r8()&&i&&(P0.has(i)||n8.has(i)&&t8(d))&&(i!=="transform"||!y)&&!m&&!s&&a!=="mirror"&&u!==0&&c!=="inertia"}const s8=40;class o8 extends nf{constructor({autoplay:n=!0,delay:i=0,type:s="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:c="loop",keyframes:d,name:p,motionValue:m,element:y,...w}){var x;super(),this.stop=()=>{var C,T;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=ft.now();const g={autoplay:n,delay:i,type:s,repeat:a,repeatDelay:u,repeatType:c,name:p,motionValue:m,element:y,...w},k=(y==null?void 0:y.KeyframeResolver)||rf;this.keyframeResolver=new k(d,(C,T,A)=>this.onKeyframesResolved(C,T,g,!A),p,m,y),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(n,i,s,a){var A,D;this.keyframeResolver=void 0;const{name:u,type:c,velocity:d,delay:p,isHandoff:m,onUpdate:y}=s;this.resolvedAt=ft.now();let w=!0;Jw(n,u,c,d)||(w=!1,(Un.instantAnimations||!p)&&(y==null||y(ga(n,s,i))),n[0]=n[n.length-1],wc(s),s.repeat=0);const k={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>s8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:n},x=w&&!m&&i8(k),C=(D=(A=k.motionValue)==null?void 0:A.owner)==null?void 0:D.current;let T;if(x)try{T=new Zw({...k,element:C})}catch{T=new ta(k)}else T=new ta(k);T.finished.then(()=>{this.notifyFinished()}).catch(Vt),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(n,i){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),Hw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function b0(e,n,i,s=0,a=1){const u=Array.from(e).sort((m,y)=>m.sortNodePosition(y)).indexOf(n),c=e.size,d=(c-1)*s;return typeof i=="function"?i(u,c):a===1?u*s:d-u*s}const Zp=30,a8=e=>!isNaN(parseFloat(e));class l8{constructor(n,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var u;const a=ft.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=i.owner}setCurrent(n){this.current=n,this.updatedAt=ft.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=a8(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,i){this.events[n]||(this.events[n]=new Gc);const s=this.events[n].add(i);return n==="change"?()=>{s(),je.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,i){this.passiveEffect=n,this.stopPassiveEffect=i}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,i=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Zp)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,Zp);return Ym(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(n){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=n(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var n,i;(n=this.dependents)==null||n.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ri(e,n){return new l8(e,n)}function M0(e,n){if(e!=null&&e.inherit&&n){const{inherit:i,...s}=e;return{...n,...s}}return e}function sf(e,n){const i=(e==null?void 0:e[n])??(e==null?void 0:e.default)??e;return i!==e?M0(i,e):i}const u8={type:"spring",stiffness:500,damping:25,restSpeed:10},c8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),f8={type:"keyframes",duration:.8},d8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},h8=(e,{keyframes:n})=>n.length>2?f8:li.has(e)?e.startsWith("scale")?c8(n[1]):u8:d8,p8=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function m8(e){for(const n in e)if(!p8.has(n))return!0;return!1}const of=(e,n,i,s={},a,u)=>c=>{const d=sf(s,e)||{},p=d.delay||s.delay||0;let{elapsed:m=0}=s;m=m-bt(p);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:n.getVelocity(),...d,delay:-m,onUpdate:g=>{n.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:n,element:u?void 0:a};m8(d)||Object.assign(y,h8(e,y)),y.duration&&(y.duration=bt(y.duration)),y.repeatDelay&&(y.repeatDelay=bt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let w=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(wc(y),y.delay===0&&(w=!0)),(Un.instantAnimations||Un.skipAnimations||a!=null&&a.shouldSkipAnimations||d.skipAnimations)&&(w=!0,wc(y),y.delay=0),y.allowFlatten=!d.type&&!d.ease,w&&!u&&n.get()!==void 0){const g=ga(y.keyframes,d);if(g!==void 0){je.update(()=>{y.onUpdate(g),y.onComplete()});return}}return d.isSync?new ta(y):new o8(y)},y8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function g8(e){const n=y8.exec(e);if(!n)return[,];const[,i,s,a]=n;return[`--${i??s}`,a]}function j0(e,n,i=1){const[s,a]=g8(e);if(!s)return;const u=window.getComputedStyle(n).getPropertyValue(s);if(u){const c=u.trim();return Wm(c)?parseFloat(c):c}return Zc(a)?j0(a,n,i+1):a}function Qp(e){const n=[{},{}];return e==null||e.values.forEach((i,s)=>{n[0][s]=i.get(),n[1][s]=i.getVelocity()}),n}function af(e,n,i,s){if(typeof n=="function"){const[a,u]=Qp(s);n=n(i!==void 0?i:e.custom,a,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[a,u]=Qp(s);n=n(i!==void 0?i:e.custom,a,u)}return n}function _r(e,n,i){const s=e.getProps();return af(s,n,i!==void 0?i:s.custom,e)}const L0=new Set(["width","height","top","left","right","bottom",...ai]),xc=e=>Array.isArray(e);function v8(e,n,i){e.hasValue(n)?e.getValue(n).set(i):e.addValue(n,ri(i))}function w8(e){return xc(e)?e[e.length-1]||0:e}function x8(e,n){const i=_r(e,n);let{transitionEnd:s={},transition:a={},...u}=i||{};u={...u,...s};for(const c in u){const d=w8(u[c]);v8(e,c,d)}}const nt=e=>!!(e&&e.getVelocity);function _8(e){return!!(nt(e)&&e.add)}function _c(e,n){const i=e.getValue("willChange");if(_8(i))return i.add(n);if(!i&&Un.WillChange){const s=new Un.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function lf(e){return e.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const k8="framerAppearId",N0="data-"+lf(k8);function A0(e){return e.props[N0]}const S8=typeof window<"u";function C8({protectedKeys:e,needsAnimating:n},i){const s=e.hasOwnProperty(i)&&n[i]!==!0;return n[i]=!1,s}function R0(e,n,{delay:i=0,transitionOverride:s,type:a}={}){let{transition:u,transitionEnd:c,...d}=n;const p=e.getDefaultTransition();u=u?M0(u,p):p;const m=u==null?void 0:u.reduceMotion,y=u==null?void 0:u.skipAnimations;s&&(u=s);const w=[],g=a&&e.animationState&&e.animationState.getState()[a],k=u==null?void 0:u.path;k&&k.animateVisualElement(e,d,u,i,w);for(const x in d){const C=e.getValue(x,e.latestValues[x]??null),T=d[x];if(T===void 0||g&&C8(g,x))continue;const A={delay:i,...sf(u||{},x)};y&&(A.skipAnimations=!0);const D=C.get();if(D!==void 0&&!C.isAnimating()&&!Array.isArray(T)&&T===D&&!A.velocity){je.update(()=>C.set(T));continue}let O=!1;if(S8&&window.MotionHandoffAnimation){const F=A0(e);if(F){const U=window.MotionHandoffAnimation(F,x,je);U!==null&&(A.startTime=U,O=!0)}}_c(e,x);const z=m??e.shouldReduceMotion;C.start(of(x,C,T,z&&L0.has(x)?{type:!1}:A,e,O));const V=C.animation;V&&w.push(V)}if(c){const x=()=>je.update(()=>{c&&x8(e,c)});w.length?Promise.all(w).then(x):x()}return w}function kc(e,n,i={}){var p;const s=_r(e,n,i.type==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(a=i.transitionOverride);const u=s?()=>Promise.all(R0(e,s,i)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:w,staggerDirection:g}=a;return E8(e,n,m,y,w,g,i)}:()=>Promise.resolve(),{when:d}=a;if(d){const[m,y]=d==="beforeChildren"?[u,c]:[c,u];return m().then(()=>y())}else return Promise.all([u(),c(i.delay)])}function E8(e,n,i=0,s=0,a=0,u=1,c){const d=[];for(const p of e.variantChildren)p.notify("AnimationStart",n),d.push(kc(p,n,{...c,delay:i+(typeof s=="function"?0:s)+b0(e.variantChildren,p,s,a,u)}).then(()=>p.notify("AnimationComplete",n)));return Promise.all(d)}function T8(e,n,i={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const a=n.map(u=>kc(e,u,i));s=Promise.all(a)}else if(typeof n=="string")s=kc(e,n,i);else{const a=typeof n=="function"?_r(e,n,i.custom):n;s=Promise.all(R0(e,a,i))}return s.then(()=>{e.notify("AnimationComplete",n)})}const P8={test:e=>e==="auto",parse:e=>e},D0=e=>n=>n.test(e),O0=[oi,se,an,xn,Q6,Z6,P8],Jp=e=>O0.find(D0(e));function b8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Km(e):!0}const M8=new Set(["brightness","contrast","saturate","opacity"]);function j8(e){const[n,i]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=i.match(Qc)||[];if(!s)return e;const a=i.replace(s,"");let u=M8.has(n)?1:0;return s!==i&&(u*=100),n+"("+u+a+")"}const L8=/\b([a-z-]*)\(.*?\)/gu,Sc={...Yt,getAnimatableNone:e=>{const n=e.match(L8);return n?n.map(j8).join(" "):e}},Cc={...Yt,getAnimatableNone:e=>{const n=Yt.parse(e);return Yt.createTransformer(e)(n.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},e1={...oi,transform:Math.round},N8={rotate:xn,pathRotation:xn,rotateX:xn,rotateY:xn,rotateZ:xn,scale:Ao,scaleX:Ao,scaleY:Ao,scaleZ:Ao,skew:xn,skewX:xn,skewY:xn,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:cs,originX:zp,originY:zp,originZ:se},na={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,top:se,right:se,bottom:se,left:se,inset:se,insetBlock:se,insetBlockStart:se,insetBlockEnd:se,insetInline:se,insetInlineStart:se,insetInlineEnd:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,paddingBlock:se,paddingBlockStart:se,paddingBlockEnd:se,paddingInline:se,paddingInlineStart:se,paddingInlineEnd:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,marginBlock:se,marginBlockStart:se,marginBlockEnd:se,marginInline:se,marginInlineStart:se,marginInlineEnd:se,fontSize:se,backgroundPositionX:se,backgroundPositionY:se,...N8,zIndex:e1,fillOpacity:cs,strokeOpacity:cs,numOctaves:e1},A8={...na,color:qe,backgroundColor:qe,outlineColor:qe,fill:qe,stroke:qe,borderColor:qe,borderTopColor:qe,borderRightColor:qe,borderBottomColor:qe,borderLeftColor:qe,filter:Sc,WebkitFilter:Sc,mask:Cc,WebkitMask:Cc},V0=e=>A8[e],R8=new Set([Sc,Cc]);function I0(e,n){let i=V0(e);return R8.has(i)||(i=Yt),i.getAnimatableNone?i.getAnimatableNone(n):void 0}const D8=new Set(["auto","none","0"]);function O8(e,n,i){let s=0,a;for(;s<e.length&&!a;){const u=e[s];typeof u=="string"&&!D8.has(u)&&ni(u).values.length&&(a=e[s]),s++}if(a&&i)for(const u of n)e[u]=I0(i,a)}class V8 extends rf{constructor(n,i,s,a,u){super(n,i,s,a,u,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let w=n[y];if(typeof w=="string"&&(w=w.trim(),Zc(w))){const g=j0(w,i.current);g!==void 0&&(n[y]=g),y===n.length-1&&(this.finalKeyframe=w)}}if(this.resolveNoneKeyframes(),!L0.has(s)||n.length!==2)return;const[a,u]=n,c=Jp(a),d=Jp(u),p=$p(a),m=$p(u);if(p!==m&&Hn[s]){this.needsMeasurement=!0;return}if(c!==d)if(Gp(c)&&Gp(d))for(let y=0;y<n.length;y++){const w=n[y];typeof w=="string"&&(n[y]=parseFloat(w))}else Hn[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:i}=this,s=[];for(let a=0;a<n.length;a++)(n[a]===null||b8(n[a]))&&s.push(a);s.length&&O8(n,s,i)}measureInitialState(){const{element:n,unresolvedKeyframes:i,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hn[s](n.measureViewportBox(),window.getComputedStyle(n.current)),i[0]=this.measuredOrigin;const a=i[i.length-1];a!==void 0&&n.getValue(s,a).jump(a,!1)}measureEndState(){var d;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const a=n.getValue(i);a&&a.jump(this.measuredOrigin,!1);const u=s.length-1,c=s[u];s[u]=Hn[i](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([p,m])=>{n.getValue(p).set(m)}),this.resolveNoneKeyframes()}}const uf=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function $0(e,n,i){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const a=(i==null?void 0:i[e])??s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(s=>s!=null)}const Ec=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function I8(e){return qm(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:cf}=o0(queueMicrotask,!1),qt={x:!1,y:!1};function z0(){return qt.x||qt.y}function $8(e){return e==="x"||e==="y"?qt[e]?null:(qt[e]=!0,()=>{qt[e]=!1}):qt.x||qt.y?null:(qt.x=qt.y=!0,()=>{qt.x=qt.y=!1})}function F0(e,n){const i=$0(e),s=new AbortController,a={passive:!0,...n,signal:s.signal};return[i,a,()=>s.abort()]}function z8(e){return!(e.pointerType==="touch"||z0())}function F8(e,n,i={}){const[s,a,u]=F0(e,i);return s.forEach(c=>{let d=!1,p=!1,m;const y=()=>{c.removeEventListener("pointerleave",x)},w=T=>{m&&(m(T),m=void 0),y()},g=T=>{d=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),p&&(p=!1,w(T))},k=()=>{d=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},x=T=>{if(T.pointerType!=="touch"){if(d){p=!0;return}w(T)}},C=T=>{if(!z8(T))return;p=!1;const A=n(c,T);typeof A=="function"&&(m=A,c.addEventListener("pointerleave",x,a))};c.addEventListener("pointerenter",C,a),c.addEventListener("pointerdown",k,a)}),u}const B0=(e,n)=>n?e===n?!0:B0(e,n.parentElement):!1,ff=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,B8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function H8(e){return B8.has(e.tagName)||e.isContentEditable===!0}const U8=new Set(["INPUT","SELECT","TEXTAREA"]);function W8(e){return U8.has(e.tagName)||e.isContentEditable===!0}const zo=new WeakSet;function t1(e){return n=>{n.key==="Enter"&&e(n)}}function Nu(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const q8=(e,n)=>{const i=e.currentTarget;if(!i)return;const s=t1(()=>{if(zo.has(i))return;Nu(i,"down");const a=t1(()=>{Nu(i,"up")}),u=()=>Nu(i,"cancel");i.addEventListener("keyup",a,n),i.addEventListener("blur",u,n)});i.addEventListener("keydown",s,n),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),n)};function n1(e){return ff(e)&&!z0()}const r1=new WeakSet;function K8(e,n,i={}){const[s,a,u]=F0(e,i),c=d=>{const p=d.currentTarget;if(!n1(d)||r1.has(d))return;zo.add(p),i.stopPropagation&&r1.add(d);const m=n(p,d),y={...a,capture:!0},w=(x,C)=>{window.removeEventListener("pointerup",g,y),window.removeEventListener("pointercancel",k,y),zo.has(p)&&zo.delete(p),n1(x)&&typeof m=="function"&&m(x,{success:C})},g=x=>{w(x,p===window||p===document||i.useGlobalTarget||B0(p,x.target))},k=x=>{w(x,!1)};window.addEventListener("pointerup",g,y),window.addEventListener("pointercancel",k,y)};return s.forEach(d=>{(i.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),I8(d)&&(d.addEventListener("focus",m=>q8(m,a)),!H8(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),u}function df(e){return qm(e)&&"ownerSVGElement"in e}const Fo=new WeakMap;let Fn;const H0=(e,n,i)=>(s,a)=>a&&a[0]?a[0][e+"Size"]:df(s)&&"getBBox"in s?s.getBBox()[n]:s[i],G8=H0("inline","width","offsetWidth"),Y8=H0("block","height","offsetHeight");function X8({target:e,borderBoxSize:n}){var i;(i=Fo.get(e))==null||i.forEach(s=>{s(e,{get width(){return G8(e,n)},get height(){return Y8(e,n)}})})}function Z8(e){e.forEach(X8)}function Q8(){typeof ResizeObserver>"u"||(Fn=new ResizeObserver(Z8))}function J8(e,n){Fn||Q8();const i=$0(e);return i.forEach(s=>{let a=Fo.get(s);a||(a=new Set,Fo.set(s,a)),a.add(n),Fn==null||Fn.observe(s)}),()=>{i.forEach(s=>{const a=Fo.get(s);a==null||a.delete(n),a!=null&&a.size||Fn==null||Fn.unobserve(s)})}}const Bo=new Set;let Zr;function e7(){Zr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Bo.forEach(n=>n(e))},window.addEventListener("resize",Zr)}function t7(e){return Bo.add(e),Zr||e7(),()=>{Bo.delete(e),!Bo.size&&typeof Zr=="function"&&(window.removeEventListener("resize",Zr),Zr=void 0)}}function i1(e,n){return typeof e=="function"?t7(e):J8(e,n)}function n7(e){return df(e)&&e.tagName==="svg"}const r7=[...O0,qe,Yt],i7=e=>r7.find(D0(e)),s1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qr=()=>({x:s1(),y:s1()}),o1=()=>({min:0,max:0}),Ye=()=>({x:o1(),y:o1()}),s7=new WeakMap;function va(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fs(e){return typeof e=="string"||Array.isArray(e)}const hf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pf=["initial",...hf];function wa(e){return va(e.animate)||pf.some(n=>fs(e[n]))}function U0(e){return!!(wa(e)||e.variants)}function o7(e,n,i){for(const s in n){const a=n[s],u=i[s];if(nt(a))e.addValue(s,a);else if(nt(u))e.addValue(s,ri(a,{owner:e}));else if(u!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,ri(c!==void 0?c:a,{owner:e}))}}for(const s in i)n[s]===void 0&&e.removeValue(s);return n}const ra={current:null},mf={current:!1},a7=typeof window<"u";function W0(){if(mf.current=!0,!!a7)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>ra.current=e.matches;e.addEventListener("change",n),n()}else ra.current=!1}const a1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ia={};function q0(e){ia=e}function l7(){return ia}class u7{scrapeMotionValuesFromProps(n,i,s){return{}}constructor({parent:n,props:i,presenceContext:s,reducedMotionConfig:a,skipAnimations:u,blockInitialAnimation:c,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=rf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const k=ft.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,je.render(this.render,!1,!0))};const{latestValues:m,renderState:y}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=i.initial?{...m}:{},this.renderState=y,this.parent=n,this.props=i,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=u,this.options=p,this.blockInitialAnimation=!!c,this.isControllingVariants=wa(i),this.isVariantNode=U0(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:w,...g}=this.scrapeMotionValuesFromProps(i,{},this);for(const k in g){const x=g[k];m[k]!==void 0&&nt(x)&&x.set(m[k])}}mount(n){var i,s;if(this.hasBeenMounted)for(const a in this.initialValues)(i=this.values.get(a))==null||i.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=n,s7.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,u)=>this.bindToMotionValue(u,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(mf.current||W0(),this.shouldReduceMotion=ra.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),Wn(this.notifyUpdate),Wn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,i){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),i.accelerate&&P0.has(n)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:p,ease:m,duration:y}=i.accelerate,w=new E0({element:this.current,name:n,keyframes:d,times:p,ease:m,duration:bt(y)}),g=c(w);this.valueSubscriptions.set(n,()=>{g(),w.cancel()});return}const s=li.has(n);s&&this.onBindTransform&&this.onBindTransform();const a=i.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&je.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,n,i)),this.valueSubscriptions.set(n,()=>{a(),u&&u()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in ia){const i=ia[n];if(!i)continue;const{isEnabled:s,Feature:a}=i;if(!this.features[n]&&a&&s(this.props)&&(this.features[n]=new a(this)),this.features[n]){const u=this.features[n];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ye()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,i){this.latestValues[n]=i}update(n,i){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<a1.length;s++){const a=a1[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const u="on"+a,c=n[u];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=o7(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(n),()=>i.variantChildren.delete(n)}addValue(n,i){const s=this.values.get(n);i!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,i),this.values.set(n,i),this.latestValues[n]=i.get())}removeValue(n){this.values.delete(n);const i=this.valueSubscriptions.get(n);i&&(i(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,i){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&i!==void 0&&(s=ri(i===null?void 0:i,{owner:this}),this.addValue(n,s)),s}readValue(n,i){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(Wm(s)||Km(s))?s=parseFloat(s):!i7(s)&&Yt.test(i)&&(s=I0(n,i)),this.setBaseTarget(n,nt(s)?s.get():s)),nt(s)?s.get():s}setBaseTarget(n,i){this.baseTarget[n]=i}getBaseTarget(n){var u;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const c=af(this.props,i,(u=this.presenceContext)==null?void 0:u.custom);c&&(s=c[n])}if(i&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,n);return a!==void 0&&!nt(a)?a:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,i){return this.events[n]||(this.events[n]=new Gc),this.events[n].add(i)}notify(n,...i){this.events[n]&&this.events[n].notify(...i)}scheduleRenderMicrotask(){cf.render(this.render)}}class K0 extends u7{constructor(){super(...arguments),this.KeyframeResolver=V8}sortInstanceNodePosition(n,i){return n.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(n,i){const s=n.style;return s?s[i]:void 0}removeValueFromRenderState(n,{vars:i,style:s}){delete i[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;nt(n)&&(this.childSubscription=n.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class Kn{constructor(n){this.isMounted=!1,this.node=n}update(){}}function G0({top:e,left:n,right:i,bottom:s}){return{x:{min:n,max:i},y:{min:e,max:s}}}function c7({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function f7(e,n){if(!n)return e;const i=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Au(e){return e===void 0||e===1}function Tc({scale:e,scaleX:n,scaleY:i}){return!Au(e)||!Au(n)||!Au(i)}function hr(e){return Tc(e)||Y0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Y0(e){return l1(e.x)||l1(e.y)}function l1(e){return e&&e!=="0%"}function sa(e,n,i){const s=e-i,a=n*s;return i+a}function u1(e,n,i,s,a){return a!==void 0&&(e=sa(e,a,s)),sa(e,i,s)+n}function Pc(e,n=0,i=1,s,a){e.min=u1(e.min,n,i,s,a),e.max=u1(e.max,n,i,s,a)}function X0(e,{x:n,y:i}){Pc(e.x,n.translate,n.scale,n.originPoint),Pc(e.y,i.translate,i.scale,i.originPoint)}const c1=.999999999999,f1=1.0000000000001;function d7(e,n,i,s=!1){var d;const a=i.length;if(!a)return;n.x=n.y=1;let u,c;for(let p=0;p<a;p++){u=i[p],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(on(e.x,-u.scroll.offset.x),on(e.y,-u.scroll.offset.y)),c&&(n.x*=c.x.scale,n.y*=c.y.scale,X0(e,c)),s&&hr(u.latestValues)&&Ho(e,u.latestValues,(d=u.layout)==null?void 0:d.layoutBox))}n.x<f1&&n.x>c1&&(n.x=1),n.y<f1&&n.y>c1&&(n.y=1)}function on(e,n){e.min+=n,e.max+=n}function d1(e,n,i,s,a=.5){const u=Me(e.min,e.max,a);Pc(e,n,i,u,s)}function h1(e,n){return typeof e=="string"?parseFloat(e)/100*(n.max-n.min):e}function Ho(e,n,i){const s=i??e;d1(e.x,h1(n.x,s.x),n.scaleX,n.scale,n.originX),d1(e.y,h1(n.y,s.y),n.scaleY,n.scale,n.originY)}function Z0(e,n){return G0(f7(e.getBoundingClientRect(),n))}function h7(e,n,i){const s=Z0(e,i),{scroll:a}=n;return a&&(on(s.x,a.offset.x),on(s.y,a.offset.y)),s}const p7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m7=ai.length;function y7(e,n,i){let s="",a=!0;for(let c=0;c<m7;c++){const d=ai[c],p=e[d];if(p===void 0)continue;let m=!0;if(typeof p=="number")m=p===(d.startsWith("scale")?1:0);else{const y=parseFloat(p);m=d.startsWith("scale")?y===1:y===0}if(!m||i){const y=Ec(p,na[d]);if(!m){a=!1;const w=p7[d]||d;s+=`${w}(${y}) `}i&&(n[d]=y)}}const u=e.pathRotation;return u&&(a=!1,s+=`rotate(${Ec(u,na.pathRotation)}) `),s=s.trim(),i?s=i(n,a?"":s):a&&(s="none"),s}function yf(e,n,i){const{style:s,vars:a,transformOrigin:u}=e;let c=!1,d=!1;for(const p in n){const m=n[p];if(li.has(p)){c=!0;continue}else if(l0(p)){a[p]=m;continue}else{const y=Ec(m,na[p]);p.startsWith("origin")?(d=!0,u[p]=y):s[p]=y}}if(n.transform||(c||i?s.transform=y7(n,e.transform,i):s.transform&&(s.transform="none")),d){const{originX:p="50%",originY:m="50%",originZ:y=0}=u;s.transformOrigin=`${p} ${m} ${y}`}}function Q0(e,{style:n,vars:i},s,a){const u=e.style;let c;for(c in n)u[c]=n[c];a==null||a.applyProjectionStyles(u,s);for(c in i)u.setProperty(c,i[c])}function p1(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Xi={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(se.test(e))e=parseFloat(e);else return e;const i=p1(e,n.target.x),s=p1(e,n.target.y);return`${i}% ${s}%`}},g7={correct:(e,{treeScale:n,projectionDelta:i})=>{const s=e,a=Yt.parse(e);if(a.length>5)return s;const u=Yt.createTransformer(e),c=typeof a[0]!="number"?1:0,d=i.x.scale*n.x,p=i.y.scale*n.y;a[0+c]/=d,a[1+c]/=p;const m=Me(d,p,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),u(a)}},bc={borderRadius:{...Xi,applyTo:[...uf]},borderTopLeftRadius:Xi,borderTopRightRadius:Xi,borderBottomLeftRadius:Xi,borderBottomRightRadius:Xi,boxShadow:g7};function J0(e,{layout:n,layoutId:i}){return li.has(e)||e.startsWith("origin")||(n||i!==void 0)&&(!!bc[e]||e==="opacity")}function gf(e,n,i){var c;const s=e.style,a=n==null?void 0:n.style,u={};if(!s)return u;for(const d in s)(nt(s[d])||a&&nt(a[d])||J0(d,e)||((c=i==null?void 0:i.getValue(d))==null?void 0:c.liveStyle)!==void 0)&&(u[d]=s[d]);return u}function v7(e){return window.getComputedStyle(e)}class w7 extends K0{constructor(){super(...arguments),this.type="html",this.renderInstance=Q0}mount(n){ya(!!n.style),super.mount(n)}readValueFromInstance(n,i){var s;if(li.has(i))return(s=this.projection)!=null&&s.isProjecting?pc(i):Iw(n,i);{const a=v7(n),u=(l0(i)?a.getPropertyValue(i):a[i])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(n,{transformPagePoint:i}){return Z0(n,i)}build(n,i,s){yf(n,i,s.transformTemplate)}scrapeMotionValuesFromProps(n,i,s){return gf(n,i,s)}}const x7={offset:"stroke-dashoffset",array:"stroke-dasharray"},_7={offset:"strokeDashoffset",array:"strokeDasharray"};function k7(e,n,i=1,s=0,a=!0){e.pathLength=1;const u=a?x7:_7;e[u.offset]=`${-s}`,e[u.array]=`${n} ${i}`}const ey=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ty(e,{attrX:n,attrY:i,attrScale:s,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},p,m,y){if(yf(e,d,m),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:w,style:g}=e;for(const k of ey)w[k]!==void 0&&(g[k]=w[k],delete w[k]);(g.transform||w.transformOrigin)&&(g.transformOrigin=w.transformOrigin??"50% 50%",delete w.transformOrigin),g.transform&&(g.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete w.transformBox),n!==void 0&&(w.x=n),i!==void 0&&(w.y=i),s!==void 0&&(w.scale=s),a!==void 0&&k7(w,a,u,c,!1)}const ny=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ry=e=>typeof e=="string"&&e.toLowerCase()==="svg";function S7(e,n,i,s){Q0(e,n,void 0,s);for(const a in n.attrs)e.setAttribute(ny.has(a)?a:lf(a),n.attrs[a])}function iy(e,n,i){const s=gf(e,n,i);for(const a in e)if(nt(e[a])||nt(n[a])){const u=ai.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[u]=e[a]}return s}class C7 extends K0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ye}getBaseTargetFromProps(n,i){return n[i]}readValueFromInstance(n,i){if(li.has(i)){const s=V0(i);return s&&s.default||0}if(ey.includes(i)){const a=getComputedStyle(n)[i];if(typeof a=="string"&&a)return a.trim()}return i=ny.has(i)?i:lf(i),n.getAttribute(i)}scrapeMotionValuesFromProps(n,i,s){return iy(n,i,s)}build(n,i,s){ty(n,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,i,s,a){S7(n,i,s,a)}mount(n){this.isSVGTag=ry(n.tagName),super.mount(n)}}const E7=pf.length;function sy(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?sy(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const n={};for(let i=0;i<E7;i++){const s=pf[i],a=e.props[s];(fs(a)||a===!1)&&(n[s]=a)}return n}function oy(e,n){if(!Array.isArray(n))return!1;const i=n.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(n[s]!==e[s])return!1;return!0}const T7=[...hf].reverse(),P7=hf.length;function b7(e){return n=>Promise.all(n.map(({animation:i,options:s})=>T8(e,i,s)))}function M7(e){let n=b7(e),i=m1(),s=!0,a=!1;const u=m=>(y,w)=>{var k;const g=_r(e,w,m==="exit"?(k=e.presenceContext)==null?void 0:k.custom:void 0);if(g){const{transition:x,transitionEnd:C,...T}=g;y={...y,...T,...C}}return y};function c(m){n=m(e)}function d(m){const{props:y}=e,w=sy(e.parent)||{},g=[],k=new Set;let x={},C=1/0;for(let A=0;A<P7;A++){const D=T7[A],O=i[D],z=y[D]!==void 0?y[D]:w[D],V=fs(z),F=D===m?O.isActive:null;F===!1&&(C=A);let U=z===w[D]&&z!==y[D]&&V;if(U&&(s||a)&&e.manuallyAnimateOnMount&&(U=!1),O.protectedKeys={...x},!O.isActive&&F===null||!z&&!O.prevProp||va(z)||typeof z=="boolean")continue;if(D==="exit"&&O.isActive&&F!==!0){O.prevResolvedValues&&(x={...x,...O.prevResolvedValues});continue}const q=j7(O.prevProp,z);let $=q||D===m&&O.isActive&&!U&&V||A>C&&V,B=!1;const oe=Array.isArray(z)?z:[z];let me=oe.reduce(u(D),{});F===!1&&(me={});const{prevResolvedValues:J={}}=O,ae={...J,...me},ce=H=>{$=!0,k.has(H)&&(B=!0,k.delete(H)),O.needsAnimating[H]=!0;const Z=e.getValue(H);Z&&(Z.liveStyle=!1)};for(const H in ae){const Z=me[H],Y=J[H];if(x.hasOwnProperty(H))continue;let b=!1;xc(Z)&&xc(Y)?b=!oy(Z,Y)||q:b=Z!==Y,b?Z!=null?ce(H):k.add(H):Z!==void 0&&k.has(H)?ce(H):O.protectedKeys[H]=!0}O.prevProp=z,O.prevResolvedValues=me,O.isActive&&(x={...x,...me}),(s||a)&&e.blockInitialAnimation&&($=!1);const ve=U&&q;$&&(!ve||B)&&g.push(...oe.map(H=>{const Z={type:D};if(typeof H=="string"&&(s||a)&&!ve&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,b=_r(Y,H);if(Y.enteringChildren&&b){const{delayChildren:L}=b.transition||{};Z.delay=b0(Y.enteringChildren,e,L)}}return{animation:H,options:Z}}))}if(k.size){const A={};if(typeof y.initial!="boolean"){const D=_r(e,Array.isArray(y.initial)?y.initial[0]:y.initial);D&&D.transition&&(A.transition=D.transition)}k.forEach(D=>{const O=e.getBaseTarget(D),z=e.getValue(D);z&&(z.liveStyle=!0),A[D]=O??null}),g.push({animation:A})}let T=!!g.length;return s&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(T=!1),s=!1,a=!1,T?n(g):Promise.resolve()}function p(m,y){var g;if(i[m].isActive===y)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(k=>{var x;return(x=k.animationState)==null?void 0:x.setActive(m,y)}),i[m].isActive=y;const w=d(m);for(const k in i)i[k].protectedKeys={};return w}return{animateChanges:d,setActive:p,setAnimateFunction:c,getState:()=>i,reset:()=>{i=m1(),a=!0}}}function j7(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!oy(n,e):!1}function lr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function m1(){return{animate:lr(!0),whileInView:lr(),whileHover:lr(),whileTap:lr(),whileDrag:lr(),whileFocus:lr(),exit:lr()}}function Mc(e,n){e.min=n.min,e.max=n.max}function Wt(e,n){Mc(e.x,n.x),Mc(e.y,n.y)}function y1(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}const ay=1e-4,L7=1-ay,N7=1+ay,ly=.01,A7=0-ly,R7=0+ly;function dt(e){return e.max-e.min}function D7(e,n,i){return Math.abs(e-n)<=i}function g1(e,n,i,s=.5){e.origin=s,e.originPoint=Me(n.min,n.max,e.origin),e.scale=dt(i)/dt(n),e.translate=Me(i.min,i.max,e.origin)-e.originPoint,(e.scale>=L7&&e.scale<=N7||isNaN(e.scale))&&(e.scale=1),(e.translate>=A7&&e.translate<=R7||isNaN(e.translate))&&(e.translate=0)}function ts(e,n,i,s){g1(e.x,n.x,i.x,s?s.originX:void 0),g1(e.y,n.y,i.y,s?s.originY:void 0)}function v1(e,n,i,s=0){const a=s?Me(i.min,i.max,s):i.min;e.min=a+n.min,e.max=e.min+dt(n)}function O7(e,n,i,s){v1(e.x,n.x,i.x,s==null?void 0:s.x),v1(e.y,n.y,i.y,s==null?void 0:s.y)}function w1(e,n,i,s=0){const a=s?Me(i.min,i.max,s):i.min;e.min=n.min-a,e.max=e.min+dt(n)}function oa(e,n,i,s){w1(e.x,n.x,i.x,s==null?void 0:s.x),w1(e.y,n.y,i.y,s==null?void 0:s.y)}function x1(e,n,i,s,a){return e-=n,e=sa(e,1/i,s),a!==void 0&&(e=sa(e,1/a,s)),e}function V7(e,n=0,i=1,s=.5,a,u=e,c=e){if(an.test(n)&&(n=parseFloat(n),n=Me(c.min,c.max,n/100)-c.min),typeof n!="number")return;let d=Me(u.min,u.max,s);e===u&&(d-=n),e.min=x1(e.min,n,i,d,a),e.max=x1(e.max,n,i,d,a)}function _1(e,n,[i,s,a],u,c){V7(e,n[i],n[s],n[a],n.scale,u,c)}const I7=["x","scaleX","originX"],$7=["y","scaleY","originY"];function k1(e,n,i,s){_1(e.x,n,I7,i?i.x:void 0,s?s.x:void 0),_1(e.y,n,$7,i?i.y:void 0,s?s.y:void 0)}function S1(e){return e.translate===0&&e.scale===1}function uy(e){return S1(e.x)&&S1(e.y)}function C1(e,n){return e.min===n.min&&e.max===n.max}function z7(e,n){return C1(e.x,n.x)&&C1(e.y,n.y)}function E1(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function cy(e,n){return E1(e.x,n.x)&&E1(e.y,n.y)}function T1(e){return dt(e.x)/dt(e.y)}function P1(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}function sn(e){return[e("x"),e("y")]}function F7(e,n,i){let s="";const a=e.x.translate/n.x,u=e.y.translate/n.y,c=(i==null?void 0:i.z)||0;if((a||u||c)&&(s=`translate3d(${a}px, ${u}px, ${c}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),i){const{transformPerspective:m,rotate:y,pathRotation:w,rotateX:g,rotateY:k,skewX:x,skewY:C}=i;m&&(s=`perspective(${m}px) ${s}`),y&&(s+=`rotate(${y}deg) `),w&&(s+=`rotate(${w}deg) `),g&&(s+=`rotateX(${g}deg) `),k&&(s+=`rotateY(${k}deg) `),x&&(s+=`skewX(${x}deg) `),C&&(s+=`skewY(${C}deg) `)}const d=e.x.scale*n.x,p=e.y.scale*n.y;return(d!==1||p!==1)&&(s+=`scale(${d}, ${p})`),s||"none"}const B7=uf.length,b1=e=>typeof e=="string"?parseFloat(e):e,M1=e=>typeof e=="number"||se.test(e);function H7(e,n,i,s,a,u){a?(e.opacity=Me(0,i.opacity??1,U7(s)),e.opacityExit=Me(n.opacity??1,0,W7(s))):u&&(e.opacity=Me(n.opacity??1,i.opacity??1,s));for(let c=0;c<B7;c++){const d=uf[c];let p=j1(n,d),m=j1(i,d);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||M1(p)===M1(m)?(e[d]=Math.max(Me(b1(p),b1(m),s),0),(an.test(m)||an.test(p))&&(e[d]+="%")):e[d]=m}(n.rotate||i.rotate)&&(e.rotate=Me(n.rotate||0,i.rotate||0,s))}function j1(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const U7=fy(0,.5,n0),W7=fy(.5,.95,Vt);function fy(e,n,i){return s=>s<e?0:s>n?1:i(us(e,n,s))}function q7(e,n,i){const s=nt(e)?e:ri(e);return s.start(of("",s,n,i)),s.animation}function ds(e,n,i,s={passive:!0}){return e.addEventListener(n,i,s),()=>e.removeEventListener(n,i,s)}const K7=(e,n)=>e.depth-n.depth;class G7{constructor(){this.children=[],this.isDirty=!1}add(n){Kc(this.children,n),this.isDirty=!0}remove(n){Zo(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(K7),this.isDirty=!1,this.children.forEach(n)}}function Y7(e,n){const i=ft.now(),s=({timestamp:a})=>{const u=a-i;u>=n&&(Wn(s),e(u-n))};return je.setup(s,!0),()=>Wn(s)}function Uo(e){return nt(e)?e.get():e}class X7{constructor(){this.members=[]}add(n){Kc(this.members,n);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===n||s===this.lead||s===this.prevLead)continue;const a=s.instance;(!a||a.isConnected===!1)&&!s.snapshot&&(Zo(this.members,s),s.unmount())}n.scheduleRender()}remove(n){if(Zo(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(n){var i;for(let s=this.members.indexOf(n)-1;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1&&((i=a.instance)==null?void 0:i.isConnected)!==!1)return this.promote(a),!0}return!1}promote(n,i){var a;const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.updateSnapshot(),n.scheduleRender();const{layoutDependency:u}=s.options,{layoutDependency:c}=n.options;(u===void 0||u!==c)&&(n.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),(a=n.root)!=null&&a.isUpdating&&(n.isLayoutDirty=!0)),n.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{var i,s,a,u,c;(s=(i=n.options).onExitComplete)==null||s.call(i),(c=(a=n.resumingFrom)==null?void 0:(u=a.options).onExitComplete)==null||c.call(u)})}scheduleRender(){this.members.forEach(n=>n.instance&&n.scheduleRender(!1))}removeLeadSnapshot(){var n;(n=this.lead)!=null&&n.snapshot&&(this.lead.snapshot=void 0)}}const Wo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ru=["","X","Y","Z"],Z7=1e3;let Q7=0;function Du(e,n,i,s){const{latestValues:a}=n;a[e]&&(i[e]=a[e],n.setStaticValue(e,0),s&&(s[e]=0))}function dy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const i=A0(n);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:a,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",je,!(a||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&dy(s)}function hy({attachResizeListener:e,defaultParent:n,measureScroll:i,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},d=n==null?void 0:n()){this.id=Q7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(tx),this.nodes.forEach(ax),this.nodes.forEach(lx),this.nodes.forEach(nx)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new G7)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Gc),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const p=this.eventHandlers.get(c);p&&p.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=df(c)&&!n7(c),this.instance=c;const{layoutId:d,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||d)&&(this.isLayoutDirty=!0),e){let y,w=0;const g=()=>this.root.updateBlockedByResize=!1;je.read(()=>{w=window.innerWidth}),e(c,()=>{const k=window.innerWidth;k!==w&&(w=k,this.root.updateBlockedByResize=!0,y&&y(),y=Y7(g,250),Wo.hasAnimatedSinceResize&&(Wo.hasAnimatedSinceResize=!1,this.nodes.forEach(A1)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeLayoutChanged:g,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||m.getDefaultTransition()||hx,{onLayoutAnimationStart:C,onLayoutAnimationComplete:T}=m.getProps(),A=!this.targetLayout||!cy(this.targetLayout,k),D=!w&&g;if(this.options.layoutRoot||this.resumeFrom||D||w&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...sf(x,"layout"),onPlay:C,onComplete:T};(m.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(y,D,O.path)}else w||A1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ux),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const w=this.path[y];w.shouldResetTransform=!0,(typeof w.latestValues.x=="string"||typeof w.latestValues.y=="string")&&(w.isLayoutDirty=!0),w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:d,layout:p}=this.options;if(d===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const p=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),p&&this.nodes.forEach(ix),this.nodes.forEach(L1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(N1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sx),this.nodes.forEach(ox),this.nodes.forEach(J7),this.nodes.forEach(ex)):this.nodes.forEach(N1),this.clearAllSnapshots();const d=ft.now();tt.delta=un(0,1e3/60,d-tt.timestamp),tt.timestamp=d,tt.isProcessing=!0,Tu.update.process(tt),Tu.preRender.process(tt),Tu.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rx),this.sharedNodes.forEach(cx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!dt(this.snapshot.measuredBox.x)&&!dt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ye()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const p=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:p,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!uy(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;c&&this.instance&&(d||hr(this.latestValues)||y)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let p=this.removeElementScroll(d);return c&&(p=this.removeTransform(p)),px(p),{animationId:this.root.animationId,measuredBox:d,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:c}=this.options;if(!c)return Ye();const d=c.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(mx))){const{scroll:y}=this.root;y&&(on(d.x,y.offset.x),on(d.y,y.offset.y))}return d}removeElementScroll(c){var p;const d=Ye();if(Wt(d,c),(p=this.scroll)!=null&&p.wasRoot)return d;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:w,options:g}=y;y!==this.root&&w&&g.layoutScroll&&(w.wasRoot&&Wt(d,c),on(d.x,w.offset.x),on(d.y,w.offset.y))}return d}applyTransform(c,d=!1,p){var y,w;const m=p||Ye();Wt(m,c);for(let g=0;g<this.path.length;g++){const k=this.path[g];!d&&k.options.layoutScroll&&k.scroll&&k!==k.root&&(on(m.x,-k.scroll.offset.x),on(m.y,-k.scroll.offset.y)),hr(k.latestValues)&&Ho(m,k.latestValues,(y=k.layout)==null?void 0:y.layoutBox)}return hr(this.latestValues)&&Ho(m,this.latestValues,(w=this.layout)==null?void 0:w.layoutBox),m}removeTransform(c){var p;const d=Ye();Wt(d,c);for(let m=0;m<this.path.length;m++){const y=this.path[m];if(!hr(y.latestValues))continue;let w;y.instance&&(Tc(y.latestValues)&&y.updateSnapshot(),w=Ye(),Wt(w,y.measurePageBox())),k1(d,y.latestValues,(p=y.snapshot)==null?void 0:p.layoutBox,w)}return hr(this.latestValues)&&k1(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var k;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!this.layout||!(y||w))return;this.resolvedRelativeTargetAt=tt.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ye(),this.targetWithTransforms=Ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),O7(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Wt(this.target,this.layout.layoutBox),X0(this.target,this.targetDelta)):Wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tc(this.parent.latestValues)||Y0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,p){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),oa(this.relativeTargetOrigin,d,p,this.options.layoutAnchor||void 0),Wt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(p=!1),p)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;Wt(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,g=this.treeScale.y;d7(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Ye());const{target:k}=c;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(y1(this.prevProjectionDelta.x,this.projectionDelta.x),y1(this.prevProjectionDelta.y,this.projectionDelta.y)),ts(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==g||!P1(this.projectionDelta.x,this.prevProjectionDelta.x)||!P1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),c){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qr(),this.projectionDelta=Qr(),this.projectionDeltaWithTransform=Qr()}setAnimationOrigin(c,d=!1,p){const m=this.snapshot,y=m?m.latestValues:{},w={...this.latestValues},g=Qr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const k=Ye(),x=m?m.source:void 0,C=this.layout?this.layout.source:void 0,T=x!==C,A=this.getStack(),D=!A||A.members.length<=1,O=!!(T&&!D&&this.options.crossfade===!0&&!this.path.some(dx));this.animationProgress=0;let z;const V=p==null?void 0:p.interpolateProjection(c);this.mixTargetDelta=F=>{const U=F/1e3,q=V==null?void 0:V(U);q?(g.x.translate=q.x,g.x.scale=Me(c.x.scale,1,U),g.x.origin=c.x.origin,g.x.originPoint=c.x.originPoint,g.y.translate=q.y,g.y.scale=Me(c.y.scale,1,U),g.y.origin=c.y.origin,g.y.originPoint=c.y.originPoint):(R1(g.x,c.x,U),R1(g.y,c.y,U)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oa(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),fx(this.relativeTarget,this.relativeTargetOrigin,k,U),z&&z7(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Ye()),Wt(z,this.relativeTarget)),T&&(this.animationValues=w,H7(w,y,this.latestValues,U,O,D)),q&&q.rotate!==void 0&&(this.animationValues||(this.animationValues=w),this.animationValues.pathRotation=q.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var d,p,m;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(m=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||m.stop(),this.pendingAnimation&&(Wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=je.update(()=>{Wo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ri(0)),this.motionValue.jump(0,!1),this.currentAnimation=q7(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),c.onUpdate&&c.onUpdate(y)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:p,layout:m,latestValues:y}=c;if(!(!d||!p||!m)){if(this!==c&&this.layout&&m&&py(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||Ye();const w=dt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+w;const g=dt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+g}Wt(d,p),Ho(d,y),ts(this.projectionDeltaWithTransform,this.layoutCorrected,d,y)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new X7),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var d;const{layoutId:c}=this.options;return c?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:c}=this.options;return c?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(d=!0),!d)return;const m={};p.z&&Du("z",c,m,this.animationValues);for(let y=0;y<Ru.length;y++)Du(`rotate${Ru[y]}`,c,m,this.animationValues),Du(`skew${Ru[y]}`,c,m,this.animationValues);c.render();for(const y in m)c.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Uo(d==null?void 0:d.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Uo(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!hr(this.latestValues)&&(c.transform=p?p({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=m.animationValues||m.latestValues;this.applyTransformsToTarget();let w=F7(this.projectionDeltaWithTransform,this.treeScale,y);p&&(w=p(y,w)),c.transform=w;const{x:g,y:k}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${k.origin*100}% 0`,m.animationValues?c.opacity=m===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=m===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const x in bc){if(y[x]===void 0)continue;const{correct:C,applyTo:T,isCSSVariable:A}=bc[x],D=w==="none"?y[x]:C(y[x],m);if(T){const O=T.length;for(let z=0;z<O;z++)c[T[z]]=D}else A?this.options.visualElement.renderState.vars[x]=D:c[x]=D}this.options.layoutId&&(c.pointerEvents=m===this?Uo(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(L1),this.root.sharedNodes.clear()}}}function J7(e){e.updateLayout()}function ex(e){var i;const n=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=e.layout,{animationType:u}=e.options,c=n.source!==e.layout.source;if(u==="size")sn(w=>{const g=c?n.measuredBox[w]:n.layoutBox[w],k=dt(g);g.min=s[w].min,g.max=g.min+k});else if(u==="x"||u==="y"){const w=u==="x"?"y":"x";Mc(c?n.measuredBox[w]:n.layoutBox[w],s[w])}else py(u,n.layoutBox,s)&&sn(w=>{const g=c?n.measuredBox[w]:n.layoutBox[w],k=dt(s[w]);g.max=g.min+k,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[w].max=e.relativeTarget[w].min+k)});const d=Qr();ts(d,s,n.layoutBox);const p=Qr();c?ts(p,e.applyTransform(a,!0),n.measuredBox):ts(p,s,n.layoutBox);const m=!uy(d);let y=!1;if(!e.resumeFrom){const w=e.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:g,layout:k}=w;if(g&&k){const x=e.options.layoutAnchor||void 0,C=Ye();oa(C,n.layoutBox,g.layoutBox,x);const T=Ye();oa(T,s,k.layoutBox,x),cy(C,T)||(y=!0),w.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=C,e.relativeParent=w)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:p,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:y})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function tx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rx(e){e.clearSnapshot()}function L1(e){e.clearMeasurements()}function ix(e){e.isLayoutDirty=!0,e.updateLayout()}function N1(e){e.isLayoutDirty=!1}function sx(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ox(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function A1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ax(e){e.resolveTargetDelta()}function lx(e){e.calcProjection()}function ux(e){e.resetSkewAndRotation()}function cx(e){e.removeLeadSnapshot()}function R1(e,n,i){e.translate=Me(n.translate,0,i),e.scale=Me(n.scale,1,i),e.origin=n.origin,e.originPoint=n.originPoint}function D1(e,n,i,s){e.min=Me(n.min,i.min,s),e.max=Me(n.max,i.max,s)}function fx(e,n,i,s){D1(e.x,n.x,i.x,s),D1(e.y,n.y,i.y,s)}function dx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hx={duration:.45,ease:[.4,0,.1,1]},O1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),V1=O1("applewebkit/")&&!O1("chrome/")?Math.round:Vt;function I1(e){e.min=V1(e.min),e.max=V1(e.max)}function px(e){I1(e.x),I1(e.y)}function py(e,n,i){return e==="position"||e==="preserve-aspect"&&!D7(T1(n),T1(i),.2)}function mx(e){var n;return e!==e.root&&((n=e.scroll)==null?void 0:n.wasRoot)}const yx=hy({attachResizeListener:(e,n)=>ds(e,"resize",n),measureScroll:()=>{var e,n;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ou={current:void 0},my=hy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ou.current){const e=new yx({});e.mount(window),e.setOptions({layoutScroll:!0}),Ou.current=e}return Ou.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yy=M.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function gx(e=!0){const n=M.useContext(qc);if(n===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:a}=n,u=M.useId();M.useEffect(()=>{if(e)return a(u)},[e]);const c=M.useCallback(()=>e&&s&&s(u),[u,s,e]);return!i&&s?[!1,c]:[!0]}const gy=M.createContext({strict:!1}),$1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let z1=!1;function vx(){if(z1)return;const e={};for(const n in $1)e[n]={isEnabled:i=>$1[n].some(s=>!!i[s])};q0(e),z1=!0}function vy(){return vx(),l7()}function wx(e){const n=vy();for(const i in e)n[i]={...n[i],...e[i]};q0(n)}const xa=M.createContext({});function xx(e,n){if(wa(e)){const{initial:i,animate:s}=e;return{initial:i===!1||fs(i)?i:void 0,animate:fs(s)?s:void 0}}return e.inherit!==!1?n:{}}function _x(e){const{initial:n,animate:i}=xx(e,M.useContext(xa));return M.useMemo(()=>({initial:n,animate:i}),[F1(n),F1(i)])}function F1(e){return Array.isArray(e)?e.join(" "):e}const vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wy(e,n,i){for(const s in n)!nt(n[s])&&!J0(s,i)&&(e[s]=n[s])}function kx({transformTemplate:e},n){return M.useMemo(()=>{const i=vf();return yf(i,n,e),Object.assign({},i.vars,i.style)},[n])}function Sx(e,n){const i=e.style||{},s={};return wy(s,i,e),Object.assign(s,kx(e,n)),s}function Cx(e,n){const i={},s=Sx(e,n);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i}const xy=()=>({...vf(),attrs:{}});function Ex(e,n,i,s){const a=M.useMemo(()=>{const u=xy();return ty(u,n,ry(s),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};wy(u,e.style,e),a.style={...u,...a.style}}return a}const Tx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function aa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Tx.has(e)}function Px(e,n){return e.startsWith("on")?!aa(e):(n==null?void 0:n(e))??!aa(e)}function bx(e,n,i,s){const a={};for(const u in e)u==="values"&&typeof e.values=="object"||nt(e[u])||(Px(u,s)||i===!0&&aa(u)||!n&&!aa(u)||e.draggable&&u.startsWith("onDrag"))&&(a[u]=e[u]);return a}const Mx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wf(e){return typeof e!="string"||e.includes("-")?!1:!!(Mx.indexOf(e)>-1||/[A-Z]/u.test(e))}function jx(e,n,i,{latestValues:s},a,u=!1,c,d){const m=(c??wf(e)?Ex:Cx)(n,s,a,e),y=bx(n,typeof e=="string",u,d),w=e!==M.Fragment?{...y,...m,ref:i}:{},{children:g}=n,k=M.useMemo(()=>nt(g)?g.get():g,[g]);return M.createElement(e,{...w,children:k})}function Lx({scrapeMotionValuesFromProps:e,createRenderState:n},i,s,a){return{latestValues:Nx(i,s,a,e),renderState:n()}}function Nx(e,n,i,s){const a={},u=s(e,{});for(const g in u)a[g]=Uo(u[g]);let{initial:c,animate:d}=e;const p=wa(e),m=U0(e);n&&m&&!p&&e.inherit!==!1&&(c===void 0&&(c=n.initial),d===void 0&&(d=n.animate));let y=i?i.initial===!1:!1;y=y||c===!1;const w=y?d:c;if(w&&typeof w!="boolean"&&!va(w)){const g=Array.isArray(w)?w:[w];for(let k=0;k<g.length;k++){const x=af(e,g[k]);if(x){const{transitionEnd:C,transition:T,...A}=x;for(const D in A){let O=A[D];if(Array.isArray(O)){const z=y?O.length-1:0;O=O[z]}O!==null&&(a[D]=O)}for(const D in C)a[D]=C[D]}}}return a}const _y=e=>(n,i)=>{const s=M.useContext(xa),a=M.useContext(qc),u=()=>Lx(e,n,s,a);return i?u():L6(u)},Ax=_y({scrapeMotionValuesFromProps:gf,createRenderState:vf}),Rx=_y({scrapeMotionValuesFromProps:iy,createRenderState:xy}),Dx=Symbol.for("motionComponentSymbol");function Ox(e,n,i){const s=M.useRef(i);M.useInsertionEffect(()=>{s.current=i});const a=M.useRef(null);return M.useCallback(u=>{var d;u&&((d=e.onMount)==null||d.call(e,u)),n&&(u?n.mount(u):n.unmount());const c=s.current;if(typeof c=="function")if(u){const p=c(u);typeof p=="function"&&(a.current=p)}else a.current?(a.current(),a.current=null):c(u);else c&&(c.current=u)},[n])}const ky=M.createContext({});function Gr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vx(e,n,i,s,a,u){var O,z;const{visualElement:c}=M.useContext(xa),d=M.useContext(gy),p=M.useContext(qc),m=M.useContext(yy),y=m.reducedMotion,w=m.skipAnimations,g=M.useRef(null),k=M.useRef(!1);s=s||d.renderer,!g.current&&s&&(g.current=s(e,{visualState:n,parent:c,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y,skipAnimations:w,isSVG:u}),k.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const x=g.current,C=M.useContext(ky);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&Ix(g.current,i,a,C);const T=M.useRef(!1);M.useInsertionEffect(()=>{x&&T.current&&x.update(i,p)});const A=i[N0],D=M.useRef(!!A&&typeof window<"u"&&!((O=window.MotionHandoffIsComplete)!=null&&O.call(window,A))&&((z=window.MotionHasOptimisedAnimation)==null?void 0:z.call(window,A)));return A6(()=>{k.current=!0,x&&(T.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),D.current&&x.animationState&&x.animationState.animateChanges())}),M.useEffect(()=>{x&&(!D.current&&x.animationState&&x.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var V;(V=window.MotionHandoffMarkAsComplete)==null||V.call(window,A)}),D.current=!1),x.enteringChildren=void 0)}),x}function Ix(e,n,i,s){const{layoutId:a,layout:u,drag:c,dragConstraints:d,layoutScroll:p,layoutRoot:m,layoutAnchor:y,layoutCrossfade:w}=n;e.projection=new i(e.latestValues,n["data-framer-portal-id"]?void 0:Sy(e.parent)),e.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||d&&Gr(d),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:w,layoutScroll:p,layoutRoot:m,layoutAnchor:y})}function Sy(e){if(e)return e.options.allowProjection!==!1?e.projection:Sy(e.parent)}function Vu(e,{forwardMotionProps:n=!1,type:i}={},s,a){s&&wx(s);const u=i?i==="svg":wf(e),c=u?Rx:Ax;function d(m,y){let w;const g={...M.useContext(yy),...m,layoutId:$x(m)},{isStatic:k,isValidProp:x}=g,C=_x(m),T=c(m,k);if(!k&&typeof window<"u"){zx();const A=Fx(g);w=A.MeasureLayout,C.visualElement=Vx(e,T,g,a,A.ProjectionNode,u)}return _.jsxs(xa.Provider,{value:C,children:[w&&C.visualElement?_.jsx(w,{visualElement:C.visualElement,...g}):null,jx(e,m,Ox(T,C.visualElement,y),T,k,n,u,x)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=M.forwardRef(d);return p[Dx]=e,p}function $x({layoutId:e}){const n=M.useContext(Um).id;return n&&e!==void 0?n+"-"+e:e}function zx(e,n){M.useContext(gy).strict}function Fx(e){const n=vy(),{drag:i,layout:s}=n;if(!i&&!s)return{};const a={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(e)||s!=null&&s.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function Bx(e,n){if(typeof Proxy>"u")return Vu;const i=new Map,s=(u,c)=>Vu(u,c,e,n),a=(u,c)=>s(u,c);return new Proxy(a,{get:(u,c)=>c==="create"?s:(i.has(c)||i.set(c,Vu(c,void 0,e,n)),i.get(c))})}const Hx=(e,n)=>n.isSVG??wf(e)?new C7(n):new w7(n,{allowProjection:e!==M.Fragment});class Ux extends Kn{constructor(n){super(n),n.animationState||(n.animationState=M7(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();va(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:i}=this.node.prevProps||{};n!==i&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let Wx=0;class qx extends Kn{constructor(){super(...arguments),this.id=Wx++,this.isExitComplete=!1}update(){var u;if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;if(n&&s===!1){if(this.isExitComplete){const{initial:c,custom:d}=this.node.getProps();if(typeof c=="string"||typeof c=="object"&&c!==null&&!Array.isArray(c)){const p=_r(this.node,c,d);if(p){const{transition:m,transitionEnd:y,...w}=p;for(const g in w)(u=this.node.getValue(g))==null||u.jump(w[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!n);i&&!n&&a.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:n,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const Kx={animation:{Feature:Ux},exit:{Feature:qx}};function vs(e){return{point:{x:e.pageX,y:e.pageY}}}const Gx=e=>n=>ff(n)&&e(n,vs(n));function ns(e,n,i,s){return ds(e,n,Gx(i),s)}const Cy=({current:e})=>e?e.ownerDocument.defaultView:null,B1=(e,n)=>Math.abs(e-n);function Yx(e,n){const i=B1(e.x,n.x),s=B1(e.y,n.y);return Math.sqrt(i**2+s**2)}const H1=new Set(["auto","scroll"]);class Ey{constructor(n,i,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ro(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Iu(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,T=Yx(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!T)return;const{point:A}=x,{timestamp:D}=tt;this.history.push({...A,timestamp:D});const{onStart:O,onMove:z}=this.handlers;C||(O&&O(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,x)},this.handlePointerMove=(x,C)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=C,this.lastMoveEventInfo=Ro(C,this.transformPagePoint),je.update(this.updatePoint,!0)},this.handlePointerUp=(x,C)=>{this.end();const{onEnd:T,onSessionEnd:A,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Iu(x.type==="pointercancel"?this.lastMoveEventInfo:Ro(C,this.transformPagePoint),this.history);this.startEvent&&T&&T(x,O),A&&A(x,O)},!ff(n))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=a||window;const p=vs(n),m=Ro(p,this.transformPagePoint),{point:y}=m,{timestamp:w}=tt;this.history=[{...y,timestamp:w}];const{onSessionStart:g}=i;g&&g(n,Iu(m,this.history));const k={passive:!0,capture:!0};this.removeListeners=ms(ns(this.contextWindow,"pointermove",this.handlePointerMove,k),ns(this.contextWindow,"pointerup",this.handlePointerUp,k),ns(this.contextWindow,"pointercancel",this.handlePointerUp,k)),d&&this.startScrollTracking(d)}startScrollTracking(n){let i=n.parentElement;for(;i;){const s=getComputedStyle(i);(H1.has(s.overflowX)||H1.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(n){const i=this.scrollPositions.get(n);if(!i)return;const s=n===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},u={x:a.x-i.x,y:a.y-i.y};u.x===0&&u.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(n,a),je.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Wn(this.updatePoint)}}function Ro(e,n){return n?{point:n(e.point)}:e}function U1(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Iu({point:e},n){return{point:e,delta:U1(e,Ty(n)),offset:U1(e,Xx(n)),velocity:Zx(n,.1)}}function Xx(e){return e[0]}function Ty(e){return e[e.length-1]}function Zx(e,n){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null;const a=Ty(e);for(;i>=0&&(s=e[i],!(a.timestamp-s.timestamp>bt(n)));)i--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&a.timestamp-s.timestamp>bt(n)*2&&(s=e[1]);const u=Ot(a.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const c={x:(a.x-s.x)/u,y:(a.y-s.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Qx(e,{min:n,max:i},s){return n!==void 0&&e<n?e=s?Me(n,e,s.min):Math.max(e,n):i!==void 0&&e>i&&(e=s?Me(i,e,s.max):Math.min(e,i)),e}function W1(e,n,i){return{min:n!==void 0?e.min+n:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function Jx(e,{top:n,left:i,bottom:s,right:a}){return{x:W1(e.x,i,a),y:W1(e.y,n,s)}}function q1(e,n){let i=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function e_(e,n){return{x:q1(e.x,n.x),y:q1(e.y,n.y)}}function t_(e,n){let i=.5;const s=dt(e),a=dt(n);return a>s?i=us(n.min,n.max-s,e.min):s>a&&(i=us(e.min,e.max-a,n.min)),un(0,1,i)}function n_(e,n){const i={};return n.min!==void 0&&(i.min=n.min-e.min),n.max!==void 0&&(i.max=n.max-e.min),i}const jc=.35;function r_(e=jc){return e===!1?e=0:e===!0&&(e=jc),{x:K1(e,"left","right"),y:K1(e,"top","bottom")}}function K1(e,n,i){return{min:G1(e,n),max:G1(e,i)}}function G1(e,n){return typeof e=="number"?e:e[n]||0}const i_=new WeakMap;class s_{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ye(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const u=w=>{i&&this.snapToCursor(vs(w).point),this.stopAnimation()},c=(w,g)=>{const{drag:k,dragPropagation:x,onDragStart:C}=this.getProps();if(k&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$8(k),!this.openDragLock))return;this.latestPointerEvent=w,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sn(A=>{let D=this.getAxisMotionValue(A).get()||0;if(an.test(D)){const{projection:O}=this.visualElement;if(O&&O.layout){const z=O.layout.layoutBox[A];z&&(D=dt(z)*(parseFloat(D)/100))}}this.originPoint[A]=D}),C&&je.update(()=>C(w,g),!1,!0),_c(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},d=(w,g)=>{this.latestPointerEvent=w,this.latestPanInfo=g;const{dragPropagation:k,dragDirectionLock:x,onDirectionLock:C,onDrag:T}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:A}=g;if(x&&this.currentDirection===null){this.currentDirection=a_(A),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",g.point,A),this.updateAxis("y",g.point,A),this.visualElement.render(),T&&je.update(()=>T(w,g),!1,!0)},p=(w,g)=>{this.latestPointerEvent=w,this.latestPanInfo=g,this.stop(w,g),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:w}=this.getProps();(w||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Ey(n,{onSessionStart:u,onStart:c,onMove:d,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:Cy(this.visualElement),element:this.visualElement.current})}stop(n,i){const s=n||this.latestPointerEvent,a=i||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!a||!s)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&je.postRender(()=>d(s,a))}cancel(){this.isDragging=!1;const{projection:n,animationState:i}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,i,s){const{drag:a}=this.getProps();if(!s||!Do(n,a,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(c=Qx(c,this.constraints[n],this.elastic[n])),u.set(c)}resolveConstraints(){var u;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,a=this.constraints;n&&Gr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Jx(s.layoutBox,n):this.constraints=!1,this.elastic=r_(i),a!==this.constraints&&!Gr(n)&&s&&this.constraints&&!this.hasMutatedConstraints&&sn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=n_(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:i}=this.getProps();if(!n||!Gr(n))return!1;const s=n.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const u=h7(s,a.root,this.visualElement.getTransformPagePoint());let c=e_(a.layout.layoutBox,u);if(i){const d=i(c7(c));this.hasMutatedConstraints=!!d,d&&(c=G0(d))}return c}startAnimation(n){const{drag:i,dragMomentum:s,dragElastic:a,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),p=this.constraints||{},m=sn(y=>{if(!Do(y,i,this.currentDirection))return;let w=p&&p[y]||{};(c===!0||c===y)&&(w={min:0,max:0});const g=a?200:1e6,k=a?40:1e7,x={type:"inertia",velocity:s?n[y]:0,bounceStiffness:g,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...u,...w};return this.startAxisValueAnimation(y,x)});return Promise.all(m).then(d)}startAxisValueAnimation(n,i){const s=this.getAxisMotionValue(n);return _c(this.visualElement,n),s.start(of(n,s,0,i,this.visualElement,!1))}stopAnimation(){sn(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const i=`_drag${n.toUpperCase()}`,a=this.visualElement.getProps()[i];return a||this.visualElement.getValue(n,this.visualElement.latestValues[n]??0)}snapToCursor(n){sn(i=>{const{drag:s}=this.getProps();if(!Do(i,s,this.currentDirection))return;const{projection:a}=this.visualElement,u=this.getAxisMotionValue(i);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[i],p=u.get()||0;u.set(n[i]-Me(c,d,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!Gr(i)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};sn(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const p=d.get();a[c]=t_({min:p,max:p},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),sn(c=>{if(!Do(c,n,null))return;const d=this.getAxisMotionValue(c),{min:p,max:m}=this.constraints[c];d.set(Me(p,m,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;i_.set(this.visualElement,this);const n=this.visualElement.current,i=ns(n,"pointerdown",m=>{const{drag:y,dragListener:w=!0}=this.getProps(),g=m.target,k=g!==n&&W8(g);y&&w&&!k&&this.start(m)});let s;const a=()=>{const{dragConstraints:m}=this.getProps();Gr(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),s||(s=o_(n,m.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,c=u.addEventListener("measure",a);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),je.read(a);const d=ds(window,"resize",()=>this.scalePositionWithinConstraints()),p=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:y})=>{this.isDragging&&y&&(sn(w=>{const g=this.getAxisMotionValue(w);g&&(this.originPoint[w]+=m[w].translate,g.set(g.get()+m[w].translate))}),this.visualElement.render())}));return()=>{d(),i(),c(),p&&p(),s&&s()}}getProps(){const n=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:u=!1,dragElastic:c=jc,dragMomentum:d=!0}=n;return{...n,drag:i,dragDirectionLock:s,dragPropagation:a,dragConstraints:u,dragElastic:c,dragMomentum:d}}}function Y1(e){let n=!0;return()=>{if(n){n=!1;return}e()}}function o_(e,n,i){const s=i1(e,Y1(i)),a=i1(n,Y1(i));return()=>{s(),a()}}function Do(e,n,i){return(n===!0||n===e)&&(i===null||i===e)}function a_(e,n=10){let i=null;return Math.abs(e.y)>n?i="y":Math.abs(e.x)>n&&(i="x"),i}class l_ extends Kn{constructor(n){super(n),this.removeGroupControls=Vt,this.removeListeners=Vt,this.controls=new s_(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vt}update(){const{dragControls:n}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};n!==i&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const $u=e=>(n,i)=>{e&&je.update(()=>e(n,i),!1,!0)};class u_ extends Kn{constructor(){super(...arguments),this.removePointerDownListener=Vt}onPointerDown(n){this.session=new Ey(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cy(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:i,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:$u(n),onStart:$u(i),onMove:$u(s),onEnd:(u,c)=>{delete this.session,a&&je.postRender(()=>a(u,c))}}}mount(){this.removePointerDownListener=ns(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let zu=!1;class c_ extends M.Component{componentDidMount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:s,layoutId:a}=this.props,{projection:u}=n;u&&(i.group&&i.group.add(u),s&&s.register&&a&&s.register(u),zu&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wo.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:i,visualElement:s,drag:a,isPresent:u}=this.props,{projection:c}=s;return c&&(c.isPresent=u,n.layoutDependency!==i&&c.setOptions({...c.options,layoutDependency:i}),zu=!0,a||n.layoutDependency!==i||i===void 0||n.isPresent!==u?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||je.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:n,layoutAnchor:i}=this.props,{projection:s}=n;s&&(s.options.layoutAnchor=i,s.root.didUpdate(),cf.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:a}=n;zu=!0,a&&(a.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function Py(e){const[n,i]=gx(),s=M.useContext(Um);return _.jsx(c_,{...e,layoutGroup:s,switchLayoutGroup:M.useContext(ky),isPresent:n,safeToRemove:i})}const f_={pan:{Feature:u_},drag:{Feature:l_,ProjectionNode:my,MeasureLayout:Py}};function X1(e,n,i){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",i==="Start");const a="onHover"+i,u=s[a];u&&je.postRender(()=>u(n,vs(n)))}class d_ extends Kn{mount(){const{current:n}=this.node;n&&(this.unmount=F8(n,(i,s)=>(X1(this.node,s,"Start"),a=>X1(this.node,a,"End"))))}unmount(){}}class h_ extends Kn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ms(ds(this.node.current,"focus",()=>this.onFocus()),ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Z1(e,n,i){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",i==="Start");const a="onTap"+(i==="End"?"":i),u=s[a];u&&je.postRender(()=>u(n,vs(n)))}class p_ extends Kn{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:i,propagate:s}=this.node.props;this.unmount=K8(n,(a,u)=>(Z1(this.node,u,"Start"),(c,{success:d})=>Z1(this.node,c,d?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const Lc=new WeakMap,Fu=new WeakMap,m_=e=>{const n=Lc.get(e.target);n&&n(e)},y_=e=>{e.forEach(m_)};function g_({root:e,...n}){const i=e||document;Fu.has(i)||Fu.set(i,{});const s=Fu.get(i),a=JSON.stringify(n);return s[a]||(s[a]=new IntersectionObserver(y_,{root:e,...n})),s[a]}function v_(e,n,i){const s=g_(n);return Lc.set(e,i),s.observe(e),()=>{Lc.delete(e),s.unobserve(e)}}const w_={some:0,all:1};class x_ extends Kn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var p;(p=this.stopObserver)==null||p.call(this);const{viewport:n={}}=this.node.getProps(),{root:i,margin:s,amount:a="some",once:u}=n,c={root:i?i.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:w_[a]},d=m=>{const{isIntersecting:y}=m;if(this.isInView===y||(this.isInView=y,u&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:w,onViewportLeave:g}=this.node.getProps(),k=y?w:g;k&&k(m)};this.stopObserver=v_(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:i}=this.node;["amount","margin","root"].some(__(n,i))&&this.startObserver()}unmount(){var n;(n=this.stopObserver)==null||n.call(this),this.hasEnteredView=!1,this.isInView=!1}}function __({viewport:e={}},{viewport:n={}}={}){return i=>e[i]!==n[i]}const k_={inView:{Feature:x_},tap:{Feature:p_},focus:{Feature:h_},hover:{Feature:d_}},S_={layout:{ProjectionNode:my,MeasureLayout:Py}},C_={...Kx,...k_,...f_,...S_},E_=Bx(C_,Hx);function T_(){!mf.current&&W0();const[e]=M.useState(ra.current);return e}const P_=E_,b_="_band_2w9pm_7",M_={band:b_},j_="_button_vhkdy_4",L_="_md_vhkdy_24",N_="_sm_vhkdy_30",A_="_primary_vhkdy_38",R_="_ghost_vhkdy_47",D_="_outline_vhkdy_56",O_="_toolbar_vhkdy_65",V_="_icon_vhkdy_84",Oo={button:j_,md:L_,sm:N_,primary:A_,ghost:R_,outline:D_,toolbar:O_,icon:V_},I_="_pill_e3ygd_1",$_="_interactive_e3ygd_15",z_="_active_e3ygd_23",Zi={pill:I_,interactive:$_,active:z_},F_="_wrap_1ao1y_1",B_="_icon_1ao1y_16",H_="_input_1ao1y_25",Bu={wrap:F_,icon:B_,input:H_},U_="_root_1rn7y_1",W_="_list_1rn7y_8",q_="_submenu_1rn7y_9",K_="_portal_1rn7y_43",G_="_sideTop_1rn7y_51",Y_="_alignEnd_1rn7y_56",X_="_scrollable_1rn7y_21",Z_="_viewport_1rn7y_21",Q_="_header_1rn7y_80",J_="_footer_1rn7y_63",e9="_itemWrap_1rn7y_96",t9="_item_1rn7y_96",n9="_itemWithAction_1rn7y_123",r9="_itemAction_1rn7y_127",i9="_denseList_1rn7y_151",s9="_label_1rn7y_156",o9="_compactList_1rn7y_160",a9="_itemIcon_1rn7y_176",l9="_separator_1rn7y_86",u9="_itemLabel_1rn7y_218",c9="_check_1rn7y_226",f9="_itemTrailing_1rn7y_227",d9="_selected_1rn7y_244",h9="_danger_1rn7y_249",be={root:U_,list:W_,submenu:q_,portal:K_,sideTop:G_,alignEnd:Y_,scrollable:X_,viewport:Z_,header:Q_,footer:J_,itemWrap:e9,item:t9,itemWithAction:n9,itemAction:r9,denseList:i9,label:s9,compactList:o9,itemIcon:a9,separator:l9,itemLabel:u9,check:c9,itemTrailing:f9,selected:d9,danger:h9},p9="_root_dcuaf_3",m9="_card_dcuaf_13",y9="_closing_dcuaf_31",g9="_copyable_dcuaf_57",v9="_feedback_dcuaf_66",w9="_copied_dcuaf_72",x9="_status_dcuaf_79",ur={root:p9,card:m9,closing:y9,copyable:g9,feedback:v9,copied:w9,status:x9},_9="_root_15u5s_2",k9="_mask_15u5s_14",S9="_dialog_15u5s_22",C9="_content_15u5s_37",E9="_header_15u5s_45",T9="_title_15u5s_53",P9="_close_15u5s_61",b9="_description_15u5s_80",M9="_body_15u5s_89",j9="_footer_15u5s_97",rn={root:_9,mask:k9,dialog:S9,content:C9,header:E9,title:T9,close:P9,description:b9,body:M9,footer:j9},L9="_root_h2ksp_5",N9="_mask_h2ksp_11",A9="_panel_h2ksp_19",Hu={root:L9,mask:N9,panel:A9},R9="_onboardingOverlay_1cfrq_3",D9="_onboardingMask_1cfrq_10",O9="_onboardingStage_1cfrq_21",Uu={onboardingOverlay:R9,onboardingMask:D9,onboardingStage:O9},V9="_confirmation_1nu42_1",I9="_confirmationContent_1nu42_7",$9="_warning_1nu42_19",z9="_warningIcon_1nu42_32",F9="_acknowledgement_1nu42_38",B9="_modalAction_1nu42_67",H9="_confirmAction_1nu42_71",cr={confirmation:V9,confirmationContent:I9,warning:$9,warningIcon:z9,acknowledgement:F9,modalAction:B9,confirmAction:H9},U9="_banner_ugy7y_1",W9={banner:U9},q9="_bubble_hy9vu_8",K9={bubble:q9},G9="_toast_fvpz7_7",Y9="_icon_fvpz7_35",X9="_text_fvpz7_42",Wu={toast:G9,icon:Y9,text:X9},Z9="_root_4qrvp_1",Q9="_container_4qrvp_30",J9="_expandedTopLevel_4qrvp_39",ek="_topLevelBracket_4qrvp_46",tk="_expandedTopLevelContainer_4qrvp_51",nk="_row_4qrvp_55",rk="_children_4qrvp_60",ik="_expander_4qrvp_78",sk="_label_4qrvp_95",ok="_clickableLabel_4qrvp_101",ak="_stringValue_4qrvp_105",lk="_numberValue_4qrvp_109",uk="_keywordValue_4qrvp_113",ck="_otherValue_4qrvp_117",fk="_punctuation_4qrvp_121",dk="_preview_4qrvp_125",hk="_previewProperty_4qrvp_129",pk="_previewEllipsis_4qrvp_133",mk="_copyAnchor_4qrvp_137",yk="_copyButton_4qrvp_143",gk="_collapseIcon_4qrvp_202",he={root:Z9,container:Q9,expandedTopLevel:J9,topLevelBracket:ek,expandedTopLevelContainer:tk,row:nk,children:rk,expander:ik,label:sk,clickableLabel:ok,stringValue:ak,numberValue:lk,keywordValue:uk,otherValue:ck,punctuation:fk,preview:dk,previewProperty:hk,previewEllipsis:pk,copyAnchor:mk,copyButton:yk,collapseIcon:gk};var qu,Q1;function vk(){if(Q1)return qu;Q1=1;const e=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],n=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;class i{static escapeForHtml(a){return new i().escapeForHtml(a)}static linkify(a){return new i().linkify(a)}static ansiToHtml(a,u){return new i().ansiToHtml(a,u)}static ansiToJson(a,u){return new i().ansiToJson(a,u)}static ansiToText(a){return new i().ansiToText(a)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let d=0;d<2;++d)for(let p=0;p<8;++p)this.PALETTE_COLORS.push(e[d][p].color);let a=[0,95,135,175,215,255],u=(d,p,m)=>a[d]+", "+a[p]+", "+a[m];for(let d=0;d<6;++d)for(let p=0;p<6;++p)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(u(d,p,m));let c=8;for(let d=0;d<24;++d,c+=10)this.PALETTE_COLORS.push(c+", "+c+", "+c)}escapeForHtml(a){return a.replace(/[&<>\"]/gm,u=>u=="&"?"&amp;":u=='"'?"&quot;":u=="<"?"&lt;":u==">"?"&gt;":"")}linkify(a){return a.replace(n,u=>`<a href="${u}">${u}</a>`)}ansiToHtml(a,u){return this.process(a,u,!0)}ansiToJson(a,u){return u=u||{},u.json=!0,u.clearLine=!1,this.process(a,u,!0)}ansiToText(a){return this.process(a,{},!1)}process(a,u,c){let d=this,p=a.split(/\033\[/),m=p.shift();u==null&&(u={}),u.clearLine=/\r/.test(a);let y=p.map(w=>this.processChunk(w,u,c));if(u&&u.json){let w=d.processChunkJson("");return w.content=m,w.clearLine=u.clearLine,y.unshift(w),u.remove_empty&&(y=y.filter(g=>!g.isEmpty())),y}else y.unshift(m);return y.join("")}processChunkJson(a,u,c){u=typeof u>"u"?{}:u;let d=u.use_classes=typeof u.use_classes<"u"&&u.use_classes,p=u.key=d?"class":"color",m={content:a,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:u.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},y=a.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!y)return m;m.content=y[4];let w=y[2].split(";");if(y[1]!==""||y[3]!=="m"||!c)return m;let g=this;for(;w.length>0;){let k=w.shift(),x=parseInt(k);if(isNaN(x)||x===0)g.fg=g.bg=null,g.decorations=[];else if(x===1)g.decorations.push("bold");else if(x===2)g.decorations.push("dim");else if(x===3)g.decorations.push("italic");else if(x===4)g.decorations.push("underline");else if(x===5)g.decorations.push("blink");else if(x===7)g.decorations.push("reverse");else if(x===8)g.decorations.push("hidden");else if(x===9)g.decorations.push("strikethrough");else if(x===21)g.removeDecoration("bold");else if(x===22)g.removeDecoration("bold"),g.removeDecoration("dim");else if(x===23)g.removeDecoration("italic");else if(x===24)g.removeDecoration("underline");else if(x===25)g.removeDecoration("blink");else if(x===27)g.removeDecoration("reverse");else if(x===28)g.removeDecoration("hidden");else if(x===29)g.removeDecoration("strikethrough");else if(x===39)g.fg=null;else if(x===49)g.bg=null;else if(x>=30&&x<38)g.fg=e[0][x%10][p];else if(x>=90&&x<98)g.fg=e[1][x%10][p];else if(x>=40&&x<48)g.bg=e[0][x%10][p];else if(x>=100&&x<108)g.bg=e[1][x%10][p];else if(x===38||x===48){let C=x===38;if(w.length>=1){let T=w.shift();if(T==="5"&&w.length>=1){let A=parseInt(w.shift());if(A>=0&&A<=255)if(!d)this.PALETTE_COLORS||g.setupPalette(),C?g.fg=this.PALETTE_COLORS[A]:g.bg=this.PALETTE_COLORS[A];else{let D=A>=16?"ansi-palette-"+A:e[A>7?1:0][A%8].class;C?g.fg=D:g.bg=D}}else if(T==="2"&&w.length>=3){let A=parseInt(w.shift()),D=parseInt(w.shift()),O=parseInt(w.shift());if(A>=0&&A<=255&&D>=0&&D<=255&&O>=0&&O<=255){let z=A+", "+D+", "+O;d?C?(g.fg="ansi-truecolor",g.fg_truecolor=z):(g.bg="ansi-truecolor",g.bg_truecolor=z):C?g.fg=z:g.bg=z}}}}}return g.fg===null&&g.bg===null&&g.decorations.length===0||(m.fg=g.fg,m.bg=g.bg,m.fg_truecolor=g.fg_truecolor,m.bg_truecolor=g.bg_truecolor,m.decorations=g.decorations,m.decoration=g.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(a,u,c){u=u||{};let d=this.processChunkJson(a,u,c),p=u.use_classes;if(d.decorations=d.decorations.filter(x=>{if(x==="reverse"){d.fg||(d.fg=e[0][7][p?"class":"color"]),d.bg||(d.bg=e[0][0][p?"class":"color"]);let C=d.fg;d.fg=d.bg,d.bg=C;let T=d.fg_truecolor;return d.fg_truecolor=d.bg_truecolor,d.bg_truecolor=T,d.isInverted=!0,!1}return!0}),u.json)return d;if(d.isEmpty())return"";if(!d.was_processed)return d.content;let m=[],y=[],w=[],g={},k=x=>{let C=[],T;for(T in x)x.hasOwnProperty(T)&&C.push("data-"+T+'="'+this.escapeForHtml(x[T])+'"');return C.length>0?" "+C.join(" "):""};return d.isInverted&&(g["ansi-is-inverted"]="true"),d.fg&&(p?(m.push(d.fg+"-fg"),d.fg_truecolor!==null&&(g["ansi-truecolor-fg"]=d.fg_truecolor,d.fg_truecolor=null)):m.push("color:rgb("+d.fg+")")),d.bg&&(p?(m.push(d.bg+"-bg"),d.bg_truecolor!==null&&(g["ansi-truecolor-bg"]=d.bg_truecolor,d.bg_truecolor=null)):m.push("background-color:rgb("+d.bg+")")),d.decorations.forEach(x=>{if(p){y.push("ansi-"+x);return}x==="bold"?y.push("font-weight:bold"):x==="dim"?y.push("opacity:0.5"):x==="italic"?y.push("font-style:italic"):x==="hidden"?y.push("visibility:hidden"):x==="strikethrough"?w.push("line-through"):w.push(x)}),w.length&&y.push("text-decoration:"+w.join(" ")),p?'<span class="'+m.concat(y).join(" ")+'"'+k(g)+">"+d.content+"</span>":'<span style="'+m.concat(y).join(";")+'"'+k(g)+">"+d.content+"</span>"}removeDecoration(a){const u=this.decorations.indexOf(a);u>=0&&this.decorations.splice(u,1)}}return qu=i,qu}var wk=vk();const xk=ps(wk),_k="_block_10eou_7",kk="_header_10eou_38",Sk="_prompt_10eou_76",Ck="_promptLine_10eou_84",Ek="_runState_10eou_97",Tk="_runStateLabel_10eou_105",Pk="_cwd_10eou_114",bk="_command_10eou_122",Mk="_status_10eou_134",jk="_copyButton_10eou_142",Lk="_output_10eou_162",Nk="_line_10eou_186",Ak="_expand_10eou_191",Rk="_empty_10eou_207",ut={block:_k,header:kk,prompt:Sk,promptLine:Ck,runState:Ek,runStateLabel:Tk,cwd:Pk,command:bk,status:Mk,copyButton:jk,output:Lk,line:Nk,expand:Ak,empty:Rk},Dk="_block_biesw_7",Ok="_banner_biesw_21",Vk="_label_biesw_32",Ik="_action_biesw_43",$k="_count_biesw_50",zk="_lang_biesw_55",Fk="_copyButton_biesw_62",Bk="_body_biesw_72",Hk="_line_biesw_81",Uk="_gutter_biesw_88",Wk="_content_biesw_99",qk="_expand_biesw_103",Dt={block:Dk,banner:Ok,label:Vk,action:Ik,count:$k,lang:zk,copyButton:Fk,body:Bk,line:Hk,gutter:Uk,content:Wk,expand:qk},Kk="_block_e2vzu_7",Gk="_copyButton_e2vzu_28",Yk="_body_e2vzu_65",Xk="_line_e2vzu_77",Zk="_path_e2vzu_86",Qk="_gap_e2vzu_93",Jk="_del_e2vzu_100",eS="_add_e2vzu_109",tS="_expand_e2vzu_118",nS="_footer_e2vzu_136",Kt={block:Kk,copyButton:Gk,body:Yk,line:Xk,path:Zk,gap:Qk,del:Jk,add:eS,expand:tS,footer:nS},rS="_block_s66q0_7",iS="_header_s66q0_20",sS="_summary_s66q0_30",oS="_copyButton_s66q0_40",aS="_body_s66q0_51",lS="_line_s66q0_60",uS="_lineNumber_s66q0_68",cS="_fileHeader_s66q0_74",fS="_filePath_s66q0_88",dS="_fileCount_s66q0_95",hS="_expand_s66q0_100",pS="_empty_s66q0_116",Ct={block:rS,header:iS,summary:sS,copyButton:oS,body:aS,line:lS,lineNumber:uS,fileHeader:cS,filePath:fS,fileCount:dS,expand:hS,empty:pS},mS="_block_3vdq8_4",yS="_bannerWrap_3vdq8_21",gS="_banner_3vdq8_21",vS="_infostring_3vdq8_42",wS="_action_3vdq8_53",xS="_copyButton_3vdq8_59",_S="_plain_3vdq8_94",fr={block:mS,bannerWrap:yS,banner:gS,infostring:vS,action:wS,copyButton:xS,plain:_S},kS="_markdown_1o85u_5",SS="_tableScroll_1o85u_174",CS="_tableFill_1o85u_220",ES="_imageAlt_1o85u_268",TS="_image_1o85u_268",PS="_fileMention_1o85u_288",ii={markdown:kS,tableScroll:SS,tableFill:CS,imageAlt:ES,image:TS,fileMention:PS},bS="_block_d4nqi_7",MS="_answer_d4nqi_19",jS="_sources_d4nqi_5",LS="_source_d4nqi_5",NS="_sourceLink_d4nqi_60",AS="_snippet_d4nqi_71",RS="_published_d4nqi_79",DS="_truncated_d4nqi_85",OS="_empty_d4nqi_91",VS="_fetch_d4nqi_97",IS="_fetchUrl_d4nqi_103",$S="_fetchMeta_d4nqi_115",zS="_status_d4nqi_121",ct={block:bS,answer:MS,sources:jS,source:LS,sourceLink:NS,snippet:AS,published:RS,truncated:DS,empty:OS,fetch:VS,fetchUrl:IS,fetchMeta:$S,status:zS},FS="_root_gltut_1",BS="_backdrop_gltut_16",HS="_input_gltut_17",US="_backdropContent_gltut_28",WS="_line_gltut_35",qS="_gutter_gltut_42",KS="_content_gltut_52",dr={root:FS,backdrop:BS,input:HS,backdropContent:US,line:WS,gutter:qS,content:KS},GS="_root_1ye18_1",YS="_toggle_1ye18_5",XS="_body_1ye18_20",Ku={root:GS,toggle:YS,body:XS},ZS="_text_1pfhk_1",QS={text:ZS};function by({state:e,size:n=10,className:i}){return e==="ongoing"?_.jsx(Fm,{className:ke(Vp.matrix,i),"data-state":"ongoing",size:n,"aria-hidden":"true"}):_.jsx("span",{className:ke(Vp.dot,i),"data-state":e,style:{width:n,height:n},"aria-hidden":"true"})}function JS({icon:e,title:n,open:i,expandable:s,onToggle:a,expandOnRowClick:u=!1,previewChevron:c=s,keepContentWhenOpen:d=!1,collapsedContent:p,children:m,className:y,rowClassName:w,leadingClassName:g,chevronClassName:k,titleClassName:x}){const C=s&&u,T=z=>{z.stopPropagation(),a()},A=z=>{!C||z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),a())},D=c?_.jsxs(_.Fragment,{children:[_.jsx("span",{className:ar.iconIdle,children:e}),_.jsx(ac,{size:14,className:ke(k,ar.chevronHover)})]}):e,O=i?_.jsx(ac,{size:14,className:k}):D;return _.jsxs("div",{className:ke(ar.root,y),"data-open":i||void 0,children:[_.jsxs("div",{className:ke(ar.row,w),"data-disclosure-row":!0,"data-expandable":C||void 0,role:C?"button":void 0,tabIndex:C?0:void 0,"aria-expanded":C?i:void 0,onClick:C?a:void 0,onKeyDown:C?A:void 0,children:[s&&!C?_.jsx("button",{type:"button",className:ke(ar.leading,g),"aria-expanded":i,onClick:T,children:O}):_.jsx("span",{className:ke(ar.leading,g),children:O}),_.jsx("span",{className:ke(ar.title,x),children:n}),(d||!i)&&p]}),i&&m]})}const eC=2.4,J1=4.08,tC=M.memo(function({color:n="var(--dsw-alias-bg-base)",duration:i=eC}){if(T_()||i<=0)return null;const s={"--dsw-text-shimmer-color":n};return _.jsx(P_.span,{"aria-hidden":!0,className:M_.band,style:s,initial:!1,animate:{x:[`${-1.2*100}%`,`${J1*100}%`,`${J1*100}%`]},transition:{duration:i,times:[0,.88,1],ease:"easeOut",repeat:1/0,repeatDelay:.15}})});function Nc({variant:e="ghost",size:n="md",icon:i,className:s,children:a,...u}){return _.jsxs("button",{type:"button",className:ke(Oo.button,Oo[e],Oo[n],s),...u,children:[i!=null&&_.jsx("span",{className:Oo.icon,children:i}),a]})}function My({active:e=!1,className:n,children:i,onClick:s,...a}){return s?_.jsx("button",{type:"button",className:ke(Zi.pill,Zi.interactive,e&&Zi.active,n),onClick:s,...a,children:i}):_.jsx("span",{className:ke(Zi.pill,e&&Zi.active,n),children:i})}function nC({icon:e,className:n,...i}){return _.jsxs("span",{className:ke(Bu.wrap,n),children:[e!=null&&_.jsx("span",{className:Bu.icon,children:e}),_.jsx("input",{className:Bu.input,...i})]})}function jy(e){const n=M.useRef(null),i=M.useRef(e);i.current=e;const s=M.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null)},[]),a=M.useCallback(()=>{s(),n.current=setTimeout(()=>{n.current=null,i.current()},200)},[s]);return M.useEffect(()=>s,[s]),{arm:a,cancel:s}}function em(e){return"type"in e&&e.type==="separator"}function tm(e){return"type"in e&&e.type==="label"}const rC={visibility:"hidden",left:0,top:0};function Ly({open:e,anchor:n,items:i,selectedId:s,selectedIds:a,onSelect:u,onAction:c,onClose:d,align:p="start",side:m="bottom",portal:y=!1,closeOnPointerLeave:w=!1,dense:g=!1,compact:k=!1,getAnchorRect:x,header:C,footer:T,className:A}){const D=M.useRef(null),O=M.useRef(null),[z,V]=M.useState(null),[F,U]=M.useState(null),{arm:q,cancel:$}=jy(d);M.useLayoutEffect(()=>{if(!e||!y){U(null);return}const J=()=>{var ne;let ae;if(x!==void 0?ae=x():ae=((ne=D.current)==null?void 0:ne.getBoundingClientRect())??null,ae===null)return;const ce=12,ve=window.innerWidth,ge=window.innerHeight,H=O.current,Z=(H==null?void 0:H.offsetWidth)??0,Y=(H==null?void 0:H.offsetHeight)??0;let b,L;m==="right"?(b=ae.right+4,L=ae.top):p==="start"?(b=ae.left,L=m==="bottom"?ae.bottom+4:ae.top-Y-4):(b=ae.right-Z,L=m==="bottom"?ae.bottom+4:ae.top-Y-4),Z>0&&(b=Math.min(Math.max(b,ce),ve-Z-ce)),Y>0&&(L=Math.min(Math.max(L,ce),ge-Y-ce)),U({left:b,top:L})};return J(),window.addEventListener("scroll",J,!0),window.addEventListener("resize",J),()=>{window.removeEventListener("scroll",J,!0),window.removeEventListener("resize",J)}},[e,y,p,m,x]),M.useEffect(()=>{if(!e){V(null);return}const J=ce=>{var ve,ge;ce.target instanceof Node&&((ve=D.current)==null?void 0:ve.contains(ce.target))!==!0&&((ge=O.current)==null?void 0:ge.contains(ce.target))!==!0&&d()},ae=ce=>{ce.key==="Escape"&&d()};return document.addEventListener("pointerdown",J),document.addEventListener("keydown",ae),()=>{document.removeEventListener("pointerdown",J),document.removeEventListener("keydown",ae)}},[e,d]),M.useEffect(()=>{e||$()},[e,$]);const B=!i.some(J=>!em(J)&&!tm(J)&&J.submenu!==void 0&&J.submenu.length>0),oe=J=>{if(em(J))return _.jsx("div",{className:be.separator,role:"separator"},J.id);if(tm(J))return _.jsx("div",{className:be.label,role:"presentation",children:J.text},J.id);const ae=J.submenu!==void 0&&J.submenu.length>0,ce=ae&&z===J.id,ve=J.id===s||(a==null?void 0:a.includes(J.id))===!0;return _.jsxs("div",{className:be.itemWrap,onMouseEnter:()=>{V(ae?J.id:null)},onMouseLeave:()=>{V(null)},children:[_.jsxs("button",{type:"button",role:"menuitem",className:ke(be.item,J.action!==void 0&&be.itemWithAction,ve&&be.selected,J.danger===!0&&be.danger),disabled:J.disabled,"aria-haspopup":ae?"menu":void 0,"aria-expanded":ae?ce:void 0,onFocus:()=>{V(ae?J.id:null)},onClick:()=>{if(ae){V(J.id);return}u(J.id)},children:[J.icon!==void 0&&_.jsx("span",{className:be.itemIcon,children:J.icon}),_.jsx("span",{className:be.itemLabel,children:J.label}),ve&&_.jsx(ma,{size:16,className:be.check}),J.trailing!==void 0&&_.jsx("span",{className:be.itemTrailing,children:J.trailing})]}),J.action!==void 0&&_.jsx("button",{type:"button",role:"menuitem",className:be.itemAction,"aria-label":J.action.label,onClick:ge=>{ge.stopPropagation(),c==null||c(J.id,ge.currentTarget)},children:J.action.icon}),ce&&J.submenu!==void 0&&_.jsx("div",{className:ke(be.submenu,k&&be.compactList),role:"menu",children:J.submenu.map(ge=>_.jsxs("button",{type:"button",role:"menuitem",className:be.item,disabled:ge.disabled,onClick:()=>{u(ge.id)},children:[ge.icon!==void 0&&_.jsx("span",{className:be.itemIcon,children:ge.icon}),_.jsx("span",{className:be.itemLabel,children:ge.label}),ge.trailing!==void 0&&_.jsx("span",{className:be.itemTrailing,children:ge.trailing})]},ge.id))})]},J.id)},me=e&&_.jsxs("div",{ref:O,className:ke(be.list,g&&be.denseList,k&&be.compactList,B&&be.scrollable,y&&be.portal,m==="top"&&!y&&be.sideTop,p==="end"&&!y&&be.alignEnd),style:y?F??rC:void 0,role:"menu",onClick:J=>{J.stopPropagation()},children:[C===void 0?null:_.jsx("div",{className:be.header,role:"presentation",children:C}),_.jsx("div",{className:be.viewport,role:"presentation",children:i.map(oe)}),T!==void 0&&T.length>0&&_.jsx("div",{className:be.footer,role:"presentation",children:T.map(oe)})]});return _.jsxs("span",{ref:D,className:ke(be.root,A),onPointerEnter:w?$:void 0,onPointerLeave:w?()=>{e&&q()}:void 0,children:[n,y?me!==!1&&qn.createPortal(me,document.body):me]})}const iC=12;function sC(e,n,i){const[s,a]=M.useState(n);return M.useLayoutEffect(()=>{const u=e.current;if(u===null)return;const c=()=>{a(Math.min(n,Math.max(0,u.getBoundingClientRect().bottom-iC)))};return c(),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[e,n,i]),s}function oC(e){const{open:n,anchorRef:i,panelRef:s,gap:a,margin:u}=e,[c,d]=M.useState(null);return M.useLayoutEffect(()=>{if(!n){d(null);return}const p=()=>{var A;const w=(A=i.current)==null?void 0:A.getBoundingClientRect();if(w===void 0)return;const g=s.current,k=(g==null?void 0:g.offsetWidth)??0,x=(g==null?void 0:g.offsetHeight)??0;let C=w.left,T=w.bottom+a;k>0&&(C=Math.min(Math.max(C,u),window.innerWidth-k-u)),x>0&&(T=Math.min(Math.max(T,u),window.innerHeight-x-u)),d({left:C,top:T})};p(),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p);const m=s.current;let y=null;return typeof ResizeObserver<"u"&&m!==null&&(y=new ResizeObserver(p),y.observe(m)),()=>{y==null||y.disconnect(),window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}},[n,i,s,a,u]),c}function aC(e,n,i){M.useEffect(()=>{if(!n)return;const s=a=>{var u;a.target instanceof Node&&!((u=e.current)!=null&&u.contains(a.target))&&i(!1)};return document.addEventListener("pointerdown",s),()=>{document.removeEventListener("pointerdown",s)}},[e,n,i])}async function ui(e){var s;if((s=navigator.clipboard)!=null&&s.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const n=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(n===void 0)return!1;const i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.style.position="fixed",i.style.left="-9999px",document.body.appendChild(i),i.select();try{return n("copy")}catch{return!1}finally{i.remove()}}function lC({anchor:e,content:n,openDelayMs:i=500,disabled:s=!1,copyText:a,copyLabel:u="复制",copiedLabel:c="复制成功"}){const d=M.useRef(null),p=M.useRef(null),m=M.useRef(null),y=M.useRef(null),w=M.useRef(null),g=M.useRef(0),k=M.useRef(!1),x=M.useRef(!0),[C,T]=M.useState(!1),[A,D]=M.useState(!1),[O,z]=M.useState(null),[V,F]=M.useState(!1),U=M.useRef(C);M.useEffect(()=>{U.current=C},[C]);const q=M.useRef(null),$=M.useCallback(()=>{y.current!==null&&(clearTimeout(y.current),y.current=null),w.current=null,F(!1)},[]),B=M.useCallback(()=>{q.current!==null&&(clearTimeout(q.current),q.current=null)},[]),oe=M.useCallback(()=>{if(g.current+=1,$(),!U.current){D(!1);return}D(!0),B(),q.current=setTimeout(()=>{q.current=null,D(!1),T(!1)},150)},[$,B]),{arm:me,cancel:J}=jy(oe),ae=()=>{m.current!==null&&(clearTimeout(m.current),m.current=null)};M.useEffect(()=>{s&&(ae(),J(),oe())},[s,J,oe]),M.useEffect(()=>(x.current=!0,()=>{x.current=!1,g.current+=1,ae(),B(),y.current!==null&&(clearTimeout(y.current),y.current=null)}),[B]),M.useLayoutEffect(()=>{if(!C){z(null);return}const H=()=>{var ne;const Z=d.current;if(Z===null)return;const Y=Z.getBoundingClientRect(),b=((ne=p.current)==null?void 0:ne.offsetHeight)??0,L=Y.top+b>window.innerHeight-8?window.innerHeight-b-8:Y.top;z({left:Y.right+8,top:L})};return H(),window.addEventListener("scroll",H,!0),window.addEventListener("resize",H),()=>{window.removeEventListener("scroll",H,!0),window.removeEventListener("resize",H)}},[C]),M.useLayoutEffect(()=>{var Z;if(!C||O===null)return;const H=((Z=p.current)==null?void 0:Z.offsetHeight)??0;O.top+H>window.innerHeight-8&&z({left:O.left,top:window.innerHeight-H-8})},[C,O]);const ce=async H=>{if(V||k.current)return;k.current=!0;const Z=g.current,Y=await ui(H);k.current=!1;const b=p.current;if(!Y||!x.current||Z!==g.current||b===null)return;const L=b.offsetHeight;w.current=L>0?L:null,F(!0),y.current=setTimeout($,1e3)},ve=a!==void 0,ge=C&&O!==null&&_.jsx("div",{ref:p,className:`${ur.card}${ve?` ${ur.copyable}`:""}${V?` ${ur.feedback}`:""}${A?` ${ur.closing}`:""}`,style:{...O,minHeight:V&&w.current!==null?w.current:void 0},role:ve?"button":void 0,tabIndex:ve?0:void 0,"aria-label":ve?`${u}: ${a}`:void 0,onClick:ve?H=>{const Z=window.getSelection();if(Z!==null&&!Z.isCollapsed){for(let Y=0;Y<Z.rangeCount;Y+=1)if(Z.getRangeAt(Y).intersectsNode(H.currentTarget))return}ce(a)}:void 0,onKeyDown:ve?H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),ce(a))}:void 0,children:V?_.jsx("span",{className:ur.copied,"aria-hidden":"true",children:c}):n});return _.jsxs("span",{ref:d,className:ur.root,onPointerEnter:()=>{if(!s){if(J(),C){A&&(D(!1),B());return}ae(),B(),D(!1),m.current=setTimeout(()=>{T(!0)},i)}},onPointerLeave:()=>{ae(),C&&me()},onPointerDownCapture:H=>{var Z;(Z=p.current)!=null&&Z.contains(H.target)||(ae(),J(),oe())},children:[e,C&&ve&&_.jsx("span",{className:ur.status,role:"status",children:V?c:""}),ge!==!1&&qn.createPortal(ge,document.body)]})}function Ny(e,n){M.useEffect(()=>{if(!e)return;const i=s=>{s.key==="Escape"&&n()};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e,n])}function Ay({open:e,onClose:n,title:i,closeLabel:s="Close",description:a,children:u,footer:c,className:d,contentClassName:p,headless:m=!1}){return Ny(e,n),e?qn.createPortal(_.jsxs("div",{className:rn.root,role:"presentation",children:[_.jsx("div",{className:rn.mask,"aria-hidden":"true",onClick:n}),_.jsx("div",{className:ke(rn.dialog,d),role:"dialog","aria-modal":"true","aria-label":i,children:m?u:_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:ke(rn.content,p),children:[_.jsxs("div",{className:rn.header,children:[_.jsx("h2",{className:rn.title,children:i}),_.jsx("button",{type:"button",className:rn.close,"aria-label":s,onClick:n,children:_.jsx(Hm,{size:14})})]}),a!==void 0&&a!==""&&_.jsx("p",{className:rn.description,children:a}),u!==void 0&&_.jsx("div",{className:rn.body,children:u})]}),c!==void 0&&_.jsx("div",{className:rn.footer,children:c})]})})]}),document.body):null}function uC({open:e,onClose:n,title:i,side:s="left",children:a,className:u}){return Ny(e,n),M.useEffect(()=>{if(!e)return;const c=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=c}},[e]),e?qn.createPortal(_.jsxs("div",{className:Hu.root,role:"presentation",children:[_.jsx("div",{className:Hu.mask,"aria-hidden":"true",onClick:n}),_.jsx("div",{className:ke(Hu.panel,u),"data-side":s,role:"dialog","aria-modal":"true","aria-label":i,children:a})]}),document.body):null}function cC({children:e}){return M.useEffect(()=>{const n=document.getElementById("root");if(n!==null)return n.inert=!0,()=>{n.inert=!1}},[]),qn.createPortal(_.jsxs("div",{className:Uu.onboardingOverlay,role:"presentation",children:[_.jsx("div",{className:Uu.onboardingMask,"aria-hidden":"true"}),_.jsx("div",{className:Uu.onboardingStage,children:e})]}),document.body)}function fC({open:e,title:n,description:i,acknowledgeLabel:s,cancelLabel:a,confirmLabel:u,acknowledged:c,disabled:d=!1,onAcknowledgedChange:p,onCancel:m,onConfirm:y}){return _.jsxs(Ay,{open:e,onClose:m,title:n,className:cr.confirmation,contentClassName:cr.confirmationContent,footer:_.jsxs(_.Fragment,{children:[_.jsx(Nc,{variant:"outline",className:cr.modalAction,onClick:m,children:a}),_.jsx(Nc,{variant:"primary",className:cr.confirmAction,disabled:d||!c,onClick:y,children:u})]}),children:[_.jsxs("div",{className:cr.warning,children:[_.jsx(Bm,{size:18,className:cr.warningIcon}),_.jsx("p",{children:i})]}),_.jsxs("label",{className:cr.acknowledgement,children:[_.jsx("input",{type:"checkbox",checked:c,disabled:d,autoFocus:!0,onChange:w=>{p(w.currentTarget.checked)}}),_.jsx("span",{children:s})]})]})}function dC({reconnecting:e,label:n="连接已断开,正在重连…"}){return e?_.jsx("div",{className:W9.banner,children:n}):null}function hC({size:e=24,className:n}){return _.jsx("svg",{width:e,height:e*17.04/23.16,className:n,viewBox:"0 0 23.16 17.04",fill:"none","aria-hidden":"true",children:_.jsx("path",{d:"M22.9168 1.43018C22.6713 1.31018 22.5658 1.53918 22.4223 1.65519C22.3733 1.69269 22.3318 1.74169 22.2903 1.78669C21.9317 2.1697 21.5127 2.42121 20.9657 2.39121C20.1657 2.34621 19.4827 2.59771 18.8787 3.20973C18.7502 2.45521 18.3236 2.0047 17.6746 1.71569C17.3351 1.56568 16.9916 1.41518 16.7536 1.08867C16.5876 0.856163 16.5421 0.597155 16.4591 0.341647C16.4061 0.187643 16.3536 0.0301382 16.1761 0.00363739C15.9836 -0.0263635 15.9081 0.135141 15.8326 0.270145C15.5306 0.822162 15.4136 1.43018 15.4251 2.0462C15.4516 3.43174 16.0366 4.53527 17.1991 5.3203C17.3311 5.4103 17.3651 5.5003 17.3236 5.63181C17.2441 5.90231 17.1501 6.16482 17.0671 6.43533C17.0141 6.60784 16.9351 6.64584 16.7501 6.57033C16.1121 6.30383 15.5611 5.90931 15.074 5.4328C14.2475 4.63328 13.5 3.75075 12.568 3.05973C12.349 2.89822 12.13 2.74822 11.9034 2.60522C10.9524 1.68169 12.028 0.923165 12.277 0.833162C12.5375 0.739159 12.3675 0.41615 11.5259 0.42015C10.6844 0.42365 9.91439 0.705658 8.93286 1.08117C8.78935 1.13767 8.63835 1.17867 8.48384 1.21267C7.59332 1.04367 6.66829 1.00617 5.70226 1.11517C3.88321 1.31768 2.43016 2.1777 1.36213 3.64575C0.0790928 5.4103 -0.222916 7.41536 0.146595 9.50642C0.535106 11.7105 1.66014 13.535 3.38869 14.9616C5.18125 16.4406 7.24581 17.1657 9.60138 17.0266C11.0319 16.9441 12.6245 16.7526 14.421 15.2321C14.874 15.4576 15.3496 15.5476 16.1381 15.6151C16.7456 15.6716 17.3306 15.5851 17.7836 15.4911C18.4931 15.3411 18.4441 14.6841 18.1876 14.5636C16.1081 13.595 16.5646 13.9891 16.1496 13.67C17.2061 12.42 18.8202 10.1979 19.3182 7.17235C19.3672 6.83834 19.4297 6.36783 19.4222 6.09732C19.4182 5.93231 19.4562 5.86831 19.6447 5.84931C20.1657 5.78931 20.6712 5.64681 21.1357 5.3913C22.4833 4.65528 23.0268 3.44624 23.1548 1.9972C23.1738 1.77569 23.1508 1.54668 22.9168 1.43018ZM11.1749 14.4736C9.15936 12.889 8.18184 12.3675 7.77832 12.39C7.40081 12.4125 7.46881 12.8445 7.55182 13.126C7.63882 13.404 7.75182 13.5955 7.91033 13.8396C8.01983 14.0011 8.09533 14.2411 7.80083 14.4216C7.15181 14.8231 6.02327 14.2866 5.97027 14.2601C4.65673 13.4865 3.5587 12.4655 2.78467 11.069C2.03715 9.72493 1.60314 8.28289 1.53164 6.74384C1.51264 6.37233 1.62214 6.24082 1.99215 6.17332C2.47916 6.08332 2.98118 6.06432 3.46769 6.13582C5.52476 6.43633 7.27581 7.35586 8.74385 8.8129C9.58188 9.64243 10.2159 10.634 10.8689 11.6025C11.5634 12.631 12.3105 13.611 13.262 14.4146C13.598 14.6961 13.866 14.9101 14.1225 15.0681C13.349 15.1546 12.058 15.1731 11.1749 14.4746L11.1749 14.4736ZM12.141 8.25988C12.141 8.09488 12.273 7.96338 12.439 7.96338C12.4765 7.96338 12.5105 7.97088 12.541 7.98188C12.5825 7.99688 12.6205 8.01938 12.6505 8.05338C12.7035 8.10588 12.7335 8.18088 12.7335 8.25988C12.7335 8.42489 12.6015 8.55639 12.4355 8.55639C12.2695 8.55639 12.141 8.42489 12.141 8.25988ZM15.1415 9.79893C14.949 9.87793 14.7565 9.94544 14.5715 9.95294C14.2845 9.96794 13.9715 9.85143 13.8015 9.70893C13.5375 9.48742 13.3485 9.36342 13.2695 8.97691C13.2355 8.8119 13.2545 8.55639 13.2845 8.40989C13.3525 8.09438 13.277 7.89187 13.0545 7.70787C12.8735 7.55786 12.643 7.51636 12.39 7.51636C12.2955 7.51636 12.209 7.47486 12.1445 7.44136C12.039 7.38886 11.9519 7.25735 12.035 7.09585C12.0615 7.04335 12.19 6.91584 12.22 6.89334C12.5635 6.69784 12.9595 6.76184 13.326 6.90834C13.6655 7.04735 13.9225 7.30236 14.292 7.66287C14.6695 8.09838 14.7375 8.21838 14.9525 8.54539C15.1225 8.8009 15.277 9.06341 15.3831 9.36392C15.4471 9.55142 15.3641 9.70493 15.1415 9.79893Z",fill:"currentColor"})})}function pC({size:e=24,className:n,includeMark:i=!0}){return _.jsxs("svg",{width:e*(i?182:156)/24,height:e,className:n,viewBox:i?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[_.jsx("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),_.jsx("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),_.jsx("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),_.jsx("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),_.jsx("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),_.jsx("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:_.jsx("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),_.jsx("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),_.jsxs("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[_.jsx("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),_.jsxs("defs",{children:[_.jsx("clipPath",{id:"dsh-wordmark-whale-clip",children:_.jsx("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),_.jsx("clipPath",{id:"dsh-wordmark-badge-clip",children:_.jsx("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function mC({label:e,side:n="right",delayMs:i=0,disabled:s=!1,maxWidth:a,children:u}){const c=M.useRef(null),d=u.ref,p=M.useCallback(U=>{c.current=U,typeof d=="function"?d(U):d!=null&&(d.current=U)},[d]),[m,y]=M.useState(null),[w,g]=M.useState(n),k=M.useRef(null),x=m===null?null:typeof e=="function"?e():e,C=m===null?0:w==="right"?m.top+(m.bottom-m.top)/2:w==="top"?m.top-8:m.bottom+8,T=12;M.useLayoutEffect(()=>{if(m===null)return;const U=()=>{const q=k.current;if(q===null)return;q.style.left=`${m.x}px`;const $=q.getBoundingClientRect();let B=0;if($.right>window.innerWidth-T&&(B=window.innerWidth-T-$.right),$.left+B<T&&(B=T-$.left),q.style.left=`${m.x+B}px`,n==="right")return;const oe=m.bottom+8+$.height<=window.innerHeight-T,me=m.top-8-$.height>=T;w==="bottom"&&!oe&&me&&g("top"),w==="top"&&!me&&oe&&g("bottom")};return U(),window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}},[w,m,x,n]);const A=M.useRef(null),D=M.useRef({hover:!1,focus:!1}),O=M.useCallback(()=>{A.current!==null&&(clearTimeout(A.current),A.current=null)},[]);M.useEffect(()=>(s&&(O(),D.current={hover:!1,focus:!1},y(null)),O),[O,s]);const z=()=>{if(s)return;const U=c.current;if(U===null)return;const q=U.getBoundingClientRect();g(n),y({x:n==="right"?q.right+10:q.left+q.width/2,top:q.top,bottom:q.bottom})},V=()=>{if(O(),i<=0){z();return}A.current=setTimeout(()=>{A.current=null,z()},i)},F=()=>{O(),!D.current.hover&&!D.current.focus&&y(null)};return _.jsxs(_.Fragment,{children:[M.cloneElement(u,{ref:p,onMouseEnter:U=>{var q,$;($=(q=u.props).onMouseEnter)==null||$.call(q,U),D.current.hover=!0,V()},onMouseLeave:U=>{var q,$;($=(q=u.props).onMouseLeave)==null||$.call(q,U),D.current.hover=!1,O(),y(null)},onFocus:U=>{var q,$;($=(q=u.props).onFocus)==null||$.call(q,U),D.current.focus=!0,O(),z()},onBlur:U=>{var q,$;($=(q=u.props).onBlur)==null||$.call(q,U),D.current.focus=!1,F()}}),m!==null&&_.jsx("span",{ref:k,className:K9.bubble,"data-side":w,style:{left:m.x,top:C,...a===void 0?{}:{maxWidth:a}},role:"tooltip",children:x})]})}function yC({text:e,icon:n,anchor:i,onDone:s}){M.useEffect(()=>{const c=setTimeout(s,4e3);return()=>{clearTimeout(c)}},[s]);const[a,u]=M.useState(null);return M.useLayoutEffect(()=>{if(i==null)return;const c=()=>{const d=i.getBoundingClientRect();u(d.left+d.width/2)};return c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}},[i]),qn.createPortal(_.jsxs("div",{className:Wu.toast,role:"alert",style:a===null?void 0:{left:a},children:[n!==void 0&&_.jsx("span",{className:Wu.icon,"aria-hidden":!0,children:n}),_.jsx("span",{className:Wu.text,children:e})]}),document.body)}const gC=4,vC=5,nm=2,rm={copyValue:"Copy value",copyJson:"Copy JSON",copyPath:"Copy property path",copyPrettyJson:"Copy pretty JSON",copyCompactJson:"Copy compact JSON",copied:"Copied",copyFailed:"Copy failed",collapseNode:"Collapse JSON node",expandNode:"Expand JSON node",copyButtonTitle:e=>`${e}; right-click for copy options`};function wC(e){return[{id:"value",label:e.copyValue},{id:"json",label:e.copyJson},{id:"path",label:e.copyPath}]}function xC(e){return[{id:"prettyJson",label:e.copyPrettyJson},{id:"json",label:e.copyCompactJson},{id:"path",label:e.copyPath}]}function la(e){return typeof e=="object"&&e!==null&&!(e instanceof Date)}function ua(e){return Array.isArray(e)?e.map((n,i)=>[String(i),n]):Object.keys(e).map(n=>[n,e[n]])}function xf(e){return Array.isArray(e)?["[","]"]:["{","}"]}function _C(e){return e===null?_.jsx("span",{className:he.keywordValue,children:"null"}):typeof e=="string"?_.jsx("span",{className:he.stringValue,children:JSON.stringify(e)}):typeof e=="number"?_.jsx("span",{className:he.numberValue,children:String(e)}):typeof e=="boolean"?_.jsx("span",{className:he.keywordValue,children:String(e)}):typeof e=="bigint"?_.jsx("span",{className:he.otherValue,children:e.toString()}):typeof e>"u"?_.jsx("span",{className:he.otherValue,children:"undefined"}):typeof e=="symbol"?_.jsx("span",{className:he.otherValue,children:e.description??"Symbol"}):typeof e=="function"?_.jsx("span",{className:he.otherValue,children:e.name||"Function"}):null}function Ry(e,n){if(!la(e))return _C(e);const i=Array.isArray(e),s=ua(e),a=i?vC:gC,u=s.slice(0,a),[c,d]=xf(e);return _.jsxs(_.Fragment,{children:[_.jsx("span",{className:he.punctuation,children:c}),n>=nm?_.jsx("span",{className:he.previewEllipsis,children:"…"}):u.map(([p,m],y)=>_.jsxs("span",{children:[y>0&&_.jsx("span",{className:he.punctuation,children:", "}),!i&&_.jsxs(_.Fragment,{children:[_.jsx("span",{className:he.previewProperty,children:p}),_.jsx("span",{className:he.punctuation,children:": "})]}),Ry(m,n+1)]},p)),n<nm&&s.length>a&&_.jsx("span",{className:he.previewEllipsis,children:", …"}),_.jsx("span",{className:he.punctuation,children:d})]})}function kC(e){return e===null?_.jsx("span",{className:he.keywordValue,children:"null"}):typeof e=="string"?_.jsx("span",{className:he.stringValue,children:JSON.stringify(e)}):typeof e=="boolean"?_.jsx("span",{className:he.keywordValue,children:String(e)}):typeof e=="number"?_.jsx("span",{className:he.numberValue,children:String(e)}):typeof e=="bigint"?_.jsx("span",{className:he.numberValue,children:`${e.toString()}n`}):e instanceof Date?_.jsx("span",{className:he.otherValue,children:e.toISOString()}):typeof e=="function"?_.jsxs("span",{className:he.otherValue,children:["function() ","{ }"]}):typeof e>"u"?_.jsx("span",{className:he.otherValue,children:"undefined"}):_.jsx("span",{className:he.otherValue,children:e.toString()})}function SC(e){return e===""?'""':e}function Ac(e){return e.map(n=>typeof n=="number"?`n${String(n)}`:`s${String(n.length)}:${n}`).join("/")}function Dy(e){e.focus()}function CC(e,n){const i=e.closest('[role="tree"]');if(i===null)return;const s=Array.from(i.querySelectorAll("[data-json-expander]")),a=s.indexOf(e);if(a<0||s.length===0)return;const u=s[(a+n+s.length)%s.length];u!==void 0&&Dy(u)}function Gu({field:e,expandable:n,onToggle:i}){return e===void 0?null:_.jsxs("span",{className:ke(he.label,n&&he.clickableLabel),onClick:n?i:void 0,children:[SC(e),":"]})}function Rc({field:e,initialExpanded:n,labels:i,lastElement:s,onClaimTabStop:a,onRowHover:u,path:c,tabStopId:d,value:p}){const m=M.useId(),y=M.useRef(null),[w,g]=M.useState(n),k=Ac(c),x=la(p),C=x?ua(p):[],T=C.length>0,A=()=>{g(F=>!F),Dy(y.current)},D=F=>{if(F.key==="ArrowRight"||F.key==="ArrowLeft"){F.preventDefault(),g(F.key==="ArrowRight");return}(F.key==="ArrowUp"||F.key==="ArrowDown")&&(F.preventDefault(),CC(F.currentTarget,F.key==="ArrowUp"?-1:1))},O=(F,U)=>_.jsx("div",{className:he.row,role:"treeitem","aria-expanded":U,onMouseOver:q=>{q.stopPropagation(),u(q.currentTarget,{path:c,value:p})},children:F});if(!x)return O(_.jsxs(_.Fragment,{children:[_.jsx(Gu,{field:e,expandable:!1,onToggle:A}),kC(p),!s&&_.jsx("span",{className:he.punctuation,children:","})]}));const[z,V]=xf(p);return T?O(_.jsxs(_.Fragment,{children:[_.jsx("span",{ref:y,className:ke(he.expander,w?he.collapseIcon:he.expandIcon),"data-json-expander":!0,role:"button","aria-label":w?i.collapseNode:i.expandNode,"aria-expanded":w,"aria-controls":w?m:void 0,tabIndex:d===k?0:-1,onFocus:()=>{a(k)},onClick:A,onKeyDown:D}),_.jsx(Gu,{field:e,expandable:!0,onToggle:A}),_.jsx("span",{className:he.preview,children:Ry(p,0)}),!s&&_.jsx("span",{className:he.punctuation,children:","}),w&&_.jsx("ul",{id:m,role:"group",className:he.children,children:C.map(([F,U],q)=>_.jsx(Rc,{field:F,value:U,path:[...c,Array.isArray(p)?q:F],labels:i,lastElement:q===C.length-1,initialExpanded:!1,tabStopId:d,onClaimTabStop:a,onRowHover:u},F))})]}),w):O(_.jsxs(_.Fragment,{children:[_.jsx(Gu,{field:e,expandable:!1,onToggle:A}),_.jsx("span",{className:he.punctuation,children:z}),_.jsx("span",{className:he.punctuation,children:V}),!s&&_.jsx("span",{className:he.punctuation,children:","})]}))}function EC(e){return e.reduce((n,i)=>typeof i=="number"?`${n}[${String(i)}]`:/^[A-Za-z_$][\w$]*$/.test(i)?`${n}.${i}`:`${n}[${JSON.stringify(i)}]`,"$")}function TC(e,n){return n==="path"?EC(e.path):n==="prettyJson"?JSON.stringify(e.value,null,2):n==="json"?JSON.stringify(e.value):typeof e.value=="string"?e.value:typeof e.value>"u"?"undefined":typeof e.value=="bigint"?e.value.toString():typeof e.value=="symbol"?e.value.description??"Symbol":typeof e.value=="function"?e.value.name||"Function":JSON.stringify(e.value)}function PC({data:e,label:n="JSON",className:i,copyable:s=!0,expandTopLevel:a=!0,labels:u}){const c=M.useMemo(()=>u===void 0?rm:{...rm,...u},[u]),d=ua(e),p=d.findIndex(([,L])=>la(L)&&ua(L).length>0),m=d[p],y=a?m===void 0?null:Ac([Array.isArray(e)?p:m[0]]):la(e)&&d.length>0?Ac([]):null,w=M.useRef(null),g=M.useRef(),k=M.useRef(null),x=M.useRef(!1),C=M.useRef(),[T,A]=M.useState(),[D,O]=M.useState("idle"),[z,V]=M.useState(!1),[F,U]=M.useState(y),q=L=>{var ne;(ne=g.current)==null||ne.removeAttribute("data-json-copy-active"),g.current=L,L==null||L.setAttribute("data-json-copy-active","")},$=()=>{q(void 0),A(void 0),O("idle"),x.current=!1,V(!1)},B=L=>{const ne=w.current;if(ne===null)throw new Error("JsonTree root is not mounted");const pe=ne.getBoundingClientRect(),_e=L.getBoundingClientRect();return{left:pe.left+ne.clientWidth-26,side:_e.top-pe.top>ne.clientHeight/2?"top":"bottom",top:_e.top}},oe=(L,ne)=>{const pe=B(L);A({...ne,...pe})},me=L=>{const ne=B(L);A(pe=>pe===void 0?pe:{...pe,...ne})};M.useEffect(()=>()=>{var L;C.current!==void 0&&clearTimeout(C.current),(L=g.current)==null||L.removeAttribute("data-json-copy-active")},[]),M.useEffect(()=>{var L;(L=g.current)==null||L.removeAttribute("data-json-copy-active"),g.current=void 0,x.current=!1,A(void 0),O("idle"),V(!1),U(y)},[e,a,y]),M.useEffect(()=>{const L=()=>{const ne=g.current;ne!==void 0&&me(ne)};return window.addEventListener("scroll",L,!0),window.addEventListener("resize",L),()=>{window.removeEventListener("scroll",L,!0),window.removeEventListener("resize",L)}},[]);const J=(L,ne)=>{!s||x.current||g.current!==L&&(q(L),O("idle"),x.current=!1,V(!1),oe(L,ne))},ae=L=>{!s||x.current||L.target instanceof Element&&L.target.closest("[data-json-copy-button]")===null&&$()},ce=L=>{const ne=g.current;ne!==void 0&&me(ne)},ve=async L=>{if(T!==void 0){try{await navigator.clipboard.writeText(TC(T,L)),O("copied")}catch{O("failed")}C.current!==void 0&&clearTimeout(C.current),C.current=setTimeout(()=>{O("idle")},1500)}},[ge,H]=xf(e),Z=typeof(T==null?void 0:T.value)=="object"&&T.value!==null,Y=Z?"prettyJson":"value",b=D==="copied"?c.copied:D==="failed"?c.copyFailed:Z?c.copyPrettyJson:c.copyValue;return _.jsxs("div",{ref:w,className:ke(he.root,i),onMouseOver:ae,onMouseLeave:()=>{x.current||$()},onScroll:ce,children:[a?_.jsxs("div",{className:he.expandedTopLevel,children:[_.jsx("div",{className:ke(he.row,he.topLevelBracket),"data-json-root-row":!0,onMouseOver:L=>{L.stopPropagation(),J(L.currentTarget,{path:[],value:e})},children:_.jsx("span",{className:he.punctuation,children:ge})}),_.jsx("div",{"aria-label":n,className:ke(he.container,he.expandedTopLevelContainer),role:"tree",children:d.map(([L,ne],pe)=>_.jsx(Rc,{field:L,value:ne,path:[Array.isArray(e)?pe:L],labels:c,lastElement:pe===d.length-1,initialExpanded:!1,tabStopId:F,onClaimTabStop:U,onRowHover:J},L))}),_.jsx("div",{className:ke(he.row,he.topLevelBracket),children:_.jsx("span",{className:he.punctuation,children:H})})]}):_.jsx("div",{"aria-label":n,className:he.container,role:"tree",children:_.jsx(Rc,{value:e,path:[],labels:c,lastElement:!0,initialExpanded:!0,tabStopId:F,onClaimTabStop:U,onRowHover:J})}),T!==void 0&&_.jsx("span",{className:he.copyAnchor,style:{left:T.left,top:T.top},children:_.jsx(Ly,{open:z,compact:!0,portal:!0,align:"end",side:T.side,anchor:_.jsx("button",{ref:k,type:"button",className:he.copyButton,"data-json-copy-button":!0,"data-state":D,"aria-label":b,title:c.copyButtonTitle(b),onClick:()=>void ve(Y),onContextMenu:L=>{L.preventDefault(),L.stopPropagation(),x.current=!0,V(!0)},children:D==="copied"?_.jsx(ma,{size:12}):_.jsx(Wc,{size:12})}),items:Z?xC(c):wC(c),onSelect:L=>{ve(L),x.current=!1,V(!1)},onClose:$,getAnchorRect:()=>k.current.getBoundingClientRect()})})]})}const bC={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)"},MC={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},jC=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,LC=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,NC=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,AC=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,RC=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,im=8,DC=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,OC=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function Yu(e){const n=e.codePointAt(0);return n===void 0||n<4352?!1:OC.test(e)}const rs={fg:"",bg:"",attrs:[]},VC={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function Oy(e,n){const i=n===""?["0"]:n.split(";");let s=e;for(let a=0;a<i.length;a++){const u=String(i[a]);if(u===""||u==="0"){s=rs;continue}if(u==="38"||u==="48"){const p=i[a+1]??"",m=p==="2"?4:p==="5"?2:0,y=i.slice(a,a+m+1).join(";");s=u==="38"?{...s,fg:y}:{...s,bg:y},a+=m;continue}const c=VC[u];if(c!==void 0){s={...s,attrs:s.attrs.filter(p=>!c.includes(p))};continue}const d=Number(u);if(u==="39"){s={...s,fg:""};continue}if(u==="49"){s={...s,bg:""};continue}if(d>=30&&d<=37||d>=90&&d<=97){s={...s,fg:u};continue}if(d>=40&&d<=47||d>=100&&d<=107){s={...s,bg:u};continue}s.attrs.includes(u)||(s={...s,attrs:[...s.attrs,u]})}return s}function sm(e){const n=[...e.attrs];return e.fg!==""&&n.push(e.fg),e.bg!==""&&n.push(e.bg),n.length===0?"":`\x1B[${n.join(";")}m`}function Vo(e,n){return e.fg===n.fg&&e.bg===n.bg&&e.attrs.length===n.attrs.length&&e.attrs.every((i,s)=>i===n.attrs[s])}function IC(e,n){var w;const i=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,s=[];let a=0,u=n,c=0;const d=(g,k)=>{var C;const x=s[g];(x==null?void 0:x.spacer)===!0&&g>0?s[g-1]={sgr:u,char:k}:x!==void 0&&Yu(x.char)&&((C=s[g+1])==null?void 0:C.spacer)===!0&&(s[g+1]={sgr:u,char:k}),s[g]={sgr:u,char:k}},p=g=>{for(const k of g){if(k==="\r"){a=0;continue}if(k==="\b"){a=Math.max(0,a-1);continue}if(k===" "){const x=a+im-a%im;for(;a<x;a++)s[a]??(s[a]={sgr:u,char:" "});continue}if(DC.test(k)){const x=a>0?s[a-1]:void 0;x!==void 0&&(s[a-1]={sgr:x.sgr,char:x.char+k});continue}d(a," "),s[a]={sgr:u,char:k},a++,Yu(k)&&(s[a]={sgr:u,char:"",spacer:!0},a++)}};for(const g of e.matchAll(i)){p(e.slice(c,g.index)),c=g.index+g[0].length;const k=String(g[1]),x=String(g[2]);if(x==="K"){const C=String(k.split(";")[0]);if(C==="1")for(let T=0;T<=a;T++)d(T," ");else s.length=C==="2"?0:a;continue}x==="m"&&(u=Oy(u,k))}p(e.slice(c));let m="",y=n;for(let g=0;g<s.length;g++){const k=s[g]??{sgr:rs,char:" "};Vo(k.sgr,y)||(Vo(y,rs)||(m+="\x1B[0m"),m+=sm(k.sgr),y=k.sgr);const x=g>0&&Yu(((w=s[g-1])==null?void 0:w.char)??"");m+=k.spacer===!0&&!x?" ":k.char}return Vo(y,u)||(Vo(y,rs)||(m+="\x1B[0m"),m+=sm(u)),{text:m,sgr:u}}function $C(e){const n=[];let i=rs;for(const s of e.split(`
517
- `)){const a=s.replace(/\r+$/,"");if(AC.test(a)){const u=IC(a,i);n.push(u.text),i=u.sgr;continue}n.push(a);for(const u of a.matchAll(RC))i=Oy(i,String(u[1]))}return n.join(`
516
+ */const k6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Um=Q("x",k6),S6="_dot_1nv0v_3",C6="_matrix_1nv0v_4",Ip={dot:S6,matrix:C6},E6="_root_1ti1t_3",T6="_row_1ti1t_10",P6="_leading_1ti1t_30",b6="_iconIdle_1ti1t_55",M6="_chevronHover_1ti1t_61",j6="_title_1ti1t_77",ar={root:E6,row:T6,leading:P6,iconIdle:b6,chevronHover:M6,title:j6},Wm=M.createContext({});function L6(e){const n=M.useRef(null);return n.current===null&&(n.current=e()),n.current}const N6=typeof window<"u",A6=N6?M.useLayoutEffect:M.useEffect,qc=M.createContext(null);function Kc(e,n){e.indexOf(n)===-1&&e.push(n)}function Zo(e,n){const i=e.indexOf(n);i>-1&&e.splice(i,1)}const un=(e,n,i)=>i>n?n:i<e?e:i;let ya=()=>{};const Un={},qm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Km=e=>typeof e=="object"&&e!==null,Gm=e=>/^0[^.\s]+$/u.test(e);function Ym(e){let n;return()=>(n===void 0&&(n=e()),n)}const Vt=e=>e,ms=(...e)=>e.reduce((n,i)=>s=>i(n(s))),us=(e,n,i)=>{const s=n-e;return s?(i-e)/s:1};class Gc{constructor(){this.subscriptions=[]}add(n){return Kc(this.subscriptions,n),()=>Zo(this.subscriptions,n)}notify(n,i,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](n,i,s);else for(let u=0;u<a;u++){const c=this.subscriptions[u];c&&c(n,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bt=e=>e*1e3,Ot=e=>e/1e3,Xm=(e,n)=>n?e*(1e3/n):0,Zm=(e,n,i)=>(((1-3*i+3*n)*e+(3*i-6*n))*e+3*n)*e,R6=1e-7,D6=12;function O6(e,n,i,s,a){let u,c,d=0;do c=n+(i-n)/2,u=Zm(c,s,a)-e,u>0?i=c:n=c;while(Math.abs(u)>R6&&++d<D6);return c}function ys(e,n,i,s){if(e===n&&i===s)return Vt;const a=u=>O6(u,0,1,e,i);return u=>u===0||u===1?u:Zm(a(u),n,s)}const Qm=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,Jm=e=>n=>1-e(1-n),e0=ys(.33,1.53,.69,.99),Yc=Jm(e0),t0=Qm(Yc),n0=e=>e>=1?1:(e*=2)<1?.5*Yc(e):.5*(2-Math.pow(2,-10*(e-1))),Xc=e=>1-Math.sin(Math.acos(e)),r0=Jm(Xc),i0=Qm(Xc),V6=ys(.42,0,1,1),I6=ys(0,0,.58,1),s0=ys(.42,0,.58,1),$6=e=>Array.isArray(e)&&typeof e[0]!="number",o0=e=>Array.isArray(e)&&typeof e[0]=="number",z6={linear:Vt,easeIn:V6,easeInOut:s0,easeOut:I6,circIn:Xc,circInOut:i0,circOut:r0,backIn:Yc,backInOut:t0,backOut:e0,anticipate:n0},F6=e=>typeof e=="string",$p=e=>{if(o0(e)){ya(e.length===4);const[n,i,s,a]=e;return ys(n,i,s,a)}else if(F6(e))return z6[e];return e},No=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function B6(e){let n=new Set,i=new Set,s=!1,a=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){u.has(m)&&(p.schedule(m),e()),m(c)}const p={schedule:(m,y=!1,w=!1)=>{const k=w&&s?n:i;return y&&u.add(m),k.add(m),m},cancel:m=>{i.delete(m),u.delete(m)},process:m=>{if(c=m,s){a=!0;return}s=!0;const y=n;n=i,i=y,n.forEach(d),n.clear(),s=!1,a&&(a=!1,p.process(m))}};return p}const H6=40;function a0(e,n){let i=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=No.reduce((O,z)=>(O[z]=B6(u),O),{}),{setup:d,read:p,resolveKeyframes:m,preUpdate:y,update:w,preRender:g,render:k,postRender:x}=c,C=()=>{const O=Un.useManualTiming,z=O?a.timestamp:performance.now();i=!1,O||(a.delta=s?1e3/60:Math.max(Math.min(z-a.timestamp,H6),1)),a.timestamp=z,a.isProcessing=!0,d.process(a),p.process(a),m.process(a),y.process(a),w.process(a),g.process(a),k.process(a),x.process(a),a.isProcessing=!1,i&&n&&(s=!1,e(C))},T=()=>{i=!0,s=!0,a.isProcessing||e(C)};return{schedule:No.reduce((O,z)=>{const V=c[z];return O[z]=(F,U=!1,q=!1)=>(i||T(),V.schedule(F,U,q)),O},{}),cancel:O=>{for(let z=0;z<No.length;z++)c[No[z]].cancel(O)},state:a,steps:c}}const{schedule:je,cancel:Wn,state:tt,steps:Tu}=a0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vt,!0);let $o;function U6(){$o=void 0}const ft={now:()=>($o===void 0&&ft.set(tt.isProcessing||Un.useManualTiming?tt.timestamp:performance.now()),$o),set:e=>{$o=e,queueMicrotask(U6)}},l0=e=>n=>typeof n=="string"&&n.startsWith(e),u0=l0("--"),W6=l0("var(--"),Zc=e=>W6(e)?q6.test(e.split("/*")[0].trim()):!1,q6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zp(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const oi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cs={...oi,transform:e=>un(0,1,e)},Ao={...oi,default:1},Ji=e=>Math.round(e*1e5)/1e5,Qc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function K6(e){return e==null}const G6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jc=(e,n)=>i=>!!(typeof i=="string"&&G6.test(i)&&i.startsWith(e)||n&&!K6(i)&&Object.prototype.hasOwnProperty.call(i,n)),c0=(e,n,i)=>s=>{if(typeof s!="string")return s;const[a,u,c,d]=s.match(Qc);return{[e]:parseFloat(a),[n]:parseFloat(u),[i]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},Y6=e=>un(0,255,e),Pu={...oi,transform:e=>Math.round(Y6(e))},yr={test:Jc("rgb","red"),parse:c0("red","green","blue"),transform:({red:e,green:n,blue:i,alpha:s=1})=>"rgba("+Pu.transform(e)+", "+Pu.transform(n)+", "+Pu.transform(i)+", "+Ji(cs.transform(s))+")"};function X6(e){let n="",i="",s="",a="";return e.length>5?(n=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(n=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),n+=n,i+=i,s+=s,a+=a),{red:parseInt(n,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const lc={test:Jc("#"),parse:X6,transform:yr.transform},gs=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),xn=gs("deg"),an=gs("%"),se=gs("px"),Z6=gs("vh"),Q6=gs("vw"),Fp={...an,parse:e=>an.parse(e)/100,transform:e=>an.transform(e*100)},Xr={test:Jc("hsl","hue"),parse:c0("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+an.transform(Ji(n))+", "+an.transform(Ji(i))+", "+Ji(cs.transform(s))+")"},qe={test:e=>yr.test(e)||lc.test(e)||Xr.test(e),parse:e=>yr.test(e)?yr.parse(e):Xr.test(e)?Xr.parse(e):lc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yr.transform(e):Xr.transform(e),getAnimatableNone:e=>{const n=qe.parse(e);return n.alpha=0,qe.transform(n)}},J6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ew(e){var n,i;return isNaN(e)&&typeof e=="string"&&(((n=e.match(Qc))==null?void 0:n.length)||0)+(((i=e.match(J6))==null?void 0:i.length)||0)>0}const f0="number",d0="color",tw="var",nw="var(",Bp="${}",rw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ni(e){const n=e.toString(),i=[],s={color:[],number:[],var:[]},a=[];let u=0;const d=n.replace(rw,p=>(qe.test(p)?(s.color.push(u),a.push(d0),i.push(qe.parse(p))):p.startsWith(nw)?(s.var.push(u),a.push(tw),i.push(p)):(s.number.push(u),a.push(f0),i.push(parseFloat(p))),++u,Bp)).split(Bp);return{values:i,split:d,indexes:s,types:a}}function iw(e){return ni(e).values}function h0({split:e,types:n}){const i=e.length;return s=>{let a="";for(let u=0;u<i;u++)if(a+=e[u],s[u]!==void 0){const c=n[u];c===f0?a+=Ji(s[u]):c===d0?a+=qe.transform(s[u]):a+=s[u]}return a}}function sw(e){return h0(ni(e))}const ow=e=>typeof e=="number"?0:qe.test(e)?qe.getAnimatableNone(e):e,aw=(e,n)=>typeof e=="number"?n!=null&&n.trim().endsWith("/")?e:0:ow(e);function lw(e){const n=ni(e);return h0(n)(n.values.map((s,a)=>aw(s,n.split[a])))}const Yt={test:ew,parse:iw,createTransformer:sw,getAnimatableNone:lw};function bu(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*6*i:i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function uw({hue:e,saturation:n,lightness:i,alpha:s}){e/=360,n/=100,i/=100;let a=0,u=0,c=0;if(!n)a=u=c=i;else{const d=i<.5?i*(1+n):i+n-i*n,p=2*i-d;a=bu(p,d,e+1/3),u=bu(p,d,e),c=bu(p,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function Qo(e,n){return i=>i>0?n:e}const Me=(e,n,i)=>e+(n-e)*i,Mu=(e,n,i)=>{const s=e*e,a=i*(n*n-s)+s;return a<0?0:Math.sqrt(a)},cw=[lc,yr,Xr],fw=e=>cw.find(n=>n.test(e));function Hp(e){const n=fw(e);if(!n)return!1;let i=n.parse(e);return n===Xr&&(i=uw(i)),i}const Up=(e,n)=>{const i=Hp(e),s=Hp(n);if(!i||!s)return Qo(e,n);const a={...i};return u=>(a.red=Mu(i.red,s.red,u),a.green=Mu(i.green,s.green,u),a.blue=Mu(i.blue,s.blue,u),a.alpha=Me(i.alpha,s.alpha,u),yr.transform(a))},uc=new Set(["none","hidden"]);function dw(e,n){return uc.has(e)?i=>i<=0?e:n:i=>i>=1?n:e}function hw(e,n){return i=>Me(e,n,i)}function ef(e){return typeof e=="number"?hw:typeof e=="string"?Zc(e)?Qo:qe.test(e)?Up:yw:Array.isArray(e)?p0:typeof e=="object"?qe.test(e)?Up:pw:Qo}function p0(e,n){const i=[...e],s=i.length,a=e.map((u,c)=>ef(u)(u,n[c]));return u=>{for(let c=0;c<s;c++)i[c]=a[c](u);return i}}function pw(e,n){const i={...e,...n},s={};for(const a in i)e[a]!==void 0&&n[a]!==void 0&&(s[a]=ef(e[a])(e[a],n[a]));return a=>{for(const u in s)i[u]=s[u](a);return i}}function mw(e,n){const i=[],s={color:0,var:0,number:0};for(let a=0;a<n.values.length;a++){const u=n.types[a],c=e.indexes[u][s[u]],d=e.values[c]??0;i[a]=d,s[u]++}return i}const yw=(e,n)=>{const i=Yt.createTransformer(n),s=ni(e),a=ni(n);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?uc.has(e)&&!a.values.length||uc.has(n)&&!s.values.length?dw(e,n):ms(p0(mw(s,a),a.values),i):Qo(e,n)};function m0(e,n,i){return typeof e=="number"&&typeof n=="number"&&typeof i=="number"?Me(e,n,i):ef(e)(e,n)}const gw=e=>{const n=({timestamp:i})=>e(i);return{start:(i=!0)=>je.update(n,i),stop:()=>Wn(n),now:()=>tt.isProcessing?tt.timestamp:ft.now()}},y0=(e,n,i=10)=>{let s="";const a=Math.max(Math.round(n/i),2);for(let u=0;u<a;u++)s+=Math.round(e(u/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Jo=2e4;function tf(e){let n=0;const i=50;let s=e.next(n);for(;!s.done&&n<Jo;)n+=i,s=e.next(n);return n>=Jo?1/0:n}function vw(e,n=100,i){const s=i({...e,keyframes:[0,n]}),a=Math.min(tf(s),Jo);return{type:"keyframes",ease:u=>s.next(a*u).value/n,duration:Ot(a)}}const Fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function cc(e,n){return e*Math.sqrt(1-n*n)}const ww=12;function xw(e,n,i){let s=i;for(let a=1;a<ww;a++)s=s-e(s)/n(s);return s}const ju=.001;function _w({duration:e=Fe.duration,bounce:n=Fe.bounce,velocity:i=Fe.velocity,mass:s=Fe.mass}){let a,u,c=1-n;c=un(Fe.minDamping,Fe.maxDamping,c),e=un(Fe.minDuration,Fe.maxDuration,Ot(e)),c<1?(a=m=>{const y=m*c,w=y*e,g=y-i,k=cc(m,c),x=Math.exp(-w);return ju-g/k*x},u=m=>{const w=m*c*e,g=w*i+i,k=Math.pow(c,2)*Math.pow(m,2)*e,x=Math.exp(-w),C=cc(Math.pow(m,2),c);return(-a(m)+ju>0?-1:1)*((g-k)*x)/C}):(a=m=>{const y=Math.exp(-m*e),w=(m-i)*e+1;return-ju+y*w},u=m=>{const y=Math.exp(-m*e),w=(i-m)*(e*e);return y*w});const d=5/e,p=xw(a,u,d);if(e=bt(e),isNaN(p))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:e};{const m=Math.pow(p,2)*s;return{stiffness:m,damping:c*2*Math.sqrt(s*m),duration:e}}}const kw=["duration","bounce"],Sw=["stiffness","damping","mass"];function Wp(e,n){return n.some(i=>e[i]!==void 0)}function Cw(e){let n={velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1,...e};if(!Wp(e,Sw)&&Wp(e,kw))if(n.velocity=0,e.visualDuration){const i=e.visualDuration,s=2*Math.PI/(i*1.2),a=s*s,u=2*un(.05,1,1-(e.bounce||0))*Math.sqrt(a);n={...n,mass:Fe.mass,stiffness:a,damping:u}}else{const i=_w({...e,velocity:0});n={...n,...i,mass:Fe.mass},n.isResolvedFromDuration=!0}return n}function ea(e=Fe.visualDuration,n=Fe.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:a}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],d={done:!1,value:u},{stiffness:p,damping:m,mass:y,duration:w,velocity:g,isResolvedFromDuration:k}=Cw({...i,velocity:-Ot(i.velocity||0)}),x=g||0,C=m/(2*Math.sqrt(p*y)),T=c-u,A=Ot(Math.sqrt(p/y)),D=Math.abs(T)<5;s||(s=D?Fe.restSpeed.granular:Fe.restSpeed.default),a||(a=D?Fe.restDelta.granular:Fe.restDelta.default);let O,z,V,F,U,q;if(C<1)V=cc(A,C),F=(x+C*A*T)/V,O=B=>{const oe=Math.exp(-C*A*B);return c-oe*(F*Math.sin(V*B)+T*Math.cos(V*B))},U=C*A*F+T*V,q=C*A*T-F*V,z=B=>Math.exp(-C*A*B)*(U*Math.sin(V*B)+q*Math.cos(V*B));else if(C===1){O=oe=>c-Math.exp(-A*oe)*(T+(x+A*T)*oe);const B=x+A*T;z=oe=>Math.exp(-A*oe)*(A*B*oe-x)}else{const B=A*Math.sqrt(C*C-1);O=ae=>{const ce=Math.exp(-C*A*ae),ve=Math.min(B*ae,300);return c-ce*((x+C*A*T)*Math.sinh(ve)+B*T*Math.cosh(ve))/B};const oe=(x+C*A*T)/B,me=C*A*oe-T*B,J=C*A*T-oe*B;z=ae=>{const ce=Math.exp(-C*A*ae),ve=Math.min(B*ae,300);return ce*(me*Math.sinh(ve)+J*Math.cosh(ve))}}const $={calculatedDuration:k&&w||null,velocity:B=>bt(z(B)),next:B=>{if(!k&&C<1){const me=Math.exp(-C*A*B),J=Math.sin(V*B),ae=Math.cos(V*B),ce=c-me*(F*J+T*ae),ve=bt(me*(U*J+q*ae));return d.done=Math.abs(ve)<=s&&Math.abs(c-ce)<=a,d.value=d.done?c:ce,d}const oe=O(B);if(k)d.done=B>=w;else{const me=bt(z(B));d.done=Math.abs(me)<=s&&Math.abs(c-oe)<=a}return d.value=d.done?c:oe,d},toString:()=>{const B=Math.min(tf($),Jo),oe=y0(me=>$.next(B*me).value,B,30);return B+"ms "+oe},toTransition:()=>{}};return $}ea.applyToOptions=e=>{const n=vw(e,100,ea);return e.ease=n.ease,e.duration=bt(n.duration),e.type="keyframes",e};const Ew=5;function g0(e,n,i){const s=Math.max(n-Ew,0);return Xm(i-e(s),n-s)}function fc({keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:u=500,modifyTarget:c,min:d,max:p,restDelta:m=.5,restSpeed:y}){const w=e[0],g={done:!1,value:w},k=q=>d!==void 0&&q<d||p!==void 0&&q>p,x=q=>d===void 0?p:p===void 0||Math.abs(d-q)<Math.abs(p-q)?d:p;let C=i*n;const T=w+C,A=c===void 0?T:c(T);A!==T&&(C=A-w);const D=q=>-C*Math.exp(-q/s),O=q=>A+D(q),z=q=>{const $=D(q),B=O(q);g.done=Math.abs($)<=m,g.value=g.done?A:B};let V,F;const U=q=>{k(g.value)&&(V=q,F=ea({keyframes:[g.value,x(g.value)],velocity:g0(O,q,g.value),damping:a,stiffness:u,restDelta:m,restSpeed:y}))};return U(0),{calculatedDuration:null,next:q=>{let $=!1;return!F&&V===void 0&&($=!0,z(q),U(q)),V!==void 0&&q>=V?F.next(q-V):(!$&&z(q),g)}}}function Tw(e,n,i){const s=[],a=i||Un.mix||m0,u=e.length-1;for(let c=0;c<u;c++){let d=a(e[c],e[c+1]);if(n){const p=Array.isArray(n)?n[c]||Vt:n;d=ms(p,d)}s.push(d)}return s}function Pw(e,n,{clamp:i=!0,ease:s,mixer:a}={}){const u=e.length;if(ya(u===n.length),u===1)return()=>n[0];if(u===2&&n[0]===n[1])return()=>n[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),n=[...n].reverse());const d=Tw(n,s,a),p=d.length,m=y=>{if(c&&y<e[0])return n[0];let w=0;if(p>1)for(;w<e.length-2&&!(y<e[w+1]);w++);const g=us(e[w],e[w+1],y);return d[w](g)};return i?y=>m(un(e[0],e[u-1],y)):m}function bw(e,n){const i=e[e.length-1];for(let s=1;s<=n;s++){const a=us(0,n,s);e.push(Me(i,1,a))}}function Mw(e){const n=[0];return bw(n,e.length-1),n}function jw(e,n){return e.map(i=>i*n)}function Lw(e,n){return e.map(()=>n||s0).splice(0,e.length-1)}function es({duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}){const a=$6(s)?s.map($p):$p(s),u={done:!1,value:n[0]},c=jw(i&&i.length===n.length?i:Mw(n),e),d=Pw(c,n,{ease:Array.isArray(a)?a:Lw(n,a)});return{calculatedDuration:e,next:p=>(u.value=d(p),u.done=p>=e,u)}}const Nw=e=>e!==null;function ga(e,{repeat:n,repeatType:i="loop"},s,a=1){const u=e.filter(Nw),d=a<0||n&&i!=="loop"&&n%2===1?0:u.length-1;return!d||s===void 0?u[d]:s}const Aw={decay:fc,inertia:fc,tween:es,keyframes:es,spring:ea};function v0(e){typeof e.type=="string"&&(e.type=Aw[e.type])}class nf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,i){return this.finished.then(n,i)}}const Rw=e=>e/100;class ta extends nf{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,a;const{motionValue:i}=this.options;i&&i.updatedAt!==ft.now()&&this.tick(ft.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(s=this.options).onStop)==null||a.call(s))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;v0(n);const{type:i=es,repeat:s=0,repeatDelay:a=0,repeatType:u,velocity:c=0}=n;let{keyframes:d}=n;const p=i||es;p!==es&&typeof d[0]!="number"&&(this.mixKeyframes=ms(Rw,m0(d[0],d[1])),d=[0,100]);const m=p({...n,keyframes:d});u==="mirror"&&(this.mirroredGenerator=p({...n,keyframes:[...d].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=tf(m));const{calculatedDuration:y}=m;this.calculatedDuration=y,this.resolvedDuration=y+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=m}updateTime(n){const i=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(n,i=!1){const{generator:s,totalDuration:a,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:p}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:y,repeat:w,repeatType:g,repeatDelay:k,type:x,onUpdate:C,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-a/this.speed,this.startTime)),i?this.currentTime=n:this.updateTime(n);const A=this.currentTime-m*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let O=this.currentTime,z=s;if(w){const q=Math.min(this.currentTime,a)/d;let $=Math.floor(q),B=q%1;!B&&q>=1&&(B=1),B===1&&$--,$=Math.min($,w+1),!!($%2)&&(g==="reverse"?(B=1-B,k&&(B-=k/d)):g==="mirror"&&(z=c)),O=un(0,1,B)*d}let V;D?(this.delayState.value=y[0],V=this.delayState):V=z.next(O),u&&!D&&(V.value=u(V.value));let{done:F}=V;!D&&p!==null&&(F=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return U&&x!==fc&&(V.value=ga(y,this.options,T,this.speed)),C&&C(V.value),U&&this.finish(),V}then(n,i){return this.finished.then(n,i)}get duration(){return Ot(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+Ot(n)}get time(){return Ot(this.currentTime)}set time(n){n=bt(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=n,this.tick(n))}getGeneratorVelocity(){const n=this.currentTime;if(n<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(n);const i=this.generator.next(n).value;return g0(s=>this.generator.next(s).value,n,i)}get speed(){return this.playbackSpeed}set speed(n){const i=this.playbackSpeed!==n;i&&this.driver&&this.updateTime(ft.now()),this.playbackSpeed=n,i&&this.driver&&(this.time=Ot(this.currentTime))}play(){var a,u;if(this.isStopped)return;const{driver:n=gw,startTime:i}=this.options;this.driver||(this.driver=n(c=>this.tick(c))),(u=(a=this.options).onPlay)==null||u.call(a);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ft.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(n=this.options).onComplete)==null||i.call(n)}cancel(){var n,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(n=this.options).onCancel)==null||i.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),n.observe(this)}}function Dw(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const gr=e=>e*180/Math.PI,dc=e=>{const n=gr(Math.atan2(e[1],e[0]));return hc(n)},Ow={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:dc,rotateZ:dc,skewX:e=>gr(Math.atan(e[1])),skewY:e=>gr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},hc=e=>(e=e%360,e<0&&(e+=360),e),qp=dc,Kp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kp,scaleY:Gp,scale:e=>(Kp(e)+Gp(e))/2,rotateX:e=>hc(gr(Math.atan2(e[6],e[5]))),rotateY:e=>hc(gr(Math.atan2(-e[2],e[0]))),rotateZ:qp,rotate:qp,skewX:e=>gr(Math.atan(e[4])),skewY:e=>gr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pc(e){return e.includes("scale")?1:0}function mc(e,n){if(!e||e==="none")return pc(n);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(i)s=Vw,a=i;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ow,a=d}if(!a)return pc(n);const u=s[n],c=a[1].split(",").map($w);return typeof u=="function"?u(c):c[u]}const Iw=(e,n)=>{const{transform:i="none"}=getComputedStyle(e);return mc(i,n)};function $w(e){return parseFloat(e.trim())}const ai=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set([...ai,"pathRotation"]),Yp=e=>e===oi||e===se,zw=new Set(["x","y","z"]),Fw=ai.filter(e=>!zw.has(e));function Bw(e){const n=[];return Fw.forEach(i=>{const s=e.getValue(i);s!==void 0&&(n.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),n}const Hn={width:({x:e},{paddingLeft:n="0",paddingRight:i="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(n)-parseFloat(i)},height:({y:e},{paddingTop:n="0",paddingBottom:i="0",boxSizing:s})=>{const a=e.max-e.min;return s==="border-box"?a:a-parseFloat(n)-parseFloat(i)},top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>mc(n,"x"),y:(e,{transform:n})=>mc(n,"y")};Hn.translateX=Hn.x;Hn.translateY=Hn.y;const xr=new Set;let yc=!1,gc=!1,vc=!1;function w0(){if(gc){const e=Array.from(xr).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),i=new Map;n.forEach(s=>{const a=Bw(s);a.length&&(i.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const a=i.get(s);a&&a.forEach(([u,c])=>{var d;(d=s.getValue(u))==null||d.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}gc=!1,yc=!1,xr.forEach(e=>e.complete(vc)),xr.clear()}function x0(){xr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gc=!0)})}function Hw(){vc=!0,x0(),w0(),vc=!1}class rf{constructor(n,i,s,a,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=i,this.name=s,this.motionValue=a,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(xr.add(this),yc||(yc=!0,je.read(x0),je.resolveKeyframes(w0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:i,element:s,motionValue:a}=this;if(n[0]===null){const u=a==null?void 0:a.get(),c=n[n.length-1];if(u!==void 0)n[0]=u;else if(s&&i){const d=s.readValue(i,c);d!=null&&(n[0]=d)}n[0]===void 0&&(n[0]=c),a&&u===void 0&&a.set(n[0])}Dw(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),xr.delete(this)}cancel(){this.state==="scheduled"&&(xr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uw=e=>e.startsWith("--");function _0(e,n,i){Uw(n)?e.style.setProperty(n,i):e.style[n]=i}const Ww={};function k0(e,n){const i=Ym(e);return()=>Ww[n]??i()}const qw=k0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),S0=k0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qi=([e,n,i,s])=>`cubic-bezier(${e}, ${n}, ${i}, ${s})`,Xp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qi([0,.65,.55,1]),circOut:Qi([.55,0,1,.45]),backIn:Qi([.31,.01,.66,-.59]),backOut:Qi([.33,1.53,.69,.99])};function C0(e,n){if(e)return typeof e=="function"?S0()?y0(e,n):"ease-out":o0(e)?Qi(e):Array.isArray(e)?e.map(i=>C0(i,n)||Xp.easeOut):Xp[e]}function Kw(e,n,i,{delay:s=0,duration:a=300,repeat:u=0,repeatType:c="loop",ease:d="easeOut",times:p}={},m=void 0){const y={[n]:i};p&&(y.offset=p);const w=C0(d,a);Array.isArray(w)&&(y.easing=w);const g={delay:s,duration:a,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return m&&(g.pseudoElement=m),e.animate(y,g)}function E0(e){return typeof e=="function"&&"applyToOptions"in e}function Gw({type:e,...n}){return E0(e)&&S0()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class T0 extends nf{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:i,name:s,keyframes:a,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:d,onComplete:p}=n;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=n,ya(typeof n.type!="string");const m=Gw(n);this.animation=Kw(i,s,a,m,u),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=ga(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(y),_0(i,s,y),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,i;(i=(n=this.animation).finish)==null||i.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s,a;const n=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((a=(s=this.animation).commitStyles)==null||a.call(s))}get duration(){var i,s;const n=((s=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:s.call(i).duration)||0;return Ot(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+Ot(n)}get time(){return Ot(Number(this.animation.currentTime)||0)}set time(n){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=bt(n),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,rangeStart:i,rangeEnd:s,observe:a}){var u;return this.allowFlatten&&((u=this.animation.effect)==null||u.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&qw()?(this.animation.timeline=n,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),Vt):a(this)}}const P0={anticipate:n0,backInOut:t0,circInOut:i0};function Yw(e){return e in P0}function Xw(e){typeof e.ease=="string"&&Yw(e.ease)&&(e.ease=P0[e.ease])}const Lu=10;class Zw extends T0{constructor(n){Xw(n),v0(n),super(n),n.startTime!==void 0&&n.autoplay!==!1&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:i,onUpdate:s,onComplete:a,element:u,...c}=this.options;if(!i)return;if(n!==void 0){i.set(n);return}const d=new ta({...c,autoplay:!1}),p=Math.max(Lu,ft.now()-this.startTime),m=un(0,Lu,p-Lu),y=d.sample(p).value,{name:w}=this.options;u&&w&&_0(u,w,y),i.setWithVelocity(d.sample(Math.max(0,p-m)).value,y,m),d.stop()}}const Zp=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yt.test(e)||e==="0")&&!e.startsWith("url("));function Qw(e){const n=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}function Jw(e,n,i,s){const a=e[0];if(a===null)return!1;if(n==="display"||n==="visibility")return!0;const u=e[e.length-1],c=Zp(a,n),d=Zp(u,n);return!c||!d?!1:Qw(e)||(i==="spring"||E0(i))&&s}function wc(e){e.duration=0,e.type="keyframes"}const b0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),e8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function t8(e){for(let n=0;n<e.length;n++)if(typeof e[n]=="string"&&e8.test(e[n]))return!0;return!1}const n8=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),r8=Ym(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function i8(e){var w;const{motionValue:n,name:i,repeatDelay:s,repeatType:a,damping:u,type:c,keyframes:d}=e,p=(w=n==null?void 0:n.owner)==null?void 0:w.current;if(!(p instanceof HTMLElement)&&!(p instanceof SVGElement))return!1;const{onUpdate:m,transformTemplate:y}=n.owner.getProps();return r8()&&i&&(b0.has(i)||n8.has(i)&&t8(d))&&(i!=="transform"||!y)&&!m&&!s&&a!=="mirror"&&u!==0&&c!=="inertia"}const s8=40;class o8 extends nf{constructor({autoplay:n=!0,delay:i=0,type:s="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:c="loop",keyframes:d,name:p,motionValue:m,element:y,...w}){var x;super(),this.stop=()=>{var C,T;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=ft.now();const g={autoplay:n,delay:i,type:s,repeat:a,repeatDelay:u,repeatType:c,name:p,motionValue:m,element:y,...w},k=(y==null?void 0:y.KeyframeResolver)||rf;this.keyframeResolver=new k(d,(C,T,A)=>this.onKeyframesResolved(C,T,g,!A),p,m,y),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(n,i,s,a){var A,D;this.keyframeResolver=void 0;const{name:u,type:c,velocity:d,delay:p,isHandoff:m,onUpdate:y}=s;this.resolvedAt=ft.now();let w=!0;Jw(n,u,c,d)||(w=!1,(Un.instantAnimations||!p)&&(y==null||y(ga(n,s,i))),n[0]=n[n.length-1],wc(s),s.repeat=0);const k={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>s8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:n},x=w&&!m&&i8(k),C=(D=(A=k.motionValue)==null?void 0:A.owner)==null?void 0:D.current;let T;if(x)try{T=new Zw({...k,element:C})}catch{T=new ta(k)}else T=new ta(k);T.finished.then(()=>{this.notifyFinished()}).catch(Vt),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(n,i){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),Hw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function M0(e,n,i,s=0,a=1){const u=Array.from(e).sort((m,y)=>m.sortNodePosition(y)).indexOf(n),c=e.size,d=(c-1)*s;return typeof i=="function"?i(u,c):a===1?u*s:d-u*s}const Qp=30,a8=e=>!isNaN(parseFloat(e));class l8{constructor(n,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var u;const a=ft.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=i.owner}setCurrent(n){this.current=n,this.updatedAt=ft.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=a8(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,i){this.events[n]||(this.events[n]=new Gc);const s=this.events[n].add(i);return n==="change"?()=>{s(),je.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,i){this.passiveEffect=n,this.stopPassiveEffect=i}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,i=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Qp)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,Qp);return Xm(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(n){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=n(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var n,i;(n=this.dependents)==null||n.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ri(e,n){return new l8(e,n)}function j0(e,n){if(e!=null&&e.inherit&&n){const{inherit:i,...s}=e;return{...n,...s}}return e}function sf(e,n){const i=(e==null?void 0:e[n])??(e==null?void 0:e.default)??e;return i!==e?j0(i,e):i}const u8={type:"spring",stiffness:500,damping:25,restSpeed:10},c8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),f8={type:"keyframes",duration:.8},d8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},h8=(e,{keyframes:n})=>n.length>2?f8:li.has(e)?e.startsWith("scale")?c8(n[1]):u8:d8,p8=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function m8(e){for(const n in e)if(!p8.has(n))return!0;return!1}const of=(e,n,i,s={},a,u)=>c=>{const d=sf(s,e)||{},p=d.delay||s.delay||0;let{elapsed:m=0}=s;m=m-bt(p);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:n.getVelocity(),...d,delay:-m,onUpdate:g=>{n.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:n,element:u?void 0:a};m8(d)||Object.assign(y,h8(e,y)),y.duration&&(y.duration=bt(y.duration)),y.repeatDelay&&(y.repeatDelay=bt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let w=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(wc(y),y.delay===0&&(w=!0)),(Un.instantAnimations||Un.skipAnimations||a!=null&&a.shouldSkipAnimations||d.skipAnimations)&&(w=!0,wc(y),y.delay=0),y.allowFlatten=!d.type&&!d.ease,w&&!u&&n.get()!==void 0){const g=ga(y.keyframes,d);if(g!==void 0){je.update(()=>{y.onUpdate(g),y.onComplete()});return}}return d.isSync?new ta(y):new o8(y)},y8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function g8(e){const n=y8.exec(e);if(!n)return[,];const[,i,s,a]=n;return[`--${i??s}`,a]}function L0(e,n,i=1){const[s,a]=g8(e);if(!s)return;const u=window.getComputedStyle(n).getPropertyValue(s);if(u){const c=u.trim();return qm(c)?parseFloat(c):c}return Zc(a)?L0(a,n,i+1):a}function Jp(e){const n=[{},{}];return e==null||e.values.forEach((i,s)=>{n[0][s]=i.get(),n[1][s]=i.getVelocity()}),n}function af(e,n,i,s){if(typeof n=="function"){const[a,u]=Jp(s);n=n(i!==void 0?i:e.custom,a,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[a,u]=Jp(s);n=n(i!==void 0?i:e.custom,a,u)}return n}function _r(e,n,i){const s=e.getProps();return af(s,n,i!==void 0?i:s.custom,e)}const N0=new Set(["width","height","top","left","right","bottom",...ai]),xc=e=>Array.isArray(e);function v8(e,n,i){e.hasValue(n)?e.getValue(n).set(i):e.addValue(n,ri(i))}function w8(e){return xc(e)?e[e.length-1]||0:e}function x8(e,n){const i=_r(e,n);let{transitionEnd:s={},transition:a={},...u}=i||{};u={...u,...s};for(const c in u){const d=w8(u[c]);v8(e,c,d)}}const nt=e=>!!(e&&e.getVelocity);function _8(e){return!!(nt(e)&&e.add)}function _c(e,n){const i=e.getValue("willChange");if(_8(i))return i.add(n);if(!i&&Un.WillChange){const s=new Un.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function lf(e){return e.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const k8="framerAppearId",A0="data-"+lf(k8);function R0(e){return e.props[A0]}const S8=typeof window<"u";function C8({protectedKeys:e,needsAnimating:n},i){const s=e.hasOwnProperty(i)&&n[i]!==!0;return n[i]=!1,s}function D0(e,n,{delay:i=0,transitionOverride:s,type:a}={}){let{transition:u,transitionEnd:c,...d}=n;const p=e.getDefaultTransition();u=u?j0(u,p):p;const m=u==null?void 0:u.reduceMotion,y=u==null?void 0:u.skipAnimations;s&&(u=s);const w=[],g=a&&e.animationState&&e.animationState.getState()[a],k=u==null?void 0:u.path;k&&k.animateVisualElement(e,d,u,i,w);for(const x in d){const C=e.getValue(x,e.latestValues[x]??null),T=d[x];if(T===void 0||g&&C8(g,x))continue;const A={delay:i,...sf(u||{},x)};y&&(A.skipAnimations=!0);const D=C.get();if(D!==void 0&&!C.isAnimating()&&!Array.isArray(T)&&T===D&&!A.velocity){je.update(()=>C.set(T));continue}let O=!1;if(S8&&window.MotionHandoffAnimation){const F=R0(e);if(F){const U=window.MotionHandoffAnimation(F,x,je);U!==null&&(A.startTime=U,O=!0)}}_c(e,x);const z=m??e.shouldReduceMotion;C.start(of(x,C,T,z&&N0.has(x)?{type:!1}:A,e,O));const V=C.animation;V&&w.push(V)}if(c){const x=()=>je.update(()=>{c&&x8(e,c)});w.length?Promise.all(w).then(x):x()}return w}function kc(e,n,i={}){var p;const s=_r(e,n,i.type==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(a=i.transitionOverride);const u=s?()=>Promise.all(D0(e,s,i)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:w,staggerDirection:g}=a;return E8(e,n,m,y,w,g,i)}:()=>Promise.resolve(),{when:d}=a;if(d){const[m,y]=d==="beforeChildren"?[u,c]:[c,u];return m().then(()=>y())}else return Promise.all([u(),c(i.delay)])}function E8(e,n,i=0,s=0,a=0,u=1,c){const d=[];for(const p of e.variantChildren)p.notify("AnimationStart",n),d.push(kc(p,n,{...c,delay:i+(typeof s=="function"?0:s)+M0(e.variantChildren,p,s,a,u)}).then(()=>p.notify("AnimationComplete",n)));return Promise.all(d)}function T8(e,n,i={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const a=n.map(u=>kc(e,u,i));s=Promise.all(a)}else if(typeof n=="string")s=kc(e,n,i);else{const a=typeof n=="function"?_r(e,n,i.custom):n;s=Promise.all(D0(e,a,i))}return s.then(()=>{e.notify("AnimationComplete",n)})}const P8={test:e=>e==="auto",parse:e=>e},O0=e=>n=>n.test(e),V0=[oi,se,an,xn,Q6,Z6,P8],e1=e=>V0.find(O0(e));function b8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Gm(e):!0}const M8=new Set(["brightness","contrast","saturate","opacity"]);function j8(e){const[n,i]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=i.match(Qc)||[];if(!s)return e;const a=i.replace(s,"");let u=M8.has(n)?1:0;return s!==i&&(u*=100),n+"("+u+a+")"}const L8=/\b([a-z-]*)\(.*?\)/gu,Sc={...Yt,getAnimatableNone:e=>{const n=e.match(L8);return n?n.map(j8).join(" "):e}},Cc={...Yt,getAnimatableNone:e=>{const n=Yt.parse(e);return Yt.createTransformer(e)(n.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},t1={...oi,transform:Math.round},N8={rotate:xn,pathRotation:xn,rotateX:xn,rotateY:xn,rotateZ:xn,scale:Ao,scaleX:Ao,scaleY:Ao,scaleZ:Ao,skew:xn,skewX:xn,skewY:xn,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:cs,originX:Fp,originY:Fp,originZ:se},na={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,top:se,right:se,bottom:se,left:se,inset:se,insetBlock:se,insetBlockStart:se,insetBlockEnd:se,insetInline:se,insetInlineStart:se,insetInlineEnd:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,paddingBlock:se,paddingBlockStart:se,paddingBlockEnd:se,paddingInline:se,paddingInlineStart:se,paddingInlineEnd:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,marginBlock:se,marginBlockStart:se,marginBlockEnd:se,marginInline:se,marginInlineStart:se,marginInlineEnd:se,fontSize:se,backgroundPositionX:se,backgroundPositionY:se,...N8,zIndex:t1,fillOpacity:cs,strokeOpacity:cs,numOctaves:t1},A8={...na,color:qe,backgroundColor:qe,outlineColor:qe,fill:qe,stroke:qe,borderColor:qe,borderTopColor:qe,borderRightColor:qe,borderBottomColor:qe,borderLeftColor:qe,filter:Sc,WebkitFilter:Sc,mask:Cc,WebkitMask:Cc},I0=e=>A8[e],R8=new Set([Sc,Cc]);function $0(e,n){let i=I0(e);return R8.has(i)||(i=Yt),i.getAnimatableNone?i.getAnimatableNone(n):void 0}const D8=new Set(["auto","none","0"]);function O8(e,n,i){let s=0,a;for(;s<e.length&&!a;){const u=e[s];typeof u=="string"&&!D8.has(u)&&ni(u).values.length&&(a=e[s]),s++}if(a&&i)for(const u of n)e[u]=$0(i,a)}class V8 extends rf{constructor(n,i,s,a,u){super(n,i,s,a,u,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let w=n[y];if(typeof w=="string"&&(w=w.trim(),Zc(w))){const g=L0(w,i.current);g!==void 0&&(n[y]=g),y===n.length-1&&(this.finalKeyframe=w)}}if(this.resolveNoneKeyframes(),!N0.has(s)||n.length!==2)return;const[a,u]=n,c=e1(a),d=e1(u),p=zp(a),m=zp(u);if(p!==m&&Hn[s]){this.needsMeasurement=!0;return}if(c!==d)if(Yp(c)&&Yp(d))for(let y=0;y<n.length;y++){const w=n[y];typeof w=="string"&&(n[y]=parseFloat(w))}else Hn[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:i}=this,s=[];for(let a=0;a<n.length;a++)(n[a]===null||b8(n[a]))&&s.push(a);s.length&&O8(n,s,i)}measureInitialState(){const{element:n,unresolvedKeyframes:i,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hn[s](n.measureViewportBox(),window.getComputedStyle(n.current)),i[0]=this.measuredOrigin;const a=i[i.length-1];a!==void 0&&n.getValue(s,a).jump(a,!1)}measureEndState(){var d;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const a=n.getValue(i);a&&a.jump(this.measuredOrigin,!1);const u=s.length-1,c=s[u];s[u]=Hn[i](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([p,m])=>{n.getValue(p).set(m)}),this.resolveNoneKeyframes()}}const uf=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function z0(e,n,i){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const a=(i==null?void 0:i[e])??s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(s=>s!=null)}const Ec=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function I8(e){return Km(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:cf}=a0(queueMicrotask,!1),qt={x:!1,y:!1};function F0(){return qt.x||qt.y}function $8(e){return e==="x"||e==="y"?qt[e]?null:(qt[e]=!0,()=>{qt[e]=!1}):qt.x||qt.y?null:(qt.x=qt.y=!0,()=>{qt.x=qt.y=!1})}function B0(e,n){const i=z0(e),s=new AbortController,a={passive:!0,...n,signal:s.signal};return[i,a,()=>s.abort()]}function z8(e){return!(e.pointerType==="touch"||F0())}function F8(e,n,i={}){const[s,a,u]=B0(e,i);return s.forEach(c=>{let d=!1,p=!1,m;const y=()=>{c.removeEventListener("pointerleave",x)},w=T=>{m&&(m(T),m=void 0),y()},g=T=>{d=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),p&&(p=!1,w(T))},k=()=>{d=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},x=T=>{if(T.pointerType!=="touch"){if(d){p=!0;return}w(T)}},C=T=>{if(!z8(T))return;p=!1;const A=n(c,T);typeof A=="function"&&(m=A,c.addEventListener("pointerleave",x,a))};c.addEventListener("pointerenter",C,a),c.addEventListener("pointerdown",k,a)}),u}const H0=(e,n)=>n?e===n?!0:H0(e,n.parentElement):!1,ff=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,B8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function H8(e){return B8.has(e.tagName)||e.isContentEditable===!0}const U8=new Set(["INPUT","SELECT","TEXTAREA"]);function W8(e){return U8.has(e.tagName)||e.isContentEditable===!0}const zo=new WeakSet;function n1(e){return n=>{n.key==="Enter"&&e(n)}}function Nu(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const q8=(e,n)=>{const i=e.currentTarget;if(!i)return;const s=n1(()=>{if(zo.has(i))return;Nu(i,"down");const a=n1(()=>{Nu(i,"up")}),u=()=>Nu(i,"cancel");i.addEventListener("keyup",a,n),i.addEventListener("blur",u,n)});i.addEventListener("keydown",s,n),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),n)};function r1(e){return ff(e)&&!F0()}const i1=new WeakSet;function K8(e,n,i={}){const[s,a,u]=B0(e,i),c=d=>{const p=d.currentTarget;if(!r1(d)||i1.has(d))return;zo.add(p),i.stopPropagation&&i1.add(d);const m=n(p,d),y={...a,capture:!0},w=(x,C)=>{window.removeEventListener("pointerup",g,y),window.removeEventListener("pointercancel",k,y),zo.has(p)&&zo.delete(p),r1(x)&&typeof m=="function"&&m(x,{success:C})},g=x=>{w(x,p===window||p===document||i.useGlobalTarget||H0(p,x.target))},k=x=>{w(x,!1)};window.addEventListener("pointerup",g,y),window.addEventListener("pointercancel",k,y)};return s.forEach(d=>{(i.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),I8(d)&&(d.addEventListener("focus",m=>q8(m,a)),!H8(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),u}function df(e){return Km(e)&&"ownerSVGElement"in e}const Fo=new WeakMap;let Fn;const U0=(e,n,i)=>(s,a)=>a&&a[0]?a[0][e+"Size"]:df(s)&&"getBBox"in s?s.getBBox()[n]:s[i],G8=U0("inline","width","offsetWidth"),Y8=U0("block","height","offsetHeight");function X8({target:e,borderBoxSize:n}){var i;(i=Fo.get(e))==null||i.forEach(s=>{s(e,{get width(){return G8(e,n)},get height(){return Y8(e,n)}})})}function Z8(e){e.forEach(X8)}function Q8(){typeof ResizeObserver>"u"||(Fn=new ResizeObserver(Z8))}function J8(e,n){Fn||Q8();const i=z0(e);return i.forEach(s=>{let a=Fo.get(s);a||(a=new Set,Fo.set(s,a)),a.add(n),Fn==null||Fn.observe(s)}),()=>{i.forEach(s=>{const a=Fo.get(s);a==null||a.delete(n),a!=null&&a.size||Fn==null||Fn.unobserve(s)})}}const Bo=new Set;let Zr;function e7(){Zr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Bo.forEach(n=>n(e))},window.addEventListener("resize",Zr)}function t7(e){return Bo.add(e),Zr||e7(),()=>{Bo.delete(e),!Bo.size&&typeof Zr=="function"&&(window.removeEventListener("resize",Zr),Zr=void 0)}}function s1(e,n){return typeof e=="function"?t7(e):J8(e,n)}function n7(e){return df(e)&&e.tagName==="svg"}const r7=[...V0,qe,Yt],i7=e=>r7.find(O0(e)),o1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qr=()=>({x:o1(),y:o1()}),a1=()=>({min:0,max:0}),Ye=()=>({x:a1(),y:a1()}),s7=new WeakMap;function va(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fs(e){return typeof e=="string"||Array.isArray(e)}const hf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pf=["initial",...hf];function wa(e){return va(e.animate)||pf.some(n=>fs(e[n]))}function W0(e){return!!(wa(e)||e.variants)}function o7(e,n,i){for(const s in n){const a=n[s],u=i[s];if(nt(a))e.addValue(s,a);else if(nt(u))e.addValue(s,ri(a,{owner:e}));else if(u!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,ri(c!==void 0?c:a,{owner:e}))}}for(const s in i)n[s]===void 0&&e.removeValue(s);return n}const ra={current:null},mf={current:!1},a7=typeof window<"u";function q0(){if(mf.current=!0,!!a7)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>ra.current=e.matches;e.addEventListener("change",n),n()}else ra.current=!1}const l1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ia={};function K0(e){ia=e}function l7(){return ia}class u7{scrapeMotionValuesFromProps(n,i,s){return{}}constructor({parent:n,props:i,presenceContext:s,reducedMotionConfig:a,skipAnimations:u,blockInitialAnimation:c,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=rf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const k=ft.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,je.render(this.render,!1,!0))};const{latestValues:m,renderState:y}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=i.initial?{...m}:{},this.renderState=y,this.parent=n,this.props=i,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=u,this.options=p,this.blockInitialAnimation=!!c,this.isControllingVariants=wa(i),this.isVariantNode=W0(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:w,...g}=this.scrapeMotionValuesFromProps(i,{},this);for(const k in g){const x=g[k];m[k]!==void 0&&nt(x)&&x.set(m[k])}}mount(n){var i,s;if(this.hasBeenMounted)for(const a in this.initialValues)(i=this.values.get(a))==null||i.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=n,s7.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,u)=>this.bindToMotionValue(u,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(mf.current||q0(),this.shouldReduceMotion=ra.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),Wn(this.notifyUpdate),Wn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,i){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),i.accelerate&&b0.has(n)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:p,ease:m,duration:y}=i.accelerate,w=new T0({element:this.current,name:n,keyframes:d,times:p,ease:m,duration:bt(y)}),g=c(w);this.valueSubscriptions.set(n,()=>{g(),w.cancel()});return}const s=li.has(n);s&&this.onBindTransform&&this.onBindTransform();const a=i.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&je.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,n,i)),this.valueSubscriptions.set(n,()=>{a(),u&&u()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in ia){const i=ia[n];if(!i)continue;const{isEnabled:s,Feature:a}=i;if(!this.features[n]&&a&&s(this.props)&&(this.features[n]=new a(this)),this.features[n]){const u=this.features[n];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ye()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,i){this.latestValues[n]=i}update(n,i){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<l1.length;s++){const a=l1[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const u="on"+a,c=n[u];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=o7(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(n),()=>i.variantChildren.delete(n)}addValue(n,i){const s=this.values.get(n);i!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,i),this.values.set(n,i),this.latestValues[n]=i.get())}removeValue(n){this.values.delete(n);const i=this.valueSubscriptions.get(n);i&&(i(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,i){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&i!==void 0&&(s=ri(i===null?void 0:i,{owner:this}),this.addValue(n,s)),s}readValue(n,i){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(qm(s)||Gm(s))?s=parseFloat(s):!i7(s)&&Yt.test(i)&&(s=$0(n,i)),this.setBaseTarget(n,nt(s)?s.get():s)),nt(s)?s.get():s}setBaseTarget(n,i){this.baseTarget[n]=i}getBaseTarget(n){var u;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const c=af(this.props,i,(u=this.presenceContext)==null?void 0:u.custom);c&&(s=c[n])}if(i&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,n);return a!==void 0&&!nt(a)?a:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,i){return this.events[n]||(this.events[n]=new Gc),this.events[n].add(i)}notify(n,...i){this.events[n]&&this.events[n].notify(...i)}scheduleRenderMicrotask(){cf.render(this.render)}}class G0 extends u7{constructor(){super(...arguments),this.KeyframeResolver=V8}sortInstanceNodePosition(n,i){return n.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(n,i){const s=n.style;return s?s[i]:void 0}removeValueFromRenderState(n,{vars:i,style:s}){delete i[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;nt(n)&&(this.childSubscription=n.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class Kn{constructor(n){this.isMounted=!1,this.node=n}update(){}}function Y0({top:e,left:n,right:i,bottom:s}){return{x:{min:n,max:i},y:{min:e,max:s}}}function c7({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function f7(e,n){if(!n)return e;const i=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Au(e){return e===void 0||e===1}function Tc({scale:e,scaleX:n,scaleY:i}){return!Au(e)||!Au(n)||!Au(i)}function hr(e){return Tc(e)||X0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function X0(e){return u1(e.x)||u1(e.y)}function u1(e){return e&&e!=="0%"}function sa(e,n,i){const s=e-i,a=n*s;return i+a}function c1(e,n,i,s,a){return a!==void 0&&(e=sa(e,a,s)),sa(e,i,s)+n}function Pc(e,n=0,i=1,s,a){e.min=c1(e.min,n,i,s,a),e.max=c1(e.max,n,i,s,a)}function Z0(e,{x:n,y:i}){Pc(e.x,n.translate,n.scale,n.originPoint),Pc(e.y,i.translate,i.scale,i.originPoint)}const f1=.999999999999,d1=1.0000000000001;function d7(e,n,i,s=!1){var d;const a=i.length;if(!a)return;n.x=n.y=1;let u,c;for(let p=0;p<a;p++){u=i[p],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(on(e.x,-u.scroll.offset.x),on(e.y,-u.scroll.offset.y)),c&&(n.x*=c.x.scale,n.y*=c.y.scale,Z0(e,c)),s&&hr(u.latestValues)&&Ho(e,u.latestValues,(d=u.layout)==null?void 0:d.layoutBox))}n.x<d1&&n.x>f1&&(n.x=1),n.y<d1&&n.y>f1&&(n.y=1)}function on(e,n){e.min+=n,e.max+=n}function h1(e,n,i,s,a=.5){const u=Me(e.min,e.max,a);Pc(e,n,i,u,s)}function p1(e,n){return typeof e=="string"?parseFloat(e)/100*(n.max-n.min):e}function Ho(e,n,i){const s=i??e;h1(e.x,p1(n.x,s.x),n.scaleX,n.scale,n.originX),h1(e.y,p1(n.y,s.y),n.scaleY,n.scale,n.originY)}function Q0(e,n){return Y0(f7(e.getBoundingClientRect(),n))}function h7(e,n,i){const s=Q0(e,i),{scroll:a}=n;return a&&(on(s.x,a.offset.x),on(s.y,a.offset.y)),s}const p7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m7=ai.length;function y7(e,n,i){let s="",a=!0;for(let c=0;c<m7;c++){const d=ai[c],p=e[d];if(p===void 0)continue;let m=!0;if(typeof p=="number")m=p===(d.startsWith("scale")?1:0);else{const y=parseFloat(p);m=d.startsWith("scale")?y===1:y===0}if(!m||i){const y=Ec(p,na[d]);if(!m){a=!1;const w=p7[d]||d;s+=`${w}(${y}) `}i&&(n[d]=y)}}const u=e.pathRotation;return u&&(a=!1,s+=`rotate(${Ec(u,na.pathRotation)}) `),s=s.trim(),i?s=i(n,a?"":s):a&&(s="none"),s}function yf(e,n,i){const{style:s,vars:a,transformOrigin:u}=e;let c=!1,d=!1;for(const p in n){const m=n[p];if(li.has(p)){c=!0;continue}else if(u0(p)){a[p]=m;continue}else{const y=Ec(m,na[p]);p.startsWith("origin")?(d=!0,u[p]=y):s[p]=y}}if(n.transform||(c||i?s.transform=y7(n,e.transform,i):s.transform&&(s.transform="none")),d){const{originX:p="50%",originY:m="50%",originZ:y=0}=u;s.transformOrigin=`${p} ${m} ${y}`}}function J0(e,{style:n,vars:i},s,a){const u=e.style;let c;for(c in n)u[c]=n[c];a==null||a.applyProjectionStyles(u,s);for(c in i)u.setProperty(c,i[c])}function m1(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Xi={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(se.test(e))e=parseFloat(e);else return e;const i=m1(e,n.target.x),s=m1(e,n.target.y);return`${i}% ${s}%`}},g7={correct:(e,{treeScale:n,projectionDelta:i})=>{const s=e,a=Yt.parse(e);if(a.length>5)return s;const u=Yt.createTransformer(e),c=typeof a[0]!="number"?1:0,d=i.x.scale*n.x,p=i.y.scale*n.y;a[0+c]/=d,a[1+c]/=p;const m=Me(d,p,.5);return typeof a[2+c]=="number"&&(a[2+c]/=m),typeof a[3+c]=="number"&&(a[3+c]/=m),u(a)}},bc={borderRadius:{...Xi,applyTo:[...uf]},borderTopLeftRadius:Xi,borderTopRightRadius:Xi,borderBottomLeftRadius:Xi,borderBottomRightRadius:Xi,boxShadow:g7};function ey(e,{layout:n,layoutId:i}){return li.has(e)||e.startsWith("origin")||(n||i!==void 0)&&(!!bc[e]||e==="opacity")}function gf(e,n,i){var c;const s=e.style,a=n==null?void 0:n.style,u={};if(!s)return u;for(const d in s)(nt(s[d])||a&&nt(a[d])||ey(d,e)||((c=i==null?void 0:i.getValue(d))==null?void 0:c.liveStyle)!==void 0)&&(u[d]=s[d]);return u}function v7(e){return window.getComputedStyle(e)}class w7 extends G0{constructor(){super(...arguments),this.type="html",this.renderInstance=J0}mount(n){ya(!!n.style),super.mount(n)}readValueFromInstance(n,i){var s;if(li.has(i))return(s=this.projection)!=null&&s.isProjecting?pc(i):Iw(n,i);{const a=v7(n),u=(u0(i)?a.getPropertyValue(i):a[i])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(n,{transformPagePoint:i}){return Q0(n,i)}build(n,i,s){yf(n,i,s.transformTemplate)}scrapeMotionValuesFromProps(n,i,s){return gf(n,i,s)}}const x7={offset:"stroke-dashoffset",array:"stroke-dasharray"},_7={offset:"strokeDashoffset",array:"strokeDasharray"};function k7(e,n,i=1,s=0,a=!0){e.pathLength=1;const u=a?x7:_7;e[u.offset]=`${-s}`,e[u.array]=`${n} ${i}`}const ty=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ny(e,{attrX:n,attrY:i,attrScale:s,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},p,m,y){if(yf(e,d,m),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:w,style:g}=e;for(const k of ty)w[k]!==void 0&&(g[k]=w[k],delete w[k]);(g.transform||w.transformOrigin)&&(g.transformOrigin=w.transformOrigin??"50% 50%",delete w.transformOrigin),g.transform&&(g.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete w.transformBox),n!==void 0&&(w.x=n),i!==void 0&&(w.y=i),s!==void 0&&(w.scale=s),a!==void 0&&k7(w,a,u,c,!1)}const ry=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),iy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function S7(e,n,i,s){J0(e,n,void 0,s);for(const a in n.attrs)e.setAttribute(ry.has(a)?a:lf(a),n.attrs[a])}function sy(e,n,i){const s=gf(e,n,i);for(const a in e)if(nt(e[a])||nt(n[a])){const u=ai.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[u]=e[a]}return s}class C7 extends G0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ye}getBaseTargetFromProps(n,i){return n[i]}readValueFromInstance(n,i){if(li.has(i)){const s=I0(i);return s&&s.default||0}if(ty.includes(i)){const a=getComputedStyle(n)[i];if(typeof a=="string"&&a)return a.trim()}return i=ry.has(i)?i:lf(i),n.getAttribute(i)}scrapeMotionValuesFromProps(n,i,s){return sy(n,i,s)}build(n,i,s){ny(n,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,i,s,a){S7(n,i,s,a)}mount(n){this.isSVGTag=iy(n.tagName),super.mount(n)}}const E7=pf.length;function oy(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?oy(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const n={};for(let i=0;i<E7;i++){const s=pf[i],a=e.props[s];(fs(a)||a===!1)&&(n[s]=a)}return n}function ay(e,n){if(!Array.isArray(n))return!1;const i=n.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(n[s]!==e[s])return!1;return!0}const T7=[...hf].reverse(),P7=hf.length;function b7(e){return n=>Promise.all(n.map(({animation:i,options:s})=>T8(e,i,s)))}function M7(e){let n=b7(e),i=y1(),s=!0,a=!1;const u=m=>(y,w)=>{var k;const g=_r(e,w,m==="exit"?(k=e.presenceContext)==null?void 0:k.custom:void 0);if(g){const{transition:x,transitionEnd:C,...T}=g;y={...y,...T,...C}}return y};function c(m){n=m(e)}function d(m){const{props:y}=e,w=oy(e.parent)||{},g=[],k=new Set;let x={},C=1/0;for(let A=0;A<P7;A++){const D=T7[A],O=i[D],z=y[D]!==void 0?y[D]:w[D],V=fs(z),F=D===m?O.isActive:null;F===!1&&(C=A);let U=z===w[D]&&z!==y[D]&&V;if(U&&(s||a)&&e.manuallyAnimateOnMount&&(U=!1),O.protectedKeys={...x},!O.isActive&&F===null||!z&&!O.prevProp||va(z)||typeof z=="boolean")continue;if(D==="exit"&&O.isActive&&F!==!0){O.prevResolvedValues&&(x={...x,...O.prevResolvedValues});continue}const q=j7(O.prevProp,z);let $=q||D===m&&O.isActive&&!U&&V||A>C&&V,B=!1;const oe=Array.isArray(z)?z:[z];let me=oe.reduce(u(D),{});F===!1&&(me={});const{prevResolvedValues:J={}}=O,ae={...J,...me},ce=H=>{$=!0,k.has(H)&&(B=!0,k.delete(H)),O.needsAnimating[H]=!0;const Z=e.getValue(H);Z&&(Z.liveStyle=!1)};for(const H in ae){const Z=me[H],Y=J[H];if(x.hasOwnProperty(H))continue;let b=!1;xc(Z)&&xc(Y)?b=!ay(Z,Y)||q:b=Z!==Y,b?Z!=null?ce(H):k.add(H):Z!==void 0&&k.has(H)?ce(H):O.protectedKeys[H]=!0}O.prevProp=z,O.prevResolvedValues=me,O.isActive&&(x={...x,...me}),(s||a)&&e.blockInitialAnimation&&($=!1);const ve=U&&q;$&&(!ve||B)&&g.push(...oe.map(H=>{const Z={type:D};if(typeof H=="string"&&(s||a)&&!ve&&e.manuallyAnimateOnMount&&e.parent){const{parent:Y}=e,b=_r(Y,H);if(Y.enteringChildren&&b){const{delayChildren:L}=b.transition||{};Z.delay=M0(Y.enteringChildren,e,L)}}return{animation:H,options:Z}}))}if(k.size){const A={};if(typeof y.initial!="boolean"){const D=_r(e,Array.isArray(y.initial)?y.initial[0]:y.initial);D&&D.transition&&(A.transition=D.transition)}k.forEach(D=>{const O=e.getBaseTarget(D),z=e.getValue(D);z&&(z.liveStyle=!0),A[D]=O??null}),g.push({animation:A})}let T=!!g.length;return s&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(T=!1),s=!1,a=!1,T?n(g):Promise.resolve()}function p(m,y){var g;if(i[m].isActive===y)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(k=>{var x;return(x=k.animationState)==null?void 0:x.setActive(m,y)}),i[m].isActive=y;const w=d(m);for(const k in i)i[k].protectedKeys={};return w}return{animateChanges:d,setActive:p,setAnimateFunction:c,getState:()=>i,reset:()=>{i=y1(),a=!0}}}function j7(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!ay(n,e):!1}function lr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y1(){return{animate:lr(!0),whileInView:lr(),whileHover:lr(),whileTap:lr(),whileDrag:lr(),whileFocus:lr(),exit:lr()}}function Mc(e,n){e.min=n.min,e.max=n.max}function Wt(e,n){Mc(e.x,n.x),Mc(e.y,n.y)}function g1(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}const ly=1e-4,L7=1-ly,N7=1+ly,uy=.01,A7=0-uy,R7=0+uy;function dt(e){return e.max-e.min}function D7(e,n,i){return Math.abs(e-n)<=i}function v1(e,n,i,s=.5){e.origin=s,e.originPoint=Me(n.min,n.max,e.origin),e.scale=dt(i)/dt(n),e.translate=Me(i.min,i.max,e.origin)-e.originPoint,(e.scale>=L7&&e.scale<=N7||isNaN(e.scale))&&(e.scale=1),(e.translate>=A7&&e.translate<=R7||isNaN(e.translate))&&(e.translate=0)}function ts(e,n,i,s){v1(e.x,n.x,i.x,s?s.originX:void 0),v1(e.y,n.y,i.y,s?s.originY:void 0)}function w1(e,n,i,s=0){const a=s?Me(i.min,i.max,s):i.min;e.min=a+n.min,e.max=e.min+dt(n)}function O7(e,n,i,s){w1(e.x,n.x,i.x,s==null?void 0:s.x),w1(e.y,n.y,i.y,s==null?void 0:s.y)}function x1(e,n,i,s=0){const a=s?Me(i.min,i.max,s):i.min;e.min=n.min-a,e.max=e.min+dt(n)}function oa(e,n,i,s){x1(e.x,n.x,i.x,s==null?void 0:s.x),x1(e.y,n.y,i.y,s==null?void 0:s.y)}function _1(e,n,i,s,a){return e-=n,e=sa(e,1/i,s),a!==void 0&&(e=sa(e,1/a,s)),e}function V7(e,n=0,i=1,s=.5,a,u=e,c=e){if(an.test(n)&&(n=parseFloat(n),n=Me(c.min,c.max,n/100)-c.min),typeof n!="number")return;let d=Me(u.min,u.max,s);e===u&&(d-=n),e.min=_1(e.min,n,i,d,a),e.max=_1(e.max,n,i,d,a)}function k1(e,n,[i,s,a],u,c){V7(e,n[i],n[s],n[a],n.scale,u,c)}const I7=["x","scaleX","originX"],$7=["y","scaleY","originY"];function S1(e,n,i,s){k1(e.x,n,I7,i?i.x:void 0,s?s.x:void 0),k1(e.y,n,$7,i?i.y:void 0,s?s.y:void 0)}function C1(e){return e.translate===0&&e.scale===1}function cy(e){return C1(e.x)&&C1(e.y)}function E1(e,n){return e.min===n.min&&e.max===n.max}function z7(e,n){return E1(e.x,n.x)&&E1(e.y,n.y)}function T1(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function fy(e,n){return T1(e.x,n.x)&&T1(e.y,n.y)}function P1(e){return dt(e.x)/dt(e.y)}function b1(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}function sn(e){return[e("x"),e("y")]}function F7(e,n,i){let s="";const a=e.x.translate/n.x,u=e.y.translate/n.y,c=(i==null?void 0:i.z)||0;if((a||u||c)&&(s=`translate3d(${a}px, ${u}px, ${c}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),i){const{transformPerspective:m,rotate:y,pathRotation:w,rotateX:g,rotateY:k,skewX:x,skewY:C}=i;m&&(s=`perspective(${m}px) ${s}`),y&&(s+=`rotate(${y}deg) `),w&&(s+=`rotate(${w}deg) `),g&&(s+=`rotateX(${g}deg) `),k&&(s+=`rotateY(${k}deg) `),x&&(s+=`skewX(${x}deg) `),C&&(s+=`skewY(${C}deg) `)}const d=e.x.scale*n.x,p=e.y.scale*n.y;return(d!==1||p!==1)&&(s+=`scale(${d}, ${p})`),s||"none"}const B7=uf.length,M1=e=>typeof e=="string"?parseFloat(e):e,j1=e=>typeof e=="number"||se.test(e);function H7(e,n,i,s,a,u){a?(e.opacity=Me(0,i.opacity??1,U7(s)),e.opacityExit=Me(n.opacity??1,0,W7(s))):u&&(e.opacity=Me(n.opacity??1,i.opacity??1,s));for(let c=0;c<B7;c++){const d=uf[c];let p=L1(n,d),m=L1(i,d);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||j1(p)===j1(m)?(e[d]=Math.max(Me(M1(p),M1(m),s),0),(an.test(m)||an.test(p))&&(e[d]+="%")):e[d]=m}(n.rotate||i.rotate)&&(e.rotate=Me(n.rotate||0,i.rotate||0,s))}function L1(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const U7=dy(0,.5,r0),W7=dy(.5,.95,Vt);function dy(e,n,i){return s=>s<e?0:s>n?1:i(us(e,n,s))}function q7(e,n,i){const s=nt(e)?e:ri(e);return s.start(of("",s,n,i)),s.animation}function ds(e,n,i,s={passive:!0}){return e.addEventListener(n,i,s),()=>e.removeEventListener(n,i,s)}const K7=(e,n)=>e.depth-n.depth;class G7{constructor(){this.children=[],this.isDirty=!1}add(n){Kc(this.children,n),this.isDirty=!0}remove(n){Zo(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(K7),this.isDirty=!1,this.children.forEach(n)}}function Y7(e,n){const i=ft.now(),s=({timestamp:a})=>{const u=a-i;u>=n&&(Wn(s),e(u-n))};return je.setup(s,!0),()=>Wn(s)}function Uo(e){return nt(e)?e.get():e}class X7{constructor(){this.members=[]}add(n){Kc(this.members,n);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===n||s===this.lead||s===this.prevLead)continue;const a=s.instance;(!a||a.isConnected===!1)&&!s.snapshot&&(Zo(this.members,s),s.unmount())}n.scheduleRender()}remove(n){if(Zo(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(n){var i;for(let s=this.members.indexOf(n)-1;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1&&((i=a.instance)==null?void 0:i.isConnected)!==!1)return this.promote(a),!0}return!1}promote(n,i){var a;const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.updateSnapshot(),n.scheduleRender();const{layoutDependency:u}=s.options,{layoutDependency:c}=n.options;(u===void 0||u!==c)&&(n.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),(a=n.root)!=null&&a.isUpdating&&(n.isLayoutDirty=!0)),n.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{var i,s,a,u,c;(s=(i=n.options).onExitComplete)==null||s.call(i),(c=(a=n.resumingFrom)==null?void 0:(u=a.options).onExitComplete)==null||c.call(u)})}scheduleRender(){this.members.forEach(n=>n.instance&&n.scheduleRender(!1))}removeLeadSnapshot(){var n;(n=this.lead)!=null&&n.snapshot&&(this.lead.snapshot=void 0)}}const Wo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ru=["","X","Y","Z"],Z7=1e3;let Q7=0;function Du(e,n,i,s){const{latestValues:a}=n;a[e]&&(i[e]=a[e],n.setStaticValue(e,0),s&&(s[e]=0))}function hy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const i=R0(n);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:a,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",je,!(a||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&hy(s)}function py({attachResizeListener:e,defaultParent:n,measureScroll:i,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},d=n==null?void 0:n()){this.id=Q7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(tx),this.nodes.forEach(ax),this.nodes.forEach(lx),this.nodes.forEach(nx)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new G7)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Gc),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const p=this.eventHandlers.get(c);p&&p.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=df(c)&&!n7(c),this.instance=c;const{layoutId:d,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||d)&&(this.isLayoutDirty=!0),e){let y,w=0;const g=()=>this.root.updateBlockedByResize=!1;je.read(()=>{w=window.innerWidth}),e(c,()=>{const k=window.innerWidth;k!==w&&(w=k,this.root.updateBlockedByResize=!0,y&&y(),y=Y7(g,250),Wo.hasAnimatedSinceResize&&(Wo.hasAnimatedSinceResize=!1,this.nodes.forEach(R1)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeLayoutChanged:g,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||m.getDefaultTransition()||hx,{onLayoutAnimationStart:C,onLayoutAnimationComplete:T}=m.getProps(),A=!this.targetLayout||!fy(this.targetLayout,k),D=!w&&g;if(this.options.layoutRoot||this.resumeFrom||D||w&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...sf(x,"layout"),onPlay:C,onComplete:T};(m.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(y,D,O.path)}else w||R1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ux),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const w=this.path[y];w.shouldResetTransform=!0,(typeof w.latestValues.x=="string"||typeof w.latestValues.y=="string")&&(w.isLayoutDirty=!0),w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:d,layout:p}=this.options;if(d===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const p=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),p&&this.nodes.forEach(ix),this.nodes.forEach(N1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(A1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sx),this.nodes.forEach(ox),this.nodes.forEach(J7),this.nodes.forEach(ex)):this.nodes.forEach(A1),this.clearAllSnapshots();const d=ft.now();tt.delta=un(0,1e3/60,d-tt.timestamp),tt.timestamp=d,tt.isProcessing=!0,Tu.update.process(tt),Tu.preRender.process(tt),Tu.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rx),this.sharedNodes.forEach(cx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!dt(this.snapshot.measuredBox.x)&&!dt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ye()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const p=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:p,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!cy(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;c&&this.instance&&(d||hr(this.latestValues)||y)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let p=this.removeElementScroll(d);return c&&(p=this.removeTransform(p)),px(p),{animationId:this.root.animationId,measuredBox:d,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:c}=this.options;if(!c)return Ye();const d=c.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(mx))){const{scroll:y}=this.root;y&&(on(d.x,y.offset.x),on(d.y,y.offset.y))}return d}removeElementScroll(c){var p;const d=Ye();if(Wt(d,c),(p=this.scroll)!=null&&p.wasRoot)return d;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:w,options:g}=y;y!==this.root&&w&&g.layoutScroll&&(w.wasRoot&&Wt(d,c),on(d.x,w.offset.x),on(d.y,w.offset.y))}return d}applyTransform(c,d=!1,p){var y,w;const m=p||Ye();Wt(m,c);for(let g=0;g<this.path.length;g++){const k=this.path[g];!d&&k.options.layoutScroll&&k.scroll&&k!==k.root&&(on(m.x,-k.scroll.offset.x),on(m.y,-k.scroll.offset.y)),hr(k.latestValues)&&Ho(m,k.latestValues,(y=k.layout)==null?void 0:y.layoutBox)}return hr(this.latestValues)&&Ho(m,this.latestValues,(w=this.layout)==null?void 0:w.layoutBox),m}removeTransform(c){var p;const d=Ye();Wt(d,c);for(let m=0;m<this.path.length;m++){const y=this.path[m];if(!hr(y.latestValues))continue;let w;y.instance&&(Tc(y.latestValues)&&y.updateSnapshot(),w=Ye(),Wt(w,y.measurePageBox())),S1(d,y.latestValues,(p=y.snapshot)==null?void 0:p.layoutBox,w)}return hr(this.latestValues)&&S1(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var k;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!this.layout||!(y||w))return;this.resolvedRelativeTargetAt=tt.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ye(),this.targetWithTransforms=Ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),O7(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Wt(this.target,this.layout.layoutBox),Z0(this.target,this.targetDelta)):Wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tc(this.parent.latestValues)||X0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,p){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),oa(this.relativeTargetOrigin,d,p,this.options.layoutAnchor||void 0),Wt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(p=!1),p)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;Wt(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,g=this.treeScale.y;d7(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Ye());const{target:k}=c;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(g1(this.prevProjectionDelta.x,this.projectionDelta.x),g1(this.prevProjectionDelta.y,this.projectionDelta.y)),ts(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==g||!b1(this.projectionDelta.x,this.prevProjectionDelta.x)||!b1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),c){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qr(),this.projectionDelta=Qr(),this.projectionDeltaWithTransform=Qr()}setAnimationOrigin(c,d=!1,p){const m=this.snapshot,y=m?m.latestValues:{},w={...this.latestValues},g=Qr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const k=Ye(),x=m?m.source:void 0,C=this.layout?this.layout.source:void 0,T=x!==C,A=this.getStack(),D=!A||A.members.length<=1,O=!!(T&&!D&&this.options.crossfade===!0&&!this.path.some(dx));this.animationProgress=0;let z;const V=p==null?void 0:p.interpolateProjection(c);this.mixTargetDelta=F=>{const U=F/1e3,q=V==null?void 0:V(U);q?(g.x.translate=q.x,g.x.scale=Me(c.x.scale,1,U),g.x.origin=c.x.origin,g.x.originPoint=c.x.originPoint,g.y.translate=q.y,g.y.scale=Me(c.y.scale,1,U),g.y.origin=c.y.origin,g.y.originPoint=c.y.originPoint):(D1(g.x,c.x,U),D1(g.y,c.y,U)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oa(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),fx(this.relativeTarget,this.relativeTargetOrigin,k,U),z&&z7(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Ye()),Wt(z,this.relativeTarget)),T&&(this.animationValues=w,H7(w,y,this.latestValues,U,O,D)),q&&q.rotate!==void 0&&(this.animationValues||(this.animationValues=w),this.animationValues.pathRotation=q.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var d,p,m;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(m=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||m.stop(),this.pendingAnimation&&(Wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=je.update(()=>{Wo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ri(0)),this.motionValue.jump(0,!1),this.currentAnimation=q7(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),c.onUpdate&&c.onUpdate(y)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:p,layout:m,latestValues:y}=c;if(!(!d||!p||!m)){if(this!==c&&this.layout&&m&&my(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||Ye();const w=dt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+w;const g=dt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+g}Wt(d,p),Ho(d,y),ts(this.projectionDeltaWithTransform,this.layoutCorrected,d,y)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new X7),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var d;const{layoutId:c}=this.options;return c?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:c}=this.options;return c?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(d=!0),!d)return;const m={};p.z&&Du("z",c,m,this.animationValues);for(let y=0;y<Ru.length;y++)Du(`rotate${Ru[y]}`,c,m,this.animationValues),Du(`skew${Ru[y]}`,c,m,this.animationValues);c.render();for(const y in m)c.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Uo(d==null?void 0:d.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Uo(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!hr(this.latestValues)&&(c.transform=p?p({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=m.animationValues||m.latestValues;this.applyTransformsToTarget();let w=F7(this.projectionDeltaWithTransform,this.treeScale,y);p&&(w=p(y,w)),c.transform=w;const{x:g,y:k}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${k.origin*100}% 0`,m.animationValues?c.opacity=m===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=m===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const x in bc){if(y[x]===void 0)continue;const{correct:C,applyTo:T,isCSSVariable:A}=bc[x],D=w==="none"?y[x]:C(y[x],m);if(T){const O=T.length;for(let z=0;z<O;z++)c[T[z]]=D}else A?this.options.visualElement.renderState.vars[x]=D:c[x]=D}this.options.layoutId&&(c.pointerEvents=m===this?Uo(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(N1),this.root.sharedNodes.clear()}}}function J7(e){e.updateLayout()}function ex(e){var i;const n=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=e.layout,{animationType:u}=e.options,c=n.source!==e.layout.source;if(u==="size")sn(w=>{const g=c?n.measuredBox[w]:n.layoutBox[w],k=dt(g);g.min=s[w].min,g.max=g.min+k});else if(u==="x"||u==="y"){const w=u==="x"?"y":"x";Mc(c?n.measuredBox[w]:n.layoutBox[w],s[w])}else my(u,n.layoutBox,s)&&sn(w=>{const g=c?n.measuredBox[w]:n.layoutBox[w],k=dt(s[w]);g.max=g.min+k,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[w].max=e.relativeTarget[w].min+k)});const d=Qr();ts(d,s,n.layoutBox);const p=Qr();c?ts(p,e.applyTransform(a,!0),n.measuredBox):ts(p,s,n.layoutBox);const m=!cy(d);let y=!1;if(!e.resumeFrom){const w=e.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:g,layout:k}=w;if(g&&k){const x=e.options.layoutAnchor||void 0,C=Ye();oa(C,n.layoutBox,g.layoutBox,x);const T=Ye();oa(T,s,k.layoutBox,x),fy(C,T)||(y=!0),w.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=C,e.relativeParent=w)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:p,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:y})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function tx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rx(e){e.clearSnapshot()}function N1(e){e.clearMeasurements()}function ix(e){e.isLayoutDirty=!0,e.updateLayout()}function A1(e){e.isLayoutDirty=!1}function sx(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ox(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function R1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ax(e){e.resolveTargetDelta()}function lx(e){e.calcProjection()}function ux(e){e.resetSkewAndRotation()}function cx(e){e.removeLeadSnapshot()}function D1(e,n,i){e.translate=Me(n.translate,0,i),e.scale=Me(n.scale,1,i),e.origin=n.origin,e.originPoint=n.originPoint}function O1(e,n,i,s){e.min=Me(n.min,i.min,s),e.max=Me(n.max,i.max,s)}function fx(e,n,i,s){O1(e.x,n.x,i.x,s),O1(e.y,n.y,i.y,s)}function dx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hx={duration:.45,ease:[.4,0,.1,1]},V1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),I1=V1("applewebkit/")&&!V1("chrome/")?Math.round:Vt;function $1(e){e.min=I1(e.min),e.max=I1(e.max)}function px(e){$1(e.x),$1(e.y)}function my(e,n,i){return e==="position"||e==="preserve-aspect"&&!D7(P1(n),P1(i),.2)}function mx(e){var n;return e!==e.root&&((n=e.scroll)==null?void 0:n.wasRoot)}const yx=py({attachResizeListener:(e,n)=>ds(e,"resize",n),measureScroll:()=>{var e,n;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ou={current:void 0},yy=py({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ou.current){const e=new yx({});e.mount(window),e.setOptions({layoutScroll:!0}),Ou.current=e}return Ou.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gy=M.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function gx(e=!0){const n=M.useContext(qc);if(n===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:a}=n,u=M.useId();M.useEffect(()=>{if(e)return a(u)},[e]);const c=M.useCallback(()=>e&&s&&s(u),[u,s,e]);return!i&&s?[!1,c]:[!0]}const vy=M.createContext({strict:!1}),z1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let F1=!1;function vx(){if(F1)return;const e={};for(const n in z1)e[n]={isEnabled:i=>z1[n].some(s=>!!i[s])};K0(e),F1=!0}function wy(){return vx(),l7()}function wx(e){const n=wy();for(const i in e)n[i]={...n[i],...e[i]};K0(n)}const xa=M.createContext({});function xx(e,n){if(wa(e)){const{initial:i,animate:s}=e;return{initial:i===!1||fs(i)?i:void 0,animate:fs(s)?s:void 0}}return e.inherit!==!1?n:{}}function _x(e){const{initial:n,animate:i}=xx(e,M.useContext(xa));return M.useMemo(()=>({initial:n,animate:i}),[B1(n),B1(i)])}function B1(e){return Array.isArray(e)?e.join(" "):e}const vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xy(e,n,i){for(const s in n)!nt(n[s])&&!ey(s,i)&&(e[s]=n[s])}function kx({transformTemplate:e},n){return M.useMemo(()=>{const i=vf();return yf(i,n,e),Object.assign({},i.vars,i.style)},[n])}function Sx(e,n){const i=e.style||{},s={};return xy(s,i,e),Object.assign(s,kx(e,n)),s}function Cx(e,n){const i={},s=Sx(e,n);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i}const _y=()=>({...vf(),attrs:{}});function Ex(e,n,i,s){const a=M.useMemo(()=>{const u=_y();return ny(u,n,iy(s),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};xy(u,e.style,e),a.style={...u,...a.style}}return a}const Tx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function aa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Tx.has(e)}function Px(e,n){return e.startsWith("on")?!aa(e):(n==null?void 0:n(e))??!aa(e)}function bx(e,n,i,s){const a={};for(const u in e)u==="values"&&typeof e.values=="object"||nt(e[u])||(Px(u,s)||i===!0&&aa(u)||!n&&!aa(u)||e.draggable&&u.startsWith("onDrag"))&&(a[u]=e[u]);return a}const Mx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wf(e){return typeof e!="string"||e.includes("-")?!1:!!(Mx.indexOf(e)>-1||/[A-Z]/u.test(e))}function jx(e,n,i,{latestValues:s},a,u=!1,c,d){const m=(c??wf(e)?Ex:Cx)(n,s,a,e),y=bx(n,typeof e=="string",u,d),w=e!==M.Fragment?{...y,...m,ref:i}:{},{children:g}=n,k=M.useMemo(()=>nt(g)?g.get():g,[g]);return M.createElement(e,{...w,children:k})}function Lx({scrapeMotionValuesFromProps:e,createRenderState:n},i,s,a){return{latestValues:Nx(i,s,a,e),renderState:n()}}function Nx(e,n,i,s){const a={},u=s(e,{});for(const g in u)a[g]=Uo(u[g]);let{initial:c,animate:d}=e;const p=wa(e),m=W0(e);n&&m&&!p&&e.inherit!==!1&&(c===void 0&&(c=n.initial),d===void 0&&(d=n.animate));let y=i?i.initial===!1:!1;y=y||c===!1;const w=y?d:c;if(w&&typeof w!="boolean"&&!va(w)){const g=Array.isArray(w)?w:[w];for(let k=0;k<g.length;k++){const x=af(e,g[k]);if(x){const{transitionEnd:C,transition:T,...A}=x;for(const D in A){let O=A[D];if(Array.isArray(O)){const z=y?O.length-1:0;O=O[z]}O!==null&&(a[D]=O)}for(const D in C)a[D]=C[D]}}}return a}const ky=e=>(n,i)=>{const s=M.useContext(xa),a=M.useContext(qc),u=()=>Lx(e,n,s,a);return i?u():L6(u)},Ax=ky({scrapeMotionValuesFromProps:gf,createRenderState:vf}),Rx=ky({scrapeMotionValuesFromProps:sy,createRenderState:_y}),Dx=Symbol.for("motionComponentSymbol");function Ox(e,n,i){const s=M.useRef(i);M.useInsertionEffect(()=>{s.current=i});const a=M.useRef(null);return M.useCallback(u=>{var d;u&&((d=e.onMount)==null||d.call(e,u)),n&&(u?n.mount(u):n.unmount());const c=s.current;if(typeof c=="function")if(u){const p=c(u);typeof p=="function"&&(a.current=p)}else a.current?(a.current(),a.current=null):c(u);else c&&(c.current=u)},[n])}const Sy=M.createContext({});function Gr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vx(e,n,i,s,a,u){var O,z;const{visualElement:c}=M.useContext(xa),d=M.useContext(vy),p=M.useContext(qc),m=M.useContext(gy),y=m.reducedMotion,w=m.skipAnimations,g=M.useRef(null),k=M.useRef(!1);s=s||d.renderer,!g.current&&s&&(g.current=s(e,{visualState:n,parent:c,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y,skipAnimations:w,isSVG:u}),k.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const x=g.current,C=M.useContext(Sy);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&Ix(g.current,i,a,C);const T=M.useRef(!1);M.useInsertionEffect(()=>{x&&T.current&&x.update(i,p)});const A=i[A0],D=M.useRef(!!A&&typeof window<"u"&&!((O=window.MotionHandoffIsComplete)!=null&&O.call(window,A))&&((z=window.MotionHasOptimisedAnimation)==null?void 0:z.call(window,A)));return A6(()=>{k.current=!0,x&&(T.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),D.current&&x.animationState&&x.animationState.animateChanges())}),M.useEffect(()=>{x&&(!D.current&&x.animationState&&x.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var V;(V=window.MotionHandoffMarkAsComplete)==null||V.call(window,A)}),D.current=!1),x.enteringChildren=void 0)}),x}function Ix(e,n,i,s){const{layoutId:a,layout:u,drag:c,dragConstraints:d,layoutScroll:p,layoutRoot:m,layoutAnchor:y,layoutCrossfade:w}=n;e.projection=new i(e.latestValues,n["data-framer-portal-id"]?void 0:Cy(e.parent)),e.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||d&&Gr(d),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:w,layoutScroll:p,layoutRoot:m,layoutAnchor:y})}function Cy(e){if(e)return e.options.allowProjection!==!1?e.projection:Cy(e.parent)}function Vu(e,{forwardMotionProps:n=!1,type:i}={},s,a){s&&wx(s);const u=i?i==="svg":wf(e),c=u?Rx:Ax;function d(m,y){let w;const g={...M.useContext(gy),...m,layoutId:$x(m)},{isStatic:k,isValidProp:x}=g,C=_x(m),T=c(m,k);if(!k&&typeof window<"u"){zx();const A=Fx(g);w=A.MeasureLayout,C.visualElement=Vx(e,T,g,a,A.ProjectionNode,u)}return _.jsxs(xa.Provider,{value:C,children:[w&&C.visualElement?_.jsx(w,{visualElement:C.visualElement,...g}):null,jx(e,m,Ox(T,C.visualElement,y),T,k,n,u,x)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=M.forwardRef(d);return p[Dx]=e,p}function $x({layoutId:e}){const n=M.useContext(Wm).id;return n&&e!==void 0?n+"-"+e:e}function zx(e,n){M.useContext(vy).strict}function Fx(e){const n=wy(),{drag:i,layout:s}=n;if(!i&&!s)return{};const a={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(e)||s!=null&&s.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function Bx(e,n){if(typeof Proxy>"u")return Vu;const i=new Map,s=(u,c)=>Vu(u,c,e,n),a=(u,c)=>s(u,c);return new Proxy(a,{get:(u,c)=>c==="create"?s:(i.has(c)||i.set(c,Vu(c,void 0,e,n)),i.get(c))})}const Hx=(e,n)=>n.isSVG??wf(e)?new C7(n):new w7(n,{allowProjection:e!==M.Fragment});class Ux extends Kn{constructor(n){super(n),n.animationState||(n.animationState=M7(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();va(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:i}=this.node.prevProps||{};n!==i&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let Wx=0;class qx extends Kn{constructor(){super(...arguments),this.id=Wx++,this.isExitComplete=!1}update(){var u;if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;if(n&&s===!1){if(this.isExitComplete){const{initial:c,custom:d}=this.node.getProps();if(typeof c=="string"||typeof c=="object"&&c!==null&&!Array.isArray(c)){const p=_r(this.node,c,d);if(p){const{transition:m,transitionEnd:y,...w}=p;for(const g in w)(u=this.node.getValue(g))==null||u.jump(w[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!n);i&&!n&&a.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:n,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const Kx={animation:{Feature:Ux},exit:{Feature:qx}};function vs(e){return{point:{x:e.pageX,y:e.pageY}}}const Gx=e=>n=>ff(n)&&e(n,vs(n));function ns(e,n,i,s){return ds(e,n,Gx(i),s)}const Ey=({current:e})=>e?e.ownerDocument.defaultView:null,H1=(e,n)=>Math.abs(e-n);function Yx(e,n){const i=H1(e.x,n.x),s=H1(e.y,n.y);return Math.sqrt(i**2+s**2)}const U1=new Set(["auto","scroll"]);class Ty{constructor(n,i,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ro(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Iu(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,T=Yx(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!T)return;const{point:A}=x,{timestamp:D}=tt;this.history.push({...A,timestamp:D});const{onStart:O,onMove:z}=this.handlers;C||(O&&O(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,x)},this.handlePointerMove=(x,C)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=C,this.lastMoveEventInfo=Ro(C,this.transformPagePoint),je.update(this.updatePoint,!0)},this.handlePointerUp=(x,C)=>{this.end();const{onEnd:T,onSessionEnd:A,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Iu(x.type==="pointercancel"?this.lastMoveEventInfo:Ro(C,this.transformPagePoint),this.history);this.startEvent&&T&&T(x,O),A&&A(x,O)},!ff(n))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=a||window;const p=vs(n),m=Ro(p,this.transformPagePoint),{point:y}=m,{timestamp:w}=tt;this.history=[{...y,timestamp:w}];const{onSessionStart:g}=i;g&&g(n,Iu(m,this.history));const k={passive:!0,capture:!0};this.removeListeners=ms(ns(this.contextWindow,"pointermove",this.handlePointerMove,k),ns(this.contextWindow,"pointerup",this.handlePointerUp,k),ns(this.contextWindow,"pointercancel",this.handlePointerUp,k)),d&&this.startScrollTracking(d)}startScrollTracking(n){let i=n.parentElement;for(;i;){const s=getComputedStyle(i);(U1.has(s.overflowX)||U1.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(n){const i=this.scrollPositions.get(n);if(!i)return;const s=n===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},u={x:a.x-i.x,y:a.y-i.y};u.x===0&&u.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(n,a),je.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Wn(this.updatePoint)}}function Ro(e,n){return n?{point:n(e.point)}:e}function W1(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Iu({point:e},n){return{point:e,delta:W1(e,Py(n)),offset:W1(e,Xx(n)),velocity:Zx(n,.1)}}function Xx(e){return e[0]}function Py(e){return e[e.length-1]}function Zx(e,n){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null;const a=Py(e);for(;i>=0&&(s=e[i],!(a.timestamp-s.timestamp>bt(n)));)i--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&a.timestamp-s.timestamp>bt(n)*2&&(s=e[1]);const u=Ot(a.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const c={x:(a.x-s.x)/u,y:(a.y-s.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Qx(e,{min:n,max:i},s){return n!==void 0&&e<n?e=s?Me(n,e,s.min):Math.max(e,n):i!==void 0&&e>i&&(e=s?Me(i,e,s.max):Math.min(e,i)),e}function q1(e,n,i){return{min:n!==void 0?e.min+n:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function Jx(e,{top:n,left:i,bottom:s,right:a}){return{x:q1(e.x,i,a),y:q1(e.y,n,s)}}function K1(e,n){let i=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function e_(e,n){return{x:K1(e.x,n.x),y:K1(e.y,n.y)}}function t_(e,n){let i=.5;const s=dt(e),a=dt(n);return a>s?i=us(n.min,n.max-s,e.min):s>a&&(i=us(e.min,e.max-a,n.min)),un(0,1,i)}function n_(e,n){const i={};return n.min!==void 0&&(i.min=n.min-e.min),n.max!==void 0&&(i.max=n.max-e.min),i}const jc=.35;function r_(e=jc){return e===!1?e=0:e===!0&&(e=jc),{x:G1(e,"left","right"),y:G1(e,"top","bottom")}}function G1(e,n,i){return{min:Y1(e,n),max:Y1(e,i)}}function Y1(e,n){return typeof e=="number"?e:e[n]||0}const i_=new WeakMap;class s_{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ye(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const u=w=>{i&&this.snapToCursor(vs(w).point),this.stopAnimation()},c=(w,g)=>{const{drag:k,dragPropagation:x,onDragStart:C}=this.getProps();if(k&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$8(k),!this.openDragLock))return;this.latestPointerEvent=w,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sn(A=>{let D=this.getAxisMotionValue(A).get()||0;if(an.test(D)){const{projection:O}=this.visualElement;if(O&&O.layout){const z=O.layout.layoutBox[A];z&&(D=dt(z)*(parseFloat(D)/100))}}this.originPoint[A]=D}),C&&je.update(()=>C(w,g),!1,!0),_c(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},d=(w,g)=>{this.latestPointerEvent=w,this.latestPanInfo=g;const{dragPropagation:k,dragDirectionLock:x,onDirectionLock:C,onDrag:T}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:A}=g;if(x&&this.currentDirection===null){this.currentDirection=a_(A),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",g.point,A),this.updateAxis("y",g.point,A),this.visualElement.render(),T&&je.update(()=>T(w,g),!1,!0)},p=(w,g)=>{this.latestPointerEvent=w,this.latestPanInfo=g,this.stop(w,g),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:w}=this.getProps();(w||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Ty(n,{onSessionStart:u,onStart:c,onMove:d,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:Ey(this.visualElement),element:this.visualElement.current})}stop(n,i){const s=n||this.latestPointerEvent,a=i||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!a||!s)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&je.postRender(()=>d(s,a))}cancel(){this.isDragging=!1;const{projection:n,animationState:i}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,i,s){const{drag:a}=this.getProps();if(!s||!Do(n,a,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(c=Qx(c,this.constraints[n],this.elastic[n])),u.set(c)}resolveConstraints(){var u;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,a=this.constraints;n&&Gr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Jx(s.layoutBox,n):this.constraints=!1,this.elastic=r_(i),a!==this.constraints&&!Gr(n)&&s&&this.constraints&&!this.hasMutatedConstraints&&sn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=n_(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:i}=this.getProps();if(!n||!Gr(n))return!1;const s=n.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const u=h7(s,a.root,this.visualElement.getTransformPagePoint());let c=e_(a.layout.layoutBox,u);if(i){const d=i(c7(c));this.hasMutatedConstraints=!!d,d&&(c=Y0(d))}return c}startAnimation(n){const{drag:i,dragMomentum:s,dragElastic:a,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),p=this.constraints||{},m=sn(y=>{if(!Do(y,i,this.currentDirection))return;let w=p&&p[y]||{};(c===!0||c===y)&&(w={min:0,max:0});const g=a?200:1e6,k=a?40:1e7,x={type:"inertia",velocity:s?n[y]:0,bounceStiffness:g,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...u,...w};return this.startAxisValueAnimation(y,x)});return Promise.all(m).then(d)}startAxisValueAnimation(n,i){const s=this.getAxisMotionValue(n);return _c(this.visualElement,n),s.start(of(n,s,0,i,this.visualElement,!1))}stopAnimation(){sn(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const i=`_drag${n.toUpperCase()}`,a=this.visualElement.getProps()[i];return a||this.visualElement.getValue(n,this.visualElement.latestValues[n]??0)}snapToCursor(n){sn(i=>{const{drag:s}=this.getProps();if(!Do(i,s,this.currentDirection))return;const{projection:a}=this.visualElement,u=this.getAxisMotionValue(i);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[i],p=u.get()||0;u.set(n[i]-Me(c,d,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!Gr(i)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};sn(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const p=d.get();a[c]=t_({min:p,max:p},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),sn(c=>{if(!Do(c,n,null))return;const d=this.getAxisMotionValue(c),{min:p,max:m}=this.constraints[c];d.set(Me(p,m,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;i_.set(this.visualElement,this);const n=this.visualElement.current,i=ns(n,"pointerdown",m=>{const{drag:y,dragListener:w=!0}=this.getProps(),g=m.target,k=g!==n&&W8(g);y&&w&&!k&&this.start(m)});let s;const a=()=>{const{dragConstraints:m}=this.getProps();Gr(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),s||(s=o_(n,m.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,c=u.addEventListener("measure",a);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),je.read(a);const d=ds(window,"resize",()=>this.scalePositionWithinConstraints()),p=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:y})=>{this.isDragging&&y&&(sn(w=>{const g=this.getAxisMotionValue(w);g&&(this.originPoint[w]+=m[w].translate,g.set(g.get()+m[w].translate))}),this.visualElement.render())}));return()=>{d(),i(),c(),p&&p(),s&&s()}}getProps(){const n=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:u=!1,dragElastic:c=jc,dragMomentum:d=!0}=n;return{...n,drag:i,dragDirectionLock:s,dragPropagation:a,dragConstraints:u,dragElastic:c,dragMomentum:d}}}function X1(e){let n=!0;return()=>{if(n){n=!1;return}e()}}function o_(e,n,i){const s=s1(e,X1(i)),a=s1(n,X1(i));return()=>{s(),a()}}function Do(e,n,i){return(n===!0||n===e)&&(i===null||i===e)}function a_(e,n=10){let i=null;return Math.abs(e.y)>n?i="y":Math.abs(e.x)>n&&(i="x"),i}class l_ extends Kn{constructor(n){super(n),this.removeGroupControls=Vt,this.removeListeners=Vt,this.controls=new s_(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vt}update(){const{dragControls:n}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};n!==i&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const $u=e=>(n,i)=>{e&&je.update(()=>e(n,i),!1,!0)};class u_ extends Kn{constructor(){super(...arguments),this.removePointerDownListener=Vt}onPointerDown(n){this.session=new Ty(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ey(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:i,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:$u(n),onStart:$u(i),onMove:$u(s),onEnd:(u,c)=>{delete this.session,a&&je.postRender(()=>a(u,c))}}}mount(){this.removePointerDownListener=ns(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let zu=!1;class c_ extends M.Component{componentDidMount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:s,layoutId:a}=this.props,{projection:u}=n;u&&(i.group&&i.group.add(u),s&&s.register&&a&&s.register(u),zu&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wo.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:i,visualElement:s,drag:a,isPresent:u}=this.props,{projection:c}=s;return c&&(c.isPresent=u,n.layoutDependency!==i&&c.setOptions({...c.options,layoutDependency:i}),zu=!0,a||n.layoutDependency!==i||i===void 0||n.isPresent!==u?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||je.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:n,layoutAnchor:i}=this.props,{projection:s}=n;s&&(s.options.layoutAnchor=i,s.root.didUpdate(),cf.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:a}=n;zu=!0,a&&(a.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function by(e){const[n,i]=gx(),s=M.useContext(Wm);return _.jsx(c_,{...e,layoutGroup:s,switchLayoutGroup:M.useContext(Sy),isPresent:n,safeToRemove:i})}const f_={pan:{Feature:u_},drag:{Feature:l_,ProjectionNode:yy,MeasureLayout:by}};function Z1(e,n,i){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",i==="Start");const a="onHover"+i,u=s[a];u&&je.postRender(()=>u(n,vs(n)))}class d_ extends Kn{mount(){const{current:n}=this.node;n&&(this.unmount=F8(n,(i,s)=>(Z1(this.node,s,"Start"),a=>Z1(this.node,a,"End"))))}unmount(){}}class h_ extends Kn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ms(ds(this.node.current,"focus",()=>this.onFocus()),ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Q1(e,n,i){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",i==="Start");const a="onTap"+(i==="End"?"":i),u=s[a];u&&je.postRender(()=>u(n,vs(n)))}class p_ extends Kn{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:i,propagate:s}=this.node.props;this.unmount=K8(n,(a,u)=>(Q1(this.node,u,"Start"),(c,{success:d})=>Q1(this.node,c,d?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const Lc=new WeakMap,Fu=new WeakMap,m_=e=>{const n=Lc.get(e.target);n&&n(e)},y_=e=>{e.forEach(m_)};function g_({root:e,...n}){const i=e||document;Fu.has(i)||Fu.set(i,{});const s=Fu.get(i),a=JSON.stringify(n);return s[a]||(s[a]=new IntersectionObserver(y_,{root:e,...n})),s[a]}function v_(e,n,i){const s=g_(n);return Lc.set(e,i),s.observe(e),()=>{Lc.delete(e),s.unobserve(e)}}const w_={some:0,all:1};class x_ extends Kn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var p;(p=this.stopObserver)==null||p.call(this);const{viewport:n={}}=this.node.getProps(),{root:i,margin:s,amount:a="some",once:u}=n,c={root:i?i.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:w_[a]},d=m=>{const{isIntersecting:y}=m;if(this.isInView===y||(this.isInView=y,u&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:w,onViewportLeave:g}=this.node.getProps(),k=y?w:g;k&&k(m)};this.stopObserver=v_(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:i}=this.node;["amount","margin","root"].some(__(n,i))&&this.startObserver()}unmount(){var n;(n=this.stopObserver)==null||n.call(this),this.hasEnteredView=!1,this.isInView=!1}}function __({viewport:e={}},{viewport:n={}}={}){return i=>e[i]!==n[i]}const k_={inView:{Feature:x_},tap:{Feature:p_},focus:{Feature:h_},hover:{Feature:d_}},S_={layout:{ProjectionNode:yy,MeasureLayout:by}},C_={...Kx,...k_,...f_,...S_},E_=Bx(C_,Hx);function T_(){!mf.current&&q0();const[e]=M.useState(ra.current);return e}const P_=E_,b_="_band_2w9pm_7",M_={band:b_},j_="_button_vhkdy_4",L_="_md_vhkdy_24",N_="_sm_vhkdy_30",A_="_primary_vhkdy_38",R_="_ghost_vhkdy_47",D_="_outline_vhkdy_56",O_="_toolbar_vhkdy_65",V_="_icon_vhkdy_84",Oo={button:j_,md:L_,sm:N_,primary:A_,ghost:R_,outline:D_,toolbar:O_,icon:V_},I_="_pill_e3ygd_1",$_="_interactive_e3ygd_15",z_="_active_e3ygd_23",Zi={pill:I_,interactive:$_,active:z_},F_="_wrap_1ao1y_1",B_="_icon_1ao1y_16",H_="_input_1ao1y_25",Bu={wrap:F_,icon:B_,input:H_},U_="_root_1rn7y_1",W_="_list_1rn7y_8",q_="_submenu_1rn7y_9",K_="_portal_1rn7y_43",G_="_sideTop_1rn7y_51",Y_="_alignEnd_1rn7y_56",X_="_scrollable_1rn7y_21",Z_="_viewport_1rn7y_21",Q_="_header_1rn7y_80",J_="_footer_1rn7y_63",e9="_itemWrap_1rn7y_96",t9="_item_1rn7y_96",n9="_itemWithAction_1rn7y_123",r9="_itemAction_1rn7y_127",i9="_denseList_1rn7y_151",s9="_label_1rn7y_156",o9="_compactList_1rn7y_160",a9="_itemIcon_1rn7y_176",l9="_separator_1rn7y_86",u9="_itemLabel_1rn7y_218",c9="_check_1rn7y_226",f9="_itemTrailing_1rn7y_227",d9="_selected_1rn7y_244",h9="_danger_1rn7y_249",be={root:U_,list:W_,submenu:q_,portal:K_,sideTop:G_,alignEnd:Y_,scrollable:X_,viewport:Z_,header:Q_,footer:J_,itemWrap:e9,item:t9,itemWithAction:n9,itemAction:r9,denseList:i9,label:s9,compactList:o9,itemIcon:a9,separator:l9,itemLabel:u9,check:c9,itemTrailing:f9,selected:d9,danger:h9},p9="_root_dcuaf_3",m9="_card_dcuaf_13",y9="_closing_dcuaf_31",g9="_copyable_dcuaf_57",v9="_feedback_dcuaf_66",w9="_copied_dcuaf_72",x9="_status_dcuaf_79",ur={root:p9,card:m9,closing:y9,copyable:g9,feedback:v9,copied:w9,status:x9},_9="_root_15u5s_2",k9="_mask_15u5s_14",S9="_dialog_15u5s_22",C9="_content_15u5s_37",E9="_header_15u5s_45",T9="_title_15u5s_53",P9="_close_15u5s_61",b9="_description_15u5s_80",M9="_body_15u5s_89",j9="_footer_15u5s_97",rn={root:_9,mask:k9,dialog:S9,content:C9,header:E9,title:T9,close:P9,description:b9,body:M9,footer:j9},L9="_root_h2ksp_5",N9="_mask_h2ksp_11",A9="_panel_h2ksp_19",Hu={root:L9,mask:N9,panel:A9},R9="_onboardingOverlay_1cfrq_3",D9="_onboardingMask_1cfrq_10",O9="_onboardingStage_1cfrq_21",Uu={onboardingOverlay:R9,onboardingMask:D9,onboardingStage:O9},V9="_confirmation_1nu42_1",I9="_confirmationContent_1nu42_7",$9="_warning_1nu42_19",z9="_warningIcon_1nu42_32",F9="_acknowledgement_1nu42_38",B9="_modalAction_1nu42_67",H9="_confirmAction_1nu42_71",cr={confirmation:V9,confirmationContent:I9,warning:$9,warningIcon:z9,acknowledgement:F9,modalAction:B9,confirmAction:H9},U9="_banner_ugy7y_1",W9={banner:U9},q9="_bubble_hy9vu_8",K9={bubble:q9},G9="_toast_fvpz7_7",Y9="_icon_fvpz7_35",X9="_text_fvpz7_42",Wu={toast:G9,icon:Y9,text:X9},Z9="_root_4qrvp_1",Q9="_container_4qrvp_30",J9="_expandedTopLevel_4qrvp_39",ek="_topLevelBracket_4qrvp_46",tk="_expandedTopLevelContainer_4qrvp_51",nk="_row_4qrvp_55",rk="_children_4qrvp_60",ik="_expander_4qrvp_78",sk="_label_4qrvp_95",ok="_clickableLabel_4qrvp_101",ak="_stringValue_4qrvp_105",lk="_numberValue_4qrvp_109",uk="_keywordValue_4qrvp_113",ck="_otherValue_4qrvp_117",fk="_punctuation_4qrvp_121",dk="_preview_4qrvp_125",hk="_previewProperty_4qrvp_129",pk="_previewEllipsis_4qrvp_133",mk="_copyAnchor_4qrvp_137",yk="_copyButton_4qrvp_143",gk="_collapseIcon_4qrvp_202",he={root:Z9,container:Q9,expandedTopLevel:J9,topLevelBracket:ek,expandedTopLevelContainer:tk,row:nk,children:rk,expander:ik,label:sk,clickableLabel:ok,stringValue:ak,numberValue:lk,keywordValue:uk,otherValue:ck,punctuation:fk,preview:dk,previewProperty:hk,previewEllipsis:pk,copyAnchor:mk,copyButton:yk,collapseIcon:gk};var qu,J1;function vk(){if(J1)return qu;J1=1;const e=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],n=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;class i{static escapeForHtml(a){return new i().escapeForHtml(a)}static linkify(a){return new i().linkify(a)}static ansiToHtml(a,u){return new i().ansiToHtml(a,u)}static ansiToJson(a,u){return new i().ansiToJson(a,u)}static ansiToText(a){return new i().ansiToText(a)}constructor(){this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}setupPalette(){this.PALETTE_COLORS=[];for(let d=0;d<2;++d)for(let p=0;p<8;++p)this.PALETTE_COLORS.push(e[d][p].color);let a=[0,95,135,175,215,255],u=(d,p,m)=>a[d]+", "+a[p]+", "+a[m];for(let d=0;d<6;++d)for(let p=0;p<6;++p)for(let m=0;m<6;++m)this.PALETTE_COLORS.push(u(d,p,m));let c=8;for(let d=0;d<24;++d,c+=10)this.PALETTE_COLORS.push(c+", "+c+", "+c)}escapeForHtml(a){return a.replace(/[&<>\"]/gm,u=>u=="&"?"&amp;":u=='"'?"&quot;":u=="<"?"&lt;":u==">"?"&gt;":"")}linkify(a){return a.replace(n,u=>`<a href="${u}">${u}</a>`)}ansiToHtml(a,u){return this.process(a,u,!0)}ansiToJson(a,u){return u=u||{},u.json=!0,u.clearLine=!1,this.process(a,u,!0)}ansiToText(a){return this.process(a,{},!1)}process(a,u,c){let d=this,p=a.split(/\033\[/),m=p.shift();u==null&&(u={}),u.clearLine=/\r/.test(a);let y=p.map(w=>this.processChunk(w,u,c));if(u&&u.json){let w=d.processChunkJson("");return w.content=m,w.clearLine=u.clearLine,y.unshift(w),u.remove_empty&&(y=y.filter(g=>!g.isEmpty())),y}else y.unshift(m);return y.join("")}processChunkJson(a,u,c){u=typeof u>"u"?{}:u;let d=u.use_classes=typeof u.use_classes<"u"&&u.use_classes,p=u.key=d?"class":"color",m={content:a,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:u.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:()=>!m.content},y=a.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!y)return m;m.content=y[4];let w=y[2].split(";");if(y[1]!==""||y[3]!=="m"||!c)return m;let g=this;for(;w.length>0;){let k=w.shift(),x=parseInt(k);if(isNaN(x)||x===0)g.fg=g.bg=null,g.decorations=[];else if(x===1)g.decorations.push("bold");else if(x===2)g.decorations.push("dim");else if(x===3)g.decorations.push("italic");else if(x===4)g.decorations.push("underline");else if(x===5)g.decorations.push("blink");else if(x===7)g.decorations.push("reverse");else if(x===8)g.decorations.push("hidden");else if(x===9)g.decorations.push("strikethrough");else if(x===21)g.removeDecoration("bold");else if(x===22)g.removeDecoration("bold"),g.removeDecoration("dim");else if(x===23)g.removeDecoration("italic");else if(x===24)g.removeDecoration("underline");else if(x===25)g.removeDecoration("blink");else if(x===27)g.removeDecoration("reverse");else if(x===28)g.removeDecoration("hidden");else if(x===29)g.removeDecoration("strikethrough");else if(x===39)g.fg=null;else if(x===49)g.bg=null;else if(x>=30&&x<38)g.fg=e[0][x%10][p];else if(x>=90&&x<98)g.fg=e[1][x%10][p];else if(x>=40&&x<48)g.bg=e[0][x%10][p];else if(x>=100&&x<108)g.bg=e[1][x%10][p];else if(x===38||x===48){let C=x===38;if(w.length>=1){let T=w.shift();if(T==="5"&&w.length>=1){let A=parseInt(w.shift());if(A>=0&&A<=255)if(!d)this.PALETTE_COLORS||g.setupPalette(),C?g.fg=this.PALETTE_COLORS[A]:g.bg=this.PALETTE_COLORS[A];else{let D=A>=16?"ansi-palette-"+A:e[A>7?1:0][A%8].class;C?g.fg=D:g.bg=D}}else if(T==="2"&&w.length>=3){let A=parseInt(w.shift()),D=parseInt(w.shift()),O=parseInt(w.shift());if(A>=0&&A<=255&&D>=0&&D<=255&&O>=0&&O<=255){let z=A+", "+D+", "+O;d?C?(g.fg="ansi-truecolor",g.fg_truecolor=z):(g.bg="ansi-truecolor",g.bg_truecolor=z):C?g.fg=z:g.bg=z}}}}}return g.fg===null&&g.bg===null&&g.decorations.length===0||(m.fg=g.fg,m.bg=g.bg,m.fg_truecolor=g.fg_truecolor,m.bg_truecolor=g.bg_truecolor,m.decorations=g.decorations,m.decoration=g.decorations.slice(-1).pop()||null,m.was_processed=!0),m}processChunk(a,u,c){u=u||{};let d=this.processChunkJson(a,u,c),p=u.use_classes;if(d.decorations=d.decorations.filter(x=>{if(x==="reverse"){d.fg||(d.fg=e[0][7][p?"class":"color"]),d.bg||(d.bg=e[0][0][p?"class":"color"]);let C=d.fg;d.fg=d.bg,d.bg=C;let T=d.fg_truecolor;return d.fg_truecolor=d.bg_truecolor,d.bg_truecolor=T,d.isInverted=!0,!1}return!0}),u.json)return d;if(d.isEmpty())return"";if(!d.was_processed)return d.content;let m=[],y=[],w=[],g={},k=x=>{let C=[],T;for(T in x)x.hasOwnProperty(T)&&C.push("data-"+T+'="'+this.escapeForHtml(x[T])+'"');return C.length>0?" "+C.join(" "):""};return d.isInverted&&(g["ansi-is-inverted"]="true"),d.fg&&(p?(m.push(d.fg+"-fg"),d.fg_truecolor!==null&&(g["ansi-truecolor-fg"]=d.fg_truecolor,d.fg_truecolor=null)):m.push("color:rgb("+d.fg+")")),d.bg&&(p?(m.push(d.bg+"-bg"),d.bg_truecolor!==null&&(g["ansi-truecolor-bg"]=d.bg_truecolor,d.bg_truecolor=null)):m.push("background-color:rgb("+d.bg+")")),d.decorations.forEach(x=>{if(p){y.push("ansi-"+x);return}x==="bold"?y.push("font-weight:bold"):x==="dim"?y.push("opacity:0.5"):x==="italic"?y.push("font-style:italic"):x==="hidden"?y.push("visibility:hidden"):x==="strikethrough"?w.push("line-through"):w.push(x)}),w.length&&y.push("text-decoration:"+w.join(" ")),p?'<span class="'+m.concat(y).join(" ")+'"'+k(g)+">"+d.content+"</span>":'<span style="'+m.concat(y).join(";")+'"'+k(g)+">"+d.content+"</span>"}removeDecoration(a){const u=this.decorations.indexOf(a);u>=0&&this.decorations.splice(u,1)}}return qu=i,qu}var wk=vk();const xk=ps(wk),_k="_block_10eou_7",kk="_header_10eou_38",Sk="_prompt_10eou_76",Ck="_promptLine_10eou_84",Ek="_runState_10eou_97",Tk="_runStateLabel_10eou_105",Pk="_cwd_10eou_114",bk="_command_10eou_122",Mk="_status_10eou_134",jk="_copyButton_10eou_142",Lk="_output_10eou_162",Nk="_line_10eou_186",Ak="_expand_10eou_191",Rk="_empty_10eou_207",ut={block:_k,header:kk,prompt:Sk,promptLine:Ck,runState:Ek,runStateLabel:Tk,cwd:Pk,command:bk,status:Mk,copyButton:jk,output:Lk,line:Nk,expand:Ak,empty:Rk},Dk="_block_biesw_7",Ok="_banner_biesw_21",Vk="_label_biesw_32",Ik="_action_biesw_43",$k="_count_biesw_50",zk="_lang_biesw_55",Fk="_copyButton_biesw_62",Bk="_body_biesw_72",Hk="_line_biesw_81",Uk="_gutter_biesw_88",Wk="_content_biesw_99",qk="_expand_biesw_103",Dt={block:Dk,banner:Ok,label:Vk,action:Ik,count:$k,lang:zk,copyButton:Fk,body:Bk,line:Hk,gutter:Uk,content:Wk,expand:qk},Kk="_block_e2vzu_7",Gk="_copyButton_e2vzu_28",Yk="_body_e2vzu_65",Xk="_line_e2vzu_77",Zk="_path_e2vzu_86",Qk="_gap_e2vzu_93",Jk="_del_e2vzu_100",eS="_add_e2vzu_109",tS="_expand_e2vzu_118",nS="_footer_e2vzu_136",Kt={block:Kk,copyButton:Gk,body:Yk,line:Xk,path:Zk,gap:Qk,del:Jk,add:eS,expand:tS,footer:nS},rS="_block_s66q0_7",iS="_header_s66q0_20",sS="_summary_s66q0_30",oS="_copyButton_s66q0_40",aS="_body_s66q0_51",lS="_line_s66q0_60",uS="_lineNumber_s66q0_68",cS="_fileHeader_s66q0_74",fS="_filePath_s66q0_88",dS="_fileCount_s66q0_95",hS="_expand_s66q0_100",pS="_empty_s66q0_116",Ct={block:rS,header:iS,summary:sS,copyButton:oS,body:aS,line:lS,lineNumber:uS,fileHeader:cS,filePath:fS,fileCount:dS,expand:hS,empty:pS},mS="_block_3vdq8_4",yS="_bannerWrap_3vdq8_21",gS="_banner_3vdq8_21",vS="_infostring_3vdq8_42",wS="_action_3vdq8_53",xS="_copyButton_3vdq8_59",_S="_plain_3vdq8_94",fr={block:mS,bannerWrap:yS,banner:gS,infostring:vS,action:wS,copyButton:xS,plain:_S},kS="_markdown_1o85u_5",SS="_tableScroll_1o85u_174",CS="_tableFill_1o85u_220",ES="_imageAlt_1o85u_268",TS="_image_1o85u_268",PS="_fileMention_1o85u_288",ii={markdown:kS,tableScroll:SS,tableFill:CS,imageAlt:ES,image:TS,fileMention:PS},bS="_block_d4nqi_7",MS="_answer_d4nqi_19",jS="_sources_d4nqi_5",LS="_source_d4nqi_5",NS="_sourceLink_d4nqi_60",AS="_snippet_d4nqi_71",RS="_published_d4nqi_79",DS="_truncated_d4nqi_85",OS="_empty_d4nqi_91",VS="_fetch_d4nqi_97",IS="_fetchUrl_d4nqi_103",$S="_fetchMeta_d4nqi_115",zS="_status_d4nqi_121",ct={block:bS,answer:MS,sources:jS,source:LS,sourceLink:NS,snippet:AS,published:RS,truncated:DS,empty:OS,fetch:VS,fetchUrl:IS,fetchMeta:$S,status:zS},FS="_root_gltut_1",BS="_backdrop_gltut_16",HS="_input_gltut_17",US="_backdropContent_gltut_28",WS="_line_gltut_35",qS="_gutter_gltut_42",KS="_content_gltut_52",dr={root:FS,backdrop:BS,input:HS,backdropContent:US,line:WS,gutter:qS,content:KS},GS="_root_1ye18_1",YS="_toggle_1ye18_5",XS="_body_1ye18_20",Ku={root:GS,toggle:YS,body:XS},ZS="_text_1pfhk_1",QS={text:ZS};function My({state:e,size:n=10,className:i}){return e==="ongoing"?_.jsx(Bm,{className:ke(Ip.matrix,i),"data-state":"ongoing",size:n,"aria-hidden":"true"}):_.jsx("span",{className:ke(Ip.dot,i),"data-state":e,style:{width:n,height:n},"aria-hidden":"true"})}function JS({icon:e,title:n,open:i,expandable:s,onToggle:a,expandOnRowClick:u=!1,previewChevron:c=s,keepContentWhenOpen:d=!1,collapsedContent:p,children:m,className:y,rowClassName:w,leadingClassName:g,chevronClassName:k,titleClassName:x}){const C=s&&u,T=z=>{z.stopPropagation(),a()},A=z=>{!C||z.key!=="Enter"&&z.key!==" "||(z.preventDefault(),a())},D=c?_.jsxs(_.Fragment,{children:[_.jsx("span",{className:ar.iconIdle,children:e}),_.jsx(ac,{size:14,className:ke(k,ar.chevronHover)})]}):e,O=i?_.jsx(ac,{size:14,className:k}):D;return _.jsxs("div",{className:ke(ar.root,y),"data-open":i||void 0,children:[_.jsxs("div",{className:ke(ar.row,w),"data-disclosure-row":!0,"data-expandable":C||void 0,role:C?"button":void 0,tabIndex:C?0:void 0,"aria-expanded":C?i:void 0,onClick:C?a:void 0,onKeyDown:C?A:void 0,children:[s&&!C?_.jsx("button",{type:"button",className:ke(ar.leading,g),"aria-expanded":i,onClick:T,children:O}):_.jsx("span",{className:ke(ar.leading,g),children:O}),_.jsx("span",{className:ke(ar.title,x),children:n}),(d||!i)&&p]}),i&&m]})}const eC=2.4,em=4.08,tC=M.memo(function({color:n="var(--dsw-alias-bg-base)",duration:i=eC}){if(T_()||i<=0)return null;const s={"--dsw-text-shimmer-color":n};return _.jsx(P_.span,{"aria-hidden":!0,className:M_.band,style:s,initial:!1,animate:{x:[`${-1.2*100}%`,`${em*100}%`,`${em*100}%`]},transition:{duration:i,times:[0,.88,1],ease:"easeOut",repeat:1/0,repeatDelay:.15}})});function Nc({variant:e="ghost",size:n="md",icon:i,className:s,children:a,...u}){return _.jsxs("button",{type:"button",className:ke(Oo.button,Oo[e],Oo[n],s),...u,children:[i!=null&&_.jsx("span",{className:Oo.icon,children:i}),a]})}function jy({active:e=!1,className:n,children:i,onClick:s,...a}){return s?_.jsx("button",{type:"button",className:ke(Zi.pill,Zi.interactive,e&&Zi.active,n),onClick:s,...a,children:i}):_.jsx("span",{className:ke(Zi.pill,e&&Zi.active,n),children:i})}function nC({icon:e,className:n,...i}){return _.jsxs("span",{className:ke(Bu.wrap,n),children:[e!=null&&_.jsx("span",{className:Bu.icon,children:e}),_.jsx("input",{className:Bu.input,...i})]})}function Ly(e){const n=M.useRef(null),i=M.useRef(e);i.current=e;const s=M.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null)},[]),a=M.useCallback(()=>{s(),n.current=setTimeout(()=>{n.current=null,i.current()},200)},[s]);return M.useEffect(()=>s,[s]),{arm:a,cancel:s}}function tm(e){return"type"in e&&e.type==="separator"}function nm(e){return"type"in e&&e.type==="label"}const rC={visibility:"hidden",left:0,top:0};function Ny({open:e,anchor:n,items:i,selectedId:s,selectedIds:a,onSelect:u,onAction:c,onClose:d,align:p="start",side:m="bottom",portal:y=!1,closeOnPointerLeave:w=!1,dense:g=!1,compact:k=!1,getAnchorRect:x,header:C,footer:T,className:A}){const D=M.useRef(null),O=M.useRef(null),[z,V]=M.useState(null),[F,U]=M.useState(null),{arm:q,cancel:$}=Ly(d);M.useLayoutEffect(()=>{if(!e||!y){U(null);return}const J=()=>{var ne;let ae;if(x!==void 0?ae=x():ae=((ne=D.current)==null?void 0:ne.getBoundingClientRect())??null,ae===null)return;const ce=12,ve=window.innerWidth,ge=window.innerHeight,H=O.current,Z=(H==null?void 0:H.offsetWidth)??0,Y=(H==null?void 0:H.offsetHeight)??0;let b,L;m==="right"?(b=ae.right+4,L=ae.top):p==="start"?(b=ae.left,L=m==="bottom"?ae.bottom+4:ae.top-Y-4):(b=ae.right-Z,L=m==="bottom"?ae.bottom+4:ae.top-Y-4),Z>0&&(b=Math.min(Math.max(b,ce),ve-Z-ce)),Y>0&&(L=Math.min(Math.max(L,ce),ge-Y-ce)),U({left:b,top:L})};return J(),window.addEventListener("scroll",J,!0),window.addEventListener("resize",J),()=>{window.removeEventListener("scroll",J,!0),window.removeEventListener("resize",J)}},[e,y,p,m,x]),M.useEffect(()=>{if(!e){V(null);return}const J=ce=>{var ve,ge;ce.target instanceof Node&&((ve=D.current)==null?void 0:ve.contains(ce.target))!==!0&&((ge=O.current)==null?void 0:ge.contains(ce.target))!==!0&&d()},ae=ce=>{ce.key==="Escape"&&d()};return document.addEventListener("pointerdown",J),document.addEventListener("keydown",ae),()=>{document.removeEventListener("pointerdown",J),document.removeEventListener("keydown",ae)}},[e,d]),M.useEffect(()=>{e||$()},[e,$]);const B=!i.some(J=>!tm(J)&&!nm(J)&&J.submenu!==void 0&&J.submenu.length>0),oe=J=>{if(tm(J))return _.jsx("div",{className:be.separator,role:"separator"},J.id);if(nm(J))return _.jsx("div",{className:be.label,role:"presentation",children:J.text},J.id);const ae=J.submenu!==void 0&&J.submenu.length>0,ce=ae&&z===J.id,ve=J.id===s||(a==null?void 0:a.includes(J.id))===!0;return _.jsxs("div",{className:be.itemWrap,onMouseEnter:()=>{V(ae?J.id:null)},onMouseLeave:()=>{V(null)},children:[_.jsxs("button",{type:"button",role:"menuitem",className:ke(be.item,J.action!==void 0&&be.itemWithAction,ve&&be.selected,J.danger===!0&&be.danger),disabled:J.disabled,"aria-haspopup":ae?"menu":void 0,"aria-expanded":ae?ce:void 0,onFocus:()=>{V(ae?J.id:null)},onClick:()=>{if(ae){V(J.id);return}u(J.id)},children:[J.icon!==void 0&&_.jsx("span",{className:be.itemIcon,children:J.icon}),_.jsx("span",{className:be.itemLabel,children:J.label}),ve&&_.jsx(ma,{size:16,className:be.check}),J.trailing!==void 0&&_.jsx("span",{className:be.itemTrailing,children:J.trailing})]}),J.action!==void 0&&_.jsx("button",{type:"button",role:"menuitem",className:be.itemAction,"aria-label":J.action.label,onClick:ge=>{ge.stopPropagation(),c==null||c(J.id,ge.currentTarget)},children:J.action.icon}),ce&&J.submenu!==void 0&&_.jsx("div",{className:ke(be.submenu,k&&be.compactList),role:"menu",children:J.submenu.map(ge=>_.jsxs("button",{type:"button",role:"menuitem",className:be.item,disabled:ge.disabled,onClick:()=>{u(ge.id)},children:[ge.icon!==void 0&&_.jsx("span",{className:be.itemIcon,children:ge.icon}),_.jsx("span",{className:be.itemLabel,children:ge.label}),ge.trailing!==void 0&&_.jsx("span",{className:be.itemTrailing,children:ge.trailing})]},ge.id))})]},J.id)},me=e&&_.jsxs("div",{ref:O,className:ke(be.list,g&&be.denseList,k&&be.compactList,B&&be.scrollable,y&&be.portal,m==="top"&&!y&&be.sideTop,p==="end"&&!y&&be.alignEnd),style:y?F??rC:void 0,role:"menu",onClick:J=>{J.stopPropagation()},children:[C===void 0?null:_.jsx("div",{className:be.header,role:"presentation",children:C}),_.jsx("div",{className:be.viewport,role:"presentation",children:i.map(oe)}),T!==void 0&&T.length>0&&_.jsx("div",{className:be.footer,role:"presentation",children:T.map(oe)})]});return _.jsxs("span",{ref:D,className:ke(be.root,A),onPointerEnter:w?$:void 0,onPointerLeave:w?()=>{e&&q()}:void 0,children:[n,y?me!==!1&&qn.createPortal(me,document.body):me]})}const iC=12;function sC(e,n,i){const[s,a]=M.useState(n);return M.useLayoutEffect(()=>{const u=e.current;if(u===null)return;const c=()=>{a(Math.min(n,Math.max(0,u.getBoundingClientRect().bottom-iC)))};return c(),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[e,n,i]),s}function oC(e){const{open:n,anchorRef:i,panelRef:s,gap:a,margin:u}=e,[c,d]=M.useState(null);return M.useLayoutEffect(()=>{if(!n){d(null);return}const p=()=>{var A;const w=(A=i.current)==null?void 0:A.getBoundingClientRect();if(w===void 0)return;const g=s.current,k=(g==null?void 0:g.offsetWidth)??0,x=(g==null?void 0:g.offsetHeight)??0;let C=w.left,T=w.bottom+a;k>0&&(C=Math.min(Math.max(C,u),window.innerWidth-k-u)),x>0&&(T=Math.min(Math.max(T,u),window.innerHeight-x-u)),d({left:C,top:T})};p(),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p);const m=s.current;let y=null;return typeof ResizeObserver<"u"&&m!==null&&(y=new ResizeObserver(p),y.observe(m)),()=>{y==null||y.disconnect(),window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}},[n,i,s,a,u]),c}function aC(e,n,i){M.useEffect(()=>{if(!n)return;const s=a=>{var u;a.target instanceof Node&&!((u=e.current)!=null&&u.contains(a.target))&&i(!1)};return document.addEventListener("pointerdown",s),()=>{document.removeEventListener("pointerdown",s)}},[e,n,i])}async function ui(e){var s;if((s=navigator.clipboard)!=null&&s.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{return!1}const n=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(n===void 0)return!1;const i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.style.position="fixed",i.style.left="-9999px",document.body.appendChild(i),i.select();try{return n("copy")}catch{return!1}finally{i.remove()}}function lC({anchor:e,content:n,openDelayMs:i=500,disabled:s=!1,copyText:a,copyLabel:u="复制",copiedLabel:c="复制成功"}){const d=M.useRef(null),p=M.useRef(null),m=M.useRef(null),y=M.useRef(null),w=M.useRef(null),g=M.useRef(0),k=M.useRef(!1),x=M.useRef(!0),[C,T]=M.useState(!1),[A,D]=M.useState(!1),[O,z]=M.useState(null),[V,F]=M.useState(!1),U=M.useRef(C);M.useEffect(()=>{U.current=C},[C]);const q=M.useRef(null),$=M.useCallback(()=>{y.current!==null&&(clearTimeout(y.current),y.current=null),w.current=null,F(!1)},[]),B=M.useCallback(()=>{q.current!==null&&(clearTimeout(q.current),q.current=null)},[]),oe=M.useCallback(()=>{if(g.current+=1,$(),!U.current){D(!1);return}D(!0),B(),q.current=setTimeout(()=>{q.current=null,D(!1),T(!1)},150)},[$,B]),{arm:me,cancel:J}=Ly(oe),ae=()=>{m.current!==null&&(clearTimeout(m.current),m.current=null)};M.useEffect(()=>{s&&(ae(),J(),oe())},[s,J,oe]),M.useEffect(()=>(x.current=!0,()=>{x.current=!1,g.current+=1,ae(),B(),y.current!==null&&(clearTimeout(y.current),y.current=null)}),[B]),M.useLayoutEffect(()=>{if(!C){z(null);return}const H=()=>{var ne;const Z=d.current;if(Z===null)return;const Y=Z.getBoundingClientRect(),b=((ne=p.current)==null?void 0:ne.offsetHeight)??0,L=Y.top+b>window.innerHeight-8?window.innerHeight-b-8:Y.top;z({left:Y.right+8,top:L})};return H(),window.addEventListener("scroll",H,!0),window.addEventListener("resize",H),()=>{window.removeEventListener("scroll",H,!0),window.removeEventListener("resize",H)}},[C]),M.useLayoutEffect(()=>{var Z;if(!C||O===null)return;const H=((Z=p.current)==null?void 0:Z.offsetHeight)??0;O.top+H>window.innerHeight-8&&z({left:O.left,top:window.innerHeight-H-8})},[C,O]);const ce=async H=>{if(V||k.current)return;k.current=!0;const Z=g.current,Y=await ui(H);k.current=!1;const b=p.current;if(!Y||!x.current||Z!==g.current||b===null)return;const L=b.offsetHeight;w.current=L>0?L:null,F(!0),y.current=setTimeout($,1e3)},ve=a!==void 0,ge=C&&O!==null&&_.jsx("div",{ref:p,className:`${ur.card}${ve?` ${ur.copyable}`:""}${V?` ${ur.feedback}`:""}${A?` ${ur.closing}`:""}`,style:{...O,minHeight:V&&w.current!==null?w.current:void 0},role:ve?"button":void 0,tabIndex:ve?0:void 0,"aria-label":ve?`${u}: ${a}`:void 0,onClick:ve?H=>{const Z=window.getSelection();if(Z!==null&&!Z.isCollapsed){for(let Y=0;Y<Z.rangeCount;Y+=1)if(Z.getRangeAt(Y).intersectsNode(H.currentTarget))return}ce(a)}:void 0,onKeyDown:ve?H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),ce(a))}:void 0,children:V?_.jsx("span",{className:ur.copied,"aria-hidden":"true",children:c}):n});return _.jsxs("span",{ref:d,className:ur.root,onPointerEnter:()=>{if(!s){if(J(),C){A&&(D(!1),B());return}ae(),B(),D(!1),m.current=setTimeout(()=>{T(!0)},i)}},onPointerLeave:()=>{ae(),C&&me()},onPointerDownCapture:H=>{var Z;(Z=p.current)!=null&&Z.contains(H.target)||(ae(),J(),oe())},children:[e,C&&ve&&_.jsx("span",{className:ur.status,role:"status",children:V?c:""}),ge!==!1&&qn.createPortal(ge,document.body)]})}function Ay(e,n){M.useEffect(()=>{if(!e)return;const i=s=>{s.key==="Escape"&&n()};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e,n])}function Ry({open:e,onClose:n,title:i,closeLabel:s="Close",description:a,children:u,footer:c,className:d,contentClassName:p,headless:m=!1}){return Ay(e,n),e?qn.createPortal(_.jsxs("div",{className:rn.root,role:"presentation",children:[_.jsx("div",{className:rn.mask,"aria-hidden":"true",onClick:n}),_.jsx("div",{className:ke(rn.dialog,d),role:"dialog","aria-modal":"true","aria-label":i,children:m?u:_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:ke(rn.content,p),children:[_.jsxs("div",{className:rn.header,children:[_.jsx("h2",{className:rn.title,children:i}),_.jsx("button",{type:"button",className:rn.close,"aria-label":s,onClick:n,children:_.jsx(Um,{size:14})})]}),a!==void 0&&a!==""&&_.jsx("p",{className:rn.description,children:a}),u!==void 0&&_.jsx("div",{className:rn.body,children:u})]}),c!==void 0&&_.jsx("div",{className:rn.footer,children:c})]})})]}),document.body):null}function uC({open:e,onClose:n,title:i,side:s="left",children:a,className:u}){return Ay(e,n),M.useEffect(()=>{if(!e)return;const c=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=c}},[e]),e?qn.createPortal(_.jsxs("div",{className:Hu.root,role:"presentation",children:[_.jsx("div",{className:Hu.mask,"aria-hidden":"true",onClick:n}),_.jsx("div",{className:ke(Hu.panel,u),"data-side":s,role:"dialog","aria-modal":"true","aria-label":i,children:a})]}),document.body):null}function cC({children:e}){return M.useEffect(()=>{const n=document.getElementById("root");if(n!==null)return n.inert=!0,()=>{n.inert=!1}},[]),qn.createPortal(_.jsxs("div",{className:Uu.onboardingOverlay,role:"presentation",children:[_.jsx("div",{className:Uu.onboardingMask,"aria-hidden":"true"}),_.jsx("div",{className:Uu.onboardingStage,children:e})]}),document.body)}function fC({open:e,title:n,description:i,acknowledgeLabel:s,cancelLabel:a,confirmLabel:u,acknowledged:c,disabled:d=!1,onAcknowledgedChange:p,onCancel:m,onConfirm:y}){return _.jsxs(Ry,{open:e,onClose:m,title:n,className:cr.confirmation,contentClassName:cr.confirmationContent,footer:_.jsxs(_.Fragment,{children:[_.jsx(Nc,{variant:"outline",className:cr.modalAction,onClick:m,children:a}),_.jsx(Nc,{variant:"primary",className:cr.confirmAction,disabled:d||!c,onClick:y,children:u})]}),children:[_.jsxs("div",{className:cr.warning,children:[_.jsx(Hm,{size:18,className:cr.warningIcon}),_.jsx("p",{children:i})]}),_.jsxs("label",{className:cr.acknowledgement,children:[_.jsx("input",{type:"checkbox",checked:c,disabled:d,autoFocus:!0,onChange:w=>{p(w.currentTarget.checked)}}),_.jsx("span",{children:s})]})]})}function dC({reconnecting:e,label:n="连接已断开,正在重连…"}){return e?_.jsx("div",{className:W9.banner,children:n}):null}function hC({size:e=24,className:n}){return _.jsx("svg",{width:e,height:e*17.04/23.16,className:n,viewBox:"0 0 23.16 17.04",fill:"none","aria-hidden":"true",children:_.jsx("path",{d:"M22.9168 1.43018C22.6713 1.31018 22.5658 1.53918 22.4223 1.65519C22.3733 1.69269 22.3318 1.74169 22.2903 1.78669C21.9317 2.1697 21.5127 2.42121 20.9657 2.39121C20.1657 2.34621 19.4827 2.59771 18.8787 3.20973C18.7502 2.45521 18.3236 2.0047 17.6746 1.71569C17.3351 1.56568 16.9916 1.41518 16.7536 1.08867C16.5876 0.856163 16.5421 0.597155 16.4591 0.341647C16.4061 0.187643 16.3536 0.0301382 16.1761 0.00363739C15.9836 -0.0263635 15.9081 0.135141 15.8326 0.270145C15.5306 0.822162 15.4136 1.43018 15.4251 2.0462C15.4516 3.43174 16.0366 4.53527 17.1991 5.3203C17.3311 5.4103 17.3651 5.5003 17.3236 5.63181C17.2441 5.90231 17.1501 6.16482 17.0671 6.43533C17.0141 6.60784 16.9351 6.64584 16.7501 6.57033C16.1121 6.30383 15.5611 5.90931 15.074 5.4328C14.2475 4.63328 13.5 3.75075 12.568 3.05973C12.349 2.89822 12.13 2.74822 11.9034 2.60522C10.9524 1.68169 12.028 0.923165 12.277 0.833162C12.5375 0.739159 12.3675 0.41615 11.5259 0.42015C10.6844 0.42365 9.91439 0.705658 8.93286 1.08117C8.78935 1.13767 8.63835 1.17867 8.48384 1.21267C7.59332 1.04367 6.66829 1.00617 5.70226 1.11517C3.88321 1.31768 2.43016 2.1777 1.36213 3.64575C0.0790928 5.4103 -0.222916 7.41536 0.146595 9.50642C0.535106 11.7105 1.66014 13.535 3.38869 14.9616C5.18125 16.4406 7.24581 17.1657 9.60138 17.0266C11.0319 16.9441 12.6245 16.7526 14.421 15.2321C14.874 15.4576 15.3496 15.5476 16.1381 15.6151C16.7456 15.6716 17.3306 15.5851 17.7836 15.4911C18.4931 15.3411 18.4441 14.6841 18.1876 14.5636C16.1081 13.595 16.5646 13.9891 16.1496 13.67C17.2061 12.42 18.8202 10.1979 19.3182 7.17235C19.3672 6.83834 19.4297 6.36783 19.4222 6.09732C19.4182 5.93231 19.4562 5.86831 19.6447 5.84931C20.1657 5.78931 20.6712 5.64681 21.1357 5.3913C22.4833 4.65528 23.0268 3.44624 23.1548 1.9972C23.1738 1.77569 23.1508 1.54668 22.9168 1.43018ZM11.1749 14.4736C9.15936 12.889 8.18184 12.3675 7.77832 12.39C7.40081 12.4125 7.46881 12.8445 7.55182 13.126C7.63882 13.404 7.75182 13.5955 7.91033 13.8396C8.01983 14.0011 8.09533 14.2411 7.80083 14.4216C7.15181 14.8231 6.02327 14.2866 5.97027 14.2601C4.65673 13.4865 3.5587 12.4655 2.78467 11.069C2.03715 9.72493 1.60314 8.28289 1.53164 6.74384C1.51264 6.37233 1.62214 6.24082 1.99215 6.17332C2.47916 6.08332 2.98118 6.06432 3.46769 6.13582C5.52476 6.43633 7.27581 7.35586 8.74385 8.8129C9.58188 9.64243 10.2159 10.634 10.8689 11.6025C11.5634 12.631 12.3105 13.611 13.262 14.4146C13.598 14.6961 13.866 14.9101 14.1225 15.0681C13.349 15.1546 12.058 15.1731 11.1749 14.4746L11.1749 14.4736ZM12.141 8.25988C12.141 8.09488 12.273 7.96338 12.439 7.96338C12.4765 7.96338 12.5105 7.97088 12.541 7.98188C12.5825 7.99688 12.6205 8.01938 12.6505 8.05338C12.7035 8.10588 12.7335 8.18088 12.7335 8.25988C12.7335 8.42489 12.6015 8.55639 12.4355 8.55639C12.2695 8.55639 12.141 8.42489 12.141 8.25988ZM15.1415 9.79893C14.949 9.87793 14.7565 9.94544 14.5715 9.95294C14.2845 9.96794 13.9715 9.85143 13.8015 9.70893C13.5375 9.48742 13.3485 9.36342 13.2695 8.97691C13.2355 8.8119 13.2545 8.55639 13.2845 8.40989C13.3525 8.09438 13.277 7.89187 13.0545 7.70787C12.8735 7.55786 12.643 7.51636 12.39 7.51636C12.2955 7.51636 12.209 7.47486 12.1445 7.44136C12.039 7.38886 11.9519 7.25735 12.035 7.09585C12.0615 7.04335 12.19 6.91584 12.22 6.89334C12.5635 6.69784 12.9595 6.76184 13.326 6.90834C13.6655 7.04735 13.9225 7.30236 14.292 7.66287C14.6695 8.09838 14.7375 8.21838 14.9525 8.54539C15.1225 8.8009 15.277 9.06341 15.3831 9.36392C15.4471 9.55142 15.3641 9.70493 15.1415 9.79893Z",fill:"currentColor"})})}function pC({size:e=24,className:n,includeMark:i=!0}){return _.jsxs("svg",{width:e*(i?182:156)/24,height:e,className:n,viewBox:i?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[_.jsx("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),_.jsx("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),_.jsx("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),_.jsx("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),_.jsx("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),_.jsx("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),_.jsx("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:_.jsx("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),_.jsx("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),_.jsxs("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[_.jsx("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),_.jsx("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),_.jsxs("defs",{children:[_.jsx("clipPath",{id:"dsh-wordmark-whale-clip",children:_.jsx("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),_.jsx("clipPath",{id:"dsh-wordmark-badge-clip",children:_.jsx("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function mC({label:e,side:n="right",delayMs:i=0,disabled:s=!1,maxWidth:a,children:u}){const c=M.useRef(null),d=u.ref,p=M.useCallback(U=>{c.current=U,typeof d=="function"?d(U):d!=null&&(d.current=U)},[d]),[m,y]=M.useState(null),[w,g]=M.useState(n),k=M.useRef(null),x=m===null?null:typeof e=="function"?e():e,C=m===null?0:w==="right"?m.top+(m.bottom-m.top)/2:w==="top"?m.top-8:m.bottom+8,T=12;M.useLayoutEffect(()=>{if(m===null)return;const U=()=>{const q=k.current;if(q===null)return;q.style.left=`${m.x}px`;const $=q.getBoundingClientRect();let B=0;if($.right>window.innerWidth-T&&(B=window.innerWidth-T-$.right),$.left+B<T&&(B=T-$.left),q.style.left=`${m.x+B}px`,n==="right")return;const oe=m.bottom+8+$.height<=window.innerHeight-T,me=m.top-8-$.height>=T;w==="bottom"&&!oe&&me&&g("top"),w==="top"&&!me&&oe&&g("bottom")};return U(),window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}},[w,m,x,n]);const A=M.useRef(null),D=M.useRef({hover:!1,focus:!1}),O=M.useCallback(()=>{A.current!==null&&(clearTimeout(A.current),A.current=null)},[]);M.useEffect(()=>(s&&(O(),D.current={hover:!1,focus:!1},y(null)),O),[O,s]);const z=()=>{if(s)return;const U=c.current;if(U===null)return;const q=U.getBoundingClientRect();g(n),y({x:n==="right"?q.right+10:q.left+q.width/2,top:q.top,bottom:q.bottom})},V=()=>{if(O(),i<=0){z();return}A.current=setTimeout(()=>{A.current=null,z()},i)},F=()=>{O(),!D.current.hover&&!D.current.focus&&y(null)};return _.jsxs(_.Fragment,{children:[M.cloneElement(u,{ref:p,onMouseEnter:U=>{var q,$;($=(q=u.props).onMouseEnter)==null||$.call(q,U),D.current.hover=!0,V()},onMouseLeave:U=>{var q,$;($=(q=u.props).onMouseLeave)==null||$.call(q,U),D.current.hover=!1,O(),y(null)},onFocus:U=>{var q,$;($=(q=u.props).onFocus)==null||$.call(q,U),D.current.focus=!0,O(),z()},onBlur:U=>{var q,$;($=(q=u.props).onBlur)==null||$.call(q,U),D.current.focus=!1,F()}}),m!==null&&_.jsx("span",{ref:k,className:K9.bubble,"data-side":w,style:{left:m.x,top:C,...a===void 0?{}:{maxWidth:a}},role:"tooltip",children:x})]})}function yC({text:e,icon:n,anchor:i,onDone:s}){M.useEffect(()=>{const c=setTimeout(s,4e3);return()=>{clearTimeout(c)}},[s]);const[a,u]=M.useState(null);return M.useLayoutEffect(()=>{if(i==null)return;const c=()=>{const d=i.getBoundingClientRect();u(d.left+d.width/2)};return c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)}},[i]),qn.createPortal(_.jsxs("div",{className:Wu.toast,role:"alert",style:a===null?void 0:{left:a},children:[n!==void 0&&_.jsx("span",{className:Wu.icon,"aria-hidden":!0,children:n}),_.jsx("span",{className:Wu.text,children:e})]}),document.body)}const gC=4,vC=5,rm=2,im={copyValue:"Copy value",copyJson:"Copy JSON",copyPath:"Copy property path",copyPrettyJson:"Copy pretty JSON",copyCompactJson:"Copy compact JSON",copied:"Copied",copyFailed:"Copy failed",collapseNode:"Collapse JSON node",expandNode:"Expand JSON node",copyButtonTitle:e=>`${e}; right-click for copy options`};function wC(e){return[{id:"value",label:e.copyValue},{id:"json",label:e.copyJson},{id:"path",label:e.copyPath}]}function xC(e){return[{id:"prettyJson",label:e.copyPrettyJson},{id:"json",label:e.copyCompactJson},{id:"path",label:e.copyPath}]}function la(e){return typeof e=="object"&&e!==null&&!(e instanceof Date)}function ua(e){return Array.isArray(e)?e.map((n,i)=>[String(i),n]):Object.keys(e).map(n=>[n,e[n]])}function xf(e){return Array.isArray(e)?["[","]"]:["{","}"]}function _C(e){return e===null?_.jsx("span",{className:he.keywordValue,children:"null"}):typeof e=="string"?_.jsx("span",{className:he.stringValue,children:JSON.stringify(e)}):typeof e=="number"?_.jsx("span",{className:he.numberValue,children:String(e)}):typeof e=="boolean"?_.jsx("span",{className:he.keywordValue,children:String(e)}):typeof e=="bigint"?_.jsx("span",{className:he.otherValue,children:e.toString()}):typeof e>"u"?_.jsx("span",{className:he.otherValue,children:"undefined"}):typeof e=="symbol"?_.jsx("span",{className:he.otherValue,children:e.description??"Symbol"}):typeof e=="function"?_.jsx("span",{className:he.otherValue,children:e.name||"Function"}):null}function Dy(e,n){if(!la(e))return _C(e);const i=Array.isArray(e),s=ua(e),a=i?vC:gC,u=s.slice(0,a),[c,d]=xf(e);return _.jsxs(_.Fragment,{children:[_.jsx("span",{className:he.punctuation,children:c}),n>=rm?_.jsx("span",{className:he.previewEllipsis,children:"…"}):u.map(([p,m],y)=>_.jsxs("span",{children:[y>0&&_.jsx("span",{className:he.punctuation,children:", "}),!i&&_.jsxs(_.Fragment,{children:[_.jsx("span",{className:he.previewProperty,children:p}),_.jsx("span",{className:he.punctuation,children:": "})]}),Dy(m,n+1)]},p)),n<rm&&s.length>a&&_.jsx("span",{className:he.previewEllipsis,children:", …"}),_.jsx("span",{className:he.punctuation,children:d})]})}function kC(e){return e===null?_.jsx("span",{className:he.keywordValue,children:"null"}):typeof e=="string"?_.jsx("span",{className:he.stringValue,children:JSON.stringify(e)}):typeof e=="boolean"?_.jsx("span",{className:he.keywordValue,children:String(e)}):typeof e=="number"?_.jsx("span",{className:he.numberValue,children:String(e)}):typeof e=="bigint"?_.jsx("span",{className:he.numberValue,children:`${e.toString()}n`}):e instanceof Date?_.jsx("span",{className:he.otherValue,children:e.toISOString()}):typeof e=="function"?_.jsxs("span",{className:he.otherValue,children:["function() ","{ }"]}):typeof e>"u"?_.jsx("span",{className:he.otherValue,children:"undefined"}):_.jsx("span",{className:he.otherValue,children:e.toString()})}function SC(e){return e===""?'""':e}function Ac(e){return e.map(n=>typeof n=="number"?`n${String(n)}`:`s${String(n.length)}:${n}`).join("/")}function Oy(e){e.focus()}function CC(e,n){const i=e.closest('[role="tree"]');if(i===null)return;const s=Array.from(i.querySelectorAll("[data-json-expander]")),a=s.indexOf(e);if(a<0||s.length===0)return;const u=s[(a+n+s.length)%s.length];u!==void 0&&Oy(u)}function Gu({field:e,expandable:n,onToggle:i}){return e===void 0?null:_.jsxs("span",{className:ke(he.label,n&&he.clickableLabel),onClick:n?i:void 0,children:[SC(e),":"]})}function Rc({field:e,initialExpanded:n,labels:i,lastElement:s,onClaimTabStop:a,onRowHover:u,path:c,tabStopId:d,value:p}){const m=M.useId(),y=M.useRef(null),[w,g]=M.useState(n),k=Ac(c),x=la(p),C=x?ua(p):[],T=C.length>0,A=()=>{g(F=>!F),Oy(y.current)},D=F=>{if(F.key==="ArrowRight"||F.key==="ArrowLeft"){F.preventDefault(),g(F.key==="ArrowRight");return}(F.key==="ArrowUp"||F.key==="ArrowDown")&&(F.preventDefault(),CC(F.currentTarget,F.key==="ArrowUp"?-1:1))},O=(F,U)=>_.jsx("div",{className:he.row,role:"treeitem","aria-expanded":U,onMouseOver:q=>{q.stopPropagation(),u(q.currentTarget,{path:c,value:p})},children:F});if(!x)return O(_.jsxs(_.Fragment,{children:[_.jsx(Gu,{field:e,expandable:!1,onToggle:A}),kC(p),!s&&_.jsx("span",{className:he.punctuation,children:","})]}));const[z,V]=xf(p);return T?O(_.jsxs(_.Fragment,{children:[_.jsx("span",{ref:y,className:ke(he.expander,w?he.collapseIcon:he.expandIcon),"data-json-expander":!0,role:"button","aria-label":w?i.collapseNode:i.expandNode,"aria-expanded":w,"aria-controls":w?m:void 0,tabIndex:d===k?0:-1,onFocus:()=>{a(k)},onClick:A,onKeyDown:D}),_.jsx(Gu,{field:e,expandable:!0,onToggle:A}),_.jsx("span",{className:he.preview,children:Dy(p,0)}),!s&&_.jsx("span",{className:he.punctuation,children:","}),w&&_.jsx("ul",{id:m,role:"group",className:he.children,children:C.map(([F,U],q)=>_.jsx(Rc,{field:F,value:U,path:[...c,Array.isArray(p)?q:F],labels:i,lastElement:q===C.length-1,initialExpanded:!1,tabStopId:d,onClaimTabStop:a,onRowHover:u},F))})]}),w):O(_.jsxs(_.Fragment,{children:[_.jsx(Gu,{field:e,expandable:!1,onToggle:A}),_.jsx("span",{className:he.punctuation,children:z}),_.jsx("span",{className:he.punctuation,children:V}),!s&&_.jsx("span",{className:he.punctuation,children:","})]}))}function EC(e){return e.reduce((n,i)=>typeof i=="number"?`${n}[${String(i)}]`:/^[A-Za-z_$][\w$]*$/.test(i)?`${n}.${i}`:`${n}[${JSON.stringify(i)}]`,"$")}function TC(e,n){return n==="path"?EC(e.path):n==="prettyJson"?JSON.stringify(e.value,null,2):n==="json"?JSON.stringify(e.value):typeof e.value=="string"?e.value:typeof e.value>"u"?"undefined":typeof e.value=="bigint"?e.value.toString():typeof e.value=="symbol"?e.value.description??"Symbol":typeof e.value=="function"?e.value.name||"Function":JSON.stringify(e.value)}function PC({data:e,label:n="JSON",className:i,copyable:s=!0,expandTopLevel:a=!0,labels:u}){const c=M.useMemo(()=>u===void 0?im:{...im,...u},[u]),d=ua(e),p=d.findIndex(([,L])=>la(L)&&ua(L).length>0),m=d[p],y=a?m===void 0?null:Ac([Array.isArray(e)?p:m[0]]):la(e)&&d.length>0?Ac([]):null,w=M.useRef(null),g=M.useRef(),k=M.useRef(null),x=M.useRef(!1),C=M.useRef(),[T,A]=M.useState(),[D,O]=M.useState("idle"),[z,V]=M.useState(!1),[F,U]=M.useState(y),q=L=>{var ne;(ne=g.current)==null||ne.removeAttribute("data-json-copy-active"),g.current=L,L==null||L.setAttribute("data-json-copy-active","")},$=()=>{q(void 0),A(void 0),O("idle"),x.current=!1,V(!1)},B=L=>{const ne=w.current;if(ne===null)throw new Error("JsonTree root is not mounted");const pe=ne.getBoundingClientRect(),_e=L.getBoundingClientRect();return{left:pe.left+ne.clientWidth-26,side:_e.top-pe.top>ne.clientHeight/2?"top":"bottom",top:_e.top}},oe=(L,ne)=>{const pe=B(L);A({...ne,...pe})},me=L=>{const ne=B(L);A(pe=>pe===void 0?pe:{...pe,...ne})};M.useEffect(()=>()=>{var L;C.current!==void 0&&clearTimeout(C.current),(L=g.current)==null||L.removeAttribute("data-json-copy-active")},[]),M.useEffect(()=>{var L;(L=g.current)==null||L.removeAttribute("data-json-copy-active"),g.current=void 0,x.current=!1,A(void 0),O("idle"),V(!1),U(y)},[e,a,y]),M.useEffect(()=>{const L=()=>{const ne=g.current;ne!==void 0&&me(ne)};return window.addEventListener("scroll",L,!0),window.addEventListener("resize",L),()=>{window.removeEventListener("scroll",L,!0),window.removeEventListener("resize",L)}},[]);const J=(L,ne)=>{!s||x.current||g.current!==L&&(q(L),O("idle"),x.current=!1,V(!1),oe(L,ne))},ae=L=>{!s||x.current||L.target instanceof Element&&L.target.closest("[data-json-copy-button]")===null&&$()},ce=L=>{const ne=g.current;ne!==void 0&&me(ne)},ve=async L=>{if(T!==void 0){try{await navigator.clipboard.writeText(TC(T,L)),O("copied")}catch{O("failed")}C.current!==void 0&&clearTimeout(C.current),C.current=setTimeout(()=>{O("idle")},1500)}},[ge,H]=xf(e),Z=typeof(T==null?void 0:T.value)=="object"&&T.value!==null,Y=Z?"prettyJson":"value",b=D==="copied"?c.copied:D==="failed"?c.copyFailed:Z?c.copyPrettyJson:c.copyValue;return _.jsxs("div",{ref:w,className:ke(he.root,i),onMouseOver:ae,onMouseLeave:()=>{x.current||$()},onScroll:ce,children:[a?_.jsxs("div",{className:he.expandedTopLevel,children:[_.jsx("div",{className:ke(he.row,he.topLevelBracket),"data-json-root-row":!0,onMouseOver:L=>{L.stopPropagation(),J(L.currentTarget,{path:[],value:e})},children:_.jsx("span",{className:he.punctuation,children:ge})}),_.jsx("div",{"aria-label":n,className:ke(he.container,he.expandedTopLevelContainer),role:"tree",children:d.map(([L,ne],pe)=>_.jsx(Rc,{field:L,value:ne,path:[Array.isArray(e)?pe:L],labels:c,lastElement:pe===d.length-1,initialExpanded:!1,tabStopId:F,onClaimTabStop:U,onRowHover:J},L))}),_.jsx("div",{className:ke(he.row,he.topLevelBracket),children:_.jsx("span",{className:he.punctuation,children:H})})]}):_.jsx("div",{"aria-label":n,className:he.container,role:"tree",children:_.jsx(Rc,{value:e,path:[],labels:c,lastElement:!0,initialExpanded:!0,tabStopId:F,onClaimTabStop:U,onRowHover:J})}),T!==void 0&&_.jsx("span",{className:he.copyAnchor,style:{left:T.left,top:T.top},children:_.jsx(Ny,{open:z,compact:!0,portal:!0,align:"end",side:T.side,anchor:_.jsx("button",{ref:k,type:"button",className:he.copyButton,"data-json-copy-button":!0,"data-state":D,"aria-label":b,title:c.copyButtonTitle(b),onClick:()=>void ve(Y),onContextMenu:L=>{L.preventDefault(),L.stopPropagation(),x.current=!0,V(!0)},children:D==="copied"?_.jsx(ma,{size:12}):_.jsx(Wc,{size:12})}),items:Z?xC(c):wC(c),onSelect:L=>{ve(L),x.current=!1,V(!1)},onClose:$,getAnchorRect:()=>k.current.getBoundingClientRect()})})]})}const bC={"0,0,0":"var(--dsw-alias-label-primary)","255,255,255":"var(--dsw-alias-label-primary)","85,85,85":"var(--dsw-alias-label-tertiary)","187,0,0":"var(--dsw-alias-state-error-primary)","255,85,85":"var(--dsw-alias-state-error-secondary)","0,187,0":"var(--dsw-alias-state-success-primary)","0,255,0":"var(--dsw-alias-state-success-secondary)","187,187,0":"var(--dsw-alias-state-warn-primary)","255,255,85":"var(--dsw-alias-state-warn-secondary)","0,0,187":"var(--dsw-alias-state-business-primary)","85,85,255":"var(--dsw-static-blue-400)"},MC={bold:{fontWeight:700},dim:{opacity:.7},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"},hidden:{visibility:"hidden"}},jC=/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)?/g,LC=/\u001b(?!\[)[\u0020-\u002f]*[\u0030-\u007e]?/g,NC=/[\u0000-\u0007\u000b-\u001a\u001c-\u001f\u007f]/g,AC=/\r|\u0008|\u001b\[[\u0030-\u003f]*[\u0020-\u002f]*K/,RC=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*m/g,sm=8,DC=/^[\p{Mn}\p{Me}\p{Cf}\u200b-\u200f\u2060]$/u,OC=new RegExp("\\p{Script=Han}|\\p{Script=Hiragana}|\\p{Script=Katakana}|\\p{Script=Hangul}|\\p{Emoji_Presentation}|[\\uff01-\\uff60\\u3000-\\u303e]","u");function Yu(e){const n=e.codePointAt(0);return n===void 0||n<4352?!1:OC.test(e)}const rs={fg:"",bg:"",attrs:[]},VC={22:["1","2"],23:["3"],24:["4"],25:["5","6"],27:["7"],28:["8"],29:["9"]};function Vy(e,n){const i=n===""?["0"]:n.split(";");let s=e;for(let a=0;a<i.length;a++){const u=String(i[a]);if(u===""||u==="0"){s=rs;continue}if(u==="38"||u==="48"){const p=i[a+1]??"",m=p==="2"?4:p==="5"?2:0,y=i.slice(a,a+m+1).join(";");s=u==="38"?{...s,fg:y}:{...s,bg:y},a+=m;continue}const c=VC[u];if(c!==void 0){s={...s,attrs:s.attrs.filter(p=>!c.includes(p))};continue}const d=Number(u);if(u==="39"){s={...s,fg:""};continue}if(u==="49"){s={...s,bg:""};continue}if(d>=30&&d<=37||d>=90&&d<=97){s={...s,fg:u};continue}if(d>=40&&d<=47||d>=100&&d<=107){s={...s,bg:u};continue}s.attrs.includes(u)||(s={...s,attrs:[...s.attrs,u]})}return s}function om(e){const n=[...e.attrs];return e.fg!==""&&n.push(e.fg),e.bg!==""&&n.push(e.bg),n.length===0?"":`\x1B[${n.join(";")}m`}function Vo(e,n){return e.fg===n.fg&&e.bg===n.bg&&e.attrs.length===n.attrs.length&&e.attrs.every((i,s)=>i===n.attrs[s])}function IC(e,n){var w;const i=/\u001b\[([\u0030-\u003f]*)[\u0020-\u002f]*([\u0040-\u007e])/g,s=[];let a=0,u=n,c=0;const d=(g,k)=>{var C;const x=s[g];(x==null?void 0:x.spacer)===!0&&g>0?s[g-1]={sgr:u,char:k}:x!==void 0&&Yu(x.char)&&((C=s[g+1])==null?void 0:C.spacer)===!0&&(s[g+1]={sgr:u,char:k}),s[g]={sgr:u,char:k}},p=g=>{for(const k of g){if(k==="\r"){a=0;continue}if(k==="\b"){a=Math.max(0,a-1);continue}if(k===" "){const x=a+sm-a%sm;for(;a<x;a++)s[a]??(s[a]={sgr:u,char:" "});continue}if(DC.test(k)){const x=a>0?s[a-1]:void 0;x!==void 0&&(s[a-1]={sgr:x.sgr,char:x.char+k});continue}d(a," "),s[a]={sgr:u,char:k},a++,Yu(k)&&(s[a]={sgr:u,char:"",spacer:!0},a++)}};for(const g of e.matchAll(i)){p(e.slice(c,g.index)),c=g.index+g[0].length;const k=String(g[1]),x=String(g[2]);if(x==="K"){const C=String(k.split(";")[0]);if(C==="1")for(let T=0;T<=a;T++)d(T," ");else s.length=C==="2"?0:a;continue}x==="m"&&(u=Vy(u,k))}p(e.slice(c));let m="",y=n;for(let g=0;g<s.length;g++){const k=s[g]??{sgr:rs,char:" "};Vo(k.sgr,y)||(Vo(y,rs)||(m+="\x1B[0m"),m+=om(k.sgr),y=k.sgr);const x=g>0&&Yu(((w=s[g-1])==null?void 0:w.char)??"");m+=k.spacer===!0&&!x?" ":k.char}return Vo(y,u)||(Vo(y,rs)||(m+="\x1B[0m"),m+=om(u)),{text:m,sgr:u}}function $C(e){const n=[];let i=rs;for(const s of e.split(`
517
+ `)){const a=s.replace(/\r+$/,"");if(AC.test(a)){const u=IC(a,i);n.push(u.text),i=u.sgr;continue}n.push(a);for(const u of a.matchAll(RC))i=Vy(i,String(u[1]))}return n.join(`
518
518
  `)}function zC(e){return $C(e.replace(jC,"").replace(LC,"")).replace(NC,"")}function FC(e){const n={},i=e.bg===null?void 0:`rgb(${e.bg})`;if(i!==void 0&&(n.backgroundColor=i),e.fg!==null){const s=`rgb(${e.fg})`;n.color=i===void 0?bC[e.fg.replace(/\s+/g,"")]??s:s}for(const s of e.decorations)Object.assign(n,MC[s]);return Object.keys(n).length===0?void 0:n}function BC(e){let n=[];const i=[n];for(const s of xk.ansiToJson(zC(e),{json:!0,remove_empty:!0})){const a=FC(s);for(const[u,c]of s.content.split(`
519
- `).entries())u>0&&(n=[],i.push(n)),c!==""&&n.push({text:c,style:a})}return i}function Vy(e,n,i){const s=e-n,a=Math.ceil(n/2);return{hidden:s,capped:s>0&&!i,headLines:a,tailLines:n-a}}const HC=1e3;function Iy(e){const[n,i]=M.useState(!1);return{copied:n,onCopy:M.useCallback(()=>{n||ui(e).then(s=>{s&&(i(!0),window.setTimeout(()=>{i(!1)},HC))})},[n,e])}}const UC=16,om={signal:e=>`信号 ${e}`,exitCode:e=>`退出码 ${e}`,running:"运行中",failed:"失败",done:"已完成",copy:"复制",copied:"复制成功",noOutput:"无输出",collapseAria:"收起输出",collapse:"收起",expandAria:e=>`展开其余 ${e} 行输出`,expand:e=>`… 其余 ${e} 行`};function WC(e,n){const i=e.replace(/[/\\]+$/,"");if(n!==void 0&&i===n.replace(/[/\\]+$/,""))return"~";const s=i.split(/[/\\]/).pop();return s===void 0||s===""?e:s}function $y(e,n,i){if(n!==void 0)return i.signal(n);if(e!==void 0&&e!==0)return i.exitCode(e)}function qC(e,n,i,s){return e?{state:"ongoing",label:s.running}:$y(n,i,s)!==void 0?{state:"error",label:s.failed}:{state:"done",label:s.done}}function am(e){return e.map((n,i)=>n.style===void 0?n.text:_.jsx("span",{style:n.style,children:n.text},i))}function KC({command:e,cwd:n,home:i,output:s,exitCode:a,signal:u,running:c=!1,maxLines:d=16,className:p,labels:m}){const y=M.useMemo(()=>m===void 0?om:{...om,...m},[m]),w=s??"",g=M.useMemo(()=>{const B=BC(w),oe=B[B.length-1];return B.length>1&&oe!==void 0&&oe.every(me=>me.text==="")?B.slice(0,-1):B},[w]),[k,x]=M.useState(!1),{copied:C,onCopy:T}=Iy(w),A=M.useCallback(()=>{x(B=>!B)},[]),D=$y(a,u,y),O=qC(c,a,u,y),z=M.useMemo(()=>(e.endsWith(`
519
+ `).entries())u>0&&(n=[],i.push(n)),c!==""&&n.push({text:c,style:a})}return i}function Iy(e,n,i){const s=e-n,a=Math.ceil(n/2);return{hidden:s,capped:s>0&&!i,headLines:a,tailLines:n-a}}const HC=1e3;function $y(e){const[n,i]=M.useState(!1);return{copied:n,onCopy:M.useCallback(()=>{n||ui(e).then(s=>{s&&(i(!0),window.setTimeout(()=>{i(!1)},HC))})},[n,e])}}const UC=16,am={signal:e=>`信号 ${e}`,exitCode:e=>`退出码 ${e}`,running:"运行中",failed:"失败",done:"已完成",copy:"复制",copied:"复制成功",noOutput:"无输出",collapseAria:"收起输出",collapse:"收起",expandAria:e=>`展开其余 ${e} 行输出`,expand:e=>`… 其余 ${e} 行`};function WC(e,n){const i=e.replace(/[/\\]+$/,"");if(n!==void 0&&i===n.replace(/[/\\]+$/,""))return"~";const s=i.split(/[/\\]/).pop();return s===void 0||s===""?e:s}function zy(e,n,i){if(n!==void 0)return i.signal(n);if(e!==void 0&&e!==0)return i.exitCode(e)}function qC(e,n,i,s){return e?{state:"ongoing",label:s.running}:zy(n,i,s)!==void 0?{state:"error",label:s.failed}:{state:"done",label:s.done}}function lm(e){return e.map((n,i)=>n.style===void 0?n.text:_.jsx("span",{style:n.style,children:n.text},i))}function KC({command:e,cwd:n,home:i,output:s,exitCode:a,signal:u,running:c=!1,maxLines:d=16,className:p,labels:m}){const y=M.useMemo(()=>m===void 0?am:{...am,...m},[m]),w=s??"",g=M.useMemo(()=>{const B=BC(w),oe=B[B.length-1];return B.length>1&&oe!==void 0&&oe.every(me=>me.text==="")?B.slice(0,-1):B},[w]),[k,x]=M.useState(!1),{copied:C,onCopy:T}=$y(w),A=M.useCallback(()=>{x(B=>!B)},[]),D=zy(a,u,y),O=qC(c,a,u,y),z=M.useMemo(()=>(e.endsWith(`
520
520
  `)?e.slice(0,-1):e).split(`
521
- `),[e]),V=g.every(B=>B.every(oe=>oe.text.trim()==="")),{hidden:F,capped:U,headLines:q,tailLines:$}=Vy(g.length,d,k);return _.jsxs("div",{className:ke(ut.block,p),"data-terminal":"","data-running":c?"":void 0,children:[_.jsxs("div",{className:ut.header,children:[_.jsxs("div",{className:ut.prompt,children:[_.jsx("span",{className:ut.runStateLabel,children:O.label}),z.map((B,oe)=>_.jsxs("div",{className:ut.promptLine,children:[oe===0&&_.jsx(by,{state:O.state,className:ut.runState}),_.jsx("span",{className:ut.cwd,children:oe>0||n===void 0?"$":WC(n,i)}),_.jsx("span",{className:ut.command,children:B})]},oe))]}),D!==void 0&&_.jsx(My,{className:ut.status,children:D}),!c&&!V&&_.jsx("button",{type:"button",className:ut.copyButton,onClick:T,children:C?y.copied:y.copy})]}),!c&&(V?_.jsx("div",{className:ut.empty,children:y.noOutput}):_.jsxs("div",{className:ut.output,children:[(U?g.slice(0,q):g).map((B,oe)=>_.jsx("div",{className:ut.line,children:am(B)},oe)),F>0&&_.jsx("button",{type:"button",className:ut.expand,"aria-expanded":k,"aria-label":k?y.collapseAria:y.expandAria(F),onClick:A,children:k?y.collapse:y.expand(F)}),U&&g.slice(g.length-$).map((B,oe)=>_.jsx("div",{className:ut.line,children:am(B)},oe))]}))]})}const GC=[hv,pv,mv],YC=new Map([["python",()=>$e(()=>import("./langs/python-B6aJPvgy.js"),[])],["ruby",()=>$e(()=>import("./langs/ruby-DCxyoPen.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))],["go",()=>$e(()=>import("./langs/go-C27-OAKa.js"),[])],["rust",()=>$e(()=>import("./langs/rust-B1yitclQ.js"),[])],["java",()=>$e(()=>import("./langs/java-CylS5w8V.js"),[])],["c",()=>$e(()=>import("./langs/c-BIGW1oBm.js"),[])],["cpp",()=>$e(()=>import("./langs/cpp-DIPi6g--.js"),__vite__mapDeps([8,9,5]))],["csharp",()=>$e(()=>import("./langs/csharp-DSvCPggb.js"),[])],["kotlin",()=>$e(()=>import("./langs/kotlin-BdnUsdx6.js"),[])],["swift",()=>$e(()=>import("./langs/swift-D82vCrfD.js"),[])],["php",()=>$e(()=>import("./langs/php-DDkx9sim.js"),__vite__mapDeps([12,1,2,3,4,5,6,7]))],["yaml",()=>$e(()=>import("./langs/yaml-Buea-lGh.js"),[])],["toml",()=>$e(()=>import("./langs/toml-vGWfd6FD.js"),[])],["ini",()=>$e(()=>import("./langs/ini-BEwlwnbL.js"),[])],["markdown",()=>$e(()=>import("./langs/markdown-Cvjx9yec.js"),[])],["mdx",()=>$e(()=>import("./langs/mdx-Cmh6b_Ma.js"),[])],["html",()=>$e(()=>import("./langs/html-CfGypltT.js").then(e=>e.a),__vite__mapDeps([1,2]))],["css",()=>$e(()=>import("./langs/css-CLj8gQPS.js"),[])],["scss",()=>$e(()=>import("./langs/scss-D5BDwBP9.js"),__vite__mapDeps([13,2]))],["less",()=>$e(()=>import("./langs/less-B1dDrJ26.js"),[])],["sql",()=>$e(()=>import("./langs/sql-CRqJ_cUM.js"),[])],["xml",()=>$e(()=>import("./langs/xml-sdJ4AIDG.js"),__vite__mapDeps([3,4]))],["lua",()=>$e(()=>import("./langs/lua-BaeVxFsk.js"),__vite__mapDeps([10,9]))]]),zy=new Map([["typescript","typescript"],["ts","typescript"],["tsx","typescript"],["javascript","typescript"],["js","typescript"],["jsx","typescript"],["shellscript","shellscript"],["bash","shellscript"],["sh","shellscript"],["shell","shellscript"],["zsh","shellscript"],["json","json"],["jsonc","json"],["py","python"],["python","python"],["rb","ruby"],["ruby","ruby"],["go","go"],["rs","rust"],["rust","rust"],["java","java"],["c","c"],["cpp","cpp"],["cs","csharp"],["csharp","csharp"],["kotlin","kotlin"],["swift","swift"],["php","php"],["yaml","yaml"],["yml","yaml"],["toml","toml"],["ini","ini"],["md","markdown"],["markdown","markdown"],["mdx","mdx"],["html","html"],["css","css"],["scss","scss"],["less","less"],["sql","sql"],["xml","xml"],["lua","lua"]]),XC=ov({name:"css-variables",variablePrefix:"--shiki-",fontStyle:!0}),ZC=av({forgiving:!0,regexConstructor:e=>dv(e,{lazyCompileLength:Number.POSITIVE_INFINITY})});let lm;const QC=[{lang:"typescript",code:"const answer: number = 42"},{lang:"shellscript",code:`printf '%s\\n' "$HOME"`},{lang:"json",code:'{"ready":true}'}];function JC(){const e=lv({themes:[XC],langs:GC,engine:ZC});for(const n of QC)e.codeToTokens(n.code,{lang:n.lang,theme:"css-variables",tokenizeTimeLimit:0});return e}function hs(){return lm??(lm=JC()),lm}const um=new Set,Dc=new Set;let Fy=0;function _f(e){return Dc.add(e),()=>{Dc.delete(e)}}function si(){return Fy}function By(e){const n=YC.get(e);return n===void 0||hs().getLoadedLanguages().includes(e)?!0:(um.has(e)||(um.add(e),n().then(i=>{hs().loadLanguageSync(i.default),Fy+=1;for(const s of Dc)s()})),!1)}var gm,vm;(vm=(gm=setTimeout(()=>{hs()},0)).unref)==null||vm.call(gm);function eE(e,n){const i=n===void 0?void 0:zy.get(n.toLowerCase());if(i!==void 0&&By(i))return hs().codeToHtml(e,{lang:i,theme:"css-variables"})}function Hy(e,n){const i=n===void 0?void 0:zy.get(n.toLowerCase());if(i===void 0||!By(i))return;const{tokens:s}=hs().codeToTokens(e,{lang:i,theme:"css-variables"}),a=s[s.length-1];return(s.length>1&&a!==void 0&&a.length===0?s.slice(0,-1):s).map(u=>u.map(c=>({text:c.content,style:{color:c.color}})))}const tE=16;function nE(e){return e.map((n,i)=>_.jsx("span",{style:n.style,children:n.text},i))}function rE({label:e,lines:n,totalLines:i,lang:s,maxLines:a=16,className:u}){const c=M.useMemo(()=>n.map(V=>V.text).join(`
522
- `),[n]),d=M.useMemo(()=>Hy(c,s),[c,s,M.useSyncExternalStore(_f,si,si)]),[p,m]=M.useState(!1),[y,w]=M.useState(!1),g=M.useCallback(()=>{y||ui(c).then(V=>{V&&(w(!0),window.setTimeout(()=>{w(!1)},1e3))})},[y,c]),k=M.useCallback(()=>{m(V=>!V)},[]),x=n.length-a,C=x>0&&!p,T=Math.ceil(a/2),A=a-T,D=n.length<i,O=V=>V.map(([F,U])=>_.jsxs("div",{className:Dt.line,children:[_.jsx("span",{className:Dt.gutter,"aria-hidden":!0,children:F.number}),_.jsx("span",{className:Dt.content,children:U===void 0?F.text:nE(U)})]},F.number)),z=n.map((V,F)=>[V,d==null?void 0:d[F]]);return _.jsxs("div",{className:ke(Dt.block,u),"data-read":"",children:[_.jsxs("div",{className:Dt.banner,children:[_.jsx("div",{className:Dt.label,children:e??""}),_.jsxs("div",{className:Dt.action,children:[D&&_.jsx("span",{className:Dt.count,children:`显示 ${n.length} / ${i} 行`}),_.jsx("span",{className:Dt.lang,children:s??""}),n.length>0&&_.jsx("button",{type:"button",className:Dt.copyButton,onClick:g,children:y?"复制成功":"复制"})]})]}),_.jsxs("div",{className:Dt.body,children:[O(C?z.slice(0,T):z),x>0&&_.jsx("button",{type:"button",className:Dt.expand,"aria-expanded":p,"aria-label":p?"收起内容":`展开其余 ${x} 行`,onClick:k,children:p?"收起":`… 其余 ${x} 行`}),C&&O(z.slice(z.length-A))]})]})}const iE=16;function sE(e){throw new Error(`unreachable diff row kind: ${String(e)}`)}const cm={path:Kt.path,del:Kt.del,add:Kt.add,gap:Kt.gap};function oE(e){const n=[],i=new Set;let s=0,a=0,u;for(const c of e){if(i.add(c.path),c.path!==u?n.push({kind:"path",text:c.path}):n.push({kind:"gap",text:"⋯"}),u=c.path,c.oldText!==null)for(const d of fm(c.oldText))n.push({kind:"del",text:d}),a++;for(const d of fm(c.newText))n.push({kind:"add",text:d}),s++}return{rows:n,added:s,removed:a,files:i.size}}function fm(e){return e===""?[]:(e.endsWith(`
521
+ `),[e]),V=g.every(B=>B.every(oe=>oe.text.trim()==="")),{hidden:F,capped:U,headLines:q,tailLines:$}=Iy(g.length,d,k);return _.jsxs("div",{className:ke(ut.block,p),"data-terminal":"","data-running":c?"":void 0,children:[_.jsxs("div",{className:ut.header,children:[_.jsxs("div",{className:ut.prompt,children:[_.jsx("span",{className:ut.runStateLabel,children:O.label}),z.map((B,oe)=>_.jsxs("div",{className:ut.promptLine,children:[oe===0&&_.jsx(My,{state:O.state,className:ut.runState}),_.jsx("span",{className:ut.cwd,children:oe>0||n===void 0?"$":WC(n,i)}),_.jsx("span",{className:ut.command,children:B})]},oe))]}),D!==void 0&&_.jsx(jy,{className:ut.status,children:D}),!c&&!V&&_.jsx("button",{type:"button",className:ut.copyButton,onClick:T,children:C?y.copied:y.copy})]}),!c&&(V?_.jsx("div",{className:ut.empty,children:y.noOutput}):_.jsxs("div",{className:ut.output,children:[(U?g.slice(0,q):g).map((B,oe)=>_.jsx("div",{className:ut.line,children:lm(B)},oe)),F>0&&_.jsx("button",{type:"button",className:ut.expand,"aria-expanded":k,"aria-label":k?y.collapseAria:y.expandAria(F),onClick:A,children:k?y.collapse:y.expand(F)}),U&&g.slice(g.length-$).map((B,oe)=>_.jsx("div",{className:ut.line,children:lm(B)},oe))]}))]})}const GC=[pv,mv,yv],YC=new Map([["python",()=>$e(()=>import("./langs/python-B6aJPvgy.js"),[])],["ruby",()=>$e(()=>import("./langs/ruby-dP0UDNDP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))],["go",()=>$e(()=>import("./langs/go-C27-OAKa.js"),[])],["rust",()=>$e(()=>import("./langs/rust-B1yitclQ.js"),[])],["java",()=>$e(()=>import("./langs/java-CylS5w8V.js"),[])],["c",()=>$e(()=>import("./langs/c-BIGW1oBm.js"),[])],["cpp",()=>$e(()=>import("./langs/cpp-DddhVWhK.js"),__vite__mapDeps([8,9]))],["csharp",()=>$e(()=>import("./langs/csharp-DSvCPggb.js"),[])],["kotlin",()=>$e(()=>import("./langs/kotlin-BdnUsdx6.js"),[])],["swift",()=>$e(()=>import("./langs/swift-C2oV4EkX.js"),[])],["php",()=>$e(()=>import("./langs/php-CFFe39Ui.js"),__vite__mapDeps([12,1,2,3,4,5,6,7]))],["yaml",()=>$e(()=>import("./langs/yaml-Buea-lGh.js"),[])],["toml",()=>$e(()=>import("./langs/toml-vGWfd6FD.js"),[])],["ini",()=>$e(()=>import("./langs/ini-BEwlwnbL.js"),[])],["markdown",()=>$e(()=>import("./langs/markdown-Cvjx9yec.js"),[])],["mdx",()=>$e(()=>import("./langs/mdx-Cmh6b_Ma.js"),[])],["html",()=>$e(()=>import("./langs/html-CfGypltT.js").then(e=>e.a),__vite__mapDeps([1,2]))],["css",()=>$e(()=>import("./langs/css-CLj8gQPS.js"),[])],["scss",()=>$e(()=>import("./langs/scss-D5BDwBP9.js"),__vite__mapDeps([13,2]))],["less",()=>$e(()=>import("./langs/less-B1dDrJ26.js"),[])],["sql",()=>$e(()=>import("./langs/sql-CRqJ_cUM.js"),[])],["xml",()=>$e(()=>import("./langs/xml-sdJ4AIDG.js"),__vite__mapDeps([3,4]))],["lua",()=>$e(()=>import("./langs/lua-BaeVxFsk.js"),__vite__mapDeps([10,9]))]]),Fy=new Map([["typescript","typescript"],["ts","typescript"],["tsx","typescript"],["javascript","typescript"],["js","typescript"],["jsx","typescript"],["shellscript","shellscript"],["bash","shellscript"],["sh","shellscript"],["shell","shellscript"],["zsh","shellscript"],["json","json"],["jsonc","json"],["py","python"],["python","python"],["rb","ruby"],["ruby","ruby"],["go","go"],["rs","rust"],["rust","rust"],["java","java"],["c","c"],["cpp","cpp"],["cs","csharp"],["csharp","csharp"],["kotlin","kotlin"],["swift","swift"],["php","php"],["yaml","yaml"],["yml","yaml"],["toml","toml"],["ini","ini"],["md","markdown"],["markdown","markdown"],["mdx","mdx"],["html","html"],["css","css"],["scss","scss"],["less","less"],["sql","sql"],["xml","xml"],["lua","lua"]]),XC=av({name:"css-variables",variablePrefix:"--shiki-",fontStyle:!0}),ZC=lv({forgiving:!0,regexConstructor:e=>hv(e,{lazyCompileLength:Number.POSITIVE_INFINITY})});let um;const QC=[{lang:"typescript",code:"const answer: number = 42"},{lang:"shellscript",code:`printf '%s\\n' "$HOME"`},{lang:"json",code:'{"ready":true}'}];function JC(){const e=uv({themes:[XC],langs:GC,engine:ZC});for(const n of QC)e.codeToTokens(n.code,{lang:n.lang,theme:"css-variables",tokenizeTimeLimit:0});return e}function hs(){return um??(um=JC()),um}const cm=new Set,Dc=new Set;let By=0;function _f(e){return Dc.add(e),()=>{Dc.delete(e)}}function si(){return By}function Hy(e){const n=YC.get(e);return n===void 0||hs().getLoadedLanguages().includes(e)?!0:(cm.has(e)||(cm.add(e),n().then(i=>{hs().loadLanguageSync(i.default),By+=1;for(const s of Dc)s()})),!1)}var vm,wm;(wm=(vm=setTimeout(()=>{hs()},0)).unref)==null||wm.call(vm);function eE(e,n){const i=n===void 0?void 0:Fy.get(n.toLowerCase());if(i!==void 0&&Hy(i))return hs().codeToHtml(e,{lang:i,theme:"css-variables"})}function Uy(e,n){const i=n===void 0?void 0:Fy.get(n.toLowerCase());if(i===void 0||!Hy(i))return;const{tokens:s}=hs().codeToTokens(e,{lang:i,theme:"css-variables"}),a=s[s.length-1];return(s.length>1&&a!==void 0&&a.length===0?s.slice(0,-1):s).map(u=>u.map(c=>({text:c.content,style:{color:c.color}})))}const tE=16;function nE(e){return e.map((n,i)=>_.jsx("span",{style:n.style,children:n.text},i))}function rE({label:e,lines:n,totalLines:i,lang:s,maxLines:a=16,className:u}){const c=M.useMemo(()=>n.map(V=>V.text).join(`
522
+ `),[n]),d=M.useMemo(()=>Uy(c,s),[c,s,M.useSyncExternalStore(_f,si,si)]),[p,m]=M.useState(!1),[y,w]=M.useState(!1),g=M.useCallback(()=>{y||ui(c).then(V=>{V&&(w(!0),window.setTimeout(()=>{w(!1)},1e3))})},[y,c]),k=M.useCallback(()=>{m(V=>!V)},[]),x=n.length-a,C=x>0&&!p,T=Math.ceil(a/2),A=a-T,D=n.length<i,O=V=>V.map(([F,U])=>_.jsxs("div",{className:Dt.line,children:[_.jsx("span",{className:Dt.gutter,"aria-hidden":!0,children:F.number}),_.jsx("span",{className:Dt.content,children:U===void 0?F.text:nE(U)})]},F.number)),z=n.map((V,F)=>[V,d==null?void 0:d[F]]);return _.jsxs("div",{className:ke(Dt.block,u),"data-read":"",children:[_.jsxs("div",{className:Dt.banner,children:[_.jsx("div",{className:Dt.label,children:e??""}),_.jsxs("div",{className:Dt.action,children:[D&&_.jsx("span",{className:Dt.count,children:`显示 ${n.length} / ${i} 行`}),_.jsx("span",{className:Dt.lang,children:s??""}),n.length>0&&_.jsx("button",{type:"button",className:Dt.copyButton,onClick:g,children:y?"复制成功":"复制"})]})]}),_.jsxs("div",{className:Dt.body,children:[O(C?z.slice(0,T):z),x>0&&_.jsx("button",{type:"button",className:Dt.expand,"aria-expanded":p,"aria-label":p?"收起内容":`展开其余 ${x} 行`,onClick:k,children:p?"收起":`… 其余 ${x} 行`}),C&&O(z.slice(z.length-A))]})]})}const iE=16;function sE(e){throw new Error(`unreachable diff row kind: ${String(e)}`)}const fm={path:Kt.path,del:Kt.del,add:Kt.add,gap:Kt.gap};function oE(e){const n=[],i=new Set;let s=0,a=0,u;for(const c of e){if(i.add(c.path),c.path!==u?n.push({kind:"path",text:c.path}):n.push({kind:"gap",text:"⋯"}),u=c.path,c.oldText!==null)for(const d of dm(c.oldText))n.push({kind:"del",text:d}),a++;for(const d of dm(c.newText))n.push({kind:"add",text:d}),s++}return{rows:n,added:s,removed:a,files:i.size}}function dm(e){return e===""?[]:(e.endsWith(`
523
523
  `)?e.slice(0,-1):e).split(`
524
524
  `)}function aE(e){return e.map(n=>{switch(n.kind){case"del":return`- ${n.text}`;case"add":return`+ ${n.text}`;case"path":return n.text;case"gap":return n.text;default:return sE(n.kind)}}).join(`
525
- `)}const lE={copy:"Copy",copied:"Copied",collapseAria:"Collapse diff",expandAria:e=>`Expand the remaining ${e} diff lines`,collapse:"Collapse",expand:e=>`… ${e} more lines`,file:"file",files:"files"};function uE({diffs:e,maxLines:n=16,className:i,labels:s=lE,appearance:a="card"}){const{rows:u,added:c,removed:d,files:p}=M.useMemo(()=>oE(e),[e]),m=a==="file"?u.filter(F=>F.kind!=="path"):u,[y,w]=M.useState(!1),[g,k]=M.useState(!1),x=M.useCallback(()=>{g||ui(aE(u)).then(F=>{F&&(k(!0),window.setTimeout(()=>{k(!1)},1e3))})},[g,u]),C=M.useCallback(()=>{w(F=>!F)},[]);if(u.length===0)return null;const T=m.length-n,A=T>0&&!y,D=Math.ceil(n/2),O=n-D,z=A?m.slice(0,D):m,V=A?m.slice(m.length-O):[];return _.jsxs("div",{className:ke(Kt.block,i),"data-diff":"","data-appearance":a,children:[_.jsx("button",{type:"button",className:Kt.copyButton,"aria-label":g?s.copied:s.copy,title:g?s.copied:s.copy,onClick:x,children:g?_.jsx(ma,{size:14,"aria-hidden":"true"}):_.jsx(Wc,{size:14,"aria-hidden":"true"})}),_.jsxs("div",{className:Kt.body,children:[z.map((F,U)=>_.jsx("div",{className:ke(Kt.line,cm[F.kind]),children:F.text},U)),T>0&&_.jsx("button",{type:"button",className:Kt.expand,"aria-expanded":y,"aria-label":y?s.collapseAria:s.expandAria(T),onClick:C,children:y?s.collapse:s.expand(T)}),V.map((F,U)=>_.jsx("div",{className:ke(Kt.line,cm[F.kind]),children:F.text},U))]}),a==="card"&&_.jsxs("div",{className:Kt.footer,children:["└ +",c," -",d," · ",p," ",p===1?s.file:s.files]})]})}const cE=16;function fE(e){return e.kind==="paths"?e.paths.join(`
525
+ `)}const lE={copy:"Copy",copied:"Copied",collapseAria:"Collapse diff",expandAria:e=>`Expand the remaining ${e} diff lines`,collapse:"Collapse",expand:e=>`… ${e} more lines`,file:"file",files:"files"};function uE({diffs:e,maxLines:n=16,className:i,labels:s=lE,appearance:a="card"}){const{rows:u,added:c,removed:d,files:p}=M.useMemo(()=>oE(e),[e]),m=a==="file"?u.filter(F=>F.kind!=="path"):u,[y,w]=M.useState(!1),[g,k]=M.useState(!1),x=M.useCallback(()=>{g||ui(aE(u)).then(F=>{F&&(k(!0),window.setTimeout(()=>{k(!1)},1e3))})},[g,u]),C=M.useCallback(()=>{w(F=>!F)},[]);if(u.length===0)return null;const T=m.length-n,A=T>0&&!y,D=Math.ceil(n/2),O=n-D,z=A?m.slice(0,D):m,V=A?m.slice(m.length-O):[];return _.jsxs("div",{className:ke(Kt.block,i),"data-diff":"","data-appearance":a,children:[_.jsx("button",{type:"button",className:Kt.copyButton,"aria-label":g?s.copied:s.copy,title:g?s.copied:s.copy,onClick:x,children:g?_.jsx(ma,{size:14,"aria-hidden":"true"}):_.jsx(Wc,{size:14,"aria-hidden":"true"})}),_.jsxs("div",{className:Kt.body,children:[z.map((F,U)=>_.jsx("div",{className:ke(Kt.line,fm[F.kind]),children:F.text},U)),T>0&&_.jsx("button",{type:"button",className:Kt.expand,"aria-expanded":y,"aria-label":y?s.collapseAria:s.expandAria(T),onClick:C,children:y?s.collapse:s.expand(T)}),V.map((F,U)=>_.jsx("div",{className:ke(Kt.line,fm[F.kind]),children:F.text},U))]}),a==="card"&&_.jsxs("div",{className:Kt.footer,children:["└ +",c," -",d," · ",p," ",p===1?s.file:s.files]})]})}const cE=16;function fE(e){return e.kind==="paths"?e.paths.join(`
526
526
  `):e.files.map(n=>[n.path,...n.matches.map(i=>`${i.lineNumber}: ${i.line}`)].join(`
527
527
  `)).join(`
528
528
 
529
- `)}function dE(e){return e.kind==="paths"?e.paths.length:e.files.reduce((n,i)=>n+i.matches.length,0)}function hE(e,n,i,s){const a=i?`显示 ${n} / 共 ${s}`:`${n}`;return e.kind==="paths"?`${a} 个路径`:`${a} 处匹配 · ${e.files.length} 个文件`}function pE(e,n){if(e.kind==="paths")return e.paths.map(s=>({type:"path",path:s}));const i=[];return e.files.forEach((s,a)=>{const u=n.has(a);if(i.push({type:"file",path:s.path,count:s.matches.length,index:a,collapsed:u}),!u)for(const c of s.matches)i.push({type:"match",lineNumber:c.lineNumber,line:c.line,key:`${a}:${c.lineNumber}`,fileIndex:a})}),i}function Xu(e){switch(e.type){case"match":return`match:${e.key}`;case"file":return`file:${e.index}`;case"path":return`path:${e.path}`}}function mE(e){const{truncated:n,total:i,maxLines:s=16,className:a}=e,[u,c]=M.useState(!1),[d,p]=M.useState(()=>new Set),m=pE(e,d),y=dE(e),w=m.length===0,{copied:g,onCopy:k}=Iy(fE(e)),x=M.useCallback(()=>{c(B=>!B)},[]),C=M.useCallback(B=>{p(oe=>{const me=new Set(oe);return me.has(B)?me.delete(B):me.add(B),me})},[]),{hidden:T,capped:A,headLines:D,tailLines:O}=Vy(m.length,s,u),z=A?m.slice(0,D):m,V=A?m.slice(m.length-O):[],F=V[0],U=(F==null?void 0:F.type)==="match"&&!z.some(B=>B.type==="file"&&B.index===F.fileIndex)?m.find(B=>B.type==="file"&&B.index===F.fileIndex):void 0,q=U===void 0?V:V.slice(1),$=B=>B.type==="path"?_.jsx("div",{className:Ct.line,children:B.path}):B.type==="match"?_.jsxs("div",{className:Ct.line,children:[_.jsxs("span",{className:Ct.lineNumber,children:[B.lineNumber,": "]}),B.line]}):_.jsxs("button",{type:"button",className:Ct.fileHeader,"aria-expanded":!B.collapsed,onClick:()=>{C(B.index)},children:[_.jsx("span",{className:Ct.filePath,children:B.path}),_.jsx("span",{className:Ct.fileCount,children:B.count})]});return _.jsxs("div",{className:ke(Ct.block,a),"data-search":e.kind,children:[_.jsxs("div",{className:Ct.header,children:[_.jsx("span",{className:Ct.summary,children:hE(e,y,n,i)}),!w&&_.jsx("button",{type:"button",className:Ct.copyButton,onClick:k,children:g?"复制成功":"复制"})]}),w?_.jsx("div",{className:Ct.empty,children:"无结果"}):_.jsxs("div",{className:Ct.body,children:[z.map(B=>_.jsx("div",{children:$(B)},Xu(B))),T>0&&_.jsx("button",{type:"button",className:Ct.expand,"aria-expanded":u,"aria-label":u?"收起结果":`展开其余 ${T} 行结果`,onClick:x,children:u?"收起":`… 其余 ${T} 行`}),U!==void 0&&_.jsx("div",{children:$(U)},`tailHeader:${Xu(U)}`),q.map(B=>_.jsx("div",{children:$(B)},Xu(B)))]})]})}const yE=2;function dm(e,n,i){var a;const s=(a=e.position)==null?void 0:a.start.offset;return s===void 0?-(i+1):n+s}var gE=class{constructor(e){I(this,"parse");I(this,"prevText","");I(this,"tailStart",0);I(this,"frozen",[]);I(this,"generation",0);I(this,"cached",null);this.parse=e}update(e){var u,c;if(this.cached!==null&&e===this.prevText)return this.cached;e.startsWith(this.prevText)||(this.prevText="",this.tailStart=0,this.frozen=[],this.generation+=1),this.prevText=e;const n=this.tailStart,i=this.parse(e.slice(n)).children;let s=Math.max(0,i.length-yE);if(s>0){const d=(c=(u=i[s-1])==null?void 0:u.position)==null?void 0:c.end.offset;if(d===void 0)s=0;else{for(const p of i.slice(0,s))this.frozen.push({node:p,key:dm(p,n,this.frozen.length)});this.tailStart=n+d}}const a=i.slice(s).map((d,p)=>({node:d,key:dm(d,n,p)}));return this.cached={frozen:[...this.frozen],tail:a,generation:this.generation},this.cached}};const vE=new RegExp(["\\p{Script_Extensions=Han}","\\p{Script_Extensions=Hiragana}","\\p{Script_Extensions=Katakana}","\\p{Script_Extensions=Hangul}","\\p{Script_Extensions=Bopomofo}"].join("|"),"u");function wE(e){return e!==null&&e>=0&&vE.test(String.fromCodePoint(e))}const xE=function(e,n,i){const s=this.parser.constructs.attentionMarkers.null;if(s===void 0)throw new Error("micromark CommonMark attention markers are unavailable");const a=s,u=this.previous,c=vp(u);let d=xe.eof;return p;function p(y){return y!==xe.asterisk?i(y):(d=y,e.enter("attentionSequence"),m(y))}function m(y){if(y===d)return e.consume(y),m;const w=e.exit("attentionSequence"),g=vp(y),k=!g||g===Ju.characterGroupPunctuation&&!!c||a.includes(y),x=!c||c===Ju.characterGroupPunctuation&&!!g||a.includes(u),C=w.end.offset-w.start.offset>=2&&fv(u)&&wE(y),T=x||C;return w._open=k,w._close=T,n(y)}},_E={name:"cjkFriendlyAttention",resolveAll:cv.resolveAll,tokenize:xE},kE={text:{[xe.asterisk]:_E}};function Uy(){return kE}const SE=function(e){if(e!==xe.backslash)return!0;const n=this.events.at(-1);return n===void 0?!1:n[1].type===Pt.characterEscape},CE=function(e,n,i){return s;function s(k){return k!==xe.backslash?i(k):(e.enter("mathText"),e.enter("mathTextSequence"),e.consume(k),a)}function a(k){return k!==xe.leftParenthesis?i(k):(e.consume(k),e.exit("mathTextSequence"),u)}function u(k){return k===xe.eof?i(k):k===xe.backslash?e.attempt({partial:!0,tokenize:w},y,c)(k):Jr(k)?(e.enter(Pt.lineEnding),e.consume(k),e.exit(Pt.lineEnding),u):d(k)}function c(k){return e.check({partial:!0,tokenize:g},i,d)(k)}function d(k){return e.enter("mathTextData"),e.consume(k),k===xe.backslash?p:m}function p(k){return k===xe.backslash?(e.consume(k),m):m(k)}function m(k){return k===xe.eof||k===xe.backslash||Jr(k)?(e.exit("mathTextData"),u(k)):(e.consume(k),m)}function y(k){return e.exit("mathText"),n(k)}function w(k,x,C){return T;function T(D){return D!==xe.backslash?C(D):(k.enter("mathTextSequence"),k.consume(D),A)}function A(D){return D!==xe.rightParenthesis?C(D):(k.consume(D),k.exit("mathTextSequence"),x)}}function g(k,x,C){return T;function T(D){return D!==xe.backslash?C(D):(k.enter(Pt.chunkString),k.consume(D),A)}function A(D){return D!==xe.leftParenthesis?C(D):(k.consume(D),k.exit(Pt.chunkString),x)}}};function Wy(e,n,i,s){const a=function(u,c,d){const p=this;let m=!1;const y=p.events.at(-1),w=(y==null?void 0:y[1].type)===Pt.linePrefix?y[2].sliceSerialize(y[1],!0).length:0;return g;function g($){return $!==e?d($):(u.enter("mathFlow"),u.enter("mathFlowFence"),u.enter("mathFlowFenceSequence"),u.consume($),k)}function k($){return $!==n?d($):(u.consume($),u.exit("mathFlowFenceSequence"),u.exit("mathFlowFence"),e===xe.dollarSign?x:C)}function x($){return $===xe.dollarSign?d($):C($)}function C($){return $===xe.eof?d($):$===e&&(e!==xe.dollarSign||!m)?u.attempt({partial:!0,tokenize:U},F,T)($):Jr($)?s?u.attempt(TE,A,d)($):d($):D($)}function T($){return e===xe.backslash?u.check({partial:!0,tokenize:q},d,O)($):O($)}function A($){return u.attempt({partial:!0,tokenize:U},F,w?pu(u,C,Pt.linePrefix,w+1):C)($)}function D($){return u.enter("mathFlowValue"),m=$===xe.backslash,u.consume($),V}function O($){return u.enter("mathFlowValue"),m=!1,u.consume($),z}function z($){return $===e?(u.consume($),V):V($)}function V($){return $===xe.eof||$===e||Jr($)?(u.exit("mathFlowValue"),C($)):(m=$===xe.backslash?!m:!1,u.consume($),V)}function F($){return u.exit("mathFlow"),c($)}function U($,B,oe){return pu($,me,Pt.linePrefix,Ju.tabSize);function me(ce){return ce!==e?oe(ce):($.enter("mathFlowFence"),$.enter("mathFlowFenceSequence"),$.consume(ce),J)}function J(ce){return ce!==i?oe(ce):($.consume(ce),$.exit("mathFlowFenceSequence"),pu($,ae,Pt.whitespace))}function ae(ce){return ce!==xe.eof&&!Jr(ce)?oe(ce):($.exit("mathFlowFence"),B(ce))}}function q($,B,oe){return me;function me(ae){return ae!==e?oe(ae):($.enter(Pt.chunkString),$.consume(ae),J)}function J(ae){return ae!==n?oe(ae):($.consume(ae),$.exit(Pt.chunkString),B)}}};return{concrete:!0,name:e===xe.dollarSign?"sameLineDollarMathFlow":"backslashMathFlow",tokenize:a}}const EE=function(e,n,i){const s=this;return a;function a(c){return c===xe.eof?n(c):Jr(c)?(e.enter(Pt.lineEnding),e.consume(c),e.exit(Pt.lineEnding),u):i(c)}function u(c){return s.parser.lazy[s.now().line]?i(c):n(c)}},TE={partial:!0,tokenize:EE},PE={name:"backslashMathText",previous:SE,tokenize:CE},bE=Wy(xe.backslash,xe.leftSquareBracket,xe.rightSquareBracket,!0),ME=Wy(xe.dollarSign,xe.dollarSign,xe.dollarSign,!1),jE={flow:{[xe.backslash]:bE,[xe.dollarSign]:ME},text:{[xe.backslash]:PE}};function LE(){return jE}function qy(e){return wm(e,{extensions:[xm(),Uy()],mdastExtensions:[_m()]})}function NE(e){return wm(e,{extensions:[xm(),Uy(),LE(),uv()],mdastExtensions:[_m(),yv()]})}function Ky({code:e,lang:n,className:i,copyLabel:s="复制",copiedLabel:a="复制成功"}){const u=e.endsWith(`
530
- `)?e.slice(0,-1):e,c=M.useMemo(()=>eE(u,n),[u,n,M.useSyncExternalStore(_f,si,si)]),d=M.useRef(null),[p,m]=M.useState(!1),y=M.useCallback(()=>{var g,k;p||ui(((k=(g=d.current)==null?void 0:g.querySelector("pre"))==null?void 0:k.textContent)??u).then(x=>{x&&(m(!0),window.setTimeout(()=>{m(!1)},1e3))})},[p,u]),w=c===void 0?_.jsx("pre",{className:fr.plain,children:_.jsx("code",{children:u})}):_.jsx("div",{dangerouslySetInnerHTML:{__html:c}});return _.jsxs("div",{ref:d,className:ke(fr.block,"md-code-block",i),children:[_.jsx("div",{className:fr.bannerWrap,children:_.jsxs("div",{className:fr.banner,children:[_.jsx("div",{className:fr.infostring,children:n??""}),_.jsx("div",{className:fr.action,children:_.jsx("button",{type:"button",className:fr.copyButton,onClick:y,children:p?a:s})})]})}),w]})}function AE(e){const n={};for(const i of e.split(";")){const s=i.indexOf(":");if(s===-1)continue;const a=i.slice(0,s).trim().replace(/-([a-z])/g,(u,c)=>c.toUpperCase());n[a]=i.slice(s+1).trim()}return n}function Gy(e,n){if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.nodeType!==Node.ELEMENT_NODE)return null;const i=e,s={key:n};for(const u of i.attributes)u.name==="class"?s.className=u.value:u.name==="style"?s.style=AE(u.value):s[u.name]=u.value;const a=[...i.childNodes].map(Gy);return a.length===0?M.createElement(i.localName,s):M.createElement(i.localName,s,...a)}function Oc(e,n){let i;try{i=wp.renderToString(e,{displayMode:n,throwOnError:!0})}catch(s){try{i=wp.renderToString(e,{displayMode:n,strict:"ignore",throwOnError:!1})}catch{return _.jsx("span",{className:"katex-error",style:{color:"#cc0000"},title:String(s),children:e})}}return[...new DOMParser().parseFromString(i,"text/html").body.childNodes].map(Gy)}function Yy(e){try{switch(new URL(e).protocol){case"http:":case"https:":case"mailto:":return e;default:return""}}catch{return""}}function RE(e){try{const n=new URL(e).protocol;return n==="http:"||n==="https:"?e:void 0}catch{return}}function Vc(){return{definitions:new Map,footnotes:new Map}}function ca(e,n){for(const i of e){if(i.type==="definition"){const s=i.identifier.toUpperCase();n.definitions.has(s)||n.definitions.set(s,i)}else if(i.type==="footnoteDefinition"){const s=i.identifier.toUpperCase();n.footnotes.has(s)||n.footnotes.set(s,i)}"children"in i&&ca(i.children,n)}}function Ic(e,n){return e.map(i=>Sf(i.node,i.key,n)).filter(i=>i!==null)}function kf(e,n){const i=[];for(const s of e)(n||i.length>0)&&i.push(`
529
+ `)}function dE(e){return e.kind==="paths"?e.paths.length:e.files.reduce((n,i)=>n+i.matches.length,0)}function hE(e,n,i,s){const a=i?`显示 ${n} / 共 ${s}`:`${n}`;return e.kind==="paths"?`${a} 个路径`:`${a} 处匹配 · ${e.files.length} 个文件`}function pE(e,n){if(e.kind==="paths")return e.paths.map(s=>({type:"path",path:s}));const i=[];return e.files.forEach((s,a)=>{const u=n.has(a);if(i.push({type:"file",path:s.path,count:s.matches.length,index:a,collapsed:u}),!u)for(const c of s.matches)i.push({type:"match",lineNumber:c.lineNumber,line:c.line,key:`${a}:${c.lineNumber}`,fileIndex:a})}),i}function Xu(e){switch(e.type){case"match":return`match:${e.key}`;case"file":return`file:${e.index}`;case"path":return`path:${e.path}`}}function mE(e){const{truncated:n,total:i,maxLines:s=16,className:a}=e,[u,c]=M.useState(!1),[d,p]=M.useState(()=>new Set),m=pE(e,d),y=dE(e),w=m.length===0,{copied:g,onCopy:k}=$y(fE(e)),x=M.useCallback(()=>{c(B=>!B)},[]),C=M.useCallback(B=>{p(oe=>{const me=new Set(oe);return me.has(B)?me.delete(B):me.add(B),me})},[]),{hidden:T,capped:A,headLines:D,tailLines:O}=Iy(m.length,s,u),z=A?m.slice(0,D):m,V=A?m.slice(m.length-O):[],F=V[0],U=(F==null?void 0:F.type)==="match"&&!z.some(B=>B.type==="file"&&B.index===F.fileIndex)?m.find(B=>B.type==="file"&&B.index===F.fileIndex):void 0,q=U===void 0?V:V.slice(1),$=B=>B.type==="path"?_.jsx("div",{className:Ct.line,children:B.path}):B.type==="match"?_.jsxs("div",{className:Ct.line,children:[_.jsxs("span",{className:Ct.lineNumber,children:[B.lineNumber,": "]}),B.line]}):_.jsxs("button",{type:"button",className:Ct.fileHeader,"aria-expanded":!B.collapsed,onClick:()=>{C(B.index)},children:[_.jsx("span",{className:Ct.filePath,children:B.path}),_.jsx("span",{className:Ct.fileCount,children:B.count})]});return _.jsxs("div",{className:ke(Ct.block,a),"data-search":e.kind,children:[_.jsxs("div",{className:Ct.header,children:[_.jsx("span",{className:Ct.summary,children:hE(e,y,n,i)}),!w&&_.jsx("button",{type:"button",className:Ct.copyButton,onClick:k,children:g?"复制成功":"复制"})]}),w?_.jsx("div",{className:Ct.empty,children:"无结果"}):_.jsxs("div",{className:Ct.body,children:[z.map(B=>_.jsx("div",{children:$(B)},Xu(B))),T>0&&_.jsx("button",{type:"button",className:Ct.expand,"aria-expanded":u,"aria-label":u?"收起结果":`展开其余 ${T} 行结果`,onClick:x,children:u?"收起":`… 其余 ${T} 行`}),U!==void 0&&_.jsx("div",{children:$(U)},`tailHeader:${Xu(U)}`),q.map(B=>_.jsx("div",{children:$(B)},Xu(B)))]})]})}const yE=2;function hm(e,n,i){var a;const s=(a=e.position)==null?void 0:a.start.offset;return s===void 0?-(i+1):n+s}var gE=class{constructor(e){I(this,"parse");I(this,"prevText","");I(this,"tailStart",0);I(this,"frozen",[]);I(this,"generation",0);I(this,"cached",null);this.parse=e}update(e){var u,c;if(this.cached!==null&&e===this.prevText)return this.cached;e.startsWith(this.prevText)||(this.prevText="",this.tailStart=0,this.frozen=[],this.generation+=1),this.prevText=e;const n=this.tailStart,i=this.parse(e.slice(n)).children;let s=Math.max(0,i.length-yE);if(s>0){const d=(c=(u=i[s-1])==null?void 0:u.position)==null?void 0:c.end.offset;if(d===void 0)s=0;else{for(const p of i.slice(0,s))this.frozen.push({node:p,key:hm(p,n,this.frozen.length)});this.tailStart=n+d}}const a=i.slice(s).map((d,p)=>({node:d,key:hm(d,n,p)}));return this.cached={frozen:[...this.frozen],tail:a,generation:this.generation},this.cached}};const vE=new RegExp(["\\p{Script_Extensions=Han}","\\p{Script_Extensions=Hiragana}","\\p{Script_Extensions=Katakana}","\\p{Script_Extensions=Hangul}","\\p{Script_Extensions=Bopomofo}"].join("|"),"u");function wE(e){return e!==null&&e>=0&&vE.test(String.fromCodePoint(e))}const xE=function(e,n,i){const s=this.parser.constructs.attentionMarkers.null;if(s===void 0)throw new Error("micromark CommonMark attention markers are unavailable");const a=s,u=this.previous,c=vp(u);let d=xe.eof;return p;function p(y){return y!==xe.asterisk?i(y):(d=y,e.enter("attentionSequence"),m(y))}function m(y){if(y===d)return e.consume(y),m;const w=e.exit("attentionSequence"),g=vp(y),k=!g||g===Ju.characterGroupPunctuation&&!!c||a.includes(y),x=!c||c===Ju.characterGroupPunctuation&&!!g||a.includes(u),C=w.end.offset-w.start.offset>=2&&dv(u)&&wE(y),T=x||C;return w._open=k,w._close=T,n(y)}},_E={name:"cjkFriendlyAttention",resolveAll:fv.resolveAll,tokenize:xE},kE={text:{[xe.asterisk]:_E}};function Wy(){return kE}const SE=function(e){if(e!==xe.backslash)return!0;const n=this.events.at(-1);return n===void 0?!1:n[1].type===Pt.characterEscape},CE=function(e,n,i){return s;function s(k){return k!==xe.backslash?i(k):(e.enter("mathText"),e.enter("mathTextSequence"),e.consume(k),a)}function a(k){return k!==xe.leftParenthesis?i(k):(e.consume(k),e.exit("mathTextSequence"),u)}function u(k){return k===xe.eof?i(k):k===xe.backslash?e.attempt({partial:!0,tokenize:w},y,c)(k):Jr(k)?(e.enter(Pt.lineEnding),e.consume(k),e.exit(Pt.lineEnding),u):d(k)}function c(k){return e.check({partial:!0,tokenize:g},i,d)(k)}function d(k){return e.enter("mathTextData"),e.consume(k),k===xe.backslash?p:m}function p(k){return k===xe.backslash?(e.consume(k),m):m(k)}function m(k){return k===xe.eof||k===xe.backslash||Jr(k)?(e.exit("mathTextData"),u(k)):(e.consume(k),m)}function y(k){return e.exit("mathText"),n(k)}function w(k,x,C){return T;function T(D){return D!==xe.backslash?C(D):(k.enter("mathTextSequence"),k.consume(D),A)}function A(D){return D!==xe.rightParenthesis?C(D):(k.consume(D),k.exit("mathTextSequence"),x)}}function g(k,x,C){return T;function T(D){return D!==xe.backslash?C(D):(k.enter(Pt.chunkString),k.consume(D),A)}function A(D){return D!==xe.leftParenthesis?C(D):(k.consume(D),k.exit(Pt.chunkString),x)}}};function qy(e,n,i,s){const a=function(u,c,d){const p=this;let m=!1;const y=p.events.at(-1),w=(y==null?void 0:y[1].type)===Pt.linePrefix?y[2].sliceSerialize(y[1],!0).length:0;return g;function g($){return $!==e?d($):(u.enter("mathFlow"),u.enter("mathFlowFence"),u.enter("mathFlowFenceSequence"),u.consume($),k)}function k($){return $!==n?d($):(u.consume($),u.exit("mathFlowFenceSequence"),u.exit("mathFlowFence"),e===xe.dollarSign?x:C)}function x($){return $===xe.dollarSign?d($):C($)}function C($){return $===xe.eof?d($):$===e&&(e!==xe.dollarSign||!m)?u.attempt({partial:!0,tokenize:U},F,T)($):Jr($)?s?u.attempt(TE,A,d)($):d($):D($)}function T($){return e===xe.backslash?u.check({partial:!0,tokenize:q},d,O)($):O($)}function A($){return u.attempt({partial:!0,tokenize:U},F,w?pu(u,C,Pt.linePrefix,w+1):C)($)}function D($){return u.enter("mathFlowValue"),m=$===xe.backslash,u.consume($),V}function O($){return u.enter("mathFlowValue"),m=!1,u.consume($),z}function z($){return $===e?(u.consume($),V):V($)}function V($){return $===xe.eof||$===e||Jr($)?(u.exit("mathFlowValue"),C($)):(m=$===xe.backslash?!m:!1,u.consume($),V)}function F($){return u.exit("mathFlow"),c($)}function U($,B,oe){return pu($,me,Pt.linePrefix,Ju.tabSize);function me(ce){return ce!==e?oe(ce):($.enter("mathFlowFence"),$.enter("mathFlowFenceSequence"),$.consume(ce),J)}function J(ce){return ce!==i?oe(ce):($.consume(ce),$.exit("mathFlowFenceSequence"),pu($,ae,Pt.whitespace))}function ae(ce){return ce!==xe.eof&&!Jr(ce)?oe(ce):($.exit("mathFlowFence"),B(ce))}}function q($,B,oe){return me;function me(ae){return ae!==e?oe(ae):($.enter(Pt.chunkString),$.consume(ae),J)}function J(ae){return ae!==n?oe(ae):($.consume(ae),$.exit(Pt.chunkString),B)}}};return{concrete:!0,name:e===xe.dollarSign?"sameLineDollarMathFlow":"backslashMathFlow",tokenize:a}}const EE=function(e,n,i){const s=this;return a;function a(c){return c===xe.eof?n(c):Jr(c)?(e.enter(Pt.lineEnding),e.consume(c),e.exit(Pt.lineEnding),u):i(c)}function u(c){return s.parser.lazy[s.now().line]?i(c):n(c)}},TE={partial:!0,tokenize:EE},PE={name:"backslashMathText",previous:SE,tokenize:CE},bE=qy(xe.backslash,xe.leftSquareBracket,xe.rightSquareBracket,!0),ME=qy(xe.dollarSign,xe.dollarSign,xe.dollarSign,!1),jE={flow:{[xe.backslash]:bE,[xe.dollarSign]:ME},text:{[xe.backslash]:PE}};function LE(){return jE}function Ky(e){return xm(e,{extensions:[_m(),Wy()],mdastExtensions:[km()]})}function NE(e){return xm(e,{extensions:[_m(),Wy(),LE(),cv()],mdastExtensions:[km(),gv()]})}function Gy({code:e,lang:n,className:i,copyLabel:s="复制",copiedLabel:a="复制成功"}){const u=e.endsWith(`
530
+ `)?e.slice(0,-1):e,c=M.useMemo(()=>eE(u,n),[u,n,M.useSyncExternalStore(_f,si,si)]),d=M.useRef(null),[p,m]=M.useState(!1),y=M.useCallback(()=>{var g,k;p||ui(((k=(g=d.current)==null?void 0:g.querySelector("pre"))==null?void 0:k.textContent)??u).then(x=>{x&&(m(!0),window.setTimeout(()=>{m(!1)},1e3))})},[p,u]),w=c===void 0?_.jsx("pre",{className:fr.plain,children:_.jsx("code",{children:u})}):_.jsx("div",{dangerouslySetInnerHTML:{__html:c}});return _.jsxs("div",{ref:d,className:ke(fr.block,"md-code-block",i),children:[_.jsx("div",{className:fr.bannerWrap,children:_.jsxs("div",{className:fr.banner,children:[_.jsx("div",{className:fr.infostring,children:n??""}),_.jsx("div",{className:fr.action,children:_.jsx("button",{type:"button",className:fr.copyButton,onClick:y,children:p?a:s})})]})}),w]})}function AE(e){const n={};for(const i of e.split(";")){const s=i.indexOf(":");if(s===-1)continue;const a=i.slice(0,s).trim().replace(/-([a-z])/g,(u,c)=>c.toUpperCase());n[a]=i.slice(s+1).trim()}return n}function Yy(e,n){if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.nodeType!==Node.ELEMENT_NODE)return null;const i=e,s={key:n};for(const u of i.attributes)u.name==="class"?s.className=u.value:u.name==="style"?s.style=AE(u.value):s[u.name]=u.value;const a=[...i.childNodes].map(Yy);return a.length===0?M.createElement(i.localName,s):M.createElement(i.localName,s,...a)}function Oc(e,n){let i;try{i=wp.renderToString(e,{displayMode:n,throwOnError:!0})}catch(s){try{i=wp.renderToString(e,{displayMode:n,strict:"ignore",throwOnError:!1})}catch{return _.jsx("span",{className:"katex-error",style:{color:"#cc0000"},title:String(s),children:e})}}return[...new DOMParser().parseFromString(i,"text/html").body.childNodes].map(Yy)}function Xy(e){try{switch(new URL(e).protocol){case"http:":case"https:":case"mailto:":return e;default:return""}}catch{return""}}function RE(e){try{const n=new URL(e).protocol;return n==="http:"||n==="https:"?e:void 0}catch{return}}function Vc(){return{definitions:new Map,footnotes:new Map}}function ca(e,n){for(const i of e){if(i.type==="definition"){const s=i.identifier.toUpperCase();n.definitions.has(s)||n.definitions.set(s,i)}else if(i.type==="footnoteDefinition"){const s=i.identifier.toUpperCase();n.footnotes.has(s)||n.footnotes.set(s,i)}"children"in i&&ca(i.children,n)}}function Ic(e,n){return e.map(i=>Sf(i.node,i.key,n)).filter(i=>i!==null)}function kf(e,n){const i=[];for(const s of e)(n||i.length>0)&&i.push(`
531
531
  `),i.push(s);return n&&e.length>0&&i.push(`
532
- `),i}function Xy(e,n){const i=[];for(const[s,a]of e.entries())if(a.type==="paragraph")i.push({paragraph:Gt(a.children,n)});else{const u=Sf(a,s,n);u!==null&&i.push({element:u})}return i}function Gt(e,n){return e.map((i,s)=>Sf(i,s,n))}function Sf(e,n,i){var s;switch(e.type){case"text":return e.value;case"paragraph":return _.jsx("p",{children:Gt(e.children,i)},n);case"heading":return M.createElement(`h${e.depth}`,{key:n},...Gt(e.children,i));case"blockquote":return _.jsx("blockquote",{children:kf(Gt(e.children,{...i,inBlockquote:!0}).filter(a=>a!==null),!0)},n);case"thematicBreak":return _.jsx("hr",{},n);case"break":return _.jsxs(M.Fragment,{children:[_.jsx("br",{}),`
533
- `]},n);case"strong":return _.jsx("strong",{children:Gt(e.children,i)},n);case"emphasis":return _.jsx("em",{children:Gt(e.children,i)},n);case"delete":return _.jsx("del",{children:Gt(e.children,i)},n);case"inlineCode":{const a=e.value.replace(/\r?\n|\r/g," "),u=$E(a);if(u!==void 0)return _.jsx("code",{children:Jy(u,[a],"link")},n);const c=i.inLink===!0||(s=i.fileMentions)==null?void 0:s.resolve(a);return c!==void 0?_.jsx("code",{children:_.jsx("button",{type:"button",className:ii.fileMention,title:c.title,"aria-label":c.label,onClick:c.open,children:a})},n):_.jsx("code",{children:a},n)}case"html":return e.value;case"code":return DE(e,n,i);case"math":return _.jsx(M.Fragment,{children:Oc(e.value,!0)},n);case"inlineMath":return _.jsx(M.Fragment,{children:Oc(e.value,!1)},n);case"list":return VE(e,n,i);case"listItem":return Qy(e,Zy(e),n,i);case"table":return IE(e,n,i);case"link":return eg(e.url,Gt(e.children,{...i,inLink:!0}),n);case"linkReference":return zE(e,n,i);case"image":return tg(e.url,e.alt??"",n);case"imageReference":return FE(e,n,i);case"footnoteReference":return BE(e,n,i);case"definition":case"footnoteDefinition":return null;default:return null}}function DE(e,n,i){var u,c,d;const s=e.lang??void 0;if(e.value==="")return _.jsx("pre",{children:_.jsx("code",{className:s===void 0?void 0:`language-${s}`})},n);const a=s===void 0||(u=/^[\w-]+/.exec(s))==null?void 0:u[0];return!i.streaming&&a==="math"?_.jsx(M.Fragment,{children:Oc(`${e.value}
534
- `,!0)},n):_.jsx(Ky,{code:`${e.value}
535
- `,lang:i.streaming?void 0:a,copyLabel:(c=i.codeLabels)==null?void 0:c.copyLabel,copiedLabel:(d=i.codeLabels)==null?void 0:d.copiedLabel},n)}function OE(e){return(e.spread??!1)||e.children.some(Zy)}function Zy(e){return e.spread??e.children.length>1}function VE(e,n,i){const s=OE(e),a={};return typeof e.start=="number"&&e.start!==1&&(a.start=e.start),e.children.some(u=>typeof u.checked=="boolean")&&(a.className="contains-task-list"),M.createElement(e.ordered===!0?"ol":"ul",{key:n,...a},...e.children.map((u,c)=>Qy(u,s,c,i)))}function Qy(e,n,i,s){const a=Xy(e.children,s),u=typeof e.checked=="boolean";if(u){const p=_.jsx("input",{type:"checkbox",checked:e.checked===!0,disabled:!0},"task-checkbox"),m=a[0];m!==void 0&&"paragraph"in m?m.paragraph=m.paragraph.length>0?[p," ",...m.paragraph]:[p]:a.unshift({paragraph:[p]})}const c=[];for(const[p,m]of a.entries()){const y="paragraph"in m;(n||p!==0||!y)&&c.push(`
532
+ `),i}function Zy(e,n){const i=[];for(const[s,a]of e.entries())if(a.type==="paragraph")i.push({paragraph:Gt(a.children,n)});else{const u=Sf(a,s,n);u!==null&&i.push({element:u})}return i}function Gt(e,n){return e.map((i,s)=>Sf(i,s,n))}function Sf(e,n,i){var s;switch(e.type){case"text":return e.value;case"paragraph":return _.jsx("p",{children:Gt(e.children,i)},n);case"heading":return M.createElement(`h${e.depth}`,{key:n},...Gt(e.children,i));case"blockquote":return _.jsx("blockquote",{children:kf(Gt(e.children,{...i,inBlockquote:!0}).filter(a=>a!==null),!0)},n);case"thematicBreak":return _.jsx("hr",{},n);case"break":return _.jsxs(M.Fragment,{children:[_.jsx("br",{}),`
533
+ `]},n);case"strong":return _.jsx("strong",{children:Gt(e.children,i)},n);case"emphasis":return _.jsx("em",{children:Gt(e.children,i)},n);case"delete":return _.jsx("del",{children:Gt(e.children,i)},n);case"inlineCode":{const a=e.value.replace(/\r?\n|\r/g," "),u=$E(a);if(u!==void 0)return _.jsx("code",{children:eg(u,[a],"link")},n);const c=i.inLink===!0||(s=i.fileMentions)==null?void 0:s.resolve(a);return c!==void 0?_.jsx("code",{children:_.jsx("button",{type:"button",className:ii.fileMention,title:c.title,"aria-label":c.label,onClick:c.open,children:a})},n):_.jsx("code",{children:a},n)}case"html":return e.value;case"code":return DE(e,n,i);case"math":return _.jsx(M.Fragment,{children:Oc(e.value,!0)},n);case"inlineMath":return _.jsx(M.Fragment,{children:Oc(e.value,!1)},n);case"list":return VE(e,n,i);case"listItem":return Jy(e,Qy(e),n,i);case"table":return IE(e,n,i);case"link":return tg(e.url,Gt(e.children,{...i,inLink:!0}),n);case"linkReference":return zE(e,n,i);case"image":return ng(e.url,e.alt??"",n);case"imageReference":return FE(e,n,i);case"footnoteReference":return BE(e,n,i);case"definition":case"footnoteDefinition":return null;default:return null}}function DE(e,n,i){var u,c,d;const s=e.lang??void 0;if(e.value==="")return _.jsx("pre",{children:_.jsx("code",{className:s===void 0?void 0:`language-${s}`})},n);const a=s===void 0||(u=/^[\w-]+/.exec(s))==null?void 0:u[0];return!i.streaming&&a==="math"?_.jsx(M.Fragment,{children:Oc(`${e.value}
534
+ `,!0)},n):_.jsx(Gy,{code:`${e.value}
535
+ `,lang:i.streaming?void 0:a,copyLabel:(c=i.codeLabels)==null?void 0:c.copyLabel,copiedLabel:(d=i.codeLabels)==null?void 0:d.copiedLabel},n)}function OE(e){return(e.spread??!1)||e.children.some(Qy)}function Qy(e){return e.spread??e.children.length>1}function VE(e,n,i){const s=OE(e),a={};return typeof e.start=="number"&&e.start!==1&&(a.start=e.start),e.children.some(u=>typeof u.checked=="boolean")&&(a.className="contains-task-list"),M.createElement(e.ordered===!0?"ol":"ul",{key:n,...a},...e.children.map((u,c)=>Jy(u,s,c,i)))}function Jy(e,n,i,s){const a=Zy(e.children,s),u=typeof e.checked=="boolean";if(u){const p=_.jsx("input",{type:"checkbox",checked:e.checked===!0,disabled:!0},"task-checkbox"),m=a[0];m!==void 0&&"paragraph"in m?m.paragraph=m.paragraph.length>0?[p," ",...m.paragraph]:[p]:a.unshift({paragraph:[p]})}const c=[];for(const[p,m]of a.entries()){const y="paragraph"in m;(n||p!==0||!y)&&c.push(`
536
536
  `),y?n?c.push(_.jsx("p",{children:m.paragraph},`p-${p}`)):c.push(_.jsx(M.Fragment,{children:m.paragraph},`p-${p}`)):c.push(m.element)}const d=a[a.length-1];return d!==void 0&&(n||!("paragraph"in d))&&c.push(`
537
- `),_.jsx("li",{className:u?"task-list-item":void 0,children:c},i)}function IE(e,n,i){const s=e.align??null,[a,...u]=e.children,c=(s===null?(a==null?void 0:a.children.length)??0:s.length)>=4&&i.inBlockquote!==!0;return _.jsx("div",{className:ke(ii.tableScroll,c?"md-table-wide":ii.tableFill),tabIndex:c?0:void 0,children:_.jsxs("table",{children:[a!==void 0&&_.jsx("thead",{children:hm(a,"th",s,0,i)}),u.length>0&&_.jsx("tbody",{children:u.map((d,p)=>hm(d,"td",s,p+1,i))})]})},n)}function hm(e,n,i,s,a){const u=i===null?e.children.length:i.length,c=[];for(let d=0;d<u;d++){const p=e.children[d],m=i==null?void 0:i[d];c.push(M.createElement(n,{key:d,style:m==null?void 0:{textAlign:m}},...p===void 0?[]:Gt(p.children,a)))}return _.jsx("tr",{children:c},s)}function Jy(e,n,i){const s=Yy(e);return s===""?_.jsx(M.Fragment,{children:n},i):_.jsx("a",{href:s,...["http:","https:"].includes(new URL(s).protocol)?{target:"_blank",rel:"noopener noreferrer"}:{},children:n},i)}function eg(e,n,i){return Jy($c(e),n,i)}function $E(e){if(e.trim()===e)try{const n=new URL(e).protocol;return n==="http:"||n==="https:"?e:void 0}catch{return}}function tg(e,n,i){const s=RE(Yy($c(e)));return s===void 0?_.jsx("span",{className:ii.imageAlt,children:n},i):_.jsx("img",{className:ii.image,src:s,alt:n,loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"},i)}function ng(e){return e.referenceType==="collapsed"?"][]":e.referenceType==="full"?`][${e.label??e.identifier}]`:"]"}function zE(e,n,i){const s=i.targets.definitions.get(e.identifier.toUpperCase());return s===void 0?_.jsxs(M.Fragment,{children:["[",Gt(e.children,i),ng(e)]},n):eg(s.url,Gt(e.children,{...i,inLink:!0}),n)}function FE(e,n,i){const s=i.targets.definitions.get(e.identifier.toUpperCase());return s===void 0?`![${e.alt??""}${ng(e)}`:tg(s.url,e.alt??"",n)}function BE(e,n,i){const s=e.identifier.toUpperCase(),a=i.footnoteCounts.get(s);return a===void 0&&i.footnoteOrder.push(s),i.footnoteCounts.set(s,(a??0)+1),_.jsx("sup",{children:String(i.footnoteOrder.indexOf(s)+1)},n)}function rg(e){const n=[];for(const i of e.footnoteOrder){const s=e.targets.footnotes.get(i);if(s===void 0)continue;const a=e.footnoteCounts.get(i)??0,u=[];for(let m=1;m<=a;m++)u.length>0&&u.push(" "),u.push("↩"),m>1&&u.push(_.jsx("sup",{children:String(m)},`re-${m}`));const c=Xy(s.children,e),d=c[c.length-1],p=c.map((m,y)=>"paragraph"in m?_.jsxs("p",{children:[m.paragraph,m===d&&_.jsxs(_.Fragment,{children:[" ",u]})]},`p-${y}`):m.element);(d===void 0||!("paragraph"in d))&&p.push(...u),n.push(_.jsx("li",{id:`user-content-fn-${$c(i.toLowerCase())}`,children:kf(p,!0)},i))}return n.length===0?null:_.jsxs("section",{"data-footnotes":!0,className:"footnotes",children:[_.jsx("h2",{id:"footnote-label",className:"sr-only",children:"Footnotes"}),_.jsx("ol",{children:n})]},"footnotes")}function HE(e,n,i){const s=NE(e),a=Vc();ca(s.children,a);const u={streaming:!1,codeLabels:n,fileMentions:i,targets:a,footnoteOrder:[],footnoteCounts:new Map},c=kf(Ic(s.children.map((p,m)=>({node:p,key:m})),u),!1),d=rg(u);return d===null?c:[...c,`
538
- `,d]}var UE=class{constructor(e){I(this,"codeLabels");I(this,"parser",new gE(qy));I(this,"generation",-1);I(this,"frozenCount",0);I(this,"frozenElements",[]);I(this,"frozenTargets",Vc());I(this,"frozenFootnoteOrder",[]);I(this,"frozenFootnoteCounts",new Map);I(this,"lastText",null);I(this,"lastRendered",[]);this.codeLabels=e}render(e){if(e===this.lastText)return this.lastRendered;const{frozen:n,tail:i,generation:s}=this.parser.update(e);s!==this.generation&&(this.generation=s,this.frozenCount=0,this.frozenElements=[],this.frozenTargets=Vc(),this.frozenFootnoteOrder=[],this.frozenFootnoteCounts=new Map);const a=n.slice(this.frozenCount);ca(a.map(m=>m.node),this.frozenTargets);const u={definitions:new Map(this.frozenTargets.definitions),footnotes:new Map(this.frozenTargets.footnotes)};if(ca(i.map(m=>m.node),u),a.length>0){const m={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:u,footnoteOrder:this.frozenFootnoteOrder,footnoteCounts:this.frozenFootnoteCounts},y=[...this.frozenElements];for(const w of Ic(a,m))y.length>0&&y.push(`
537
+ `),_.jsx("li",{className:u?"task-list-item":void 0,children:c},i)}function IE(e,n,i){const s=e.align??null,[a,...u]=e.children,c=(s===null?(a==null?void 0:a.children.length)??0:s.length)>=4&&i.inBlockquote!==!0;return _.jsx("div",{className:ke(ii.tableScroll,c?"md-table-wide":ii.tableFill),tabIndex:c?0:void 0,children:_.jsxs("table",{children:[a!==void 0&&_.jsx("thead",{children:pm(a,"th",s,0,i)}),u.length>0&&_.jsx("tbody",{children:u.map((d,p)=>pm(d,"td",s,p+1,i))})]})},n)}function pm(e,n,i,s,a){const u=i===null?e.children.length:i.length,c=[];for(let d=0;d<u;d++){const p=e.children[d],m=i==null?void 0:i[d];c.push(M.createElement(n,{key:d,style:m==null?void 0:{textAlign:m}},...p===void 0?[]:Gt(p.children,a)))}return _.jsx("tr",{children:c},s)}function eg(e,n,i){const s=Xy(e);return s===""?_.jsx(M.Fragment,{children:n},i):_.jsx("a",{href:s,...["http:","https:"].includes(new URL(s).protocol)?{target:"_blank",rel:"noopener noreferrer"}:{},children:n},i)}function tg(e,n,i){return eg($c(e),n,i)}function $E(e){if(e.trim()===e)try{const n=new URL(e).protocol;return n==="http:"||n==="https:"?e:void 0}catch{return}}function ng(e,n,i){const s=RE(Xy($c(e)));return s===void 0?_.jsx("span",{className:ii.imageAlt,children:n},i):_.jsx("img",{className:ii.image,src:s,alt:n,loading:"lazy",decoding:"async",referrerPolicy:"no-referrer"},i)}function rg(e){return e.referenceType==="collapsed"?"][]":e.referenceType==="full"?`][${e.label??e.identifier}]`:"]"}function zE(e,n,i){const s=i.targets.definitions.get(e.identifier.toUpperCase());return s===void 0?_.jsxs(M.Fragment,{children:["[",Gt(e.children,i),rg(e)]},n):tg(s.url,Gt(e.children,{...i,inLink:!0}),n)}function FE(e,n,i){const s=i.targets.definitions.get(e.identifier.toUpperCase());return s===void 0?`![${e.alt??""}${rg(e)}`:ng(s.url,e.alt??"",n)}function BE(e,n,i){const s=e.identifier.toUpperCase(),a=i.footnoteCounts.get(s);return a===void 0&&i.footnoteOrder.push(s),i.footnoteCounts.set(s,(a??0)+1),_.jsx("sup",{children:String(i.footnoteOrder.indexOf(s)+1)},n)}function ig(e){const n=[];for(const i of e.footnoteOrder){const s=e.targets.footnotes.get(i);if(s===void 0)continue;const a=e.footnoteCounts.get(i)??0,u=[];for(let m=1;m<=a;m++)u.length>0&&u.push(" "),u.push("↩"),m>1&&u.push(_.jsx("sup",{children:String(m)},`re-${m}`));const c=Zy(s.children,e),d=c[c.length-1],p=c.map((m,y)=>"paragraph"in m?_.jsxs("p",{children:[m.paragraph,m===d&&_.jsxs(_.Fragment,{children:[" ",u]})]},`p-${y}`):m.element);(d===void 0||!("paragraph"in d))&&p.push(...u),n.push(_.jsx("li",{id:`user-content-fn-${$c(i.toLowerCase())}`,children:kf(p,!0)},i))}return n.length===0?null:_.jsxs("section",{"data-footnotes":!0,className:"footnotes",children:[_.jsx("h2",{id:"footnote-label",className:"sr-only",children:"Footnotes"}),_.jsx("ol",{children:n})]},"footnotes")}function HE(e,n,i){const s=NE(e),a=Vc();ca(s.children,a);const u={streaming:!1,codeLabels:n,fileMentions:i,targets:a,footnoteOrder:[],footnoteCounts:new Map},c=kf(Ic(s.children.map((p,m)=>({node:p,key:m})),u),!1),d=ig(u);return d===null?c:[...c,`
538
+ `,d]}var UE=class{constructor(e){I(this,"codeLabels");I(this,"parser",new gE(Ky));I(this,"generation",-1);I(this,"frozenCount",0);I(this,"frozenElements",[]);I(this,"frozenTargets",Vc());I(this,"frozenFootnoteOrder",[]);I(this,"frozenFootnoteCounts",new Map);I(this,"lastText",null);I(this,"lastRendered",[]);this.codeLabels=e}render(e){if(e===this.lastText)return this.lastRendered;const{frozen:n,tail:i,generation:s}=this.parser.update(e);s!==this.generation&&(this.generation=s,this.frozenCount=0,this.frozenElements=[],this.frozenTargets=Vc(),this.frozenFootnoteOrder=[],this.frozenFootnoteCounts=new Map);const a=n.slice(this.frozenCount);ca(a.map(m=>m.node),this.frozenTargets);const u={definitions:new Map(this.frozenTargets.definitions),footnotes:new Map(this.frozenTargets.footnotes)};if(ca(i.map(m=>m.node),u),a.length>0){const m={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:u,footnoteOrder:this.frozenFootnoteOrder,footnoteCounts:this.frozenFootnoteCounts},y=[...this.frozenElements];for(const w of Ic(a,m))y.length>0&&y.push(`
539
539
  `),y.push(w);this.frozenElements=y,this.frozenCount=n.length}const c={streaming:!0,codeLabels:this.codeLabels,fileMentions:void 0,targets:u,footnoteOrder:[...this.frozenFootnoteOrder],footnoteCounts:new Map(this.frozenFootnoteCounts)},d=[...this.frozenElements];for(const m of Ic(i,c))d.length>0&&d.push(`
540
- `),d.push(m);const p=rg(c);return p!==null&&d.push(`
541
- `,p),this.lastText=e,this.lastRendered=d,this.lastRendered}};const ig=M.memo(function({text:n,streaming:i=!1,codeLabels:s,fileMentions:a}){const u=M.useRef(null),c=M.useRef(s),d=M.useMemo(()=>i?((u.current===null||c.current!==s)&&(u.current=new UE(s),c.current=s),u.current.render(n)):(u.current=null,HE(n,s,a)),[n,i,s,a]);return _.jsx("div",{className:ii.markdown,children:d})});function WE(e){try{const{protocol:n}=new URL(e);return n==="http:"||n==="https:"?e:void 0}catch{return}}function qE(e,n){if(n!==void 0&&n!=="")return n;try{const{hostname:i}=new URL(e);return i===""?e:i}catch{return e}}function sg({url:e,label:n,className:i}){const s=WE(e);return s===void 0?_.jsx("span",{className:i,children:n}):_.jsx("a",{className:i,href:s,target:"_blank",rel:"noopener noreferrer",children:n})}function KE({source:e,ordinal:n}){return _.jsxs("li",{className:ct.source,value:n,children:[_.jsx(sg,{url:e.url,label:qE(e.url,e.title),className:ct.sourceLink}),e.snippet!==void 0&&e.snippet!==""&&_.jsx("div",{className:ct.snippet,children:e.snippet}),e.publishedAt!==void 0&&e.publishedAt!==""&&_.jsx("div",{className:ct.published,children:e.publishedAt})]})}function GE({answer:e,sources:n,truncated:i,className:s}){const a=(e===void 0||e==="")&&n.length===0;return _.jsxs("div",{className:ke(ct.block,s),"data-web":"search",children:[e!==void 0&&e!==""&&_.jsx("div",{className:ct.answer,children:_.jsx(ig,{text:e})}),a?_.jsx("div",{className:ct.empty,children:"未找到结果"}):_.jsx("ol",{className:ct.sources,children:n.map((u,c)=>_.jsx(KE,{source:u,ordinal:c+1},c))}),i&&_.jsx("div",{className:ct.truncated,children:"来源列表已截断"})]})}function YE({url:e,statusCode:n,truncated:i,className:s}){return _.jsxs("div",{className:ke(ct.block,ct.fetch,s),"data-web":"fetch",children:[_.jsx(sg,{url:e,label:e,className:ct.fetchUrl}),_.jsxs("div",{className:ct.fetchMeta,children:[_.jsxs("span",{className:ct.status,children:["HTTP ",n]}),i&&_.jsx("span",{className:ct.truncated,children:"内容已截断"})]})]})}function XE(e){return e.kind==="search"?_.jsx(GE,{...e}):_.jsx(YE,{...e})}function ZE(e){return e.map((n,i)=>_.jsx("span",{style:n.style,children:n.text},i))}function QE({value:e,ariaLabel:n,lang:i,readOnly:s=!1,wrap:a=!1,onChange:u,onSave:c}){const d=M.useRef(null),p=M.useRef(null),m=M.useMemo(()=>Hy(e,i),[e,i,M.useSyncExternalStore(_f,si,si)]),y=M.useMemo(()=>e.split(`
542
- `),[e]),w=x=>{p.current!==null&&(p.current.scrollTop=x.currentTarget.scrollTop,p.current.scrollLeft=x.currentTarget.scrollLeft)},g=x=>{u(x.currentTarget.value)},k=x=>{if((x.metaKey||x.ctrlKey)&&!x.altKey&&x.key.toLowerCase()==="s"){if(c===void 0)return;x.preventDefault(),c();return}if(s||x.key!=="Tab"||x.metaKey||x.ctrlKey||x.altKey)return;x.preventDefault();const C=x.currentTarget.selectionStart,T=x.currentTarget.selectionEnd;u(`${e.slice(0,C)} ${e.slice(T)}`),requestAnimationFrame(()=>{var A;(A=d.current)==null||A.setSelectionRange(C+1,C+1)})};return _.jsxs("div",{className:dr.root,"data-source-editor":"","data-wrap":a||void 0,children:[_.jsx("div",{ref:p,className:dr.backdrop,"aria-hidden":"true",children:_.jsx("div",{className:dr.backdropContent,children:y.map((x,C)=>_.jsxs("div",{className:dr.line,children:[_.jsx("span",{className:dr.gutter,children:C+1}),_.jsxs("span",{className:dr.content,children:[(m==null?void 0:m[C])===void 0?x:ZE(m[C]),x.length===0&&_.jsx("span",{children:"​"})]})]},C))})}),_.jsx("textarea",{ref:d,className:dr.input,"aria-label":n,value:e,readOnly:s,spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",wrap:a?"soft":"off",onChange:g,onKeyDown:k,onScroll:w})]})}const pm=2e4;function JE(e){return`… 已截断,共 ${e} 字符`}function eT({label:e,payload:n,defaultOpen:i=!1,truncatedLabel:s=JE}){const[a,u]=M.useState(i),c=M.useMemo(()=>{if(!a)return"";let d;try{d=JSON.stringify(n,null,2)??String(n)}catch{d=String(n)}return d.length>pm?`${d.slice(0,pm)}
540
+ `),d.push(m);const p=ig(c);return p!==null&&d.push(`
541
+ `,p),this.lastText=e,this.lastRendered=d,this.lastRendered}};const sg=M.memo(function({text:n,streaming:i=!1,codeLabels:s,fileMentions:a}){const u=M.useRef(null),c=M.useRef(s),d=M.useMemo(()=>i?((u.current===null||c.current!==s)&&(u.current=new UE(s),c.current=s),u.current.render(n)):(u.current=null,HE(n,s,a)),[n,i,s,a]);return _.jsx("div",{className:ii.markdown,children:d})});function WE(e){try{const{protocol:n}=new URL(e);return n==="http:"||n==="https:"?e:void 0}catch{return}}function qE(e,n){if(n!==void 0&&n!=="")return n;try{const{hostname:i}=new URL(e);return i===""?e:i}catch{return e}}function og({url:e,label:n,className:i}){const s=WE(e);return s===void 0?_.jsx("span",{className:i,children:n}):_.jsx("a",{className:i,href:s,target:"_blank",rel:"noopener noreferrer",children:n})}function KE({source:e,ordinal:n}){return _.jsxs("li",{className:ct.source,value:n,children:[_.jsx(og,{url:e.url,label:qE(e.url,e.title),className:ct.sourceLink}),e.snippet!==void 0&&e.snippet!==""&&_.jsx("div",{className:ct.snippet,children:e.snippet}),e.publishedAt!==void 0&&e.publishedAt!==""&&_.jsx("div",{className:ct.published,children:e.publishedAt})]})}function GE({answer:e,sources:n,truncated:i,className:s}){const a=(e===void 0||e==="")&&n.length===0;return _.jsxs("div",{className:ke(ct.block,s),"data-web":"search",children:[e!==void 0&&e!==""&&_.jsx("div",{className:ct.answer,children:_.jsx(sg,{text:e})}),a?_.jsx("div",{className:ct.empty,children:"未找到结果"}):_.jsx("ol",{className:ct.sources,children:n.map((u,c)=>_.jsx(KE,{source:u,ordinal:c+1},c))}),i&&_.jsx("div",{className:ct.truncated,children:"来源列表已截断"})]})}function YE({url:e,statusCode:n,truncated:i,className:s}){return _.jsxs("div",{className:ke(ct.block,ct.fetch,s),"data-web":"fetch",children:[_.jsx(og,{url:e,label:e,className:ct.fetchUrl}),_.jsxs("div",{className:ct.fetchMeta,children:[_.jsxs("span",{className:ct.status,children:["HTTP ",n]}),i&&_.jsx("span",{className:ct.truncated,children:"内容已截断"})]})]})}function XE(e){return e.kind==="search"?_.jsx(GE,{...e}):_.jsx(YE,{...e})}function ZE(e){return e.map((n,i)=>_.jsx("span",{style:n.style,children:n.text},i))}function QE({value:e,ariaLabel:n,lang:i,readOnly:s=!1,wrap:a=!1,onChange:u,onSave:c}){const d=M.useRef(null),p=M.useRef(null),m=M.useMemo(()=>Uy(e,i),[e,i,M.useSyncExternalStore(_f,si,si)]),y=M.useMemo(()=>e.split(`
542
+ `),[e]),w=x=>{p.current!==null&&(p.current.scrollTop=x.currentTarget.scrollTop,p.current.scrollLeft=x.currentTarget.scrollLeft)},g=x=>{u(x.currentTarget.value)},k=x=>{if((x.metaKey||x.ctrlKey)&&!x.altKey&&x.key.toLowerCase()==="s"){if(c===void 0)return;x.preventDefault(),c();return}if(s||x.key!=="Tab"||x.metaKey||x.ctrlKey||x.altKey)return;x.preventDefault();const C=x.currentTarget.selectionStart,T=x.currentTarget.selectionEnd;u(`${e.slice(0,C)} ${e.slice(T)}`),requestAnimationFrame(()=>{var A;(A=d.current)==null||A.setSelectionRange(C+1,C+1)})};return _.jsxs("div",{className:dr.root,"data-source-editor":"","data-wrap":a||void 0,children:[_.jsx("div",{ref:p,className:dr.backdrop,"aria-hidden":"true",children:_.jsx("div",{className:dr.backdropContent,children:y.map((x,C)=>_.jsxs("div",{className:dr.line,children:[_.jsx("span",{className:dr.gutter,children:C+1}),_.jsxs("span",{className:dr.content,children:[(m==null?void 0:m[C])===void 0?x:ZE(m[C]),x.length===0&&_.jsx("span",{children:"​"})]})]},C))})}),_.jsx("textarea",{ref:d,className:dr.input,"aria-label":n,value:e,readOnly:s,spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",wrap:a?"soft":"off",onChange:g,onKeyDown:k,onScroll:w})]})}const mm=2e4;function JE(e){return`… 已截断,共 ${e} 字符`}function eT({label:e,payload:n,defaultOpen:i=!1,truncatedLabel:s=JE}){const[a,u]=M.useState(i),c=M.useMemo(()=>{if(!a)return"";let d;try{d=JSON.stringify(n,null,2)??String(n)}catch{d=String(n)}return d.length>mm?`${d.slice(0,mm)}
543
543
  ${s(d.length)}`:d},[a,n,s]);return _.jsxs("div",{className:Ku.root,children:[_.jsxs("button",{type:"button",className:Ku.toggle,onClick:()=>{u(d=>!d)},children:[a?"▾":"▸"," ",e]}),a&&_.jsx("pre",{className:Ku.body,children:c})]})}function tT({text:e}){return _.jsx("div",{className:QS.text,children:e})}function is(e){var n;switch(e.type){case"text":case"inlineCode":case"code":return e.value??"";case"image":case"imageReference":return e.alt??"";case"break":return`
544
544
  `;case"html":return e.value??"";default:return((n=e.children)==null?void 0:n.map(is).join(""))??""}}function qo(e){return e.replace(/\s+/g," ").trim()}function Yr(e){var n,i,s,a,u,c;switch(e.type){case"root":case"blockquote":return((n=e.children)==null?void 0:n.map(Yr).filter(Boolean).join(`
545
545
 
546
546
  `))??"";case"paragraph":case"heading":return qo(is(e));case"code":return((i=e.value)==null?void 0:i.trim())??"";case"list":return((s=e.children)==null?void 0:s.map(Yr).filter(Boolean).join(`
547
547
  `))??"";case"listItem":return((a=e.children)==null?void 0:a.map(Yr).filter(Boolean).join(" "))??"";case"table":return((u=e.children)==null?void 0:u.map(Yr).filter(Boolean).join(`
548
- `))??"";case"tableRow":return((c=e.children)==null?void 0:c.map(Yr).join(" "))??"";case"tableCell":return qo(is(e));case"html":return e.value??"";case"thematicBreak":case"definition":return"";default:return qo(is(e))}}function og(e){if(e.type==="paragraph"){const n=qo(is(e));if(n!=="")return n}for(const n of e.children??[]){const i=og(n);if(i!==void 0)return i}}function nT(e){return Yr(e).split(`
548
+ `))??"";case"tableRow":return((c=e.children)==null?void 0:c.map(Yr).join(" "))??"";case"tableCell":return qo(is(e));case"html":return e.value??"";case"thematicBreak":case"definition":return"";default:return qo(is(e))}}function ag(e){if(e.type==="paragraph"){const n=qo(is(e));if(n!=="")return n}for(const n of e.children??[]){const i=ag(n);if(i!==void 0)return i}}function nT(e){return Yr(e).split(`
549
549
  `).map(n=>n.trim()).join(`
550
550
  `).replace(/\n{3,}/g,`
551
551
 
552
- `).trim()}function rT(e,n={}){const{mode:i="all"}=n,s=qy(e),a=nT(s);switch(i){case"all":return a;case"first-line":return a.split(`
553
- `).find(u=>u!=="")??"";case"first-paragraph":return og(s)??a.split(`
554
- `).find(u=>u!=="")??""}}const iT=Object.freeze(Object.defineProperty({__proto__:null,AlarmClock:C3,AlarmClockOff:k3,Archive:T3,ArrowUp:j3,ArrowUpRight:b3,Bot:N3,Braces:R3,Brain:O3,BrandWordmark:pC,Button:Nc,Check:ma,ChevronDown:ac,ChevronLeft:z3,ChevronRight:B3,ChevronUp:U3,Circle:e5,CircleCheck:q3,CircleDashed:G3,CircleHelp:X3,CircleX:Q3,Clock:i5,Clock3:n5,CodeBlock:Ky,CodeXml:o5,Columns2:l5,ConnectionBanner:dC,Copy:Wc,CornerDownRight:f5,DEFAULT_DIFF_MAX_LINES:iE,DEFAULT_READ_MAX_LINES:tE,DEFAULT_SEARCH_MAX_LINES:cE,DEFAULT_TERMINAL_MAX_LINES:UC,Database:h5,Diamond:m5,DiffBlock:uE,DisclosureRow:JS,Download:g5,Ellipsis:w5,File:_5,FishLogo:hC,Folder:P5,FolderOpen:S5,FolderPlus:E5,GitBranch:M5,Globe:L5,HoverCard:lC,Info:A5,Input:nC,JsonBlock:eT,JsonTree:PC,Link:D5,ListChecks:V5,ListPlus:$5,ListTodo:F5,LoaderCircle:Fm,MarkdownText:ig,Maximize:q5,Maximize2:U5,Menu:Ly,MessageSquarePlus:G5,MessageSquareText:X5,MessageText:tT,Minimize2:Q5,Modal:Ay,Monitor:e4,Moon:n4,OnboardingSurface:cC,PanelBottom:i4,PanelLeft:o4,Paperclip:l4,Pause:c4,Pencil:d4,Pill:My,Play:p4,Plug:y4,Plus:v4,ReadBlock:rE,RefreshCw:x4,RiskConfirmation:fC,Rows2:k4,ScanSearch:C4,Search:T4,SearchBlock:mE,Send:b4,Settings:j4,Share2:N4,Sheet:uC,Shield:I4,ShieldAlert:R4,ShieldCheck:O4,Shrink:z4,SlidersHorizontal:B4,SourceEditor:QE,Sparkles:U4,Square:X4,SquareMinus:q4,SquarePlus:G4,StateDot:by,Sun:Q4,Target:e6,TerminalBlock:KC,TextShimmer:tC,ThumbsDown:i6,ThumbsUp:o6,Toast:yC,Tooltip:mC,Trash2:l6,Triangle:f6,TriangleAlert:Bm,Undo2:h6,User:m6,UsersRound:g6,WandSparkles:w6,WebBlock:XE,WrapText:n6,Wrench:_6,X:Hm,extractMarkdownPlainText:rT,useAnchoredMaxHeight:sC,useAnchoredPosition:oC,useDismissOnOutsidePointer:aC,writeClipboard:ui},Symbol.toStringTag,{value:"Module"}));function wn(e,n){const i=document.createElement("div");return i.className=e??"",n!==void 0&&(i.textContent=n),i}var sT=class{constructor(e){I(this,"root");I(this,"card");I(this,"wordmark");I(this,"spinner");I(this,"hint");I(this,"states",new Map);I(this,"active",new Set);I(this,"total",0);I(this,"failure");this.root=wn(vn.boot),this.root.dataset.dshBoot="",this.card=wn(vn.card),this.wordmark=wn(vn.wordmark,"HARNESS"),this.spinner=wn(vn.spinner),this.spinner.dataset.dshBootSpinner="",this.hint=wn(vn.hint,"Loading plugins…"),this.card.append(this.wordmark,this.spinner,this.hint),this.root.append(this.card),e.append(this.root),this.updateProgress()}setTotal(e){this.total=e,this.updateProgress()}setState(e,n){this.states.set(e,n),n==="active"&&this.active.add(e),this.updateProgress(),this.render()}fail(e){this.failure=e,this.render()}dispose(){this.root.remove()}render(){const e=[...this.states].filter(([,i])=>i==="failed").map(([i])=>i);if(this.failure===void 0&&e.length===0){this.spinner.parentElement!==this.card&&this.card.replaceChildren(this.wordmark,this.spinner,this.hint);return}const n=wn(vn.failed);n.append(wn(vn.failedTitle,"Failed to load plugins"));for(const i of e)n.append(wn(vn.failedItem,i));this.failure!==void 0&&n.append(wn(vn.failedItem,this.failure)),this.card.replaceChildren(this.wordmark,n)}updateProgress(){const e=this.total===0?0:Math.min(this.active.size/this.total,1);this.spinner.style.setProperty("--dsh-boot-arc",`${String(Math.round(72+e*216))}deg`)}};function oT(){return{react:Yv,"react/jsx-runtime":Jv,"react-dom":i3,"react-dom/client":a3,"@monotykamary/cordis":jv,"@monotykamary/dsh-client-ui-slots":d3,"@monotykamary/dsh-client-ui-primitives":iT}}const Kr={PENDING:0,LOADING:1,ACTIVE:2,FAILED:3,DISPOSED:4,UNLOADING:5},mm={[Kr.PENDING]:"pending",[Kr.LOADING]:"loading",[Kr.ACTIVE]:"active",[Kr.FAILED]:"failed",[Kr.DISPOSED]:"disposed",[Kr.UNLOADING]:"unloading"};var aT=class{constructor(e,n){I(this,"container");I(this,"seams");I(this,"page");I(this,"ctx");I(this,"modules");I(this,"manifest");this.container=e,this.seams=n,this.page=new sT(e)}async run(){try{const e=globalThis,n=e.__ModuleLoader__;if(n===void 0)throw new Error("web boot: window.__ModuleLoader__ bootstrap facade is missing");const i=globalThis.__DSH_TRANSPORT__;this.modules=n.create({boot:e.__DSH_BOOT__,staticModules:oT(),...(i==null?void 0:i.loadBundle)===void 0?{}:{loadBundle:i.loadBundle},...this.seams}),this.manifest=this.modules.manifest;const s=this.prefetchImmediateTier(),a=new We;this.ctx=a,await this.runPluginBoot(a,s),await this.mountApp(a)}catch(e){console.error(e),this.page.fail(e instanceof Error?e.message:String(e))}}async dispose(){const e=this.ctx;this.ctx=void 0,e!==void 0&&await e.fiber.dispose(),this.page.dispose()}async mountApp(e){await e.inject(["uiRenderer"],n=>{n.effect(()=>n.uiRenderer.mount(this.container),"web boot: application mount")})}async prefetchImmediateTier(){var e;((e=globalThis.__DSH_TRANSPORT__)==null?void 0:e.loadBundle)===void 0&&await Promise.all(this.manifest.plugins.filter(n=>n.immediately).map(n=>this.modules.prefetch(n.id).catch(i=>{})))}async runPluginBoot(e,n){await e.plugin(Iv);const i=e.loader;i.internal=this.modules,e.on("internal/status",a=>{const u=a.entry;u===void 0||u.fiber===void 0||this.page.setState(u.options.name,mm[u.fiber.state])});const s=this.manifest.plugins.map(a=>a.id);this.page.setTotal(s.length),await n,await Promise.all(s.map(async a=>{this.page.setState(a,"loading");const u=await i.create({name:a});i.resolve(u).fiber===void 0&&this.page.setState(a,"failed")})),await i.await(),this.assertEntriesActive(e)}assertEntriesActive(e){const n=[];for(const i of e.loader.entries()){const s=i.options.name;if(i.fiber===void 0){n.push(`${s}: import failed (see console for the import error)`);continue}const a=mm[i.fiber.state];if(a!=="active")if(a==="pending"){const u=Object.keys(i.fiber.inject).filter(c=>e.get(c)===void 0);n.push(`${s}: pending (waiting for service${u.length===1?"":"s"}: ${u.join(", ")||"unknown"})`)}else n.push(`${s}: ${a}`)}if(n.length>0)throw new Error(`web boot: ${String(n.length)} entr${n.length===1?"y":"ies"} did not activate
552
+ `).trim()}function rT(e,n={}){const{mode:i="all"}=n,s=Ky(e),a=nT(s);switch(i){case"all":return a;case"first-line":return a.split(`
553
+ `).find(u=>u!=="")??"";case"first-paragraph":return ag(s)??a.split(`
554
+ `).find(u=>u!=="")??""}}const iT=Object.freeze(Object.defineProperty({__proto__:null,AlarmClock:C3,AlarmClockOff:k3,Archive:T3,ArrowUp:j3,ArrowUpRight:b3,Bot:N3,Braces:R3,Brain:O3,BrandWordmark:pC,Button:Nc,Check:ma,ChevronDown:ac,ChevronLeft:z3,ChevronRight:B3,ChevronUp:U3,Circle:Q3,CircleCheck:q3,CircleDashed:G3,CircleHelp:X3,CircleX:e5,Clock:i5,Clock3:n5,CodeBlock:Gy,CodeXml:o5,Columns2:l5,ConnectionBanner:dC,Copy:Wc,CornerDownRight:f5,DEFAULT_DIFF_MAX_LINES:iE,DEFAULT_READ_MAX_LINES:tE,DEFAULT_SEARCH_MAX_LINES:cE,DEFAULT_TERMINAL_MAX_LINES:UC,Database:h5,Diamond:m5,DiffBlock:uE,DisclosureRow:JS,Download:g5,Ellipsis:w5,File:_5,FishLogo:hC,Folder:P5,FolderOpen:S5,FolderPlus:E5,GitBranch:M5,Globe:L5,HoverCard:lC,Info:A5,Input:nC,JsonBlock:eT,JsonTree:PC,Link:D5,ListChecks:V5,ListPlus:$5,ListTodo:F5,LoaderCircle:Bm,MarkdownText:sg,Maximize:q5,Maximize2:U5,Menu:Ny,MessageSquarePlus:G5,MessageSquareText:X5,MessageText:tT,Minimize2:Q5,Modal:Ry,Monitor:e4,Moon:n4,OnboardingSurface:cC,PanelBottom:i4,PanelLeft:o4,Paperclip:l4,Pause:c4,Pencil:d4,Pill:jy,Play:p4,Plug:y4,Plus:v4,ReadBlock:rE,RefreshCw:x4,RiskConfirmation:fC,Rows2:k4,ScanSearch:C4,Search:T4,SearchBlock:mE,Send:b4,Settings:j4,Share2:N4,Sheet:uC,Shield:I4,ShieldAlert:R4,ShieldCheck:O4,Shrink:z4,SlidersHorizontal:B4,SourceEditor:QE,Sparkles:U4,Square:X4,SquareMinus:q4,SquarePlus:G4,StateDot:My,Sun:Q4,Target:e6,TerminalBlock:KC,TextShimmer:tC,ThumbsDown:i6,ThumbsUp:o6,Toast:yC,Tooltip:mC,Trash2:l6,Triangle:f6,TriangleAlert:Hm,Undo2:h6,User:m6,UsersRound:g6,WandSparkles:w6,WebBlock:XE,WrapText:n6,Wrench:_6,X:Um,extractMarkdownPlainText:rT,useAnchoredMaxHeight:sC,useAnchoredPosition:oC,useDismissOnOutsidePointer:aC,writeClipboard:ui},Symbol.toStringTag,{value:"Module"}));function wn(e,n){const i=document.createElement("div");return i.className=e??"",n!==void 0&&(i.textContent=n),i}var sT=class{constructor(e){I(this,"root");I(this,"card");I(this,"wordmark");I(this,"spinner");I(this,"hint");I(this,"states",new Map);I(this,"active",new Set);I(this,"total",0);I(this,"failure");this.root=wn(vn.boot),this.root.dataset.dshBoot="",this.card=wn(vn.card),this.wordmark=wn(vn.wordmark,"HARNESS"),this.spinner=wn(vn.spinner),this.spinner.dataset.dshBootSpinner="",this.hint=wn(vn.hint,"Loading plugins…"),this.card.append(this.wordmark,this.spinner,this.hint),this.root.append(this.card),e.append(this.root),this.updateProgress()}setTotal(e){this.total=e,this.updateProgress()}setState(e,n){this.states.set(e,n),n==="active"&&this.active.add(e),this.updateProgress(),this.render()}fail(e){this.failure=e,this.render()}dispose(){this.root.remove()}render(){const e=[...this.states].filter(([,i])=>i==="failed").map(([i])=>i);if(this.failure===void 0&&e.length===0){this.spinner.parentElement!==this.card&&this.card.replaceChildren(this.wordmark,this.spinner,this.hint);return}const n=wn(vn.failed);n.append(wn(vn.failedTitle,"Failed to load plugins"));for(const i of e)n.append(wn(vn.failedItem,i));this.failure!==void 0&&n.append(wn(vn.failedItem,this.failure)),this.card.replaceChildren(this.wordmark,n)}updateProgress(){const e=this.total===0?0:Math.min(this.active.size/this.total,1);this.spinner.style.setProperty("--dsh-boot-arc",`${String(Math.round(72+e*216))}deg`)}};function oT(){return{react:Yv,"react/jsx-runtime":Jv,"react-dom":i3,"react-dom/client":a3,"@monotykamary/cordis":Lv,"@monotykamary/dsh-client-ui-slots":d3,"@monotykamary/dsh-client-ui-primitives":iT}}const Kr={PENDING:0,LOADING:1,ACTIVE:2,FAILED:3,DISPOSED:4,UNLOADING:5},ym={[Kr.PENDING]:"pending",[Kr.LOADING]:"loading",[Kr.ACTIVE]:"active",[Kr.FAILED]:"failed",[Kr.DISPOSED]:"disposed",[Kr.UNLOADING]:"unloading"};var aT=class{constructor(e,n){I(this,"container");I(this,"seams");I(this,"page");I(this,"ctx");I(this,"modules");I(this,"manifest");this.container=e,this.seams=n,this.page=new sT(e)}async run(){try{const e=globalThis,n=e.__ModuleLoader__;if(n===void 0)throw new Error("web boot: window.__ModuleLoader__ bootstrap facade is missing");const i=globalThis.__DSH_TRANSPORT__;this.modules=n.create({boot:e.__DSH_BOOT__,staticModules:oT(),...(i==null?void 0:i.loadBundle)===void 0?{}:{loadBundle:i.loadBundle},...this.seams}),this.manifest=this.modules.manifest;const s=this.prefetchImmediateTier(),a=new We;this.ctx=a,await this.runPluginBoot(a,s),await this.mountApp(a)}catch(e){console.error(e),this.page.fail(e instanceof Error?e.message:String(e))}}async dispose(){const e=this.ctx;this.ctx=void 0,e!==void 0&&await e.fiber.dispose(),this.page.dispose()}async mountApp(e){await e.inject(["uiRenderer"],n=>{n.effect(()=>n.uiRenderer.mount(this.container),"web boot: application mount")})}async prefetchImmediateTier(){var e;((e=globalThis.__DSH_TRANSPORT__)==null?void 0:e.loadBundle)===void 0&&await Promise.all(this.manifest.plugins.filter(n=>n.immediately).map(n=>this.modules.prefetch(n.id).catch(i=>{})))}async runPluginBoot(e,n){await e.plugin(Iv);const i=e.loader;i.internal=this.modules,e.on("internal/status",a=>{const u=a.entry;u===void 0||u.fiber===void 0||this.page.setState(u.options.name,ym[u.fiber.state])});const s=this.manifest.plugins.map(a=>a.id);this.page.setTotal(s.length),await n,await Promise.all(s.map(async a=>{this.page.setState(a,"loading");const u=await i.create({name:a});i.resolve(u).fiber===void 0&&this.page.setState(a,"failed")})),await i.await(),this.assertEntriesActive(e)}assertEntriesActive(e){const n=[];for(const i of e.loader.entries()){const s=i.options.name;if(i.fiber===void 0){n.push(`${s}: import failed (see console for the import error)`);continue}const a=ym[i.fiber.state];if(a!=="active")if(a==="pending"){const u=Object.keys(i.fiber.inject).filter(c=>e.get(c)===void 0);n.push(`${s}: pending (waiting for service${u.length===1?"":"s"}: ${u.join(", ")||"unknown"})`)}else n.push(`${s}: ${a}`)}if(n.length>0)throw new Error(`web boot: ${String(n.length)} entr${n.length===1?"y":"ies"} did not activate
555
555
  ${n.join(`
556
- `)}`)}};const ag=document.getElementById("root");if(ag===null)throw new Error("web app: missing #root");new aT(ag).run();
557
- //# sourceMappingURL=index-DXwOrLlT.js.map
556
+ `)}`)}};const lg=document.getElementById("root");if(lg===null)throw new Error("web app: missing #root");new aT(lg).run();
557
+ //# sourceMappingURL=index-DdWi7kx-.js.map