@smartos-lib/components 2.0.14 → 2.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
|
|
1
|
-
var N1;(function(v){"use strict";const vn=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const u=e==null?void 0:e(o);if(n===!1||!u)return t==null?void 0:t(o)};var
|
2
|
-
* @vue/shared v3.4.
|
1
|
+
var N1;(function(v){"use strict";const vn=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const u=e==null?void 0:e(o);if(n===!1||!u)return t==null?void 0:t(o)};var jd;const Jt=typeof window<"u",j1=e=>typeof e=="string",Id=()=>{},I1=Jt&&((jd=window==null?void 0:window.navigator)==null?void 0:jd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Md(e){return typeof e=="function"?e():v.unref(e)}function M1(e){return e}function $d(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function dr(e){var t;const n=Md(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ld=Jt?window:void 0;function Ms(...e){let t,n,r,o;if(j1(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Ld):[t,n,r,o]=e,!t)return Id;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[dr(t),Md(o)],([c,d])=>{a(),c&&u.push(...n.flatMap(p=>r.map(y=>i(c,p,y,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return $d(l),l}let zd=!1;function $1(e,t,n={}){const{window:r=Ld,ignore:o=[],capture:u=!0,detectIframe:a=!1}=n;if(!r)return;I1&&!zd&&(zd=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",Id)));let i=!0;const s=p=>o.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(m=>m===p.target||p.composedPath().includes(m));{const m=dr(y);return m&&(p.target===m||p.composedPath().includes(m))}}),c=[Ms(r,"click",p=>{const y=dr(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(i=!s(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:u}),Ms(r,"pointerdown",p=>{const y=dr(e);y&&(i=!p.composedPath().includes(y)&&!s(p))},{passive:!0}),a&&Ms(r,"blur",p=>{var y;const m=dr(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>c.forEach(p=>p())}const Vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wd="__vueuse_ssr_handlers__";Vd[Wd]=Vd[Wd]||{};var Ud;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ud||(Ud={}));var L1=Object.defineProperty,Hd=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,V1=Object.prototype.propertyIsEnumerable,Kd=(e,t,n)=>t in e?L1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W1=(e,t)=>{for(var n in t||(t={}))z1.call(t,n)&&Kd(e,n,t[n]);if(Hd)for(var n of Hd(t))V1.call(t,n)&&Kd(e,n,t[n]);return e};W1({linear:M1},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
|
2
|
+
* @vue/shared v3.4.31
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
4
|
* @license MIT
|
5
|
-
**/const Ms=()=>{},U1=Object.prototype.hasOwnProperty,Kd=(e,t)=>U1.call(e,t),H1=Array.isArray,Vo=e=>typeof e=="function",K1=e=>typeof e=="string",$s=e=>e!==null&&typeof e=="object";var q1=typeof global=="object"&&global&&global.Object===Object&&global,Y1=typeof self=="object"&&self&&self.Object===Object&&self,Ls=q1||Y1||Function("return this")(),Pn=Ls.Symbol,qd=Object.prototype,Q1=qd.hasOwnProperty,G1=qd.toString,Wo=Pn?Pn.toStringTag:void 0;function X1(e){var t=Q1.call(e,Wo),n=e[Wo];try{e[Wo]=void 0;var r=!0}catch{}var o=G1.call(e);return r&&(t?e[Wo]=n:delete e[Wo]),o}var Z1=Object.prototype,J1=Z1.toString;function eD(e){return J1.call(e)}var tD="[object Null]",nD="[object Undefined]",Yd=Pn?Pn.toStringTag:void 0;function zs(e){return e==null?e===void 0?nD:tD:Yd&&Yd in Object(e)?X1(e):eD(e)}function Vs(e){return e!=null&&typeof e=="object"}var rD="[object Symbol]";function Ws(e){return typeof e=="symbol"||Vs(e)&&zs(e)==rD}function oD(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Uo=Array.isArray,uD=1/0,Qd=Pn?Pn.prototype:void 0,Gd=Qd?Qd.toString:void 0;function Xd(e){if(typeof e=="string")return e;if(Uo(e))return oD(e,Xd)+"";if(Ws(e))return Gd?Gd.call(e):"";var t=e+"";return t=="0"&&1/e==-uD?"-0":t}function da(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function aD(e){return e}var iD="[object AsyncFunction]",sD="[object Function]",lD="[object GeneratorFunction]",cD="[object Proxy]";function fD(e){if(!da(e))return!1;var t=zs(e);return t==sD||t==lD||t==iD||t==cD}var Us=Ls["__core-js_shared__"],Zd=function(){var e=/[^.]+$/.exec(Us&&Us.keys&&Us.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dD(e){return!!Zd&&Zd in e}var pD=Function.prototype,vD=pD.toString;function hD(e){if(e!=null){try{return vD.call(e)}catch{}try{return e+""}catch{}}return""}var mD=/[\\^$.*+?()[\]{}|]/g,gD=/^\[object .+?Constructor\]$/,yD=Function.prototype,DD=Object.prototype,CD=yD.toString,wD=DD.hasOwnProperty,ED=RegExp("^"+CD.call(wD).replace(mD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BD(e){if(!da(e)||dD(e))return!1;var t=fD(e)?ED:gD;return t.test(hD(e))}function AD(e,t){return e==null?void 0:e[t]}function Hs(e,t){var n=AD(e,t);return BD(n)?n:void 0}function bD(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var xD=800,FD=16,SD=Date.now;function OD(e){var t=0,n=0;return function(){var r=SD(),o=FD-(r-n);if(n=r,o>0){if(++t>=xD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _D(e){return function(){return e}}var pa=function(){try{var e=Hs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),PD=pa?function(e,t){return pa(e,"toString",{configurable:!0,enumerable:!1,value:_D(t),writable:!0})}:aD,kD=OD(PD),TD=9007199254740991,RD=/^(?:0|[1-9]\d*)$/;function Jd(e,t){var n=typeof e;return t=t??TD,!!t&&(n=="number"||n!="symbol"&&RD.test(e))&&e>-1&&e%1==0&&e<t}function ND(e,t,n){t=="__proto__"&&pa?pa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ep(e,t){return e===t||e!==e&&t!==t}var jD=Object.prototype,ID=jD.hasOwnProperty;function MD(e,t,n){var r=e[t];(!(ID.call(e,t)&&ep(r,n))||n===void 0&&!(t in e))&&ND(e,t,n)}var tp=Math.max;function $D(e,t,n){return t=tp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=tp(r.length-t,0),a=Array(u);++o<u;)a[o]=r[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=r[o];return i[t]=n(a),bD(e,this,i)}}var LD=9007199254740991;function zD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LD}var VD="[object Arguments]";function np(e){return Vs(e)&&zs(e)==VD}var rp=Object.prototype,WD=rp.hasOwnProperty,UD=rp.propertyIsEnumerable,op=np(function(){return arguments}())?np:function(e){return Vs(e)&&WD.call(e,"callee")&&!UD.call(e,"callee")},HD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KD=/^\w*$/;function qD(e,t){if(Uo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ws(e)?!0:KD.test(e)||!HD.test(e)||t!=null&&e in Object(t)}var Ho=Hs(Object,"create");function YD(){this.__data__=Ho?Ho(null):{},this.size=0}function QD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GD="__lodash_hash_undefined__",XD=Object.prototype,ZD=XD.hasOwnProperty;function JD(e){var t=this.__data__;if(Ho){var n=t[e];return n===GD?void 0:n}return ZD.call(t,e)?t[e]:void 0}var eC=Object.prototype,tC=eC.hasOwnProperty;function nC(e){var t=this.__data__;return Ho?t[e]!==void 0:tC.call(t,e)}var rC="__lodash_hash_undefined__";function oC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ho&&t===void 0?rC:t,this}function pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pr.prototype.clear=YD,pr.prototype.delete=QD,pr.prototype.get=JD,pr.prototype.has=nC,pr.prototype.set=oC;function uC(){this.__data__=[],this.size=0}function va(e,t){for(var n=e.length;n--;)if(ep(e[n][0],t))return n;return-1}var aC=Array.prototype,iC=aC.splice;function sC(e){var t=this.__data__,n=va(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():iC.call(t,n,1),--this.size,!0}function lC(e){var t=this.__data__,n=va(t,e);return n<0?void 0:t[n][1]}function cC(e){return va(this.__data__,e)>-1}function fC(e,t){var n=this.__data__,r=va(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ur.prototype.clear=uC,Ur.prototype.delete=sC,Ur.prototype.get=lC,Ur.prototype.has=cC,Ur.prototype.set=fC;var dC=Hs(Ls,"Map");function pC(){this.size=0,this.__data__={hash:new pr,map:new(dC||Ur),string:new pr}}function vC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ha(e,t){var n=e.__data__;return vC(t)?n[typeof t=="string"?"string":"hash"]:n.map}function hC(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t}function mC(e){return ha(this,e).get(e)}function gC(e){return ha(this,e).has(e)}function yC(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vr.prototype.clear=pC,vr.prototype.delete=hC,vr.prototype.get=mC,vr.prototype.has=gC,vr.prototype.set=yC;var DC="Expected a function";function Ks(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DC);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=e.apply(this,r);return n.cache=u.set(o,a)||u,a};return n.cache=new(Ks.Cache||vr),n}Ks.Cache=vr;var CC=500;function wC(e){var t=Ks(e,function(r){return n.size===CC&&n.clear(),r}),n=t.cache;return t}var EC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BC=/\\(\\)?/g,AC=wC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EC,function(n,r,o,u){t.push(o?u.replace(BC,"$1"):r||n)}),t});function bC(e){return e==null?"":Xd(e)}function ma(e,t){return Uo(e)?e:qD(e,t)?[e]:AC(bC(e))}var xC=1/0;function qs(e){if(typeof e=="string"||Ws(e))return e;var t=e+"";return t=="0"&&1/e==-xC?"-0":t}function FC(e,t){t=ma(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qs(t[n++])];return n&&n==r?e:void 0}function SC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var up=Pn?Pn.isConcatSpreadable:void 0;function OC(e){return Uo(e)||op(e)||!!(up&&e&&e[up])}function _C(e,t,n,r,o){var u=-1,a=e.length;for(n||(n=OC),o||(o=[]);++u<a;){var i=e[u];n(i)?SC(o,i):o[o.length]=i}return o}function PC(e){var t=e==null?0:e.length;return t?_C(e):[]}function kC(e){return kD($D(e,void 0,PC),e+"")}function TC(e,t){return e!=null&&t in Object(e)}function RC(e,t,n){t=ma(t,e);for(var r=-1,o=t.length,u=!1;++r<o;){var a=qs(t[r]);if(!(u=e!=null&&n(e,a)))break;e=e[a]}return u||++r!=o?u:(o=e==null?0:e.length,!!o&&zD(o)&&Jd(a,o)&&(Uo(e)||op(e)))}function NC(e,t){return e!=null&&RC(e,t,TC)}function Ys(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Qs(e){return e==null}function jC(e){return e===void 0}function IC(e,t,n,r){if(!da(e))return e;t=ma(t,e);for(var o=-1,u=t.length,a=u-1,i=e;i!=null&&++o<u;){var s=qs(t[o]),l=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=a){var c=i[s];l=void 0,l===void 0&&(l=da(c)?c:Jd(t[o+1])?[]:{})}MD(i,s,l),i=i[s]}return e}function MC(e,t,n){for(var r=-1,o=t.length,u={};++r<o;){var a=t[r],i=FC(e,a);n(i,a)&&IC(u,ma(a,e),i)}return u}function $C(e,t){return MC(e,t,function(n,r){return NC(e,r)})}var LC=kC(function(e,t){return e==null?{}:$C(e,t)});const ap=e=>typeof e=="boolean",ga=e=>typeof e=="number",ya=e=>typeof Element>"u"?!1:e instanceof Element,ip=e=>Object.keys(e),sp="__epPropKey",De=e=>e,zC=e=>$s(e)&&!!e[sp],Da=(e,t)=>{if(!$s(e)||zC(e))return e;const{values:n,required:r,default:o,type:u,validator:a}=e,s={type:u,required:!!r,validator:n||a?l=>{let c=!1,d=[];if(n&&(d=Array.from(n),Kd(e,"default")&&d.push(o),c||(c=d.includes(l))),a&&(c||(c=a(l))),!c&&d.length>0){const p=[...new Set(d)].map(y=>JSON.stringify(y)).join(", ");v.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(l)}.`)}return c}:void 0,[sp]:!0};return Kd(e,"default")&&(s.default=o),s},Ot=e=>Ys(Object.entries(e).map(([t,n])=>[t,Da(n,t)])),Gs=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),Ca={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},VC=["","default","small","large"],WC=Symbol("localeContextKey"),Xs="el",UC="is-",hr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},lp=Symbol("namespaceContextKey"),Zs=e=>{const t=v.getCurrentInstance()?v.inject(lp,v.ref(Xs)):v.ref(Xs);return v.computed(()=>v.unref(t)||Xs)},Ko=(e,t)=>{const n=Zs();return{namespace:n,b:(f="")=>hr(n.value,e,f,"",""),e:f=>f?hr(n.value,e,"",f,""):"",m:f=>f?hr(n.value,e,"","",f):"",be:(f,w)=>f&&w?hr(n.value,e,f,w,""):"",em:(f,w)=>f&&w?hr(n.value,e,"",f,w):"",bm:(f,w)=>f&&w?hr(n.value,e,f,"",w):"",bem:(f,w,h)=>f&&w&&h?hr(n.value,e,f,w,h):"",is:(f,...w)=>{const h=w.length>=1?w[0]:!0;return f&&h?`${UC}${f}`:""},cssVar:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${h}`]=f[h]);return w},cssVarName:f=>`--${n.value}-${f}`,cssVarBlock:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${e}-${h}`]=f[h]);return w},cssVarBlockName:f=>`--${n.value}-${e}-${f}`}},HC=Da({type:De(Boolean),default:null}),KC=Da({type:De(Function)}),cp=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:HC,[n]:KC};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:c,onHide:d})=>{const p=v.getCurrentInstance(),{emit:y}=p,m=p.props,f=v.computed(()=>Vo(m[n])),w=v.computed(()=>m[e]===null),h=A=>{a.value!==!0&&(a.value=!0,i&&(i.value=A),Vo(c)&&c(A))},g=A=>{a.value!==!1&&(a.value=!1,i&&(i.value=A),Vo(d)&&d(A))},C=A=>{if(m.disabled===!0||Vo(l)&&!l())return;const S=f.value&&Jt;S&&y(t,!0),(w.value||!S)&&h(A)},E=A=>{if(m.disabled===!0||!Jt)return;const S=f.value&&Jt;S&&y(t,!1),(w.value||!S)&&g(A)},B=A=>{ap(A)&&(m.disabled&&A?f.value&&y(t,!1):a.value!==A&&(A?h():g()))},x=()=>{a.value?E():C()};return v.watch(()=>m[e],B),s&&p.appContext.config.globalProperties.$route!==void 0&&v.watch(()=>({...p.proxy.$route}),()=>{s.value&&a.value&&E()}),v.onMounted(()=>{B(m[e])}),{hide:E,show:C,toggle:x,hasUpdateHandler:f}},useModelToggleProps:o,useModelToggleEmits:r}};cp("modelValue");var ct="top",_t="bottom",Pt="right",ft="left",Js="auto",qo=[ct,_t,Pt,ft],Hr="start",Yo="end",qC="clippingParents",fp="viewport",Qo="popper",YC="reference",dp=qo.reduce(function(e,t){return e.concat([t+"-"+Hr,t+"-"+Yo])},[]),el=[].concat(qo,[Js]).reduce(function(e,t){return e.concat([t,t+"-"+Hr,t+"-"+Yo])},[]),QC="beforeRead",GC="read",XC="afterRead",ZC="beforeMain",JC="main",ew="afterMain",tw="beforeWrite",nw="write",rw="afterWrite",ow=[QC,GC,XC,ZC,JC,ew,tw,nw,rw];function en(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kr(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function kt(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tl(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},u=t.elements[n];!kt(u)||!en(u)||(Object.assign(u.style,r),Object.keys(o).forEach(function(a){var i=o[a];i===!1?u.removeAttribute(a):u.setAttribute(a,i===!0?"":i)}))})}function aw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],u=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(s,l){return s[l]="",s},{});!kt(o)||!en(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var pp={name:"applyStyles",enabled:!0,phase:"write",fn:uw,effect:aw,requires:["computeStyles"]};function tn(e){return e.split("-")[0]}var mr=Math.max,wa=Math.min,qr=Math.round;function Yr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(kt(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=qr(n.width)/a||1),u>0&&(o=qr(n.height)/u||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function nl(e){var t=Yr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function vp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hn(e){return Vt(e).getComputedStyle(e)}function iw(e){return["table","td","th"].indexOf(en(e))>=0}function kn(e){return((Kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ea(e){return en(e)==="html"?e:e.assignedSlot||e.parentNode||(tl(e)?e.host:null)||kn(e)}function hp(e){return!kt(e)||hn(e).position==="fixed"?null:e.offsetParent}function sw(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&kt(e)){var r=hn(e);if(r.position==="fixed")return null}var o=Ea(e);for(tl(o)&&(o=o.host);kt(o)&&["html","body"].indexOf(en(o))<0;){var u=hn(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function Go(e){for(var t=Vt(e),n=hp(e);n&&iw(n)&&hn(n).position==="static";)n=hp(n);return n&&(en(n)==="html"||en(n)==="body"&&hn(n).position==="static")?t:n||sw(e)||t}function rl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xo(e,t,n){return mr(e,wa(t,n))}function lw(e,t,n){var r=Xo(e,t,n);return r>n?n:r}function mp(){return{top:0,right:0,bottom:0,left:0}}function gp(e){return Object.assign({},mp(),e)}function yp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cw=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,gp(typeof e!="number"?e:yp(e,qo))};function fw(e){var t,n=e.state,r=e.name,o=e.options,u=n.elements.arrow,a=n.modifiersData.popperOffsets,i=tn(n.placement),s=rl(i),l=[ft,Pt].indexOf(i)>=0,c=l?"height":"width";if(!(!u||!a)){var d=cw(o.padding,n),p=nl(u),y=s==="y"?ct:ft,m=s==="y"?_t:Pt,f=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],w=a[s]-n.rects.reference[s],h=Go(u),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=f/2-w/2,E=d[y],B=g-p[c]-d[m],x=g/2-p[c]/2+C,A=Xo(E,x,B),S=s;n.modifiersData[r]=(t={},t[S]=A,t.centerOffset=A-x,t)}}function dw(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!vp(t.elements.popper,o)||(t.elements.arrow=o))}var pw={name:"arrow",enabled:!0,phase:"main",fn:fw,effect:dw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qr(e){return e.split("-")[1]}var vw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hw(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:qr(t*o)/o||0,y:qr(n*o)/o||0}}function Dp(e){var t,n=e.popper,r=e.popperRect,o=e.placement,u=e.variation,a=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,y=p===void 0?0:p,m=a.y,f=m===void 0?0:m,w=typeof c=="function"?c({x:y,y:f}):{x:y,y:f};y=w.x,f=w.y;var h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=ft,E=ct,B=window;if(l){var x=Go(n),A="clientHeight",S="clientWidth";if(x===Vt(n)&&(x=kn(n),hn(x).position!=="static"&&i==="absolute"&&(A="scrollHeight",S="scrollWidth")),x=x,o===ct||(o===ft||o===Pt)&&u===Yo){E=_t;var N=d&&x===B&&B.visualViewport?B.visualViewport.height:x[A];f-=N-r.height,f*=s?1:-1}if(o===ft||(o===ct||o===_t)&&u===Yo){C=Pt;var O=d&&x===B&&B.visualViewport?B.visualViewport.width:x[S];y-=O-r.width,y*=s?1:-1}}var V=Object.assign({position:i},l&&vw),P=c===!0?hw({x:y,y:f}):{x:y,y:f};if(y=P.x,f=P.y,s){var L;return Object.assign({},V,(L={},L[E]=g?"0":"",L[C]=h?"0":"",L.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",L))}return Object.assign({},V,(t={},t[E]=g?f+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function mw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,u=n.adaptive,a=u===void 0?!0:u,i=n.roundOffsets,s=i===void 0?!0:i,l={placement:tn(t.placement),variation:Qr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dp(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dp(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Cp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mw,data:{}},Ba={passive:!0};function gw(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,u=o===void 0?!0:o,a=r.resize,i=a===void 0?!0:a,s=Vt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&l.forEach(function(c){c.addEventListener("scroll",n.update,Ba)}),i&&s.addEventListener("resize",n.update,Ba),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Ba)}),i&&s.removeEventListener("resize",n.update,Ba)}}var wp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gw,data:{}},yw={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(e){return e.replace(/left|right|bottom|top/g,function(t){return yw[t]})}var Dw={start:"end",end:"start"};function Ep(e){return e.replace(/start|end/g,function(t){return Dw[t]})}function ol(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ul(e){return Yr(kn(e)).left+ol(e).scrollLeft}function Cw(e){var t=Vt(e),n=kn(e),r=t.visualViewport,o=n.clientWidth,u=n.clientHeight,a=0,i=0;return r&&(o=r.width,u=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:o,height:u,x:a+ul(e),y:i}}function ww(e){var t,n=kn(e),r=ol(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=mr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+ul(e),s=-r.scrollTop;return hn(o||n).direction==="rtl"&&(i+=mr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function al(e){var t=hn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Bp(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:kt(e)&&al(e)?e:Bp(Ea(e))}function Zo(e,t){var n;t===void 0&&(t=[]);var r=Bp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],al(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(Zo(Ea(a)))}function il(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ew(e){var t=Yr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ap(e,t){return t===fp?il(Cw(e)):Kr(t)?Ew(t):il(ww(kn(e)))}function Bw(e){var t=Zo(Ea(e)),n=["absolute","fixed"].indexOf(hn(e).position)>=0,r=n&&kt(e)?Go(e):e;return Kr(r)?t.filter(function(o){return Kr(o)&&vp(o,r)&&en(o)!=="body"}):[]}function Aw(e,t,n){var r=t==="clippingParents"?Bw(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=Ap(e,s);return i.top=mr(l.top,i.top),i.right=wa(l.right,i.right),i.bottom=wa(l.bottom,i.bottom),i.left=mr(l.left,i.left),i},Ap(e,u));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function bp(e){var t=e.reference,n=e.element,r=e.placement,o=r?tn(r):null,u=r?Qr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case ct:s={x:a,y:t.y-n.height};break;case _t:s={x:a,y:t.y+t.height};break;case Pt:s={x:t.x+t.width,y:i};break;case ft:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?rl(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(u){case Hr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Yo:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Jo(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,u=n.boundary,a=u===void 0?qC:u,i=n.rootBoundary,s=i===void 0?fp:i,l=n.elementContext,c=l===void 0?Qo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=gp(typeof m!="number"?m:yp(m,qo)),w=c===Qo?YC:Qo,h=e.rects.popper,g=e.elements[p?w:c],C=Aw(Kr(g)?g:g.contextElement||kn(e.elements.popper),a,s),E=Yr(e.elements.reference),B=bp({reference:E,element:h,strategy:"absolute",placement:o}),x=il(Object.assign({},h,B)),A=c===Qo?x:E,S={top:C.top-A.top+f.top,bottom:A.bottom-C.bottom+f.bottom,left:C.left-A.left+f.left,right:A.right-C.right+f.right},N=e.modifiersData.offset;if(c===Qo&&N){var O=N[o];Object.keys(S).forEach(function(V){var P=[Pt,_t].indexOf(V)>=0?1:-1,L=[ct,_t].indexOf(V)>=0?"y":"x";S[V]+=O[L]*P})}return S}function bw(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,u=n.rootBoundary,a=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,l=s===void 0?el:s,c=Qr(r),d=c?i?dp:dp.filter(function(m){return Qr(m)===c}):qo,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var y=p.reduce(function(m,f){return m[f]=Jo(e,{placement:f,boundary:o,rootBoundary:u,padding:a})[tn(f)],m},{});return Object.keys(y).sort(function(m,f){return y[m]-y[f]})}function xw(e){if(tn(e)===Js)return[];var t=Aa(e);return[Ep(e),t,Ep(t)]}function Fw(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!0:a,s=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,f=n.allowedAutoPlacements,w=t.options.placement,h=tn(w),g=h===w,C=s||(g||!m?[Aa(w)]:xw(w)),E=[w].concat(C).reduce(function(fe,F){return fe.concat(tn(F)===Js?bw(t,{placement:F,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:f}):F)},[]),B=t.rects.reference,x=t.rects.popper,A=new Map,S=!0,N=E[0],O=0;O<E.length;O++){var V=E[O],P=tn(V),L=Qr(V)===Hr,j=[ct,_t].indexOf(P)>=0,z=j?"width":"height",G=Jo(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),T=j?L?Pt:ft:L?_t:ct;B[z]>x[z]&&(T=Aa(T));var I=Aa(T),K=[];if(u&&K.push(G[P]<=0),i&&K.push(G[T]<=0,G[I]<=0),K.every(function(fe){return fe})){N=V,S=!1;break}A.set(V,K)}if(S)for(var Q=m?3:1,ne=function(fe){var F=E.find(function(W){var U=A.get(W);if(U)return U.slice(0,fe).every(function(Y){return Y})});if(F)return N=F,"break"},te=Q;te>0;te--){var ye=ne(te);if(ye==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var Sw={name:"flip",enabled:!0,phase:"main",fn:Fw,requiresIfExists:["offset"],data:{_skip:!1}};function xp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fp(e){return[ct,Pt,_t,ft].some(function(t){return e[t]>=0})}function Ow(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Jo(t,{elementContext:"reference"}),i=Jo(t,{altBoundary:!0}),s=xp(a,r),l=xp(i,o,u),c=Fp(s),d=Fp(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var _w={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ow};function Pw(e,t,n){var r=tn(e),o=[ft,ct].indexOf(r)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=u[0],i=u[1];return a=a||0,i=(i||0)*o,[ft,Pt].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function kw(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=el.reduce(function(c,d){return c[d]=Pw(d,t.rects,u),c},{}),i=a[t.placement],s=i.x,l=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var Tw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kw};function Rw(e){var t=e.state,n=e.name;t.modifiersData[n]=bp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Sp={name:"popperOffsets",enabled:!0,phase:"read",fn:Rw,data:{}};function Nw(e){return e==="x"?"y":"x"}function jw(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!1:a,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,f=m===void 0?0:m,w=Jo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=tn(t.placement),g=Qr(t.placement),C=!g,E=rl(h),B=Nw(E),x=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,N=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(u){var L,j=E==="y"?ct:ft,z=E==="y"?_t:Pt,G=E==="y"?"height":"width",T=x[E],I=T+w[j],K=T-w[z],Q=y?-S[G]/2:0,ne=g===Hr?A[G]:S[G],te=g===Hr?-S[G]:-A[G],ye=t.elements.arrow,fe=y&&ye?nl(ye):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mp(),W=F[j],U=F[z],Y=Xo(0,A[G],fe[G]),ie=C?A[G]/2-Q-Y-W-O.mainAxis:ne-Y-W-O.mainAxis,ee=C?-A[G]/2+Q+Y+U+O.mainAxis:te+Y+U+O.mainAxis,he=t.elements.arrow&&Go(t.elements.arrow),pe=he?E==="y"?he.clientTop||0:he.clientLeft||0:0,se=(L=V==null?void 0:V[E])!=null?L:0,ae=T+ie-se-pe,me=T+ee-se,Pe=Xo(y?wa(I,ae):I,T,y?mr(K,me):K);x[E]=Pe,P[E]=Pe-T}if(i){var ve,Qe=E==="x"?ct:ft,yt=E==="x"?_t:Pt,je=x[B],We=B==="y"?"height":"width",we=je+w[Qe],nt=je-w[yt],Te=[ct,ft].indexOf(h)!==-1,de=(ve=V==null?void 0:V[B])!=null?ve:0,Dt=Te?we:je-A[We]-S[We]-de+O.altAxis,dn=Te?je+A[We]+S[We]-de-O.altAxis:nt,Ge=y&&Te?lw(Dt,je,dn):Xo(y?Dt:we,je,y?dn:nt);x[B]=Ge,P[B]=Ge-je}t.modifiersData[r]=P}}var Iw={name:"preventOverflow",enabled:!0,phase:"main",fn:jw,requiresIfExists:["offset"]};function Mw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $w(e){return e===Vt(e)||!kt(e)?ol(e):Mw(e)}function Lw(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,r=qr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zw(e,t,n){n===void 0&&(n=!1);var r=kt(t),o=kt(t)&&Lw(t),u=kn(t),a=Yr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((en(t)!=="body"||al(u))&&(i=$w(t)),kt(t)?(s=Yr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=ul(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function Vw(e){var t=new Map,n=new Set,r=[];e.forEach(function(u){t.set(u.name,u)});function o(u){n.add(u.name);var a=[].concat(u.requires||[],u.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var s=t.get(i);s&&o(s)}}),r.push(u)}return e.forEach(function(u){n.has(u.name)||o(u)}),r}function Ww(e){var t=Vw(e);return ow.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Uw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hw(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Op={placement:"bottom",modifiers:[],strategy:"absolute"};function _p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function sl(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?Op:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Op,u),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(f){var w=typeof f=="function"?f(l.options):f;m(),l.options=Object.assign({},u,l.options,w),l.scrollParents={reference:Kr(a)?Zo(a):a.contextElement?Zo(a.contextElement):[],popper:Zo(i)};var h=Ww(Hw([].concat(r,l.options.modifiers)));return l.orderedModifiers=h.filter(function(g){return g.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var f=l.elements,w=f.reference,h=f.popper;if(_p(w,h)){l.rects={reference:zw(w,Go(h),l.options.strategy==="fixed"),popper:nl(h)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(S){return l.modifiersData[S.name]=Object.assign({},S.data)});for(var g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}var C=l.orderedModifiers[g],E=C.fn,B=C.options,x=B===void 0?{}:B,A=C.name;typeof E=="function"&&(l=E({state:l,options:x,name:A,instance:p})||l)}}}},update:Uw(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!_p(a,i))return p;p.setOptions(s).then(function(f){!d&&s.onFirstUpdate&&s.onFirstUpdate(f)});function y(){l.orderedModifiers.forEach(function(f){var w=f.name,h=f.options,g=h===void 0?{}:h,C=f.effect;if(typeof C=="function"){var E=C({state:l,name:w,instance:p,options:g}),B=function(){};c.push(E||B)}})}function m(){c.forEach(function(f){return f()}),c=[]}return p}}sl();var Kw=[wp,Sp,Cp,pp];sl({defaultModifiers:Kw});var qw=[wp,Sp,Cp,pp,Tw,Sw,Iw,pw,_w],Yw=sl({defaultModifiers:qw});const Qw=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=Gw(s);Object.assign(a.value,l)},requires:["computeStyles"]},o=v.computed(()=>{const{onFirstUpdate:s,placement:l,strategy:c,modifiers:d}=v.unref(n);return{onFirstUpdate:s,placement:l||"bottom",strategy:c||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),u=v.shallowRef(),a=v.ref({styles:{popper:{position:v.unref(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{u.value&&(u.value.destroy(),u.value=void 0)};return v.watch(o,s=>{const l=v.unref(u);l&&l.setOptions(s)},{deep:!0}),v.watch([e,t],([s,l])=>{i(),!(!s||!l)&&(u.value=Yw(s,l,v.unref(o)))}),v.onBeforeUnmount(()=>{i()}),{state:v.computed(()=>{var s;return{...((s=v.unref(u))==null?void 0:s.state)||{}}}),styles:v.computed(()=>v.unref(a).styles),attributes:v.computed(()=>v.unref(a).attributes),update:()=>{var s;return(s=v.unref(u))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=v.unref(u))==null?void 0:s.forceUpdate()},instanceRef:v.computed(()=>v.unref(u))}};function Gw(e){const t=Object.keys(e.elements),n=Ys(t.map(o=>[o,e.styles[o]||{}])),r=Ys(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function Pp(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Md(()=>n()),{registerTimeout:t,cancelTimeout:n}}const kp={prefix:Math.floor(Math.random()*1e4),current:0},Xw=Symbol("elIdInjection"),Tp=()=>v.getCurrentInstance()?v.inject(Xw,kp):kp,Zw=e=>{const t=Tp(),n=Zs();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Gr=[];const Rp=e=>{const t=e;t.key===Ca.esc&&Gr.forEach(n=>n(t))},Jw=e=>{v.onMounted(()=>{Gr.length===0&&document.addEventListener("keydown",Rp),Jt&&Gr.push(e)}),v.onBeforeUnmount(()=>{Gr=Gr.filter(t=>t!==e),Gr.length===0&&Jt&&document.removeEventListener("keydown",Rp)})};let Np;const jp=()=>{const e=Zs(),t=Tp(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},eE=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},tE=()=>{const{id:e,selector:t}=jp();return v.onBeforeMount(()=>{Jt&&!Np&&!document.body.querySelector(t.value)&&(Np=eE(e.value))}),{id:e,selector:t}},nE=Ot({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),rE=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Pp(),{registerTimeout:a,cancelTimeout:i}=Pp();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);ga(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},Ip=Symbol("elForwardRef"),oE=e=>{const t=n=>{e.value=n};v.provide(Ip,{setForwardRef:t})},uE=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Mp={current:0},$p=v.ref(0),aE=2e3,Lp=Symbol("elZIndexContextKey"),zp=Symbol("zIndexContextKey"),iE=e=>{const t=v.getCurrentInstance()?v.inject(Lp,Mp):Mp,n=v.getCurrentInstance()?v.inject(zp,void 0):void 0,r=v.computed(()=>{const a=v.unref(n);return ga(a)?a:aE}),o=v.computed(()=>r.value+$p.value),u=()=>(t.current++,$p.value=t.current,o.value);return!Jt&&v.inject(Lp),{initialZIndex:r,currentZIndex:o,nextZIndex:u}},ll=Math.min,Xr=Math.max,ba=Math.round,Tn=e=>({x:e,y:e}),sE={left:"right",right:"left",bottom:"top",top:"bottom"},lE={start:"end",end:"start"};function Vp(e,t,n){return Xr(e,ll(t,n))}function xa(e,t){return typeof e=="function"?e(t):e}function gr(e){return e.split("-")[0]}function Fa(e){return e.split("-")[1]}function Wp(e){return e==="x"?"y":"x"}function Up(e){return e==="y"?"height":"width"}function Sa(e){return["top","bottom"].includes(gr(e))?"y":"x"}function Hp(e){return Wp(Sa(e))}function cE(e,t,n){n===void 0&&(n=!1);const r=Fa(e),o=Hp(e),u=Up(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=Oa(a)),[a,Oa(a)]}function fE(e){const t=Oa(e);return[cl(e),t,cl(t)]}function cl(e){return e.replace(/start|end/g,t=>lE[t])}function dE(e,t,n){const r=["left","right"],o=["right","left"],u=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?u:a;default:return[]}}function pE(e,t,n,r){const o=Fa(e);let u=dE(gr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(cl)))),u}function Oa(e){return e.replace(/left|right|bottom|top/g,t=>sE[t])}function vE(e){return{top:0,right:0,bottom:0,left:0,...e}}function hE(e){return typeof e!="number"?vE(e):{top:e,right:e,bottom:e,left:e}}function _a(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Kp(e,t,n){let{reference:r,floating:o}=e;const u=Sa(t),a=Hp(t),i=Up(a),s=gr(t),l=u==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let y;switch(s){case"top":y={x:c,y:r.y-o.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-o.width,y:d};break;default:y={x:r.x,y:r.y}}switch(Fa(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const mE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:a}=n,i=u.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Kp(l,r,s),p=r,y={},m=0;for(let f=0;f<i.length;f++){const{name:w,fn:h}=i[f],{x:g,y:C,data:E,reset:B}=await h({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:l,platform:a,elements:{reference:e,floating:t}});c=g??c,d=C??d,y={...y,[w]:{...y[w],...E}},B&&m<=50&&(m++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(l=B.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):B.rects),{x:c,y:d}=Kp(l,p,s)),f=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function qp(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:u,rects:a,elements:i,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=xa(t,e),m=hE(y),w=i[p?d==="floating"?"reference":"floating":d],h=_a(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement(w)))==null||n?w:w.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(i.floating)),boundary:l,rootBoundary:c,strategy:s})),g=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(i.floating)),E=await(u.isElement==null?void 0:u.isElement(C))?await(u.getScale==null?void 0:u.getScale(C))||{x:1,y:1}:{x:1,y:1},B=_a(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:C,strategy:s}):g);return{top:(h.top-B.top+m.top)/E.y,bottom:(B.bottom-h.bottom+m.bottom)/E.y,left:(h.left-B.left+m.left)/E.x,right:(B.right-h.right+m.right)/E.x}}const gE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:u,rects:a,initialPlacement:i,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...w}=xa(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=gr(o),g=gr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!f?[Oa(i)]:fE(i));!p&&m!=="none"&&E.push(...pE(i,f,m,C));const B=[i,...E],x=await qp(t,w),A=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&A.push(x[h]),d){const P=cE(o,a,C);A.push(x[P[0]],x[P[1]])}if(S=[...S,{placement:o,overflows:A}],!A.every(P=>P<=0)){var N,O;const P=(((N=u.flip)==null?void 0:N.index)||0)+1,L=B[P];if(L)return{data:{index:P,overflows:S},reset:{placement:L}};let j=(O=S.filter(z=>z.overflows[0]<=0).sort((z,G)=>z.overflows[1]-G.overflows[1])[0])==null?void 0:O.placement;if(!j)switch(y){case"bestFit":{var V;const z=(V=S.map(G=>[G.placement,G.overflows.filter(T=>T>0).reduce((T,I)=>T+I,0)]).sort((G,T)=>G[1]-T[1])[0])==null?void 0:V[0];z&&(j=z);break}case"initialPlacement":j=i;break}if(o!==j)return{reset:{placement:j}}}return{}}}};async function yE(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=gr(n),i=Fa(n),s=Sa(n)==="y",l=["left","top"].includes(a)?-1:1,c=u&&s?-1:1,d=xa(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(y=i==="end"?m*-1:m),s?{x:y*c,y:p*l}:{x:p*l,y:y*c}}const DE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:u,placement:a,middlewareData:i}=t,s=await yE(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:u+s.y,data:{...s,placement:a}}}}},CE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:i={fn:w=>{let{x:h,y:g}=w;return{x:h,y:g}}},...s}=xa(e,t),l={x:n,y:r},c=await qp(t,s),d=Sa(gr(o)),p=Wp(d);let y=l[p],m=l[d];if(u){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",g=y+c[w],C=y-c[h];y=Vp(g,y,C)}if(a){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=m+c[w],C=m-c[h];m=Vp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function yr(e){return fl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(fl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fl(e){return e instanceof Node||e instanceof Ct(e).Node}function nn(e){return e instanceof Element||e instanceof Ct(e).Element}function rn(e){return e instanceof HTMLElement||e instanceof Ct(e).HTMLElement}function Yp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}function eu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wE(e){return["table","td","th"].includes(yr(e))}function dl(e){const t=pl(),n=Wt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function EE(e){let t=Nn(e);for(;rn(t)&&!Zr(t);){if(dl(t))return t;t=Nn(t)}return null}function pl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zr(e){return["html","body","#document"].includes(yr(e))}function Wt(e){return Ct(e).getComputedStyle(e)}function Pa(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nn(e){if(yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yp(e)&&e.host||Rn(e);return Yp(t)?t.host:t}function Qp(e){const t=Nn(e);return Zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&eu(t)?t:Qp(t)}function vl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Qp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ct(o);return u?t.concat(a,a.visualViewport||[],eu(o)?o:[],a.frameElement&&n?vl(a.frameElement):[]):t.concat(o,vl(o,[],n))}function Gp(e){const t=Wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=ba(n)!==u||ba(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Xp(e){return nn(e)?e:e.contextElement}function Jr(e){const t=Xp(e);if(!rn(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Gp(t);let a=(u?ba(n.width):n.width)/r,i=(u?ba(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const BE=Tn(0);function Zp(e){const t=Ct(e);return!pl()||!t.visualViewport?BE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function tu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Xp(e);let a=Tn(1);t&&(r?nn(r)&&(a=Jr(r)):a=Jr(e));const i=AE(u,n,r)?Zp(u):Tn(0);let s=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(u){const p=Ct(u),y=r&&nn(r)?Ct(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=Jr(f),h=f.getBoundingClientRect(),g=Wt(f),C=h.left+(f.clientLeft+parseFloat(g.paddingLeft))*w.x,E=h.top+(f.clientTop+parseFloat(g.paddingTop))*w.y;s*=w.x,l*=w.y,c*=w.x,d*=w.y,s+=C,l+=E,m=Ct(f),f=m.frameElement}}return _a({width:c,height:d,x:s,y:l})}const bE=[":popover-open",":modal"];function hl(e){return bE.some(t=>{try{return e.matches(t)}catch{return!1}})}function xE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=Rn(r),i=t?hl(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=Tn(1);const c=Tn(0),d=rn(r);if((d||!d&&!u)&&((yr(r)!=="body"||eu(a))&&(s=Pa(r)),rn(r))){const p=tu(r);l=Jr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x,y:n.y*l.y-s.scrollTop*l.y+c.y}}function FE(e){return Array.from(e.getClientRects())}function Jp(e){return tu(Rn(e)).left+Pa(e).scrollLeft}function SE(e){const t=Rn(e),n=Pa(e),r=e.ownerDocument.body,o=Xr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Xr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Jp(e);const i=-n.scrollTop;return Wt(r).direction==="rtl"&&(a+=Xr(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function OE(e,t){const n=Ct(e),r=Rn(e),o=n.visualViewport;let u=r.clientWidth,a=r.clientHeight,i=0,s=0;if(o){u=o.width,a=o.height;const l=pl();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function _E(e,t){const n=tu(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=rn(e)?Jr(e):Tn(1),a=e.clientWidth*u.x,i=e.clientHeight*u.y,s=o*u.x,l=r*u.y;return{width:a,height:i,x:s,y:l}}function ev(e,t,n){let r;if(t==="viewport")r=OE(e,n);else if(t==="document")r=SE(Rn(e));else if(nn(t))r=_E(t,n);else{const o=Zp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return _a(r)}function tv(e,t){const n=Nn(e);return n===t||!nn(n)||Zr(n)?!1:Wt(n).position==="fixed"||tv(n,t)}function PE(e,t){const n=t.get(e);if(n)return n;let r=vl(e,[],!1).filter(i=>nn(i)&&yr(i)!=="body"),o=null;const u=Wt(e).position==="fixed";let a=u?Nn(e):e;for(;nn(a)&&!Zr(a);){const i=Wt(a),s=dl(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||eu(a)&&!s&&tv(e,a))?r=r.filter(c=>c!==a):o=i,a=Nn(a)}return t.set(e,r),r}function kE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?hl(t)?[]:PE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=ev(t,c,o);return l.top=Xr(d.top,l.top),l.right=ll(d.right,l.right),l.bottom=ll(d.bottom,l.bottom),l.left=Xr(d.left,l.left),l},ev(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function TE(e){const{width:t,height:n}=Gp(e);return{width:t,height:n}}function RE(e,t,n){const r=rn(t),o=Rn(t),u=n==="fixed",a=tu(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=Tn(0);if(r||!r&&!u)if((yr(t)!=="body"||eu(o))&&(i=Pa(t)),r){const d=tu(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=Jp(o));const l=a.left+i.scrollLeft-s.x,c=a.top+i.scrollTop-s.y;return{x:l,y:c,width:a.width,height:a.height}}function ml(e){return Wt(e).position==="static"}function nv(e,t){return!rn(e)||Wt(e).position==="fixed"?null:t?t(e):e.offsetParent}function rv(e,t){const n=Ct(e);if(hl(e))return n;if(!rn(e)){let o=Nn(e);for(;o&&!Zr(o);){if(nn(o)&&!ml(o))return o;o=Nn(o)}return n}let r=nv(e,t);for(;r&&wE(r)&&ml(r);)r=nv(r,t);return r&&Zr(r)&&ml(r)&&!dl(r)?n:r||EE(e)||n}const NE=async function(e){const t=this.getOffsetParent||rv,n=this.getDimensions,r=await n(e.floating);return{reference:RE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jE(e){return Wt(e).direction==="rtl"}const IE={convertOffsetParentRelativeRectToViewportRelativeRect:xE,getDocumentElement:Rn,getClippingRect:kE,getOffsetParent:rv,getElementRects:NE,getClientRects:FE,getDimensions:TE,getScale:Jr,isElement:nn,isRTL:jE},ME=DE,$E=CE,LE=gE,zE=(e,t,n)=>{const r=new Map,o={platform:IE,...n},u={...o.platform,_c:r};return mE(e,t,{...o,platform:u})},VE=Da({type:String,values:VC,required:!1}),WE=Symbol("size"),UE=Ot({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Vo(e)?!e():!e}}),HE=Ot({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ov=e=>LC(HE,e),uv=Symbol(),ka=v.ref();function KE(e,t=void 0){return v.getCurrentInstance()?v.inject(uv,ka):ka}const qE=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?KE():void 0,a=(r=void 0)!=null?r:o?v.provide:void 0;if(!a)return;const i=v.computed(()=>{const s=v.unref(e);return u!=null&&u.value?YE(u.value,s):s});return a(uv,i),a(WC,v.computed(()=>i.value.locale)),a(lp,v.computed(()=>i.value.namespace)),a(zp,v.computed(()=>i.value.zIndex)),a(WE,{size:v.computed(()=>i.value.size||"")}),(n||!ka.value)&&(ka.value=i.value),i},YE=(e,t)=>{const n=[...new Set([...ip(e),...ip(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},QE=Ot({a11y:{type:Boolean,default:!0},locale:{type:De(Object)},size:VE,button:{type:De(Object)},experimentalFeatures:{type:De(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:De(Object)},zIndex:Number,namespace:{type:String,default:"el"},...UE}),GE={},XE=v.defineComponent({name:"ElConfigProvider",props:QE,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(GE,r??{})},{immediate:!0,deep:!0});const n=qE(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),ZE=Gs(XE);var jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const av=Symbol("formItemContextKey"),gl=Symbol("popper"),iv=Symbol("popperContent"),sv=Ot({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),JE=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),eB=v.defineComponent({...JE,props:sv,setup(e,{expose:t}){const n=e,r=v.ref(),o=v.ref(),u=v.ref(),a=v.ref(),i=v.computed(()=>n.role),s={triggerRef:r,popperInstanceRef:o,contentRef:u,referenceRef:a,role:i};return t(s),v.provide(gl,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var tB=jn(eB,[["__file","popper.vue"]]);const lv=Ot({arrowOffset:{type:Number,default:5}}),nB=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),rB=v.defineComponent({...nB,props:lv,setup(e,{expose:t}){const n=e,r=Ko("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(iv,void 0);return v.watch(()=>n.arrowOffset,i=>{o.value=i}),v.onBeforeUnmount(()=>{u.value=void 0}),t({arrowRef:u}),(i,s)=>(v.openBlock(),v.createElementBlock("span",{ref_key:"arrowRef",ref:u,class:v.normalizeClass(v.unref(r).e("arrow")),style:v.normalizeStyle(v.unref(a)),"data-popper-arrow":""},null,6))}});var oB=jn(rB,[["__file","arrow.vue"]]);const uB=v.defineComponent({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Ip),u=uE((r=o==null?void 0:o.setForwardRef)!=null?r:Ms);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=cv(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function cv(e){if(!e)return null;const t=e;for(const n of t){if($s(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return fv(n);case v.Fragment:return cv(n.children);default:return n}return fv(n)}return null}function fv(e){const t=Ko("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const dv=Ot({virtualRef:{type:De(Object)},virtualTriggering:Boolean,onMouseenter:{type:De(Function)},onMouseleave:{type:De(Function)},onClick:{type:De(Function)},onKeydown:{type:De(Function)},onFocus:{type:De(Function)},onBlur:{type:De(Function)},onContextmenu:{type:De(Function)},id:String,open:Boolean}),aB=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),iB=v.defineComponent({...aB,props:dv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(gl,void 0);oE(o);const u=v.computed(()=>i.value?n.id:void 0),a=v.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=v.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),s=v.computed(()=>i.value?`${n.open}`:void 0);let l;return v.onMounted(()=>{v.watch(()=>n.virtualRef,c=>{c&&(o.value=dr(c))},{immediate:!0}),v.watch(o,(c,d)=>{l==null||l(),l=void 0,ya(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var y;const m=n[p];m&&(c.addEventListener(p.slice(2).toLowerCase(),m),(y=d==null?void 0:d.removeEventListener)==null||y.call(d,p.slice(2).toLowerCase(),m))}),l=v.watch([u,a,i,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,m)=>{Qs(p[m])?c.removeAttribute(y):c.setAttribute(y,p[m])})},{immediate:!0})),ya(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),v.onBeforeUnmount(()=>{l==null||l(),l=void 0}),t({triggerRef:o}),(c,d)=>c.virtualTriggering?v.createCommentVNode("v-if",!0):(v.openBlock(),v.createBlock(v.unref(uB),v.mergeProps({key:0},c.$attrs,{"aria-controls":v.unref(u),"aria-describedby":v.unref(a),"aria-expanded":v.unref(s),"aria-haspopup":v.unref(i)}),{default:v.withCtx(()=>[v.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var sB=jn(iB,[["__file","trigger.vue"]]);const yl="focus-trap.focus-after-trapped",Dl="focus-trap.focus-after-released",lB="focus-trap.focusout-prevented",pv={cancelable:!0,bubbles:!1},cB={cancelable:!0,bubbles:!1},vv="focusAfterTrapped",hv="focusAfterReleased",fB=Symbol("elFocusTrap"),Cl=v.ref(),Ta=v.ref(0),wl=v.ref(0);let Ra=0;const mv=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},gv=(e,t)=>{for(const n of e)if(!dB(n,t))return n},dB=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},pB=e=>{const t=mv(e),n=gv(t,e),r=gv(t.reverse(),e);return[n,r]},vB=e=>e instanceof HTMLInputElement&&"select"in e,In=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),wl.value=window.performance.now(),e!==n&&vB(e)&&t&&e.select()}};function yv(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const hB=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=yv(e,r),e.unshift(r)},remove:r=>{var o,u;e=yv(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},mB=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(In(r,t),document.activeElement!==n)return},Dv=hB(),gB=()=>Ta.value>wl.value,Na=()=>{Cl.value="pointer",Ta.value=window.performance.now()},Cv=()=>{Cl.value="keyboard",Ta.value=window.performance.now()},yB=()=>(v.onMounted(()=>{Ra===0&&(document.addEventListener("mousedown",Na),document.addEventListener("touchstart",Na),document.addEventListener("keydown",Cv)),Ra++}),v.onBeforeUnmount(()=>{Ra--,Ra<=0&&(document.removeEventListener("mousedown",Na),document.removeEventListener("touchstart",Na),document.removeEventListener("keydown",Cv))}),{focusReason:Cl,lastUserFocusTimestamp:Ta,lastAutomatedFocusTimestamp:wl}),ja=e=>new CustomEvent(lB,{...cB,detail:e}),DB=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[vv,hv,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=yB();Jw(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:f,altKey:w,ctrlKey:h,metaKey:g,currentTarget:C,shiftKey:E}=m,{loop:B}=e,x=f===Ca.tab&&!w&&!h&&!g,A=document.activeElement;if(x&&A){const S=C,[N,O]=pB(S);if(N&&O){if(!E&&A===O){const P=ja({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&In(N,!0))}else if(E&&[N,S].includes(A)){const P=ja({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&In(O,!0))}}else if(A===S){const P=ja({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};v.provide(fB,{focusTrapRef:n,onKeydown:i}),v.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),v.watch([n],([m],[f])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",c),m.addEventListener("focusout",d)),f&&(f.removeEventListener("keydown",i),f.removeEventListener("focusin",c),f.removeEventListener("focusout",d))});const s=m=>{t(vv,m)},l=m=>t(hv,m),c=m=>{const f=v.unref(n);if(!f)return;const w=m.target,h=m.relatedTarget,g=w&&f.contains(w);e.trapped||h&&f.contains(h)||(r=h),g&&t("focusin",m),!a.paused&&e.trapped&&(g?o=w:In(o,!0))},d=m=>{const f=v.unref(n);if(!(a.paused||!f))if(e.trapped){const w=m.relatedTarget;!Qs(w)&&!f.contains(w)&&setTimeout(()=>{if(!a.paused&&e.trapped){const h=ja({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||In(o,!0)}},0)}else{const w=m.target;w&&f.contains(w)||t("focusout",m)}};async function p(){await v.nextTick();const m=v.unref(n);if(m){Dv.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(yl,pv);m.addEventListener(yl,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;K1(g)||(In(g),document.activeElement!==g&&(g="first")),g==="first"&&mB(mv(m),!0),(document.activeElement===f||g==="container")&&In(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(yl,s);const f=new CustomEvent(Dl,{...pv,detail:{focusReason:u.value}});m.addEventListener(Dl,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!gB()||m.contains(document.activeElement))&&In(r??document.body),m.removeEventListener(Dl,l),Dv.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function CB(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var wB=jn(DB,[["render",CB],["__file","focus-trap.vue"]]);const EB=["fixed","absolute"],BB=Ot({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:De(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:el,default:"bottom"},popperOptions:{type:De(Object),default:()=>({})},strategy:{type:String,values:EB,default:"absolute"}}),wv=Ot({...BB,id:String,style:{type:De([String,Array,Object])},className:{type:De([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:De([String,Array,Object])},popperStyle:{type:De([String,Array,Object])},referenceEl:{type:De(Object)},triggerTargetEl:{type:De(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ov(["ariaLabel"])}),AB={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},bB=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...FB(e),...t]};return SB(u,o==null?void 0:o.modifiers),u},xB=e=>{if(Jt)return dr(e)};function FB(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function SB(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const OB=0,_B=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(gl,void 0),u=v.ref(),a=v.ref(),i=v.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=v.computed(()=>{var h;const g=v.unref(u),C=(h=v.unref(a))!=null?h:OB;return{name:"arrow",enabled:!jC(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...bB(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>xB(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=Qw(c,n,l);return v.watch(w,h=>t.value=h),v.onMounted(()=>{v.watch(()=>{var h;return(h=v.unref(c))==null?void 0:h.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:u,contentRef:n,instanceRef:w,state:p,styles:y,role:o,forceUpdate:f,update:m}},PB=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=iE(),u=Ko("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(ga(e.zIndex)?e.zIndex:o()),s=v.computed(()=>[u.b(),u.is("pure",e.pure),u.is(e.effect),e.popperClass]),l=v.computed(()=>[{zIndex:v.unref(i)},v.unref(n).popper,e.popperStyle||{}]),c=v.computed(()=>r.value==="dialog"?"false":void 0),d=v.computed(()=>v.unref(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:s,contentStyle:l,contentZIndex:i,updateZIndex:()=>{i.value=ga(e.zIndex)?e.zIndex:o()}}},kB=(e,t)=>{const n=v.ref(!1),r=v.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:l=>{var c;((c=l.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:l=>{e.visible&&!n.value&&(l.target&&(r.value=l.target),n.value=!0)},onFocusoutPrevented:l=>{e.trapping||(l.detail.focusReason==="pointer"&&l.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},TB=v.defineComponent({name:"ElPopperContent"}),RB=v.defineComponent({...TB,props:wv,emits:AB,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=kB(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=_B(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:x,updateZIndex:A}=PB(r,{styles:m,attributes:d,role:w}),S=v.inject(av,void 0),N=v.ref();v.provide(iv,{arrowStyle:C,arrowRef:p,arrowOffset:N}),S&&v.provide(av,{...S,addInputId:Ms,removeInputId:Ms});let O;const V=(L=!0)=>{h(),L&&A()},P=()=>{V(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(L,j)=>{O==null||O(),O=void 0;const z=v.unref(L||y.value),G=v.unref(j||y.value);ya(z)&&(O=v.watch([w,()=>r.ariaLabel,g,()=>r.id],T=>{["role","aria-label","aria-modal","id"].forEach((I,K)=>{Qs(T[K])?z.removeAttribute(I):z.setAttribute(I,T[K])})},{immediate:!0})),G!==z&&ya(G)&&["role","aria-label","aria-modal","id"].forEach(T=>{G.removeAttribute(T)})},{immediate:!0}),v.watch(()=>r.visible,P,{immediate:!0})}),v.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:y,popperInstanceRef:f,updatePopper:V,contentStyle:x}),(L,j)=>(v.openBlock(),v.createElementBlock("div",v.mergeProps({ref_key:"contentRef",ref:y},v.unref(E),{style:v.unref(x),class:v.unref(B),tabindex:"-1",onMouseenter:j[0]||(j[0]=z=>L.$emit("mouseenter",z)),onMouseleave:j[1]||(j[1]=z=>L.$emit("mouseleave",z))}),[v.createVNode(v.unref(wB),{trapped:v.unref(u),"trap-on-focus-in":!0,"focus-trap-el":v.unref(y),"focus-start-el":v.unref(o),onFocusAfterTrapped:v.unref(i),onFocusAfterReleased:v.unref(a),onFocusin:v.unref(s),onFocusoutPrevented:v.unref(l),onReleaseRequested:v.unref(c)},{default:v.withCtx(()=>[v.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var NB=jn(RB,[["__file","content.vue"]]);const jB=Gs(tB),El=Symbol("elTooltip"),Ev=Ot({...nE,...wv,appendTo:{type:De([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:De(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ov(["ariaLabel"])}),Bv=Ot({...dv,disabled:Boolean,trigger:{type:De([String,Array]),default:"hover"},triggerKeys:{type:De(Array),default:()=>[Ca.enter,Ca.space]}}),{useModelToggleProps:IB,useModelToggleEmits:MB,useModelToggle:$B}=cp("visible"),LB=Ot({...sv,...IB,...Ev,...Bv,...lv,showArrow:{type:Boolean,default:!0}}),zB=[...MB,"before-show","before-hide","show","hide","open","close"],VB=(e,t)=>H1(e)?e.includes(t):e===t,eo=(e,t,n)=>r=>{VB(v.unref(e),t)&&n(r)},WB=v.defineComponent({name:"ElTooltipTrigger"}),UB=v.defineComponent({...WB,props:Bv,setup(e,{expose:t}){const n=e,r=Ko("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(El,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=vn(d,eo(p,"hover",i)),m=vn(d,eo(p,"hover",s)),f=vn(d,eo(p,"click",E=>{E.button===0&&l(E)})),w=vn(d,eo(p,"focus",i)),h=vn(d,eo(p,"focus",s)),g=vn(d,eo(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=vn(d,E=>{const{code:B}=E;n.triggerKeys.includes(B)&&(E.preventDefault(),l(E))});return t({triggerRef:c}),(E,B)=>(v.openBlock(),v.createBlock(v.unref(sB),{id:v.unref(u),"virtual-ref":E.virtualRef,open:v.unref(a),"virtual-triggering":E.virtualTriggering,class:v.normalizeClass(v.unref(r).e("trigger")),onBlur:v.unref(h),onClick:v.unref(f),onContextmenu:v.unref(g),onFocus:v.unref(w),onMouseenter:v.unref(y),onMouseleave:v.unref(m),onKeydown:v.unref(C)},{default:v.withCtx(()=>[v.renderSlot(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var HB=jn(UB,[["__file","trigger.vue"]]);const KB=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),qB=v.defineComponent({...KB,props:Ev,setup(e,{expose:t}){const n=e,{selector:r}=jp(),o=Ko("tooltip"),u=v.ref(null),a=v.ref(!1),{controlled:i,id:s,open:l,trigger:c,onClose:d,onOpen:p,onShow:y,onHide:m,onBeforeShow:f,onBeforeHide:w}=v.inject(El,void 0),h=v.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),g=v.computed(()=>n.persistent);v.onBeforeUnmount(()=>{a.value=!0});const C=v.computed(()=>v.unref(g)?!0:v.unref(l)),E=v.computed(()=>n.disabled?!1:v.unref(l)),B=v.computed(()=>n.appendTo||r.value),x=v.computed(()=>{var T;return(T=n.style)!=null?T:{}}),A=v.computed(()=>!v.unref(l)),S=()=>{m()},N=()=>{if(v.unref(i))return!0},O=vn(N,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),V=vn(N,()=>{v.unref(c)==="hover"&&d()}),P=()=>{var T,I;(I=(T=u.value)==null?void 0:T.updatePopper)==null||I.call(T),f==null||f()},L=()=>{w==null||w()},j=()=>{y(),G=$1(v.computed(()=>{var T;return(T=u.value)==null?void 0:T.popperContentRef}),()=>{if(v.unref(i))return;v.unref(c)!=="hover"&&d()})},z=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),T=>{T||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var T,I;(I=(T=u.value)==null?void 0:T.updatePopper)==null||I.call(T)}),t({contentRef:u}),(T,I)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!T.teleported,to:v.unref(B)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:S,onBeforeEnter:P,onAfterEnter:j,onBeforeLeave:L},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(NB),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":v.unref(A),"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,v.unref(x)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:v.unref(E),"z-index":T.zIndex,onMouseenter:v.unref(O),onMouseleave:v.unref(V),onBlur:z,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(T.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[v.vShow,v.unref(E)]]):v.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var YB=jn(qB,[["__file","content.vue"]]);const QB=["innerHTML"],GB={key:1},XB=v.defineComponent({name:"ElTooltip"}),ZB=v.defineComponent({...XB,props:LB,emits:zB,setup(e,{expose:t,emit:n}){const r=e;tE();const o=Zw(),u=v.ref(),a=v.ref(),i=()=>{var h;const g=v.unref(u);g&&((h=g.popperInstanceRef)==null||h.update())},s=v.ref(!1),l=v.ref(),{show:c,hide:d,hasUpdateHandler:p}=$B({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=rE({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>ap(r.visible)&&!p.value);v.provide(El,{controlled:f,id:o,open:v.readonly(s),trigger:v.toRef(r,"trigger"),onOpen:h=>{y(h)},onClose:h=>{m(h)},onToggle:h=>{v.unref(s)?m(h):y(h)},onShow:()=>{n("show",l.value)},onHide:()=>{n("hide",l.value)},onBeforeShow:()=>{n("before-show",l.value)},onBeforeHide:()=>{n("before-hide",l.value)},updatePopper:i}),v.watch(()=>r.disabled,h=>{h&&s.value&&(s.value=!1)});const w=h=>{var g,C;const E=(C=(g=a.value)==null?void 0:g.contentRef)==null?void 0:C.popperContentRef,B=(h==null?void 0:h.relatedTarget)||document.activeElement;return E&&E.contains(B)};return v.onDeactivated(()=>s.value&&d()),t({popperRef:u,contentRef:a,isFocusInsideContent:w,updatePopper:i,onOpen:y,onClose:m,hide:d}),(h,g)=>(v.openBlock(),v.createBlock(v.unref(jB),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(HB,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering},{default:v.withCtx(()=>[h.$slots.default?v.renderSlot(h.$slots,"default",{key:0}):v.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),v.createVNode(YB,{ref_key:"contentRef",ref:a,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":h.popperClass,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo},{default:v.withCtx(()=>[v.renderSlot(h.$slots,"content",{},()=>[h.rawContent?(v.openBlock(),v.createElementBlock("span",{key:0,innerHTML:h.content},null,8,QB)):(v.openBlock(),v.createElementBlock("span",GB,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(oB),{key:0,"arrow-offset":h.arrowOffset},null,8,["arrow-offset"])):v.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var JB=jn(ZB,[["__file","tooltip.vue"]]);const eA=Gs(JB);var Ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const tA={viewBox:"0 0 24 24",width:"1em",height:"1em"},nA=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M16 5v6a4 4 0 0 1-4 4v0a4 4 0 0 1-4-4V5M6 19h12"},null,-1)];function rA(e,t){return v.openBlock(),v.createElementBlock("svg",tA,[...nA])}const oA={name:"iconoir-underline",render:rA},uA={viewBox:"0 0 24 24",width:"1em",height:"1em"},aA=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function iA(e,t){return v.openBlock(),v.createElementBlock("svg",uA,[...aA])}const sA={name:"ri-italic",render:iA},lA={viewBox:"0 0 20 20",width:"1em",height:"1em"},cA=[v.createElementVNode("path",{fill:"currentColor",d:"M6.252 3.702A6.56 6.56 0 0 1 10 2.5c2.783 0 4.489 1.485 5.1 2.3a.75.75 0 0 1-1.2.9C13.511 5.182 12.217 4 10 4a5.06 5.06 0 0 0-2.877.923C6.331 5.489 6 6.105 6 6.5c0 .78.376 1.285 1.11 1.71q.271.156.586.29H5.162c-.408-.523-.662-1.178-.662-2c0-1.105.794-2.114 1.752-2.798M16.5 10a.75.75 0 0 1 0 1.5h-1.662c.408.523.662 1.178.662 2c0 1.358-.874 2.376-1.912 3.014c-1.042.641-2.367.986-3.588.986c-1.142 0-2.133-.129-2.992-.498c-.877-.378-1.563-.982-2.132-1.836a.75.75 0 1 1 1.248-.832c.43.646.901 1.042 1.477 1.29c.594.255 1.354.376 2.4.376c.966 0 2.015-.28 2.801-.764C13.593 14.75 14 14.142 14 13.5c0-.78-.376-1.285-1.11-1.71q-.271-.156-.586-.29H3.5a.75.75 0 0 1 0-1.5z"},null,-1)];function fA(e,t){return v.openBlock(),v.createElementBlock("svg",lA,[...cA])}const dA={name:"fluent-text-strikethrough20-filled",render:fA},pA={viewBox:"0 0 24 24",width:"1em",height:"1em"},vA=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M12 11.667H8m4 0s3.333 0 3.333-3.334S12 5 12 5H8.6a.6.6 0 0 0-.6.6v6.067m4 0s4 0 4 3.666S12 19 12 19H8.6a.6.6 0 0 1-.6-.6v-6.733"},null,-1)];function hA(e,t){return v.openBlock(),v.createElementBlock("svg",pA,[...vA])}const mA={name:"iconoir-bold",render:hA};function gA(e){return e!=null&&typeof e=="object"&&"$el"in e}function Av(e){if(gA(e)){const t=e.$el;return fl(t)&&yr(t)==="#comment"?null:t}return e}function bv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xv(e,t){const n=bv(e);return Math.round(t*n)/n}function yA(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=v.computed(()=>{var A;return(A=v.unref(n.open))!=null?A:!0}),u=v.computed(()=>v.unref(n.middleware)),a=v.computed(()=>{var A;return(A=v.unref(n.placement))!=null?A:"bottom"}),i=v.computed(()=>{var A;return(A=v.unref(n.strategy))!=null?A:"absolute"}),s=v.computed(()=>{var A;return(A=v.unref(n.transform))!=null?A:!0}),l=v.computed(()=>Av(e.value)),c=v.computed(()=>Av(t.value)),d=v.ref(0),p=v.ref(0),y=v.ref(i.value),m=v.ref(a.value),f=v.shallowRef({}),w=v.ref(!1),h=v.computed(()=>{const A={position:y.value,left:"0",top:"0"};if(!c.value)return A;const S=xv(c.value,d.value),N=xv(c.value,p.value);return s.value?{...A,transform:"translate("+S+"px, "+N+"px)",...bv(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:N+"px"}});let g;function C(){l.value==null||c.value==null||zE(l.value,c.value,{middleware:u.value,placement:a.value,strategy:i.value}).then(A=>{d.value=A.x,p.value=A.y,y.value=A.strategy,m.value=A.placement,f.value=A.middlewareData,w.value=!0})}function E(){typeof g=="function"&&(g(),g=void 0)}function B(){if(E(),r===void 0){C();return}if(l.value!=null&&c.value!=null){g=r(l.value,c.value,C);return}}function x(){o.value||(w.value=!1)}return v.watch([u,a,i],C,{flush:"sync"}),v.watch([l,c],B,{flush:"sync"}),v.watch(o,x,{flush:"sync"}),v.getCurrentScope()&&v.onScopeDispose(E),{x:v.shallowReadonly(d),y:v.shallowReadonly(p),strategy:v.shallowReadonly(y),placement:v.shallowReadonly(m),middlewareData:v.shallowReadonly(f),isPositioned:v.shallowReadonly(w),floatingStyles:h,update:C}}function DA(e,t){let n,r,o;const u=v.ref(!0),a=()=>{u.value=!0,o()};v.watch(e,a,{flush:"sync"});const i=typeof t=="function"?t:t.get,s=typeof t=="function"?void 0:t.set,l=v.customRef((c,d)=>(r=c,o=d,{get(){return u.value&&(n=i(),u.value=!1),r(),n},set(p){s==null||s(p)}}));return Object.isExtensible(l)&&(l.trigger=a),l}function Ma(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Bl(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return Ma(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function CA(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...u)=>(t+=1,n||(r=v.effectScope(!0),n=r.run(()=>e(...u))),Ma(o),n)}function ru(e){return typeof e=="function"?e():v.unref(e)}const wA=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const EA=e=>e!=null,BA=Object.prototype.toString,AA=e=>BA.call(e)==="[object Object]",bA=()=>{};function xA(e,t){function n(...r){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(u)})}return n}const FA=e=>e();function SA(e,t,n={}){const{eventFilter:r=FA,...o}=n,u=xA(r,t);let a,i,s;if(o.flush==="sync"){const l=v.ref(!1);i=()=>{},a=c=>{l.value=!0,c(),l.value=!1},s=v.watch(e,(...c)=>{l.value||u(...c)},o)}else{const l=[],c=v.ref(0),d=v.ref(0);i=()=>{c.value=d.value},l.push(v.watch(e,()=>{d.value++},{...o,flush:"sync"})),a=p=>{const y=d.value;p(),c.value+=d.value-y},l.push(v.watch(e,(...p)=>{const y=c.value>0&&c.value===d.value;c.value=0,d.value=0,!y&&u(...p)},o)),s=()=>{l.forEach(p=>p())}}return{stop:s,ignoreUpdates:a,ignorePrevAsyncUpdates:i}}function OA(e,t,n={}){let r;function o(){if(!r)return;const c=r;r=void 0,c()}function u(c){r=c}const a=(c,d)=>(o(),t(c,d,u)),i=SA(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(_A(e),PA(e))}),c}}}function _A(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>ru(t)):ru(e)}function PA(e){return Array.isArray(e)?e.map(()=>{}):void 0}function $a(e){var t;const n=ru(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ou=wA?window:void 0;function Xe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=ou):[t,n,r,o]=e,!t)return bA;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[$a(t),ru(o)],([c,d])=>{if(a(),!c)return;const p=AA(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(c,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Ma(l),l}function kA(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function TA(e){const t=kA();return v.computed(()=>(t.value,!!e()))}function Fv(e,t,n={}){const{window:r=ou,...o}=n;let u;const a=TA(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=ru(e),y=(Array.isArray(p)?p:[p]).map($a).filter(EA);return new Set(y)}),l=v.watch(()=>s.value,p=>{i(),a.value&&p.size&&(u=new MutationObserver(t),p.forEach(y=>u.observe(y,o)))},{immediate:!0,flush:"post"}),c=()=>u==null?void 0:u.takeRecords(),d=()=>{i(),l()};return Ma(d),{isSupported:a,stop:d,takeRecords:c}}function RA(e={}){var t;const{window:n=ou,deep:r=!0,triggerOnRemoval:o=!1}=e,u=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var l;let c=u==null?void 0:u.activeElement;if(r)for(;c!=null&&c.shadowRoot;)c=(l=c==null?void 0:c.shadowRoot)==null?void 0:l.activeElement;return c},i=v.ref(),s=()=>{i.value=a()};return n&&(Xe(n,"blur",l=>{l.relatedTarget===null&&s()},!0),Xe(n,"focus",s,!0)),o&&Fv(u,l=>{l.filter(c=>c.removedNodes.length).map(c=>Array.from(c.removedNodes)).flat().forEach(c=>{c===i.value&&s()})},{childList:!0,subtree:!0}),s(),i}function La(e){const t=v.getCurrentInstance(),n=DA(()=>null,()=>t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function NA(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=ou}=t,u=v.ref(!1);let a;const i=s=>{const l=s?n:r;a&&(clearTimeout(a),a=void 0),l?a=setTimeout(()=>u.value=s,l):u.value=s};return o&&(Xe(e,"mouseenter",()=>i(!0),{passive:!0}),Xe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function jA(e,t={}){const n=RA(t),r=v.computed(()=>$a(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function IA(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=ou}=e,a=v.ref(o),i=v.ref(null);if(!u)return{pressed:a,sourceType:i};const s=d=>()=>{a.value=!0,i.value=d},l=()=>{a.value=!1,i.value=null},c=v.computed(()=>$a(e.target)||u);return Xe(c,"mousedown",s("mouse"),{passive:!0,capture:r}),Xe(u,"mouseleave",l,{passive:!0,capture:r}),Xe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Xe(c,"dragstart",s("mouse"),{passive:!0,capture:r}),Xe(u,"drop",l,{passive:!0,capture:r}),Xe(u,"dragend",l,{passive:!0,capture:r})),t&&(Xe(c,"touchstart",s("touch"),{passive:!0,capture:r}),Xe(u,"touchend",l,{passive:!0,capture:r}),Xe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const za=v.ref(),Va=v.ref(),MA=Bl(),Sv=Bl();function Wa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function $A(){return String.fromCharCode(Wa(97,122))}function LA(){return String.fromCharCode(Wa(65,90))}function Ov(e=12,t={}){const{lowercase:n=!0,uppercase:r=!1,number:o=!1}=t,u=[];let a;if(n&&u.push("l"),r&&u.push("u"),o&&u.push("n"),!(a=u.length))throw new Error("???");let i="";for(;e-- >0;){const s=a>1?Wa(0,a-1):0,l=u[s];l==="l"?i+=$A():l==="u"?i+=LA():l==="n"&&(i+=Wa(0,9))}return i}function zA(){return Ov(1,{uppercase:!0})+Ov(17,{uppercase:!0,number:!0})}const VA=typeof window<"u";function WA(e,t,n){let r;const o=()=>{r==null||r.stop(),r=void 0},u=v.watch(e,(a,i,s)=>{a?(r&&o(),r=v.effectScope(),r.run(()=>t(a,i,s))):o()},n);return()=>{o(),u()}}function UA(e,t,n){return WA(e,t,{...n,immediate:!0})}const _v=CA(()=>{const e=v.ref(null),t=v.computed(()=>{var u;return((u=e.value)==null?void 0:u.toString())??""}),n=v.computed(()=>t.value&&e.value.rangeCount>0),r=v.computed(()=>{if(n.value){const u=e.value.getRangeAt(0).cloneRange();if(u.collapse(u.startContainer===e.value.focusNode),u.startOffset===0){const a=document.createRange();return a.setStart(u.startContainer,0),a.setEnd(u.startContainer,1),a}return u}}),o=Bl();return UA(Va,()=>{Xe(window.document,"selectionchange",()=>{e.value=null,e.value=Va.value.getSelection(),n.value&&o.trigger(e.value)})}),{text:t,isValidSelection:n,range:r,selection:e,onValidSelectionUpdate:o.on}});/*!
|
5
|
+
**/const $s=()=>{},U1=Object.prototype.hasOwnProperty,qd=(e,t)=>U1.call(e,t),H1=Array.isArray,Vo=e=>typeof e=="function",K1=e=>typeof e=="string",Ls=e=>e!==null&&typeof e=="object";var q1=typeof global=="object"&&global&&global.Object===Object&&global,Y1=typeof self=="object"&&self&&self.Object===Object&&self,zs=q1||Y1||Function("return this")(),Pn=zs.Symbol,Yd=Object.prototype,Q1=Yd.hasOwnProperty,G1=Yd.toString,Wo=Pn?Pn.toStringTag:void 0;function X1(e){var t=Q1.call(e,Wo),n=e[Wo];try{e[Wo]=void 0;var r=!0}catch{}var o=G1.call(e);return r&&(t?e[Wo]=n:delete e[Wo]),o}var Z1=Object.prototype,J1=Z1.toString;function eD(e){return J1.call(e)}var tD="[object Null]",nD="[object Undefined]",Qd=Pn?Pn.toStringTag:void 0;function Vs(e){return e==null?e===void 0?nD:tD:Qd&&Qd in Object(e)?X1(e):eD(e)}function Ws(e){return e!=null&&typeof e=="object"}var rD="[object Symbol]";function Us(e){return typeof e=="symbol"||Ws(e)&&Vs(e)==rD}function oD(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Uo=Array.isArray,uD=1/0,Gd=Pn?Pn.prototype:void 0,Xd=Gd?Gd.toString:void 0;function Zd(e){if(typeof e=="string")return e;if(Uo(e))return oD(e,Zd)+"";if(Us(e))return Xd?Xd.call(e):"";var t=e+"";return t=="0"&&1/e==-uD?"-0":t}function pa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function aD(e){return e}var iD="[object AsyncFunction]",sD="[object Function]",lD="[object GeneratorFunction]",cD="[object Proxy]";function fD(e){if(!pa(e))return!1;var t=Vs(e);return t==sD||t==lD||t==iD||t==cD}var Hs=zs["__core-js_shared__"],Jd=function(){var e=/[^.]+$/.exec(Hs&&Hs.keys&&Hs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dD(e){return!!Jd&&Jd in e}var pD=Function.prototype,vD=pD.toString;function hD(e){if(e!=null){try{return vD.call(e)}catch{}try{return e+""}catch{}}return""}var mD=/[\\^$.*+?()[\]{}|]/g,gD=/^\[object .+?Constructor\]$/,yD=Function.prototype,DD=Object.prototype,CD=yD.toString,wD=DD.hasOwnProperty,ED=RegExp("^"+CD.call(wD).replace(mD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BD(e){if(!pa(e)||dD(e))return!1;var t=fD(e)?ED:gD;return t.test(hD(e))}function AD(e,t){return e==null?void 0:e[t]}function Ks(e,t){var n=AD(e,t);return BD(n)?n:void 0}function bD(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var xD=800,FD=16,SD=Date.now;function OD(e){var t=0,n=0;return function(){var r=SD(),o=FD-(r-n);if(n=r,o>0){if(++t>=xD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _D(e){return function(){return e}}var va=function(){try{var e=Ks(Object,"defineProperty");return e({},"",{}),e}catch{}}(),PD=va?function(e,t){return va(e,"toString",{configurable:!0,enumerable:!1,value:_D(t),writable:!0})}:aD,kD=OD(PD),TD=9007199254740991,RD=/^(?:0|[1-9]\d*)$/;function ep(e,t){var n=typeof e;return t=t??TD,!!t&&(n=="number"||n!="symbol"&&RD.test(e))&&e>-1&&e%1==0&&e<t}function ND(e,t,n){t=="__proto__"&&va?va(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function tp(e,t){return e===t||e!==e&&t!==t}var jD=Object.prototype,ID=jD.hasOwnProperty;function MD(e,t,n){var r=e[t];(!(ID.call(e,t)&&tp(r,n))||n===void 0&&!(t in e))&&ND(e,t,n)}var np=Math.max;function $D(e,t,n){return t=np(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=np(r.length-t,0),a=Array(u);++o<u;)a[o]=r[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=r[o];return i[t]=n(a),bD(e,this,i)}}var LD=9007199254740991;function zD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LD}var VD="[object Arguments]";function rp(e){return Ws(e)&&Vs(e)==VD}var op=Object.prototype,WD=op.hasOwnProperty,UD=op.propertyIsEnumerable,up=rp(function(){return arguments}())?rp:function(e){return Ws(e)&&WD.call(e,"callee")&&!UD.call(e,"callee")},HD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KD=/^\w*$/;function qD(e,t){if(Uo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Us(e)?!0:KD.test(e)||!HD.test(e)||t!=null&&e in Object(t)}var Ho=Ks(Object,"create");function YD(){this.__data__=Ho?Ho(null):{},this.size=0}function QD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GD="__lodash_hash_undefined__",XD=Object.prototype,ZD=XD.hasOwnProperty;function JD(e){var t=this.__data__;if(Ho){var n=t[e];return n===GD?void 0:n}return ZD.call(t,e)?t[e]:void 0}var eC=Object.prototype,tC=eC.hasOwnProperty;function nC(e){var t=this.__data__;return Ho?t[e]!==void 0:tC.call(t,e)}var rC="__lodash_hash_undefined__";function oC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ho&&t===void 0?rC:t,this}function pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pr.prototype.clear=YD,pr.prototype.delete=QD,pr.prototype.get=JD,pr.prototype.has=nC,pr.prototype.set=oC;function uC(){this.__data__=[],this.size=0}function ha(e,t){for(var n=e.length;n--;)if(tp(e[n][0],t))return n;return-1}var aC=Array.prototype,iC=aC.splice;function sC(e){var t=this.__data__,n=ha(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():iC.call(t,n,1),--this.size,!0}function lC(e){var t=this.__data__,n=ha(t,e);return n<0?void 0:t[n][1]}function cC(e){return ha(this.__data__,e)>-1}function fC(e,t){var n=this.__data__,r=ha(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ur.prototype.clear=uC,Ur.prototype.delete=sC,Ur.prototype.get=lC,Ur.prototype.has=cC,Ur.prototype.set=fC;var dC=Ks(zs,"Map");function pC(){this.size=0,this.__data__={hash:new pr,map:new(dC||Ur),string:new pr}}function vC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ma(e,t){var n=e.__data__;return vC(t)?n[typeof t=="string"?"string":"hash"]:n.map}function hC(e){var t=ma(this,e).delete(e);return this.size-=t?1:0,t}function mC(e){return ma(this,e).get(e)}function gC(e){return ma(this,e).has(e)}function yC(e,t){var n=ma(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vr.prototype.clear=pC,vr.prototype.delete=hC,vr.prototype.get=mC,vr.prototype.has=gC,vr.prototype.set=yC;var DC="Expected a function";function qs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DC);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=e.apply(this,r);return n.cache=u.set(o,a)||u,a};return n.cache=new(qs.Cache||vr),n}qs.Cache=vr;var CC=500;function wC(e){var t=qs(e,function(r){return n.size===CC&&n.clear(),r}),n=t.cache;return t}var EC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BC=/\\(\\)?/g,AC=wC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EC,function(n,r,o,u){t.push(o?u.replace(BC,"$1"):r||n)}),t});function bC(e){return e==null?"":Zd(e)}function ga(e,t){return Uo(e)?e:qD(e,t)?[e]:AC(bC(e))}var xC=1/0;function Ys(e){if(typeof e=="string"||Us(e))return e;var t=e+"";return t=="0"&&1/e==-xC?"-0":t}function FC(e,t){t=ga(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ys(t[n++])];return n&&n==r?e:void 0}function SC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ap=Pn?Pn.isConcatSpreadable:void 0;function OC(e){return Uo(e)||up(e)||!!(ap&&e&&e[ap])}function _C(e,t,n,r,o){var u=-1,a=e.length;for(n||(n=OC),o||(o=[]);++u<a;){var i=e[u];n(i)?SC(o,i):o[o.length]=i}return o}function PC(e){var t=e==null?0:e.length;return t?_C(e):[]}function kC(e){return kD($D(e,void 0,PC),e+"")}function TC(e,t){return e!=null&&t in Object(e)}function RC(e,t,n){t=ga(t,e);for(var r=-1,o=t.length,u=!1;++r<o;){var a=Ys(t[r]);if(!(u=e!=null&&n(e,a)))break;e=e[a]}return u||++r!=o?u:(o=e==null?0:e.length,!!o&&zD(o)&&ep(a,o)&&(Uo(e)||up(e)))}function NC(e,t){return e!=null&&RC(e,t,TC)}function Qs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Gs(e){return e==null}function jC(e){return e===void 0}function IC(e,t,n,r){if(!pa(e))return e;t=ga(t,e);for(var o=-1,u=t.length,a=u-1,i=e;i!=null&&++o<u;){var s=Ys(t[o]),l=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=a){var c=i[s];l=void 0,l===void 0&&(l=pa(c)?c:ep(t[o+1])?[]:{})}MD(i,s,l),i=i[s]}return e}function MC(e,t,n){for(var r=-1,o=t.length,u={};++r<o;){var a=t[r],i=FC(e,a);n(i,a)&&IC(u,ga(a,e),i)}return u}function $C(e,t){return MC(e,t,function(n,r){return NC(e,r)})}var LC=kC(function(e,t){return e==null?{}:$C(e,t)});const ip=e=>typeof e=="boolean",ya=e=>typeof e=="number",Da=e=>typeof Element>"u"?!1:e instanceof Element,sp=e=>Object.keys(e),lp="__epPropKey",De=e=>e,zC=e=>Ls(e)&&!!e[lp],Ca=(e,t)=>{if(!Ls(e)||zC(e))return e;const{values:n,required:r,default:o,type:u,validator:a}=e,s={type:u,required:!!r,validator:n||a?l=>{let c=!1,d=[];if(n&&(d=Array.from(n),qd(e,"default")&&d.push(o),c||(c=d.includes(l))),a&&(c||(c=a(l))),!c&&d.length>0){const p=[...new Set(d)].map(y=>JSON.stringify(y)).join(", ");v.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(l)}.`)}return c}:void 0,[lp]:!0};return qd(e,"default")&&(s.default=o),s},Ot=e=>Qs(Object.entries(e).map(([t,n])=>[t,Ca(n,t)])),Xs=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),wa={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},VC=["","default","small","large"],WC=Symbol("localeContextKey"),Zs="el",UC="is-",hr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},cp=Symbol("namespaceContextKey"),Js=e=>{const t=v.getCurrentInstance()?v.inject(cp,v.ref(Zs)):v.ref(Zs);return v.computed(()=>v.unref(t)||Zs)},Ko=(e,t)=>{const n=Js();return{namespace:n,b:(f="")=>hr(n.value,e,f,"",""),e:f=>f?hr(n.value,e,"",f,""):"",m:f=>f?hr(n.value,e,"","",f):"",be:(f,w)=>f&&w?hr(n.value,e,f,w,""):"",em:(f,w)=>f&&w?hr(n.value,e,"",f,w):"",bm:(f,w)=>f&&w?hr(n.value,e,f,"",w):"",bem:(f,w,h)=>f&&w&&h?hr(n.value,e,f,w,h):"",is:(f,...w)=>{const h=w.length>=1?w[0]:!0;return f&&h?`${UC}${f}`:""},cssVar:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${h}`]=f[h]);return w},cssVarName:f=>`--${n.value}-${f}`,cssVarBlock:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${e}-${h}`]=f[h]);return w},cssVarBlockName:f=>`--${n.value}-${e}-${f}`}},HC=Ca({type:De(Boolean),default:null}),KC=Ca({type:De(Function)}),fp=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:HC,[n]:KC};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:c,onHide:d})=>{const p=v.getCurrentInstance(),{emit:y}=p,m=p.props,f=v.computed(()=>Vo(m[n])),w=v.computed(()=>m[e]===null),h=A=>{a.value!==!0&&(a.value=!0,i&&(i.value=A),Vo(c)&&c(A))},g=A=>{a.value!==!1&&(a.value=!1,i&&(i.value=A),Vo(d)&&d(A))},C=A=>{if(m.disabled===!0||Vo(l)&&!l())return;const S=f.value&&Jt;S&&y(t,!0),(w.value||!S)&&h(A)},E=A=>{if(m.disabled===!0||!Jt)return;const S=f.value&&Jt;S&&y(t,!1),(w.value||!S)&&g(A)},B=A=>{ip(A)&&(m.disabled&&A?f.value&&y(t,!1):a.value!==A&&(A?h():g()))},x=()=>{a.value?E():C()};return v.watch(()=>m[e],B),s&&p.appContext.config.globalProperties.$route!==void 0&&v.watch(()=>({...p.proxy.$route}),()=>{s.value&&a.value&&E()}),v.onMounted(()=>{B(m[e])}),{hide:E,show:C,toggle:x,hasUpdateHandler:f}},useModelToggleProps:o,useModelToggleEmits:r}};fp("modelValue");var ct="top",_t="bottom",Pt="right",ft="left",el="auto",qo=[ct,_t,Pt,ft],Hr="start",Yo="end",qC="clippingParents",dp="viewport",Qo="popper",YC="reference",pp=qo.reduce(function(e,t){return e.concat([t+"-"+Hr,t+"-"+Yo])},[]),tl=[].concat(qo,[el]).reduce(function(e,t){return e.concat([t,t+"-"+Hr,t+"-"+Yo])},[]),QC="beforeRead",GC="read",XC="afterRead",ZC="beforeMain",JC="main",ew="afterMain",tw="beforeWrite",nw="write",rw="afterWrite",ow=[QC,GC,XC,ZC,JC,ew,tw,nw,rw];function en(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kr(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function kt(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nl(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},u=t.elements[n];!kt(u)||!en(u)||(Object.assign(u.style,r),Object.keys(o).forEach(function(a){var i=o[a];i===!1?u.removeAttribute(a):u.setAttribute(a,i===!0?"":i)}))})}function aw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],u=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(s,l){return s[l]="",s},{});!kt(o)||!en(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var vp={name:"applyStyles",enabled:!0,phase:"write",fn:uw,effect:aw,requires:["computeStyles"]};function tn(e){return e.split("-")[0]}var mr=Math.max,Ea=Math.min,qr=Math.round;function Yr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(kt(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=qr(n.width)/a||1),u>0&&(o=qr(n.height)/u||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function rl(e){var t=Yr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hn(e){return Vt(e).getComputedStyle(e)}function iw(e){return["table","td","th"].indexOf(en(e))>=0}function kn(e){return((Kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ba(e){return en(e)==="html"?e:e.assignedSlot||e.parentNode||(nl(e)?e.host:null)||kn(e)}function mp(e){return!kt(e)||hn(e).position==="fixed"?null:e.offsetParent}function sw(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&kt(e)){var r=hn(e);if(r.position==="fixed")return null}var o=Ba(e);for(nl(o)&&(o=o.host);kt(o)&&["html","body"].indexOf(en(o))<0;){var u=hn(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function Go(e){for(var t=Vt(e),n=mp(e);n&&iw(n)&&hn(n).position==="static";)n=mp(n);return n&&(en(n)==="html"||en(n)==="body"&&hn(n).position==="static")?t:n||sw(e)||t}function ol(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xo(e,t,n){return mr(e,Ea(t,n))}function lw(e,t,n){var r=Xo(e,t,n);return r>n?n:r}function gp(){return{top:0,right:0,bottom:0,left:0}}function yp(e){return Object.assign({},gp(),e)}function Dp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cw=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,yp(typeof e!="number"?e:Dp(e,qo))};function fw(e){var t,n=e.state,r=e.name,o=e.options,u=n.elements.arrow,a=n.modifiersData.popperOffsets,i=tn(n.placement),s=ol(i),l=[ft,Pt].indexOf(i)>=0,c=l?"height":"width";if(!(!u||!a)){var d=cw(o.padding,n),p=rl(u),y=s==="y"?ct:ft,m=s==="y"?_t:Pt,f=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],w=a[s]-n.rects.reference[s],h=Go(u),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=f/2-w/2,E=d[y],B=g-p[c]-d[m],x=g/2-p[c]/2+C,A=Xo(E,x,B),S=s;n.modifiersData[r]=(t={},t[S]=A,t.centerOffset=A-x,t)}}function dw(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!hp(t.elements.popper,o)||(t.elements.arrow=o))}var pw={name:"arrow",enabled:!0,phase:"main",fn:fw,effect:dw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qr(e){return e.split("-")[1]}var vw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hw(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:qr(t*o)/o||0,y:qr(n*o)/o||0}}function Cp(e){var t,n=e.popper,r=e.popperRect,o=e.placement,u=e.variation,a=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,y=p===void 0?0:p,m=a.y,f=m===void 0?0:m,w=typeof c=="function"?c({x:y,y:f}):{x:y,y:f};y=w.x,f=w.y;var h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=ft,E=ct,B=window;if(l){var x=Go(n),A="clientHeight",S="clientWidth";if(x===Vt(n)&&(x=kn(n),hn(x).position!=="static"&&i==="absolute"&&(A="scrollHeight",S="scrollWidth")),x=x,o===ct||(o===ft||o===Pt)&&u===Yo){E=_t;var N=d&&x===B&&B.visualViewport?B.visualViewport.height:x[A];f-=N-r.height,f*=s?1:-1}if(o===ft||(o===ct||o===_t)&&u===Yo){C=Pt;var O=d&&x===B&&B.visualViewport?B.visualViewport.width:x[S];y-=O-r.width,y*=s?1:-1}}var W=Object.assign({position:i},l&&vw),P=c===!0?hw({x:y,y:f}):{x:y,y:f};if(y=P.x,f=P.y,s){var L;return Object.assign({},W,(L={},L[E]=g?"0":"",L[C]=h?"0":"",L.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",L))}return Object.assign({},W,(t={},t[E]=g?f+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function mw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,u=n.adaptive,a=u===void 0?!0:u,i=n.roundOffsets,s=i===void 0?!0:i,l={placement:tn(t.placement),variation:Qr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cp(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cp(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var wp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mw,data:{}},Aa={passive:!0};function gw(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,u=o===void 0?!0:o,a=r.resize,i=a===void 0?!0:a,s=Vt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&l.forEach(function(c){c.addEventListener("scroll",n.update,Aa)}),i&&s.addEventListener("resize",n.update,Aa),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Aa)}),i&&s.removeEventListener("resize",n.update,Aa)}}var Ep={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gw,data:{}},yw={left:"right",right:"left",bottom:"top",top:"bottom"};function ba(e){return e.replace(/left|right|bottom|top/g,function(t){return yw[t]})}var Dw={start:"end",end:"start"};function Bp(e){return e.replace(/start|end/g,function(t){return Dw[t]})}function ul(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function al(e){return Yr(kn(e)).left+ul(e).scrollLeft}function Cw(e){var t=Vt(e),n=kn(e),r=t.visualViewport,o=n.clientWidth,u=n.clientHeight,a=0,i=0;return r&&(o=r.width,u=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:o,height:u,x:a+al(e),y:i}}function ww(e){var t,n=kn(e),r=ul(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=mr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+al(e),s=-r.scrollTop;return hn(o||n).direction==="rtl"&&(i+=mr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function il(e){var t=hn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ap(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:kt(e)&&il(e)?e:Ap(Ba(e))}function Zo(e,t){var n;t===void 0&&(t=[]);var r=Ap(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],il(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(Zo(Ba(a)))}function sl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ew(e){var t=Yr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function bp(e,t){return t===dp?sl(Cw(e)):Kr(t)?Ew(t):sl(ww(kn(e)))}function Bw(e){var t=Zo(Ba(e)),n=["absolute","fixed"].indexOf(hn(e).position)>=0,r=n&&kt(e)?Go(e):e;return Kr(r)?t.filter(function(o){return Kr(o)&&hp(o,r)&&en(o)!=="body"}):[]}function Aw(e,t,n){var r=t==="clippingParents"?Bw(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=bp(e,s);return i.top=mr(l.top,i.top),i.right=Ea(l.right,i.right),i.bottom=Ea(l.bottom,i.bottom),i.left=mr(l.left,i.left),i},bp(e,u));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function xp(e){var t=e.reference,n=e.element,r=e.placement,o=r?tn(r):null,u=r?Qr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case ct:s={x:a,y:t.y-n.height};break;case _t:s={x:a,y:t.y+t.height};break;case Pt:s={x:t.x+t.width,y:i};break;case ft:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?ol(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(u){case Hr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Yo:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Jo(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,u=n.boundary,a=u===void 0?qC:u,i=n.rootBoundary,s=i===void 0?dp:i,l=n.elementContext,c=l===void 0?Qo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=yp(typeof m!="number"?m:Dp(m,qo)),w=c===Qo?YC:Qo,h=e.rects.popper,g=e.elements[p?w:c],C=Aw(Kr(g)?g:g.contextElement||kn(e.elements.popper),a,s),E=Yr(e.elements.reference),B=xp({reference:E,element:h,strategy:"absolute",placement:o}),x=sl(Object.assign({},h,B)),A=c===Qo?x:E,S={top:C.top-A.top+f.top,bottom:A.bottom-C.bottom+f.bottom,left:C.left-A.left+f.left,right:A.right-C.right+f.right},N=e.modifiersData.offset;if(c===Qo&&N){var O=N[o];Object.keys(S).forEach(function(W){var P=[Pt,_t].indexOf(W)>=0?1:-1,L=[ct,_t].indexOf(W)>=0?"y":"x";S[W]+=O[L]*P})}return S}function bw(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,u=n.rootBoundary,a=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,l=s===void 0?tl:s,c=Qr(r),d=c?i?pp:pp.filter(function(m){return Qr(m)===c}):qo,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var y=p.reduce(function(m,f){return m[f]=Jo(e,{placement:f,boundary:o,rootBoundary:u,padding:a})[tn(f)],m},{});return Object.keys(y).sort(function(m,f){return y[m]-y[f]})}function xw(e){if(tn(e)===el)return[];var t=ba(e);return[Bp(e),t,Bp(t)]}function Fw(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!0:a,s=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,f=n.allowedAutoPlacements,w=t.options.placement,h=tn(w),g=h===w,C=s||(g||!m?[ba(w)]:xw(w)),E=[w].concat(C).reduce(function(fe,F){return fe.concat(tn(F)===el?bw(t,{placement:F,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:f}):F)},[]),B=t.rects.reference,x=t.rects.popper,A=new Map,S=!0,N=E[0],O=0;O<E.length;O++){var W=E[O],P=tn(W),L=Qr(W)===Hr,j=[ct,_t].indexOf(P)>=0,z=j?"width":"height",G=Jo(t,{placement:W,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),T=j?L?Pt:ft:L?_t:ct;B[z]>x[z]&&(T=ba(T));var I=ba(T),K=[];if(u&&K.push(G[P]<=0),i&&K.push(G[T]<=0,G[I]<=0),K.every(function(fe){return fe})){N=W,S=!1;break}A.set(W,K)}if(S)for(var Q=m?3:1,ne=function(fe){var F=E.find(function(V){var U=A.get(V);if(U)return U.slice(0,fe).every(function(Y){return Y})});if(F)return N=F,"break"},te=Q;te>0;te--){var ye=ne(te);if(ye==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var Sw={name:"flip",enabled:!0,phase:"main",fn:Fw,requiresIfExists:["offset"],data:{_skip:!1}};function Fp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Sp(e){return[ct,Pt,_t,ft].some(function(t){return e[t]>=0})}function Ow(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Jo(t,{elementContext:"reference"}),i=Jo(t,{altBoundary:!0}),s=Fp(a,r),l=Fp(i,o,u),c=Sp(s),d=Sp(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var _w={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ow};function Pw(e,t,n){var r=tn(e),o=[ft,ct].indexOf(r)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=u[0],i=u[1];return a=a||0,i=(i||0)*o,[ft,Pt].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function kw(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=tl.reduce(function(c,d){return c[d]=Pw(d,t.rects,u),c},{}),i=a[t.placement],s=i.x,l=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var Tw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kw};function Rw(e){var t=e.state,n=e.name;t.modifiersData[n]=xp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Op={name:"popperOffsets",enabled:!0,phase:"read",fn:Rw,data:{}};function Nw(e){return e==="x"?"y":"x"}function jw(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!1:a,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,f=m===void 0?0:m,w=Jo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=tn(t.placement),g=Qr(t.placement),C=!g,E=ol(h),B=Nw(E),x=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,N=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(u){var L,j=E==="y"?ct:ft,z=E==="y"?_t:Pt,G=E==="y"?"height":"width",T=x[E],I=T+w[j],K=T-w[z],Q=y?-S[G]/2:0,ne=g===Hr?A[G]:S[G],te=g===Hr?-S[G]:-A[G],ye=t.elements.arrow,fe=y&&ye?rl(ye):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gp(),V=F[j],U=F[z],Y=Xo(0,A[G],fe[G]),ie=C?A[G]/2-Q-Y-V-O.mainAxis:ne-Y-V-O.mainAxis,ee=C?-A[G]/2+Q+Y+U+O.mainAxis:te+Y+U+O.mainAxis,he=t.elements.arrow&&Go(t.elements.arrow),pe=he?E==="y"?he.clientTop||0:he.clientLeft||0:0,se=(L=W==null?void 0:W[E])!=null?L:0,ae=T+ie-se-pe,me=T+ee-se,Pe=Xo(y?Ea(I,ae):I,T,y?mr(K,me):K);x[E]=Pe,P[E]=Pe-T}if(i){var ve,Qe=E==="x"?ct:ft,yt=E==="x"?_t:Pt,je=x[B],We=B==="y"?"height":"width",we=je+w[Qe],nt=je-w[yt],Te=[ct,ft].indexOf(h)!==-1,de=(ve=W==null?void 0:W[B])!=null?ve:0,Dt=Te?we:je-A[We]-S[We]-de+O.altAxis,dn=Te?je+A[We]+S[We]-de-O.altAxis:nt,Ge=y&&Te?lw(Dt,je,dn):Xo(y?Dt:we,je,y?dn:nt);x[B]=Ge,P[B]=Ge-je}t.modifiersData[r]=P}}var Iw={name:"preventOverflow",enabled:!0,phase:"main",fn:jw,requiresIfExists:["offset"]};function Mw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $w(e){return e===Vt(e)||!kt(e)?ul(e):Mw(e)}function Lw(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,r=qr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zw(e,t,n){n===void 0&&(n=!1);var r=kt(t),o=kt(t)&&Lw(t),u=kn(t),a=Yr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((en(t)!=="body"||il(u))&&(i=$w(t)),kt(t)?(s=Yr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=al(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function Vw(e){var t=new Map,n=new Set,r=[];e.forEach(function(u){t.set(u.name,u)});function o(u){n.add(u.name);var a=[].concat(u.requires||[],u.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var s=t.get(i);s&&o(s)}}),r.push(u)}return e.forEach(function(u){n.has(u.name)||o(u)}),r}function Ww(e){var t=Vw(e);return ow.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Uw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hw(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Pp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ll(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?_p:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,u),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(f){var w=typeof f=="function"?f(l.options):f;m(),l.options=Object.assign({},u,l.options,w),l.scrollParents={reference:Kr(a)?Zo(a):a.contextElement?Zo(a.contextElement):[],popper:Zo(i)};var h=Ww(Hw([].concat(r,l.options.modifiers)));return l.orderedModifiers=h.filter(function(g){return g.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var f=l.elements,w=f.reference,h=f.popper;if(Pp(w,h)){l.rects={reference:zw(w,Go(h),l.options.strategy==="fixed"),popper:rl(h)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(S){return l.modifiersData[S.name]=Object.assign({},S.data)});for(var g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}var C=l.orderedModifiers[g],E=C.fn,B=C.options,x=B===void 0?{}:B,A=C.name;typeof E=="function"&&(l=E({state:l,options:x,name:A,instance:p})||l)}}}},update:Uw(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!Pp(a,i))return p;p.setOptions(s).then(function(f){!d&&s.onFirstUpdate&&s.onFirstUpdate(f)});function y(){l.orderedModifiers.forEach(function(f){var w=f.name,h=f.options,g=h===void 0?{}:h,C=f.effect;if(typeof C=="function"){var E=C({state:l,name:w,instance:p,options:g}),B=function(){};c.push(E||B)}})}function m(){c.forEach(function(f){return f()}),c=[]}return p}}ll();var Kw=[Ep,Op,wp,vp];ll({defaultModifiers:Kw});var qw=[Ep,Op,wp,vp,Tw,Sw,Iw,pw,_w],Yw=ll({defaultModifiers:qw});const Qw=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=Gw(s);Object.assign(a.value,l)},requires:["computeStyles"]},o=v.computed(()=>{const{onFirstUpdate:s,placement:l,strategy:c,modifiers:d}=v.unref(n);return{onFirstUpdate:s,placement:l||"bottom",strategy:c||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),u=v.shallowRef(),a=v.ref({styles:{popper:{position:v.unref(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{u.value&&(u.value.destroy(),u.value=void 0)};return v.watch(o,s=>{const l=v.unref(u);l&&l.setOptions(s)},{deep:!0}),v.watch([e,t],([s,l])=>{i(),!(!s||!l)&&(u.value=Yw(s,l,v.unref(o)))}),v.onBeforeUnmount(()=>{i()}),{state:v.computed(()=>{var s;return{...((s=v.unref(u))==null?void 0:s.state)||{}}}),styles:v.computed(()=>v.unref(a).styles),attributes:v.computed(()=>v.unref(a).attributes),update:()=>{var s;return(s=v.unref(u))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=v.unref(u))==null?void 0:s.forceUpdate()},instanceRef:v.computed(()=>v.unref(u))}};function Gw(e){const t=Object.keys(e.elements),n=Qs(t.map(o=>[o,e.styles[o]||{}])),r=Qs(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function kp(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return $d(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Tp={prefix:Math.floor(Math.random()*1e4),current:0},Xw=Symbol("elIdInjection"),Rp=()=>v.getCurrentInstance()?v.inject(Xw,Tp):Tp,Zw=e=>{const t=Rp(),n=Js();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Gr=[];const Np=e=>{const t=e;t.key===wa.esc&&Gr.forEach(n=>n(t))},Jw=e=>{v.onMounted(()=>{Gr.length===0&&document.addEventListener("keydown",Np),Jt&&Gr.push(e)}),v.onBeforeUnmount(()=>{Gr=Gr.filter(t=>t!==e),Gr.length===0&&Jt&&document.removeEventListener("keydown",Np)})};let jp;const Ip=()=>{const e=Js(),t=Rp(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},eE=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},tE=()=>{const{id:e,selector:t}=Ip();return v.onBeforeMount(()=>{Jt&&!jp&&!document.body.querySelector(t.value)&&(jp=eE(e.value))}),{id:e,selector:t}},nE=Ot({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),rE=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=kp(),{registerTimeout:a,cancelTimeout:i}=kp();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);ya(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},Mp=Symbol("elForwardRef"),oE=e=>{const t=n=>{e.value=n};v.provide(Mp,{setForwardRef:t})},uE=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),$p={current:0},Lp=v.ref(0),aE=2e3,zp=Symbol("elZIndexContextKey"),Vp=Symbol("zIndexContextKey"),iE=e=>{const t=v.getCurrentInstance()?v.inject(zp,$p):$p,n=v.getCurrentInstance()?v.inject(Vp,void 0):void 0,r=v.computed(()=>{const a=v.unref(n);return ya(a)?a:aE}),o=v.computed(()=>r.value+Lp.value),u=()=>(t.current++,Lp.value=t.current,o.value);return!Jt&&v.inject(zp),{initialZIndex:r,currentZIndex:o,nextZIndex:u}},cl=Math.min,Xr=Math.max,xa=Math.round,Tn=e=>({x:e,y:e}),sE={left:"right",right:"left",bottom:"top",top:"bottom"},lE={start:"end",end:"start"};function Wp(e,t,n){return Xr(e,cl(t,n))}function Fa(e,t){return typeof e=="function"?e(t):e}function gr(e){return e.split("-")[0]}function Sa(e){return e.split("-")[1]}function Up(e){return e==="x"?"y":"x"}function Hp(e){return e==="y"?"height":"width"}function Oa(e){return["top","bottom"].includes(gr(e))?"y":"x"}function Kp(e){return Up(Oa(e))}function cE(e,t,n){n===void 0&&(n=!1);const r=Sa(e),o=Kp(e),u=Hp(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=_a(a)),[a,_a(a)]}function fE(e){const t=_a(e);return[fl(e),t,fl(t)]}function fl(e){return e.replace(/start|end/g,t=>lE[t])}function dE(e,t,n){const r=["left","right"],o=["right","left"],u=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?u:a;default:return[]}}function pE(e,t,n,r){const o=Sa(e);let u=dE(gr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(fl)))),u}function _a(e){return e.replace(/left|right|bottom|top/g,t=>sE[t])}function vE(e){return{top:0,right:0,bottom:0,left:0,...e}}function hE(e){return typeof e!="number"?vE(e):{top:e,right:e,bottom:e,left:e}}function Pa(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qp(e,t,n){let{reference:r,floating:o}=e;const u=Oa(t),a=Kp(t),i=Hp(a),s=gr(t),l=u==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let y;switch(s){case"top":y={x:c,y:r.y-o.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-o.width,y:d};break;default:y={x:r.x,y:r.y}}switch(Sa(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const mE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:a}=n,i=u.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=qp(l,r,s),p=r,y={},m=0;for(let f=0;f<i.length;f++){const{name:w,fn:h}=i[f],{x:g,y:C,data:E,reset:B}=await h({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:l,platform:a,elements:{reference:e,floating:t}});c=g??c,d=C??d,y={...y,[w]:{...y[w],...E}},B&&m<=50&&(m++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(l=B.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):B.rects),{x:c,y:d}=qp(l,p,s)),f=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function Yp(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:u,rects:a,elements:i,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Fa(t,e),m=hE(y),w=i[p?d==="floating"?"reference":"floating":d],h=Pa(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement(w)))==null||n?w:w.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(i.floating)),boundary:l,rootBoundary:c,strategy:s})),g=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(i.floating)),E=await(u.isElement==null?void 0:u.isElement(C))?await(u.getScale==null?void 0:u.getScale(C))||{x:1,y:1}:{x:1,y:1},B=Pa(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:C,strategy:s}):g);return{top:(h.top-B.top+m.top)/E.y,bottom:(B.bottom-h.bottom+m.bottom)/E.y,left:(h.left-B.left+m.left)/E.x,right:(B.right-h.right+m.right)/E.x}}const gE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:u,rects:a,initialPlacement:i,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...w}=Fa(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=gr(o),g=gr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!f?[_a(i)]:fE(i));!p&&m!=="none"&&E.push(...pE(i,f,m,C));const B=[i,...E],x=await Yp(t,w),A=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&A.push(x[h]),d){const P=cE(o,a,C);A.push(x[P[0]],x[P[1]])}if(S=[...S,{placement:o,overflows:A}],!A.every(P=>P<=0)){var N,O;const P=(((N=u.flip)==null?void 0:N.index)||0)+1,L=B[P];if(L)return{data:{index:P,overflows:S},reset:{placement:L}};let j=(O=S.filter(z=>z.overflows[0]<=0).sort((z,G)=>z.overflows[1]-G.overflows[1])[0])==null?void 0:O.placement;if(!j)switch(y){case"bestFit":{var W;const z=(W=S.map(G=>[G.placement,G.overflows.filter(T=>T>0).reduce((T,I)=>T+I,0)]).sort((G,T)=>G[1]-T[1])[0])==null?void 0:W[0];z&&(j=z);break}case"initialPlacement":j=i;break}if(o!==j)return{reset:{placement:j}}}return{}}}};async function yE(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=gr(n),i=Sa(n),s=Oa(n)==="y",l=["left","top"].includes(a)?-1:1,c=u&&s?-1:1,d=Fa(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(y=i==="end"?m*-1:m),s?{x:y*c,y:p*l}:{x:p*l,y:y*c}}const DE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:u,placement:a,middlewareData:i}=t,s=await yE(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:u+s.y,data:{...s,placement:a}}}}},CE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:i={fn:w=>{let{x:h,y:g}=w;return{x:h,y:g}}},...s}=Fa(e,t),l={x:n,y:r},c=await Yp(t,s),d=Oa(gr(o)),p=Up(d);let y=l[p],m=l[d];if(u){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",g=y+c[w],C=y-c[h];y=Wp(g,y,C)}if(a){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=m+c[w],C=m-c[h];m=Wp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function yr(e){return dl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(dl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dl(e){return e instanceof Node||e instanceof Ct(e).Node}function nn(e){return e instanceof Element||e instanceof Ct(e).Element}function rn(e){return e instanceof HTMLElement||e instanceof Ct(e).HTMLElement}function Qp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}function eu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wE(e){return["table","td","th"].includes(yr(e))}function EE(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function pl(e){const t=vl(),n=Wt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function BE(e){let t=Nn(e);for(;rn(t)&&!Zr(t);){if(EE(t))return null;if(pl(t))return t;t=Nn(t)}return null}function vl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zr(e){return["html","body","#document"].includes(yr(e))}function Wt(e){return Ct(e).getComputedStyle(e)}function ka(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nn(e){if(yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qp(e)&&e.host||Rn(e);return Qp(t)?t.host:t}function Gp(e){const t=Nn(e);return Zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&eu(t)?t:Gp(t)}function hl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ct(o);return u?t.concat(a,a.visualViewport||[],eu(o)?o:[],a.frameElement&&n?hl(a.frameElement):[]):t.concat(o,hl(o,[],n))}function Xp(e){const t=Wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=xa(n)!==u||xa(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Zp(e){return nn(e)?e:e.contextElement}function Jr(e){const t=Zp(e);if(!rn(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Xp(t);let a=(u?xa(n.width):n.width)/r,i=(u?xa(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const AE=Tn(0);function Jp(e){const t=Ct(e);return!vl()||!t.visualViewport?AE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function tu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Zp(e);let a=Tn(1);t&&(r?nn(r)&&(a=Jr(r)):a=Jr(e));const i=bE(u,n,r)?Jp(u):Tn(0);let s=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(u){const p=Ct(u),y=r&&nn(r)?Ct(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=Jr(f),h=f.getBoundingClientRect(),g=Wt(f),C=h.left+(f.clientLeft+parseFloat(g.paddingLeft))*w.x,E=h.top+(f.clientTop+parseFloat(g.paddingTop))*w.y;s*=w.x,l*=w.y,c*=w.x,d*=w.y,s+=C,l+=E,m=Ct(f),f=m.frameElement}}return Pa({width:c,height:d,x:s,y:l})}const xE=[":popover-open",":modal"];function ml(e){return xE.some(t=>{try{return e.matches(t)}catch{return!1}})}function FE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=Rn(r),i=t?ml(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=Tn(1);const c=Tn(0),d=rn(r);if((d||!d&&!u)&&((yr(r)!=="body"||eu(a))&&(s=ka(r)),rn(r))){const p=tu(r);l=Jr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x,y:n.y*l.y-s.scrollTop*l.y+c.y}}function SE(e){return Array.from(e.getClientRects())}function ev(e){return tu(Rn(e)).left+ka(e).scrollLeft}function OE(e){const t=Rn(e),n=ka(e),r=e.ownerDocument.body,o=Xr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Xr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ev(e);const i=-n.scrollTop;return Wt(r).direction==="rtl"&&(a+=Xr(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function _E(e,t){const n=Ct(e),r=Rn(e),o=n.visualViewport;let u=r.clientWidth,a=r.clientHeight,i=0,s=0;if(o){u=o.width,a=o.height;const l=vl();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function PE(e,t){const n=tu(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=rn(e)?Jr(e):Tn(1),a=e.clientWidth*u.x,i=e.clientHeight*u.y,s=o*u.x,l=r*u.y;return{width:a,height:i,x:s,y:l}}function tv(e,t,n){let r;if(t==="viewport")r=_E(e,n);else if(t==="document")r=OE(Rn(e));else if(nn(t))r=PE(t,n);else{const o=Jp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Pa(r)}function nv(e,t){const n=Nn(e);return n===t||!nn(n)||Zr(n)?!1:Wt(n).position==="fixed"||nv(n,t)}function kE(e,t){const n=t.get(e);if(n)return n;let r=hl(e,[],!1).filter(i=>nn(i)&&yr(i)!=="body"),o=null;const u=Wt(e).position==="fixed";let a=u?Nn(e):e;for(;nn(a)&&!Zr(a);){const i=Wt(a),s=pl(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||eu(a)&&!s&&nv(e,a))?r=r.filter(c=>c!==a):o=i,a=Nn(a)}return t.set(e,r),r}function TE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ml(t)?[]:kE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=tv(t,c,o);return l.top=Xr(d.top,l.top),l.right=cl(d.right,l.right),l.bottom=cl(d.bottom,l.bottom),l.left=Xr(d.left,l.left),l},tv(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function RE(e){const{width:t,height:n}=Xp(e);return{width:t,height:n}}function NE(e,t,n){const r=rn(t),o=Rn(t),u=n==="fixed",a=tu(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=Tn(0);if(r||!r&&!u)if((yr(t)!=="body"||eu(o))&&(i=ka(t)),r){const d=tu(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=ev(o));const l=a.left+i.scrollLeft-s.x,c=a.top+i.scrollTop-s.y;return{x:l,y:c,width:a.width,height:a.height}}function gl(e){return Wt(e).position==="static"}function rv(e,t){return!rn(e)||Wt(e).position==="fixed"?null:t?t(e):e.offsetParent}function ov(e,t){const n=Ct(e);if(ml(e))return n;if(!rn(e)){let o=Nn(e);for(;o&&!Zr(o);){if(nn(o)&&!gl(o))return o;o=Nn(o)}return n}let r=rv(e,t);for(;r&&wE(r)&&gl(r);)r=rv(r,t);return r&&Zr(r)&&gl(r)&&!pl(r)?n:r||BE(e)||n}const jE=async function(e){const t=this.getOffsetParent||ov,n=this.getDimensions,r=await n(e.floating);return{reference:NE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function IE(e){return Wt(e).direction==="rtl"}const ME={convertOffsetParentRelativeRectToViewportRelativeRect:FE,getDocumentElement:Rn,getClippingRect:TE,getOffsetParent:ov,getElementRects:jE,getClientRects:SE,getDimensions:RE,getScale:Jr,isElement:nn,isRTL:IE},$E=DE,LE=CE,zE=gE,VE=(e,t,n)=>{const r=new Map,o={platform:ME,...n},u={...o.platform,_c:r};return mE(e,t,{...o,platform:u})},WE=Ca({type:String,values:VC,required:!1}),UE=Symbol("size"),HE=Ot({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Vo(e)?!e():!e}}),KE=Ot({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),uv=e=>LC(KE,e),av=Symbol(),Ta=v.ref();function qE(e,t=void 0){return v.getCurrentInstance()?v.inject(av,Ta):Ta}const YE=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?qE():void 0,a=(r=void 0)!=null?r:o?v.provide:void 0;if(!a)return;const i=v.computed(()=>{const s=v.unref(e);return u!=null&&u.value?QE(u.value,s):s});return a(av,i),a(WC,v.computed(()=>i.value.locale)),a(cp,v.computed(()=>i.value.namespace)),a(Vp,v.computed(()=>i.value.zIndex)),a(UE,{size:v.computed(()=>i.value.size||"")}),(n||!Ta.value)&&(Ta.value=i.value),i},QE=(e,t)=>{const n=[...new Set([...sp(e),...sp(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},GE=Ot({a11y:{type:Boolean,default:!0},locale:{type:De(Object)},size:WE,button:{type:De(Object)},experimentalFeatures:{type:De(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:De(Object)},zIndex:Number,namespace:{type:String,default:"el"},...HE}),XE={},ZE=v.defineComponent({name:"ElConfigProvider",props:GE,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(XE,r??{})},{immediate:!0,deep:!0});const n=YE(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),JE=Xs(ZE);var jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const iv=Symbol("formItemContextKey"),yl=Symbol("popper"),sv=Symbol("popperContent"),lv=Ot({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),eB=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),tB=v.defineComponent({...eB,props:lv,setup(e,{expose:t}){const n=e,r=v.ref(),o=v.ref(),u=v.ref(),a=v.ref(),i=v.computed(()=>n.role),s={triggerRef:r,popperInstanceRef:o,contentRef:u,referenceRef:a,role:i};return t(s),v.provide(yl,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var nB=jn(tB,[["__file","popper.vue"]]);const cv=Ot({arrowOffset:{type:Number,default:5}}),rB=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),oB=v.defineComponent({...rB,props:cv,setup(e,{expose:t}){const n=e,r=Ko("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(sv,void 0);return v.watch(()=>n.arrowOffset,i=>{o.value=i}),v.onBeforeUnmount(()=>{u.value=void 0}),t({arrowRef:u}),(i,s)=>(v.openBlock(),v.createElementBlock("span",{ref_key:"arrowRef",ref:u,class:v.normalizeClass(v.unref(r).e("arrow")),style:v.normalizeStyle(v.unref(a)),"data-popper-arrow":""},null,6))}});var uB=jn(oB,[["__file","arrow.vue"]]);const aB=v.defineComponent({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Mp),u=uE((r=o==null?void 0:o.setForwardRef)!=null?r:$s);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=fv(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function fv(e){if(!e)return null;const t=e;for(const n of t){if(Ls(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return dv(n);case v.Fragment:return fv(n.children);default:return n}return dv(n)}return null}function dv(e){const t=Ko("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const pv=Ot({virtualRef:{type:De(Object)},virtualTriggering:Boolean,onMouseenter:{type:De(Function)},onMouseleave:{type:De(Function)},onClick:{type:De(Function)},onKeydown:{type:De(Function)},onFocus:{type:De(Function)},onBlur:{type:De(Function)},onContextmenu:{type:De(Function)},id:String,open:Boolean}),iB=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),sB=v.defineComponent({...iB,props:pv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(yl,void 0);oE(o);const u=v.computed(()=>i.value?n.id:void 0),a=v.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=v.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),s=v.computed(()=>i.value?`${n.open}`:void 0);let l;return v.onMounted(()=>{v.watch(()=>n.virtualRef,c=>{c&&(o.value=dr(c))},{immediate:!0}),v.watch(o,(c,d)=>{l==null||l(),l=void 0,Da(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var y;const m=n[p];m&&(c.addEventListener(p.slice(2).toLowerCase(),m),(y=d==null?void 0:d.removeEventListener)==null||y.call(d,p.slice(2).toLowerCase(),m))}),l=v.watch([u,a,i,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,m)=>{Gs(p[m])?c.removeAttribute(y):c.setAttribute(y,p[m])})},{immediate:!0})),Da(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),v.onBeforeUnmount(()=>{l==null||l(),l=void 0}),t({triggerRef:o}),(c,d)=>c.virtualTriggering?v.createCommentVNode("v-if",!0):(v.openBlock(),v.createBlock(v.unref(aB),v.mergeProps({key:0},c.$attrs,{"aria-controls":v.unref(u),"aria-describedby":v.unref(a),"aria-expanded":v.unref(s),"aria-haspopup":v.unref(i)}),{default:v.withCtx(()=>[v.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var lB=jn(sB,[["__file","trigger.vue"]]);const Dl="focus-trap.focus-after-trapped",Cl="focus-trap.focus-after-released",cB="focus-trap.focusout-prevented",vv={cancelable:!0,bubbles:!1},fB={cancelable:!0,bubbles:!1},hv="focusAfterTrapped",mv="focusAfterReleased",dB=Symbol("elFocusTrap"),wl=v.ref(),Ra=v.ref(0),El=v.ref(0);let Na=0;const gv=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},yv=(e,t)=>{for(const n of e)if(!pB(n,t))return n},pB=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},vB=e=>{const t=gv(e),n=yv(t,e),r=yv(t.reverse(),e);return[n,r]},hB=e=>e instanceof HTMLInputElement&&"select"in e,In=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),El.value=window.performance.now(),e!==n&&hB(e)&&t&&e.select()}};function Dv(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const mB=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=Dv(e,r),e.unshift(r)},remove:r=>{var o,u;e=Dv(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},gB=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(In(r,t),document.activeElement!==n)return},Cv=mB(),yB=()=>Ra.value>El.value,ja=()=>{wl.value="pointer",Ra.value=window.performance.now()},wv=()=>{wl.value="keyboard",Ra.value=window.performance.now()},DB=()=>(v.onMounted(()=>{Na===0&&(document.addEventListener("mousedown",ja),document.addEventListener("touchstart",ja),document.addEventListener("keydown",wv)),Na++}),v.onBeforeUnmount(()=>{Na--,Na<=0&&(document.removeEventListener("mousedown",ja),document.removeEventListener("touchstart",ja),document.removeEventListener("keydown",wv))}),{focusReason:wl,lastUserFocusTimestamp:Ra,lastAutomatedFocusTimestamp:El}),Ia=e=>new CustomEvent(cB,{...fB,detail:e}),CB=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[hv,mv,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=DB();Jw(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:f,altKey:w,ctrlKey:h,metaKey:g,currentTarget:C,shiftKey:E}=m,{loop:B}=e,x=f===wa.tab&&!w&&!h&&!g,A=document.activeElement;if(x&&A){const S=C,[N,O]=vB(S);if(N&&O){if(!E&&A===O){const P=Ia({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&In(N,!0))}else if(E&&[N,S].includes(A)){const P=Ia({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&In(O,!0))}}else if(A===S){const P=Ia({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};v.provide(dB,{focusTrapRef:n,onKeydown:i}),v.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),v.watch([n],([m],[f])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",c),m.addEventListener("focusout",d)),f&&(f.removeEventListener("keydown",i),f.removeEventListener("focusin",c),f.removeEventListener("focusout",d))});const s=m=>{t(hv,m)},l=m=>t(mv,m),c=m=>{const f=v.unref(n);if(!f)return;const w=m.target,h=m.relatedTarget,g=w&&f.contains(w);e.trapped||h&&f.contains(h)||(r=h),g&&t("focusin",m),!a.paused&&e.trapped&&(g?o=w:In(o,!0))},d=m=>{const f=v.unref(n);if(!(a.paused||!f))if(e.trapped){const w=m.relatedTarget;!Gs(w)&&!f.contains(w)&&setTimeout(()=>{if(!a.paused&&e.trapped){const h=Ia({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||In(o,!0)}},0)}else{const w=m.target;w&&f.contains(w)||t("focusout",m)}};async function p(){await v.nextTick();const m=v.unref(n);if(m){Cv.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(Dl,vv);m.addEventListener(Dl,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;K1(g)||(In(g),document.activeElement!==g&&(g="first")),g==="first"&&gB(gv(m),!0),(document.activeElement===f||g==="container")&&In(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(Dl,s);const f=new CustomEvent(Cl,{...vv,detail:{focusReason:u.value}});m.addEventListener(Cl,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!yB()||m.contains(document.activeElement))&&In(r??document.body),m.removeEventListener(Cl,l),Cv.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function wB(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var EB=jn(CB,[["render",wB],["__file","focus-trap.vue"]]);const BB=["fixed","absolute"],AB=Ot({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:De(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:tl,default:"bottom"},popperOptions:{type:De(Object),default:()=>({})},strategy:{type:String,values:BB,default:"absolute"}}),Ev=Ot({...AB,id:String,style:{type:De([String,Array,Object])},className:{type:De([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:De([String,Array,Object])},popperStyle:{type:De([String,Array,Object])},referenceEl:{type:De(Object)},triggerTargetEl:{type:De(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...uv(["ariaLabel"])}),bB={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},xB=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...SB(e),...t]};return OB(u,o==null?void 0:o.modifiers),u},FB=e=>{if(Jt)return dr(e)};function SB(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function OB(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const _B=0,PB=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(yl,void 0),u=v.ref(),a=v.ref(),i=v.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=v.computed(()=>{var h;const g=v.unref(u),C=(h=v.unref(a))!=null?h:_B;return{name:"arrow",enabled:!jC(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...xB(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>FB(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=Qw(c,n,l);return v.watch(w,h=>t.value=h),v.onMounted(()=>{v.watch(()=>{var h;return(h=v.unref(c))==null?void 0:h.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:u,contentRef:n,instanceRef:w,state:p,styles:y,role:o,forceUpdate:f,update:m}},kB=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=iE(),u=Ko("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(ya(e.zIndex)?e.zIndex:o()),s=v.computed(()=>[u.b(),u.is("pure",e.pure),u.is(e.effect),e.popperClass]),l=v.computed(()=>[{zIndex:v.unref(i)},v.unref(n).popper,e.popperStyle||{}]),c=v.computed(()=>r.value==="dialog"?"false":void 0),d=v.computed(()=>v.unref(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:s,contentStyle:l,contentZIndex:i,updateZIndex:()=>{i.value=ya(e.zIndex)?e.zIndex:o()}}},TB=(e,t)=>{const n=v.ref(!1),r=v.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:l=>{var c;((c=l.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:l=>{e.visible&&!n.value&&(l.target&&(r.value=l.target),n.value=!0)},onFocusoutPrevented:l=>{e.trapping||(l.detail.focusReason==="pointer"&&l.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},RB=v.defineComponent({name:"ElPopperContent"}),NB=v.defineComponent({...RB,props:Ev,emits:bB,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=TB(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=PB(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:x,updateZIndex:A}=kB(r,{styles:m,attributes:d,role:w}),S=v.inject(iv,void 0),N=v.ref();v.provide(sv,{arrowStyle:C,arrowRef:p,arrowOffset:N}),S&&v.provide(iv,{...S,addInputId:$s,removeInputId:$s});let O;const W=(L=!0)=>{h(),L&&A()},P=()=>{W(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(L,j)=>{O==null||O(),O=void 0;const z=v.unref(L||y.value),G=v.unref(j||y.value);Da(z)&&(O=v.watch([w,()=>r.ariaLabel,g,()=>r.id],T=>{["role","aria-label","aria-modal","id"].forEach((I,K)=>{Gs(T[K])?z.removeAttribute(I):z.setAttribute(I,T[K])})},{immediate:!0})),G!==z&&Da(G)&&["role","aria-label","aria-modal","id"].forEach(T=>{G.removeAttribute(T)})},{immediate:!0}),v.watch(()=>r.visible,P,{immediate:!0})}),v.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:y,popperInstanceRef:f,updatePopper:W,contentStyle:x}),(L,j)=>(v.openBlock(),v.createElementBlock("div",v.mergeProps({ref_key:"contentRef",ref:y},v.unref(E),{style:v.unref(x),class:v.unref(B),tabindex:"-1",onMouseenter:j[0]||(j[0]=z=>L.$emit("mouseenter",z)),onMouseleave:j[1]||(j[1]=z=>L.$emit("mouseleave",z))}),[v.createVNode(v.unref(EB),{trapped:v.unref(u),"trap-on-focus-in":!0,"focus-trap-el":v.unref(y),"focus-start-el":v.unref(o),onFocusAfterTrapped:v.unref(i),onFocusAfterReleased:v.unref(a),onFocusin:v.unref(s),onFocusoutPrevented:v.unref(l),onReleaseRequested:v.unref(c)},{default:v.withCtx(()=>[v.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var jB=jn(NB,[["__file","content.vue"]]);const IB=Xs(nB),Bl=Symbol("elTooltip"),Bv=Ot({...nE,...Ev,appendTo:{type:De([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:De(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...uv(["ariaLabel"])}),Av=Ot({...pv,disabled:Boolean,trigger:{type:De([String,Array]),default:"hover"},triggerKeys:{type:De(Array),default:()=>[wa.enter,wa.space]}}),{useModelToggleProps:MB,useModelToggleEmits:$B,useModelToggle:LB}=fp("visible"),zB=Ot({...lv,...MB,...Bv,...Av,...cv,showArrow:{type:Boolean,default:!0}}),VB=[...$B,"before-show","before-hide","show","hide","open","close"],WB=(e,t)=>H1(e)?e.includes(t):e===t,eo=(e,t,n)=>r=>{WB(v.unref(e),t)&&n(r)},UB=v.defineComponent({name:"ElTooltipTrigger"}),HB=v.defineComponent({...UB,props:Av,setup(e,{expose:t}){const n=e,r=Ko("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(Bl,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=vn(d,eo(p,"hover",i)),m=vn(d,eo(p,"hover",s)),f=vn(d,eo(p,"click",E=>{E.button===0&&l(E)})),w=vn(d,eo(p,"focus",i)),h=vn(d,eo(p,"focus",s)),g=vn(d,eo(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=vn(d,E=>{const{code:B}=E;n.triggerKeys.includes(B)&&(E.preventDefault(),l(E))});return t({triggerRef:c}),(E,B)=>(v.openBlock(),v.createBlock(v.unref(lB),{id:v.unref(u),"virtual-ref":E.virtualRef,open:v.unref(a),"virtual-triggering":E.virtualTriggering,class:v.normalizeClass(v.unref(r).e("trigger")),onBlur:v.unref(h),onClick:v.unref(f),onContextmenu:v.unref(g),onFocus:v.unref(w),onMouseenter:v.unref(y),onMouseleave:v.unref(m),onKeydown:v.unref(C)},{default:v.withCtx(()=>[v.renderSlot(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var KB=jn(HB,[["__file","trigger.vue"]]);const qB=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),YB=v.defineComponent({...qB,props:Bv,setup(e,{expose:t}){const n=e,{selector:r}=Ip(),o=Ko("tooltip"),u=v.ref(null),a=v.ref(!1),{controlled:i,id:s,open:l,trigger:c,onClose:d,onOpen:p,onShow:y,onHide:m,onBeforeShow:f,onBeforeHide:w}=v.inject(Bl,void 0),h=v.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),g=v.computed(()=>n.persistent);v.onBeforeUnmount(()=>{a.value=!0});const C=v.computed(()=>v.unref(g)?!0:v.unref(l)),E=v.computed(()=>n.disabled?!1:v.unref(l)),B=v.computed(()=>n.appendTo||r.value),x=v.computed(()=>{var T;return(T=n.style)!=null?T:{}}),A=v.computed(()=>!v.unref(l)),S=()=>{m()},N=()=>{if(v.unref(i))return!0},O=vn(N,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),W=vn(N,()=>{v.unref(c)==="hover"&&d()}),P=()=>{var T,I;(I=(T=u.value)==null?void 0:T.updatePopper)==null||I.call(T),f==null||f()},L=()=>{w==null||w()},j=()=>{y(),G=$1(v.computed(()=>{var T;return(T=u.value)==null?void 0:T.popperContentRef}),()=>{if(v.unref(i))return;v.unref(c)!=="hover"&&d()})},z=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),T=>{T||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var T,I;(I=(T=u.value)==null?void 0:T.updatePopper)==null||I.call(T)}),t({contentRef:u}),(T,I)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!T.teleported,to:v.unref(B)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:S,onBeforeEnter:P,onAfterEnter:j,onBeforeLeave:L},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(jB),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":v.unref(A),"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,v.unref(x)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:v.unref(E),"z-index":T.zIndex,onMouseenter:v.unref(O),onMouseleave:v.unref(W),onBlur:z,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(T.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[v.vShow,v.unref(E)]]):v.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var QB=jn(YB,[["__file","content.vue"]]);const GB=["innerHTML"],XB={key:1},ZB=v.defineComponent({name:"ElTooltip"}),JB=v.defineComponent({...ZB,props:zB,emits:VB,setup(e,{expose:t,emit:n}){const r=e;tE();const o=Zw(),u=v.ref(),a=v.ref(),i=()=>{var h;const g=v.unref(u);g&&((h=g.popperInstanceRef)==null||h.update())},s=v.ref(!1),l=v.ref(),{show:c,hide:d,hasUpdateHandler:p}=LB({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=rE({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>ip(r.visible)&&!p.value);v.provide(Bl,{controlled:f,id:o,open:v.readonly(s),trigger:v.toRef(r,"trigger"),onOpen:h=>{y(h)},onClose:h=>{m(h)},onToggle:h=>{v.unref(s)?m(h):y(h)},onShow:()=>{n("show",l.value)},onHide:()=>{n("hide",l.value)},onBeforeShow:()=>{n("before-show",l.value)},onBeforeHide:()=>{n("before-hide",l.value)},updatePopper:i}),v.watch(()=>r.disabled,h=>{h&&s.value&&(s.value=!1)});const w=h=>{var g,C;const E=(C=(g=a.value)==null?void 0:g.contentRef)==null?void 0:C.popperContentRef,B=(h==null?void 0:h.relatedTarget)||document.activeElement;return E&&E.contains(B)};return v.onDeactivated(()=>s.value&&d()),t({popperRef:u,contentRef:a,isFocusInsideContent:w,updatePopper:i,onOpen:y,onClose:m,hide:d}),(h,g)=>(v.openBlock(),v.createBlock(v.unref(IB),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(KB,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering},{default:v.withCtx(()=>[h.$slots.default?v.renderSlot(h.$slots,"default",{key:0}):v.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),v.createVNode(QB,{ref_key:"contentRef",ref:a,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":h.popperClass,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo},{default:v.withCtx(()=>[v.renderSlot(h.$slots,"content",{},()=>[h.rawContent?(v.openBlock(),v.createElementBlock("span",{key:0,innerHTML:h.content},null,8,GB)):(v.openBlock(),v.createElementBlock("span",XB,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(uB),{key:0,"arrow-offset":h.arrowOffset},null,8,["arrow-offset"])):v.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var eA=jn(JB,[["__file","tooltip.vue"]]);const tA=Xs(eA);var Ma=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const nA={viewBox:"0 0 24 24",width:"1em",height:"1em"},rA=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M16 5v6a4 4 0 0 1-4 4v0a4 4 0 0 1-4-4V5M6 19h12"},null,-1)];function oA(e,t){return v.openBlock(),v.createElementBlock("svg",nA,[...rA])}const uA={name:"iconoir-underline",render:oA},aA={viewBox:"0 0 24 24",width:"1em",height:"1em"},iA=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function sA(e,t){return v.openBlock(),v.createElementBlock("svg",aA,[...iA])}const lA={name:"ri-italic",render:sA},cA={viewBox:"0 0 20 20",width:"1em",height:"1em"},fA=[v.createElementVNode("path",{fill:"currentColor",d:"M6.252 3.702A6.56 6.56 0 0 1 10 2.5c2.783 0 4.489 1.485 5.1 2.3a.75.75 0 0 1-1.2.9C13.511 5.182 12.217 4 10 4a5.06 5.06 0 0 0-2.877.923C6.331 5.489 6 6.105 6 6.5c0 .78.376 1.285 1.11 1.71q.271.156.586.29H5.162c-.408-.523-.662-1.178-.662-2c0-1.105.794-2.114 1.752-2.798M16.5 10a.75.75 0 0 1 0 1.5h-1.662c.408.523.662 1.178.662 2c0 1.358-.874 2.376-1.912 3.014c-1.042.641-2.367.986-3.588.986c-1.142 0-2.133-.129-2.992-.498c-.877-.378-1.563-.982-2.132-1.836a.75.75 0 1 1 1.248-.832c.43.646.901 1.042 1.477 1.29c.594.255 1.354.376 2.4.376c.966 0 2.015-.28 2.801-.764C13.593 14.75 14 14.142 14 13.5c0-.78-.376-1.285-1.11-1.71q-.271-.156-.586-.29H3.5a.75.75 0 0 1 0-1.5z"},null,-1)];function dA(e,t){return v.openBlock(),v.createElementBlock("svg",cA,[...fA])}const pA={name:"fluent-text-strikethrough20-filled",render:dA},vA={viewBox:"0 0 24 24",width:"1em",height:"1em"},hA=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M12 11.667H8m4 0s3.333 0 3.333-3.334S12 5 12 5H8.6a.6.6 0 0 0-.6.6v6.067m4 0s4 0 4 3.666S12 19 12 19H8.6a.6.6 0 0 1-.6-.6v-6.733"},null,-1)];function mA(e,t){return v.openBlock(),v.createElementBlock("svg",vA,[...hA])}const gA={name:"iconoir-bold",render:mA};function yA(e){return e!=null&&typeof e=="object"&&"$el"in e}function bv(e){if(yA(e)){const t=e.$el;return dl(t)&&yr(t)==="#comment"?null:t}return e}function ru(e){return typeof e=="function"?e():v.unref(e)}function xv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fv(e,t){const n=xv(e);return Math.round(t*n)/n}function DA(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=v.computed(()=>{var A;return(A=ru(n.open))!=null?A:!0}),u=v.computed(()=>ru(n.middleware)),a=v.computed(()=>{var A;return(A=ru(n.placement))!=null?A:"bottom"}),i=v.computed(()=>{var A;return(A=ru(n.strategy))!=null?A:"absolute"}),s=v.computed(()=>{var A;return(A=ru(n.transform))!=null?A:!0}),l=v.computed(()=>bv(e.value)),c=v.computed(()=>bv(t.value)),d=v.ref(0),p=v.ref(0),y=v.ref(i.value),m=v.ref(a.value),f=v.shallowRef({}),w=v.ref(!1),h=v.computed(()=>{const A={position:y.value,left:"0",top:"0"};if(!c.value)return A;const S=Fv(c.value,d.value),N=Fv(c.value,p.value);return s.value?{...A,transform:"translate("+S+"px, "+N+"px)",...xv(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:N+"px"}});let g;function C(){l.value==null||c.value==null||VE(l.value,c.value,{middleware:u.value,placement:a.value,strategy:i.value}).then(A=>{d.value=A.x,p.value=A.y,y.value=A.strategy,m.value=A.placement,f.value=A.middlewareData,w.value=!0})}function E(){typeof g=="function"&&(g(),g=void 0)}function B(){if(E(),r===void 0){C();return}if(l.value!=null&&c.value!=null){g=r(l.value,c.value,C);return}}function x(){o.value||(w.value=!1)}return v.watch([u,a,i],C,{flush:"sync"}),v.watch([l,c],B,{flush:"sync"}),v.watch(o,x,{flush:"sync"}),v.getCurrentScope()&&v.onScopeDispose(E),{x:v.shallowReadonly(d),y:v.shallowReadonly(p),strategy:v.shallowReadonly(y),placement:v.shallowReadonly(m),middlewareData:v.shallowReadonly(f),isPositioned:v.shallowReadonly(w),floatingStyles:h,update:C}}function CA(e,t){let n,r,o;const u=v.ref(!0),a=()=>{u.value=!0,o()};v.watch(e,a,{flush:"sync"});const i=typeof t=="function"?t:t.get,s=typeof t=="function"?void 0:t.set,l=v.customRef((c,d)=>(r=c,o=d,{get(){return u.value&&(n=i(),u.value=!1),r(),n},set(p){s==null||s(p)}}));return Object.isExtensible(l)&&(l.trigger=a),l}function $a(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Al(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return $a(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function wA(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...u)=>(t+=1,n||(r=v.effectScope(!0),n=r.run(()=>e(...u))),$a(o),n)}function ou(e){return typeof e=="function"?e():v.unref(e)}const EA=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BA=e=>e!=null,AA=Object.prototype.toString,bA=e=>AA.call(e)==="[object Object]",xA=()=>{};function FA(e,t){function n(...r){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(u)})}return n}const SA=e=>e();function OA(e,t,n={}){const{eventFilter:r=SA,...o}=n,u=FA(r,t);let a,i,s;if(o.flush==="sync"){const l=v.ref(!1);i=()=>{},a=c=>{l.value=!0,c(),l.value=!1},s=v.watch(e,(...c)=>{l.value||u(...c)},o)}else{const l=[],c=v.ref(0),d=v.ref(0);i=()=>{c.value=d.value},l.push(v.watch(e,()=>{d.value++},{...o,flush:"sync"})),a=p=>{const y=d.value;p(),c.value+=d.value-y},l.push(v.watch(e,(...p)=>{const y=c.value>0&&c.value===d.value;c.value=0,d.value=0,!y&&u(...p)},o)),s=()=>{l.forEach(p=>p())}}return{stop:s,ignoreUpdates:a,ignorePrevAsyncUpdates:i}}function _A(e,t,n={}){let r;function o(){if(!r)return;const c=r;r=void 0,c()}function u(c){r=c}const a=(c,d)=>(o(),t(c,d,u)),i=OA(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(PA(e),kA(e))}),c}}}function PA(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>ou(t)):ou(e)}function kA(e){return Array.isArray(e)?e.map(()=>{}):void 0}function La(e){var t;const n=ou(e);return(t=n==null?void 0:n.$el)!=null?t:n}const uu=EA?window:void 0;function Xe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=uu):[t,n,r,o]=e,!t)return xA;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[La(t),ou(o)],([c,d])=>{if(a(),!c)return;const p=bA(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(c,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return $a(l),l}function TA(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function RA(e){const t=TA();return v.computed(()=>(t.value,!!e()))}function Sv(e,t,n={}){const{window:r=uu,...o}=n;let u;const a=RA(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=ou(e),y=(Array.isArray(p)?p:[p]).map(La).filter(BA);return new Set(y)}),l=v.watch(()=>s.value,p=>{i(),a.value&&p.size&&(u=new MutationObserver(t),p.forEach(y=>u.observe(y,o)))},{immediate:!0,flush:"post"}),c=()=>u==null?void 0:u.takeRecords(),d=()=>{i(),l()};return $a(d),{isSupported:a,stop:d,takeRecords:c}}function NA(e={}){var t;const{window:n=uu,deep:r=!0,triggerOnRemoval:o=!1}=e,u=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var l;let c=u==null?void 0:u.activeElement;if(r)for(;c!=null&&c.shadowRoot;)c=(l=c==null?void 0:c.shadowRoot)==null?void 0:l.activeElement;return c},i=v.ref(),s=()=>{i.value=a()};return n&&(Xe(n,"blur",l=>{l.relatedTarget===null&&s()},!0),Xe(n,"focus",s,!0)),o&&Sv(u,l=>{l.filter(c=>c.removedNodes.length).map(c=>Array.from(c.removedNodes)).flat().forEach(c=>{c===i.value&&s()})},{childList:!0,subtree:!0}),s(),i}function za(e){const t=v.getCurrentInstance(),n=CA(()=>null,()=>t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function jA(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=uu}=t,u=v.ref(!1);let a;const i=s=>{const l=s?n:r;a&&(clearTimeout(a),a=void 0),l?a=setTimeout(()=>u.value=s,l):u.value=s};return o&&(Xe(e,"mouseenter",()=>i(!0),{passive:!0}),Xe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function IA(e,t={}){const n=NA(t),r=v.computed(()=>La(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function MA(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=uu}=e,a=v.ref(o),i=v.ref(null);if(!u)return{pressed:a,sourceType:i};const s=d=>()=>{a.value=!0,i.value=d},l=()=>{a.value=!1,i.value=null},c=v.computed(()=>La(e.target)||u);return Xe(c,"mousedown",s("mouse"),{passive:!0,capture:r}),Xe(u,"mouseleave",l,{passive:!0,capture:r}),Xe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Xe(c,"dragstart",s("mouse"),{passive:!0,capture:r}),Xe(u,"drop",l,{passive:!0,capture:r}),Xe(u,"dragend",l,{passive:!0,capture:r})),t&&(Xe(c,"touchstart",s("touch"),{passive:!0,capture:r}),Xe(u,"touchend",l,{passive:!0,capture:r}),Xe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const Va=v.ref(),Wa=v.ref(),$A=Al(),Ov=Al();function Ua(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function LA(){return String.fromCharCode(Ua(97,122))}function zA(){return String.fromCharCode(Ua(65,90))}function _v(e=12,t={}){const{lowercase:n=!0,uppercase:r=!1,number:o=!1}=t,u=[];let a;if(n&&u.push("l"),r&&u.push("u"),o&&u.push("n"),!(a=u.length))throw new Error("???");let i="";for(;e-- >0;){const s=a>1?Ua(0,a-1):0,l=u[s];l==="l"?i+=LA():l==="u"?i+=zA():l==="n"&&(i+=Ua(0,9))}return i}function VA(){return _v(1,{uppercase:!0})+_v(17,{uppercase:!0,number:!0})}const WA=typeof window<"u";function UA(e,t,n){let r;const o=()=>{r==null||r.stop(),r=void 0},u=v.watch(e,(a,i,s)=>{a?(r&&o(),r=v.effectScope(),r.run(()=>t(a,i,s))):o()},n);return()=>{o(),u()}}function HA(e,t,n){return UA(e,t,{...n,immediate:!0})}const Pv=wA(()=>{const e=v.ref(null),t=v.computed(()=>{var u;return((u=e.value)==null?void 0:u.toString())??""}),n=v.computed(()=>t.value&&e.value.rangeCount>0),r=v.computed(()=>{if(n.value){const u=e.value.getRangeAt(0).cloneRange();if(u.collapse(u.startContainer===e.value.focusNode),u.startOffset===0){const a=document.createRange();return a.setStart(u.startContainer,0),a.setEnd(u.startContainer,1),a}return u}}),o=Al();return HA(Wa,()=>{Xe(window.document,"selectionchange",()=>{e.value=null,e.value=Wa.value.getSelection(),n.value&&o.trigger(e.value)})}),{text:t,isValidSelection:n,range:r,selection:e,onValidSelectionUpdate:o.on}});/*!
|
6
6
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
7
7
|
*
|
8
8
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
9
9
|
* Released under the MIT License.
|
10
|
-
*/function Pv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return Pv(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Pv(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var kv=Symbol.for("immer-nothing"),Tv=Symbol.for("immer-draftable"),wt=Symbol.for("immer-state");function Ut(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var to=Object.getPrototypeOf;function Dr(e){return!!e&&!!e[wt]}function Cr(e){var t;return e?Rv(e)||Array.isArray(e)||!!e[Tv]||!!((t=e.constructor)!=null&&t[Tv])||Ka(e)||qa(e):!1}var HA=Object.prototype.constructor.toString();function Rv(e){if(!e||typeof e!="object")return!1;const t=to(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===HA}function Ua(e,t){Ha(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ha(e){const t=e[wt];return t?t.type_:Array.isArray(e)?1:Ka(e)?2:qa(e)?3:0}function Al(e,t){return Ha(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nv(e,t,n){const r=Ha(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function KA(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ka(e){return e instanceof Map}function qa(e){return e instanceof Set}function wr(e){return e.copy_||e.base_}function bl(e,t){if(Ka(e))return new Map(e);if(qa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Rv(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[wt];let o=Reflect.ownKeys(r);for(let u=0;u<o.length;u++){const a=o[u],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(to(e),r)}else{const r=to(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function xl(e,t=!1){return Ya(e)||Dr(e)||!Cr(e)||(Ha(e)>1&&(e.set=e.add=e.clear=e.delete=qA),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>xl(r,!0))),e}function qA(){Ut(2)}function Ya(e){return Object.isFrozen(e)}var YA={};function Er(e){const t=YA[e];return t||Ut(0,e),t}var uu;function jv(){return uu}function QA(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Iv(e,t){t&&(Er("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fl(e){Sl(e),e.drafts_.forEach(GA),e.drafts_=null}function Sl(e){e===uu&&(uu=e.parent_)}function Mv(e){return uu=QA(uu,e)}function GA(e){const t=e[wt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $v(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[wt].modified_&&(Fl(t),Ut(4)),Cr(e)&&(e=Qa(t,e),t.parent_||Ga(t,e)),t.patches_&&Er("Patches").generateReplacementPatches_(n[wt].base_,e,t.patches_,t.inversePatches_)):e=Qa(t,n,[]),Fl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kv?e:void 0}function Qa(e,t,n){if(Ya(t))return t;const r=t[wt];if(!r)return Ua(t,(o,u)=>Lv(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ga(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let u=o,a=!1;r.type_===3&&(u=new Set(o),o.clear(),a=!0),Ua(u,(i,s)=>Lv(e,r,o,i,s,n,a)),Ga(e,o,!1),n&&e.patches_&&Er("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lv(e,t,n,r,o,u,a){if(Dr(o)){const i=u&&t&&t.type_!==3&&!Al(t.assigned_,r)?u.concat(r):void 0,s=Qa(e,o,i);if(Nv(n,r,s),Dr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Cr(o)&&!Ya(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Qa(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ga(e,o)}}function Ga(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xl(t,n)}function XA(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:jv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=Ol;n&&(o=[r],u=au);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var Ol={get(e,t){if(t===wt)return e;const n=wr(e);if(!Al(n,t))return ZA(e,n,t);const r=n[t];return e.finalized_||!Cr(r)?r:r===_l(e.base_,t)?(kl(e),e.copy_[t]=Tl(r,e)):r},has(e,t){return t in wr(e)},ownKeys(e){return Reflect.ownKeys(wr(e))},set(e,t,n){const r=zv(wr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=_l(wr(e),t),u=o==null?void 0:o[wt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(KA(n,o)&&(n!==void 0||Al(e.base_,t)))return!0;kl(e),Pl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _l(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,kl(e),Pl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ut(11)},getPrototypeOf(e){return to(e.base_)},setPrototypeOf(){Ut(12)}},au={};Ua(Ol,(e,t)=>{au[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),au.deleteProperty=function(e,t){return au.set.call(this,e,t,void 0)},au.set=function(e,t,n){return Ol.set.call(this,e[0],t,n,e[0])};function _l(e,t){const n=e[wt];return(n?wr(n):e)[t]}function ZA(e,t,n){var o;const r=zv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function zv(e,t){if(!(t in e))return;let n=to(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=to(n)}}function Pl(e){e.modified_||(e.modified_=!0,e.parent_&&Pl(e.parent_))}function kl(e){e.copy_||(e.copy_=bl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var JA=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const a=this;return function(s=u,...l){return a.produce(s,c=>n.call(this,c,...l))}}typeof n!="function"&&Ut(6),r!==void 0&&typeof r!="function"&&Ut(7);let o;if(Cr(t)){const u=Mv(this),a=Tl(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?Fl(u):Sl(u)}return Iv(u,r),$v(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===kv&&(o=void 0),this.autoFreeze_&&xl(o,!0),r){const u=[],a=[];Er("Patches").generateReplacementPatches_(t,o,u,a),r(u,a)}return o}else Ut(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...i)=>this.produceWithPatches(a,s=>t(s,...i));let r,o;return[this.produce(t,n,(a,i)=>{r=a,o=i}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Cr(e)||Ut(8),Dr(e)&&(e=eb(e));const t=Mv(this),n=Tl(e,void 0);return n[wt].isManual_=!0,Sl(t),n}finishDraft(e,t){const n=e&&e[wt];(!n||!n.isManual_)&&Ut(9);const{scope_:r}=n;return Iv(r,t),$v(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Er("Patches").applyPatches_;return Dr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Tl(e,t){const n=Ka(e)?Er("MapSet").proxyMap_(e,t):qa(e)?Er("MapSet").proxySet_(e,t):XA(e,t);return(t?t.scope_:jv()).drafts_.push(n),n}function eb(e){return Dr(e)||Ut(10,e),Vv(e)}function Vv(e){if(!Cr(e)||Ya(e))return e;const t=e[wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=bl(e,!0);return Ua(n,(r,o)=>{Nv(n,r,Vv(o))}),t&&(t.finalized_=!1),n}var Et=new JA,Rl=Et.produce;Et.produceWithPatches.bind(Et),Et.setAutoFreeze.bind(Et),Et.setUseStrictShallowCopy.bind(Et),Et.applyPatches.bind(Et);var Wv=Et.createDraft.bind(Et),Uv=Et.finishDraft.bind(Et),tb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=b.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},nb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ue.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},rb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=_.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Xa=new WeakMap,Za=new WeakMap,iu=new WeakMap,Hv=new WeakMap,Kv=new WeakMap,qv=new WeakMap,Yv=new WeakMap,b={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=b.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],u=t[r];if(o!==u)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return b.equals(r,o)&&u>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return b.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return b.equals(r,o)&&u<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return b.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&b.compare(e,t)===0},isBefore(e,t){return b.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&b.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&b.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&b.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&b.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],u=t[t.length-1];return o!==u&&b.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!b.isAncestor(t,e)&&!b.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:u}=t;(b.equals(u,r)||b.endsBefore(u,r)||b.isAncestor(u,r))&&(r[u.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(b.equals(a,r)||b.isAncestor(a,r))return null;b.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:i,position:s}=t;b.equals(i,r)||b.endsBefore(i,r)?r[i.length-1]-=1:b.isAncestor(i,r)&&(r[i.length-1]-=1,r[i.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(b.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else b.endsBefore(l,r)?r[l.length-1]+=1:b.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break}case"move_node":{var{path:d,newPath:p}=t;if(b.equals(d,p))return r;if(b.isAncestor(d,r)||b.equals(d,r)){var y=p.slice();return b.endsBefore(d,p)&&d.length<p.length&&(y[d.length-1]-=1),y.concat(r.slice(d.length))}else b.isSibling(d,p)&&(b.isAncestor(p,r)||b.equals(p,r))?b.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:b.endsBefore(p,r)||b.equals(p,r)||b.isAncestor(p,r)?(b.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):b.endsBefore(d,r)&&(b.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1);break}}return r}};function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function ob(e,t){if(su(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(su(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ub(e){var t=ob(e,"string");return su(t)==="symbol"?t:String(t)}function rt(e,t,n){return t=ub(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qv(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ab=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,u=q.parent(e,r),a=r[r.length-1];if(a>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(u.children.splice(a,0,o),t)for(var[i,s]of _.points(t))t[s]=ue.transform(i,n);break}case"insert_text":{var{path:l,offset:c,text:d}=n;if(d.length===0)break;var p=q.leaf(e,l),y=p.text.slice(0,c),m=p.text.slice(c);if(p.text=y+d+m,t)for(var[f,w]of _.points(t))t[w]=ue.transform(f,n);break}case"merge_node":{var{path:h}=n,g=q.get(e,h),C=b.previous(h),E=q.get(e,C),B=q.parent(e,h),x=h[h.length-1];if(Z.isText(g)&&Z.isText(E))E.text+=g.text;else if(!Z.isText(g)&&!Z.isText(E))E.children.push(...g.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h,"] to nodes of different interfaces: ").concat(Le.stringify(g)," ").concat(Le.stringify(E)));if(B.children.splice(x,1),t)for(var[A,S]of _.points(t))t[S]=ue.transform(A,n);break}case"move_node":{var{path:N,newPath:O}=n;if(b.isAncestor(N,O))throw new Error("Cannot move a path [".concat(N,"] to new path [").concat(O,"] because the destination is inside itself."));var V=q.get(e,N),P=q.parent(e,N),L=N[N.length-1];P.children.splice(L,1);var j=b.transform(N,n),z=q.get(e,b.parent(j)),G=j[j.length-1];if(z.children.splice(G,0,V),t)for(var[T,I]of _.points(t))t[I]=ue.transform(T,n);break}case"remove_node":{var{path:K}=n,Q=K[K.length-1],ne=q.parent(e,K);if(ne.children.splice(Q,1),t)for(var[te,ye]of _.points(t)){var fe=ue.transform(te,n);if(t!=null&&fe!=null)t[ye]=fe;else{var F=void 0,W=void 0;for(var[U,Y]of q.texts(e))if(b.compare(Y,K)===-1)F=[U,Y];else{W=[U,Y];break}var ie=!1;F&&W&&(b.equals(W[1],K)?ie=!b.hasPrevious(W[1]):ie=b.common(F[1],K).length<b.common(W[1],K).length),F&&!ie?(te.path=F[1],te.offset=F[0].text.length):W?(te.path=W[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ee,offset:he,text:pe}=n;if(pe.length===0)break;var se=q.leaf(e,ee),ae=se.text.slice(0,he),me=se.text.slice(he+pe.length);if(se.text=ae+me,t)for(var[Pe,ve]of _.points(t))t[ve]=ue.transform(Pe,n);break}case"set_node":{var{path:Qe,properties:yt,newProperties:je}=n;if(Qe.length===0)throw new Error("Cannot set properties on the root node!");var We=q.get(e,Qe);for(var we in je){if(we==="children"||we==="text")throw new Error('Cannot set the "'.concat(we,'" property of nodes!'));var nt=je[we];nt==null?delete We[we]:We[we]=nt}for(var Te in yt)je.hasOwnProperty(Te)||delete We[Te];break}case"set_selection":{var{newProperties:de}=n;if(de==null)t=de;else{if(t==null){if(!_.isRange(de))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Le.stringify(de)," when there is no current selection."));t=lu({},de)}for(var Dt in de){var dn=de[Dt];if(dn==null){if(Dt==="anchor"||Dt==="focus")throw new Error('Cannot remove the "'.concat(Dt,'" selection property'));delete t[Dt]}else t[Dt]=dn}}break}case"split_node":{var{path:Ge,position:pn,properties:Wr}=n;if(Ge.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Ge,"] because the root node cannot be split."));var _n=q.get(e,Ge),fa=q.parent(e,Ge),js=Ge[Ge.length-1],Rd;if(Z.isText(_n)){var vk=_n.text.slice(0,pn),hk=_n.text.slice(pn);_n.text=vk,Rd=lu(lu({},Wr),{},{text:hk})}else{var mk=_n.children.slice(0,pn),gk=_n.children.slice(pn);_n.children=mk,Rd=lu(lu({},Wr),{},{children:gk})}if(fa.children.splice(js+1,0,Rd),t)for(var[yk,Dk]of _.points(t))t[Dk]=ue.transform(yk,n);break}}return t},ib={transform(e,t){e.children=Wv(e.children);var n=e.selection&&Wv(e.selection);try{n=ab(e,n,t)}finally{e.children=Uv(e.children),n?e.selection=Dr(n)?Uv(n):n:e.selection=null}}},sb={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},lb={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Gv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!Gv(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var u=0;u<r.length;u++)if(r[u]!==o[u])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0};function cb(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mn(e,t){if(e==null)return{};var n=cb(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var fb=["anchor","focus"];function Xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function db(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xv(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return _.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=_.edges(e);return t},equals(e,t){return ue.equals(e.anchor,t.anchor)&&ue.equals(e.focus,t.focus)},includes(e,t){if(_.isRange(t)){if(_.includes(e,t.anchor)||_.includes(e,t.focus))return!0;var[n,r]=_.edges(e),[o,u]=_.edges(t);return ue.isBefore(n,o)&&ue.isAfter(r,u)}var[a,i]=_.edges(e),s=!1,l=!1;return ue.isPoint(t)?(s=ue.compare(t,a)>=0,l=ue.compare(t,i)<=0):(s=b.compare(t,a.path)>=0,l=b.compare(t,i.path)<=0),s&&l},intersection(e,t){var n=mn(e,fb),[r,o]=_.edges(e),[u,a]=_.edges(t),i=ue.isBefore(r,u)?u:r,s=ue.isBefore(o,a)?o:a;return ue.isBefore(s,i)?null:db({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ue.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ue.equals(t,n)},isExpanded(e){return!_.isCollapsed(e)},isForward(e){return!_.isBackward(e)},isRange(e){return Ue(e)&&ue.isPoint(e.anchor)&&ue.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=_.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Rl(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,u,a;if(o==="inward"){var i=_.isCollapsed(r);_.isForward(r)?(u="forward",a=i?u:"backward"):(u="backward",a=i?u:"forward")}else o==="outward"?_.isForward(r)?(u="backward",a="forward"):(u="forward",a="backward"):(u=o,a=o);var s=ue.transform(r.anchor,t,{affinity:u}),l=ue.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},Zv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:Zv,isElementList(e){return Array.isArray(e)&&e.every(t=>X.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Zv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},pb=["children"],vb=["text"],Jv=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(Z.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Le.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of b.ancestors(t,n)){var o=q.ancestor(e,r),u=[o,r];yield u}}()},child(e,t){if(Z.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Le.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Le.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=q.ancestor(e,t),{children:u}=o,a=r?u.length-1:0;r?a>=0:a<u.length;){var i=q.child(o,a),s=t.concat(a);yield[i,s],a=r?a-1:a+1}}()},common(e,t,n){var r=b.common(t,n),o=q.get(e,r);return[o,r]},descendant(e,t){var n=q.get(e,t);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Le.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))r.length!==0&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))X.isElement(n)&&(yield[n,r])}()},extractProps(e){if(X.isAncestor(e)){var t=mn(e,pb);return t}else{var t=mn(e,vb);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(Z.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Z.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Le.stringify(e)));var n=Rl({children:e.children},r=>{var[o,u]=_.edges(t),a=q.nodes(r,{reverse:!0,pass:p=>{var[,y]=p;return!_.includes(t,y)}});for(var[,i]of a){if(!_.includes(t,i)){var s=q.parent(r,i),l=i[i.length-1];s.children.splice(l,1)}if(b.equals(i,u.path)){var c=q.leaf(r,i);c.text=c.text.slice(0,u.offset)}if(b.equals(i,o.path)){var d=q.leaf(r,i);d.text=d.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Z.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Le.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Z.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Z.isText(e)||X.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=Jv.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return Jv.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(Z.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=q.get(e,t);if(!Z.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Le.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of b.levels(t,n)){var o=q.get(e,r);yield[o,r]}}()},matches(e,t){return X.isElement(e)&&X.isElementProps(t)&&X.matches(e,t)||Z.isText(e)&&Z.isTextProps(t)&&Z.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:u}=t,a=new Set,i=[],s=e;!(u&&(r?b.isBefore(i,u):b.isAfter(i,u)));){if(a.has(s)||(yield[s,i]),!a.has(s)&&!Z.isText(s)&&s.children.length!==0&&(n==null||n([s,i])===!1)){a.add(s);var l=r?s.children.length-1:0;b.isAncestor(i,o)&&(l=o[i.length]),i=i.concat(l),s=q.get(e,i);continue}if(i.length===0)break;if(!r){var c=b.next(i);if(q.has(e,c)){i=c,s=q.get(e,i);continue}}if(r&&i[i.length-1]!==0){var d=b.previous(i);i=d,s=q.get(e,i);continue}i=b.parent(i),s=q.get(e,i),a.add(s)}}()},parent(e,t){var n=b.parent(t),r=q.get(e,n);if(Z.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Z.isText(e)?e.text:e.children.map(q.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))Z.isText(n)&&(yield[n,r])}()}};function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Mn={isNodeOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ue(e))return!1;switch(e.type){case"insert_node":return b.isPath(e.path)&&q.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&b.isPath(e.path);case"merge_node":return typeof e.position=="number"&&b.isPath(e.path)&&Ue(e.properties);case"move_node":return b.isPath(e.path)&&b.isPath(e.newPath);case"remove_node":return b.isPath(e.path)&&q.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&b.isPath(e.path);case"set_node":return b.isPath(e.path)&&Ue(e.properties)&&Ue(e.newProperties);case"set_selection":return e.properties===null&&_.isRange(e.newProperties)||e.newProperties===null&&_.isRange(e.properties)||Ue(e.properties)&&Ue(e.newProperties);case"split_node":return b.isPath(e.path)&&typeof e.position=="number"&&Ue(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Mn.isOperation(t))},isSelectionOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Ae(Ae({},e),{},{type:"remove_node"});case"insert_text":return Ae(Ae({},e),{},{type:"remove_text"});case"merge_node":return Ae(Ae({},e),{},{type:"split_node",path:b.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(b.equals(t,n))return e;if(b.isSibling(n,t))return Ae(Ae({},e),{},{path:t,newPath:n});var r=b.transform(n,e),o=b.transform(b.next(n),e);return Ae(Ae({},e),{},{path:r,newPath:o})}case"remove_node":return Ae(Ae({},e),{},{type:"insert_node"});case"remove_text":return Ae(Ae({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return Ae(Ae({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?Ae(Ae({},e),{},{properties:s,newProperties:null}):s==null?Ae(Ae({},e),{},{properties:null,newProperties:i}):Ae(Ae({},e),{},{properties:s,newProperties:i})}case"split_node":return Ae(Ae({},e),{},{type:"merge_node",path:b.next(e.path)})}}},th=new WeakMap,hb=e=>{var t=th.get(e);if(t!==void 0)return t;if(!Ue(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Ue(e.marks))&&(e.selection===null||_.isRange(e.selection))&&q.isNodeList(e.children)&&Mn.isOperationList(e.operations);return th.set(e,n),n},D={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return hb(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},mb={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(b.isPath)}};function nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ue={compare(e,t){var n=b.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return ue.compare(e,t)===1},isBefore(e,t){return ue.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&b.equals(e.path,t.path)},isPoint(e){return Ue(e)&&typeof e.offset=="number"&&b.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Rl(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:u,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=b.transform(u,t,n);break}case"insert_text":{b.equals(t.path,u)&&(t.offset<a||t.offset===a&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{b.equals(t.path,u)&&(r.offset+=t.position),r.path=b.transform(u,t,n);break}case"remove_text":{b.equals(t.path,u)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(b.equals(t.path,u)||b.isAncestor(t.path,u))return null;r.path=b.transform(u,t,n);break}case"split_node":{if(b.equals(t.path,u)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=b.transform(u,t,rh(rh({},n),{},{affinity:"forward"})))}else r.path=b.transform(u,t,n);break}}})}},oh=void 0,Le={setScrubber(e){oh=e},stringify(e){return JSON.stringify(e,oh)}},gb=["text"],yb=["anchor","focus"];function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=mn(u,gb);return a}return Gv(r?o(e):e,r?o(t):t)},isText(e){return Ue(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Z.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[gn({},e)];for(var r of t){var o=mn(r,yb),[u,a]=_.edges(r),i=[],s=0,l=u.offset,c=a.offset;for(var d of n){var{length:p}=d.text,y=s;if(s+=p,l<=y&&s<=c){Object.assign(d,o),i.push(d);continue}if(l!==c&&(l===s||c===y)||l>s||c<y||c===y&&y!==0){i.push(d);continue}var m=d,f=void 0,w=void 0;if(c<s){var h=c-y;w=gn(gn({},m),{},{text:m.text.slice(h)}),m=gn(gn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=gn(gn({},m),{},{text:m.text.slice(0,g)}),m=gn(gn({},m),{},{text:m.text.slice(g)})}Object.assign(m,o),f&&i.push(f),i.push(m),w&&i.push(w)}n=i}return n}},Nl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],no=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},jl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?Ab(t):t,u=oe.None,a=oe.None,i=0,s=null,l=null;for(var c of o){var d=c.codePointAt(0);if(!d)break;var p=jb(c,d);if([u,a]=r?[a,p]:[p,u],ro(u,oe.ZWJ)&&ro(a,oe.ExtPict)&&(r?s=ah(t.substring(0,i)):s=ah(t.substring(0,t.length-i)),!s)||ro(u,oe.RI)&&ro(a,oe.RI)&&(l!==null?l=!l:r?l=!0:l=zb(t.substring(0,t.length-i)),!l)||u!==oe.None&&a!==oe.None&&Mb(u,a))break;i+=c.length}return i||1},Db=/\s/,Cb=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,wb=/['\u2018\u2019]/,Eb=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=jl(t,n),[a,i]=Il(t,u,n);if(Bb(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},Il=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Bb=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(Db.test(t))return!1;if(wb.test(t)){var o=jl(n,r),[u,a]=Il(n,o,r);if(e(u,a,r))return!0}return!Cb.test(t)},Ab=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(xb(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(bb(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},bb=e=>e>=55296&&e<=56319,xb=e=>e>=56320&&e<=57343,oe;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(oe||(oe={}));var Fb=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Sb=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Ob=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,_b=/^[\u1100-\u115F\uA960-\uA97C]$/,Pb=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,kb=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Tb=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Rb=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Nb=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,jb=(e,t)=>{var n=oe.Any;return e.search(Fb)!==-1&&(n|=oe.Extend),t===8205&&(n|=oe.ZWJ),t>=127462&&t<=127487&&(n|=oe.RI),e.search(Sb)!==-1&&(n|=oe.Prepend),e.search(Ob)!==-1&&(n|=oe.SpacingMark),e.search(_b)!==-1&&(n|=oe.L),e.search(Pb)!==-1&&(n|=oe.V),e.search(kb)!==-1&&(n|=oe.T),e.search(Tb)!==-1&&(n|=oe.LV),e.search(Rb)!==-1&&(n|=oe.LVT),e.search(Nb)!==-1&&(n|=oe.ExtPict),n};function ro(e,t){return(e&t)!==0}var Ib=[[oe.L,oe.L|oe.V|oe.LV|oe.LVT],[oe.LV|oe.V,oe.V|oe.T],[oe.LVT|oe.T,oe.T],[oe.Any,oe.Extend|oe.ZWJ],[oe.Any,oe.SpacingMark],[oe.Prepend,oe.Any],[oe.ZWJ,oe.ExtPict],[oe.RI,oe.RI]];function Mb(e,t){return Ib.findIndex(n=>ro(e,n[0])&&ro(t,n[1]))===-1}var $b=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,ah=e=>e.search($b)!==-1,Lb=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,zb=e=>{var t=e.match(Lb);if(t===null)return!1;var n=t[0].length/2;return n%2===1},Vb={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=Nl(e)}=n;if(b.isPath(o)&&(o=D.range(e,o)),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var u=_.end(o);if(!r&&D.void(e,{at:u}))return;var a=_.start(o),i=D.pointRef(e,a),s=D.pointRef(e,u);R.delete(e,{at:o,voids:r});var l=i.unref(),c=s.unref();o=l||c,R.setSelection(e,{anchor:o,focus:o})}if(!(!r&&D.void(e,{at:o})||D.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}};function ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ih(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var R=Ja(Ja(Ja(Ja({},ib),sb),lb),Vb),ei=new WeakMap,Wb=e=>ei.get(e)||!1,Ub=(e,t,n)=>{var r=ei.get(e)||!1;ei.set(e,!0);try{t(),n()}finally{ei.set(e,r)}};function sh(e,t,n){var r=Xa.get(e)||[],o=Za.get(e)||new Set,u,a,i=d=>{if(d){var p=d.join(",");a.has(p)||(a.add(p),u.push(d))}};if(n){u=[],a=new Set;for(var s of r){var l=n(s);i(l)}}else u=r,a=o;for(var c of t)i(c);Xa.set(e,u),Za.set(e,a)}var Hb=(e,t)=>{for(var n of D.pathRefs(e))tb.transform(n,t);for(var r of D.pointRefs(e))nb.transform(r,t);for(var o of D.rangeRefs(e))rb.transform(o,t);if(!Wb(e)){var u=b.operationCanTransformPath(t)?a=>b.transform(a,t):void 0;sh(e,e.getDirtyPaths(t),u)}R.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),iu.get(e)||(iu.set(e,!0),Promise.resolve().then(()=>{iu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},Kb=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return b.levels(n)}case"insert_node":{var{node:r,path:o}=t,u=b.levels(o),a=Z.isText(r)?[]:Array.from(q.nodes(r),O=>{var[,V]=O;return o.concat(V)});return[...u,...a]}case"merge_node":{var{path:i}=t,s=b.ancestors(i),l=b.previous(i);return[...s,l]}case"move_node":{var{path:c,newPath:d}=t;if(b.equals(c,d))return[];var p=[],y=[];for(var m of b.ancestors(c)){var f=b.transform(m,t);p.push(f)}for(var w of b.ancestors(d)){var h=b.transform(w,t);y.push(h)}var g=y[y.length-1],C=d[d.length-1],E=g.concat(C);return[...p,...y,E]}case"remove_node":{var{path:B}=t,x=b.ancestors(B);return[...x]}case"split_node":{var{path:A}=t,S=b.levels(A),N=b.next(A);return[...S,N]}default:return[]}},qb=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},Yb=(e,t)=>{var[n,r]=t;if(!Z.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};R.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var u=D.isEditor(n)?!1:X.isElement(n)&&(e.isInline(n)||n.children.length===0||Z.isText(n.children[0])||e.isInline(n.children[0])),a=0,i=0;i<n.children.length;i++,a++){var s=q.get(e,r);if(!Z.isText(s)){var l=s.children[a],c=s.children[a-1],d=i===n.children.length-1,p=Z.isText(l)||X.isElement(l)&&e.isInline(l);if(p!==u)R.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(X.isElement(l)){if(e.isInline(l)){if(c==null||!Z.isText(c)){var y={text:""};R.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};R.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else{if(!Z.isText(l)&&!("children"in l)){var f=l;f.children=[]}c!=null&&Z.isText(c)&&(Z.equals(l,c,{loose:!0})?(R.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(R.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(R.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}}},Qb=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Gb=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:u=t.selection,match:a}=n;if(u){var i=D.path(t,u),s=o==="lowest";for(var[l,c]of D.levels(t,{at:i,voids:r,match:a,reverse:s}))if(!Z.isText(l)){if(_.isRange(u)){if(b.isAncestor(c,u.anchor.path)&&b.isAncestor(c,u.focus.path))return[l,c]}else if(!b.equals(i,c))return[l,c]}}};function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Xb=(e,t,n)=>{var{selection:r}=e;if(r){var o=(d,p)=>{if(!Z.isText(d))return!1;var[y,m]=D.parent(e,p);return!e.isVoid(y)||e.markableVoid(y)},u=_.isExpanded(r),a=!1;if(!u){var[i,s]=D.node(e,r);if(i&&o(i,s)){var[l]=D.parent(e,s);a=l&&e.markableVoid(l)}}if(u||a)R.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var c=ch(ch({},D.marks(e)||{}),{},{[t]:n});e.marks=c,iu.get(e)||e.onChange()}}};function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zb=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.point(t,n,{edge:"end"}),u=D.end(t,[]),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,dh(dh({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Jb=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.start(t,[]),u=D.point(t,n,{edge:"start"}),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,vh(vh({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},e2=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&R.delete(e,{unit:t,reverse:!0})},t2=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&R.delete(e,{unit:t})},n2=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&_.isExpanded(r)&&R.delete(t,{reverse:n==="backward"})},r2=(e,t)=>[D.start(e,t),D.end(e,t)];function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var o2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,mh(mh({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},u2=(e,t)=>D.point(e,t,{edge:"end"}),a2=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},i2=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var s2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,yh(yh({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},l2=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),c2=(e,t)=>t.children.some(n=>Z.isText(n)||D.isInline(e,n)),f2=(e,t)=>q.has(e,t),d2=(e,t)=>t.children.every(n=>Z.isText(n)),p2=e=>{R.splitNodes(e,{always:!0})},v2=(e,t,n)=>{R.insertNodes(e,t,n)},h2=e=>{R.splitNodes(e,{always:!0})};function Dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function m2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var g2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:u}=t;if(o){if(u){var a=m2({text:n},u);R.insertNodes(t,a,{at:r.at,voids:r.voids})}else R.insertText(t,n,r);t.marks=null}},y2=(e,t)=>!e.isInline(t),D2=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),C2=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Z.isText(r)&&r.text===""&&!e.isVoid(t)},w2=(e,t,n)=>{var r=D.end(e,n);return ue.equals(t,r)},E2=e=>{var t=Hv.get(e);return t===void 0?!0:t},B2=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ue.equals(t,r)},A2=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},b2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.leaf(t,o);return[u,o]};function x2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:u}=t;if(u==null&&(u=()=>!0),!!n){var a=[],i=D.path(e,n);for(var[s,l]of q.levels(e,i))if(u(s,l)&&(a.push([s,l]),!o&&X.isElement(s)&&D.isVoid(e,s)))break;r&&a.reverse(),yield*a}}()}var F2=["text"],S2=["text"],O2=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:o,focus:u}=r;if(n)return n;if(_.isExpanded(r)){var a=D.isEnd(t,o,o.path);if(a){var i=D.after(t,o);i&&(o=i)}var[s]=D.nodes(t,{match:Z.isText,at:{anchor:o,focus:u}});if(s){var[l]=s,c=mn(l,F2);return c}else return{}}var{path:d}=o,[p]=D.leaf(t,d);if(o.offset===0){var y=D.previous(t,{at:d,match:Z.isText}),m=D.above(t,{match:E=>X.isElement(E)&&D.isVoid(t,E)&&t.markableVoid(E)});if(!m){var f=D.above(t,{match:E=>X.isElement(E)&&D.isBlock(t,E)});if(y&&f){var[w,h]=y,[,g]=f;b.isAncestor(g,h)&&(p=w)}}}var C=mn(p,S2);return C},_2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.after(t,a,{voids:o});if(i){var[,s]=D.last(t,[]),l=[i.path,s];if(b.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(u==null)if(b.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{at:l,match:u,mode:r,voids:o});return d}}},P2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.get(t,o);return[u,o]};function k2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:u=!1,voids:a=!1,ignoreNonSelectable:i=!1}=t,{match:s}=t;if(s||(s=()=>!0),!!n){var l,c;if(mb.isSpan(n))l=n[0],c=n[1];else{var d=D.path(e,n,{edge:"start"}),p=D.path(e,n,{edge:"end"});l=u?p:d,c=u?d:p}var y=q.nodes(e,{reverse:u,from:l,to:c,pass:E=>{var[B]=E;return X.isElement(B)?!!(!a&&(D.isVoid(e,B)||D.isElementReadOnly(e,B))||i&&!D.isSelectable(e,B)):!1}}),m=[],f;for(var[w,h]of y)if(!(i&&X.isElement(w)&&!D.isSelectable(e,w))){var g=f&&b.compare(h,f[1])===0;if(!(r==="highest"&&g)){if(!s(w,h)){if(o&&!g&&Z.isText(w))return;continue}if(r==="lowest"&&g){f=[w,h];continue}var C=r==="lowest"?f:[w,h];C&&(o?m.push(C):yield C),f=[w,h]}}r==="lowest"&&f&&(o?m.push(f):yield f),o&&(yield*m)}}()}var T2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=c=>Xa.get(c)||[],a=c=>Za.get(c)||new Set,i=c=>{var d=u(c).pop(),p=d.join(",");return a(c).delete(p),d};if(D.isNormalizing(t)){if(r){var s=Array.from(q.nodes(t),c=>{var[,d]=c;return d}),l=new Set(s.map(c=>c.join(",")));Xa.set(t,s),Za.set(t,l)}u(t).length!==0&&D.withoutNormalizing(t,()=>{for(var c of u(t))if(q.has(t,c)){var d=D.node(t,c),[p,y]=d;X.isElement(p)&&p.children.length===0&&t.normalizeNode(d,{operation:o})}for(var m=u(t),f=m.length,w=0;m.length!==0;){if(!t.shouldNormalize({dirtyPaths:m,iteration:w,initialDirtyPathsLength:f,operation:o}))return;var h=i(t);if(q.has(t,h)){var g=D.node(t,h);t.normalizeNode(g,{operation:o})}w++,m=u(t)}})}},R2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=b.parent(o),a=D.node(t,u);return a},N2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pathRefs(t);return s.delete(u),u.current=null,i}},a=D.pathRefs(t);return a.add(u),u},j2=e=>{var t=Kv.get(e);return t||(t=new Set,Kv.set(e,t)),t},I2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:u}=r;if(b.isPath(n)){if(u==="start"){var[,a]=q.first(t,n);n=a}else if(u==="end"){var[,i]=q.last(t,n);n=i}}return _.isRange(n)&&(u==="start"?n=_.start(n):u==="end"?n=_.end(n):n=b.common(n.anchor.path,n.focus.path)),ue.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},M2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pointRefs(t);return s.delete(u),u.current=null,i}},a=D.pointRefs(t);return a.add(u),u},$2=e=>{var t=qv.get(e);return t||(t=new Set,qv.set(e,t)),t},L2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(b.isPath(n)){var u;if(o==="end"){var[,a]=q.last(t,n);u=a}else{var[,i]=q.first(t,n);u=i}var s=q.get(t,u);if(!Z.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:u,offset:o==="end"?s.text.length:0}}if(_.isRange(n)){var[l,c]=_.edges(n);return o==="start"?l:c}return n};function z2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:u=!1,ignoreNonSelectable:a=!1}=t;if(!n)return;var i=D.range(e,n),[s,l]=_.edges(i),c=o?l:s,d=!1,p="",y=0,m=0,f=0;for(var[w,h]of D.nodes(e,{at:n,reverse:o,voids:u,ignoreNonSelectable:a})){if(X.isElement(w)){if(!u&&(e.isVoid(w)||e.isElementReadOnly(w))){yield D.start(e,h);continue}if(e.isInline(w))continue;if(D.hasInlines(e,w)){var g=b.isAncestor(h,l.path)?l:D.end(e,h),C=b.isAncestor(h,s.path)?s:D.start(e,h);p=D.string(e,{anchor:C,focus:g},{voids:u}),d=!0}}if(Z.isText(w)){var E=b.equals(h,c.path);for(E?(m=o?c.offset:w.text.length-c.offset,f=c.offset):(m=w.text.length,f=o?m:0),(E||d||r==="offset")&&(yield{path:h,offset:f},d=!1);;){if(y===0){if(p==="")break;y=B(p,r,o),p=Il(p,y,o)[1]}if(f=o?f-y:f+y,m=m-y,m<0){y=-m;break}y=0,yield{path:h,offset:f}}}}function B(x,A,S){return A==="character"?jl(x,S):A==="word"?Eb(x,S):A==="line"||A==="block"?x.length:1}}()}var V2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.before(t,a,{voids:o});if(i){var[,s]=D.first(t,[]),l=[i.path,s];if(b.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(u==null)if(b.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{reverse:!0,at:l,match:u,mode:r,voids:o});return d}}},W2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.rangeRefs(t);return s.delete(u),u.current=null,i}},a=D.rangeRefs(t);return a.add(u),u},U2=e=>{var t=Yv.get(e);return t||(t=new Set,Yv.set(e,t)),t},H2=(e,t,n)=>{if(_.isRange(t)&&!n)return t;var r=D.start(e,t),o=D.end(e,n||t);return{anchor:r,focus:o}};function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var q2=(e,t)=>{var{selection:n}=e;if(n){var r=(c,d)=>{if(!Z.isText(c))return!1;var[p,y]=D.parent(e,d);return!e.isVoid(p)||e.markableVoid(p)},o=_.isExpanded(n),u=!1;if(!o){var[a,i]=D.node(e,n);if(a&&r(a,i)){var[s]=D.parent(e,i);u=s&&e.markableVoid(s)}}if(o||u)R.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=K2({},D.marks(e)||{});delete l[t],e.marks=l,iu.get(e)||e.onChange()}}},Y2=(e,t)=>{Hv.set(e,t)},Q2=(e,t)=>D.point(e,t,{edge:"start"}),G2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,u=D.range(t,n),[a,i]=_.edges(u),s="";for(var[l,c]of D.nodes(t,{at:u,match:Z.isText,voids:o})){var d=l.text;b.equals(c,i.path)&&(d=d.slice(0,i.offset)),b.equals(c,a.path)&&(d=d.slice(a.offset)),s+=d}return s},X2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[u,a]=_.edges(n);if(u.offset!==0||a.offset!==0||_.isCollapsed(n)||b.hasPrevious(a.path))return n;var i=D.above(t,{at:a,match:m=>X.isElement(m)&&D.isBlock(t,m),voids:o}),s=i?i[1]:[],l=D.start(t,u),c={anchor:l,focus:a},d=!0;for(var[p,y]of D.nodes(t,{at:c,match:Z.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(p.text!==""||b.isBefore(y,s)){a={path:y,offset:p.text.length};break}}return{anchor:u,focus:a}},Z2=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},J2=(e,t,n)=>{var[r,o]=t;return X.isElement(r)&&D.isEmpty(e,r)||Z.isText(r)&&r.text===""&&o[o.length-1]!==0},ex=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var r,o,{reverse:u=!1,unit:a="character",distance:i=1,voids:s=!1}=n,{at:l=t.selection,hanging:c=!1}=n;if(l){var d=!1;if(_.isRange(l)&&_.isCollapsed(l)&&(d=!0,l=l.anchor),ue.isPoint(l)){var p=D.void(t,{at:l,mode:"highest"});if(!s&&p){var[,y]=p;l=y}else{var m={unit:a,distance:i},f=u?D.before(t,l,m)||D.start(t,[]):D.after(t,l,m)||D.end(t,[]);l={anchor:l,focus:f},c=!0}}if(b.isPath(l)){R.removeNodes(t,{at:l,voids:s});return}if(!_.isCollapsed(l)){if(!c){var[,w]=_.edges(l),h=D.end(t,[]);ue.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=_.edges(l),E=D.above(t,{match:ae=>X.isElement(ae)&&D.isBlock(t,ae),at:g,voids:s}),B=D.above(t,{match:ae=>X.isElement(ae)&&D.isBlock(t,ae),at:C,voids:s}),x=E&&B&&!b.equals(E[1],B[1]),A=b.equals(g.path,C.path),S=s?null:(r=D.void(t,{at:g,mode:"highest"}))!==null&&r!==void 0?r:D.elementReadOnly(t,{at:g,mode:"highest"}),N=s?null:(o=D.void(t,{at:C,mode:"highest"}))!==null&&o!==void 0?o:D.elementReadOnly(t,{at:C,mode:"highest"});if(S){var O=D.before(t,g);O&&E&&b.isAncestor(E[1],O.path)&&(g=O)}if(N){var V=D.after(t,C);V&&B&&b.isAncestor(B[1],V.path)&&(C=V)}var P=[],L;for(var j of D.nodes(t,{at:l,voids:s})){var[z,G]=j;L&&b.compare(G,L)===0||(!s&&X.isElement(z)&&(D.isVoid(t,z)||D.isElementReadOnly(t,z))||!b.isCommon(G,g.path)&&!b.isCommon(G,C.path))&&(P.push(j),L=G)}var T=Array.from(P,ae=>{var[,me]=ae;return D.pathRef(t,me)}),I=D.pointRef(t,g),K=D.pointRef(t,C),Q="";if(!A&&!S){var ne=I.current,[te]=D.leaf(t,ne),{path:ye}=ne,{offset:fe}=g,F=te.text.slice(fe);F.length>0&&(t.apply({type:"remove_text",path:ye,offset:fe,text:F}),Q=F)}if(T.reverse().map(ae=>ae.unref()).filter(ae=>ae!==null).forEach(ae=>R.removeNodes(t,{at:ae,voids:s})),!N){var W=K.current,[U]=D.leaf(t,W),{path:Y}=W,ie=A?g.offset:0,ee=U.text.slice(ie,C.offset);ee.length>0&&(t.apply({type:"remove_text",path:Y,offset:ie,text:ee}),Q=ee)}!A&&x&&K.current&&I.current&&R.mergeNodes(t,{at:K.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Q.length>1&&Q.match(/[\u0E00-\u0E7F]+/)&&R.insertText(t,Q.slice(0,Q.length-i));var he=I.unref(),pe=K.unref(),se=u?he||pe:pe||he;n.at==null&&se&&R.select(t,se)}}})},tx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1}=r,{at:a=Nl(t),batchDirty:i=!0}=r;if(n.length){if(_.isRange(a))if(o||(a=D.unhangRange(t,a,{voids:u})),_.isCollapsed(a))a=a.anchor;else{var[,s]=_.edges(a);if(!u&&D.void(t,{at:s}))return;var l=D.pointRef(t,s);R.delete(t,{at:a}),a=l.unref()}else b.isPath(a)&&(a=D.start(t,a));if(!(!u&&D.void(t,{at:a}))){var c=D.above(t,{at:a,match:F=>X.isElement(F)&&D.isInline(t,F),mode:"highest",voids:u});if(c){var[,d]=c;if(D.isEnd(t,a,d)){var p=D.after(t,d);a=p}else if(D.isStart(t,a,d)){var y=D.before(t,d);a=y}}var m=D.above(t,{match:F=>X.isElement(F)&&D.isBlock(t,F),at:a,voids:u}),[,f]=m,w=D.isStart(t,a,f),h=D.isEnd(t,a,f),g=w&&h,C=!w||w&&h,E=!h,[,B]=q.first({children:n},[]),[,x]=q.last({children:n},[]),A=[],S=F=>{var[W,U]=F,Y=U.length===0;return Y?!1:g?!0:!(C&&b.isAncestor(U,B)&&X.isElement(W)&&!t.isVoid(W)&&!t.isInline(W)||E&&b.isAncestor(U,x)&&X.isElement(W)&&!t.isVoid(W)&&!t.isInline(W))};for(var N of q.nodes({children:n},{pass:S}))S(N)&&A.push(N);var O=[],V=[],P=[],L=!0,j=!1;for(var[z]of A)X.isElement(z)&&!t.isInline(z)?(L=!1,j=!0,V.push(z)):L?O.push(z):P.push(z);var[G]=D.nodes(t,{at:a,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u}),[,T]=G,I=D.isStart(t,a,T),K=D.isEnd(t,a,T),Q=D.pathRef(t,h&&!P.length?b.next(f):f),ne=D.pathRef(t,K?b.next(T):T);R.splitNodes(t,{at:a,match:F=>j?X.isElement(F)&&D.isBlock(t,F):Z.isText(F)||D.isInline(t,F),mode:j?"lowest":"highest",always:j&&(!w||O.length>0)&&(!h||P.length>0),voids:u});var te=D.pathRef(t,!I||I&&K?b.next(T):T);if(R.insertNodes(t,O,{at:te.current,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u,batchDirty:i}),g&&!O.length&&V.length&&!P.length&&R.delete(t,{at:f,voids:u}),R.insertNodes(t,V,{at:Q.current,match:F=>X.isElement(F)&&D.isBlock(t,F),mode:"lowest",voids:u,batchDirty:i}),R.insertNodes(t,P,{at:ne.current,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u,batchDirty:i}),!r.at){var ye;if(P.length>0&&ne.current?ye=b.previous(ne.current):V.length>0&&Q.current?ye=b.previous(Q.current):te.current&&(ye=b.previous(te.current)),ye){var fe=D.end(t,ye);R.select(t,fe)}}te.unref(),Q.unref(),ne.unref()}}})},nx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")R.select(t,o.anchor);else if(r==="focus")R.select(t,o.focus);else if(r==="start"){var[u]=_.edges(o);R.select(t,u)}else if(r==="end"){var[,a]=_.edges(o);R.select(t,a)}}else return},rx=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},ox=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:u="character",reverse:a=!1}=n,{edge:i=null}=n;if(r){i==="start"&&(i=_.isBackward(r)?"focus":"anchor"),i==="end"&&(i=_.isBackward(r)?"anchor":"focus");var{anchor:s,focus:l}=r,c={distance:o,unit:u,ignoreNonSelectable:!0},d={};if(i==null||i==="anchor"){var p=a?D.before(t,s,c):D.after(t,s,c);p&&(d.anchor=p)}if(i==null||i==="focus"){var y=a?D.before(t,l,c):D.after(t,l,c);y&&(d.focus=y)}R.setSelection(t,d)}},ux=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){R.setSelection(e,t);return}if(!_.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Le.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ax=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:u="both"}=r;if(o){u==="start"&&(u=_.isBackward(o)?"focus":"anchor"),u==="end"&&(u=_.isBackward(o)?"anchor":"focus");var{anchor:a,focus:i}=o,s=u==="anchor"?a:i;R.setSelection(t,{[u==="anchor"?"anchor":"focus"]:Eh(Eh({},s),n)})}},ix=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ue.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ue.equals(t.focus,n.focus)||u!=="anchor"&&u!=="focus"&&t[u]!==n[u])&&(r[u]=n[u],o[u]=t[u]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},sx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1,mode:a="lowest",batchDirty:i=!0}=r,{at:s,match:l,select:c}=r;if(q.isNode(n)&&(n=[n]),n.length!==0){var[d]=n;if(s||(s=Nl(t),c!==!1&&(c=!0)),c==null&&(c=!1),_.isRange(s))if(o||(s=D.unhangRange(t,s,{voids:u})),_.isCollapsed(s))s=s.anchor;else{var[,p]=_.edges(s),y=D.pointRef(t,p);R.delete(t,{at:s}),s=y.unref()}if(ue.isPoint(s)){l==null&&(Z.isText(d)?l=O=>Z.isText(O):t.isInline(d)?l=O=>Z.isText(O)||D.isInline(t,O):l=O=>X.isElement(O)&&D.isBlock(t,O));var[m]=D.nodes(t,{at:s.path,match:l,mode:a,voids:u});if(m){var[,f]=m,w=D.pathRef(t,f),h=D.isEnd(t,s,f);R.splitNodes(t,{at:s,match:l,mode:a,voids:u});var g=w.unref();s=h?b.next(g):g}else return}var C=b.parent(s),E=s[s.length-1];if(!(!u&&D.void(t,{at:C}))){if(i){var B=[],x=b.levels(C);Ub(t,()=>{var O=function(){var L=C.concat(E);E++;var j={type:"insert_node",path:L,node:V};t.apply(j),s=b.next(s),B.push(j),Z.isText?x.push(...Array.from(q.nodes(V),z=>{var[,G]=z;return L.concat(G)})):x.push(L)};for(var V of n)O()},()=>{sh(t,x,O=>{var V=O;for(var P of B)if(b.operationCanTransformPath(P)&&(V=b.transform(V,P),!V))return null;return V})})}else for(var A of n){var S=C.concat(E);E++,t.apply({type:"insert_node",path:S,node:A}),s=b.next(s)}if(s=b.previous(s),c){var N=D.end(t,s);N&&R.select(t,N)}}}})},lx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:u=!1}=n,{match:a}=n;if(a==null&&(a=b.isPath(r)?no(t,r):E=>X.isElement(E)&&D.isBlock(t,E)),!!r){var i=D.nodes(t,{at:r,match:a,mode:o,voids:u}),s=Array.from(i,E=>{var[,B]=E;return D.pathRef(t,B)});for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=D.node(t,b.parent(c)),[p,y]=d,m=c[c.length-1],{length:f}=p.children;if(f===1){var w=b.next(y);R.moveNodes(t,{at:c,to:w,voids:u}),R.removeNodes(t,{at:y,voids:u})}else if(m===0)R.moveNodes(t,{at:c,to:y,voids:u});else if(m===f-1){var h=b.next(y);R.moveNodes(t,{at:c,to:h,voids:u})}else{var g=b.next(c),C=b.next(y);R.splitNodes(t,{at:g,voids:u}),R.moveNodes(t,{at:c,to:C,voids:u})}}}})},cx=["text"],fx=["children"],Bh=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?Bh(e,n.children[0]):!1}else return!D.isEditor(t)},dx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:u=!1,voids:a=!1,mode:i="lowest"}=n;if(o){if(r==null)if(b.isPath(o)){var[s]=D.parent(t,o);r=O=>s.children.includes(O)}else r=O=>X.isElement(O)&&D.isBlock(t,O);if(!u&&_.isRange(o)&&(o=D.unhangRange(t,o,{voids:a})),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var[,l]=_.edges(o),c=D.pointRef(t,l);R.delete(t,{at:o}),o=c.unref(),n.at==null&&R.select(t,o)}var[d]=D.nodes(t,{at:o,match:r,voids:a,mode:i}),p=D.previous(t,{at:o,match:r,voids:a,mode:i});if(!(!d||!p)){var[y,m]=d,[f,w]=p;if(!(m.length===0||w.length===0)){var h=b.next(w),g=b.common(m,w),C=b.isSibling(m,w),E=Array.from(D.levels(t,{at:m}),O=>{var[V]=O;return V}).slice(g.length).slice(0,-1),B=D.above(t,{at:m,mode:"highest",match:O=>E.includes(O)&&Bh(t,O)}),x=B&&D.pathRef(t,B[1]),A,S;if(Z.isText(y)&&Z.isText(f)){var N=mn(y,cx);S=f.text.length,A=N}else if(X.isElement(y)&&X.isElement(f)){var N=mn(y,fx);S=f.children.length,A=N}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(Le.stringify(y)," ").concat(Le.stringify(f)));C||R.moveNodes(t,{at:m,to:h,voids:a}),x&&R.removeNodes(t,{at:x.current,voids:a}),D.shouldMergeNodesRemovePrevNode(t,p,d)?R.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:S,properties:A}),x&&x.unref()}}}})},px=(e,t)=>{D.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:u=!1}=t,{match:a}=t;if(r){a==null&&(a=b.isPath(r)?no(e,r):y=>X.isElement(y)&&D.isBlock(e,y));var i=D.pathRef(e,n),s=D.nodes(e,{at:r,match:a,mode:o,voids:u}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(e,m)});for(var c of l){var d=c.unref(),p=i.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:p}),i.current&&b.isSibling(p,d)&&b.isAfter(p,d)&&(i.current=b.next(i.current))}i.unref()}})},vx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:u="lowest"}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=b.isPath(a)?no(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),!r&&_.isRange(a)&&(a=D.unhangRange(t,a,{voids:o}));var s=D.nodes(t,{at:a,match:i,mode:u,voids:o}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(t,m)});for(var c of l){var d=c.unref();if(d){var[p]=D.node(t,d);t.apply({type:"remove_node",path:d,node:p})}}}})},hx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:o,at:u=t.selection,compare:a,merge:i}=r,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:d=!1}=r;if(u){if(o==null&&(o=b.isPath(u)?no(t,u):S=>X.isElement(S)&&D.isBlock(t,S)),!s&&_.isRange(u)&&(u=D.unhangRange(t,u,{voids:d})),c&&_.isRange(u)){if(_.isCollapsed(u)&&D.leaf(t,u.anchor)[0].text.length>0)return;var p=D.rangeRef(t,u,{affinity:"inward"}),[y,m]=_.edges(u),f=l==="lowest"?"lowest":"highest",w=D.isEnd(t,m,m.path);R.splitNodes(t,{at:m,match:o,mode:f,voids:d,always:!w});var h=D.isStart(t,y,y.path);R.splitNodes(t,{at:y,match:o,mode:f,voids:d,always:!h}),u=p.unref(),r.at==null&&R.select(t,u)}a||(a=(S,N)=>S!==N);for(var[g,C]of D.nodes(t,{at:u,match:o,mode:l,voids:d})){var E={},B={};if(C.length!==0){var x=!1;for(var A in n)A==="children"||A==="text"||a(n[A],g[A])&&(x=!0,g.hasOwnProperty(A)&&(E[A]=g[A]),i?n[A]!=null&&(B[A]=i(g[A],n[A])):n[A]!=null&&(B[A]=n[A]));x&&t.apply({type:"set_node",path:C,properties:E,newProperties:B})}}}})},mx=(e,t)=>{if(_.isCollapsed(t))return t.anchor;var[,n]=_.edges(t),r=D.pointRef(e,n);return R.delete(e,{at:t}),r.unref()},gx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection,height:i=0,always:s=!1}=n;if(u==null&&(u=K=>X.isElement(K)&&D.isBlock(t,K)),_.isRange(a)&&(a=mx(t,a)),b.isPath(a)){var l=a,c=D.point(t,l),[d]=D.parent(t,l);u=K=>K===d,i=c.path.length-l.length+1,a=c,s=!0}if(a){var p=D.pointRef(t,a,{affinity:"backward"}),y;try{var[m]=D.nodes(t,{at:a,match:u,mode:r,voids:o});if(!m)return;var f=D.void(t,{at:a,mode:"highest"}),w=0;if(!o&&f){var[h,g]=f;if(X.isElement(h)&&t.isInline(h)){var C=D.after(t,g);if(!C){var E={text:""},B=b.next(g);R.insertNodes(t,E,{at:B,voids:o}),C=D.point(t,B)}a=C,s=!0}var x=a.path.length-g.length;i=x+1,s=!0}y=D.pointRef(t,a);var A=a.path.length-i,[,S]=m,N=a.path.slice(0,A),O=i===0?a.offset:a.path[A]+w;for(var[V,P]of D.levels(t,{at:N,reverse:!0,voids:o})){var L=!1;if(P.length<S.length||P.length===0||!o&&X.isElement(V)&&D.isVoid(t,V))break;var j=p.current,z=D.isEnd(t,j,P);if(s||!p||!D.isEdge(t,j,P)){L=!0;var G=q.extractProps(V);t.apply({type:"split_node",path:P,position:O,properties:G})}O=P[P.length-1]+(L||z?1:0)}if(n.at==null){var T=y.current||D.end(t,[]);R.select(t,T)}}finally{var I;p.unref(),(I=y)===null||I===void 0||I.unref()}}})},yx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var u of n)o[u]=null;R.setNodes(t,o,r)},Dx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:u=!1}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=b.isPath(a)?no(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),b.isPath(a)&&(a=D.range(t,a));var s=_.isRange(a)?D.rangeRef(t,a):null,l=D.nodes(t,{at:a,match:i,mode:r,voids:u}),c=Array.from(l,y=>{var[,m]=y;return D.pathRef(t,m)}).reverse(),d=function(){var m=p.unref(),[f]=D.node(t,m),w=D.range(t,m);o&&s&&(w=_.intersection(s.current,w)),R.liftNodes(t,{at:w,match:h=>X.isAncestor(f)&&f.children.includes(h),voids:u})};for(var p of c)d();s&&s.unref()}})};function Ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Cx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:o="lowest",split:u=!1,voids:a=!1}=r,{match:i,at:s=t.selection}=r;if(s){if(i==null&&(b.isPath(s)?i=no(t,s):t.isInline(n)?i=w=>X.isElement(w)&&D.isInline(t,w)||Z.isText(w):i=w=>X.isElement(w)&&D.isBlock(t,w)),u&&_.isRange(s)){var[l,c]=_.edges(s),d=D.rangeRef(t,s,{affinity:"inward"});R.splitNodes(t,{at:c,match:i,voids:a}),R.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&R.select(t,s)}var p=Array.from(D.nodes(t,{at:s,match:t.isInline(n)?w=>X.isElement(w)&&D.isBlock(t,w):w=>D.isEditor(w),mode:"lowest",voids:a})),y=function(){var h=_.isRange(s)?_.intersection(s,D.range(t,f)):s;if(!h)return 0;var g=Array.from(D.nodes(t,{at:h,match:i,mode:o,voids:a}));if(g.length>0){var[C]=g,E=g[g.length-1],[,B]=C,[,x]=E;if(B.length===0&&x.length===0)return 0;var A=b.equals(B,x)?b.parent(B):b.common(B,x),S=D.range(t,B,x),N=D.node(t,A),[O]=N,V=A.length+1,P=b.next(x.slice(0,V)),L=bh(bh({},n),{},{children:[]});R.insertNodes(t,L,{at:P,voids:a}),R.moveNodes(t,{at:S,match:j=>X.isAncestor(O)&&O.children.includes(j),to:P.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},wx=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Hb(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Xb(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e2(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t2(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return n2(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qb(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p2(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return h2(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tx(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return v2(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return g2(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Yb(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return q2(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Kb(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Qb(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Gb(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Zb(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jb(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nx(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ex(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rx(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r2(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return o2(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u2(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a2(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i2(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return O2(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l2(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return c2(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f2(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return d2(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sx(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return y2(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return D2(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return C2(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return w2(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return E2(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return B2(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return A2(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b2(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return x2(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lx(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dx(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ox(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return px(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _2(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P2(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k2(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return T2(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return R2(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return I2(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N2(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return j2(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return L2(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return M2(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $2(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return z2(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return V2(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return H2(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return W2(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return U2(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vx(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ux(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hx(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Y2(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ax(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ix(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gx(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Q2(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G2(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return X2(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yx(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Dx(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s2(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Z2(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Cx(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return J2(e,...r)}};return e};function cu(e){const t=D.marks(za.value);return t?t[e]===!0:!1}function Ex(e){cu(e)?D.removeMark(za.value,e):D.addMark(za.value,e,!0)}const Bx=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=IA().pressed,r=NA(t),o=jA(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=_v(),{floatingStyles:s}=yA(u,t,{placement:"top",middleware:[ME(6),$E(),LE()]}),l=v.ref(!1),c=v.computed(()=>l.value&&(r.value||o.value||!n.value&&a.value)),d=v.ref(!1),p=v.ref(!1),y=v.ref(!1),m=v.ref(!1),{trigger:f}=OA(c,()=>{d.value=cu("bold"),p.value=cu("del"),y.value=cu("italic"),m.value=cu("underline")});function w(h){Ex(h),f()}return Xe(Va,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=mA,E=eA,B=dA,x=sA,A=oA;return v.unref(c)?(v.openBlock(),v.createElementBlock("div",{key:0,ref_key:"menuRef",ref:t,style:v.normalizeStyle(v.unref(s)),class:"docx-menu",flex:"~ items-center gap-2",text:"lg black","select-none":"",b:"1 solid gray-3 rounded-1.5","bg-white":"",el:"6 op-36",p:"y2 x3",onMousedown:g[4]||(g[4]=v.withModifiers(()=>{},["prevent","stop"])),onMouseup:g[5]||(g[5]=v.withModifiers(()=>{},["prevent","stop"])),onClick:g[6]||(g[6]=v.withModifiers(()=>{},["prevent","stop"])),onDblclick:g[7]||(g[7]=v.withModifiers(()=>{},["prevent","stop"])),onContextmenu:g[8]||(g[8]=v.withModifiers(()=>{},["prevent","stop"]))},[v.createCommentVNode(" 加粗 "),v.createVNode(E,{placement:"top",content:"粗体<br>Markdown: **文本** 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(d)}]),onClick:g[0]||(g[0]=S=>w("bold"))},[v.createVNode(C,{class:"size-5.5"})],2)]),_:1}),v.createCommentVNode(" 删除线 "),v.createVNode(E,{placement:"top",content:"删除线<br>Markdown: ~~文本~~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(p)}]),onClick:g[1]||(g[1]=S=>w("del"))},[v.createVNode(B,{class:"size-4.7 relative top-.03"})],2)]),_:1}),v.createCommentVNode(" 斜体 "),v.createVNode(E,{placement:"top",content:"斜体<br>Markdown: *文本* 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(y)}]),onClick:g[2]||(g[2]=S=>w("italic"))},[v.createVNode(x,{class:"size-5 relative top-.1"})],2)]),_:1}),v.createCommentVNode(" 下划线 "),v.createVNode(E,{placement:"top",content:"下划线<br>Markdown: ~文本~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(m)}]),onClick:g[3]||(g[3]=S=>w("underline"))},[v.createVNode(A,{class:"size-6 relative top-.1"})],2)]),_:1})],36)):v.createCommentVNode("v-if",!0)}}}),Ax=":host-context(.dark) .docx-menu[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.docx-menu-item[data-v-f99fe62b]{display:flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;cursor:pointer;border-radius:.25rem}.docx-menu-item[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.docx-menu-item.active[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity));--un-bg-opacity:.6;--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.docx-menu-item.active[data-v-f99fe62b]:hover{--un-bg-opacity:.9}",bx='[data-v-f99fe62b],[data-v-f99fe62b]:before,[data-v-f99fe62b]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-f99fe62b]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.relative[data-v-f99fe62b]{position:relative}.top-\\.03[data-v-f99fe62b]{top:.0075rem}.top-\\.1[data-v-f99fe62b]{top:.025rem}.flex[data-v-f99fe62b],[flex~="~"][data-v-f99fe62b]{display:flex}.cursor-pointer[data-v-f99fe62b]{cursor:pointer}.select-none[data-v-f99fe62b],[select-none=""][data-v-f99fe62b]{-webkit-user-select:none;user-select:none}.flex-items-center[data-v-f99fe62b],.items-center[data-v-f99fe62b],[flex~=items-center][data-v-f99fe62b]{align-items:center}.gap-2[data-v-f99fe62b],[flex~=gap-2][data-v-f99fe62b]{gap:.5rem}.flex-justify-center[data-v-f99fe62b]{justify-content:center}[b~="1"][data-v-f99fe62b]{border-width:1px}[b~=gray-3][data-v-f99fe62b]{--un-border-opacity:1;border-color:rgb(209 213 219 / var(--un-border-opacity))}.rounded[data-v-f99fe62b]{border-radius:.25rem}.rounded-1\\.5[data-v-f99fe62b],[b~="rounded-1.5"][data-v-f99fe62b]{border-radius:.375rem}[b~=solid][data-v-f99fe62b]{border-style:solid}.bg-blue-2[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity))}.bg-white[data-v-f99fe62b],[bg-white=""][data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.hover\\:bg-gray-2[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-op-60[data-v-f99fe62b]{--un-bg-opacity:.6}.hover\\:bg-op-90[data-v-f99fe62b]:hover{--un-bg-opacity:.9}[p~=x3][data-v-f99fe62b]{padding-left:.75rem;padding-right:.75rem}[p~=y2][data-v-f99fe62b]{padding-top:.5rem;padding-bottom:.5rem}[text~=lg][data-v-f99fe62b]{font-size:1.125rem;line-height:1.75rem}[text~=black][data-v-f99fe62b]{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.c-blue-6[data-v-f99fe62b]{--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.italic[data-v-f99fe62b]{font-style:italic}.underline[data-v-f99fe62b]{text-decoration-line:underline}.op-36[data-v-f99fe62b]{opacity:.36}.filter-invert[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.size-4\\.7[data-v-f99fe62b]{width:1.175rem;height:1.175rem}.size-5[data-v-f99fe62b]{width:1.25rem;height:1.25rem}.size-5\\.5[data-v-f99fe62b]{width:1.375rem;height:1.375rem}.size-6[data-v-f99fe62b]{width:1.5rem;height:1.5rem}[el~="6"][data-v-f99fe62b]{box-shadow:0 3px 5px -1px rgba(0,0,0,calc(.2 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 6px 10px rgba(0,0,0,calc(.14 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 1px 18px rgba(0,0,0,calc(.12 * var(--une-el-opacity, var(--un-shadow-opacity, 1))))}[el~=op-36][data-v-f99fe62b]{--une-el-opacity:.36}',fu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xx=fu(Bx,[["styles",[Ax,bx]],["__scopeId","data-v-f99fe62b"]]);var xh={exports:{}},le={};/**
|
10
|
+
*/function kv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return kv(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(kv(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Tv=Symbol.for("immer-nothing"),Rv=Symbol.for("immer-draftable"),wt=Symbol.for("immer-state");function Ut(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var to=Object.getPrototypeOf;function Dr(e){return!!e&&!!e[wt]}function Cr(e){var t;return e?Nv(e)||Array.isArray(e)||!!e[Rv]||!!((t=e.constructor)!=null&&t[Rv])||qa(e)||Ya(e):!1}var KA=Object.prototype.constructor.toString();function Nv(e){if(!e||typeof e!="object")return!1;const t=to(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===KA}function Ha(e,t){Ka(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ka(e){const t=e[wt];return t?t.type_:Array.isArray(e)?1:qa(e)?2:Ya(e)?3:0}function bl(e,t){return Ka(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jv(e,t,n){const r=Ka(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function qA(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function qa(e){return e instanceof Map}function Ya(e){return e instanceof Set}function wr(e){return e.copy_||e.base_}function xl(e,t){if(qa(e))return new Map(e);if(Ya(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Nv(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[wt];let o=Reflect.ownKeys(r);for(let u=0;u<o.length;u++){const a=o[u],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(to(e),r)}else{const r=to(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function Fl(e,t=!1){return Qa(e)||Dr(e)||!Cr(e)||(Ka(e)>1&&(e.set=e.add=e.clear=e.delete=YA),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Fl(r,!0))),e}function YA(){Ut(2)}function Qa(e){return Object.isFrozen(e)}var QA={};function Er(e){const t=QA[e];return t||Ut(0,e),t}var au;function Iv(){return au}function GA(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Mv(e,t){t&&(Er("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Sl(e){Ol(e),e.drafts_.forEach(XA),e.drafts_=null}function Ol(e){e===au&&(au=e.parent_)}function $v(e){return au=GA(au,e)}function XA(e){const t=e[wt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[wt].modified_&&(Sl(t),Ut(4)),Cr(e)&&(e=Ga(t,e),t.parent_||Xa(t,e)),t.patches_&&Er("Patches").generateReplacementPatches_(n[wt].base_,e,t.patches_,t.inversePatches_)):e=Ga(t,n,[]),Sl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Tv?e:void 0}function Ga(e,t,n){if(Qa(t))return t;const r=t[wt];if(!r)return Ha(t,(o,u)=>zv(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Xa(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let u=o,a=!1;r.type_===3&&(u=new Set(o),o.clear(),a=!0),Ha(u,(i,s)=>zv(e,r,o,i,s,n,a)),Xa(e,o,!1),n&&e.patches_&&Er("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function zv(e,t,n,r,o,u,a){if(Dr(o)){const i=u&&t&&t.type_!==3&&!bl(t.assigned_,r)?u.concat(r):void 0,s=Ga(e,o,i);if(jv(n,r,s),Dr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Cr(o)&&!Qa(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ga(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Xa(e,o)}}function Xa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Fl(t,n)}function ZA(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Iv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=_l;n&&(o=[r],u=iu);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var _l={get(e,t){if(t===wt)return e;const n=wr(e);if(!bl(n,t))return JA(e,n,t);const r=n[t];return e.finalized_||!Cr(r)?r:r===Pl(e.base_,t)?(Tl(e),e.copy_[t]=Rl(r,e)):r},has(e,t){return t in wr(e)},ownKeys(e){return Reflect.ownKeys(wr(e))},set(e,t,n){const r=Vv(wr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Pl(wr(e),t),u=o==null?void 0:o[wt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(qA(n,o)&&(n!==void 0||bl(e.base_,t)))return!0;Tl(e),kl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Pl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Tl(e),kl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ut(11)},getPrototypeOf(e){return to(e.base_)},setPrototypeOf(){Ut(12)}},iu={};Ha(_l,(e,t)=>{iu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),iu.deleteProperty=function(e,t){return iu.set.call(this,e,t,void 0)},iu.set=function(e,t,n){return _l.set.call(this,e[0],t,n,e[0])};function Pl(e,t){const n=e[wt];return(n?wr(n):e)[t]}function JA(e,t,n){var o;const r=Vv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Vv(e,t){if(!(t in e))return;let n=to(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=to(n)}}function kl(e){e.modified_||(e.modified_=!0,e.parent_&&kl(e.parent_))}function Tl(e){e.copy_||(e.copy_=xl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var eb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const a=this;return function(s=u,...l){return a.produce(s,c=>n.call(this,c,...l))}}typeof n!="function"&&Ut(6),r!==void 0&&typeof r!="function"&&Ut(7);let o;if(Cr(t)){const u=$v(this),a=Rl(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?Sl(u):Ol(u)}return Mv(u,r),Lv(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Tv&&(o=void 0),this.autoFreeze_&&Fl(o,!0),r){const u=[],a=[];Er("Patches").generateReplacementPatches_(t,o,u,a),r(u,a)}return o}else Ut(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...i)=>this.produceWithPatches(a,s=>t(s,...i));let r,o;return[this.produce(t,n,(a,i)=>{r=a,o=i}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Cr(e)||Ut(8),Dr(e)&&(e=tb(e));const t=$v(this),n=Rl(e,void 0);return n[wt].isManual_=!0,Ol(t),n}finishDraft(e,t){const n=e&&e[wt];(!n||!n.isManual_)&&Ut(9);const{scope_:r}=n;return Mv(r,t),Lv(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Er("Patches").applyPatches_;return Dr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Rl(e,t){const n=qa(e)?Er("MapSet").proxyMap_(e,t):Ya(e)?Er("MapSet").proxySet_(e,t):ZA(e,t);return(t?t.scope_:Iv()).drafts_.push(n),n}function tb(e){return Dr(e)||Ut(10,e),Wv(e)}function Wv(e){if(!Cr(e)||Qa(e))return e;const t=e[wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=xl(e,!0);return Ha(n,(r,o)=>{jv(n,r,Wv(o))}),t&&(t.finalized_=!1),n}var Et=new eb,Nl=Et.produce;Et.produceWithPatches.bind(Et),Et.setAutoFreeze.bind(Et),Et.setUseStrictShallowCopy.bind(Et),Et.applyPatches.bind(Et);var Uv=Et.createDraft.bind(Et),Hv=Et.finishDraft.bind(Et),nb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=b.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},rb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ue.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},ob={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=_.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Za=new WeakMap,Ja=new WeakMap,su=new WeakMap,Kv=new WeakMap,qv=new WeakMap,Yv=new WeakMap,Qv=new WeakMap,b={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=b.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],u=t[r];if(o!==u)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return b.equals(r,o)&&u>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return b.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return b.equals(r,o)&&u<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return b.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&b.compare(e,t)===0},isBefore(e,t){return b.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&b.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&b.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&b.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&b.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],u=t[t.length-1];return o!==u&&b.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!b.isAncestor(t,e)&&!b.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:u}=t;(b.equals(u,r)||b.endsBefore(u,r)||b.isAncestor(u,r))&&(r[u.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(b.equals(a,r)||b.isAncestor(a,r))return null;b.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:i,position:s}=t;b.equals(i,r)||b.endsBefore(i,r)?r[i.length-1]-=1:b.isAncestor(i,r)&&(r[i.length-1]-=1,r[i.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(b.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else b.endsBefore(l,r)?r[l.length-1]+=1:b.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break}case"move_node":{var{path:d,newPath:p}=t;if(b.equals(d,p))return r;if(b.isAncestor(d,r)||b.equals(d,r)){var y=p.slice();return b.endsBefore(d,p)&&d.length<p.length&&(y[d.length-1]-=1),y.concat(r.slice(d.length))}else b.isSibling(d,p)&&(b.isAncestor(p,r)||b.equals(p,r))?b.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:b.endsBefore(p,r)||b.equals(p,r)||b.isAncestor(p,r)?(b.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):b.endsBefore(d,r)&&(b.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1);break}}return r}};function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function ub(e,t){if(lu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ab(e){var t=ub(e,"string");return lu(t)==="symbol"?t:String(t)}function rt(e,t,n){return t=ab(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ib=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,u=q.parent(e,r),a=r[r.length-1];if(a>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(u.children.splice(a,0,o),t)for(var[i,s]of _.points(t))t[s]=ue.transform(i,n);break}case"insert_text":{var{path:l,offset:c,text:d}=n;if(d.length===0)break;var p=q.leaf(e,l),y=p.text.slice(0,c),m=p.text.slice(c);if(p.text=y+d+m,t)for(var[f,w]of _.points(t))t[w]=ue.transform(f,n);break}case"merge_node":{var{path:h}=n,g=q.get(e,h),C=b.previous(h),E=q.get(e,C),B=q.parent(e,h),x=h[h.length-1];if(Z.isText(g)&&Z.isText(E))E.text+=g.text;else if(!Z.isText(g)&&!Z.isText(E))E.children.push(...g.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h,"] to nodes of different interfaces: ").concat(Le.stringify(g)," ").concat(Le.stringify(E)));if(B.children.splice(x,1),t)for(var[A,S]of _.points(t))t[S]=ue.transform(A,n);break}case"move_node":{var{path:N,newPath:O}=n;if(b.isAncestor(N,O))throw new Error("Cannot move a path [".concat(N,"] to new path [").concat(O,"] because the destination is inside itself."));var W=q.get(e,N),P=q.parent(e,N),L=N[N.length-1];P.children.splice(L,1);var j=b.transform(N,n),z=q.get(e,b.parent(j)),G=j[j.length-1];if(z.children.splice(G,0,W),t)for(var[T,I]of _.points(t))t[I]=ue.transform(T,n);break}case"remove_node":{var{path:K}=n,Q=K[K.length-1],ne=q.parent(e,K);if(ne.children.splice(Q,1),t)for(var[te,ye]of _.points(t)){var fe=ue.transform(te,n);if(t!=null&&fe!=null)t[ye]=fe;else{var F=void 0,V=void 0;for(var[U,Y]of q.texts(e))if(b.compare(Y,K)===-1)F=[U,Y];else{V=[U,Y];break}var ie=!1;F&&V&&(b.equals(V[1],K)?ie=!b.hasPrevious(V[1]):ie=b.common(F[1],K).length<b.common(V[1],K).length),F&&!ie?(te.path=F[1],te.offset=F[0].text.length):V?(te.path=V[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ee,offset:he,text:pe}=n;if(pe.length===0)break;var se=q.leaf(e,ee),ae=se.text.slice(0,he),me=se.text.slice(he+pe.length);if(se.text=ae+me,t)for(var[Pe,ve]of _.points(t))t[ve]=ue.transform(Pe,n);break}case"set_node":{var{path:Qe,properties:yt,newProperties:je}=n;if(Qe.length===0)throw new Error("Cannot set properties on the root node!");var We=q.get(e,Qe);for(var we in je){if(we==="children"||we==="text")throw new Error('Cannot set the "'.concat(we,'" property of nodes!'));var nt=je[we];nt==null?delete We[we]:We[we]=nt}for(var Te in yt)je.hasOwnProperty(Te)||delete We[Te];break}case"set_selection":{var{newProperties:de}=n;if(de==null)t=de;else{if(t==null){if(!_.isRange(de))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Le.stringify(de)," when there is no current selection."));t=cu({},de)}for(var Dt in de){var dn=de[Dt];if(dn==null){if(Dt==="anchor"||Dt==="focus")throw new Error('Cannot remove the "'.concat(Dt,'" selection property'));delete t[Dt]}else t[Dt]=dn}}break}case"split_node":{var{path:Ge,position:pn,properties:Wr}=n;if(Ge.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Ge,"] because the root node cannot be split."));var _n=q.get(e,Ge),da=q.parent(e,Ge),Is=Ge[Ge.length-1],Nd;if(Z.isText(_n)){var hk=_n.text.slice(0,pn),mk=_n.text.slice(pn);_n.text=hk,Nd=cu(cu({},Wr),{},{text:mk})}else{var gk=_n.children.slice(0,pn),yk=_n.children.slice(pn);_n.children=gk,Nd=cu(cu({},Wr),{},{children:yk})}if(da.children.splice(Is+1,0,Nd),t)for(var[Dk,Ck]of _.points(t))t[Ck]=ue.transform(Dk,n);break}}return t},sb={transform(e,t){e.children=Uv(e.children);var n=e.selection&&Uv(e.selection);try{n=ib(e,n,t)}finally{e.children=Hv(e.children),n?e.selection=Dr(n)?Hv(n):n:e.selection=null}}},lb={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},cb={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Xv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!Xv(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var u=0;u<r.length;u++)if(r[u]!==o[u])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0};function fb(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function mn(e,t){if(e==null)return{};var n=fb(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var db=["anchor","focus"];function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zv(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return _.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=_.edges(e);return t},equals(e,t){return ue.equals(e.anchor,t.anchor)&&ue.equals(e.focus,t.focus)},includes(e,t){if(_.isRange(t)){if(_.includes(e,t.anchor)||_.includes(e,t.focus))return!0;var[n,r]=_.edges(e),[o,u]=_.edges(t);return ue.isBefore(n,o)&&ue.isAfter(r,u)}var[a,i]=_.edges(e),s=!1,l=!1;return ue.isPoint(t)?(s=ue.compare(t,a)>=0,l=ue.compare(t,i)<=0):(s=b.compare(t,a.path)>=0,l=b.compare(t,i.path)<=0),s&&l},intersection(e,t){var n=mn(e,db),[r,o]=_.edges(e),[u,a]=_.edges(t),i=ue.isBefore(r,u)?u:r,s=ue.isBefore(o,a)?o:a;return ue.isBefore(s,i)?null:pb({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ue.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ue.equals(t,n)},isExpanded(e){return!_.isCollapsed(e)},isForward(e){return!_.isBackward(e)},isRange(e){return Ue(e)&&ue.isPoint(e.anchor)&&ue.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=_.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Nl(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,u,a;if(o==="inward"){var i=_.isCollapsed(r);_.isForward(r)?(u="forward",a=i?u:"backward"):(u="backward",a=i?u:"forward")}else o==="outward"?_.isForward(r)?(u="backward",a="forward"):(u="forward",a="backward"):(u=o,a=o);var s=ue.transform(r.anchor,t,{affinity:u}),l=ue.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},Jv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:Jv,isElementList(e){return Array.isArray(e)&&e.every(t=>X.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Jv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},vb=["children"],hb=["text"],eh=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(Z.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Le.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of b.ancestors(t,n)){var o=q.ancestor(e,r),u=[o,r];yield u}}()},child(e,t){if(Z.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Le.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Le.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=q.ancestor(e,t),{children:u}=o,a=r?u.length-1:0;r?a>=0:a<u.length;){var i=q.child(o,a),s=t.concat(a);yield[i,s],a=r?a-1:a+1}}()},common(e,t,n){var r=b.common(t,n),o=q.get(e,r);return[o,r]},descendant(e,t){var n=q.get(e,t);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Le.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))r.length!==0&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))X.isElement(n)&&(yield[n,r])}()},extractProps(e){if(X.isAncestor(e)){var t=mn(e,vb);return t}else{var t=mn(e,hb);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(Z.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Z.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Le.stringify(e)));var n=Nl({children:e.children},r=>{var[o,u]=_.edges(t),a=q.nodes(r,{reverse:!0,pass:p=>{var[,y]=p;return!_.includes(t,y)}});for(var[,i]of a){if(!_.includes(t,i)){var s=q.parent(r,i),l=i[i.length-1];s.children.splice(l,1)}if(b.equals(i,u.path)){var c=q.leaf(r,i);c.text=c.text.slice(0,u.offset)}if(b.equals(i,o.path)){var d=q.leaf(r,i);d.text=d.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Z.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Le.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Z.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Z.isText(e)||X.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=eh.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return eh.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(Z.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=q.get(e,t);if(!Z.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Le.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of b.levels(t,n)){var o=q.get(e,r);yield[o,r]}}()},matches(e,t){return X.isElement(e)&&X.isElementProps(t)&&X.matches(e,t)||Z.isText(e)&&Z.isTextProps(t)&&Z.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:u}=t,a=new Set,i=[],s=e;!(u&&(r?b.isBefore(i,u):b.isAfter(i,u)));){if(a.has(s)||(yield[s,i]),!a.has(s)&&!Z.isText(s)&&s.children.length!==0&&(n==null||n([s,i])===!1)){a.add(s);var l=r?s.children.length-1:0;b.isAncestor(i,o)&&(l=o[i.length]),i=i.concat(l),s=q.get(e,i);continue}if(i.length===0)break;if(!r){var c=b.next(i);if(q.has(e,c)){i=c,s=q.get(e,i);continue}}if(r&&i[i.length-1]!==0){var d=b.previous(i);i=d,s=q.get(e,i);continue}i=b.parent(i),s=q.get(e,i),a.add(s)}}()},parent(e,t){var n=b.parent(t),r=q.get(e,n);if(Z.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Z.isText(e)?e.text:e.children.map(q.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))Z.isText(n)&&(yield[n,r])}()}};function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?th(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Mn={isNodeOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ue(e))return!1;switch(e.type){case"insert_node":return b.isPath(e.path)&&q.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&b.isPath(e.path);case"merge_node":return typeof e.position=="number"&&b.isPath(e.path)&&Ue(e.properties);case"move_node":return b.isPath(e.path)&&b.isPath(e.newPath);case"remove_node":return b.isPath(e.path)&&q.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&b.isPath(e.path);case"set_node":return b.isPath(e.path)&&Ue(e.properties)&&Ue(e.newProperties);case"set_selection":return e.properties===null&&_.isRange(e.newProperties)||e.newProperties===null&&_.isRange(e.properties)||Ue(e.properties)&&Ue(e.newProperties);case"split_node":return b.isPath(e.path)&&typeof e.position=="number"&&Ue(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Mn.isOperation(t))},isSelectionOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Ae(Ae({},e),{},{type:"remove_node"});case"insert_text":return Ae(Ae({},e),{},{type:"remove_text"});case"merge_node":return Ae(Ae({},e),{},{type:"split_node",path:b.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(b.equals(t,n))return e;if(b.isSibling(n,t))return Ae(Ae({},e),{},{path:t,newPath:n});var r=b.transform(n,e),o=b.transform(b.next(n),e);return Ae(Ae({},e),{},{path:r,newPath:o})}case"remove_node":return Ae(Ae({},e),{},{type:"insert_node"});case"remove_text":return Ae(Ae({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return Ae(Ae({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?Ae(Ae({},e),{},{properties:s,newProperties:null}):s==null?Ae(Ae({},e),{},{properties:null,newProperties:i}):Ae(Ae({},e),{},{properties:s,newProperties:i})}case"split_node":return Ae(Ae({},e),{},{type:"merge_node",path:b.next(e.path)})}}},nh=new WeakMap,mb=e=>{var t=nh.get(e);if(t!==void 0)return t;if(!Ue(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Ue(e.marks))&&(e.selection===null||_.isRange(e.selection))&&q.isNodeList(e.children)&&Mn.isOperationList(e.operations);return nh.set(e,n),n},D={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return mb(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},gb={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(b.isPath)}};function rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ue={compare(e,t){var n=b.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return ue.compare(e,t)===1},isBefore(e,t){return ue.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&b.equals(e.path,t.path)},isPoint(e){return Ue(e)&&typeof e.offset=="number"&&b.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Nl(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:u,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=b.transform(u,t,n);break}case"insert_text":{b.equals(t.path,u)&&(t.offset<a||t.offset===a&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{b.equals(t.path,u)&&(r.offset+=t.position),r.path=b.transform(u,t,n);break}case"remove_text":{b.equals(t.path,u)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(b.equals(t.path,u)||b.isAncestor(t.path,u))return null;r.path=b.transform(u,t,n);break}case"split_node":{if(b.equals(t.path,u)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=b.transform(u,t,oh(oh({},n),{},{affinity:"forward"})))}else r.path=b.transform(u,t,n);break}}})}},uh=void 0,Le={setScrubber(e){uh=e},stringify(e){return JSON.stringify(e,uh)}},yb=["text"],Db=["anchor","focus"];function ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ah(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=mn(u,yb);return a}return Xv(r?o(e):e,r?o(t):t)},isText(e){return Ue(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Z.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[gn({},e)];for(var r of t){var o=mn(r,Db),[u,a]=_.edges(r),i=[],s=0,l=u.offset,c=a.offset;for(var d of n){var{length:p}=d.text,y=s;if(s+=p,l<=y&&s<=c){Object.assign(d,o),i.push(d);continue}if(l!==c&&(l===s||c===y)||l>s||c<y||c===y&&y!==0){i.push(d);continue}var m=d,f=void 0,w=void 0;if(c<s){var h=c-y;w=gn(gn({},m),{},{text:m.text.slice(h)}),m=gn(gn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=gn(gn({},m),{},{text:m.text.slice(0,g)}),m=gn(gn({},m),{},{text:m.text.slice(g)})}Object.assign(m,o),f&&i.push(f),i.push(m),w&&i.push(w)}n=i}return n}},jl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],no=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},Il=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?bb(t):t,u=oe.None,a=oe.None,i=0,s=null,l=null;for(var c of o){var d=c.codePointAt(0);if(!d)break;var p=Ib(c,d);if([u,a]=r?[a,p]:[p,u],ro(u,oe.ZWJ)&&ro(a,oe.ExtPict)&&(r?s=ih(t.substring(0,i)):s=ih(t.substring(0,t.length-i)),!s)||ro(u,oe.RI)&&ro(a,oe.RI)&&(l!==null?l=!l:r?l=!0:l=Vb(t.substring(0,t.length-i)),!l)||u!==oe.None&&a!==oe.None&&$b(u,a))break;i+=c.length}return i||1},Cb=/\s/,wb=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Eb=/['\u2018\u2019]/,Bb=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=Il(t,n),[a,i]=Ml(t,u,n);if(Ab(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},Ml=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Ab=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(Cb.test(t))return!1;if(Eb.test(t)){var o=Il(n,r),[u,a]=Ml(n,o,r);if(e(u,a,r))return!0}return!wb.test(t)},bb=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(Fb(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(xb(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},xb=e=>e>=55296&&e<=56319,Fb=e=>e>=56320&&e<=57343,oe;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(oe||(oe={}));var Sb=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Ob=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,_b=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Pb=/^[\u1100-\u115F\uA960-\uA97C]$/,kb=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Tb=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Rb=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Nb=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,jb=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Ib=(e,t)=>{var n=oe.Any;return e.search(Sb)!==-1&&(n|=oe.Extend),t===8205&&(n|=oe.ZWJ),t>=127462&&t<=127487&&(n|=oe.RI),e.search(Ob)!==-1&&(n|=oe.Prepend),e.search(_b)!==-1&&(n|=oe.SpacingMark),e.search(Pb)!==-1&&(n|=oe.L),e.search(kb)!==-1&&(n|=oe.V),e.search(Tb)!==-1&&(n|=oe.T),e.search(Rb)!==-1&&(n|=oe.LV),e.search(Nb)!==-1&&(n|=oe.LVT),e.search(jb)!==-1&&(n|=oe.ExtPict),n};function ro(e,t){return(e&t)!==0}var Mb=[[oe.L,oe.L|oe.V|oe.LV|oe.LVT],[oe.LV|oe.V,oe.V|oe.T],[oe.LVT|oe.T,oe.T],[oe.Any,oe.Extend|oe.ZWJ],[oe.Any,oe.SpacingMark],[oe.Prepend,oe.Any],[oe.ZWJ,oe.ExtPict],[oe.RI,oe.RI]];function $b(e,t){return Mb.findIndex(n=>ro(e,n[0])&&ro(t,n[1]))===-1}var Lb=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,ih=e=>e.search(Lb)!==-1,zb=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Vb=e=>{var t=e.match(zb);if(t===null)return!1;var n=t[0].length/2;return n%2===1},Wb={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=jl(e)}=n;if(b.isPath(o)&&(o=D.range(e,o)),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var u=_.end(o);if(!r&&D.void(e,{at:u}))return;var a=_.start(o),i=D.pointRef(e,a),s=D.pointRef(e,u);R.delete(e,{at:o,voids:r});var l=i.unref(),c=s.unref();o=l||c,R.setSelection(e,{anchor:o,focus:o})}if(!(!r&&D.void(e,{at:o})||D.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}};function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var R=ei(ei(ei(ei({},sb),lb),cb),Wb),ti=new WeakMap,Ub=e=>ti.get(e)||!1,Hb=(e,t,n)=>{var r=ti.get(e)||!1;ti.set(e,!0);try{t(),n()}finally{ti.set(e,r)}};function lh(e,t,n){var r=Za.get(e)||[],o=Ja.get(e)||new Set,u,a,i=d=>{if(d){var p=d.join(",");a.has(p)||(a.add(p),u.push(d))}};if(n){u=[],a=new Set;for(var s of r){var l=n(s);i(l)}}else u=r,a=o;for(var c of t)i(c);Za.set(e,u),Ja.set(e,a)}var Kb=(e,t)=>{for(var n of D.pathRefs(e))nb.transform(n,t);for(var r of D.pointRefs(e))rb.transform(r,t);for(var o of D.rangeRefs(e))ob.transform(o,t);if(!Ub(e)){var u=b.operationCanTransformPath(t)?a=>b.transform(a,t):void 0;lh(e,e.getDirtyPaths(t),u)}R.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),su.get(e)||(su.set(e,!0),Promise.resolve().then(()=>{su.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},qb=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return b.levels(n)}case"insert_node":{var{node:r,path:o}=t,u=b.levels(o),a=Z.isText(r)?[]:Array.from(q.nodes(r),O=>{var[,W]=O;return o.concat(W)});return[...u,...a]}case"merge_node":{var{path:i}=t,s=b.ancestors(i),l=b.previous(i);return[...s,l]}case"move_node":{var{path:c,newPath:d}=t;if(b.equals(c,d))return[];var p=[],y=[];for(var m of b.ancestors(c)){var f=b.transform(m,t);p.push(f)}for(var w of b.ancestors(d)){var h=b.transform(w,t);y.push(h)}var g=y[y.length-1],C=d[d.length-1],E=g.concat(C);return[...p,...y,E]}case"remove_node":{var{path:B}=t,x=b.ancestors(B);return[...x]}case"split_node":{var{path:A}=t,S=b.levels(A),N=b.next(A);return[...S,N]}default:return[]}},Yb=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},Qb=(e,t)=>{var[n,r]=t;if(!Z.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};R.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var u=D.isEditor(n)?!1:X.isElement(n)&&(e.isInline(n)||n.children.length===0||Z.isText(n.children[0])||e.isInline(n.children[0])),a=0,i=0;i<n.children.length;i++,a++){var s=q.get(e,r);if(!Z.isText(s)){var l=s.children[a],c=s.children[a-1],d=i===n.children.length-1,p=Z.isText(l)||X.isElement(l)&&e.isInline(l);if(p!==u)R.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(X.isElement(l)){if(e.isInline(l)){if(c==null||!Z.isText(c)){var y={text:""};R.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};R.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else{if(!Z.isText(l)&&!("children"in l)){var f=l;f.children=[]}c!=null&&Z.isText(c)&&(Z.equals(l,c,{loose:!0})?(R.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(R.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(R.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}}},Gb=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Xb=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:u=t.selection,match:a}=n;if(u){var i=D.path(t,u),s=o==="lowest";for(var[l,c]of D.levels(t,{at:i,voids:r,match:a,reverse:s}))if(!Z.isText(l)){if(_.isRange(u)){if(b.isAncestor(c,u.anchor.path)&&b.isAncestor(c,u.focus.path))return[l,c]}else if(!b.equals(i,c))return[l,c]}}};function ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ch(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zb=(e,t,n)=>{var{selection:r}=e;if(r){var o=(d,p)=>{if(!Z.isText(d))return!1;var[y,m]=D.parent(e,p);return!e.isVoid(y)||e.markableVoid(y)},u=_.isExpanded(r),a=!1;if(!u){var[i,s]=D.node(e,r);if(i&&o(i,s)){var[l]=D.parent(e,s);a=l&&e.markableVoid(l)}}if(u||a)R.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var c=fh(fh({},D.marks(e)||{}),{},{[t]:n});e.marks=c,su.get(e)||e.onChange()}}};function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Jb=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.point(t,n,{edge:"end"}),u=D.end(t,[]),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,ph(ph({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var e2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.start(t,[]),u=D.point(t,n,{edge:"start"}),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,hh(hh({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},t2=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&R.delete(e,{unit:t,reverse:!0})},n2=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&R.delete(e,{unit:t})},r2=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&_.isExpanded(r)&&R.delete(t,{reverse:n==="backward"})},o2=(e,t)=>[D.start(e,t),D.end(e,t)];function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var u2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,gh(gh({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},a2=(e,t)=>D.point(e,t,{edge:"end"}),i2=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},s2=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var l2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Dh(Dh({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},c2=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),f2=(e,t)=>t.children.some(n=>Z.isText(n)||D.isInline(e,n)),d2=(e,t)=>q.has(e,t),p2=(e,t)=>t.children.every(n=>Z.isText(n)),v2=e=>{R.splitNodes(e,{always:!0})},h2=(e,t,n)=>{R.insertNodes(e,t,n)},m2=e=>{R.splitNodes(e,{always:!0})};function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function g2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var y2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:u}=t;if(o){if(u){var a=g2({text:n},u);R.insertNodes(t,a,{at:r.at,voids:r.voids})}else R.insertText(t,n,r);t.marks=null}},D2=(e,t)=>!e.isInline(t),C2=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),w2=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Z.isText(r)&&r.text===""&&!e.isVoid(t)},E2=(e,t,n)=>{var r=D.end(e,n);return ue.equals(t,r)},B2=e=>{var t=Kv.get(e);return t===void 0?!0:t},A2=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ue.equals(t,r)},b2=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},x2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.leaf(t,o);return[u,o]};function F2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:u}=t;if(u==null&&(u=()=>!0),!!n){var a=[],i=D.path(e,n);for(var[s,l]of q.levels(e,i))if(u(s,l)&&(a.push([s,l]),!o&&X.isElement(s)&&D.isVoid(e,s)))break;r&&a.reverse(),yield*a}}()}var S2=["text"],O2=["text"],_2=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:o,focus:u}=r;if(n)return n;if(_.isExpanded(r)){var a=D.isEnd(t,o,o.path);if(a){var i=D.after(t,o);i&&(o=i)}var[s]=D.nodes(t,{match:Z.isText,at:{anchor:o,focus:u}});if(s){var[l]=s,c=mn(l,S2);return c}else return{}}var{path:d}=o,[p]=D.leaf(t,d);if(o.offset===0){var y=D.previous(t,{at:d,match:Z.isText}),m=D.above(t,{match:E=>X.isElement(E)&&D.isVoid(t,E)&&t.markableVoid(E)});if(!m){var f=D.above(t,{match:E=>X.isElement(E)&&D.isBlock(t,E)});if(y&&f){var[w,h]=y,[,g]=f;b.isAncestor(g,h)&&(p=w)}}}var C=mn(p,O2);return C},P2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.after(t,a,{voids:o});if(i){var[,s]=D.last(t,[]),l=[i.path,s];if(b.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(u==null)if(b.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{at:l,match:u,mode:r,voids:o});return d}}},k2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.get(t,o);return[u,o]};function T2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:u=!1,voids:a=!1,ignoreNonSelectable:i=!1}=t,{match:s}=t;if(s||(s=()=>!0),!!n){var l,c;if(gb.isSpan(n))l=n[0],c=n[1];else{var d=D.path(e,n,{edge:"start"}),p=D.path(e,n,{edge:"end"});l=u?p:d,c=u?d:p}var y=q.nodes(e,{reverse:u,from:l,to:c,pass:E=>{var[B]=E;return X.isElement(B)?!!(!a&&(D.isVoid(e,B)||D.isElementReadOnly(e,B))||i&&!D.isSelectable(e,B)):!1}}),m=[],f;for(var[w,h]of y)if(!(i&&X.isElement(w)&&!D.isSelectable(e,w))){var g=f&&b.compare(h,f[1])===0;if(!(r==="highest"&&g)){if(!s(w,h)){if(o&&!g&&Z.isText(w))return;continue}if(r==="lowest"&&g){f=[w,h];continue}var C=r==="lowest"?f:[w,h];C&&(o?m.push(C):yield C),f=[w,h]}}r==="lowest"&&f&&(o?m.push(f):yield f),o&&(yield*m)}}()}var R2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=c=>Za.get(c)||[],a=c=>Ja.get(c)||new Set,i=c=>{var d=u(c).pop(),p=d.join(",");return a(c).delete(p),d};if(D.isNormalizing(t)){if(r){var s=Array.from(q.nodes(t),c=>{var[,d]=c;return d}),l=new Set(s.map(c=>c.join(",")));Za.set(t,s),Ja.set(t,l)}u(t).length!==0&&D.withoutNormalizing(t,()=>{for(var c of u(t))if(q.has(t,c)){var d=D.node(t,c),[p,y]=d;X.isElement(p)&&p.children.length===0&&t.normalizeNode(d,{operation:o})}for(var m=u(t),f=m.length,w=0;m.length!==0;){if(!t.shouldNormalize({dirtyPaths:m,iteration:w,initialDirtyPathsLength:f,operation:o}))return;var h=i(t);if(q.has(t,h)){var g=D.node(t,h);t.normalizeNode(g,{operation:o})}w++,m=u(t)}})}},N2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=b.parent(o),a=D.node(t,u);return a},j2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pathRefs(t);return s.delete(u),u.current=null,i}},a=D.pathRefs(t);return a.add(u),u},I2=e=>{var t=qv.get(e);return t||(t=new Set,qv.set(e,t)),t},M2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:u}=r;if(b.isPath(n)){if(u==="start"){var[,a]=q.first(t,n);n=a}else if(u==="end"){var[,i]=q.last(t,n);n=i}}return _.isRange(n)&&(u==="start"?n=_.start(n):u==="end"?n=_.end(n):n=b.common(n.anchor.path,n.focus.path)),ue.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},$2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pointRefs(t);return s.delete(u),u.current=null,i}},a=D.pointRefs(t);return a.add(u),u},L2=e=>{var t=Yv.get(e);return t||(t=new Set,Yv.set(e,t)),t},z2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(b.isPath(n)){var u;if(o==="end"){var[,a]=q.last(t,n);u=a}else{var[,i]=q.first(t,n);u=i}var s=q.get(t,u);if(!Z.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:u,offset:o==="end"?s.text.length:0}}if(_.isRange(n)){var[l,c]=_.edges(n);return o==="start"?l:c}return n};function V2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:u=!1,ignoreNonSelectable:a=!1}=t;if(!n)return;var i=D.range(e,n),[s,l]=_.edges(i),c=o?l:s,d=!1,p="",y=0,m=0,f=0;for(var[w,h]of D.nodes(e,{at:n,reverse:o,voids:u,ignoreNonSelectable:a})){if(X.isElement(w)){if(!u&&(e.isVoid(w)||e.isElementReadOnly(w))){yield D.start(e,h);continue}if(e.isInline(w))continue;if(D.hasInlines(e,w)){var g=b.isAncestor(h,l.path)?l:D.end(e,h),C=b.isAncestor(h,s.path)?s:D.start(e,h);p=D.string(e,{anchor:C,focus:g},{voids:u}),d=!0}}if(Z.isText(w)){var E=b.equals(h,c.path);for(E?(m=o?c.offset:w.text.length-c.offset,f=c.offset):(m=w.text.length,f=o?m:0),(E||d||r==="offset")&&(yield{path:h,offset:f},d=!1);;){if(y===0){if(p==="")break;y=B(p,r,o),p=Ml(p,y,o)[1]}if(f=o?f-y:f+y,m=m-y,m<0){y=-m;break}y=0,yield{path:h,offset:f}}}}function B(x,A,S){return A==="character"?Il(x,S):A==="word"?Bb(x,S):A==="line"||A==="block"?x.length:1}}()}var W2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.before(t,a,{voids:o});if(i){var[,s]=D.first(t,[]),l=[i.path,s];if(b.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(u==null)if(b.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{reverse:!0,at:l,match:u,mode:r,voids:o});return d}}},U2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.rangeRefs(t);return s.delete(u),u.current=null,i}},a=D.rangeRefs(t);return a.add(u),u},H2=e=>{var t=Qv.get(e);return t||(t=new Set,Qv.set(e,t)),t},K2=(e,t,n)=>{if(_.isRange(t)&&!n)return t;var r=D.start(e,t),o=D.end(e,n||t);return{anchor:r,focus:o}};function wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Y2=(e,t)=>{var{selection:n}=e;if(n){var r=(c,d)=>{if(!Z.isText(c))return!1;var[p,y]=D.parent(e,d);return!e.isVoid(p)||e.markableVoid(p)},o=_.isExpanded(n),u=!1;if(!o){var[a,i]=D.node(e,n);if(a&&r(a,i)){var[s]=D.parent(e,i);u=s&&e.markableVoid(s)}}if(o||u)R.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=q2({},D.marks(e)||{});delete l[t],e.marks=l,su.get(e)||e.onChange()}}},Q2=(e,t)=>{Kv.set(e,t)},G2=(e,t)=>D.point(e,t,{edge:"start"}),X2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,u=D.range(t,n),[a,i]=_.edges(u),s="";for(var[l,c]of D.nodes(t,{at:u,match:Z.isText,voids:o})){var d=l.text;b.equals(c,i.path)&&(d=d.slice(0,i.offset)),b.equals(c,a.path)&&(d=d.slice(a.offset)),s+=d}return s},Z2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[u,a]=_.edges(n);if(u.offset!==0||a.offset!==0||_.isCollapsed(n)||b.hasPrevious(a.path))return n;var i=D.above(t,{at:a,match:m=>X.isElement(m)&&D.isBlock(t,m),voids:o}),s=i?i[1]:[],l=D.start(t,u),c={anchor:l,focus:a},d=!0;for(var[p,y]of D.nodes(t,{at:c,match:Z.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(p.text!==""||b.isBefore(y,s)){a={path:y,offset:p.text.length};break}}return{anchor:u,focus:a}},J2=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},ex=(e,t,n)=>{var[r,o]=t;return X.isElement(r)&&D.isEmpty(e,r)||Z.isText(r)&&r.text===""&&o[o.length-1]!==0},tx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var r,o,{reverse:u=!1,unit:a="character",distance:i=1,voids:s=!1}=n,{at:l=t.selection,hanging:c=!1}=n;if(l){var d=!1;if(_.isRange(l)&&_.isCollapsed(l)&&(d=!0,l=l.anchor),ue.isPoint(l)){var p=D.void(t,{at:l,mode:"highest"});if(!s&&p){var[,y]=p;l=y}else{var m={unit:a,distance:i},f=u?D.before(t,l,m)||D.start(t,[]):D.after(t,l,m)||D.end(t,[]);l={anchor:l,focus:f},c=!0}}if(b.isPath(l)){R.removeNodes(t,{at:l,voids:s});return}if(!_.isCollapsed(l)){if(!c){var[,w]=_.edges(l),h=D.end(t,[]);ue.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=_.edges(l),E=D.above(t,{match:ae=>X.isElement(ae)&&D.isBlock(t,ae),at:g,voids:s}),B=D.above(t,{match:ae=>X.isElement(ae)&&D.isBlock(t,ae),at:C,voids:s}),x=E&&B&&!b.equals(E[1],B[1]),A=b.equals(g.path,C.path),S=s?null:(r=D.void(t,{at:g,mode:"highest"}))!==null&&r!==void 0?r:D.elementReadOnly(t,{at:g,mode:"highest"}),N=s?null:(o=D.void(t,{at:C,mode:"highest"}))!==null&&o!==void 0?o:D.elementReadOnly(t,{at:C,mode:"highest"});if(S){var O=D.before(t,g);O&&E&&b.isAncestor(E[1],O.path)&&(g=O)}if(N){var W=D.after(t,C);W&&B&&b.isAncestor(B[1],W.path)&&(C=W)}var P=[],L;for(var j of D.nodes(t,{at:l,voids:s})){var[z,G]=j;L&&b.compare(G,L)===0||(!s&&X.isElement(z)&&(D.isVoid(t,z)||D.isElementReadOnly(t,z))||!b.isCommon(G,g.path)&&!b.isCommon(G,C.path))&&(P.push(j),L=G)}var T=Array.from(P,ae=>{var[,me]=ae;return D.pathRef(t,me)}),I=D.pointRef(t,g),K=D.pointRef(t,C),Q="";if(!A&&!S){var ne=I.current,[te]=D.leaf(t,ne),{path:ye}=ne,{offset:fe}=g,F=te.text.slice(fe);F.length>0&&(t.apply({type:"remove_text",path:ye,offset:fe,text:F}),Q=F)}if(T.reverse().map(ae=>ae.unref()).filter(ae=>ae!==null).forEach(ae=>R.removeNodes(t,{at:ae,voids:s})),!N){var V=K.current,[U]=D.leaf(t,V),{path:Y}=V,ie=A?g.offset:0,ee=U.text.slice(ie,C.offset);ee.length>0&&(t.apply({type:"remove_text",path:Y,offset:ie,text:ee}),Q=ee)}!A&&x&&K.current&&I.current&&R.mergeNodes(t,{at:K.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Q.length>1&&Q.match(/[\u0E00-\u0E7F]+/)&&R.insertText(t,Q.slice(0,Q.length-i));var he=I.unref(),pe=K.unref(),se=u?he||pe:pe||he;n.at==null&&se&&R.select(t,se)}}})},nx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1}=r,{at:a=jl(t),batchDirty:i=!0}=r;if(n.length){if(_.isRange(a))if(o||(a=D.unhangRange(t,a,{voids:u})),_.isCollapsed(a))a=a.anchor;else{var[,s]=_.edges(a);if(!u&&D.void(t,{at:s}))return;var l=D.pointRef(t,s);R.delete(t,{at:a}),a=l.unref()}else b.isPath(a)&&(a=D.start(t,a));if(!(!u&&D.void(t,{at:a}))){var c=D.above(t,{at:a,match:F=>X.isElement(F)&&D.isInline(t,F),mode:"highest",voids:u});if(c){var[,d]=c;if(D.isEnd(t,a,d)){var p=D.after(t,d);a=p}else if(D.isStart(t,a,d)){var y=D.before(t,d);a=y}}var m=D.above(t,{match:F=>X.isElement(F)&&D.isBlock(t,F),at:a,voids:u}),[,f]=m,w=D.isStart(t,a,f),h=D.isEnd(t,a,f),g=w&&h,C=!w||w&&h,E=!h,[,B]=q.first({children:n},[]),[,x]=q.last({children:n},[]),A=[],S=F=>{var[V,U]=F,Y=U.length===0;return Y?!1:g?!0:!(C&&b.isAncestor(U,B)&&X.isElement(V)&&!t.isVoid(V)&&!t.isInline(V)||E&&b.isAncestor(U,x)&&X.isElement(V)&&!t.isVoid(V)&&!t.isInline(V))};for(var N of q.nodes({children:n},{pass:S}))S(N)&&A.push(N);var O=[],W=[],P=[],L=!0,j=!1;for(var[z]of A)X.isElement(z)&&!t.isInline(z)?(L=!1,j=!0,W.push(z)):L?O.push(z):P.push(z);var[G]=D.nodes(t,{at:a,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u}),[,T]=G,I=D.isStart(t,a,T),K=D.isEnd(t,a,T),Q=D.pathRef(t,h&&!P.length?b.next(f):f),ne=D.pathRef(t,K?b.next(T):T);R.splitNodes(t,{at:a,match:F=>j?X.isElement(F)&&D.isBlock(t,F):Z.isText(F)||D.isInline(t,F),mode:j?"lowest":"highest",always:j&&(!w||O.length>0)&&(!h||P.length>0),voids:u});var te=D.pathRef(t,!I||I&&K?b.next(T):T);if(R.insertNodes(t,O,{at:te.current,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u,batchDirty:i}),g&&!O.length&&W.length&&!P.length&&R.delete(t,{at:f,voids:u}),R.insertNodes(t,W,{at:Q.current,match:F=>X.isElement(F)&&D.isBlock(t,F),mode:"lowest",voids:u,batchDirty:i}),R.insertNodes(t,P,{at:ne.current,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u,batchDirty:i}),!r.at){var ye;if(P.length>0&&ne.current?ye=b.previous(ne.current):W.length>0&&Q.current?ye=b.previous(Q.current):te.current&&(ye=b.previous(te.current)),ye){var fe=D.end(t,ye);R.select(t,fe)}}te.unref(),Q.unref(),ne.unref()}}})},rx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")R.select(t,o.anchor);else if(r==="focus")R.select(t,o.focus);else if(r==="start"){var[u]=_.edges(o);R.select(t,u)}else if(r==="end"){var[,a]=_.edges(o);R.select(t,a)}}else return},ox=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},ux=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:u="character",reverse:a=!1}=n,{edge:i=null}=n;if(r){i==="start"&&(i=_.isBackward(r)?"focus":"anchor"),i==="end"&&(i=_.isBackward(r)?"anchor":"focus");var{anchor:s,focus:l}=r,c={distance:o,unit:u,ignoreNonSelectable:!0},d={};if(i==null||i==="anchor"){var p=a?D.before(t,s,c):D.after(t,s,c);p&&(d.anchor=p)}if(i==null||i==="focus"){var y=a?D.before(t,l,c):D.after(t,l,c);y&&(d.focus=y)}R.setSelection(t,d)}},ax=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){R.setSelection(e,t);return}if(!_.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Le.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ix=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:u="both"}=r;if(o){u==="start"&&(u=_.isBackward(o)?"focus":"anchor"),u==="end"&&(u=_.isBackward(o)?"anchor":"focus");var{anchor:a,focus:i}=o,s=u==="anchor"?a:i;R.setSelection(t,{[u==="anchor"?"anchor":"focus"]:Bh(Bh({},s),n)})}},sx=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ue.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ue.equals(t.focus,n.focus)||u!=="anchor"&&u!=="focus"&&t[u]!==n[u])&&(r[u]=n[u],o[u]=t[u]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},lx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1,mode:a="lowest",batchDirty:i=!0}=r,{at:s,match:l,select:c}=r;if(q.isNode(n)&&(n=[n]),n.length!==0){var[d]=n;if(s||(s=jl(t),c!==!1&&(c=!0)),c==null&&(c=!1),_.isRange(s))if(o||(s=D.unhangRange(t,s,{voids:u})),_.isCollapsed(s))s=s.anchor;else{var[,p]=_.edges(s),y=D.pointRef(t,p);R.delete(t,{at:s}),s=y.unref()}if(ue.isPoint(s)){l==null&&(Z.isText(d)?l=O=>Z.isText(O):t.isInline(d)?l=O=>Z.isText(O)||D.isInline(t,O):l=O=>X.isElement(O)&&D.isBlock(t,O));var[m]=D.nodes(t,{at:s.path,match:l,mode:a,voids:u});if(m){var[,f]=m,w=D.pathRef(t,f),h=D.isEnd(t,s,f);R.splitNodes(t,{at:s,match:l,mode:a,voids:u});var g=w.unref();s=h?b.next(g):g}else return}var C=b.parent(s),E=s[s.length-1];if(!(!u&&D.void(t,{at:C}))){if(i){var B=[],x=b.levels(C);Hb(t,()=>{var O=function(){var L=C.concat(E);E++;var j={type:"insert_node",path:L,node:W};t.apply(j),s=b.next(s),B.push(j),Z.isText?x.push(...Array.from(q.nodes(W),z=>{var[,G]=z;return L.concat(G)})):x.push(L)};for(var W of n)O()},()=>{lh(t,x,O=>{var W=O;for(var P of B)if(b.operationCanTransformPath(P)&&(W=b.transform(W,P),!W))return null;return W})})}else for(var A of n){var S=C.concat(E);E++,t.apply({type:"insert_node",path:S,node:A}),s=b.next(s)}if(s=b.previous(s),c){var N=D.end(t,s);N&&R.select(t,N)}}}})},cx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:u=!1}=n,{match:a}=n;if(a==null&&(a=b.isPath(r)?no(t,r):E=>X.isElement(E)&&D.isBlock(t,E)),!!r){var i=D.nodes(t,{at:r,match:a,mode:o,voids:u}),s=Array.from(i,E=>{var[,B]=E;return D.pathRef(t,B)});for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=D.node(t,b.parent(c)),[p,y]=d,m=c[c.length-1],{length:f}=p.children;if(f===1){var w=b.next(y);R.moveNodes(t,{at:c,to:w,voids:u}),R.removeNodes(t,{at:y,voids:u})}else if(m===0)R.moveNodes(t,{at:c,to:y,voids:u});else if(m===f-1){var h=b.next(y);R.moveNodes(t,{at:c,to:h,voids:u})}else{var g=b.next(c),C=b.next(y);R.splitNodes(t,{at:g,voids:u}),R.moveNodes(t,{at:c,to:C,voids:u})}}}})},fx=["text"],dx=["children"],Ah=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?Ah(e,n.children[0]):!1}else return!D.isEditor(t)},px=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:u=!1,voids:a=!1,mode:i="lowest"}=n;if(o){if(r==null)if(b.isPath(o)){var[s]=D.parent(t,o);r=O=>s.children.includes(O)}else r=O=>X.isElement(O)&&D.isBlock(t,O);if(!u&&_.isRange(o)&&(o=D.unhangRange(t,o,{voids:a})),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var[,l]=_.edges(o),c=D.pointRef(t,l);R.delete(t,{at:o}),o=c.unref(),n.at==null&&R.select(t,o)}var[d]=D.nodes(t,{at:o,match:r,voids:a,mode:i}),p=D.previous(t,{at:o,match:r,voids:a,mode:i});if(!(!d||!p)){var[y,m]=d,[f,w]=p;if(!(m.length===0||w.length===0)){var h=b.next(w),g=b.common(m,w),C=b.isSibling(m,w),E=Array.from(D.levels(t,{at:m}),O=>{var[W]=O;return W}).slice(g.length).slice(0,-1),B=D.above(t,{at:m,mode:"highest",match:O=>E.includes(O)&&Ah(t,O)}),x=B&&D.pathRef(t,B[1]),A,S;if(Z.isText(y)&&Z.isText(f)){var N=mn(y,fx);S=f.text.length,A=N}else if(X.isElement(y)&&X.isElement(f)){var N=mn(y,dx);S=f.children.length,A=N}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(Le.stringify(y)," ").concat(Le.stringify(f)));C||R.moveNodes(t,{at:m,to:h,voids:a}),x&&R.removeNodes(t,{at:x.current,voids:a}),D.shouldMergeNodesRemovePrevNode(t,p,d)?R.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:S,properties:A}),x&&x.unref()}}}})},vx=(e,t)=>{D.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:u=!1}=t,{match:a}=t;if(r){a==null&&(a=b.isPath(r)?no(e,r):y=>X.isElement(y)&&D.isBlock(e,y));var i=D.pathRef(e,n),s=D.nodes(e,{at:r,match:a,mode:o,voids:u}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(e,m)});for(var c of l){var d=c.unref(),p=i.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:p}),i.current&&b.isSibling(p,d)&&b.isAfter(p,d)&&(i.current=b.next(i.current))}i.unref()}})},hx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:u="lowest"}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=b.isPath(a)?no(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),!r&&_.isRange(a)&&(a=D.unhangRange(t,a,{voids:o}));var s=D.nodes(t,{at:a,match:i,mode:u,voids:o}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(t,m)});for(var c of l){var d=c.unref();if(d){var[p]=D.node(t,d);t.apply({type:"remove_node",path:d,node:p})}}}})},mx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:o,at:u=t.selection,compare:a,merge:i}=r,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:d=!1}=r;if(u){if(o==null&&(o=b.isPath(u)?no(t,u):S=>X.isElement(S)&&D.isBlock(t,S)),!s&&_.isRange(u)&&(u=D.unhangRange(t,u,{voids:d})),c&&_.isRange(u)){if(_.isCollapsed(u)&&D.leaf(t,u.anchor)[0].text.length>0)return;var p=D.rangeRef(t,u,{affinity:"inward"}),[y,m]=_.edges(u),f=l==="lowest"?"lowest":"highest",w=D.isEnd(t,m,m.path);R.splitNodes(t,{at:m,match:o,mode:f,voids:d,always:!w});var h=D.isStart(t,y,y.path);R.splitNodes(t,{at:y,match:o,mode:f,voids:d,always:!h}),u=p.unref(),r.at==null&&R.select(t,u)}a||(a=(S,N)=>S!==N);for(var[g,C]of D.nodes(t,{at:u,match:o,mode:l,voids:d})){var E={},B={};if(C.length!==0){var x=!1;for(var A in n)A==="children"||A==="text"||a(n[A],g[A])&&(x=!0,g.hasOwnProperty(A)&&(E[A]=g[A]),i?n[A]!=null&&(B[A]=i(g[A],n[A])):n[A]!=null&&(B[A]=n[A]));x&&t.apply({type:"set_node",path:C,properties:E,newProperties:B})}}}})},gx=(e,t)=>{if(_.isCollapsed(t))return t.anchor;var[,n]=_.edges(t),r=D.pointRef(e,n);return R.delete(e,{at:t}),r.unref()},yx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection,height:i=0,always:s=!1}=n;if(u==null&&(u=K=>X.isElement(K)&&D.isBlock(t,K)),_.isRange(a)&&(a=gx(t,a)),b.isPath(a)){var l=a,c=D.point(t,l),[d]=D.parent(t,l);u=K=>K===d,i=c.path.length-l.length+1,a=c,s=!0}if(a){var p=D.pointRef(t,a,{affinity:"backward"}),y;try{var[m]=D.nodes(t,{at:a,match:u,mode:r,voids:o});if(!m)return;var f=D.void(t,{at:a,mode:"highest"}),w=0;if(!o&&f){var[h,g]=f;if(X.isElement(h)&&t.isInline(h)){var C=D.after(t,g);if(!C){var E={text:""},B=b.next(g);R.insertNodes(t,E,{at:B,voids:o}),C=D.point(t,B)}a=C,s=!0}var x=a.path.length-g.length;i=x+1,s=!0}y=D.pointRef(t,a);var A=a.path.length-i,[,S]=m,N=a.path.slice(0,A),O=i===0?a.offset:a.path[A]+w;for(var[W,P]of D.levels(t,{at:N,reverse:!0,voids:o})){var L=!1;if(P.length<S.length||P.length===0||!o&&X.isElement(W)&&D.isVoid(t,W))break;var j=p.current,z=D.isEnd(t,j,P);if(s||!p||!D.isEdge(t,j,P)){L=!0;var G=q.extractProps(W);t.apply({type:"split_node",path:P,position:O,properties:G})}O=P[P.length-1]+(L||z?1:0)}if(n.at==null){var T=y.current||D.end(t,[]);R.select(t,T)}}finally{var I;p.unref(),(I=y)===null||I===void 0||I.unref()}}})},Dx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var u of n)o[u]=null;R.setNodes(t,o,r)},Cx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:u=!1}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=b.isPath(a)?no(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),b.isPath(a)&&(a=D.range(t,a));var s=_.isRange(a)?D.rangeRef(t,a):null,l=D.nodes(t,{at:a,match:i,mode:r,voids:u}),c=Array.from(l,y=>{var[,m]=y;return D.pathRef(t,m)}).reverse(),d=function(){var m=p.unref(),[f]=D.node(t,m),w=D.range(t,m);o&&s&&(w=_.intersection(s.current,w)),R.liftNodes(t,{at:w,match:h=>X.isAncestor(f)&&f.children.includes(h),voids:u})};for(var p of c)d();s&&s.unref()}})};function bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:o="lowest",split:u=!1,voids:a=!1}=r,{match:i,at:s=t.selection}=r;if(s){if(i==null&&(b.isPath(s)?i=no(t,s):t.isInline(n)?i=w=>X.isElement(w)&&D.isInline(t,w)||Z.isText(w):i=w=>X.isElement(w)&&D.isBlock(t,w)),u&&_.isRange(s)){var[l,c]=_.edges(s),d=D.rangeRef(t,s,{affinity:"inward"});R.splitNodes(t,{at:c,match:i,voids:a}),R.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&R.select(t,s)}var p=Array.from(D.nodes(t,{at:s,match:t.isInline(n)?w=>X.isElement(w)&&D.isBlock(t,w):w=>D.isEditor(w),mode:"lowest",voids:a})),y=function(){var h=_.isRange(s)?_.intersection(s,D.range(t,f)):s;if(!h)return 0;var g=Array.from(D.nodes(t,{at:h,match:i,mode:o,voids:a}));if(g.length>0){var[C]=g,E=g[g.length-1],[,B]=C,[,x]=E;if(B.length===0&&x.length===0)return 0;var A=b.equals(B,x)?b.parent(B):b.common(B,x),S=D.range(t,B,x),N=D.node(t,A),[O]=N,W=A.length+1,P=b.next(x.slice(0,W)),L=xh(xh({},n),{},{children:[]});R.insertNodes(t,L,{at:P,voids:a}),R.moveNodes(t,{at:S,match:j=>X.isAncestor(O)&&O.children.includes(j),to:P.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},Ex=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Kb(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Zb(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t2(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return n2(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r2(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Yb(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return v2(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return m2(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nx(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return h2(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return y2(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Qb(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Y2(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qb(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Gb(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Xb(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jb(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e2(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rx(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tx(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ox(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return o2(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u2(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a2(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i2(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s2(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _2(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return c2(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f2(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return d2(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p2(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lx(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return D2(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return C2(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return w2(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return E2(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return B2(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return A2(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b2(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return x2(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return F2(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cx(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return px(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ux(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vx(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P2(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k2(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return T2(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return R2(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N2(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return M2(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return j2(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return I2(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return z2(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $2(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return L2(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return V2(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return W2(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return K2(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return U2(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return H2(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hx(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ax(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mx(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Q2(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ix(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sx(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yx(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G2(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return X2(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Z2(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Dx(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Cx(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l2(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return J2(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wx(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ex(e,...r)}};return e};function fu(e){const t=D.marks(Va.value);return t?t[e]===!0:!1}function Bx(e){fu(e)?D.removeMark(Va.value,e):D.addMark(Va.value,e,!0)}const Ax=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=MA().pressed,r=jA(t),o=IA(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=Pv(),{floatingStyles:s}=DA(u,t,{placement:"top",middleware:[$E(6),LE(),zE()]}),l=v.ref(!1),c=v.computed(()=>l.value&&(r.value||o.value||!n.value&&a.value)),d=v.ref(!1),p=v.ref(!1),y=v.ref(!1),m=v.ref(!1),{trigger:f}=_A(c,()=>{d.value=fu("bold"),p.value=fu("del"),y.value=fu("italic"),m.value=fu("underline")});function w(h){Bx(h),f()}return Xe(Wa,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=gA,E=tA,B=pA,x=lA,A=uA;return v.unref(c)?(v.openBlock(),v.createElementBlock("div",{key:0,ref_key:"menuRef",ref:t,style:v.normalizeStyle(v.unref(s)),class:"docx-menu",flex:"~ items-center gap-2",text:"lg black","select-none":"",b:"1 solid gray-3 rounded-1.5","bg-white":"",el:"6 op-36",p:"y2 x3",onMousedown:g[4]||(g[4]=v.withModifiers(()=>{},["prevent","stop"])),onMouseup:g[5]||(g[5]=v.withModifiers(()=>{},["prevent","stop"])),onClick:g[6]||(g[6]=v.withModifiers(()=>{},["prevent","stop"])),onDblclick:g[7]||(g[7]=v.withModifiers(()=>{},["prevent","stop"])),onContextmenu:g[8]||(g[8]=v.withModifiers(()=>{},["prevent","stop"]))},[v.createCommentVNode(" 加粗 "),v.createVNode(E,{placement:"top",content:"粗体<br>Markdown: **文本** 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(d)}]),onClick:g[0]||(g[0]=S=>w("bold"))},[v.createVNode(C,{class:"size-5.5"})],2)]),_:1}),v.createCommentVNode(" 删除线 "),v.createVNode(E,{placement:"top",content:"删除线<br>Markdown: ~~文本~~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(p)}]),onClick:g[1]||(g[1]=S=>w("del"))},[v.createVNode(B,{class:"size-4.7 relative top-.03"})],2)]),_:1}),v.createCommentVNode(" 斜体 "),v.createVNode(E,{placement:"top",content:"斜体<br>Markdown: *文本* 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(y)}]),onClick:g[2]||(g[2]=S=>w("italic"))},[v.createVNode(x,{class:"size-5 relative top-.1"})],2)]),_:1}),v.createCommentVNode(" 下划线 "),v.createVNode(E,{placement:"top",content:"下划线<br>Markdown: ~文本~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(m)}]),onClick:g[3]||(g[3]=S=>w("underline"))},[v.createVNode(A,{class:"size-6 relative top-.1"})],2)]),_:1})],36)):v.createCommentVNode("v-if",!0)}}}),bx=":host-context(.dark) .docx-menu[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.docx-menu-item[data-v-f99fe62b]{display:flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;cursor:pointer;border-radius:.25rem}.docx-menu-item[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.docx-menu-item.active[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity));--un-bg-opacity:.6;--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.docx-menu-item.active[data-v-f99fe62b]:hover{--un-bg-opacity:.9}",xx='[data-v-f99fe62b],[data-v-f99fe62b]:before,[data-v-f99fe62b]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-f99fe62b]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.relative[data-v-f99fe62b]{position:relative}.top-\\.03[data-v-f99fe62b]{top:.0075rem}.top-\\.1[data-v-f99fe62b]{top:.025rem}.flex[data-v-f99fe62b],[flex~="~"][data-v-f99fe62b]{display:flex}.cursor-pointer[data-v-f99fe62b]{cursor:pointer}.select-none[data-v-f99fe62b],[select-none=""][data-v-f99fe62b]{-webkit-user-select:none;user-select:none}.flex-items-center[data-v-f99fe62b],.items-center[data-v-f99fe62b],[flex~=items-center][data-v-f99fe62b]{align-items:center}.gap-2[data-v-f99fe62b],[flex~=gap-2][data-v-f99fe62b]{gap:.5rem}.flex-justify-center[data-v-f99fe62b]{justify-content:center}[b~="1"][data-v-f99fe62b]{border-width:1px}[b~=gray-3][data-v-f99fe62b]{--un-border-opacity:1;border-color:rgb(209 213 219 / var(--un-border-opacity))}.rounded[data-v-f99fe62b]{border-radius:.25rem}.rounded-1\\.5[data-v-f99fe62b],[b~="rounded-1.5"][data-v-f99fe62b]{border-radius:.375rem}[b~=solid][data-v-f99fe62b]{border-style:solid}.bg-blue-2[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity))}.bg-white[data-v-f99fe62b],[bg-white=""][data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.hover\\:bg-gray-2[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-op-60[data-v-f99fe62b]{--un-bg-opacity:.6}.hover\\:bg-op-90[data-v-f99fe62b]:hover{--un-bg-opacity:.9}[p~=x3][data-v-f99fe62b]{padding-left:.75rem;padding-right:.75rem}[p~=y2][data-v-f99fe62b]{padding-top:.5rem;padding-bottom:.5rem}[text~=lg][data-v-f99fe62b]{font-size:1.125rem;line-height:1.75rem}[text~=black][data-v-f99fe62b]{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.c-blue-6[data-v-f99fe62b]{--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.italic[data-v-f99fe62b]{font-style:italic}.underline[data-v-f99fe62b]{text-decoration-line:underline}.op-36[data-v-f99fe62b]{opacity:.36}.filter-invert[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.size-4\\.7[data-v-f99fe62b]{width:1.175rem;height:1.175rem}.size-5[data-v-f99fe62b]{width:1.25rem;height:1.25rem}.size-5\\.5[data-v-f99fe62b]{width:1.375rem;height:1.375rem}.size-6[data-v-f99fe62b]{width:1.5rem;height:1.5rem}[el~="6"][data-v-f99fe62b]{box-shadow:0 3px 5px -1px rgba(0,0,0,calc(.2 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 6px 10px rgba(0,0,0,calc(.14 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 1px 18px rgba(0,0,0,calc(.12 * var(--une-el-opacity, var(--un-shadow-opacity, 1))))}[el~=op-36][data-v-f99fe62b]{--une-el-opacity:.36}',du=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Fx=du(Ax,[["styles",[bx,xx]],["__scopeId","data-v-f99fe62b"]]);var Fh={exports:{}},le={};/**
|
11
11
|
* @license React
|
12
12
|
* react.production.min.js
|
13
13
|
*
|
@@ -15,7 +15,7 @@ var N1;(function(v){"use strict";const vn=(e,t,{checkForDefaultPrevented:n=!0}={
|
|
15
15
|
*
|
16
16
|
* This source code is licensed under the MIT license found in the
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
18
|
-
*/var
|
18
|
+
*/var pu=Symbol.for("react.element"),Sx=Symbol.for("react.portal"),Ox=Symbol.for("react.fragment"),_x=Symbol.for("react.strict_mode"),Px=Symbol.for("react.profiler"),kx=Symbol.for("react.provider"),Tx=Symbol.for("react.context"),Rx=Symbol.for("react.forward_ref"),Nx=Symbol.for("react.suspense"),jx=Symbol.for("react.memo"),Ix=Symbol.for("react.lazy"),Sh=Symbol.iterator;function Mx(e){return e===null||typeof e!="object"?null:(e=Sh&&e[Sh]||e["@@iterator"],typeof e=="function"?e:null)}var Oh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_h=Object.assign,Ph={};function oo(e,t,n){this.props=e,this.context=t,this.refs=Ph,this.updater=n||Oh}oo.prototype.isReactComponent={},oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kh(){}kh.prototype=oo.prototype;function $l(e,t,n){this.props=e,this.context=t,this.refs=Ph,this.updater=n||Oh}var Ll=$l.prototype=new kh;Ll.constructor=$l,_h(Ll,oo.prototype),Ll.isPureReactComponent=!0;var Th=Array.isArray,Rh=Object.prototype.hasOwnProperty,zl={current:null},Nh={key:!0,ref:!0,__self:!0,__source:!0};function jh(e,t,n){var r,o={},u=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(u=""+t.key),t)Rh.call(t,r)&&!Nh.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:pu,type:e,key:u,ref:a,props:o,_owner:zl.current}}function $x(e,t){return{$$typeof:pu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Vl(e){return typeof e=="object"&&e!==null&&e.$$typeof===pu}function Lx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ih=/\/+/g;function Wl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lx(""+e.key):t.toString(36)}function ni(e,t,n,r,o){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(u){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case pu:case Sx:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Wl(a,0):r,Th(o)?(n="",e!=null&&(n=e.replace(Ih,"$&/")+"/"),ni(o,t,n,"",function(l){return l})):o!=null&&(Vl(o)&&(o=$x(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Ih,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Th(e))for(var i=0;i<e.length;i++){u=e[i];var s=r+Wl(u,i);a+=ni(u,t,n,s,o)}else if(s=Mx(e),typeof s=="function")for(e=s.call(e),i=0;!(u=e.next()).done;)u=u.value,s=r+Wl(u,i++),a+=ni(u,t,n,s,o);else if(u==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ri(e,t,n){if(e==null)return e;var r=[],o=0;return ni(e,r,"","",function(u){return t.call(n,u,o++)}),r}function zx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},oi={transition:null},Vx={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:oi,ReactCurrentOwner:zl};function Mh(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:ri,forEach:function(e,t,n){ri(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ri(e,function(){t++}),t},toArray:function(e){return ri(e,function(t){return t})||[]},only:function(e){if(!Vl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},le.Component=oo,le.Fragment=Ox,le.Profiler=Px,le.PureComponent=$l,le.StrictMode=_x,le.Suspense=Nx,le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vx,le.act=Mh,le.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_h({},e.props),o=e.key,u=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,a=zl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)Rh.call(t,s)&&!Nh.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&i!==void 0?i[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){i=Array(s);for(var l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}return{$$typeof:pu,type:e.type,key:o,ref:u,props:r,_owner:a}},le.createContext=function(e){return e={$$typeof:Tx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kx,_context:e},e.Consumer=e},le.createElement=jh,le.createFactory=function(e){var t=jh.bind(null,e);return t.type=e,t},le.createRef=function(){return{current:null}},le.forwardRef=function(e){return{$$typeof:Rx,render:e}},le.isValidElement=Vl,le.lazy=function(e){return{$$typeof:Ix,_payload:{_status:-1,_result:e},_init:zx}},le.memo=function(e,t){return{$$typeof:jx,type:e,compare:t===void 0?null:t}},le.startTransition=function(e){var t=oi.transition;oi.transition={};try{e()}finally{oi.transition=t}},le.unstable_act=Mh,le.useCallback=function(e,t){return ot.current.useCallback(e,t)},le.useContext=function(e){return ot.current.useContext(e)},le.useDebugValue=function(){},le.useDeferredValue=function(e){return ot.current.useDeferredValue(e)},le.useEffect=function(e,t){return ot.current.useEffect(e,t)},le.useId=function(){return ot.current.useId()},le.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)},le.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)},le.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)},le.useMemo=function(e,t){return ot.current.useMemo(e,t)},le.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)},le.useRef=function(e){return ot.current.useRef(e)},le.useState=function(e){return ot.current.useState(e)},le.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)},le.useTransition=function(){return ot.current.useTransition()},le.version="18.3.1",Fh.exports=le;var M=Fh.exports;const re=nu(M);var $h={exports:{}},Bt={},Lh={exports:{}},zh={};/**
|
19
19
|
* @license React
|
20
20
|
* scheduler.production.min.js
|
21
21
|
*
|
@@ -23,7 +23,7 @@ var N1;(function(v){"use strict";const vn=(e,t,{checkForDefaultPrevented:n=!0}={
|
|
23
23
|
*
|
24
24
|
* This source code is licensed under the MIT license found in the
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
26
|
-
*/(function(e){function t(I,K){var Q=I.length;I.push(K);e:for(;0<Q;){var ne=Q-1>>>1,te=I[ne];if(0<o(te,K))I[ne]=K,I[Q]=te,Q=ne;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var K=I[0],Q=I.pop();if(Q!==K){I[0]=Q;e:for(var ne=0,te=I.length,ye=te>>>1;ne<ye;){var fe=2*(ne+1)-1,F=I[fe],
|
26
|
+
*/(function(e){function t(I,K){var Q=I.length;I.push(K);e:for(;0<Q;){var ne=Q-1>>>1,te=I[ne];if(0<o(te,K))I[ne]=K,I[Q]=te,Q=ne;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var K=I[0],Q=I.pop();if(Q!==K){I[0]=Q;e:for(var ne=0,te=I.length,ye=te>>>1;ne<ye;){var fe=2*(ne+1)-1,F=I[fe],V=fe+1,U=I[V];if(0>o(F,Q))V<te&&0>o(U,F)?(I[ne]=U,I[V]=Q,ne=V):(I[ne]=F,I[fe]=Q,ne=fe);else if(V<te&&0>o(U,Q))I[ne]=U,I[V]=Q,ne=V;else break e}}return K}function o(I,K){var Q=I.sortIndex-K.sortIndex;return Q!==0?Q:I.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var s=[],l=[],c=1,d=null,p=3,y=!1,m=!1,f=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var K=n(l);K!==null;){if(K.callback===null)r(l);else if(K.startTime<=I)r(l),K.sortIndex=K.expirationTime,t(s,K);else break;K=n(l)}}function E(I){if(f=!1,C(I),!m)if(n(s)!==null)m=!0,G(B);else{var K=n(l);K!==null&&T(E,K.startTime-I)}}function B(I,K){m=!1,f&&(f=!1,h(S),S=-1),y=!0;var Q=p;try{for(C(K),d=n(s);d!==null&&(!(d.expirationTime>K)||I&&!W());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var te=ne(d.expirationTime<=K);K=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(s)&&r(s),C(K)}else r(s);d=n(s)}if(d!==null)var ye=!0;else{var fe=n(l);fe!==null&&T(E,fe.startTime-K),ye=!1}return ye}finally{d=null,p=Q,y=!1}}var x=!1,A=null,S=-1,N=5,O=-1;function W(){return!(e.unstable_now()-O<N)}function P(){if(A!==null){var I=e.unstable_now();O=I;var K=!0;try{K=A(!0,I)}finally{K?L():(x=!1,A=null)}}else x=!1}var L;if(typeof g=="function")L=function(){g(P)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,z=j.port2;j.port1.onmessage=P,L=function(){z.postMessage(null)}}else L=function(){w(P,0)};function G(I){A=I,x||(x=!0,L())}function T(I,K){S=w(function(){I(e.unstable_now())},K)}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(I){I.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,G(B))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(I){switch(p){case 1:case 2:case 3:var K=3;break;default:K=p}var Q=p;p=K;try{return I()}finally{p=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,K){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Q=p;p=I;try{return K()}finally{p=Q}},e.unstable_scheduleCallback=function(I,K,Q){var ne=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ne+Q:ne):Q=ne,I){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=Q+te,I={id:c++,callback:K,priorityLevel:I,startTime:Q,expirationTime:te,sortIndex:-1},Q>ne?(I.sortIndex=Q,t(l,I),n(s)===null&&I===n(l)&&(f?(h(S),S=-1):f=!0,T(E,Q-ne))):(I.sortIndex=te,t(s,I),m||y||(m=!0,G(B))),I},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(I){var K=p;return function(){var Q=p;p=K;try{return I.apply(this,arguments)}finally{p=Q}}}})(zh),Lh.exports=zh;var Wx=Lh.exports;/**
|
27
27
|
* @license React
|
28
28
|
* react-dom.production.min.js
|
29
29
|
*
|
@@ -31,16 +31,16 @@ var N1;(function(v){"use strict";const vn=(e,t,{checkForDefaultPrevented:n=!0}={
|
|
31
31
|
*
|
32
32
|
* This source code is licensed under the MIT license found in the
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
34
|
-
*/var
|
35
|
-
`+
|
34
|
+
*/var Ux=M,At=Wx;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vh=new Set,vu={};function Br(e,t){uo(e,t),uo(e+"Capture",t)}function uo(e,t){for(vu[e]=t,e=0;e<t.length;e++)Vh.add(t[e])}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ul=Object.prototype.hasOwnProperty,Hx=/^[: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]*$/,Wh={},Uh={};function Kx(e){return Ul.call(Uh,e)?!0:Ul.call(Wh,e)?!1:Hx.test(e)?Uh[e]=!0:(Wh[e]=!0,!1)}function qx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yx(e,t,n,r){if(t===null||typeof t>"u"||qx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,o,u,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=a}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new ut(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new ut(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new ut(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ut(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){He[e]=new ut(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){He[e]=new ut(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){He[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hl=/[\-:]([a-z])/g;function Kl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hl,Kl);He[t]=new ut(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hl,Kl);He[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hl,Kl);He[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)}),He.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){He[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function ql(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Yx(t,n,o,r)&&(n=null),r||o===null?Kx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dn=Ux.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ui=Symbol.for("react.element"),ao=Symbol.for("react.portal"),io=Symbol.for("react.fragment"),Yl=Symbol.for("react.strict_mode"),Ql=Symbol.for("react.profiler"),Hh=Symbol.for("react.provider"),Kh=Symbol.for("react.context"),Gl=Symbol.for("react.forward_ref"),Xl=Symbol.for("react.suspense"),Zl=Symbol.for("react.suspense_list"),Jl=Symbol.for("react.memo"),$n=Symbol.for("react.lazy"),qh=Symbol.for("react.offscreen"),Yh=Symbol.iterator;function hu(e){return e===null||typeof e!="object"?null:(e=Yh&&e[Yh]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Object.assign,ec;function mu(e){if(ec===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ec=t&&t[1]||""}return`
|
35
|
+
`+ec+e}var tc=!1;function nc(e,t){if(!e||tc)return"";tc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var o=l.stack.split(`
|
36
36
|
`),u=r.stack.split(`
|
37
37
|
`),a=o.length-1,i=u.length-1;1<=a&&0<=i&&o[a]!==u[i];)i--;for(;1<=a&&0<=i;a--,i--)if(o[a]!==u[i]){if(a!==1||i!==1)do if(a--,i--,0>i||o[a]!==u[i]){var s=`
|
38
|
-
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=i);break}}}finally{ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hu(e):""}function Yx(e){switch(e.tag){case 5:return hu(e.type);case 16:return hu("Lazy");case 13:return hu("Suspense");case 19:return hu("SuspenseList");case 0:case 2:case 15:return e=tc(e.type,!1),e;case 11:return e=tc(e.type.render,!1),e;case 1:return e=tc(e.type,!0),e;default:return""}}function nc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case io:return"Fragment";case ao:return"Portal";case Yl:return"Profiler";case ql:return"StrictMode";case Gl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hh:return(e.displayName||"Context")+".Consumer";case Uh:return(e._context.displayName||"Context")+".Provider";case Ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zl:return t=e.displayName||null,t!==null?t:nc(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return nc(e(t))}catch{}}return null}function Qx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nc(t);case 8:return t===ql?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gx(e){var t=Yh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,u.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ui(e){e._valueTracker||(e._valueTracker=Gx(e))}function Qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rc(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xh(e,t){t=t.checked,t!=null&&Kl(e,"checked",t,!1)}function oc(e,t){Xh(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uc(e,t.type,n):t.hasOwnProperty("defaultValue")&&uc(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function uc(e,t,n){(t!=="number"||ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mu=Array.isArray;function so(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return Fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(mu(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function em(e,t){var n=Ln(t.value),r=Ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function tm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nm(e){switch(e){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 ic(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,rm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yu={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},Xx=["Webkit","ms","Moz","O"];Object.keys(yu).forEach(function(e){Xx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yu[t]=yu[e]})});function om(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yu.hasOwnProperty(e)&&yu[e]?(""+t).trim():t+"px"}function um(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=om(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Zx=Fe({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 sc(e,t){if(t){if(Zx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function lc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cc=null;function fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dc=null,lo=null,co=null;function am(e){if(e=Lu(e)){if(typeof dc!="function")throw Error(H(280));var t=e.stateNode;t&&(t=_i(t),dc(e.stateNode,e.type,t))}}function im(e){lo?co?co.push(e):co=[e]:lo=e}function sm(){if(lo){var e=lo,t=co;if(co=lo=null,am(e),t)for(e=0;e<t.length;e++)am(t[e])}}function lm(e,t){return e(t)}function cm(){}var pc=!1;function fm(e,t,n){if(pc)return e(t,n);pc=!0;try{return lm(e,t,n)}finally{pc=!1,(lo!==null||co!==null)&&(cm(),sm())}}function Du(e,t){var n=e.stateNode;if(n===null)return null;var r=_i(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var vc=!1;if(yn)try{var Cu={};Object.defineProperty(Cu,"passive",{get:function(){vc=!0}}),window.addEventListener("test",Cu,Cu),window.removeEventListener("test",Cu,Cu)}catch{vc=!1}function Jx(e,t,n,r,o,u,a,i,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var wu=!1,si=null,li=!1,hc=null,eF={onError:function(e){wu=!0,si=e}};function tF(e,t,n,r,o,u,a,i,s){wu=!1,si=null,Jx.apply(eF,arguments)}function nF(e,t,n,r,o,u,a,i,s){if(tF.apply(this,arguments),wu){if(wu){var l=si;wu=!1,si=null}else throw Error(H(198));li||(li=!0,hc=l)}}function Ar(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pm(e){if(Ar(e)!==e)throw Error(H(188))}function rF(e){var t=e.alternate;if(!t){if(t=Ar(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return pm(o),e;if(u===r)return pm(o),t;u=u.sibling}throw Error(H(188))}if(n.return!==r.return)n=o,r=u;else{for(var a=!1,i=o.child;i;){if(i===n){a=!0,n=o,r=u;break}if(i===r){a=!0,r=o,n=u;break}i=i.sibling}if(!a){for(i=u.child;i;){if(i===n){a=!0,n=u,r=o;break}if(i===r){a=!0,r=u,n=o;break}i=i.sibling}if(!a)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function vm(e){return e=rF(e),e!==null?hm(e):null}function hm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hm(e);if(t!==null)return t;e=e.sibling}return null}var mm=At.unstable_scheduleCallback,gm=At.unstable_cancelCallback,oF=At.unstable_shouldYield,uF=At.unstable_requestPaint,Re=At.unstable_now,aF=At.unstable_getCurrentPriorityLevel,mc=At.unstable_ImmediatePriority,ym=At.unstable_UserBlockingPriority,ci=At.unstable_NormalPriority,iF=At.unstable_LowPriority,Dm=At.unstable_IdlePriority,fi=null,on=null;function sF(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(fi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:fF,lF=Math.log,cF=Math.LN2;function fF(e){return e>>>=0,e===0?32:31-(lF(e)/cF|0)|0}var di=64,pi=4194304;function Eu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Eu(i):(u&=a,u!==0&&(r=Eu(u)))}else a=n&~o,a!==0?r=Eu(a):u!==0&&(r=Eu(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,u=t&-t,o>=u||o===16&&(u&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ht(t),o=1<<n,r|=e[n],t&=~o;return r}function dF(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 pF(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var a=31-Ht(u),i=1<<a,s=o[a];s===-1?(!(i&n)||i&r)&&(o[a]=dF(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function gc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cm(){var e=di;return di<<=1,!(di&4194240)&&(di=64),e}function yc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function vF(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ht(n),u=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~u}}function Dc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ht(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ge=0;function wm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Em,Cc,Bm,Am,bm,wc=!1,hi=[],zn=null,Vn=null,Wn=null,Au=new Map,bu=new Map,Un=[],hF="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 xm(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":Au.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(t.pointerId)}}function xu(e,t,n,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Lu(t),t!==null&&Cc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function mF(e,t,n,r,o){switch(t){case"focusin":return zn=xu(zn,e,t,n,r,o),!0;case"dragenter":return Vn=xu(Vn,e,t,n,r,o),!0;case"mouseover":return Wn=xu(Wn,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return Au.set(u,xu(Au.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,bu.set(u,xu(bu.get(u)||null,e,t,n,r,o)),!0}return!1}function Fm(e){var t=br(e.target);if(t!==null){var n=Ar(t);if(n!==null){if(t=n.tag,t===13){if(t=dm(n),t!==null){e.blockedOn=t,bm(e.priority,function(){Bm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cc=r,n.target.dispatchEvent(r),cc=null}else return t=Lu(n),t!==null&&Cc(t),e.blockedOn=n,!1;t.shift()}return!0}function Sm(e,t,n){mi(e)&&n.delete(t)}function gF(){wc=!1,zn!==null&&mi(zn)&&(zn=null),Vn!==null&&mi(Vn)&&(Vn=null),Wn!==null&&mi(Wn)&&(Wn=null),Au.forEach(Sm),bu.forEach(Sm)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,gF)))}function Su(e){function t(o){return Fu(o,e)}if(0<hi.length){Fu(hi[0],e);for(var n=1;n<hi.length;n++){var r=hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zn!==null&&Fu(zn,e),Vn!==null&&Fu(Vn,e),Wn!==null&&Fu(Wn,e),Au.forEach(t),bu.forEach(t),n=0;n<Un.length;n++)r=Un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Un.length&&(n=Un[0],n.blockedOn===null);)Fm(n),n.blockedOn===null&&Un.shift()}var fo=Dn.ReactCurrentBatchConfig,gi=!0;function yF(e,t,n,r){var o=ge,u=fo.transition;fo.transition=null;try{ge=1,Ec(e,t,n,r)}finally{ge=o,fo.transition=u}}function DF(e,t,n,r){var o=ge,u=fo.transition;fo.transition=null;try{ge=4,Ec(e,t,n,r)}finally{ge=o,fo.transition=u}}function Ec(e,t,n,r){if(gi){var o=Bc(e,t,n,r);if(o===null)Lc(e,t,r,yi,n),xm(e,r);else if(mF(o,e,t,n,r))r.stopPropagation();else if(xm(e,r),t&4&&-1<hF.indexOf(e)){for(;o!==null;){var u=Lu(o);if(u!==null&&Em(u),u=Bc(e,t,n,r),u===null&&Lc(e,t,r,yi,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else Lc(e,t,r,null,n)}}var yi=null;function Bc(e,t,n,r){if(yi=null,e=fc(r),e=br(e),e!==null)if(t=Ar(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return yi=e,null}function Om(e){switch(e){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(aF()){case mc:return 1;case ym:return 4;case ci:case iF:return 16;case Dm:return 536870912;default:return 16}default:return 16}}var Hn=null,Ac=null,Di=null;function _m(){if(Di)return Di;var e,t=Ac,n=t.length,r,o="value"in Hn?Hn.value:Hn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[u-r];r++);return Di=o.slice(e,1<r?1-r:void 0)}function Ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wi(){return!0}function Pm(){return!1}function bt(e){function t(n,r,o,u,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=a,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(u):u[i]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?wi:Pm,this.isPropagationStopped=Pm,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bc=bt(po),Ou=Fe({},po,{view:0,detail:0}),CF=bt(Ou),xc,Fc,_u,Ei=Fe({},Ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_u&&(_u&&e.type==="mousemove"?(xc=e.screenX-_u.screenX,Fc=e.screenY-_u.screenY):Fc=xc=0,_u=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:Fc}}),km=bt(Ei),wF=Fe({},Ei,{dataTransfer:0}),EF=bt(wF),BF=Fe({},Ou,{relatedTarget:0}),Sc=bt(BF),AF=Fe({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),bF=bt(AF),xF=Fe({},po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FF=bt(xF),SF=Fe({},po,{data:0}),Tm=bt(SF),OF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_F={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"},PF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PF[e])?!!t[e]:!1}function Oc(){return kF}var TF=Fe({},Ou,{key:function(e){if(e.key){var t=OF[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_F[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RF=bt(TF),NF=Fe({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rm=bt(NF),jF=Fe({},Ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),IF=bt(jF),MF=Fe({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),$F=bt(MF),LF=Fe({},Ei,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zF=bt(LF),VF=[9,13,27,32],_c=yn&&"CompositionEvent"in window,Pu=null;yn&&"documentMode"in document&&(Pu=document.documentMode);var WF=yn&&"TextEvent"in window&&!Pu,Nm=yn&&(!_c||Pu&&8<Pu&&11>=Pu),jm=" ",Im=!1;function Mm(e,t){switch(e){case"keyup":return VF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vo=!1;function UF(e,t){switch(e){case"compositionend":return $m(t);case"keypress":return t.which!==32?null:(Im=!0,jm);case"textInput":return e=t.data,e===jm&&Im?null:e;default:return null}}function HF(e,t){if(vo)return e==="compositionend"||!_c&&Mm(e,t)?(e=_m(),Di=Ac=Hn=null,vo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nm&&t.locale!=="ko"?null:t.data;default:return null}}var KF={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 Lm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KF[e.type]:t==="textarea"}function zm(e,t,n,r){im(r),t=Fi(t,"onChange"),0<t.length&&(n=new bc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ku=null,Tu=null;function qF(e){ug(e,0)}function Bi(e){var t=Do(e);if(Qh(t))return e}function YF(e,t){if(e==="change")return t}var Vm=!1;if(yn){var Pc;if(yn){var kc="oninput"in document;if(!kc){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),kc=typeof Wm.oninput=="function"}Pc=kc}else Pc=!1;Vm=Pc&&(!document.documentMode||9<document.documentMode)}function Um(){ku&&(ku.detachEvent("onpropertychange",Hm),Tu=ku=null)}function Hm(e){if(e.propertyName==="value"&&Bi(Tu)){var t=[];zm(t,Tu,e,fc(e)),fm(qF,t)}}function QF(e,t,n){e==="focusin"?(Um(),ku=t,Tu=n,ku.attachEvent("onpropertychange",Hm)):e==="focusout"&&Um()}function GF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Tu)}function XF(e,t){if(e==="click")return Bi(t)}function ZF(e,t){if(e==="input"||e==="change")return Bi(t)}function JF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:JF;function Ru(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Wl.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function Km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qm(e,t){var n=Km(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Km(n)}}function Ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qm(){for(var e=window,t=ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ai(e.document)}return t}function Tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function eS(e){var t=Qm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ym(n.ownerDocument.documentElement,n)){if(r!==null&&Tc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,u=Math.min(r.start,o);r=r.end===void 0?u:Math.min(r.end,o),!e.extend&&u>r&&(o=r,r=u,u=o),o=qm(n,u);var a=qm(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var tS=yn&&"documentMode"in document&&11>=document.documentMode,ho=null,Rc=null,Nu=null,Nc=!1;function Gm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nc||ho==null||ho!==ai(r)||(r=ho,"selectionStart"in r&&Tc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nu&&Ru(Nu,r)||(Nu=r,r=Fi(Rc,"onSelect"),0<r.length&&(t=new bc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ho)))}function Ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionend:Ai("Transition","TransitionEnd")},jc={},Xm={};yn&&(Xm=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function bi(e){if(jc[e])return jc[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xm)return jc[e]=t[n];return e}var Zm=bi("animationend"),Jm=bi("animationiteration"),eg=bi("animationstart"),tg=bi("transitionend"),ng=new Map,rg="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 Kn(e,t){ng.set(e,t),Br(t,[e])}for(var Ic=0;Ic<rg.length;Ic++){var Mc=rg[Ic],nS=Mc.toLowerCase(),rS=Mc[0].toUpperCase()+Mc.slice(1);Kn(nS,"on"+rS)}Kn(Zm,"onAnimationEnd"),Kn(Jm,"onAnimationIteration"),Kn(eg,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(tg,"onTransitionEnd"),uo("onMouseEnter",["mouseout","mouseover"]),uo("onMouseLeave",["mouseout","mouseover"]),uo("onPointerEnter",["pointerout","pointerover"]),uo("onPointerLeave",["pointerout","pointerover"]),Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Br("onBeforeInput",["compositionend","keypress","textInput","paste"]),Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ju="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(" "),oS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ju));function og(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,nF(r,t,void 0,e),e.currentTarget=null}function ug(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var a=r.length-1;0<=a;a--){var i=r[a],s=i.instance,l=i.currentTarget;if(i=i.listener,s!==u&&o.isPropagationStopped())break e;og(o,i,l),u=s}else for(a=0;a<r.length;a++){if(i=r[a],s=i.instance,l=i.currentTarget,i=i.listener,s!==u&&o.isPropagationStopped())break e;og(o,i,l),u=s}}}if(li)throw e=hc,li=!1,hc=null,e}function Ee(e,t){var n=t[Kc];n===void 0&&(n=t[Kc]=new Set);var r=e+"__bubble";n.has(r)||(ag(t,e,2,!1),n.add(r))}function $c(e,t,n){var r=0;t&&(r|=4),ag(n,e,r,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function Iu(e){if(!e[xi]){e[xi]=!0,zh.forEach(function(n){n!=="selectionchange"&&(oS.has(n)||$c(n,!1,e),$c(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,$c("selectionchange",!1,t))}}function ag(e,t,n,r){switch(Om(t)){case 1:var o=yF;break;case 4:o=DF;break;default:o=Ec}n=o.bind(null,t,n,e),o=void 0,!vc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Lc(e,t,n,r,o){var u=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;i!==null;){if(a=br(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}fm(function(){var l=u,c=fc(n),d=[];e:{var p=ng.get(e);if(p!==void 0){var y=bc,m=e;switch(e){case"keypress":if(Ci(n)===0)break e;case"keydown":case"keyup":y=RF;break;case"focusin":m="focus",y=Sc;break;case"focusout":m="blur",y=Sc;break;case"beforeblur":case"afterblur":y=Sc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=EF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=IF;break;case Zm:case Jm:case eg:y=bF;break;case tg:y=$F;break;case"scroll":y=CF;break;case"wheel":y=zF;break;case"copy":case"cut":case"paste":y=FF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Rm}var f=(t&4)!==0,w=!f&&e==="scroll",h=f?p!==null?p+"Capture":null:p;f=[];for(var g=l,C;g!==null;){C=g;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,h!==null&&(E=Du(g,h),E!=null&&f.push(Mu(g,E,C)))),w)break;g=g.return}0<f.length&&(p=new y(p,m,null,n,c),d.push({event:p,listeners:f}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==cc&&(m=n.relatedTarget||n.fromElement)&&(br(m)||m[Cn]))break e;if((y||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=l,m=m?br(m):null,m!==null&&(w=Ar(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=km,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Rm,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:Do(y),C=m==null?p:Do(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,br(c)===l&&(f=new f(h,g+"enter",m,n,c),f.target=C,f.relatedTarget=w,E=f),w=E,y&&m)t:{for(f=y,h=m,g=0,C=f;C;C=go(C))g++;for(C=0,E=h;E;E=go(E))C++;for(;0<g-C;)f=go(f),g--;for(;0<C-g;)h=go(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=go(f),h=go(h)}f=null}else f=null;y!==null&&ig(d,p,y,f,!1),m!==null&&w!==null&&ig(d,w,m,f,!0)}}e:{if(p=l?Do(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=YF;else if(Lm(p))if(Vm)B=ZF;else{B=GF;var x=QF}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=XF);if(B&&(B=B(e,l))){zm(d,B,n,c);break e}x&&x(e,p,l),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&uc(p,"number",p.value)}switch(x=l?Do(l):window,e){case"focusin":(Lm(x)||x.contentEditable==="true")&&(ho=x,Rc=l,Nu=null);break;case"focusout":Nu=Rc=ho=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,Gm(d,n,c);break;case"selectionchange":if(tS)break;case"keydown":case"keyup":Gm(d,n,c)}var A;if(_c)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else vo?Mm(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Nm&&n.locale!=="ko"&&(vo||S!=="onCompositionStart"?S==="onCompositionEnd"&&vo&&(A=_m()):(Hn=c,Ac="value"in Hn?Hn.value:Hn.textContent,vo=!0)),x=Fi(l,S),0<x.length&&(S=new Tm(S,e,null,n,c),d.push({event:S,listeners:x}),A?S.data=A:(A=$m(n),A!==null&&(S.data=A)))),(A=WF?UF(e,n):HF(e,n))&&(l=Fi(l,"onBeforeInput"),0<l.length&&(c=new Tm("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=A))}ug(d,t)})}function Mu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;o.tag===5&&u!==null&&(o=u,u=Du(e,n),u!=null&&r.unshift(Mu(e,u,o)),u=Du(e,t),u!=null&&r.push(Mu(e,u,o))),e=e.return}return r}function go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ig(e,t,n,r,o){for(var u=t._reactName,a=[];n!==null&&n!==r;){var i=n,s=i.alternate,l=i.stateNode;if(s!==null&&s===r)break;i.tag===5&&l!==null&&(i=l,o?(s=Du(n,u),s!=null&&a.unshift(Mu(n,s,i))):o||(s=Du(n,u),s!=null&&a.push(Mu(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var uS=/\r\n?/g,aS=/\u0000|\uFFFD/g;function sg(e){return(typeof e=="string"?e:""+e).replace(uS,`
|
39
|
-
`).replace(aS,"")}function Si(e,t,n){if(t=sg(t),sg(e)!==t&&n)throw Error(H(425))}function Oi(){}var zc=null,Vc=null;function Wc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uc=typeof setTimeout=="function"?setTimeout:void 0,iS=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,sS=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(e){return lg.resolve(null).then(e).catch(lS)}:Uc;function lS(e){setTimeout(function(){throw e})}function Hc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Su(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Su(t)}function qn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function cg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yo=Math.random().toString(36).slice(2),un="__reactFiber$"+yo,$u="__reactProps$"+yo,Cn="__reactContainer$"+yo,Kc="__reactEvents$"+yo,cS="__reactListeners$"+yo,fS="__reactHandles$"+yo;function br(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cg(e);e!==null;){if(n=e[un])return n;e=cg(e)}return t}e=n,n=e.parentNode}return null}function Lu(e){return e=e[un]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Do(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function _i(e){return e[$u]||null}var qc=[],Co=-1;function Yn(e){return{current:e}}function Be(e){0>Co||(e.current=qc[Co],qc[Co]=null,Co--)}function Ce(e,t){Co++,qc[Co]=e.current,e.current=t}var Qn={},Ze=Yn(Qn),dt=Yn(!1),xr=Qn;function wo(e,t){var n=e.type.contextTypes;if(!n)return Qn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},u;for(u in n)o[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return e=e.childContextTypes,e!=null}function Pi(){Be(dt),Be(Ze)}function fg(e,t,n){if(Ze.current!==Qn)throw Error(H(168));Ce(Ze,t),Ce(dt,n)}function dg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(H(108,Qx(e)||"Unknown",o));return Fe({},n,r)}function ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qn,xr=Ze.current,Ce(Ze,e),Ce(dt,dt.current),!0}function pg(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=dg(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,Be(dt),Be(Ze),Ce(Ze,e)):Be(dt),Ce(dt,n)}var wn=null,Ti=!1,Yc=!1;function vg(e){wn===null?wn=[e]:wn.push(e)}function dS(e){Ti=!0,vg(e)}function Gn(){if(!Yc&&wn!==null){Yc=!0;var e=0,t=ge;try{var n=wn;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Ti=!1}catch(o){throw wn!==null&&(wn=wn.slice(e+1)),mm(mc,Gn),o}finally{ge=t,Yc=!1}}return null}var Eo=[],Bo=0,Ri=null,Ni=0,Tt=[],Rt=0,Fr=null,En=1,Bn="";function Sr(e,t){Eo[Bo++]=Ni,Eo[Bo++]=Ri,Ri=e,Ni=t}function hg(e,t,n){Tt[Rt++]=En,Tt[Rt++]=Bn,Tt[Rt++]=Fr,Fr=e;var r=En;e=Bn;var o=32-Ht(r)-1;r&=~(1<<o),n+=1;var u=32-Ht(t)+o;if(30<u){var a=o-o%5;u=(r&(1<<a)-1).toString(32),r>>=a,o-=a,En=1<<32-Ht(t)+o|n<<o|r,Bn=u+e}else En=1<<u|n<<o|r,Bn=e}function Qc(e){e.return!==null&&(Sr(e,1),hg(e,1,0))}function Gc(e){for(;e===Ri;)Ri=Eo[--Bo],Eo[Bo]=null,Ni=Eo[--Bo],Eo[Bo]=null;for(;e===Fr;)Fr=Tt[--Rt],Tt[Rt]=null,Bn=Tt[--Rt],Tt[Rt]=null,En=Tt[--Rt],Tt[Rt]=null}var xt=null,Ft=null,be=!1,qt=null;function mg(e,t){var n=Mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function gg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,Ft=qn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fr!==null?{id:En,overflow:Bn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xt=e,Ft=null,!0):!1;default:return!1}}function Xc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zc(e){if(be){var t=Ft;if(t){var n=t;if(!gg(e,t)){if(Xc(e))throw Error(H(418));t=qn(n.nextSibling);var r=xt;t&&gg(e,t)?mg(r,n):(e.flags=e.flags&-4097|2,be=!1,xt=e)}}else{if(Xc(e))throw Error(H(418));e.flags=e.flags&-4097|2,be=!1,xt=e}}}function yg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function ji(e){if(e!==xt)return!1;if(!be)return yg(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wc(e.type,e.memoizedProps)),t&&(t=Ft)){if(Xc(e))throw Dg(),Error(H(418));for(;t;)mg(e,t),t=qn(t.nextSibling)}if(yg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ft=qn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=xt?qn(e.stateNode.nextSibling):null;return!0}function Dg(){for(var e=Ft;e;)e=qn(e.nextSibling)}function Ao(){Ft=xt=null,be=!1}function Jc(e){qt===null?qt=[e]:qt.push(e)}var pS=Dn.ReactCurrentBatchConfig;function zu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var o=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(a){var i=o.refs;a===null?delete i[u]:i[u]=a},t._stringRef=u,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Ii(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cg(e){var t=e._init;return t(e._payload)}function wg(e){function t(h,g){if(e){var C=h.deletions;C===null?(h.deletions=[g],h.flags|=16):C.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function o(h,g){return h=or(h,g),h.index=0,h.sibling=null,h}function u(h,g,C){return h.index=C,e?(C=h.alternate,C!==null?(C=C.index,C<g?(h.flags|=2,g):C):(h.flags|=2,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,g,C,E){return g===null||g.tag!==6?(g=Hf(C,h.mode,E),g.return=h,g):(g=o(g,C),g.return=h,g)}function s(h,g,C,E){var B=C.type;return B===io?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===$n&&Cg(B)===g.type)?(E=o(g,C.props),E.ref=zu(h,g,C),E.return=h,E):(E=is(C.type,C.key,C.props,null,h.mode,E),E.ref=zu(h,g,C),E.return=h,E)}function l(h,g,C,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==C.containerInfo||g.stateNode.implementation!==C.implementation?(g=Kf(C,h.mode,E),g.return=h,g):(g=o(g,C.children||[]),g.return=h,g)}function c(h,g,C,E,B){return g===null||g.tag!==7?(g=jr(C,h.mode,E,B),g.return=h,g):(g=o(g,C),g.return=h,g)}function d(h,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Hf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case oi:return C=is(g.type,g.key,g.props,null,h.mode,C),C.ref=zu(h,null,g),C.return=h,C;case ao:return g=Kf(g,h.mode,C),g.return=h,g;case $n:var E=g._init;return d(h,E(g._payload),C)}if(mu(g)||vu(g))return g=jr(g,h.mode,C,null),g.return=h,g;Ii(h,g)}return null}function p(h,g,C,E){var B=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return B!==null?null:i(h,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case oi:return C.key===B?s(h,g,C,E):null;case ao:return C.key===B?l(h,g,C,E):null;case $n:return B=C._init,p(h,g,B(C._payload),E)}if(mu(C)||vu(C))return B!==null?null:c(h,g,C,E,null);Ii(h,C)}return null}function y(h,g,C,E,B){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(C)||null,i(g,h,""+E,B);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case oi:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,B);case ao:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,B);case $n:var x=E._init;return y(h,g,C,x(E._payload),B)}if(mu(E)||vu(E))return h=h.get(C)||null,c(g,h,E,B,null);Ii(g,E)}return null}function m(h,g,C,E){for(var B=null,x=null,A=g,S=g=0,N=null;A!==null&&S<C.length;S++){A.index>S?(N=A,A=null):N=A.sibling;var O=p(h,A,C[S],E);if(O===null){A===null&&(A=N);break}e&&A&&O.alternate===null&&t(h,A),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O,A=N}if(S===C.length)return n(h,A),be&&Sr(h,S),B;if(A===null){for(;S<C.length;S++)A=d(h,C[S],E),A!==null&&(g=u(A,g,S),x===null?B=A:x.sibling=A,x=A);return be&&Sr(h,S),B}for(A=r(h,A);S<C.length;S++)N=y(A,h,S,C[S],E),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?S:N.key),g=u(N,g,S),x===null?B=N:x.sibling=N,x=N);return e&&A.forEach(function(V){return t(h,V)}),be&&Sr(h,S),B}function f(h,g,C,E){var B=vu(C);if(typeof B!="function")throw Error(H(150));if(C=B.call(C),C==null)throw Error(H(151));for(var x=B=null,A=g,S=g=0,N=null,O=C.next();A!==null&&!O.done;S++,O=C.next()){A.index>S?(N=A,A=null):N=A.sibling;var V=p(h,A,O.value,E);if(V===null){A===null&&(A=N);break}e&&A&&V.alternate===null&&t(h,A),g=u(V,g,S),x===null?B=V:x.sibling=V,x=V,A=N}if(O.done)return n(h,A),be&&Sr(h,S),B;if(A===null){for(;!O.done;S++,O=C.next())O=d(h,O.value,E),O!==null&&(g=u(O,g,S),x===null?B=O:x.sibling=O,x=O);return be&&Sr(h,S),B}for(A=r(h,A);!O.done;S++,O=C.next())O=y(A,h,S,O.value,E),O!==null&&(e&&O.alternate!==null&&A.delete(O.key===null?S:O.key),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O);return e&&A.forEach(function(P){return t(h,P)}),be&&Sr(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===io&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case oi:e:{for(var B=C.key,x=g;x!==null;){if(x.key===B){if(B=C.type,B===io){if(x.tag===7){n(h,x.sibling),g=o(x,C.props.children),g.return=h,h=g;break e}}else if(x.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===$n&&Cg(B)===x.type){n(h,x.sibling),g=o(x,C.props),g.ref=zu(h,x,C),g.return=h,h=g;break e}n(h,x);break}else t(h,x);x=x.sibling}C.type===io?(g=jr(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=is(C.type,C.key,C.props,null,h.mode,E),E.ref=zu(h,g,C),E.return=h,h=E)}return a(h);case ao:e:{for(x=C.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=Kf(C,h.mode,E),g.return=h,h=g}return a(h);case $n:return x=C._init,w(h,g,x(C._payload),E)}if(mu(C))return m(h,g,C,E);if(vu(C))return f(h,g,C,E);Ii(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=Hf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var bo=wg(!0),Eg=wg(!1),Mi=Yn(null),$i=null,xo=null,ef=null;function tf(){ef=xo=$i=null}function nf(e){var t=Mi.current;Be(Mi),e._currentValue=t}function rf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fo(e,t){$i=e,ef=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(ef!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if($i===null)throw Error(H(308));xo=e,$i.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Or=null;function of(e){Or===null?Or=[e]:Or.push(e)}function Bg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,of(t)):(n.next=o.next,o.next=n),t.interleaved=n,An(e,r)}function An(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xn=!1;function uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ag(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,An(e,n)}return o=r.interleaved,o===null?(t.next=t,of(r)):(t.next=o.next,o.next=t),r.interleaved=t,An(e,n)}function Li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dc(e,n)}}function bg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?o=u=a:u=u.next=a,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zi(e,t,n,r){var o=e.updateQueue;Xn=!1;var u=o.firstBaseUpdate,a=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var s=i,l=s.next;s.next=null,a===null?u=l:a.next=l,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==a&&(i===null?c.firstBaseUpdate=l:i.next=l,c.lastBaseUpdate=s))}if(u!==null){var d=o.baseState;a=0,c=l=s=null,i=u;do{var p=i.lane,y=i.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,f=i;switch(p=t,y=n,f.tag){case 1:if(m=f.payload,typeof m=="function"){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=f.payload,p=typeof m=="function"?m.call(y,d,p):m,p==null)break e;d=Fe({},d,p);break e;case 2:Xn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[i]:p.push(i))}else y={eventTime:y,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(l=c=y,s=d):c=c.next=y,a|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;p=i,i=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else u===null&&(o.shared.lanes=0);kr|=a,e.lanes=a,e.memoizedState=d}}function xg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(H(191,o));o.call(r)}}}var Vu={},an=Yn(Vu),Wu=Yn(Vu),Uu=Yn(Vu);function _r(e){if(e===Vu)throw Error(H(174));return e}function af(e,t){switch(Ce(Uu,t),Ce(Wu,e),Ce(an,Vu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ic(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ic(t,e)}Be(an),Ce(an,t)}function So(){Be(an),Be(Wu),Be(Uu)}function Fg(e){_r(Uu.current);var t=_r(an.current),n=ic(t,e.type);t!==n&&(Ce(Wu,e),Ce(an,n))}function sf(e){Wu.current===e&&(Be(an),Be(Wu))}var Se=Yn(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lf=[];function cf(){for(var e=0;e<lf.length;e++)lf[e]._workInProgressVersionPrimary=null;lf.length=0}var Wi=Dn.ReactCurrentDispatcher,ff=Dn.ReactCurrentBatchConfig,Pr=0,Oe=null,Me=null,ze=null,Ui=!1,Hu=!1,Ku=0,vS=0;function Je(){throw Error(H(321))}function df(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function pf(e,t,n,r,o,u){if(Pr=u,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wi.current=e===null||e.memoizedState===null?yS:DS,e=n(r,o),Hu){u=0;do{if(Hu=!1,Ku=0,25<=u)throw Error(H(301));u+=1,ze=Me=null,t.updateQueue=null,Wi.current=CS,e=n(r,o)}while(Hu)}if(Wi.current=qi,t=Me!==null&&Me.next!==null,Pr=0,ze=Me=Oe=null,Ui=!1,t)throw Error(H(300));return e}function vf(){var e=Ku!==0;return Ku=0,e}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?Oe.memoizedState=ze=e:ze=ze.next=e,ze}function jt(){if(Me===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=ze===null?Oe.memoizedState:ze.next;if(t!==null)ze=t,Me=e;else{if(e===null)throw Error(H(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},ze===null?Oe.memoizedState=ze=e:ze=ze.next=e}return ze}function qu(e,t){return typeof t=="function"?t(e):t}function hf(e){var t=jt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=Me,o=r.baseQueue,u=n.pending;if(u!==null){if(o!==null){var a=o.next;o.next=u.next,u.next=a}r.baseQueue=o=u,n.pending=null}if(o!==null){u=o.next,r=r.baseState;var i=a=null,s=null,l=u;do{var c=l.lane;if((Pr&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};s===null?(i=s=d,a=r):s=s.next=d,Oe.lanes|=c,kr|=c}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Kt(r,t.memoizedState)||(vt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do u=o.lane,Oe.lanes|=u,kr|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function mf(e){var t=jt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do u=e(u,a.action),a=a.next;while(a!==o);Kt(u,t.memoizedState)||(vt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Sg(){}function Og(e,t){var n=Oe,r=jt(),o=t(),u=!Kt(r.memoizedState,o);if(u&&(r.memoizedState=o,vt=!0),r=r.queue,gf(kg.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,Yu(9,Pg.bind(null,n,r,o,t),void 0,null),Ve===null)throw Error(H(349));Pr&30||_g(n,t,o)}return o}function _g(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pg(e,t,n,r){t.value=n,t.getSnapshot=r,Tg(t)&&Rg(e)}function kg(e,t,n){return n(function(){Tg(t)&&Rg(e)})}function Tg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Rg(e){var t=An(e,1);t!==null&&Xt(t,e,1,-1)}function Ng(e){var t=sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qu,lastRenderedState:e},t.queue=e,e=e.dispatch=gS.bind(null,Oe,e),[t.memoizedState,e]}function Yu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function jg(){return jt().memoizedState}function Hi(e,t,n,r){var o=sn();Oe.flags|=e,o.memoizedState=Yu(1|t,n,void 0,r===void 0?null:r)}function Ki(e,t,n,r){var o=jt();r=r===void 0?null:r;var u=void 0;if(Me!==null){var a=Me.memoizedState;if(u=a.destroy,r!==null&&df(r,a.deps)){o.memoizedState=Yu(t,n,u,r);return}}Oe.flags|=e,o.memoizedState=Yu(1|t,n,u,r)}function Ig(e,t){return Hi(8390656,8,e,t)}function gf(e,t){return Ki(2048,8,e,t)}function Mg(e,t){return Ki(4,2,e,t)}function $g(e,t){return Ki(4,4,e,t)}function Lg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zg(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4,4,Lg.bind(null,t,e),n)}function yf(){}function Vg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ug(e,t,n){return Pr&21?(Kt(n,t)||(n=Cm(),Oe.lanes|=n,kr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=n)}function hS(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=ff.transition;ff.transition={};try{e(!1),t()}finally{ge=n,ff.transition=r}}function Hg(){return jt().memoizedState}function mS(e,t,n){var r=nr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Kg(e))qg(t,n);else if(n=Bg(e,t,n,r),n!==null){var o=it();Xt(n,e,r,o),Yg(n,t,r)}}function gS(e,t,n){var r=nr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kg(e))qg(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var a=t.lastRenderedState,i=u(a,n);if(o.hasEagerState=!0,o.eagerState=i,Kt(i,a)){var s=t.interleaved;s===null?(o.next=o,of(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Bg(e,t,o,r),n!==null&&(o=it(),Xt(n,e,r,o),Yg(n,t,r))}}function Kg(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function qg(e,t){Hu=Ui=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dc(e,n)}}var qi={readContext:Nt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},yS={readContext:Nt,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Ig,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,Lg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mS.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:Ng,useDebugValue:yf,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=Ng(!1),t=e[0];return e=hS.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=sn();if(be){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ve===null)throw Error(H(349));Pr&30||_g(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Ig(kg.bind(null,r,u,e),[e]),r.flags|=2048,Yu(9,Pg.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=sn(),t=Ve.identifierPrefix;if(be){var n=Bn,r=En;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ku++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DS={readContext:Nt,useCallback:Vg,useContext:Nt,useEffect:gf,useImperativeHandle:zg,useInsertionEffect:Mg,useLayoutEffect:$g,useMemo:Wg,useReducer:hf,useRef:jg,useState:function(){return hf(qu)},useDebugValue:yf,useDeferredValue:function(e){var t=jt();return Ug(t,Me.memoizedState,e)},useTransition:function(){var e=hf(qu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:Og,useId:Hg,unstable_isNewReconciler:!1},CS={readContext:Nt,useCallback:Vg,useContext:Nt,useEffect:gf,useImperativeHandle:zg,useInsertionEffect:Mg,useLayoutEffect:$g,useMemo:Wg,useReducer:mf,useRef:jg,useState:function(){return mf(qu)},useDebugValue:yf,useDeferredValue:function(e){var t=jt();return Me===null?t.memoizedState=e:Ug(t,Me.memoizedState,e)},useTransition:function(){var e=mf(qu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:Og,useId:Hg,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Df(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yi={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),o=nr(e),u=bn(r,o);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,o),t!==null&&(Xt(t,e,o,r),Li(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),o=nr(e),u=bn(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,o),t!==null&&(Xt(t,e,o,r),Li(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=nr(e),o=bn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zn(e,o,r),t!==null&&(Xt(t,e,r,n),Li(t,e,r))}};function Qg(e,t,n,r,o,u,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,a):t.prototype&&t.prototype.isPureReactComponent?!Ru(n,r)||!Ru(o,u):!0}function Gg(e,t,n){var r=!1,o=Qn,u=t.contextType;return typeof u=="object"&&u!==null?u=Nt(u):(o=pt(t)?xr:Ze.current,r=t.contextTypes,u=(r=r!=null)?wo(e,o):Qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function Xg(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Yi.enqueueReplaceState(t,t.state,null)}function Cf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},uf(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Nt(u):(u=pt(t)?xr:Ze.current,o.context=wo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Df(e,t,u,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Yi.enqueueReplaceState(o,o.state,null),zi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Oo(e,t){try{var n="",r=t;do n+=Yx(r),r=r.return;while(r);var o=n}catch(u){o=`
|
38
|
+
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=i);break}}}finally{tc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mu(e):""}function Qx(e){switch(e.tag){case 5:return mu(e.type);case 16:return mu("Lazy");case 13:return mu("Suspense");case 19:return mu("SuspenseList");case 0:case 2:case 15:return e=nc(e.type,!1),e;case 11:return e=nc(e.type.render,!1),e;case 1:return e=nc(e.type,!0),e;default:return""}}function rc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case io:return"Fragment";case ao:return"Portal";case Ql:return"Profiler";case Yl:return"StrictMode";case Xl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kh:return(e.displayName||"Context")+".Consumer";case Hh:return(e._context.displayName||"Context")+".Provider";case Gl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jl:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}function Gx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rc(t);case 8:return t===Yl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xx(e){var t=Qh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,u.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=Xx(e))}function Gh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ii(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oc(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zh(e,t){t=t.checked,t!=null&&ql(e,"checked",t,!1)}function uc(e,t){Zh(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ac(e,t.type,n):t.hasOwnProperty("defaultValue")&&ac(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ac(e,t,n){(t!=="number"||ii(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gu=Array.isArray;function so(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ic(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return Fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function em(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(gu(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function tm(e,t){var n=Ln(t.value),r=Ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function nm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rm(e){switch(e){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 sc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var si,om=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(si=si||document.createElement("div"),si.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Du={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},Zx=["Webkit","ms","Moz","O"];Object.keys(Du).forEach(function(e){Zx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Du[t]=Du[e]})});function um(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Du.hasOwnProperty(e)&&Du[e]?(""+t).trim():t+"px"}function am(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=um(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Jx=Fe({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 lc(e,t){if(t){if(Jx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function cc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fc=null;function dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pc=null,lo=null,co=null;function im(e){if(e=zu(e)){if(typeof pc!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Pi(t),pc(e.stateNode,e.type,t))}}function sm(e){lo?co?co.push(e):co=[e]:lo=e}function lm(){if(lo){var e=lo,t=co;if(co=lo=null,im(e),t)for(e=0;e<t.length;e++)im(t[e])}}function cm(e,t){return e(t)}function fm(){}var vc=!1;function dm(e,t,n){if(vc)return e(t,n);vc=!0;try{return cm(e,t,n)}finally{vc=!1,(lo!==null||co!==null)&&(fm(),lm())}}function Cu(e,t){var n=e.stateNode;if(n===null)return null;var r=Pi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var hc=!1;if(yn)try{var wu={};Object.defineProperty(wu,"passive",{get:function(){hc=!0}}),window.addEventListener("test",wu,wu),window.removeEventListener("test",wu,wu)}catch{hc=!1}function eF(e,t,n,r,o,u,a,i,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Eu=!1,li=null,ci=!1,mc=null,tF={onError:function(e){Eu=!0,li=e}};function nF(e,t,n,r,o,u,a,i,s){Eu=!1,li=null,eF.apply(tF,arguments)}function rF(e,t,n,r,o,u,a,i,s){if(nF.apply(this,arguments),Eu){if(Eu){var l=li;Eu=!1,li=null}else throw Error(H(198));ci||(ci=!0,mc=l)}}function Ar(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vm(e){if(Ar(e)!==e)throw Error(H(188))}function oF(e){var t=e.alternate;if(!t){if(t=Ar(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return vm(o),e;if(u===r)return vm(o),t;u=u.sibling}throw Error(H(188))}if(n.return!==r.return)n=o,r=u;else{for(var a=!1,i=o.child;i;){if(i===n){a=!0,n=o,r=u;break}if(i===r){a=!0,r=o,n=u;break}i=i.sibling}if(!a){for(i=u.child;i;){if(i===n){a=!0,n=u,r=o;break}if(i===r){a=!0,r=u,n=o;break}i=i.sibling}if(!a)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function hm(e){return e=oF(e),e!==null?mm(e):null}function mm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mm(e);if(t!==null)return t;e=e.sibling}return null}var gm=At.unstable_scheduleCallback,ym=At.unstable_cancelCallback,uF=At.unstable_shouldYield,aF=At.unstable_requestPaint,Re=At.unstable_now,iF=At.unstable_getCurrentPriorityLevel,gc=At.unstable_ImmediatePriority,Dm=At.unstable_UserBlockingPriority,fi=At.unstable_NormalPriority,sF=At.unstable_LowPriority,Cm=At.unstable_IdlePriority,di=null,on=null;function lF(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(di,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:dF,cF=Math.log,fF=Math.LN2;function dF(e){return e>>>=0,e===0?32:31-(cF(e)/fF|0)|0}var pi=64,vi=4194304;function Bu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Bu(i):(u&=a,u!==0&&(r=Bu(u)))}else a=n&~o,a!==0?r=Bu(a):u!==0&&(r=Bu(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,u=t&-t,o>=u||o===16&&(u&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ht(t),o=1<<n,r|=e[n],t&=~o;return r}function pF(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 vF(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var a=31-Ht(u),i=1<<a,s=o[a];s===-1?(!(i&n)||i&r)&&(o[a]=pF(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function yc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wm(){var e=pi;return pi<<=1,!(pi&4194240)&&(pi=64),e}function Dc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Au(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function hF(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ht(n),u=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~u}}function Cc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ht(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ge=0;function Em(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Bm,wc,Am,bm,xm,Ec=!1,mi=[],zn=null,Vn=null,Wn=null,bu=new Map,xu=new Map,Un=[],mF="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 Fm(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xu.delete(t.pointerId)}}function Fu(e,t,n,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=zu(t),t!==null&&wc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function gF(e,t,n,r,o){switch(t){case"focusin":return zn=Fu(zn,e,t,n,r,o),!0;case"dragenter":return Vn=Fu(Vn,e,t,n,r,o),!0;case"mouseover":return Wn=Fu(Wn,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return bu.set(u,Fu(bu.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,xu.set(u,Fu(xu.get(u)||null,e,t,n,r,o)),!0}return!1}function Sm(e){var t=br(e.target);if(t!==null){var n=Ar(t);if(n!==null){if(t=n.tag,t===13){if(t=pm(n),t!==null){e.blockedOn=t,xm(e.priority,function(){Am(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ac(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fc=r,n.target.dispatchEvent(r),fc=null}else return t=zu(n),t!==null&&wc(t),e.blockedOn=n,!1;t.shift()}return!0}function Om(e,t,n){gi(e)&&n.delete(t)}function yF(){Ec=!1,zn!==null&&gi(zn)&&(zn=null),Vn!==null&&gi(Vn)&&(Vn=null),Wn!==null&&gi(Wn)&&(Wn=null),bu.forEach(Om),xu.forEach(Om)}function Su(e,t){e.blockedOn===t&&(e.blockedOn=null,Ec||(Ec=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,yF)))}function Ou(e){function t(o){return Su(o,e)}if(0<mi.length){Su(mi[0],e);for(var n=1;n<mi.length;n++){var r=mi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zn!==null&&Su(zn,e),Vn!==null&&Su(Vn,e),Wn!==null&&Su(Wn,e),bu.forEach(t),xu.forEach(t),n=0;n<Un.length;n++)r=Un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Un.length&&(n=Un[0],n.blockedOn===null);)Sm(n),n.blockedOn===null&&Un.shift()}var fo=Dn.ReactCurrentBatchConfig,yi=!0;function DF(e,t,n,r){var o=ge,u=fo.transition;fo.transition=null;try{ge=1,Bc(e,t,n,r)}finally{ge=o,fo.transition=u}}function CF(e,t,n,r){var o=ge,u=fo.transition;fo.transition=null;try{ge=4,Bc(e,t,n,r)}finally{ge=o,fo.transition=u}}function Bc(e,t,n,r){if(yi){var o=Ac(e,t,n,r);if(o===null)zc(e,t,r,Di,n),Fm(e,r);else if(gF(o,e,t,n,r))r.stopPropagation();else if(Fm(e,r),t&4&&-1<mF.indexOf(e)){for(;o!==null;){var u=zu(o);if(u!==null&&Bm(u),u=Ac(e,t,n,r),u===null&&zc(e,t,r,Di,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else zc(e,t,r,null,n)}}var Di=null;function Ac(e,t,n,r){if(Di=null,e=dc(r),e=br(e),e!==null)if(t=Ar(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Di=e,null}function _m(e){switch(e){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(iF()){case gc:return 1;case Dm:return 4;case fi:case sF:return 16;case Cm:return 536870912;default:return 16}default:return 16}}var Hn=null,bc=null,Ci=null;function Pm(){if(Ci)return Ci;var e,t=bc,n=t.length,r,o="value"in Hn?Hn.value:Hn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[u-r];r++);return Ci=o.slice(e,1<r?1-r:void 0)}function wi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ei(){return!0}function km(){return!1}function bt(e){function t(n,r,o,u,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=a,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(u):u[i]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ei:km,this.isPropagationStopped=km,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xc=bt(po),_u=Fe({},po,{view:0,detail:0}),wF=bt(_u),Fc,Sc,Pu,Bi=Fe({},_u,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_c,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pu&&(Pu&&e.type==="mousemove"?(Fc=e.screenX-Pu.screenX,Sc=e.screenY-Pu.screenY):Sc=Fc=0,Pu=e),Fc)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),Tm=bt(Bi),EF=Fe({},Bi,{dataTransfer:0}),BF=bt(EF),AF=Fe({},_u,{relatedTarget:0}),Oc=bt(AF),bF=Fe({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),xF=bt(bF),FF=Fe({},po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),SF=bt(FF),OF=Fe({},po,{data:0}),Rm=bt(OF),_F={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PF={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"},kF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kF[e])?!!t[e]:!1}function _c(){return TF}var RF=Fe({},_u,{key:function(e){if(e.key){var t=_F[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PF[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_c,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NF=bt(RF),jF=Fe({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nm=bt(jF),IF=Fe({},_u,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_c}),MF=bt(IF),$F=Fe({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),LF=bt($F),zF=Fe({},Bi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),VF=bt(zF),WF=[9,13,27,32],Pc=yn&&"CompositionEvent"in window,ku=null;yn&&"documentMode"in document&&(ku=document.documentMode);var UF=yn&&"TextEvent"in window&&!ku,jm=yn&&(!Pc||ku&&8<ku&&11>=ku),Im=" ",Mm=!1;function $m(e,t){switch(e){case"keyup":return WF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vo=!1;function HF(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(Mm=!0,Im);case"textInput":return e=t.data,e===Im&&Mm?null:e;default:return null}}function KF(e,t){if(vo)return e==="compositionend"||!Pc&&$m(e,t)?(e=Pm(),Ci=bc=Hn=null,vo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jm&&t.locale!=="ko"?null:t.data;default:return null}}var qF={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 zm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qF[e.type]:t==="textarea"}function Vm(e,t,n,r){sm(r),t=Si(t,"onChange"),0<t.length&&(n=new xc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tu=null,Ru=null;function YF(e){ag(e,0)}function Ai(e){var t=Do(e);if(Gh(t))return e}function QF(e,t){if(e==="change")return t}var Wm=!1;if(yn){var kc;if(yn){var Tc="oninput"in document;if(!Tc){var Um=document.createElement("div");Um.setAttribute("oninput","return;"),Tc=typeof Um.oninput=="function"}kc=Tc}else kc=!1;Wm=kc&&(!document.documentMode||9<document.documentMode)}function Hm(){Tu&&(Tu.detachEvent("onpropertychange",Km),Ru=Tu=null)}function Km(e){if(e.propertyName==="value"&&Ai(Ru)){var t=[];Vm(t,Ru,e,dc(e)),dm(YF,t)}}function GF(e,t,n){e==="focusin"?(Hm(),Tu=t,Ru=n,Tu.attachEvent("onpropertychange",Km)):e==="focusout"&&Hm()}function XF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(Ru)}function ZF(e,t){if(e==="click")return Ai(t)}function JF(e,t){if(e==="input"||e==="change")return Ai(t)}function eS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:eS;function Nu(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ul.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function qm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ym(e,t){var n=qm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qm(n)}}function Qm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gm(){for(var e=window,t=ii();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ii(e.document)}return t}function Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tS(e){var t=Gm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qm(n.ownerDocument.documentElement,n)){if(r!==null&&Rc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,u=Math.min(r.start,o);r=r.end===void 0?u:Math.min(r.end,o),!e.extend&&u>r&&(o=r,r=u,u=o),o=Ym(n,u);var a=Ym(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nS=yn&&"documentMode"in document&&11>=document.documentMode,ho=null,Nc=null,ju=null,jc=!1;function Xm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jc||ho==null||ho!==ii(r)||(r=ho,"selectionStart"in r&&Rc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ju&&Nu(ju,r)||(ju=r,r=Si(Nc,"onSelect"),0<r.length&&(t=new xc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ho)))}function bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},Ic={},Zm={};yn&&(Zm=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function xi(e){if(Ic[e])return Ic[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zm)return Ic[e]=t[n];return e}var Jm=xi("animationend"),eg=xi("animationiteration"),tg=xi("animationstart"),ng=xi("transitionend"),rg=new Map,og="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 Kn(e,t){rg.set(e,t),Br(t,[e])}for(var Mc=0;Mc<og.length;Mc++){var $c=og[Mc],rS=$c.toLowerCase(),oS=$c[0].toUpperCase()+$c.slice(1);Kn(rS,"on"+oS)}Kn(Jm,"onAnimationEnd"),Kn(eg,"onAnimationIteration"),Kn(tg,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(ng,"onTransitionEnd"),uo("onMouseEnter",["mouseout","mouseover"]),uo("onMouseLeave",["mouseout","mouseover"]),uo("onPointerEnter",["pointerout","pointerover"]),uo("onPointerLeave",["pointerout","pointerover"]),Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Br("onBeforeInput",["compositionend","keypress","textInput","paste"]),Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Iu="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(" "),uS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Iu));function ug(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,rF(r,t,void 0,e),e.currentTarget=null}function ag(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var a=r.length-1;0<=a;a--){var i=r[a],s=i.instance,l=i.currentTarget;if(i=i.listener,s!==u&&o.isPropagationStopped())break e;ug(o,i,l),u=s}else for(a=0;a<r.length;a++){if(i=r[a],s=i.instance,l=i.currentTarget,i=i.listener,s!==u&&o.isPropagationStopped())break e;ug(o,i,l),u=s}}}if(ci)throw e=mc,ci=!1,mc=null,e}function Ee(e,t){var n=t[qc];n===void 0&&(n=t[qc]=new Set);var r=e+"__bubble";n.has(r)||(ig(t,e,2,!1),n.add(r))}function Lc(e,t,n){var r=0;t&&(r|=4),ig(n,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function Mu(e){if(!e[Fi]){e[Fi]=!0,Vh.forEach(function(n){n!=="selectionchange"&&(uS.has(n)||Lc(n,!1,e),Lc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,Lc("selectionchange",!1,t))}}function ig(e,t,n,r){switch(_m(t)){case 1:var o=DF;break;case 4:o=CF;break;default:o=Bc}n=o.bind(null,t,n,e),o=void 0,!hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function zc(e,t,n,r,o){var u=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;i!==null;){if(a=br(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}dm(function(){var l=u,c=dc(n),d=[];e:{var p=rg.get(e);if(p!==void 0){var y=xc,m=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":y=NF;break;case"focusin":m="focus",y=Oc;break;case"focusout":m="blur",y=Oc;break;case"beforeblur":case"afterblur":y=Oc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Tm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=BF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=MF;break;case Jm:case eg:case tg:y=xF;break;case ng:y=LF;break;case"scroll":y=wF;break;case"wheel":y=VF;break;case"copy":case"cut":case"paste":y=SF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Nm}var f=(t&4)!==0,w=!f&&e==="scroll",h=f?p!==null?p+"Capture":null:p;f=[];for(var g=l,C;g!==null;){C=g;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,h!==null&&(E=Cu(g,h),E!=null&&f.push($u(g,E,C)))),w)break;g=g.return}0<f.length&&(p=new y(p,m,null,n,c),d.push({event:p,listeners:f}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==fc&&(m=n.relatedTarget||n.fromElement)&&(br(m)||m[Cn]))break e;if((y||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=l,m=m?br(m):null,m!==null&&(w=Ar(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=Tm,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Nm,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:Do(y),C=m==null?p:Do(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,br(c)===l&&(f=new f(h,g+"enter",m,n,c),f.target=C,f.relatedTarget=w,E=f),w=E,y&&m)t:{for(f=y,h=m,g=0,C=f;C;C=go(C))g++;for(C=0,E=h;E;E=go(E))C++;for(;0<g-C;)f=go(f),g--;for(;0<C-g;)h=go(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=go(f),h=go(h)}f=null}else f=null;y!==null&&sg(d,p,y,f,!1),m!==null&&w!==null&&sg(d,w,m,f,!0)}}e:{if(p=l?Do(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=QF;else if(zm(p))if(Wm)B=JF;else{B=XF;var x=GF}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=ZF);if(B&&(B=B(e,l))){Vm(d,B,n,c);break e}x&&x(e,p,l),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&ac(p,"number",p.value)}switch(x=l?Do(l):window,e){case"focusin":(zm(x)||x.contentEditable==="true")&&(ho=x,Nc=l,ju=null);break;case"focusout":ju=Nc=ho=null;break;case"mousedown":jc=!0;break;case"contextmenu":case"mouseup":case"dragend":jc=!1,Xm(d,n,c);break;case"selectionchange":if(nS)break;case"keydown":case"keyup":Xm(d,n,c)}var A;if(Pc)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else vo?$m(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(jm&&n.locale!=="ko"&&(vo||S!=="onCompositionStart"?S==="onCompositionEnd"&&vo&&(A=Pm()):(Hn=c,bc="value"in Hn?Hn.value:Hn.textContent,vo=!0)),x=Si(l,S),0<x.length&&(S=new Rm(S,e,null,n,c),d.push({event:S,listeners:x}),A?S.data=A:(A=Lm(n),A!==null&&(S.data=A)))),(A=UF?HF(e,n):KF(e,n))&&(l=Si(l,"onBeforeInput"),0<l.length&&(c=new Rm("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=A))}ag(d,t)})}function $u(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;o.tag===5&&u!==null&&(o=u,u=Cu(e,n),u!=null&&r.unshift($u(e,u,o)),u=Cu(e,t),u!=null&&r.push($u(e,u,o))),e=e.return}return r}function go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sg(e,t,n,r,o){for(var u=t._reactName,a=[];n!==null&&n!==r;){var i=n,s=i.alternate,l=i.stateNode;if(s!==null&&s===r)break;i.tag===5&&l!==null&&(i=l,o?(s=Cu(n,u),s!=null&&a.unshift($u(n,s,i))):o||(s=Cu(n,u),s!=null&&a.push($u(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var aS=/\r\n?/g,iS=/\u0000|\uFFFD/g;function lg(e){return(typeof e=="string"?e:""+e).replace(aS,`
|
39
|
+
`).replace(iS,"")}function Oi(e,t,n){if(t=lg(t),lg(e)!==t&&n)throw Error(H(425))}function _i(){}var Vc=null,Wc=null;function Uc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=typeof setTimeout=="function"?setTimeout:void 0,sS=typeof clearTimeout=="function"?clearTimeout:void 0,cg=typeof Promise=="function"?Promise:void 0,lS=typeof queueMicrotask=="function"?queueMicrotask:typeof cg<"u"?function(e){return cg.resolve(null).then(e).catch(cS)}:Hc;function cS(e){setTimeout(function(){throw e})}function Kc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ou(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ou(t)}function qn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var yo=Math.random().toString(36).slice(2),un="__reactFiber$"+yo,Lu="__reactProps$"+yo,Cn="__reactContainer$"+yo,qc="__reactEvents$"+yo,fS="__reactListeners$"+yo,dS="__reactHandles$"+yo;function br(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fg(e);e!==null;){if(n=e[un])return n;e=fg(e)}return t}e=n,n=e.parentNode}return null}function zu(e){return e=e[un]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Do(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function Pi(e){return e[Lu]||null}var Yc=[],Co=-1;function Yn(e){return{current:e}}function Be(e){0>Co||(e.current=Yc[Co],Yc[Co]=null,Co--)}function Ce(e,t){Co++,Yc[Co]=e.current,e.current=t}var Qn={},Ze=Yn(Qn),dt=Yn(!1),xr=Qn;function wo(e,t){var n=e.type.contextTypes;if(!n)return Qn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},u;for(u in n)o[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return e=e.childContextTypes,e!=null}function ki(){Be(dt),Be(Ze)}function dg(e,t,n){if(Ze.current!==Qn)throw Error(H(168));Ce(Ze,t),Ce(dt,n)}function pg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(H(108,Gx(e)||"Unknown",o));return Fe({},n,r)}function Ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qn,xr=Ze.current,Ce(Ze,e),Ce(dt,dt.current),!0}function vg(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=pg(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,Be(dt),Be(Ze),Ce(Ze,e)):Be(dt),Ce(dt,n)}var wn=null,Ri=!1,Qc=!1;function hg(e){wn===null?wn=[e]:wn.push(e)}function pS(e){Ri=!0,hg(e)}function Gn(){if(!Qc&&wn!==null){Qc=!0;var e=0,t=ge;try{var n=wn;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Ri=!1}catch(o){throw wn!==null&&(wn=wn.slice(e+1)),gm(gc,Gn),o}finally{ge=t,Qc=!1}}return null}var Eo=[],Bo=0,Ni=null,ji=0,Tt=[],Rt=0,Fr=null,En=1,Bn="";function Sr(e,t){Eo[Bo++]=ji,Eo[Bo++]=Ni,Ni=e,ji=t}function mg(e,t,n){Tt[Rt++]=En,Tt[Rt++]=Bn,Tt[Rt++]=Fr,Fr=e;var r=En;e=Bn;var o=32-Ht(r)-1;r&=~(1<<o),n+=1;var u=32-Ht(t)+o;if(30<u){var a=o-o%5;u=(r&(1<<a)-1).toString(32),r>>=a,o-=a,En=1<<32-Ht(t)+o|n<<o|r,Bn=u+e}else En=1<<u|n<<o|r,Bn=e}function Gc(e){e.return!==null&&(Sr(e,1),mg(e,1,0))}function Xc(e){for(;e===Ni;)Ni=Eo[--Bo],Eo[Bo]=null,ji=Eo[--Bo],Eo[Bo]=null;for(;e===Fr;)Fr=Tt[--Rt],Tt[Rt]=null,Bn=Tt[--Rt],Tt[Rt]=null,En=Tt[--Rt],Tt[Rt]=null}var xt=null,Ft=null,be=!1,qt=null;function gg(e,t){var n=Mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function yg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,Ft=qn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fr!==null?{id:En,overflow:Bn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xt=e,Ft=null,!0):!1;default:return!1}}function Zc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jc(e){if(be){var t=Ft;if(t){var n=t;if(!yg(e,t)){if(Zc(e))throw Error(H(418));t=qn(n.nextSibling);var r=xt;t&&yg(e,t)?gg(r,n):(e.flags=e.flags&-4097|2,be=!1,xt=e)}}else{if(Zc(e))throw Error(H(418));e.flags=e.flags&-4097|2,be=!1,xt=e}}}function Dg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function Ii(e){if(e!==xt)return!1;if(!be)return Dg(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Uc(e.type,e.memoizedProps)),t&&(t=Ft)){if(Zc(e))throw Cg(),Error(H(418));for(;t;)gg(e,t),t=qn(t.nextSibling)}if(Dg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ft=qn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=xt?qn(e.stateNode.nextSibling):null;return!0}function Cg(){for(var e=Ft;e;)e=qn(e.nextSibling)}function Ao(){Ft=xt=null,be=!1}function ef(e){qt===null?qt=[e]:qt.push(e)}var vS=Dn.ReactCurrentBatchConfig;function Vu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var o=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(a){var i=o.refs;a===null?delete i[u]:i[u]=a},t._stringRef=u,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Mi(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wg(e){var t=e._init;return t(e._payload)}function Eg(e){function t(h,g){if(e){var C=h.deletions;C===null?(h.deletions=[g],h.flags|=16):C.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function o(h,g){return h=or(h,g),h.index=0,h.sibling=null,h}function u(h,g,C){return h.index=C,e?(C=h.alternate,C!==null?(C=C.index,C<g?(h.flags|=2,g):C):(h.flags|=2,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,g,C,E){return g===null||g.tag!==6?(g=Kf(C,h.mode,E),g.return=h,g):(g=o(g,C),g.return=h,g)}function s(h,g,C,E){var B=C.type;return B===io?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===$n&&wg(B)===g.type)?(E=o(g,C.props),E.ref=Vu(h,g,C),E.return=h,E):(E=ss(C.type,C.key,C.props,null,h.mode,E),E.ref=Vu(h,g,C),E.return=h,E)}function l(h,g,C,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==C.containerInfo||g.stateNode.implementation!==C.implementation?(g=qf(C,h.mode,E),g.return=h,g):(g=o(g,C.children||[]),g.return=h,g)}function c(h,g,C,E,B){return g===null||g.tag!==7?(g=jr(C,h.mode,E,B),g.return=h,g):(g=o(g,C),g.return=h,g)}function d(h,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Kf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ui:return C=ss(g.type,g.key,g.props,null,h.mode,C),C.ref=Vu(h,null,g),C.return=h,C;case ao:return g=qf(g,h.mode,C),g.return=h,g;case $n:var E=g._init;return d(h,E(g._payload),C)}if(gu(g)||hu(g))return g=jr(g,h.mode,C,null),g.return=h,g;Mi(h,g)}return null}function p(h,g,C,E){var B=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return B!==null?null:i(h,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ui:return C.key===B?s(h,g,C,E):null;case ao:return C.key===B?l(h,g,C,E):null;case $n:return B=C._init,p(h,g,B(C._payload),E)}if(gu(C)||hu(C))return B!==null?null:c(h,g,C,E,null);Mi(h,C)}return null}function y(h,g,C,E,B){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(C)||null,i(g,h,""+E,B);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ui:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,B);case ao:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,B);case $n:var x=E._init;return y(h,g,C,x(E._payload),B)}if(gu(E)||hu(E))return h=h.get(C)||null,c(g,h,E,B,null);Mi(g,E)}return null}function m(h,g,C,E){for(var B=null,x=null,A=g,S=g=0,N=null;A!==null&&S<C.length;S++){A.index>S?(N=A,A=null):N=A.sibling;var O=p(h,A,C[S],E);if(O===null){A===null&&(A=N);break}e&&A&&O.alternate===null&&t(h,A),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O,A=N}if(S===C.length)return n(h,A),be&&Sr(h,S),B;if(A===null){for(;S<C.length;S++)A=d(h,C[S],E),A!==null&&(g=u(A,g,S),x===null?B=A:x.sibling=A,x=A);return be&&Sr(h,S),B}for(A=r(h,A);S<C.length;S++)N=y(A,h,S,C[S],E),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?S:N.key),g=u(N,g,S),x===null?B=N:x.sibling=N,x=N);return e&&A.forEach(function(W){return t(h,W)}),be&&Sr(h,S),B}function f(h,g,C,E){var B=hu(C);if(typeof B!="function")throw Error(H(150));if(C=B.call(C),C==null)throw Error(H(151));for(var x=B=null,A=g,S=g=0,N=null,O=C.next();A!==null&&!O.done;S++,O=C.next()){A.index>S?(N=A,A=null):N=A.sibling;var W=p(h,A,O.value,E);if(W===null){A===null&&(A=N);break}e&&A&&W.alternate===null&&t(h,A),g=u(W,g,S),x===null?B=W:x.sibling=W,x=W,A=N}if(O.done)return n(h,A),be&&Sr(h,S),B;if(A===null){for(;!O.done;S++,O=C.next())O=d(h,O.value,E),O!==null&&(g=u(O,g,S),x===null?B=O:x.sibling=O,x=O);return be&&Sr(h,S),B}for(A=r(h,A);!O.done;S++,O=C.next())O=y(A,h,S,O.value,E),O!==null&&(e&&O.alternate!==null&&A.delete(O.key===null?S:O.key),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O);return e&&A.forEach(function(P){return t(h,P)}),be&&Sr(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===io&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ui:e:{for(var B=C.key,x=g;x!==null;){if(x.key===B){if(B=C.type,B===io){if(x.tag===7){n(h,x.sibling),g=o(x,C.props.children),g.return=h,h=g;break e}}else if(x.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===$n&&wg(B)===x.type){n(h,x.sibling),g=o(x,C.props),g.ref=Vu(h,x,C),g.return=h,h=g;break e}n(h,x);break}else t(h,x);x=x.sibling}C.type===io?(g=jr(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=ss(C.type,C.key,C.props,null,h.mode,E),E.ref=Vu(h,g,C),E.return=h,h=E)}return a(h);case ao:e:{for(x=C.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=qf(C,h.mode,E),g.return=h,h=g}return a(h);case $n:return x=C._init,w(h,g,x(C._payload),E)}if(gu(C))return m(h,g,C,E);if(hu(C))return f(h,g,C,E);Mi(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=Kf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var bo=Eg(!0),Bg=Eg(!1),$i=Yn(null),Li=null,xo=null,tf=null;function nf(){tf=xo=Li=null}function rf(e){var t=$i.current;Be($i),e._currentValue=t}function of(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fo(e,t){Li=e,tf=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(tf!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if(Li===null)throw Error(H(308));xo=e,Li.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Or=null;function uf(e){Or===null?Or=[e]:Or.push(e)}function Ag(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,An(e,r)}function An(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xn=!1;function af(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,An(e,n)}return o=r.interleaved,o===null?(t.next=t,uf(r)):(t.next=o.next,o.next=t),r.interleaved=t,An(e,n)}function zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cc(e,n)}}function xg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?o=u=a:u=u.next=a,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Xn=!1;var u=o.firstBaseUpdate,a=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var s=i,l=s.next;s.next=null,a===null?u=l:a.next=l,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==a&&(i===null?c.firstBaseUpdate=l:i.next=l,c.lastBaseUpdate=s))}if(u!==null){var d=o.baseState;a=0,c=l=s=null,i=u;do{var p=i.lane,y=i.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,f=i;switch(p=t,y=n,f.tag){case 1:if(m=f.payload,typeof m=="function"){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=f.payload,p=typeof m=="function"?m.call(y,d,p):m,p==null)break e;d=Fe({},d,p);break e;case 2:Xn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[i]:p.push(i))}else y={eventTime:y,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(l=c=y,s=d):c=c.next=y,a|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;p=i,i=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else u===null&&(o.shared.lanes=0);kr|=a,e.lanes=a,e.memoizedState=d}}function Fg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(H(191,o));o.call(r)}}}var Wu={},an=Yn(Wu),Uu=Yn(Wu),Hu=Yn(Wu);function _r(e){if(e===Wu)throw Error(H(174));return e}function sf(e,t){switch(Ce(Hu,t),Ce(Uu,e),Ce(an,Wu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sc(t,e)}Be(an),Ce(an,t)}function So(){Be(an),Be(Uu),Be(Hu)}function Sg(e){_r(Hu.current);var t=_r(an.current),n=sc(t,e.type);t!==n&&(Ce(Uu,e),Ce(an,n))}function lf(e){Uu.current===e&&(Be(an),Be(Uu))}var Se=Yn(0);function Wi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cf=[];function ff(){for(var e=0;e<cf.length;e++)cf[e]._workInProgressVersionPrimary=null;cf.length=0}var Ui=Dn.ReactCurrentDispatcher,df=Dn.ReactCurrentBatchConfig,Pr=0,Oe=null,Me=null,ze=null,Hi=!1,Ku=!1,qu=0,hS=0;function Je(){throw Error(H(321))}function pf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function vf(e,t,n,r,o,u){if(Pr=u,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ui.current=e===null||e.memoizedState===null?DS:CS,e=n(r,o),Ku){u=0;do{if(Ku=!1,qu=0,25<=u)throw Error(H(301));u+=1,ze=Me=null,t.updateQueue=null,Ui.current=wS,e=n(r,o)}while(Ku)}if(Ui.current=Yi,t=Me!==null&&Me.next!==null,Pr=0,ze=Me=Oe=null,Hi=!1,t)throw Error(H(300));return e}function hf(){var e=qu!==0;return qu=0,e}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?Oe.memoizedState=ze=e:ze=ze.next=e,ze}function jt(){if(Me===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=ze===null?Oe.memoizedState:ze.next;if(t!==null)ze=t,Me=e;else{if(e===null)throw Error(H(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},ze===null?Oe.memoizedState=ze=e:ze=ze.next=e}return ze}function Yu(e,t){return typeof t=="function"?t(e):t}function mf(e){var t=jt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=Me,o=r.baseQueue,u=n.pending;if(u!==null){if(o!==null){var a=o.next;o.next=u.next,u.next=a}r.baseQueue=o=u,n.pending=null}if(o!==null){u=o.next,r=r.baseState;var i=a=null,s=null,l=u;do{var c=l.lane;if((Pr&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};s===null?(i=s=d,a=r):s=s.next=d,Oe.lanes|=c,kr|=c}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Kt(r,t.memoizedState)||(vt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do u=o.lane,Oe.lanes|=u,kr|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gf(e){var t=jt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do u=e(u,a.action),a=a.next;while(a!==o);Kt(u,t.memoizedState)||(vt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Og(){}function _g(e,t){var n=Oe,r=jt(),o=t(),u=!Kt(r.memoizedState,o);if(u&&(r.memoizedState=o,vt=!0),r=r.queue,yf(Tg.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,Qu(9,kg.bind(null,n,r,o,t),void 0,null),Ve===null)throw Error(H(349));Pr&30||Pg(n,t,o)}return o}function Pg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kg(e,t,n,r){t.value=n,t.getSnapshot=r,Rg(t)&&Ng(e)}function Tg(e,t,n){return n(function(){Rg(t)&&Ng(e)})}function Rg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Ng(e){var t=An(e,1);t!==null&&Xt(t,e,1,-1)}function jg(e){var t=sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yu,lastRenderedState:e},t.queue=e,e=e.dispatch=yS.bind(null,Oe,e),[t.memoizedState,e]}function Qu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ig(){return jt().memoizedState}function Ki(e,t,n,r){var o=sn();Oe.flags|=e,o.memoizedState=Qu(1|t,n,void 0,r===void 0?null:r)}function qi(e,t,n,r){var o=jt();r=r===void 0?null:r;var u=void 0;if(Me!==null){var a=Me.memoizedState;if(u=a.destroy,r!==null&&pf(r,a.deps)){o.memoizedState=Qu(t,n,u,r);return}}Oe.flags|=e,o.memoizedState=Qu(1|t,n,u,r)}function Mg(e,t){return Ki(8390656,8,e,t)}function yf(e,t){return qi(2048,8,e,t)}function $g(e,t){return qi(4,2,e,t)}function Lg(e,t){return qi(4,4,e,t)}function zg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vg(e,t,n){return n=n!=null?n.concat([e]):null,qi(4,4,zg.bind(null,t,e),n)}function Df(){}function Wg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ug(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hg(e,t,n){return Pr&21?(Kt(n,t)||(n=wm(),Oe.lanes|=n,kr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=n)}function mS(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=df.transition;df.transition={};try{e(!1),t()}finally{ge=n,df.transition=r}}function Kg(){return jt().memoizedState}function gS(e,t,n){var r=nr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qg(e))Yg(t,n);else if(n=Ag(e,t,n,r),n!==null){var o=it();Xt(n,e,r,o),Qg(n,t,r)}}function yS(e,t,n){var r=nr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qg(e))Yg(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var a=t.lastRenderedState,i=u(a,n);if(o.hasEagerState=!0,o.eagerState=i,Kt(i,a)){var s=t.interleaved;s===null?(o.next=o,uf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Ag(e,t,o,r),n!==null&&(o=it(),Xt(n,e,r,o),Qg(n,t,r))}}function qg(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Yg(e,t){Ku=Hi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cc(e,n)}}var Yi={readContext:Nt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},DS={readContext:Nt,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Mg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4194308,4,zg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ki(4,2,e,t)},useMemo:function(e,t){var n=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=gS.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:jg,useDebugValue:Df,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=jg(!1),t=e[0];return e=mS.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=sn();if(be){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ve===null)throw Error(H(349));Pr&30||Pg(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Mg(Tg.bind(null,r,u,e),[e]),r.flags|=2048,Qu(9,kg.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=sn(),t=Ve.identifierPrefix;if(be){var n=Bn,r=En;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},CS={readContext:Nt,useCallback:Wg,useContext:Nt,useEffect:yf,useImperativeHandle:Vg,useInsertionEffect:$g,useLayoutEffect:Lg,useMemo:Ug,useReducer:mf,useRef:Ig,useState:function(){return mf(Yu)},useDebugValue:Df,useDeferredValue:function(e){var t=jt();return Hg(t,Me.memoizedState,e)},useTransition:function(){var e=mf(Yu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Og,useSyncExternalStore:_g,useId:Kg,unstable_isNewReconciler:!1},wS={readContext:Nt,useCallback:Wg,useContext:Nt,useEffect:yf,useImperativeHandle:Vg,useInsertionEffect:$g,useLayoutEffect:Lg,useMemo:Ug,useReducer:gf,useRef:Ig,useState:function(){return gf(Yu)},useDebugValue:Df,useDeferredValue:function(e){var t=jt();return Me===null?t.memoizedState=e:Hg(t,Me.memoizedState,e)},useTransition:function(){var e=gf(Yu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Og,useSyncExternalStore:_g,useId:Kg,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qi={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),o=nr(e),u=bn(r,o);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,o),t!==null&&(Xt(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),o=nr(e),u=bn(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,o),t!==null&&(Xt(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=nr(e),o=bn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zn(e,o,r),t!==null&&(Xt(t,e,r,n),zi(t,e,r))}};function Gg(e,t,n,r,o,u,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,a):t.prototype&&t.prototype.isPureReactComponent?!Nu(n,r)||!Nu(o,u):!0}function Xg(e,t,n){var r=!1,o=Qn,u=t.contextType;return typeof u=="object"&&u!==null?u=Nt(u):(o=pt(t)?xr:Ze.current,r=t.contextTypes,u=(r=r!=null)?wo(e,o):Qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function Zg(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qi.enqueueReplaceState(t,t.state,null)}function wf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},af(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Nt(u):(u=pt(t)?xr:Ze.current,o.context=wo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Cf(e,t,u,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Qi.enqueueReplaceState(o,o.state,null),Vi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Oo(e,t){try{var n="",r=t;do n+=Qx(r),r=r.return;while(r);var o=n}catch(u){o=`
|
40
40
|
Error generating stack: `+u.message+`
|
41
|
-
`+u.stack}return{value:e,source:t,stack:o,digest:null}}function wf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ef(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wS=typeof WeakMap=="function"?WeakMap:Map;function Zg(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ts||(ts=!0,If=r),Ef(e,t)},n}function Jg(e,t,n){n=bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ef(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ef(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function e0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=NS.bind(null,e,t,n),t.then(e,e))}function t0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function n0(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e)}var ES=Dn.ReactCurrentOwner,vt=!1;function at(e,t,n,r){t.child=e===null?Eg(t,null,n,r):bo(t,e.child,n,r)}function r0(e,t,n,r,o){n=n.render;var u=t.ref;return Fo(t,o),r=pf(e,t,n,r,u,o),n=vf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xn(e,t,o)):(be&&n&&Qc(t),t.flags|=1,at(e,t,r,o),t.child)}function o0(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Uf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,u0(e,t,u,r,o)):(e=is(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&o)){var a=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ru,n(a,r)&&e.ref===t.ref)return xn(e,t,o)}return t.flags|=1,e=or(u,r),e.ref=t.ref,e.return=t,t.child=e}function u0(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(Ru(u,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,xn(e,t,o)}return Bf(e,t,n,r,o)}function a0(e,t,n){var r=t.pendingProps,o=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Po,St),St|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(Po,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Ce(Po,St),St|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Ce(Po,St),St|=r;return at(e,t,o,n),t.child}function i0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bf(e,t,n,r,o){var u=pt(n)?xr:Ze.current;return u=wo(t,u),Fo(t,o),n=pf(e,t,n,r,u,o),r=vf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xn(e,t,o)):(be&&r&&Qc(t),t.flags|=1,at(e,t,n,o),t.child)}function s0(e,t,n,r,o){if(pt(n)){var u=!0;ki(t)}else u=!1;if(Fo(t,o),t.stateNode===null)Gi(e,t),Gg(t,n,r),Cf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,i=t.memoizedProps;a.props=i;var s=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Nt(l):(l=pt(n)?xr:Ze.current,l=wo(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==r||s!==l)&&Xg(t,a,r,l),Xn=!1;var p=t.memoizedState;a.state=p,zi(t,r,a,o),s=t.memoizedState,i!==r||p!==s||dt.current||Xn?(typeof c=="function"&&(Df(t,n,c,r),s=t.memoizedState),(i=Xn||Qg(t,n,i,r,p,s,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=i):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ag(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:Yt(t.type,i),a.props=l,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Nt(s):(s=pt(n)?xr:Ze.current,s=wo(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==d||p!==s)&&Xg(t,a,r,s),Xn=!1,p=t.memoizedState,a.state=p,zi(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||dt.current||Xn?(typeof y=="function"&&(Df(t,n,y,r),m=t.memoizedState),(l=Xn||Qg(t,n,l,r,p,m,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=l):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Af(e,t,n,r,u,o)}function Af(e,t,n,r,o,u){i0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&pg(t,n,!1),xn(e,t,u);r=t.stateNode,ES.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=bo(t,e.child,null,u),t.child=bo(t,null,i,u)):at(e,t,i,u),t.memoizedState=r.state,o&&pg(t,n,!0),t.child}function l0(e){var t=e.stateNode;t.pendingContext?fg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fg(e,t.context,!1),af(e,t.containerInfo)}function c0(e,t,n,r,o){return Ao(),Jc(o),t.flags|=256,at(e,t,n,r),t.child}var bf={dehydrated:null,treeContext:null,retryLane:0};function xf(e){return{baseLanes:e,cachePool:null,transitions:null}}function f0(e,t,n){var r=t.pendingProps,o=Se.current,u=!1,a=(t.flags&128)!==0,i;if((i=a)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ce(Se,o&1),e===null)return Zc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,u?(r=t.mode,u=t.child,a={mode:"hidden",children:a},!(r&1)&&u!==null?(u.childLanes=0,u.pendingProps=a):u=ss(a,r,0,null),e=jr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=xf(n),t.memoizedState=bf,e):Ff(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return BS(e,t,a,r,i,o,n);if(u){u=r.fallback,a=t.mode,o=e.child,i=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=or(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=or(i,u):(u=jr(u,a,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,a=e.child.memoizedState,a=a===null?xf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=bf,r}return u=e.child,e=u.sibling,r=or(u,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ff(e,t){return t=ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&Jc(r),bo(t,e.child,null,n),e=Ff(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BS(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=wf(Error(H(422))),Qi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=ss({mode:"visible",children:r.children},o,0,null),u=jr(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&bo(t,e.child,null,a),t.child.memoizedState=xf(a),t.memoizedState=bf,u);if(!(t.mode&1))return Qi(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,u=Error(H(419)),r=wf(u,r,void 0),Qi(e,t,a,r)}if(i=(a&e.childLanes)!==0,vt||i){if(r=Ve,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==u.retryLane&&(u.retryLane=o,An(e,o),Xt(r,e,o,-1))}return Wf(),r=wf(Error(H(421))),Qi(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=jS.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,Ft=qn(o.nextSibling),xt=t,be=!0,qt=null,e!==null&&(Tt[Rt++]=En,Tt[Rt++]=Bn,Tt[Rt++]=Fr,En=e.id,Bn=e.overflow,Fr=t),t=Ff(t,r.children),t.flags|=4096,t)}function d0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rf(e.return,t,n)}function Sf(e,t,n,r,o){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=o)}function p0(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(at(e,t,r.children,n),r=Se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&d0(e,n,t);else if(e.tag===19)d0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ce(Se,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Vi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sf(t,!1,o,n,u);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Vi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sf(t,!0,n,null,u);break;case"together":Sf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function AS(e,t,n){switch(t.tag){case 3:l0(t),Ao();break;case 5:Fg(t);break;case 1:pt(t.type)&&ki(t);break;case 4:af(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ce(Mi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?f0(e,t,n):(Ce(Se,Se.current&1),e=xn(e,t,n),e!==null?e.sibling:null);Ce(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return p0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ce(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,a0(e,t,n)}return xn(e,t,n)}var v0,Of,h0,m0;v0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Of=function(){},h0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,_r(an.current);var u=null;switch(n){case"input":o=rc(e,o),r=rc(e,r),u=[];break;case"select":o=Fe({},o,{value:void 0}),r=Fe({},r,{value:void 0}),u=[];break;case"textarea":o=ac(e,o),r=ac(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oi)}sc(n,r);var a;n=null;for(l in o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var i=o[l];for(a in i)i.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(pu.hasOwnProperty(l)?u||(u=[]):(u=u||[]).push(l,null));for(l in r){var s=r[l];if(i=o!=null?o[l]:void 0,r.hasOwnProperty(l)&&s!==i&&(s!=null||i!=null))if(l==="style")if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(u||(u=[]),u.push(l,n)),n=s;else l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(u=u||[]).push(l,s)):l==="children"?typeof s!="string"&&typeof s!="number"||(u=u||[]).push(l,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(pu.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&Ee("scroll",e),u||i===s||(u=[])):(u=u||[]).push(l,s))}n&&(u=u||[]).push("style",n);var l=u;(t.updateQueue=l)&&(t.flags|=4)}},m0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qu(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bS(e,t,n){var r=t.pendingProps;switch(Gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return pt(t.type)&&Pi(),et(t),null;case 3:return r=t.stateNode,So(),Be(dt),Be(Ze),cf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qt!==null&&(Lf(qt),qt=null))),Of(e,t),et(t),null;case 5:sf(t);var o=_r(Uu.current);if(n=t.type,e!==null&&t.stateNode!=null)h0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return et(t),null}if(e=_r(an.current),ji(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[un]=t,r[$u]=u,e=(t.mode&1)!==0,n){case"dialog":Ee("cancel",r),Ee("close",r);break;case"iframe":case"object":case"embed":Ee("load",r);break;case"video":case"audio":for(o=0;o<ju.length;o++)Ee(ju[o],r);break;case"source":Ee("error",r);break;case"img":case"image":case"link":Ee("error",r),Ee("load",r);break;case"details":Ee("toggle",r);break;case"input":Gh(r,u),Ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Ee("invalid",r);break;case"textarea":Jh(r,u),Ee("invalid",r)}sc(n,u),o=null;for(var a in u)if(u.hasOwnProperty(a)){var i=u[a];a==="children"?typeof i=="string"?r.textContent!==i&&(u.suppressHydrationWarning!==!0&&Si(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&Si(r.textContent,i,e),o=["children",""+i]):pu.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&Ee("scroll",r)}switch(n){case"input":ui(r),Zh(r,u,!0);break;case"textarea":ui(r),tm(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=Oi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[un]=t,e[$u]=r,v0(e,t,!1,!1),t.stateNode=e;e:{switch(a=lc(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),o=r;break;case"iframe":case"object":case"embed":Ee("load",e),o=r;break;case"video":case"audio":for(o=0;o<ju.length;o++)Ee(ju[o],e);o=r;break;case"source":Ee("error",e),o=r;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),o=r;break;case"details":Ee("toggle",e),o=r;break;case"input":Gh(e,r),o=rc(e,r),Ee("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Fe({},r,{value:void 0}),Ee("invalid",e);break;case"textarea":Jh(e,r),o=ac(e,r),Ee("invalid",e);break;default:o=r}sc(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?um(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&rm(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&gu(e,s):typeof s=="number"&&gu(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(pu.hasOwnProperty(u)?s!=null&&u==="onScroll"&&Ee("scroll",e):s!=null&&Kl(e,u,s,a))}switch(n){case"input":ui(e),Zh(e,r,!1);break;case"textarea":ui(e),tm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?so(e,!!r.multiple,u,!1):r.defaultValue!=null&&so(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Oi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)m0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=_r(Uu.current),_r(an.current),ji(t)){if(r=t.stateNode,n=t.memoizedProps,r[un]=t,(u=r.nodeValue!==n)&&(e=xt,e!==null))switch(e.tag){case 3:Si(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Si(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[un]=t,t.stateNode=r}return et(t),null;case 13:if(Be(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&Ft!==null&&t.mode&1&&!(t.flags&128))Dg(),Ao(),t.flags|=98560,u=!1;else if(u=ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(H(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(H(317));u[un]=t}else Ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),u=!1}else qt!==null&&(Lf(qt),qt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?$e===0&&($e=3):Wf())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return So(),Of(e,t),e===null&&Iu(t.stateNode.containerInfo),et(t),null;case 10:return nf(t.type._context),et(t),null;case 17:return pt(t.type)&&Pi(),et(t),null;case 19:if(Be(Se),u=t.memoizedState,u===null)return et(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Qu(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Vi(e),a!==null){for(t.flags|=128,Qu(u,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,a=u.alternate,a===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,u.type=a.type,e=a.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Se,Se.current&1|2),t.child}e=e.sibling}u.tail!==null&&Re()>ko&&(t.flags|=128,r=!0,Qu(u,!1),t.lanes=4194304)}else{if(!r)if(e=Vi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!be)return et(t),null}else 2*Re()-u.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,r=!0,Qu(u,!1),t.lanes=4194304);u.isBackwards?(a.sibling=t.child,t.child=a):(n=u.last,n!==null?n.sibling=a:t.child=a,u.last=a)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Re(),t.sibling=null,n=Se.current,Ce(Se,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Vf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function xS(e,t){switch(Gc(t),t.tag){case 1:return pt(t.type)&&Pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Be(dt),Be(Ze),cf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sf(t),null;case 13:if(Be(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(Se),null;case 4:return So(),null;case 10:return nf(t.type._context),null;case 22:case 23:return Vf(),null;case 24:return null;default:return null}}var Xi=!1,tt=!1,FS=typeof WeakSet=="function"?WeakSet:Set,J=null;function _o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function _f(e,t,n){try{n()}catch(r){ke(e,t,r)}}var g0=!1;function SS(e,t){if(zc=gi,e=Qm(),Tc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var a=0,i=-1,s=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==u||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)p=d,d=y;for(;;){if(d===e)break t;if(p===n&&++l===o&&(i=a),p===u&&++c===r&&(s=a),(y=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=y}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vc={focusedElem:e,selectionRange:n},gi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var f=m.memoizedProps,w=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?f:Yt(t.type,f),w);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(E){ke(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return m=g0,g0=!1,m}function Gu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var u=o.destroy;o.destroy=void 0,u!==void 0&&_f(t,n,u)}o=o.next}while(o!==r)}}function Zi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function y0(e){var t=e.alternate;t!==null&&(e.alternate=null,y0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[un],delete t[$u],delete t[Kc],delete t[cS],delete t[fS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function D0(e){return e.tag===5||e.tag===3||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Oi));else if(r!==4&&(e=e.child,e!==null))for(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}function Tf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tf(e,t,n),e=e.sibling;e!==null;)Tf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)w0(e,t,n),n=n.sibling}function w0(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(fi,n)}catch{}switch(n.tag){case 5:tt||_o(n,t);case 6:var r=Ke,o=Qt;Ke=null,Jn(e,t,n),Ke=r,Qt=o,Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?Hc(e.parentNode,n):e.nodeType===1&&Hc(e,n),Su(e)):Hc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Jn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var u=o,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&_f(n,t,a),o=o.next}while(o!==r)}Jn(e,t,n);break;case 1:if(!tt&&(_o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){ke(n,t,i)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Jn(e,t,n),tt=r):Jn(e,t,n);break;default:Jn(e,t,n)}}function E0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FS),t.forEach(function(r){var o=IS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var u=e,a=t,i=a;e:for(;i!==null;){switch(i.tag){case 5:Ke=i.stateNode,Qt=!1;break e;case 3:Ke=i.stateNode.containerInfo,Qt=!0;break e;case 4:Ke=i.stateNode.containerInfo,Qt=!0;break e}i=i.return}if(Ke===null)throw Error(H(160));w0(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){ke(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B0(t,e),t=t.sibling}function B0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),ln(e),r&4){try{Gu(3,e,e.return),Zi(3,e)}catch(f){ke(e,e.return,f)}try{Gu(5,e,e.return)}catch(f){ke(e,e.return,f)}}break;case 1:Gt(t,e),ln(e),r&512&&n!==null&&_o(n,n.return);break;case 5:if(Gt(t,e),ln(e),r&512&&n!==null&&_o(n,n.return),e.flags&32){var o=e.stateNode;try{gu(o,"")}catch(f){ke(e,e.return,f)}}if(r&4&&(o=e.stateNode,o!=null)){var u=e.memoizedProps,a=n!==null?n.memoizedProps:u,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&u.type==="radio"&&u.name!=null&&Xh(o,u),lc(i,a);var l=lc(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?um(o,d):c==="dangerouslySetInnerHTML"?rm(o,d):c==="children"?gu(o,d):Kl(o,c,d,l)}switch(i){case"input":oc(o,u);break;case"textarea":em(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?so(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?so(o,!!u.multiple,u.defaultValue,!0):so(o,!!u.multiple,u.multiple?[]:"",!1))}o[$u]=u}catch(f){ke(e,e.return,f)}}break;case 6:if(Gt(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(H(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(f){ke(e,e.return,f)}}break;case 3:if(Gt(t,e),ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Su(t.containerInfo)}catch(f){ke(e,e.return,f)}break;case 4:Gt(t,e),ln(e);break;case 13:Gt(t,e),ln(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(jf=Re())),r&4&&E0(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(l=tt)||c,Gt(t,e),tt=l):Gt(t,e),ln(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(J=e,c=e.child;c!==null;){for(d=J=c;J!==null;){switch(p=J,y=p.child,p.tag){case 0:case 11:case 14:case 15:Gu(4,p,p.return);break;case 1:_o(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(f){ke(r,n,f)}}break;case 5:_o(p,p.return);break;case 22:if(p.memoizedState!==null){x0(d);continue}}y!==null?(y.return=p,J=y):x0(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,l?(u=o.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(i=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=om("display",a))}catch(f){ke(e,e.return,f)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){ke(e,e.return,f)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Gt(t,e),ln(e),r&4&&E0(e);break;case 21:break;default:Gt(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(D0(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(gu(o,""),r.flags&=-33);var u=C0(e);Tf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=C0(e);kf(e,i,a);break;default:throw Error(H(161))}}catch(s){ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function OS(e,t,n){J=e,A0(e)}function A0(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var o=J,u=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Xi;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||tt;i=Xi;var l=tt;if(Xi=a,(tt=s)&&!l)for(J=o;J!==null;)a=J,s=a.child,a.tag===22&&a.memoizedState!==null?F0(o):s!==null?(s.return=a,J=s):F0(o);for(;u!==null;)J=u,A0(u),u=u.sibling;J=o,Xi=i,tt=l}b0(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,J=u):b0(e)}}function b0(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||Zi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&xg(t,u,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xg(t,a,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Su(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}tt||t.flags&512&&Pf(t)}catch(p){ke(t,t.return,p)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function x0(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function F0(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zi(4,t)}catch(s){ke(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){ke(t,o,s)}}var u=t.return;try{Pf(t)}catch(s){ke(t,u,s)}break;case 5:var a=t.return;try{Pf(t)}catch(s){ke(t,a,s)}}}catch(s){ke(t,t.return,s)}if(t===e){J=null;break}var i=t.sibling;if(i!==null){i.return=t.return,J=i;break}J=t.return}}var _S=Math.ceil,Ji=Dn.ReactCurrentDispatcher,Rf=Dn.ReactCurrentOwner,It=Dn.ReactCurrentBatchConfig,ce=0,Ve=null,Ie=null,qe=0,St=0,Po=Yn(0),$e=0,Xu=null,kr=0,es=0,Nf=0,Zu=null,ht=null,jf=0,ko=1/0,Fn=null,ts=!1,If=null,er=null,ns=!1,tr=null,rs=0,Ju=0,Mf=null,os=-1,us=0;function it(){return ce&6?Re():os!==-1?os:os=Re()}function nr(e){return e.mode&1?ce&2&&qe!==0?qe&-qe:pS.transition!==null?(us===0&&(us=Cm()),us):(e=ge,e!==0||(e=window.event,e=e===void 0?16:Om(e.type)),e):1}function Xt(e,t,n,r){if(50<Ju)throw Ju=0,Mf=null,Error(H(185));Bu(e,n,r),(!(ce&2)||e!==Ve)&&(e===Ve&&(!(ce&2)&&(es|=n),$e===4&&rr(e,qe)),mt(e,r),n===1&&ce===0&&!(t.mode&1)&&(ko=Re()+500,Ti&&Gn()))}function mt(e,t){var n=e.callbackNode;pF(e,t);var r=vi(e,e===Ve?qe:0);if(r===0)n!==null&&gm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gm(n),t===1)e.tag===0?dS(O0.bind(null,e)):vg(O0.bind(null,e)),sS(function(){!(ce&6)&&Gn()}),n=null;else{switch(wm(r)){case 1:n=mc;break;case 4:n=ym;break;case 16:n=ci;break;case 536870912:n=Dm;break;default:n=ci}n=I0(n,S0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function S0(e,t){if(os=-1,us=0,ce&6)throw Error(H(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var r=vi(e,e===Ve?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=as(e,r);else{t=r;var o=ce;ce|=2;var u=P0();(Ve!==e||qe!==t)&&(Fn=null,ko=Re()+500,Rr(e,t));do try{TS();break}catch(i){_0(e,i)}while(!0);tf(),Ji.current=u,ce=o,Ie!==null?t=0:(Ve=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=gc(e),o!==0&&(r=o,t=$f(e,o))),t===1)throw n=Xu,Rr(e,0),rr(e,r),mt(e,Re()),n;if(t===6)rr(e,r);else{if(o=e.current.alternate,!(r&30)&&!PS(o)&&(t=as(e,r),t===2&&(u=gc(e),u!==0&&(r=u,t=$f(e,u))),t===1))throw n=Xu,Rr(e,0),rr(e,r),mt(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Nr(e,ht,Fn);break;case 3:if(rr(e,r),(r&130023424)===r&&(t=jf+500-Re(),10<t)){if(vi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Uc(Nr.bind(null,e,ht,Fn),t);break}Nr(e,ht,Fn);break;case 4:if(rr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ht(r);u=1<<a,a=t[a],a>o&&(o=a),r&=~u}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_S(r/1960))-r,10<r){e.timeoutHandle=Uc(Nr.bind(null,e,ht,Fn),r);break}Nr(e,ht,Fn);break;case 5:Nr(e,ht,Fn);break;default:throw Error(H(329))}}}return mt(e,Re()),e.callbackNode===n?S0.bind(null,e):null}function $f(e,t){var n=Zu;return e.current.memoizedState.isDehydrated&&(Rr(e,t).flags|=256),e=as(e,t),e!==2&&(t=ht,ht=n,t!==null&&Lf(t)),e}function Lf(e){ht===null?ht=e:ht.push.apply(ht,e)}function PS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],u=o.getSnapshot;o=o.value;try{if(!Kt(u(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rr(e,t){for(t&=~Nf,t&=~es,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function O0(e){if(ce&6)throw Error(H(327));To();var t=vi(e,0);if(!(t&1))return mt(e,Re()),null;var n=as(e,t);if(e.tag!==0&&n===2){var r=gc(e);r!==0&&(t=r,n=$f(e,r))}if(n===1)throw n=Xu,Rr(e,0),rr(e,t),mt(e,Re()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nr(e,ht,Fn),mt(e,Re()),null}function zf(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ko=Re()+500,Ti&&Gn())}}function Tr(e){tr!==null&&tr.tag===0&&!(ce&6)&&To();var t=ce;ce|=1;var n=It.transition,r=ge;try{if(It.transition=null,ge=1,e)return e()}finally{ge=r,It.transition=n,ce=t,!(ce&6)&&Gn()}}function Vf(){St=Po.current,Be(Po)}function Rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,iS(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(Gc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pi();break;case 3:So(),Be(dt),Be(Ze),cf();break;case 5:sf(r);break;case 4:So();break;case 13:Be(Se);break;case 19:Be(Se);break;case 10:nf(r.type._context);break;case 22:case 23:Vf()}n=n.return}if(Ve=e,Ie=e=or(e.current,null),qe=St=t,$e=0,Xu=null,Nf=es=kr=0,ht=Zu=null,Or!==null){for(t=0;t<Or.length;t++)if(n=Or[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,u=n.pending;if(u!==null){var a=u.next;u.next=o,r.next=a}n.pending=r}Or=null}return e}function _0(e,t){do{var n=Ie;try{if(tf(),Wi.current=qi,Ui){for(var r=Oe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ui=!1}if(Pr=0,ze=Me=Oe=null,Hu=!1,Ku=0,Rf.current=null,n===null||n.return===null){$e=1,Xu=t,Ie=null;break}e:{var u=e,a=n.return,i=n,s=t;if(t=qe,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var l=s,c=i,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=t0(a);if(y!==null){y.flags&=-257,n0(y,a,i,u,t),y.mode&1&&e0(u,l,t),t=y,s=l;var m=t.updateQueue;if(m===null){var f=new Set;f.add(s),t.updateQueue=f}else m.add(s);break e}else{if(!(t&1)){e0(u,l,t),Wf();break e}s=Error(H(426))}}else if(be&&i.mode&1){var w=t0(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),n0(w,a,i,u,t),Jc(Oo(s,i));break e}}u=s=Oo(s,i),$e!==4&&($e=2),Zu===null?Zu=[u]:Zu.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=Zg(u,s,t);bg(u,h);break e;case 1:i=s;var g=u.type,C=u.stateNode;if(!(u.flags&128)&&(typeof g.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(er===null||!er.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=Jg(u,i,t);bg(u,E);break e}}u=u.return}while(u!==null)}T0(n)}catch(B){t=B,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(!0)}function P0(){var e=Ji.current;return Ji.current=qi,e===null?qi:e}function Wf(){($e===0||$e===3||$e===2)&&($e=4),Ve===null||!(kr&268435455)&&!(es&268435455)||rr(Ve,qe)}function as(e,t){var n=ce;ce|=2;var r=P0();(Ve!==e||qe!==t)&&(Fn=null,Rr(e,t));do try{kS();break}catch(o){_0(e,o)}while(!0);if(tf(),ce=n,Ji.current=r,Ie!==null)throw Error(H(261));return Ve=null,qe=0,$e}function kS(){for(;Ie!==null;)k0(Ie)}function TS(){for(;Ie!==null&&!oF();)k0(Ie)}function k0(e){var t=j0(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?T0(e):Ie=t,Rf.current=null}function T0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=xS(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Ie=null;return}}else if(n=bS(n,t,St),n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);$e===0&&($e=5)}function Nr(e,t,n){var r=ge,o=It.transition;try{It.transition=null,ge=1,RS(e,t,n,r)}finally{It.transition=o,ge=r}return null}function RS(e,t,n,r){do To();while(tr!==null);if(ce&6)throw Error(H(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(vF(e,u),e===Ve&&(Ie=Ve=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ns||(ns=!0,I0(ci,function(){return To(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=It.transition,It.transition=null;var a=ge;ge=1;var i=ce;ce|=4,Rf.current=null,SS(e,n),B0(n,e),eS(Vc),gi=!!zc,Vc=zc=null,e.current=n,OS(n),uF(),ce=i,ge=a,It.transition=u}else e.current=n;if(ns&&(ns=!1,tr=e,rs=o),u=e.pendingLanes,u===0&&(er=null),sF(n.stateNode),mt(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ts)throw ts=!1,e=If,If=null,e;return rs&1&&e.tag!==0&&To(),u=e.pendingLanes,u&1?e===Mf?Ju++:(Ju=0,Mf=e):Ju=0,Gn(),null}function To(){if(tr!==null){var e=wm(rs),t=It.transition,n=ge;try{if(It.transition=null,ge=16>e?16:e,tr===null)var r=!1;else{if(e=tr,tr=null,rs=0,ce&6)throw Error(H(331));var o=ce;for(ce|=4,J=e.current;J!==null;){var u=J,a=u.child;if(J.flags&16){var i=u.deletions;if(i!==null){for(var s=0;s<i.length;s++){var l=i[s];for(J=l;J!==null;){var c=J;switch(c.tag){case 0:case 11:case 15:Gu(8,c,u)}var d=c.child;if(d!==null)d.return=c,J=d;else for(;J!==null;){c=J;var p=c.sibling,y=c.return;if(y0(c),c===l){J=null;break}if(p!==null){p.return=y,J=p;break}J=y}}}var m=u.alternate;if(m!==null){var f=m.child;if(f!==null){m.child=null;do{var w=f.sibling;f.sibling=null,f=w}while(f!==null)}}J=u}}if(u.subtreeFlags&2064&&a!==null)a.return=u,J=a;else e:for(;J!==null;){if(u=J,u.flags&2048)switch(u.tag){case 0:case 11:case 15:Gu(9,u,u.return)}var h=u.sibling;if(h!==null){h.return=u.return,J=h;break e}J=u.return}}var g=e.current;for(J=g;J!==null;){a=J;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,J=C;else e:for(a=g;J!==null;){if(i=J,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Zi(9,i)}}catch(B){ke(i,i.return,B)}if(i===a){J=null;break e}var E=i.sibling;if(E!==null){E.return=i.return,J=E;break e}J=i.return}}if(ce=o,Gn(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(fi,e)}catch{}r=!0}return r}finally{ge=n,It.transition=t}}return!1}function R0(e,t,n){t=Oo(n,t),t=Zg(e,t,1),e=Zn(e,t,1),t=it(),e!==null&&(Bu(e,1,t),mt(e,t))}function ke(e,t,n){if(e.tag===3)R0(e,e,n);else for(;t!==null;){if(t.tag===3){R0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(er===null||!er.has(r))){e=Oo(n,e),e=Jg(t,e,1),t=Zn(t,e,1),e=it(),t!==null&&(Bu(t,1,e),mt(t,e));break}}t=t.return}}function NS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Re()-jf?Rr(e,0):Nf|=n),mt(e,t)}function N0(e,t){t===0&&(e.mode&1?(t=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):t=1);var n=it();e=An(e,t),e!==null&&(Bu(e,t,n),mt(e,n))}function jS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N0(e,n)}function IS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),N0(e,n)}var j0;j0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,AS(e,t,n);vt=!!(e.flags&131072)}else vt=!1,be&&t.flags&1048576&&hg(t,Ni,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gi(e,t),e=t.pendingProps;var o=wo(t,Ze.current);Fo(t,n),o=pf(null,t,r,e,o,n);var u=vf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(r)?(u=!0,ki(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uf(t),o.updater=Yi,t.stateNode=o,o._reactInternals=t,Cf(t,r,e,n),t=Af(null,t,r,!0,u,n)):(t.tag=0,be&&u&&Qc(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$S(r),e=Yt(r,e),o){case 0:t=Bf(null,t,r,e,n);break e;case 1:t=s0(null,t,r,e,n);break e;case 11:t=r0(null,t,r,e,n);break e;case 14:t=o0(null,t,r,Yt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Bf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),s0(e,t,r,o,n);case 3:e:{if(l0(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,o=u.element,Ag(e,t),zi(t,r,null,n);var a=t.memoizedState;if(r=a.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){o=Oo(Error(H(423)),t),t=c0(e,t,r,n,o);break e}else if(r!==o){o=Oo(Error(H(424)),t),t=c0(e,t,r,n,o);break e}else for(Ft=qn(t.stateNode.containerInfo.firstChild),xt=t,be=!0,qt=null,n=Eg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===o){t=xn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return Fg(t),e===null&&Zc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,Wc(r,o)?a=null:u!==null&&Wc(r,u)&&(t.flags|=32),i0(e,t),at(e,t,a,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return f0(e,t,n);case 4:return af(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bo(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),r0(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value,Ce(Mi,r._currentValue),r._currentValue=a,u!==null)if(Kt(u.value,a)){if(u.children===o.children&&!dt.current){t=xn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){a=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=bn(-1,n&-n),s.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?s.next=s:(s.next=c.next,c.next=s),l.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),rf(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)a=u.type===t.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(H(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),rf(a,n,t),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===t){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fo(t,n),o=Nt(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=Yt(r,t.pendingProps),o=Yt(r.type,o),o0(e,t,r,o,n);case 15:return u0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Gi(e,t),t.tag=1,pt(r)?(e=!0,ki(t)):e=!1,Fo(t,n),Gg(t,r,o),Cf(t,r,o,n),Af(null,t,r,!0,e,n);case 19:return p0(e,t,n);case 22:return a0(e,t,n)}throw Error(H(156,t.tag))};function I0(e,t){return mm(e,t)}function MS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new MS(e,t,n,r)}function Uf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $S(e){if(typeof e=="function")return Uf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ql)return 11;if(e===Zl)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function is(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Uf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case io:return jr(n.children,o,u,t);case ql:a=8,o|=8;break;case Yl:return e=Mt(12,n,t,o|2),e.elementType=Yl,e.lanes=u,e;case Gl:return e=Mt(13,n,t,o),e.elementType=Gl,e.lanes=u,e;case Xl:return e=Mt(19,n,t,o),e.elementType=Xl,e.lanes=u,e;case Kh:return ss(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uh:a=10;break e;case Hh:a=9;break e;case Ql:a=11;break e;case Zl:a=14;break e;case $n:a=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function jr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function ss(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Kh,e.lanes=n,e.stateNode={isHidden:!1},e}function Hf(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Kf(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function LS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yc(0),this.expirationTimes=yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qf(e,t,n,r,o,u,a,i,s){return e=new LS(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Mt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uf(u),e}function zS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ao,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function M0(e){if(!e)return Qn;e=e._reactInternals;e:{if(Ar(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(pt(n))return dg(e,n,t)}return t}function $0(e,t,n,r,o,u,a,i,s){return e=qf(n,r,!0,e,o,u,a,i,s),e.context=M0(null),n=e.current,r=it(),o=nr(n),u=bn(r,o),u.callback=t??null,Zn(n,u,o),e.current.lanes=o,Bu(e,o,r),mt(e,r),e}function ls(e,t,n,r){var o=t.current,u=it(),a=nr(o);return n=M0(n),t.context===null?t.context=n:t.pendingContext=n,t=bn(u,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zn(o,t,a),e!==null&&(Xt(e,o,a,u),Li(e,o,a)),a}function cs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function L0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yf(e,t){L0(e,t),(e=e.alternate)&&L0(e,t)}function VS(){return null}var z0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qf(e){this._internalRoot=e}fs.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));ls(e,t,null,null)},fs.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tr(function(){ls(null,e,null,null)}),t[Cn]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Am();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Un.length&&t!==0&&t<Un[n].priority;n++);Un.splice(n,0,e),n===0&&Fm(e)}};function Gf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function V0(){}function WS(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=cs(a);u.call(l)}}var a=$0(t,r,e,0,null,!1,!1,"",V0);return e._reactRootContainer=a,e[Cn]=a.current,Iu(e.nodeType===8?e.parentNode:e),Tr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=cs(s);i.call(l)}}var s=qf(e,0,!1,null,null,!1,!1,"",V0);return e._reactRootContainer=s,e[Cn]=s.current,Iu(e.nodeType===8?e.parentNode:e),Tr(function(){ls(t,s,n,r)}),s}function ps(e,t,n,r,o){var u=n._reactRootContainer;if(u){var a=u;if(typeof o=="function"){var i=o;o=function(){var s=cs(a);i.call(s)}}ls(t,a,e,o)}else a=WS(n,t,e,o,r);return cs(a)}Em=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Eu(t.pendingLanes);n!==0&&(Dc(t,n|1),mt(t,Re()),!(ce&6)&&(ko=Re()+500,Gn()))}break;case 13:Tr(function(){var r=An(e,1);if(r!==null){var o=it();Xt(r,e,1,o)}}),Yf(e,1)}},Cc=function(e){if(e.tag===13){var t=An(e,134217728);if(t!==null){var n=it();Xt(t,e,134217728,n)}Yf(e,134217728)}},Bm=function(e){if(e.tag===13){var t=nr(e),n=An(e,t);if(n!==null){var r=it();Xt(n,e,t,r)}Yf(e,t)}},Am=function(){return ge},bm=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}},dc=function(e,t,n){switch(t){case"input":if(oc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_i(r);if(!o)throw Error(H(90));Qh(r),oc(r,o)}}}break;case"textarea":em(e,n);break;case"select":t=n.value,t!=null&&so(e,!!n.multiple,t,!1)}},lm=zf,cm=Tr;var US={usingClientEntryPoint:!1,Events:[Lu,Do,_i,im,sm,zf]},ea={findFiberByHostInstance:br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HS={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vm(e),e===null?null:e.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||VS,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 vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{fi=vs.inject(HS),on=vs}catch{}}Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=US,Bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gf(t))throw Error(H(200));return zS(e,t,null,n)},Bt.createRoot=function(e,t){if(!Gf(e))throw Error(H(299));var n=!1,r="",o=z0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qf(e,1,!1,null,null,n,!1,r,o),e[Cn]=t.current,Iu(e.nodeType===8?e.parentNode:e),new Qf(t)},Bt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=vm(t),e=e===null?null:e.stateNode,e},Bt.flushSync=function(e){return Tr(e)},Bt.hydrate=function(e,t,n){if(!ds(t))throw Error(H(200));return ps(null,e,t,!0,n)},Bt.hydrateRoot=function(e,t,n){if(!Gf(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=z0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=$0(t,null,e,1,n??null,o,!1,u,a),e[Cn]=t.current,Iu(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new fs(t)},Bt.render=function(e,t,n){if(!ds(t))throw Error(H(200));return ps(null,e,t,!1,n)},Bt.unmountComponentAtNode=function(e){if(!ds(e))throw Error(H(40));return e._reactRootContainer?(Tr(function(){ps(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1},Bt.unstable_batchedUpdates=zf,Bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ds(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return ps(e,t,n,!1,r)},Bt.version="18.3.1-next-f1338f8080-20240426";function W0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(W0)}catch(e){console.error(e)}}W0(),Mh.exports=Bt;var U0=Mh.exports;const Ro=nu(U0);function H0(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)),r}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(n),!0).forEach(function(r){No(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ye(e){return(Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function na(e,t,n){return t&&K0(e.prototype,t),n&&K0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(){return(Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function hs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q0(e,t)}function Xf(e){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function q0(e,t){return(q0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function KS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qS(e,t){if(e==null)return{};for(var n,r={},o=Object.keys(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||(r[n]=e[n]);return r}function $t(e,t){if(e==null)return{};var n,r=qS(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function ms(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YS(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ms(e)}function gs(e){var t=KS();return function(){var n,r=Xf(e);return YS(this,t?(n=Xf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function Y0(e,t){return GS(e)||ZS(e,t)||Q0(e,t)||eO()}function ys(e){return QS(e)||XS(e)||Q0(e)||JS()}function QS(e){if(Array.isArray(e))return Zf(e)}function GS(e){if(Array.isArray(e))return e}function XS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);a=!0);}catch(s){i=!0,o=s}finally{try{a||n.return==null||n.return()}finally{if(i)throw o}}return u}}function Q0(e,t){var n;if(e)return typeof e=="string"?Zf(e,t):(n=(n=Object.prototype.toString.call(e).slice(8,-1))==="Object"&&e.constructor?e.constructor.name:n)==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zf(e,t):void 0}function Zf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n===void 0)return(t==="string"?String:Number)(e);if(n=n.call(e,t||"default"),typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function G0(e){return e=tO(e,"string"),typeof e=="symbol"?e:String(e)}var X0={react:{componentWrap:"div",slotWrap:"div",componentWrapAttrs:{__use_react_component_wrap:"",style:{all:"unset"}},slotWrapAttrs:{__use_react_slot_wrap:"",style:{all:"unset"}},vueNamedSlotsKey:["node:"]},vue:{componentWrapHOC:function(e){return function(){var t=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).portals;return M.createElement(M.Fragment,null,e,(t===void 0?[]:t).map(function(o){var r=o.Portal,o=o.key;return M.createElement(r,{key:o})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function Z0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:X0,t=2<arguments.length?arguments[2]:void 0,n=(e.vue||(e.vue={}),e.react||(e.react={}),[n,$($({},e),{},{react:$($($({},n.react),e.react),{},{componentWrapAttrs:$($({},n.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:$($({},n.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:$($($({},n.vue),e.vue),{},{componentWrapAttrs:$($({},n.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:$($({},n.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return t&&n.unshift({}),Object.assign.apply(this,n)}var J0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],ra={Document:{},Element:{}};function nO(e){Object.keys(ra).forEach(function(t){J0.forEach(function(n){var r=window[t].prototype[n];ra[t][n]=r,window[t].prototype[n]=function(){for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];var i=r.apply(this,u);return i&&(i.constructor!==NodeList||i.constructor===NodeList&&0<i.length)?i:(ra.Element[n]||Element.prototype[n]).apply(e,u)}})})}function rO(){Object.keys(ra).forEach(function(e){J0.forEach(function(t){window[e].prototype[t]=ra[e][t]})})}var oO=["ref"],uO=["key"],aO=["hashList"],ey=parseInt(M.version);function Fk(e){return e}var iO=function(){hs(t,M.Component);var e=gs(t);function t(n){return ta(this,t),e.call(this,n)}return na(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,$t(r,oO));return M.createElement(n,r,this.props.children)}}]),t}(),sO=function(e,t,n){var r=function(){hs(u,M.Component);var o=gs(u);function u(a){var i;return ta(this,u),(i=o.call(this,a)).state=$($({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(ms(i)),i.vueInReactCall=i.vueInReactCall.bind(ms(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return na(u,[{key:"reactPropsLinkToVueInstance",value:function(a){Object.keys(a).forEach(function(i){n[i]||(n[i]=a[i])}),Object.getOwnPropertyNames(a.__proto__).filter(function(i){return["constructor","render"].indexOf(i)<0}).forEach(function(i){n[i]||(n[i]=a[i])})}},{key:"setRef",value:function(a){var i=this;a&&(n.__veauryReactRef__=a,this.reactPropsLinkToVueInstance(a),Promise.resolve().then(function(){return i.reactPropsLinkToVueInstance(a)}),(this.setRef.current=a).__veauryVueWrapperRef__=n)}},{key:"createSlot",value:function(a){return{originVNode:a,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var i,s;return((i=a=(a=((s=this.$slots)==null||(i=s.default)==null?void 0:i.call(s))||a)instanceof Function?a(this):a)==null?void 0:i.length)===1&&(s=a[0])!=null&&s.data&&((i=this.$attrs).key,s=$t(i,uO),a[0].props=$($({},s),a[0].props)),a}}}},{key:"componentWillUnmount",value:function(){n.__veauryReactRef__&&(n.__veauryReactRef__.__veauryVueWrapperRef__=null,n.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(a){var i=this,s=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return 2<arguments.length&&arguments[2]&&a&&a[0]?a.map(function(l,c){return Cs(i.createSlot(l instanceof Function?l:[l]),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null?void 0:l.key)||void 0})}):Cs(this.createSlot(a),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render()}},{key:"render",value:function(){var a,i,s,l=this,w=this.state,c=w.hashList,d=$t(w,aO),p={},y={};for(a in d)i=a,s=void 0,d.hasOwnProperty(i)&&d[i]!=null&&(d[i].__slot?(d[i].reactSlot?d[i]=d[i].reactSlot:(s=d[i],t.defaultSlotsFormatter&&d[i].__trueChildren?(d[i].__trueChildren.__top__=l.__veauryVueWrapperRef__,d[i]=t.defaultSlotsFormatter(d[i].__trueChildren,l.vueInReactCall,c),d[i]instanceof Array?d[i]=ys(d[i]):-1<["string","number"].indexOf(Ye(d[i]))?d[i]=[d[i]]:Ye(d[i])==="object"&&(d[i]=$({},d[i]))):d[i]=$({},Cs(l.createSlot(d[i]),$($({},t),{},{isSlots:!0,wrapInstance:n})).render()),d[i].vueFunction=s),p[i]=d[i]):d[i].__scopedSlot&&(d[i]=d[i](l.createSlot),y[i]=d[i]));var m,f,w={};return w.ref=this.setRef,t.isSlots?this.state.children||this.props.children:(m=d,e.__syncUpdateForPureReactInVue&&Object.keys(e.__syncUpdateForPureReactInVue).map(function(h){var g,C;m[h]&&typeof m[h]=="function"&&(g=l.__veauryVueWrapperRef__,C=m[h],m[h]=function(){for(var E=arguments.length,B=new Array(E),x=0;x<E;x++)B[x]=arguments[x];g.__veaurySyncUpdateProps__(e.__syncUpdateForPureReactInVue[h].apply(this,B)),C.apply(this,B),g.macroTaskUpdate=!0,g.__veauryMountReactComponent__(!0,!0,{})})}),f=$($($({},m=t.defaultPropsFormatter?t.defaultPropsFormatter.call(this,m,this.vueInReactCall,c):m),p),y),Object.getPrototypeOf(e)!==Function.prototype&&(Ye(e)!=="object"||e.render)||u.catchVueRefs()?(Object.getPrototypeOf(e)===Function.prototype&&delete w.ref,M.createElement(e,Ir({},f,w))):M.createElement(iO,Ir({passedProps:f,component:e},w),f.children))}}],[{key:"catchVueRefs",value:function(){if(n.$parent){for(var a in n.$parent.$refs)if(n.$parent.$refs[a]===n)return!0}return!1}}]),u}();return No(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Jf(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return e.__esModule&&e.default&&(e=e.default),t.isSlots&&(e=e()),t=Z0(t,void 0,!0),{originReactComponent:e,setup:function(n,r){var o,u,a,i;if(!t.isSlots)return o={},u=v.reactive({}),a=v.getCurrentInstance(),typeof(i=t.useInjectPropsFromWrapper||e.__veauryInjectPropsFromWrapper__)=="function"&&(typeof(i=i.call(a.proxy,n))!="function"?(Object.assign(u,i),o.__veauryInjectedProps__=u):a.proxy.__veauryInjectedComputed__=i),o},data:function(){return{VEAURY_Portals:[]}},created:function(){this.__veauryPortalKeyPool__=[],this.__veauryMaxPortalCount__=0},computed:{__veauryInjectedProps__:function(){var n;return(n=this.__veauryInjectedComputed__)==null?void 0:n.call(this)}},render:function(){var n=v.h(t.react.componentWrap,$({ref:"react"},t.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(u){var o=u.Portal,u=u.key;return o(v.h,u)}));return this.__veauryCheckReactSlot__(this.$slots),n},methods:{__veauryCheckReactSlot__:function(n){var r=this;function o(u,a,i){return a[i]&&(u[i]=a[i],1)}Ye(n)==="object"&&n!=null&&(n instanceof Array?n.forEach(function(u){r.__veauryCheckReactSlot__(u.children)}):Object.keys(n).forEach(function(s){var a,i,s=n[s];if(typeof s=="function"){try{a=s.apply(r,s.__reactArgs||[{}])}catch{return}(s.__trueChildren=a).forEach(function(l){l.children&&r.__veauryCheckReactSlot__(l.children)}),a.length!==1||o(s,a=a[0],"reactSlot")||o(s,a,"reactFunction")||a.type!==v.Fragment||((i=a.children)==null?void 0:i.length)!==1||o(s,i=a.children[0],"reactSlot")||o(s,i,"reactFunction")}}))},__veauryPushVuePortal__:function(n){var r=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:n,key:r})},__veauryRemoveVuePortal__:function(n){var r,o=this.VEAURY_Portals.find(function(u,a){if(u.Portal===n)return r=a,!0});this.__veauryPortalKeyPool__.push(o.key),this.VEAURY_Portals.splice(r,1)},__veauryGetScopeSlot__:function(n,r,o){var u=this;function a(i){function s(){for(var l,c=this,d=arguments.length,p=new Array(d),y=0;y<d;y++)p[y]=arguments[y];return n.reactFunction?n.reactFunction.apply(this,p):t.defaultSlotsFormatter?((l=n.apply(this,p)).__top__=u,(l=t.defaultSlotsFormatter(l,u.__veauryVueInReactCall__,r))instanceof Array||-1<Ye(l).indexOf("string","number")?l=ys(l):Ye(l)==="object"&&(l=$({},l)),l):Cs(i(function(){return n.apply(c,p)}),$($({},t),{},{isSlots:!0,wrapInstance:u})).render()}return t.pureTransformer&&o?s.vueFunction=o:s.vueFunction=n,s}return a.__scopedSlot=!0,a},__veaurySyncUpdateProps__:function(n){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(n)},__veauryMountReactComponent__:function(n,r){var o,u,a=this,i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},s={},l=[],c=this.$.vnode.scopeId,d=(c&&(s[c]="",l.push(c)),{}),p={};if(!n||r!=null&&r.slot)for(var y in this.$slots||{})(function(C){var E;a.$slots.hasOwnProperty(C)&&a.$slots[C]!=null&&((E=t.react.vueNamedSlotsKey.find(function(B){return C.indexOf(B)===0}))||C==="default"?(E=C.replace(new RegExp("^".concat(E)),""),d[E]=a.$slots[C],d[E].__slot=!0):p[C]=a.__veauryGetScopeSlot__(a.$slots[C],l,(E=a.$.vnode)==null||(E=E.children)==null?void 0:E[C]))})(y);(!n||r!=null&&r.slot)&&(u=$({},d),o=u.default,delete u.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var m={slot:function(){a.__veauryLast__.slot=$($($({},o?{children:o}:{children:null}),u),p)},attrs:function(){a.__veauryLast__.attrs=a.$attrs}};if(r&&Object.keys(r).forEach(function(C){return m[C]()}),n){let C=function(){a.__veauryReactInstance__&&a.__veauryReactInstance__.setState(function(E){return Object.keys(E).forEach(function(B){t.isSlots&&B==="children"||delete E[B]}),$($($($({},a.__veauryCache__),a.__veauryInjectedProps__),!t.isSlots&&a.__veauryLast__.slot),a.__veauryLast__.attrs)}),a.__veauryCache__=null};!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){C(),a.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(a.updateTimer),C(),a.macroTaskUpdate=!1})),this.__veauryCache__=$($({},this.__veauryCache__||{}),$($($($({},i),this.$attrs.class?{className:this.$attrs.class}:{}),$({},s)),{},{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||C()}else{m.slot(),m.attrs();var c=sO(e,t,this),f=M.createElement(c,Ir({},this.$attrs,this.__veauryInjectedProps__,{children:o},u,p,this.$attrs.class?{className:this.$attrs.class}:{},s,{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(E){return a.__veauryReactInstance__=E}})),w=this.$refs.react,h=t.wrapInstance;if(h)(h=t.wrapInstance).__veauryVueWrapperRef__=this;else for(var g=this.$parent;g;){if(g.parentReactWrapperRef){h=g.parentReactWrapperRef;break}if(g.reactWrapperRef){h=g.reactWrapperRef;break}g=g.$parent}h?(this.parentReactWrapperRef=h,this.reactPortal=function(){return U0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<ey?(Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=Ro.createRoot(w),this.__veauryReactApp__.render(f)):Ro.render(f,w)}}},mounted:function(){var n=this;this.__VEAURY_IGNORE_STRANGE_UPDATE__=!0,Promise.resolve().then(function(){n.__VEAURY_IGNORE_STRANGE_UPDATE__=!1}),clearTimeout(this.updateTimer),this.__veauryMountReactComponent__()},beforeUnmount:function(){var n;clearTimeout(this.updateTimer),nO(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<ey?this.__veauryReactApp__.unmount():Ro.unmountComponentAtNode(this.$refs.react),rO()},updated:function(){this.__VEAURY_IGNORE_STRANGE_UPDATE__||this.__veauryMountReactComponent__(!0,{slot:!0})},inheritAttrs:!1,watch:{$attrs:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0},__veauryInjectedProps__:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0}}}}var lO=new Set(["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onChange","onInput","onInvalid","onReset","onSubmit","onError","onLoad","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"]);function cO(e,t){for(var n=(e=t=(e==null?void 0:e._reactInternals)||(e==null?void 0:e._reactInternalFiber)||t)==null?void 0:e.return;n;){var r=n.stateNode;if(r=(r==null?void 0:r.parentVueWrapperRef)||(r==null?void 0:r.__veauryVueWrapperRef__))return r;n=n.return}}function ty(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function ny(e,t,n){var r=this,o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:"v-model",u=t;if(!(u instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if(typeof u[1]!="function")throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, the second element of the array must be a setter function"));var a=u[1],i=(typeof u[2]=="string"?(n=u[2],u[3]instanceof Array&&ty(e,n,u[3])):u[2]instanceof Array&&ty(e,n,u[2]),e["onUpdate:"+n]);e["onUpdate:"+n]=typeof i=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(r,l),a.apply(r,l)}:a,e[n]=u[0]}function ed(e){var t=this,n={},r=$({},e);return Object.keys(e).forEach(function(o){var u,a=o.match(/^onUpdate-([^-]+)/);if(a)delete r[o],u=n["onUpdate:".concat(a[1])],n["onUpdate:".concat(a[1])]=typeof u=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];u.apply(t,l),e[o].apply(t,l)}:e[o];else if(a=o.match(/^v-model($|:([^:]+)|-([^:]+))/))a=a[2]||a[3]||"modelValue",ny(n,e[o],a),delete r[o];else if(o==="v-models"){if(Ye(e[o])!=="object"||e[o]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var i=e[o];Object.keys(i).forEach(function(s){ny(n,i[s],s,"v-models")}),delete r[o]}}),$($({},r),n)}var Ds=function(){function e(){ta(this,e),No(this,"pool",new Set)}return na(e,[{key:"getRandomId",value:function(t){var n=t+(Math.random()+"").substr(2);return this.pool.has(n)?this.getRandomId(t):(this.pool.add(n),n)}}]),e}();function ry(r,t){var n,r=r.node;if(typeof r=="function"&&(r=r()),(n=t)!=null&&n.current||typeof t=="function"||(n=t)!=null&&n.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(Ye(r)))return r;if(r instanceof Array){if(r.length!==1)return r;r=r[0]}return $($({},r),{},{ref:t})}var fO=Jf(ry);function td(e){return v.h(fO,{node:function(){return e.node}})}td.originReactComponent=M.forwardRef(ry);var dO=["component","node"],pO=["component","$slots","children","class","style"],vO=["className","classname"],ur="veaury-options",oy=new Ds;function hO(e,t){var n;return e=typeof e=="string"&&t?(t=t.$)==null||(t=t.appContext)==null||(t=t.app)==null||(n=t.component)==null?void 0:n.call(t,e):e}function uy(e){if(e)return Object.keys(e).forEach(function(t){var n=e[t];n!=null&&(typeof n=="function"?(e[t]=n,e[t].reactFunction=n):(e[t]=function(){return n},e[t].reactSlot=n),n.vueFunction&&(e[t].vueFunction=n.vueFunction))}),e}function mO(e){var t;return(t=e.node)==null?void 0:t.call(e)}var nd=M.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=$t(o,dO);if(a==null&&r==null)return null;if(r!=null){if(r.$$typeof||typeof r=="string"||typeof r=="number")return r;typeof r!="function"&&(n=r,r=function(){return n})}var u,a=a||mO,i=Z0(o[ur]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),M.createElement(gO,Ir({},$($($($({component:a},r?{node:r}:{}),o),u),{},No({},ur,i)),{ref:t}))}),gO=function(){hs(t,M.Component);var e=gs(t);function t(n){var r;return ta(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(ms(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return na(t,[{key:"pushReactPortal",value:function(n){var r=this.state.portals,o=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;r.push({Portal:n,key:o}),this.setState({portals:r})}},{key:"removeReactPortal",value:function(n){var r,o=this.state.portals,u=o.find(function(a,i){if(a.Portal===n)return r=i,!0});this.__veauryPortalKeyPool__.push(u.key),o.splice(r,1),this.__veauryVueRef__&&this.setState({portals:o})}},{key:"createVueComponentContainer",value:function(){var n=this,r={},o=this.props[ur];return o.isSlots?(Object.keys(this.props).forEach(function(u){lO.has(u)&&typeof n.props[u]=="function"&&(r[u]=n.props[u])}),o.vue.slotWrapAttrs&&(r=$($({},r),o.vue.slotWrapAttrs))):o.vue.componentWrapAttrs&&(r=$($({},r),o.vue.componentWrapAttrs)),o.vue.componentWrapHOC(M.createElement("div",Ir({},o.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),r)}},{key:"shouldComponentUpdate",value:function(n,r,o){var u,a,i,s,l=this;return n===this.props||(u=n.component,n[ur],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=$t(n,["component",ur,"v-slots","children"].map(G0)),this.__veauryCurrentVueComponent__!==u&&this.updateVueComponent(u),!!u.__fromReactSlot||(this.__veauryVueInstance__?(i&&(a=a||{},Ye(i)!=="object"||i instanceof Array||i.$$typeof?a.default=i:a=i),(s=this.__veauryVueInstance__.$data.$slots)&&Object.keys(s).forEach(function(c){delete s[c]}),a&&(s||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,uy(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,ed(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),oy.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[ur]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=$t(s,["component",ur,"children","v-slots"].map(G0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Ye(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=uy(i))&&(s.$slots=i),l=l.bind(this);var c,d=$({},ed(s)),p={data:function(){return u.isSlots?{children:o.__veauryCurrentVueComponent__.originVNode}:d},created:function(){this.reactWrapperRef=o,l(this)},methods:{reactInVueCall:function(y){return 2<arguments.length&&arguments[2]&&y&&y[0]?y.map(function(m,f){return v.h(td,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(td,{node:y})},getScopedSlots:function(y,m){var f,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),$({},m));for(f in h)(function(g){var C,E;!h.hasOwnProperty(g)||(C=h[g])==null||(h[g]=(E=C,function(){for(var B,x,A,S,N=arguments.length,O=new Array(N),V=0;V<N;V++)O[V]=arguments[V];return E.vueFunction?E.vueFunction.apply(w,O):(A=E.reactSlot,S=E.reactFunction,A=A||(S==null?void 0:S.apply(w,O)),S=u.defaultSlotsFormatter,(B=w.getScopedSlots.__scopeSlots[g])!=null&&(B=B.component)!=null&&(B=B.ctx)!=null&&B.__veauryReactInstance__?(x=w.getScopedSlots.__scopeSlots[g],Promise.resolve().then(function(){var P;(P=x)!=null&&(P=P.component)!=null&&(P=P.ctx)!=null&&(P=P.__veauryReactInstance__)!=null&&P.setState({children:E.apply(w,O)})})):(x=S&&A?[S(A,w.reactInVueCall)]:y(Jf(function(){return E.apply(w,O)},$($({},u),{},{isSlots:!0,wrapInstance:o}))),w.getScopedSlots.__scopeSlots[g]=x),E.reactFunction?x.reactFunction=E.reactFunction:E.reactSlot&&(x.reactSlot=E.reactSlot),x)}),h[g].reactFunction=C)})(f);return h}},mounted:function(){n.removeAttribute("id"),o.__veauryVueRef__=this.$refs.use_vue_wrapper,this.$refs.use_vue_wrapper.reactWrapperRef=o},beforeUnmount:function(){o.__veauryVueRef__=null,this.$refs.use_vue_wrapper.reactWrapperRef=null},render:function(){var y=this,C=this.$data,h=(C.component,C.$slots),m=(C.children,C.class),f=C.style,C=$t(C,pO),w=this.getScopedSlots(v.h,$({},h)),h=C.className,g=C.classname,C=$t(C,vO),E={};return Object.keys(w).forEach(function(B){var x=w[B];E[B]=typeof x=="function"?x:function(){return x}}),v.h(hO(o.__veauryCurrentVueComponent__,this),$($($($({},C),m||h||g?{class:m||h||g}:{}),f?{style:f}:{}),{},{ref:"use_vue_wrapper"}),$({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:$({},E)))}};n&&(c=oy.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=cO(this),a&&document.getElementById(c)?(this.parentVueWrapperRef=a,this.vuePortal=function(y,m){return y(v.Teleport,{to:"#"+c,key:c},[y(Object.assign(p,{router:r._router}))])},a.__veauryPushVuePortal__(this.vuePortal)):(i=v.createApp(p),typeof u.beforeVueAppMount=="function"&&u.beforeVueAppMount(i),this.__veauryVueInstance__=i.mount(n)))}},{key:"updateVueComponent",value:function(n){this.__veauryVueInstance__&&(n.__fromReactSlot?this.__veauryVueInstance__.children=typeof n.originVNode=="function"?n.originVNode:function(){return n.originVNode}:(this.__veauryCurrentVueComponent__=n,this.__veauryVueInstance__.$forceUpdate()))}},{key:"render",value:function(){return M.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),t}();function Cs(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=(e||console.warn("Component must be passed in applyVueInReact!"),e.__esModule&&e.default&&(e=e.default),M.forwardRef(function(r,o){return M.createElement(nd,Ir({},r,{component:e,ref:o},No({},ur,t)))}));return n.originVueComponent=e,n}new Ds;function yO(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Jf(e,r||{}));return o.install=function(u){var a=(1<arguments.length&&arguments[1]!==void 0?arguments[1]:{}).globalName;return n&&u.component(a||n,o),o},o}function ay(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function ws(e){var t;return e?typeof e=="string"?(e=e.trim()).split(/\s*;\s*/).reduce(function(n,r){return r&&(r=r.split(/\s*:\s*/)).length===2&&Object.assign(n,No({},ay(r[0]),r[1])),n},{}):Ye(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[ay(n)]=e[n]}),t):{}:{}}function Es(e){return e?e instanceof Array?e:typeof e=="string"?(e=e.trim()).split(/\s+/):Ye(e)==="object"?Object.keys(e).filter(function(t){return!!e[t]}):[]:[]}var DO=["ref"];function CO(e,t,n,r,o){var u=e.props||{},u=(u.ref,$t(u,DO)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=X0.react.vueNamedSlotsKey.find(function(y){return c.indexOf(y)===0});p||c==="default"?(p=c.replace(new RegExp("^".concat(p)),"").replace(/^default$/,"children"),a[p]=r.call(e.__top__,d(),n,o)):typeof d=="function"&&(a[c]=function(){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];return d.__reactArgs=m,r(d.apply(this,m),n,o)})}),{}),s=ws(u.style),l=Array.from(new Set(Es(u.class))).join(" ");return 0<Object.keys(s).length&&(i.style=s),l!==""&&(i.className=l),Object.assign(u,$($({},i),a)),delete u.class,u}function iy(e){return e.type===v.Text}new Ds;function sy(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?M.createElement(wO,{vnode:e},t):t}var wO=function(){hs(t,M.Component);var e=gs(t);function t(n){var r;return ta(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return na(t,[{key:"findDirectiveName",value:function(n){var r=n.dir,o=-1;return[this.state.savedDirectives.find(function(u,a){if(u.dir===r)return o=a,!0}),o]}},{key:"doDirective",value:function(){var n=this,a=this.state,r=a.savedDirectives;if(!(o=a.ref)){for(var o=(this._reactInternals||this._reactInternalFiber).child;o&&o.tag!==5;)o=o.child;if(!o)return;o=o.stateNode}var u=this.props.vnode,a=u.dirs;a&&(a.forEach(function(i){var s,l,c,d,p,y,m;i&&(m=(s=Y0(n.findDirectiveName(i),2))[0],s=s[1],l=(p=i.dir).created,c=p.beforeMount,d=p.mounted,y=p.beforeUpdate,p=p.updated,m?(r[s]=$($($({},m),i),{},{oldValue:m.oldValue}),m=[o,r[s],u,n.state.prevVnode],y!=null&&y.apply(null,m),p!=null&&p.apply(null,m),r[s].oldValue=i.value):(r.push(i),y=[o,i,u,null],l!=null&&l.apply(null,y),c!=null&&c.apply(null,y),d!=null&&d.apply(null,y),i.oldValue=i.value))}),this.setState({prevVnode:$({},u),savedDirectives:r,ref:o}))}},{key:"componentDidMount",value:function(){this.doDirective()}},{key:"componentDidUpdate",value:function(n){n.vnode!==this.props.vnode&&this.doDirective()}},{key:"componentWillUnmount",value:function(){var n=this,r=this.props.vnode,i=this.state,o=i.savedDirectives,u=i.ref,a=i.prevVnode,i=r.dirs;i&&(i.forEach(function(s){var l,c,d,p;s&&(l=(p=Y0(n.findDirectiveName(s),2))[0],p=p[1],l&&(c=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=$($({},l),s),p=[u,l,r,a],c!=null&&c.apply(null,p),d!=null&&d.apply(null,p)))}),this.setState({prevVnode:$({},r),savedDirectives:o}))}},{key:"render",value:function(){var n=this.props;return n.vnode,n.children}}]),t}();function EO(e,t){var n;return typeof e=="function"&&(n=e.toString(),e.prototype!==void 0&&e.prototype.constructor===e&&(n.slice(0,5)=="class"||2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(n)&&!!/\b\(this\b|\bthis[\.\[]\b/.test(n)&&!t))}function ly(e,t){var n,r,o,u;return typeof((o=e.type)==null?void 0:o.originReactComponent)!="function"||EO((o=e.type)==null?void 0:o.originReactComponent)?((o=e.ref)!=null&&o.k?(n=(o=e.ref)==null?void 0:o.k,r=(o=e.ref)==null?void 0:o.r):n=(o=e.ref)==null?void 0:o.r,n&&typeof n=="string"&&(u=n,n=function(a){var i;(i=e.ref)!=null&&(i=i.i)!=null&&i.refs&&((i=$({},e.ref.i.refs))[u]=a,e.ref.i.refs=i),r?r.value=a:e.ref.i.setupState&&u in e.ref.i.setupState&&(e.ref.i.setupState[u]=a),a&&(a.__syncUpdateProps=function(){t.__top__&&(e.__extraData=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t.__top__.__syncUpdateProps({}))})},n=new Proxy(n,{get:function(a,i){return a[i]},set:function(a,i,s){var l;return(l=e.ref)!=null&&(l=l.i)!=null&&l.refs&&u in((l=e.ref)==null||(l=l.i)==null?void 0:l.refs)&&((l=$({},e.ref.i.refs))[i]=s,e.ref.i.refs=l),s}})),n):null}function rd(e,t){return!t||t instanceof Array&&t.length===0||(typeof t=="string"&&(t=[t]),(e=$({},e)).props=$({},e.props),t.forEach(function(n){e.props[n]=""})),e}var BO=["style","class"];function cy(e,t,n,r,o,u,a){var i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===v.Fragment?o.call(a,e.children,n,u):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(t=ly(e),l=(s=e.props||{}).style,i=s.class,s=$($({},$t(s,BO)),{},{style:ws(l),className:Array.from(new Set(Es(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:ys(l)).__top__=a),sy(e,rd(re.createElement(e.type,s,o.call(a,l,n,u)),e.scopeId))):n([e],null,r)}function AO(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0,n=2<arguments.length?arguments[2]:void 0;return n.__syncUpdateForPureReactInVue&&Object.keys(n.__syncUpdateForPureReactInVue).map(function(r){var o;e[r]&&typeof e[r]=="function"&&t.__top__&&(o=e[r],e[r]=function(){for(var u=arguments.length,a=new Array(u),i=0;i<u;i++)a[i]=arguments[i];t.__extraData=n.__syncUpdateForPureReactInVue[r].apply(this,a),t.__top__.__veaurySyncUpdateProps__({}),t.__top__.macroTaskUpdate=!0,o.apply(this,a),t.__top__&&Promise.resolve().then(function(){t.__extraData=null,t.__top__.__veauryMountReactComponent__(!0)})})}),e}function fy(e,t,n){return!((e=e instanceof Array&&e.length===1?e[0]:e)instanceof Array)&&e.key==null&&1<t.length&&((e=$({},e)).key="_key_".concat(n)),e}function dy(r){var t=r.reactComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i,s){var l;return a&&a.forEach?(a.__top__||(a.__top__=this),l=[],a.forEach(function(c,d){if(c&&c.type!==v.Comment){if((m=c.type)==null||!m.originReactComponent)return c.$$typeof||typeof c=="string"||typeof c=="number"?void l.push(c):iy(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(rd(m=fy(cy(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;rd(p=fy(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=CO(c,"_key_".concat(d),i,u,s),y=ly(c,a),c.children&&(c.children.__top__=a.__top__),sy(c,re.createElement(m,$($($({},AO(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):iy(c)?c.text:cy(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var od=dy({reactComponents:"all",domTags:"all"});function bO(e,t){return yO(e,{combinedOption:$({pureTransformer:!0,defaultSlotsFormatter:od,defaultPropsFormatter:function(n,r,o){var u={};return Object.keys(n).forEach(function(a){var i=n[a];i&&(i.vueFunction?(u[a]=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return od(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=od(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}dy({reactComponents:"all",domTags:"all"});var xO=["ref","children","v-slots"];function FO(s,t,n,r,o){var s=s.props||{},l=(s.ref,s.children),a=s["v-slots"],u=a===void 0?{}:a,a=$t(s,xO),i=(l&&(Ye(l)!=="object"||l instanceof Array||l.$$typeof?u.default=l:u=l),null),s=(Object.keys(u||{}).forEach(function(d){var p=u[d];(i=i||{})[d]=function(){if(typeof p=="function"){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];p=p.apply(this,m)}return r(p,n,o)}}),{}),l=ws(a.style),c=Array.from(new Set(Es(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),c!==""&&(s.class=c),Object.assign(a,$({},s)),delete a.className,{props:a=ed(a),slots:i}}function py(e){var t=e.ref;if(t)return Ye(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var SO=["style","class","children"];function vy(e,t,n,r,o,u){var a,i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===M.Fragment?o((a=e.props)==null?void 0:a.children,n):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(a=py(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=$t(t,SO),s=Array.from(new Set(Es(s))).join(" "),l=ws(l),t=$($($($({},t),Object.keys(l).length===0?{}:{style:l}),s?{className:s}:{}),a?{ref:a}:{}),Object.keys(t).length===0&&(t=null),(l=i)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:l instanceof Array?ys(l):$({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function hy(r){var t=r.vueComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i){if(a==null)return a;a instanceof Array||(a=[a]);var s=[];return a.forEach(function(l,c){if(((d=l.type)==null||!d.originVueComponent)&&l.type!==nd)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=vy(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===nd){if(!l.props.component)return void s.push(l.props.node);d=l.props.component,l=$({},l);var p=$({},l.props);delete p.component,l.props=p}d=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(d)?((l=$({},l)).__top__=a.__top__,c=(p=FO(l,"_key_".concat(c),i,u)).props,p=p.slots,py(l),l.children&&(l.children.__top__=a.__top__),v.h(d,$({},c),p)):vy(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}hy({vueComponents:"all",domTags:"all"}),hy({reactComponents:"all",domTags:"all"}),new Ds;var my={exports:{}},Bs={};/**
|
41
|
+
`+u.stack}return{value:e,source:t,stack:o,digest:null}}function Ef(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ES=typeof WeakMap=="function"?WeakMap:Map;function Jg(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ns||(ns=!0,Mf=r),Bf(e,t)},n}function e0(e,t,n){n=bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bf(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Bf(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function t0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ES;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=jS.bind(null,e,t,n),t.then(e,e))}function n0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function r0(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e)}var BS=Dn.ReactCurrentOwner,vt=!1;function at(e,t,n,r){t.child=e===null?Bg(t,null,n,r):bo(t,e.child,n,r)}function o0(e,t,n,r,o){n=n.render;var u=t.ref;return Fo(t,o),r=vf(e,t,n,r,u,o),n=hf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xn(e,t,o)):(be&&n&&Gc(t),t.flags|=1,at(e,t,r,o),t.child)}function u0(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Hf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,a0(e,t,u,r,o)):(e=ss(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&o)){var a=u.memoizedProps;if(n=n.compare,n=n!==null?n:Nu,n(a,r)&&e.ref===t.ref)return xn(e,t,o)}return t.flags|=1,e=or(u,r),e.ref=t.ref,e.return=t,t.child=e}function a0(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(Nu(u,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,xn(e,t,o)}return Af(e,t,n,r,o)}function i0(e,t,n){var r=t.pendingProps,o=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Po,St),St|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(Po,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Ce(Po,St),St|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Ce(Po,St),St|=r;return at(e,t,o,n),t.child}function s0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Af(e,t,n,r,o){var u=pt(n)?xr:Ze.current;return u=wo(t,u),Fo(t,o),n=vf(e,t,n,r,u,o),r=hf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xn(e,t,o)):(be&&r&&Gc(t),t.flags|=1,at(e,t,n,o),t.child)}function l0(e,t,n,r,o){if(pt(n)){var u=!0;Ti(t)}else u=!1;if(Fo(t,o),t.stateNode===null)Xi(e,t),Xg(t,n,r),wf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,i=t.memoizedProps;a.props=i;var s=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Nt(l):(l=pt(n)?xr:Ze.current,l=wo(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==r||s!==l)&&Zg(t,a,r,l),Xn=!1;var p=t.memoizedState;a.state=p,Vi(t,r,a,o),s=t.memoizedState,i!==r||p!==s||dt.current||Xn?(typeof c=="function"&&(Cf(t,n,c,r),s=t.memoizedState),(i=Xn||Gg(t,n,i,r,p,s,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=i):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,bg(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:Yt(t.type,i),a.props=l,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Nt(s):(s=pt(n)?xr:Ze.current,s=wo(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==d||p!==s)&&Zg(t,a,r,s),Xn=!1,p=t.memoizedState,a.state=p,Vi(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||dt.current||Xn?(typeof y=="function"&&(Cf(t,n,y,r),m=t.memoizedState),(l=Xn||Gg(t,n,l,r,p,m,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=l):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return bf(e,t,n,r,u,o)}function bf(e,t,n,r,o,u){s0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&vg(t,n,!1),xn(e,t,u);r=t.stateNode,BS.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=bo(t,e.child,null,u),t.child=bo(t,null,i,u)):at(e,t,i,u),t.memoizedState=r.state,o&&vg(t,n,!0),t.child}function c0(e){var t=e.stateNode;t.pendingContext?dg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dg(e,t.context,!1),sf(e,t.containerInfo)}function f0(e,t,n,r,o){return Ao(),ef(o),t.flags|=256,at(e,t,n,r),t.child}var xf={dehydrated:null,treeContext:null,retryLane:0};function Ff(e){return{baseLanes:e,cachePool:null,transitions:null}}function d0(e,t,n){var r=t.pendingProps,o=Se.current,u=!1,a=(t.flags&128)!==0,i;if((i=a)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ce(Se,o&1),e===null)return Jc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,u?(r=t.mode,u=t.child,a={mode:"hidden",children:a},!(r&1)&&u!==null?(u.childLanes=0,u.pendingProps=a):u=ls(a,r,0,null),e=jr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ff(n),t.memoizedState=xf,e):Sf(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return AS(e,t,a,r,i,o,n);if(u){u=r.fallback,a=t.mode,o=e.child,i=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=or(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=or(i,u):(u=jr(u,a,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,a=e.child.memoizedState,a=a===null?Ff(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=xf,r}return u=e.child,e=u.sibling,r=or(u,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Sf(e,t){return t=ls({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gi(e,t,n,r){return r!==null&&ef(r),bo(t,e.child,null,n),e=Sf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AS(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=Ef(Error(H(422))),Gi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=ls({mode:"visible",children:r.children},o,0,null),u=jr(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&bo(t,e.child,null,a),t.child.memoizedState=Ff(a),t.memoizedState=xf,u);if(!(t.mode&1))return Gi(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,u=Error(H(419)),r=Ef(u,r,void 0),Gi(e,t,a,r)}if(i=(a&e.childLanes)!==0,vt||i){if(r=Ve,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==u.retryLane&&(u.retryLane=o,An(e,o),Xt(r,e,o,-1))}return Uf(),r=Ef(Error(H(421))),Gi(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=IS.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,Ft=qn(o.nextSibling),xt=t,be=!0,qt=null,e!==null&&(Tt[Rt++]=En,Tt[Rt++]=Bn,Tt[Rt++]=Fr,En=e.id,Bn=e.overflow,Fr=t),t=Sf(t,r.children),t.flags|=4096,t)}function p0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),of(e.return,t,n)}function Of(e,t,n,r,o){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=o)}function v0(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(at(e,t,r.children,n),r=Se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&p0(e,n,t);else if(e.tag===19)p0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ce(Se,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Wi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Of(t,!1,o,n,u);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Wi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Of(t,!0,n,null,u);break;case"together":Of(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bS(e,t,n){switch(t.tag){case 3:c0(t),Ao();break;case 5:Sg(t);break;case 1:pt(t.type)&&Ti(t);break;case 4:sf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ce($i,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?d0(e,t,n):(Ce(Se,Se.current&1),e=xn(e,t,n),e!==null?e.sibling:null);Ce(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return v0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ce(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,i0(e,t,n)}return xn(e,t,n)}var h0,_f,m0,g0;h0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_f=function(){},m0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,_r(an.current);var u=null;switch(n){case"input":o=oc(e,o),r=oc(e,r),u=[];break;case"select":o=Fe({},o,{value:void 0}),r=Fe({},r,{value:void 0}),u=[];break;case"textarea":o=ic(e,o),r=ic(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_i)}lc(n,r);var a;n=null;for(l in o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var i=o[l];for(a in i)i.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(vu.hasOwnProperty(l)?u||(u=[]):(u=u||[]).push(l,null));for(l in r){var s=r[l];if(i=o!=null?o[l]:void 0,r.hasOwnProperty(l)&&s!==i&&(s!=null||i!=null))if(l==="style")if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(u||(u=[]),u.push(l,n)),n=s;else l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(u=u||[]).push(l,s)):l==="children"?typeof s!="string"&&typeof s!="number"||(u=u||[]).push(l,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(vu.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&Ee("scroll",e),u||i===s||(u=[])):(u=u||[]).push(l,s))}n&&(u=u||[]).push("style",n);var l=u;(t.updateQueue=l)&&(t.flags|=4)}},g0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Gu(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xS(e,t,n){var r=t.pendingProps;switch(Xc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return pt(t.type)&&ki(),et(t),null;case 3:return r=t.stateNode,So(),Be(dt),Be(Ze),ff(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qt!==null&&(zf(qt),qt=null))),_f(e,t),et(t),null;case 5:lf(t);var o=_r(Hu.current);if(n=t.type,e!==null&&t.stateNode!=null)m0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return et(t),null}if(e=_r(an.current),Ii(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[un]=t,r[Lu]=u,e=(t.mode&1)!==0,n){case"dialog":Ee("cancel",r),Ee("close",r);break;case"iframe":case"object":case"embed":Ee("load",r);break;case"video":case"audio":for(o=0;o<Iu.length;o++)Ee(Iu[o],r);break;case"source":Ee("error",r);break;case"img":case"image":case"link":Ee("error",r),Ee("load",r);break;case"details":Ee("toggle",r);break;case"input":Xh(r,u),Ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Ee("invalid",r);break;case"textarea":em(r,u),Ee("invalid",r)}lc(n,u),o=null;for(var a in u)if(u.hasOwnProperty(a)){var i=u[a];a==="children"?typeof i=="string"?r.textContent!==i&&(u.suppressHydrationWarning!==!0&&Oi(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&Oi(r.textContent,i,e),o=["children",""+i]):vu.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&Ee("scroll",r)}switch(n){case"input":ai(r),Jh(r,u,!0);break;case"textarea":ai(r),nm(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=_i)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[un]=t,e[Lu]=r,h0(e,t,!1,!1),t.stateNode=e;e:{switch(a=cc(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),o=r;break;case"iframe":case"object":case"embed":Ee("load",e),o=r;break;case"video":case"audio":for(o=0;o<Iu.length;o++)Ee(Iu[o],e);o=r;break;case"source":Ee("error",e),o=r;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),o=r;break;case"details":Ee("toggle",e),o=r;break;case"input":Xh(e,r),o=oc(e,r),Ee("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Fe({},r,{value:void 0}),Ee("invalid",e);break;case"textarea":em(e,r),o=ic(e,r),Ee("invalid",e);break;default:o=r}lc(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?am(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&om(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&yu(e,s):typeof s=="number"&&yu(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(vu.hasOwnProperty(u)?s!=null&&u==="onScroll"&&Ee("scroll",e):s!=null&&ql(e,u,s,a))}switch(n){case"input":ai(e),Jh(e,r,!1);break;case"textarea":ai(e),nm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?so(e,!!r.multiple,u,!1):r.defaultValue!=null&&so(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=_i)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)g0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=_r(Hu.current),_r(an.current),Ii(t)){if(r=t.stateNode,n=t.memoizedProps,r[un]=t,(u=r.nodeValue!==n)&&(e=xt,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[un]=t,t.stateNode=r}return et(t),null;case 13:if(Be(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&Ft!==null&&t.mode&1&&!(t.flags&128))Cg(),Ao(),t.flags|=98560,u=!1;else if(u=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(H(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(H(317));u[un]=t}else Ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),u=!1}else qt!==null&&(zf(qt),qt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?$e===0&&($e=3):Uf())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return So(),_f(e,t),e===null&&Mu(t.stateNode.containerInfo),et(t),null;case 10:return rf(t.type._context),et(t),null;case 17:return pt(t.type)&&ki(),et(t),null;case 19:if(Be(Se),u=t.memoizedState,u===null)return et(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Gu(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Wi(e),a!==null){for(t.flags|=128,Gu(u,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,a=u.alternate,a===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,u.type=a.type,e=a.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Se,Se.current&1|2),t.child}e=e.sibling}u.tail!==null&&Re()>ko&&(t.flags|=128,r=!0,Gu(u,!1),t.lanes=4194304)}else{if(!r)if(e=Wi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!be)return et(t),null}else 2*Re()-u.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,r=!0,Gu(u,!1),t.lanes=4194304);u.isBackwards?(a.sibling=t.child,t.child=a):(n=u.last,n!==null?n.sibling=a:t.child=a,u.last=a)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Re(),t.sibling=null,n=Se.current,Ce(Se,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Wf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function FS(e,t){switch(Xc(t),t.tag){case 1:return pt(t.type)&&ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Be(dt),Be(Ze),ff(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lf(t),null;case 13:if(Be(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(Se),null;case 4:return So(),null;case 10:return rf(t.type._context),null;case 22:case 23:return Wf(),null;case 24:return null;default:return null}}var Zi=!1,tt=!1,SS=typeof WeakSet=="function"?WeakSet:Set,J=null;function _o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Pf(e,t,n){try{n()}catch(r){ke(e,t,r)}}var y0=!1;function OS(e,t){if(Vc=yi,e=Gm(),Rc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var a=0,i=-1,s=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==u||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)p=d,d=y;for(;;){if(d===e)break t;if(p===n&&++l===o&&(i=a),p===u&&++c===r&&(s=a),(y=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=y}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wc={focusedElem:e,selectionRange:n},yi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var f=m.memoizedProps,w=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?f:Yt(t.type,f),w);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(E){ke(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return m=y0,y0=!1,m}function Xu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var u=o.destroy;o.destroy=void 0,u!==void 0&&Pf(t,n,u)}o=o.next}while(o!==r)}}function Ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function D0(e){var t=e.alternate;t!==null&&(e.alternate=null,D0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[un],delete t[Lu],delete t[qc],delete t[fS],delete t[dS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C0(e){return e.tag===5||e.tag===3||e.tag===4}function w0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Tf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_i));else if(r!==4&&(e=e.child,e!==null))for(Tf(e,t,n),e=e.sibling;e!==null;)Tf(e,t,n),e=e.sibling}function Rf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rf(e,t,n),e=e.sibling;e!==null;)Rf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)E0(e,t,n),n=n.sibling}function E0(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(di,n)}catch{}switch(n.tag){case 5:tt||_o(n,t);case 6:var r=Ke,o=Qt;Ke=null,Jn(e,t,n),Ke=r,Qt=o,Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?Kc(e.parentNode,n):e.nodeType===1&&Kc(e,n),Ou(e)):Kc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Jn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var u=o,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&Pf(n,t,a),o=o.next}while(o!==r)}Jn(e,t,n);break;case 1:if(!tt&&(_o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){ke(n,t,i)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Jn(e,t,n),tt=r):Jn(e,t,n);break;default:Jn(e,t,n)}}function B0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new SS),t.forEach(function(r){var o=MS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var u=e,a=t,i=a;e:for(;i!==null;){switch(i.tag){case 5:Ke=i.stateNode,Qt=!1;break e;case 3:Ke=i.stateNode.containerInfo,Qt=!0;break e;case 4:Ke=i.stateNode.containerInfo,Qt=!0;break e}i=i.return}if(Ke===null)throw Error(H(160));E0(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){ke(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)A0(t,e),t=t.sibling}function A0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),ln(e),r&4){try{Xu(3,e,e.return),Ji(3,e)}catch(f){ke(e,e.return,f)}try{Xu(5,e,e.return)}catch(f){ke(e,e.return,f)}}break;case 1:Gt(t,e),ln(e),r&512&&n!==null&&_o(n,n.return);break;case 5:if(Gt(t,e),ln(e),r&512&&n!==null&&_o(n,n.return),e.flags&32){var o=e.stateNode;try{yu(o,"")}catch(f){ke(e,e.return,f)}}if(r&4&&(o=e.stateNode,o!=null)){var u=e.memoizedProps,a=n!==null?n.memoizedProps:u,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&u.type==="radio"&&u.name!=null&&Zh(o,u),cc(i,a);var l=cc(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?am(o,d):c==="dangerouslySetInnerHTML"?om(o,d):c==="children"?yu(o,d):ql(o,c,d,l)}switch(i){case"input":uc(o,u);break;case"textarea":tm(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?so(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?so(o,!!u.multiple,u.defaultValue,!0):so(o,!!u.multiple,u.multiple?[]:"",!1))}o[Lu]=u}catch(f){ke(e,e.return,f)}}break;case 6:if(Gt(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(H(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(f){ke(e,e.return,f)}}break;case 3:if(Gt(t,e),ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ou(t.containerInfo)}catch(f){ke(e,e.return,f)}break;case 4:Gt(t,e),ln(e);break;case 13:Gt(t,e),ln(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(If=Re())),r&4&&B0(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(l=tt)||c,Gt(t,e),tt=l):Gt(t,e),ln(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(J=e,c=e.child;c!==null;){for(d=J=c;J!==null;){switch(p=J,y=p.child,p.tag){case 0:case 11:case 14:case 15:Xu(4,p,p.return);break;case 1:_o(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(f){ke(r,n,f)}}break;case 5:_o(p,p.return);break;case 22:if(p.memoizedState!==null){F0(d);continue}}y!==null?(y.return=p,J=y):F0(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,l?(u=o.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(i=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=um("display",a))}catch(f){ke(e,e.return,f)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){ke(e,e.return,f)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Gt(t,e),ln(e),r&4&&B0(e);break;case 21:break;default:Gt(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(C0(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(yu(o,""),r.flags&=-33);var u=w0(e);Rf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=w0(e);Tf(e,i,a);break;default:throw Error(H(161))}}catch(s){ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _S(e,t,n){J=e,b0(e)}function b0(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var o=J,u=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Zi;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||tt;i=Zi;var l=tt;if(Zi=a,(tt=s)&&!l)for(J=o;J!==null;)a=J,s=a.child,a.tag===22&&a.memoizedState!==null?S0(o):s!==null?(s.return=a,J=s):S0(o);for(;u!==null;)J=u,b0(u),u=u.sibling;J=o,Zi=i,tt=l}x0(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,J=u):x0(e)}}function x0(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||Ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Fg(t,u,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fg(t,a,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Ou(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}tt||t.flags&512&&kf(t)}catch(p){ke(t,t.return,p)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function F0(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function S0(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ji(4,t)}catch(s){ke(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){ke(t,o,s)}}var u=t.return;try{kf(t)}catch(s){ke(t,u,s)}break;case 5:var a=t.return;try{kf(t)}catch(s){ke(t,a,s)}}}catch(s){ke(t,t.return,s)}if(t===e){J=null;break}var i=t.sibling;if(i!==null){i.return=t.return,J=i;break}J=t.return}}var PS=Math.ceil,es=Dn.ReactCurrentDispatcher,Nf=Dn.ReactCurrentOwner,It=Dn.ReactCurrentBatchConfig,ce=0,Ve=null,Ie=null,qe=0,St=0,Po=Yn(0),$e=0,Zu=null,kr=0,ts=0,jf=0,Ju=null,ht=null,If=0,ko=1/0,Fn=null,ns=!1,Mf=null,er=null,rs=!1,tr=null,os=0,ea=0,$f=null,us=-1,as=0;function it(){return ce&6?Re():us!==-1?us:us=Re()}function nr(e){return e.mode&1?ce&2&&qe!==0?qe&-qe:vS.transition!==null?(as===0&&(as=wm()),as):(e=ge,e!==0||(e=window.event,e=e===void 0?16:_m(e.type)),e):1}function Xt(e,t,n,r){if(50<ea)throw ea=0,$f=null,Error(H(185));Au(e,n,r),(!(ce&2)||e!==Ve)&&(e===Ve&&(!(ce&2)&&(ts|=n),$e===4&&rr(e,qe)),mt(e,r),n===1&&ce===0&&!(t.mode&1)&&(ko=Re()+500,Ri&&Gn()))}function mt(e,t){var n=e.callbackNode;vF(e,t);var r=hi(e,e===Ve?qe:0);if(r===0)n!==null&&ym(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ym(n),t===1)e.tag===0?pS(_0.bind(null,e)):hg(_0.bind(null,e)),lS(function(){!(ce&6)&&Gn()}),n=null;else{switch(Em(r)){case 1:n=gc;break;case 4:n=Dm;break;case 16:n=fi;break;case 536870912:n=Cm;break;default:n=fi}n=M0(n,O0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function O0(e,t){if(us=-1,as=0,ce&6)throw Error(H(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var r=hi(e,e===Ve?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=is(e,r);else{t=r;var o=ce;ce|=2;var u=k0();(Ve!==e||qe!==t)&&(Fn=null,ko=Re()+500,Rr(e,t));do try{RS();break}catch(i){P0(e,i)}while(!0);nf(),es.current=u,ce=o,Ie!==null?t=0:(Ve=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=yc(e),o!==0&&(r=o,t=Lf(e,o))),t===1)throw n=Zu,Rr(e,0),rr(e,r),mt(e,Re()),n;if(t===6)rr(e,r);else{if(o=e.current.alternate,!(r&30)&&!kS(o)&&(t=is(e,r),t===2&&(u=yc(e),u!==0&&(r=u,t=Lf(e,u))),t===1))throw n=Zu,Rr(e,0),rr(e,r),mt(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Nr(e,ht,Fn);break;case 3:if(rr(e,r),(r&130023424)===r&&(t=If+500-Re(),10<t)){if(hi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hc(Nr.bind(null,e,ht,Fn),t);break}Nr(e,ht,Fn);break;case 4:if(rr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ht(r);u=1<<a,a=t[a],a>o&&(o=a),r&=~u}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*PS(r/1960))-r,10<r){e.timeoutHandle=Hc(Nr.bind(null,e,ht,Fn),r);break}Nr(e,ht,Fn);break;case 5:Nr(e,ht,Fn);break;default:throw Error(H(329))}}}return mt(e,Re()),e.callbackNode===n?O0.bind(null,e):null}function Lf(e,t){var n=Ju;return e.current.memoizedState.isDehydrated&&(Rr(e,t).flags|=256),e=is(e,t),e!==2&&(t=ht,ht=n,t!==null&&zf(t)),e}function zf(e){ht===null?ht=e:ht.push.apply(ht,e)}function kS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],u=o.getSnapshot;o=o.value;try{if(!Kt(u(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rr(e,t){for(t&=~jf,t&=~ts,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function _0(e){if(ce&6)throw Error(H(327));To();var t=hi(e,0);if(!(t&1))return mt(e,Re()),null;var n=is(e,t);if(e.tag!==0&&n===2){var r=yc(e);r!==0&&(t=r,n=Lf(e,r))}if(n===1)throw n=Zu,Rr(e,0),rr(e,t),mt(e,Re()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nr(e,ht,Fn),mt(e,Re()),null}function Vf(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ko=Re()+500,Ri&&Gn())}}function Tr(e){tr!==null&&tr.tag===0&&!(ce&6)&&To();var t=ce;ce|=1;var n=It.transition,r=ge;try{if(It.transition=null,ge=1,e)return e()}finally{ge=r,It.transition=n,ce=t,!(ce&6)&&Gn()}}function Wf(){St=Po.current,Be(Po)}function Rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sS(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(Xc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ki();break;case 3:So(),Be(dt),Be(Ze),ff();break;case 5:lf(r);break;case 4:So();break;case 13:Be(Se);break;case 19:Be(Se);break;case 10:rf(r.type._context);break;case 22:case 23:Wf()}n=n.return}if(Ve=e,Ie=e=or(e.current,null),qe=St=t,$e=0,Zu=null,jf=ts=kr=0,ht=Ju=null,Or!==null){for(t=0;t<Or.length;t++)if(n=Or[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,u=n.pending;if(u!==null){var a=u.next;u.next=o,r.next=a}n.pending=r}Or=null}return e}function P0(e,t){do{var n=Ie;try{if(nf(),Ui.current=Yi,Hi){for(var r=Oe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Hi=!1}if(Pr=0,ze=Me=Oe=null,Ku=!1,qu=0,Nf.current=null,n===null||n.return===null){$e=1,Zu=t,Ie=null;break}e:{var u=e,a=n.return,i=n,s=t;if(t=qe,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var l=s,c=i,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=n0(a);if(y!==null){y.flags&=-257,r0(y,a,i,u,t),y.mode&1&&t0(u,l,t),t=y,s=l;var m=t.updateQueue;if(m===null){var f=new Set;f.add(s),t.updateQueue=f}else m.add(s);break e}else{if(!(t&1)){t0(u,l,t),Uf();break e}s=Error(H(426))}}else if(be&&i.mode&1){var w=n0(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),r0(w,a,i,u,t),ef(Oo(s,i));break e}}u=s=Oo(s,i),$e!==4&&($e=2),Ju===null?Ju=[u]:Ju.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=Jg(u,s,t);xg(u,h);break e;case 1:i=s;var g=u.type,C=u.stateNode;if(!(u.flags&128)&&(typeof g.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(er===null||!er.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=e0(u,i,t);xg(u,E);break e}}u=u.return}while(u!==null)}R0(n)}catch(B){t=B,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(!0)}function k0(){var e=es.current;return es.current=Yi,e===null?Yi:e}function Uf(){($e===0||$e===3||$e===2)&&($e=4),Ve===null||!(kr&268435455)&&!(ts&268435455)||rr(Ve,qe)}function is(e,t){var n=ce;ce|=2;var r=k0();(Ve!==e||qe!==t)&&(Fn=null,Rr(e,t));do try{TS();break}catch(o){P0(e,o)}while(!0);if(nf(),ce=n,es.current=r,Ie!==null)throw Error(H(261));return Ve=null,qe=0,$e}function TS(){for(;Ie!==null;)T0(Ie)}function RS(){for(;Ie!==null&&!uF();)T0(Ie)}function T0(e){var t=I0(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?R0(e):Ie=t,Nf.current=null}function R0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=FS(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Ie=null;return}}else if(n=xS(n,t,St),n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);$e===0&&($e=5)}function Nr(e,t,n){var r=ge,o=It.transition;try{It.transition=null,ge=1,NS(e,t,n,r)}finally{It.transition=o,ge=r}return null}function NS(e,t,n,r){do To();while(tr!==null);if(ce&6)throw Error(H(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(hF(e,u),e===Ve&&(Ie=Ve=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rs||(rs=!0,M0(fi,function(){return To(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=It.transition,It.transition=null;var a=ge;ge=1;var i=ce;ce|=4,Nf.current=null,OS(e,n),A0(n,e),tS(Wc),yi=!!Vc,Wc=Vc=null,e.current=n,_S(n),aF(),ce=i,ge=a,It.transition=u}else e.current=n;if(rs&&(rs=!1,tr=e,os=o),u=e.pendingLanes,u===0&&(er=null),lF(n.stateNode),mt(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ns)throw ns=!1,e=Mf,Mf=null,e;return os&1&&e.tag!==0&&To(),u=e.pendingLanes,u&1?e===$f?ea++:(ea=0,$f=e):ea=0,Gn(),null}function To(){if(tr!==null){var e=Em(os),t=It.transition,n=ge;try{if(It.transition=null,ge=16>e?16:e,tr===null)var r=!1;else{if(e=tr,tr=null,os=0,ce&6)throw Error(H(331));var o=ce;for(ce|=4,J=e.current;J!==null;){var u=J,a=u.child;if(J.flags&16){var i=u.deletions;if(i!==null){for(var s=0;s<i.length;s++){var l=i[s];for(J=l;J!==null;){var c=J;switch(c.tag){case 0:case 11:case 15:Xu(8,c,u)}var d=c.child;if(d!==null)d.return=c,J=d;else for(;J!==null;){c=J;var p=c.sibling,y=c.return;if(D0(c),c===l){J=null;break}if(p!==null){p.return=y,J=p;break}J=y}}}var m=u.alternate;if(m!==null){var f=m.child;if(f!==null){m.child=null;do{var w=f.sibling;f.sibling=null,f=w}while(f!==null)}}J=u}}if(u.subtreeFlags&2064&&a!==null)a.return=u,J=a;else e:for(;J!==null;){if(u=J,u.flags&2048)switch(u.tag){case 0:case 11:case 15:Xu(9,u,u.return)}var h=u.sibling;if(h!==null){h.return=u.return,J=h;break e}J=u.return}}var g=e.current;for(J=g;J!==null;){a=J;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,J=C;else e:for(a=g;J!==null;){if(i=J,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Ji(9,i)}}catch(B){ke(i,i.return,B)}if(i===a){J=null;break e}var E=i.sibling;if(E!==null){E.return=i.return,J=E;break e}J=i.return}}if(ce=o,Gn(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(di,e)}catch{}r=!0}return r}finally{ge=n,It.transition=t}}return!1}function N0(e,t,n){t=Oo(n,t),t=Jg(e,t,1),e=Zn(e,t,1),t=it(),e!==null&&(Au(e,1,t),mt(e,t))}function ke(e,t,n){if(e.tag===3)N0(e,e,n);else for(;t!==null;){if(t.tag===3){N0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(er===null||!er.has(r))){e=Oo(n,e),e=e0(t,e,1),t=Zn(t,e,1),e=it(),t!==null&&(Au(t,1,e),mt(t,e));break}}t=t.return}}function jS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Re()-If?Rr(e,0):jf|=n),mt(e,t)}function j0(e,t){t===0&&(e.mode&1?(t=vi,vi<<=1,!(vi&130023424)&&(vi=4194304)):t=1);var n=it();e=An(e,t),e!==null&&(Au(e,t,n),mt(e,n))}function IS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),j0(e,n)}function MS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),j0(e,n)}var I0;I0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,bS(e,t,n);vt=!!(e.flags&131072)}else vt=!1,be&&t.flags&1048576&&mg(t,ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var o=wo(t,Ze.current);Fo(t,n),o=vf(null,t,r,e,o,n);var u=hf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(r)?(u=!0,Ti(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,af(t),o.updater=Qi,t.stateNode=o,o._reactInternals=t,wf(t,r,e,n),t=bf(null,t,r,!0,u,n)):(t.tag=0,be&&u&&Gc(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=LS(r),e=Yt(r,e),o){case 0:t=Af(null,t,r,e,n);break e;case 1:t=l0(null,t,r,e,n);break e;case 11:t=o0(null,t,r,e,n);break e;case 14:t=u0(null,t,r,Yt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Af(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),l0(e,t,r,o,n);case 3:e:{if(c0(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,o=u.element,bg(e,t),Vi(t,r,null,n);var a=t.memoizedState;if(r=a.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){o=Oo(Error(H(423)),t),t=f0(e,t,r,n,o);break e}else if(r!==o){o=Oo(Error(H(424)),t),t=f0(e,t,r,n,o);break e}else for(Ft=qn(t.stateNode.containerInfo.firstChild),xt=t,be=!0,qt=null,n=Bg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===o){t=xn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return Sg(t),e===null&&Jc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,Uc(r,o)?a=null:u!==null&&Uc(r,u)&&(t.flags|=32),s0(e,t),at(e,t,a,n),t.child;case 6:return e===null&&Jc(t),null;case 13:return d0(e,t,n);case 4:return sf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bo(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),o0(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value,Ce($i,r._currentValue),r._currentValue=a,u!==null)if(Kt(u.value,a)){if(u.children===o.children&&!dt.current){t=xn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){a=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=bn(-1,n&-n),s.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?s.next=s:(s.next=c.next,c.next=s),l.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),of(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)a=u.type===t.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(H(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),of(a,n,t),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===t){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fo(t,n),o=Nt(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=Yt(r,t.pendingProps),o=Yt(r.type,o),u0(e,t,r,o,n);case 15:return a0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Xi(e,t),t.tag=1,pt(r)?(e=!0,Ti(t)):e=!1,Fo(t,n),Xg(t,r,o),wf(t,r,o,n),bf(null,t,r,!0,e,n);case 19:return v0(e,t,n);case 22:return i0(e,t,n)}throw Error(H(156,t.tag))};function M0(e,t){return gm(e,t)}function $S(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new $S(e,t,n,r)}function Hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function LS(e){if(typeof e=="function")return Hf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gl)return 11;if(e===Jl)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ss(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Hf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case io:return jr(n.children,o,u,t);case Yl:a=8,o|=8;break;case Ql:return e=Mt(12,n,t,o|2),e.elementType=Ql,e.lanes=u,e;case Xl:return e=Mt(13,n,t,o),e.elementType=Xl,e.lanes=u,e;case Zl:return e=Mt(19,n,t,o),e.elementType=Zl,e.lanes=u,e;case qh:return ls(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hh:a=10;break e;case Kh:a=9;break e;case Gl:a=11;break e;case Jl:a=14;break e;case $n:a=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function jr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function ls(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=qh,e.lanes=n,e.stateNode={isHidden:!1},e}function Kf(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function qf(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yf(e,t,n,r,o,u,a,i,s){return e=new zS(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Mt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},af(u),e}function VS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ao,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $0(e){if(!e)return Qn;e=e._reactInternals;e:{if(Ar(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(pt(n))return pg(e,n,t)}return t}function L0(e,t,n,r,o,u,a,i,s){return e=Yf(n,r,!0,e,o,u,a,i,s),e.context=$0(null),n=e.current,r=it(),o=nr(n),u=bn(r,o),u.callback=t??null,Zn(n,u,o),e.current.lanes=o,Au(e,o,r),mt(e,r),e}function cs(e,t,n,r){var o=t.current,u=it(),a=nr(o);return n=$0(n),t.context===null?t.context=n:t.pendingContext=n,t=bn(u,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zn(o,t,a),e!==null&&(Xt(e,o,a,u),zi(e,o,a)),a}function fs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function z0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qf(e,t){z0(e,t),(e=e.alternate)&&z0(e,t)}function WS(){return null}var V0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gf(e){this._internalRoot=e}ds.prototype.render=Gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));cs(e,t,null,null)},ds.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tr(function(){cs(null,e,null,null)}),t[Cn]=null}};function ds(e){this._internalRoot=e}ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=bm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Un.length&&t!==0&&t<Un[n].priority;n++);Un.splice(n,0,e),n===0&&Sm(e)}};function Xf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ps(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function W0(){}function US(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=fs(a);u.call(l)}}var a=L0(t,r,e,0,null,!1,!1,"",W0);return e._reactRootContainer=a,e[Cn]=a.current,Mu(e.nodeType===8?e.parentNode:e),Tr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=fs(s);i.call(l)}}var s=Yf(e,0,!1,null,null,!1,!1,"",W0);return e._reactRootContainer=s,e[Cn]=s.current,Mu(e.nodeType===8?e.parentNode:e),Tr(function(){cs(t,s,n,r)}),s}function vs(e,t,n,r,o){var u=n._reactRootContainer;if(u){var a=u;if(typeof o=="function"){var i=o;o=function(){var s=fs(a);i.call(s)}}cs(t,a,e,o)}else a=US(n,t,e,o,r);return fs(a)}Bm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bu(t.pendingLanes);n!==0&&(Cc(t,n|1),mt(t,Re()),!(ce&6)&&(ko=Re()+500,Gn()))}break;case 13:Tr(function(){var r=An(e,1);if(r!==null){var o=it();Xt(r,e,1,o)}}),Qf(e,1)}},wc=function(e){if(e.tag===13){var t=An(e,134217728);if(t!==null){var n=it();Xt(t,e,134217728,n)}Qf(e,134217728)}},Am=function(e){if(e.tag===13){var t=nr(e),n=An(e,t);if(n!==null){var r=it();Xt(n,e,t,r)}Qf(e,t)}},bm=function(){return ge},xm=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}},pc=function(e,t,n){switch(t){case"input":if(uc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Pi(r);if(!o)throw Error(H(90));Gh(r),uc(r,o)}}}break;case"textarea":tm(e,n);break;case"select":t=n.value,t!=null&&so(e,!!n.multiple,t,!1)}},cm=Vf,fm=Tr;var HS={usingClientEntryPoint:!1,Events:[zu,Do,Pi,sm,lm,Vf]},ta={findFiberByHostInstance:br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},KS={bundleType:ta.bundleType,version:ta.version,rendererPackageName:ta.rendererPackageName,rendererConfig:ta.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hm(e),e===null?null:e.stateNode},findFiberByHostInstance:ta.findFiberByHostInstance||WS,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 hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{di=hs.inject(KS),on=hs}catch{}}Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HS,Bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xf(t))throw Error(H(200));return VS(e,t,null,n)},Bt.createRoot=function(e,t){if(!Xf(e))throw Error(H(299));var n=!1,r="",o=V0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Yf(e,1,!1,null,null,n,!1,r,o),e[Cn]=t.current,Mu(e.nodeType===8?e.parentNode:e),new Gf(t)},Bt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=hm(t),e=e===null?null:e.stateNode,e},Bt.flushSync=function(e){return Tr(e)},Bt.hydrate=function(e,t,n){if(!ps(t))throw Error(H(200));return vs(null,e,t,!0,n)},Bt.hydrateRoot=function(e,t,n){if(!Xf(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=V0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=L0(t,null,e,1,n??null,o,!1,u,a),e[Cn]=t.current,Mu(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ds(t)},Bt.render=function(e,t,n){if(!ps(t))throw Error(H(200));return vs(null,e,t,!1,n)},Bt.unmountComponentAtNode=function(e){if(!ps(e))throw Error(H(40));return e._reactRootContainer?(Tr(function(){vs(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1},Bt.unstable_batchedUpdates=Vf,Bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ps(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return vs(e,t,n,!1,r)},Bt.version="18.3.1-next-f1338f8080-20240426";function U0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U0)}catch(e){console.error(e)}}U0(),$h.exports=Bt;var H0=$h.exports;const Ro=nu(H0);function K0(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)),r}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(n),!0).forEach(function(r){No(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ye(e){return(Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ra(e,t,n){return t&&q0(e.prototype,t),n&&q0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(){return(Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ms(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y0(e,t)}function Zf(e){return(Zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Y0(e,t){return(Y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function qS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function YS(e,t){if(e==null)return{};for(var n,r={},o=Object.keys(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||(r[n]=e[n]);return r}function $t(e,t){if(e==null)return{};var n,r=YS(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function gs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QS(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gs(e)}function ys(e){var t=qS();return function(){var n,r=Zf(e);return QS(this,t?(n=Zf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function Q0(e,t){return XS(e)||JS(e,t)||G0(e,t)||tO()}function Ds(e){return GS(e)||ZS(e)||G0(e)||eO()}function GS(e){if(Array.isArray(e))return Jf(e)}function XS(e){if(Array.isArray(e))return e}function ZS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);a=!0);}catch(s){i=!0,o=s}finally{try{a||n.return==null||n.return()}finally{if(i)throw o}}return u}}function G0(e,t){var n;if(e)return typeof e=="string"?Jf(e,t):(n=(n=Object.prototype.toString.call(e).slice(8,-1))==="Object"&&e.constructor?e.constructor.name:n)==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jf(e,t):void 0}function Jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n===void 0)return(t==="string"?String:Number)(e);if(n=n.call(e,t||"default"),typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function X0(e){return e=nO(e,"string"),typeof e=="symbol"?e:String(e)}var Z0={react:{componentWrap:"div",slotWrap:"div",componentWrapAttrs:{__use_react_component_wrap:"",style:{all:"unset"}},slotWrapAttrs:{__use_react_slot_wrap:"",style:{all:"unset"}},vueNamedSlotsKey:["node:"]},vue:{componentWrapHOC:function(e){return function(){var t=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).portals;return M.createElement(M.Fragment,null,e,(t===void 0?[]:t).map(function(o){var r=o.Portal,o=o.key;return M.createElement(r,{key:o})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function J0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:Z0,t=2<arguments.length?arguments[2]:void 0,n=(e.vue||(e.vue={}),e.react||(e.react={}),[n,$($({},e),{},{react:$($($({},n.react),e.react),{},{componentWrapAttrs:$($({},n.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:$($({},n.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:$($($({},n.vue),e.vue),{},{componentWrapAttrs:$($({},n.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:$($({},n.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return t&&n.unshift({}),Object.assign.apply(this,n)}var ey=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],oa={Document:{},Element:{}};function rO(e){Object.keys(oa).forEach(function(t){ey.forEach(function(n){var r=window[t].prototype[n];r&&(oa[t][n]=r,window[t].prototype[n]=function(){for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];var i=r.apply(this,u);return i&&(i.constructor!==NodeList||i.constructor===NodeList&&0<i.length)?i:(n==="getElementById"&&(n="querySelector",u=["#"+u[0]]),(oa.Element[n]||Element.prototype[n]).apply(e,u))})})})}function oO(){Object.keys(oa).forEach(function(e){ey.forEach(function(t){window[e].prototype[t]=oa[e][t]})})}var uO=["ref"],aO=["key"],iO=["hashList"],ty=parseInt(M.version);function Sk(e){return e}var sO=function(){ms(t,M.Component);var e=ys(t);function t(n){return na(this,t),e.call(this,n)}return ra(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,$t(r,uO));return M.createElement(n,r,this.props.children)}}]),t}(),lO=function(e,t,n){var r=function(){ms(u,M.Component);var o=ys(u);function u(a){var i;return na(this,u),(i=o.call(this,a)).state=$($({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(gs(i)),i.vueInReactCall=i.vueInReactCall.bind(gs(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return ra(u,[{key:"reactPropsLinkToVueInstance",value:function(a){Object.keys(a).forEach(function(i){n[i]||(n[i]=a[i])}),Object.getOwnPropertyNames(a.__proto__).filter(function(i){return["constructor","render"].indexOf(i)<0}).forEach(function(i){n[i]||(n[i]=a[i])})}},{key:"setRef",value:function(a){var i=this;a&&(n.__veauryReactRef__=a,this.reactPropsLinkToVueInstance(a),Promise.resolve().then(function(){return i.reactPropsLinkToVueInstance(a)}),(this.setRef.current=a).__veauryVueWrapperRef__=n)}},{key:"createSlot",value:function(a){return{originVNode:a,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var i,s;return((i=a=(a=((s=this.$slots)==null||(i=s.default)==null?void 0:i.call(s))||a)instanceof Function?a(this):a)==null?void 0:i.length)===1&&(s=a[0])!=null&&s.data&&((i=this.$attrs).key,s=$t(i,aO),a[0].props=$($({},s),a[0].props)),a}}}},{key:"componentWillUnmount",value:function(){n.__veauryReactRef__&&(n.__veauryReactRef__.__veauryVueWrapperRef__=null,n.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(a){var i=this,s=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return 2<arguments.length&&arguments[2]&&a&&a[0]?a.map(function(l,c){return ws(i.createSlot(l instanceof Function?l:[l]),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null?void 0:l.key)||void 0})}):ws(this.createSlot(a),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render()}},{key:"render",value:function(){var a,i,s,l=this,w=this.state,c=w.hashList,d=$t(w,iO),p={},y={};for(a in d)i=a,s=void 0,d.hasOwnProperty(i)&&d[i]!=null&&(d[i].__slot?(d[i].reactSlot?d[i]=d[i].reactSlot:(s=d[i],t.defaultSlotsFormatter&&d[i].__trueChildren?(d[i].__trueChildren.__top__=l.__veauryVueWrapperRef__,d[i]=t.defaultSlotsFormatter(d[i].__trueChildren,l.vueInReactCall,c),d[i]instanceof Array?d[i]=Ds(d[i]):-1<["string","number"].indexOf(Ye(d[i]))?d[i]=[d[i]]:Ye(d[i])==="object"&&(d[i]=$({},d[i]))):d[i]=$({},ws(l.createSlot(d[i]),$($({},t),{},{isSlots:!0,wrapInstance:n})).render()),d[i].vueFunction=s),p[i]=d[i]):d[i].__scopedSlot&&(d[i]=d[i](l.createSlot),y[i]=d[i]));var m,f,w={};return w.ref=this.setRef,t.isSlots?this.state.children||this.props.children:(m=d,e.__syncUpdateForPureReactInVue&&Object.keys(e.__syncUpdateForPureReactInVue).map(function(h){var g,C;m[h]&&typeof m[h]=="function"&&(g=l.__veauryVueWrapperRef__,C=m[h],m[h]=function(){for(var E=arguments.length,B=new Array(E),x=0;x<E;x++)B[x]=arguments[x];g.__veaurySyncUpdateProps__(e.__syncUpdateForPureReactInVue[h].apply(this,B)),C.apply(this,B),g.macroTaskUpdate=!0,g.__veauryMountReactComponent__(!0,!0,{})})}),f=$($($({},m=t.defaultPropsFormatter?t.defaultPropsFormatter.call(this,m,this.vueInReactCall,c):m),p),y),Object.getPrototypeOf(e)!==Function.prototype&&(Ye(e)!=="object"||e.render)||u.catchVueRefs()?(Object.getPrototypeOf(e)===Function.prototype&&delete w.ref,M.createElement(e,Ir({},f,w))):M.createElement(sO,Ir({passedProps:f,component:e},w),f.children))}}],[{key:"catchVueRefs",value:function(){if(n.$parent){for(var a in n.$parent.$refs)if(n.$parent.$refs[a]===n)return!0}return!1}}]),u}();return No(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function ed(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return e.__esModule&&e.default&&(e=e.default),t.isSlots&&(e=e()),t=J0(t,void 0,!0),{originReactComponent:e,setup:function(n,r){var o,u,a,i;if(!t.isSlots)return o={},u=v.reactive({}),a=v.getCurrentInstance(),typeof(i=t.useInjectPropsFromWrapper||e.__veauryInjectPropsFromWrapper__)=="function"&&(typeof(i=i.call(a.proxy,n))!="function"?(Object.assign(u,i),o.__veauryInjectedProps__=u):a.proxy.__veauryInjectedComputed__=i),o},data:function(){return{VEAURY_Portals:[]}},created:function(){this.__veauryPortalKeyPool__=[],this.__veauryMaxPortalCount__=0},computed:{__veauryInjectedProps__:function(){var n;return(n=this.__veauryInjectedComputed__)==null?void 0:n.call(this)}},render:function(){var n=v.h(t.react.componentWrap,$({ref:"react"},t.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(u){var o=u.Portal,u=u.key;return o(v.h,u)}));return this.__veauryCheckReactSlot__(this.$slots),n},methods:{__veauryCheckReactSlot__:function(n){var r=this;function o(u,a,i){return a[i]&&(u[i]=a[i],1)}Ye(n)==="object"&&n!=null&&(n instanceof Array?n.forEach(function(u){r.__veauryCheckReactSlot__(u.children)}):Object.keys(n).forEach(function(s){var a,i,s=n[s];if(typeof s=="function"){try{a=s.apply(r,s.__reactArgs||[{}])}catch{return}(s.__trueChildren=a).forEach(function(l){l.children&&r.__veauryCheckReactSlot__(l.children)}),a.length!==1||o(s,a=a[0],"reactSlot")||o(s,a,"reactFunction")||a.type!==v.Fragment||((i=a.children)==null?void 0:i.length)!==1||o(s,i=a.children[0],"reactSlot")||o(s,i,"reactFunction")}}))},__veauryPushVuePortal__:function(n){var r=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:n,key:r})},__veauryRemoveVuePortal__:function(n){var r,o=this.VEAURY_Portals.find(function(u,a){if(u.Portal===n)return r=a,!0});this.__veauryPortalKeyPool__.push(o.key),this.VEAURY_Portals.splice(r,1)},__veauryGetScopeSlot__:function(n,r,o){var u=this;function a(i){function s(){for(var l,c=this,d=arguments.length,p=new Array(d),y=0;y<d;y++)p[y]=arguments[y];return n.reactFunction?n.reactFunction.apply(this,p):t.defaultSlotsFormatter?((l=n.apply(this,p)).__top__=u,(l=t.defaultSlotsFormatter(l,u.__veauryVueInReactCall__,r))instanceof Array||-1<Ye(l).indexOf("string","number")?l=Ds(l):Ye(l)==="object"&&(l=$({},l)),l):ws(i(function(){return n.apply(c,p)}),$($({},t),{},{isSlots:!0,wrapInstance:u})).render()}return t.pureTransformer&&o?s.vueFunction=o:s.vueFunction=n,s}return a.__scopedSlot=!0,a},__veaurySyncUpdateProps__:function(n){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(n)},__veauryMountReactComponent__:function(n,r){var o,u,a=this,i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},s={},l=[],c=this.$.vnode.scopeId,d=(c&&(s[c]="",l.push(c)),{}),p={};if(!n||r!=null&&r.slot)for(var y in this.$slots||{})(function(C){var E;a.$slots.hasOwnProperty(C)&&a.$slots[C]!=null&&((E=t.react.vueNamedSlotsKey.find(function(B){return C.indexOf(B)===0}))||C==="default"?(E=C.replace(new RegExp("^".concat(E)),""),d[E]=a.$slots[C],d[E].__slot=!0):p[C]=a.__veauryGetScopeSlot__(a.$slots[C],l,(E=a.$.vnode)==null||(E=E.children)==null?void 0:E[C]))})(y);(!n||r!=null&&r.slot)&&(u=$({},d),o=u.default,delete u.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var m={slot:function(){a.__veauryLast__.slot=$($($({},o?{children:o}:{children:null}),u),p)},attrs:function(){a.__veauryLast__.attrs=a.$attrs}};if(r&&Object.keys(r).forEach(function(C){return m[C]()}),n){let C=function(){a.__veauryReactInstance__&&a.__veauryReactInstance__.setState(function(E){return Object.keys(E).forEach(function(B){t.isSlots&&B==="children"||delete E[B]}),$($($($({},a.__veauryCache__),a.__veauryInjectedProps__),!t.isSlots&&a.__veauryLast__.slot),a.__veauryLast__.attrs)}),a.__veauryCache__=null};!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){C(),a.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(a.updateTimer),C(),a.macroTaskUpdate=!1})),this.__veauryCache__=$($({},this.__veauryCache__||{}),$($($($({},i),this.$attrs.class?{className:this.$attrs.class}:{}),$({},s)),{},{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||C()}else{m.slot(),m.attrs();var c=lO(e,t,this),f=M.createElement(c,Ir({},this.$attrs,this.__veauryInjectedProps__,{children:o},u,p,this.$attrs.class?{className:this.$attrs.class}:{},s,{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(E){return a.__veauryReactInstance__=E}})),w=this.$refs.react,h=t.wrapInstance;if(h)(h=t.wrapInstance).__veauryVueWrapperRef__=this;else for(var g=this.$parent;g;){if(g.parentReactWrapperRef){h=g.parentReactWrapperRef;break}if(g.reactWrapperRef){h=g.reactWrapperRef;break}g=g.$parent}h?(this.parentReactWrapperRef=h,this.reactPortal=function(){return H0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<ty?(Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=Ro.createRoot(w),this.__veauryReactApp__.render(f)):Ro.render(f,w)}}},mounted:function(){var n=this;this.__VEAURY_IGNORE_STRANGE_UPDATE__=!0,Promise.resolve().then(function(){n.__VEAURY_IGNORE_STRANGE_UPDATE__=!1}),clearTimeout(this.updateTimer),this.__veauryMountReactComponent__()},beforeUnmount:function(){var n;clearTimeout(this.updateTimer),rO(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<ty?this.__veauryReactApp__.unmount():Ro.unmountComponentAtNode(this.$refs.react),oO()},updated:function(){this.__VEAURY_IGNORE_STRANGE_UPDATE__||this.__veauryMountReactComponent__(!0,{slot:!0})},inheritAttrs:!1,watch:{$attrs:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0},__veauryInjectedProps__:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0}}}}var cO=new Set(["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onChange","onInput","onInvalid","onReset","onSubmit","onError","onLoad","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"]);function fO(e,t){for(var n=(e=t=(e==null?void 0:e._reactInternals)||(e==null?void 0:e._reactInternalFiber)||t)==null?void 0:e.return;n;){var r=n.stateNode;if(r=(r==null?void 0:r.parentVueWrapperRef)||(r==null?void 0:r.__veauryVueWrapperRef__))return r;n=n.return}}function ny(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function ry(e,t,n){var r=this,o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:"v-model",u=t;if(!(u instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if(typeof u[1]!="function")throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, the second element of the array must be a setter function"));var a=u[1],i=(typeof u[2]=="string"?(n=u[2],u[3]instanceof Array&&ny(e,n,u[3])):u[2]instanceof Array&&ny(e,n,u[2]),e["onUpdate:"+n]);e["onUpdate:"+n]=typeof i=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(r,l),a.apply(r,l)}:a,e[n]=u[0]}function td(e){var t=this,n={},r=$({},e);return Object.keys(e).forEach(function(o){var u,a=o.match(/^onUpdate-([^-]+)/);if(a)delete r[o],u=n["onUpdate:".concat(a[1])],n["onUpdate:".concat(a[1])]=typeof u=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];u.apply(t,l),e[o].apply(t,l)}:e[o];else if(a=o.match(/^v-model($|:([^:]+)|-([^:]+))/))a=a[2]||a[3]||"modelValue",ry(n,e[o],a),delete r[o];else if(o==="v-models"){if(Ye(e[o])!=="object"||e[o]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var i=e[o];Object.keys(i).forEach(function(s){ry(n,i[s],s,"v-models")}),delete r[o]}}),$($({},r),n)}var Cs=function(){function e(){na(this,e),No(this,"pool",new Set)}return ra(e,[{key:"getRandomId",value:function(t){var n=t+(Math.random()+"").substr(2);return this.pool.has(n)?this.getRandomId(t):(this.pool.add(n),n)}}]),e}();function oy(r,t){var n,r=r.node;if(typeof r=="function"&&(r=r()),(n=t)!=null&&n.current||typeof t=="function"||(n=t)!=null&&n.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(Ye(r)))return r;if(r instanceof Array){if(r.length!==1)return r;r=r[0]}return $($({},r),{},{ref:t})}var dO=ed(oy);function nd(e){return v.h(dO,{node:function(){return e.node}})}nd.originReactComponent=M.forwardRef(oy);var pO=["component","node"],vO=["component","$slots","children","class","style"],hO=["className","classname"],ur="veaury-options",uy=new Cs;function mO(e,t){var n;return e=typeof e=="string"&&t?(t=t.$)==null||(t=t.appContext)==null||(t=t.app)==null||(n=t.component)==null?void 0:n.call(t,e):e}function ay(e){if(e)return Object.keys(e).forEach(function(t){var n=e[t];n!=null&&(typeof n=="function"?(e[t]=n,e[t].reactFunction=n):(e[t]=function(){return n},e[t].reactSlot=n),n.vueFunction&&(e[t].vueFunction=n.vueFunction))}),e}function gO(e){var t;return(t=e.node)==null?void 0:t.call(e)}var rd=M.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=$t(o,pO);if(a==null&&r==null)return null;if(r!=null){if(r.$$typeof||typeof r=="string"||typeof r=="number")return r;typeof r!="function"&&(n=r,r=function(){return n})}var u,a=a||gO,i=J0(o[ur]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),M.createElement(yO,Ir({},$($($($({component:a},r?{node:r}:{}),o),u),{},No({},ur,i)),{ref:t}))}),yO=function(){ms(t,M.Component);var e=ys(t);function t(n){var r;return na(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(gs(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return ra(t,[{key:"pushReactPortal",value:function(n){var r=this.state.portals,o=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;r.push({Portal:n,key:o}),this.setState({portals:r})}},{key:"removeReactPortal",value:function(n){var r,o=this.state.portals,u=o.find(function(a,i){if(a.Portal===n)return r=i,!0});this.__veauryPortalKeyPool__.push(u.key),o.splice(r,1),this.__veauryVueRef__&&this.setState({portals:o})}},{key:"createVueComponentContainer",value:function(){var n=this,r={},o=this.props[ur];return o.isSlots?(Object.keys(this.props).forEach(function(u){cO.has(u)&&typeof n.props[u]=="function"&&(r[u]=n.props[u])}),o.vue.slotWrapAttrs&&(r=$($({},r),o.vue.slotWrapAttrs))):o.vue.componentWrapAttrs&&(r=$($({},r),o.vue.componentWrapAttrs)),o.vue.componentWrapHOC(M.createElement("div",Ir({},o.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),r)}},{key:"shouldComponentUpdate",value:function(n,r,o){var u,a,i,s,l=this;return n===this.props||(u=n.component,n[ur],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=$t(n,["component",ur,"v-slots","children"].map(X0)),this.__veauryCurrentVueComponent__!==u&&this.updateVueComponent(u),!!u.__fromReactSlot||(this.__veauryVueInstance__?(i&&(a=a||{},Ye(i)!=="object"||i instanceof Array||i.$$typeof?a.default=i:a=i),(s=this.__veauryVueInstance__.$data.$slots)&&Object.keys(s).forEach(function(c){delete s[c]}),a&&(s||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,ay(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,td(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),uy.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[ur]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=$t(s,["component",ur,"children","v-slots"].map(X0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Ye(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=ay(i))&&(s.$slots=i),l=l.bind(this);var c,d=$({},td(s)),p={data:function(){return u.isSlots?{children:o.__veauryCurrentVueComponent__.originVNode}:d},created:function(){this.reactWrapperRef=o,l(this)},methods:{reactInVueCall:function(y){return 2<arguments.length&&arguments[2]&&y&&y[0]?y.map(function(m,f){return v.h(nd,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(nd,{node:y})},getScopedSlots:function(y,m){var f,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),$({},m));for(f in h)(function(g){var C,E;!h.hasOwnProperty(g)||(C=h[g])==null||(h[g]=(E=C,function(){for(var B,x,A,S,N=arguments.length,O=new Array(N),W=0;W<N;W++)O[W]=arguments[W];return E.vueFunction?E.vueFunction.apply(w,O):(A=E.reactSlot,S=E.reactFunction,A=A||(S==null?void 0:S.apply(w,O)),S=u.defaultSlotsFormatter,(B=w.getScopedSlots.__scopeSlots[g])!=null&&(B=B.component)!=null&&(B=B.ctx)!=null&&B.__veauryReactInstance__?(x=w.getScopedSlots.__scopeSlots[g],Promise.resolve().then(function(){var P;(P=x)!=null&&(P=P.component)!=null&&(P=P.ctx)!=null&&(P=P.__veauryReactInstance__)!=null&&P.setState({children:E.apply(w,O)})})):(x=S&&A?[S(A,w.reactInVueCall)]:y(ed(function(){return E.apply(w,O)},$($({},u),{},{isSlots:!0,wrapInstance:o}))),w.getScopedSlots.__scopeSlots[g]=x),E.reactFunction?x.reactFunction=E.reactFunction:E.reactSlot&&(x.reactSlot=E.reactSlot),x)}),h[g].reactFunction=C)})(f);return h}},mounted:function(){n.removeAttribute("id"),o.__veauryVueRef__=this.$refs.use_vue_wrapper,this.$refs.use_vue_wrapper.reactWrapperRef=o},beforeUnmount:function(){o.__veauryVueRef__=null,this.$refs.use_vue_wrapper.reactWrapperRef=null},render:function(){var y=this,C=this.$data,h=(C.component,C.$slots),m=(C.children,C.class),f=C.style,C=$t(C,vO),w=this.getScopedSlots(v.h,$({},h)),h=C.className,g=C.classname,C=$t(C,hO),E={};return Object.keys(w).forEach(function(B){var x=w[B];E[B]=typeof x=="function"?x:function(){return x}}),v.h(mO(o.__veauryCurrentVueComponent__,this),$($($($({},C),m||h||g?{class:m||h||g}:{}),f?{style:f}:{}),{},{ref:"use_vue_wrapper"}),$({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:$({},E)))}};n&&(c=uy.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=fO(this),a&&document.getElementById(c)?(this.parentVueWrapperRef=a,this.vuePortal=function(y,m){return y(v.Teleport,{to:"#"+c,key:c},[y(Object.assign(p,{router:r._router}))])},a.__veauryPushVuePortal__(this.vuePortal)):(i=v.createApp(p),typeof u.beforeVueAppMount=="function"&&u.beforeVueAppMount(i),this.__veauryVueInstance__=i.mount(n)))}},{key:"updateVueComponent",value:function(n){this.__veauryVueInstance__&&(n.__fromReactSlot?this.__veauryVueInstance__.children=typeof n.originVNode=="function"?n.originVNode:function(){return n.originVNode}:(this.__veauryCurrentVueComponent__=n,this.__veauryVueInstance__.$forceUpdate()))}},{key:"render",value:function(){return M.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),t}();function ws(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=(e||console.warn("Component must be passed in applyVueInReact!"),e.__esModule&&e.default&&(e=e.default),M.forwardRef(function(r,o){return M.createElement(rd,Ir({},r,{component:e,ref:o},No({},ur,t)))}));return n.originVueComponent=e,n}new Cs;function DO(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,ed(e,r||{}));return o.install=function(u){var a=(1<arguments.length&&arguments[1]!==void 0?arguments[1]:{}).globalName;return n&&u.component(a||n,o),o},o}function iy(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function Es(e){var t;return e?typeof e=="string"?(e=e.trim()).split(/\s*;\s*/).reduce(function(n,r){return r&&(r=r.split(/\s*:\s*/)).length===2&&Object.assign(n,No({},iy(r[0]),r[1])),n},{}):Ye(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[iy(n)]=e[n]}),t):{}:{}}function Bs(e){return e?e instanceof Array?e:typeof e=="string"?(e=e.trim()).split(/\s+/):Ye(e)==="object"?Object.keys(e).filter(function(t){return!!e[t]}):[]:[]}var CO=["ref"];function wO(e,t,n,r,o){var u=e.props||{},u=(u.ref,$t(u,CO)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=Z0.react.vueNamedSlotsKey.find(function(y){return c.indexOf(y)===0});p||c==="default"?(p=c.replace(new RegExp("^".concat(p)),"").replace(/^default$/,"children"),a[p]=r.call(e.__top__,d(),n,o)):typeof d=="function"&&(a[c]=function(){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];return d.__reactArgs=m,r(d.apply(this,m),n,o)})}),{}),s=Es(u.style),l=Array.from(new Set(Bs(u.class))).join(" ");return 0<Object.keys(s).length&&(i.style=s),l!==""&&(i.className=l),Object.assign(u,$($({},i),a)),delete u.class,u}function sy(e){return e.type===v.Text}new Cs;function ly(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?M.createElement(EO,{vnode:e},t):t}var EO=function(){ms(t,M.Component);var e=ys(t);function t(n){var r;return na(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return ra(t,[{key:"findDirectiveName",value:function(n){var r=n.dir,o=-1;return[this.state.savedDirectives.find(function(u,a){if(u.dir===r)return o=a,!0}),o]}},{key:"doDirective",value:function(){var n=this,a=this.state,r=a.savedDirectives;if(!(o=a.ref)){for(var o=(this._reactInternals||this._reactInternalFiber).child;o&&o.tag!==5;)o=o.child;if(!o)return;o=o.stateNode}var u=this.props.vnode,a=u.dirs;a&&(a.forEach(function(i){var s,l,c,d,p,y,m;i&&(m=(s=Q0(n.findDirectiveName(i),2))[0],s=s[1],l=(p=i.dir).created,c=p.beforeMount,d=p.mounted,y=p.beforeUpdate,p=p.updated,m?(r[s]=$($($({},m),i),{},{oldValue:m.oldValue}),m=[o,r[s],u,n.state.prevVnode],y!=null&&y.apply(null,m),p!=null&&p.apply(null,m),r[s].oldValue=i.value):(r.push(i),y=[o,i,u,null],l!=null&&l.apply(null,y),c!=null&&c.apply(null,y),d!=null&&d.apply(null,y),i.oldValue=i.value))}),this.setState({prevVnode:$({},u),savedDirectives:r,ref:o}))}},{key:"componentDidMount",value:function(){this.doDirective()}},{key:"componentDidUpdate",value:function(n){n.vnode!==this.props.vnode&&this.doDirective()}},{key:"componentWillUnmount",value:function(){var n=this,r=this.props.vnode,i=this.state,o=i.savedDirectives,u=i.ref,a=i.prevVnode,i=r.dirs;i&&(i.forEach(function(s){var l,c,d,p;s&&(l=(p=Q0(n.findDirectiveName(s),2))[0],p=p[1],l&&(c=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=$($({},l),s),p=[u,l,r,a],c!=null&&c.apply(null,p),d!=null&&d.apply(null,p)))}),this.setState({prevVnode:$({},r),savedDirectives:o}))}},{key:"render",value:function(){var n=this.props;return n.vnode,n.children}}]),t}();function BO(e,t){var n;return typeof e=="function"&&(n=e.toString(),e.prototype!==void 0&&e.prototype.constructor===e&&(n.slice(0,5)=="class"||2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(n)&&!!/\b\(this\b|\bthis[\.\[]\b/.test(n)&&!t))}function cy(e,t){var n,r,o,u;return typeof((o=e.type)==null?void 0:o.originReactComponent)!="function"||BO((o=e.type)==null?void 0:o.originReactComponent)?((o=e.ref)!=null&&o.k?(n=(o=e.ref)==null?void 0:o.k,r=(o=e.ref)==null?void 0:o.r):n=(o=e.ref)==null?void 0:o.r,n&&typeof n=="string"&&(u=n,n=function(a){var i;(i=e.ref)!=null&&(i=i.i)!=null&&i.refs&&((i=$({},e.ref.i.refs))[u]=a,e.ref.i.refs=i),r?r.value=a:e.ref.i.setupState&&u in e.ref.i.setupState&&(e.ref.i.setupState[u]=a),a&&(a.__syncUpdateProps=function(){t.__top__&&(e.__extraData=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t.__top__.__syncUpdateProps({}))})},n=new Proxy(n,{get:function(a,i){return a[i]},set:function(a,i,s){var l;return(l=e.ref)!=null&&(l=l.i)!=null&&l.refs&&u in((l=e.ref)==null||(l=l.i)==null?void 0:l.refs)&&((l=$({},e.ref.i.refs))[i]=s,e.ref.i.refs=l),s}})),n):null}function od(e,t){return!t||t instanceof Array&&t.length===0||(typeof t=="string"&&(t=[t]),(e=$({},e)).props=$({},e.props),t.forEach(function(n){e.props[n]=""})),e}var AO=["style","class"];function fy(e,t,n,r,o,u,a){var i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===v.Fragment?o.call(a,e.children,n,u):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(t=cy(e),l=(s=e.props||{}).style,i=s.class,s=$($({},$t(s,AO)),{},{style:Es(l),className:Array.from(new Set(Bs(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:Ds(l)).__top__=a),ly(e,od(re.createElement(e.type,s,o.call(a,l,n,u)),e.scopeId))):n([e],null,r)}function bO(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0,n=2<arguments.length?arguments[2]:void 0;return n.__syncUpdateForPureReactInVue&&Object.keys(n.__syncUpdateForPureReactInVue).map(function(r){var o;e[r]&&typeof e[r]=="function"&&t.__top__&&(o=e[r],e[r]=function(){for(var u=arguments.length,a=new Array(u),i=0;i<u;i++)a[i]=arguments[i];t.__extraData=n.__syncUpdateForPureReactInVue[r].apply(this,a),t.__top__.__veaurySyncUpdateProps__({}),t.__top__.macroTaskUpdate=!0,o.apply(this,a),t.__top__&&Promise.resolve().then(function(){t.__extraData=null,t.__top__.__veauryMountReactComponent__(!0)})})}),e}function dy(e,t,n){return!((e=e instanceof Array&&e.length===1?e[0]:e)instanceof Array)&&e.key==null&&1<t.length&&((e=$({},e)).key="_key_".concat(n)),e}function py(r){var t=r.reactComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i,s){var l;return a&&a.forEach?(a.__top__||(a.__top__=this),l=[],a.forEach(function(c,d){if(c&&c.type!==v.Comment){if((m=c.type)==null||!m.originReactComponent)return c.$$typeof||typeof c=="string"||typeof c=="number"?void l.push(c):sy(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(od(m=dy(fy(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;od(p=dy(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=wO(c,"_key_".concat(d),i,u,s),y=cy(c,a),c.children&&(c.children.__top__=a.__top__),ly(c,re.createElement(m,$($($({},bO(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):sy(c)?c.text:fy(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var ud=py({reactComponents:"all",domTags:"all"});function xO(e,t){return DO(e,{combinedOption:$({pureTransformer:!0,defaultSlotsFormatter:ud,defaultPropsFormatter:function(n,r,o){var u={};return Object.keys(n).forEach(function(a){var i=n[a];i&&(i.vueFunction?(u[a]=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return ud(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=ud(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}py({reactComponents:"all",domTags:"all"});var FO=["ref","children","v-slots"];function SO(s,t,n,r,o){var s=s.props||{},l=(s.ref,s.children),a=s["v-slots"],u=a===void 0?{}:a,a=$t(s,FO),i=(l&&(Ye(l)!=="object"||l instanceof Array||l.$$typeof?u.default=l:u=l),null),s=(Object.keys(u||{}).forEach(function(d){var p=u[d];(i=i||{})[d]=function(){if(typeof p=="function"){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];p=p.apply(this,m)}return r(p,n,o)}}),{}),l=Es(a.style),c=Array.from(new Set(Bs(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),c!==""&&(s.class=c),Object.assign(a,$({},s)),delete a.className,{props:a=td(a),slots:i}}function vy(e){var t=e.ref;if(t)return Ye(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var OO=["style","class","children"];function hy(e,t,n,r,o,u){var a,i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===M.Fragment?o((a=e.props)==null?void 0:a.children,n):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(a=vy(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=$t(t,OO),s=Array.from(new Set(Bs(s))).join(" "),l=Es(l),t=$($($($({},t),Object.keys(l).length===0?{}:{style:l}),s?{className:s}:{}),a?{ref:a}:{}),Object.keys(t).length===0&&(t=null),(l=i)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:l instanceof Array?Ds(l):$({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function my(r){var t=r.vueComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i){if(a==null)return a;a instanceof Array||(a=[a]);var s=[];return a.forEach(function(l,c){if(((d=l.type)==null||!d.originVueComponent)&&l.type!==rd)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=hy(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===rd){if(!l.props.component)return void s.push(l.props.node);d=l.props.component,l=$({},l);var p=$({},l.props);delete p.component,l.props=p}d=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(d)?((l=$({},l)).__top__=a.__top__,c=(p=SO(l,"_key_".concat(c),i,u)).props,p=p.slots,vy(l),l.children&&(l.children.__top__=a.__top__),v.h(d,$({},c),p)):hy(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}my({vueComponents:"all",domTags:"all"}),my({reactComponents:"all",domTags:"all"}),new Cs;var gy={exports:{}},As={};/**
|
44
44
|
* @license React
|
45
45
|
* react-jsx-runtime.production.min.js
|
46
46
|
*
|
@@ -48,14 +48,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
48
48
|
*
|
49
49
|
* This source code is licensed under the MIT license found in the
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
51
|
-
*/var OO=M,_O=Symbol.for("react.element"),PO=Symbol.for("react.fragment"),kO=Object.prototype.hasOwnProperty,TO=OO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RO={key:!0,ref:!0,__self:!0,__source:!0};function gy(e,t,n){var r,o={},u=null,a=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)kO.call(t,r)&&!RO.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:_O,type:e,key:u,ref:a,props:o,_owner:TO.current}}Bs.Fragment=PO,Bs.jsx=gy,Bs.jsxs=gy,my.exports=Bs;var Ne=my.exports,NO=MO,yy="֑-߿יִ-﷽ﹰ-ﻼ",Dy="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",jO=new RegExp("^[^"+Dy+"]*["+yy+"]"),IO=new RegExp("^[^"+yy+"]*["+Dy+"]");function MO(e){return e=String(e||""),jO.test(e)?"rtl":IO.test(e)?"ltr":"neutral"}const Cy=nu(NO);function $O(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ud=$O,LO=typeof Ia=="object"&&Ia&&Ia.Object===Object&&Ia,zO=LO,VO=zO,WO=typeof self=="object"&&self&&self.Object===Object&&self,UO=VO||WO||Function("return this")(),wy=UO,HO=wy,KO=function(){return HO.Date.now()},qO=KO,YO=/\s/;function QO(e){for(var t=e.length;t--&&YO.test(e.charAt(t)););return t}var GO=QO,XO=GO,ZO=/^\s+/;function JO(e){return e&&e.slice(0,XO(e)+1).replace(ZO,"")}var e_=JO,t_=wy,n_=t_.Symbol,Ey=n_,By=Ey,Ay=Object.prototype,r_=Ay.hasOwnProperty,o_=Ay.toString,oa=By?By.toStringTag:void 0;function u_(e){var t=r_.call(e,oa),n=e[oa];try{e[oa]=void 0;var r=!0}catch{}var o=o_.call(e);return r&&(t?e[oa]=n:delete e[oa]),o}var a_=u_,i_=Object.prototype,s_=i_.toString;function l_(e){return s_.call(e)}var c_=l_,by=Ey,f_=a_,d_=c_,p_="[object Null]",v_="[object Undefined]",xy=by?by.toStringTag:void 0;function h_(e){return e==null?e===void 0?v_:p_:xy&&xy in Object(e)?f_(e):d_(e)}var m_=h_;function g_(e){return e!=null&&typeof e=="object"}var y_=g_,D_=m_,C_=y_,w_="[object Symbol]";function E_(e){return typeof e=="symbol"||C_(e)&&D_(e)==w_}var B_=E_,A_=e_,Fy=ud,b_=B_,Sy=NaN,x_=/^[-+]0x[0-9a-f]+$/i,F_=/^0b[01]+$/i,S_=/^0o[0-7]+$/i,O_=parseInt;function __(e){if(typeof e=="number")return e;if(b_(e))return Sy;if(Fy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=A_(e);var n=F_.test(e);return n||S_.test(e)?O_(e.slice(2),n?2:8):x_.test(e)?Sy:+e}var P_=__,k_=ud,ad=qO,Oy=P_,T_="Expected a function",R_=Math.max,N_=Math.min;function j_(e,t,n){var r,o,u,a,i,s,l=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(T_);t=Oy(t)||0,k_(n)&&(c=!!n.leading,d="maxWait"in n,u=d?R_(Oy(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(x){var A=r,S=o;return r=o=void 0,l=x,a=e.apply(S,A),a}function m(x){return l=x,i=setTimeout(h,t),c?y(x):a}function f(x){var A=x-s,S=x-l,N=t-A;return d?N_(N,u-S):N}function w(x){var A=x-s,S=x-l;return s===void 0||A>=t||A<0||d&&S>=u}function h(){var x=ad();if(w(x))return g(x);i=setTimeout(h,f(x))}function g(x){return i=void 0,p&&r?y(x):(r=o=void 0,a)}function C(){i!==void 0&&clearTimeout(i),l=0,r=s=o=i=void 0}function E(){return i===void 0?a:g(ad())}function B(){var x=ad(),A=w(x);if(r=arguments,o=this,s=x,A){if(i===void 0)return m(s);if(d)return clearTimeout(i),i=setTimeout(h,t),y(s)}return i===void 0&&(i=setTimeout(h,t)),a}return B.cancel=C,B.flush=E,B}var _y=j_;const I_=nu(_y);var M_=_y,$_=ud,L_="Expected a function";function z_(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(L_);return $_(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),M_(e,t,{leading:r,maxWait:t,trailing:o})}var V_=z_;const W_=nu(V_),Py=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ky=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",id=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ky(n.overflowY,t)||ky(n.overflowX,t)||(r=>{const o=(u=>{if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},As=(e,t,n,r,o,u,a,i)=>u<e&&a>t||u>e&&a<t?0:u<=e&&i<=n||a>=t&&i>=n?u-e-r:a>t&&i<n||u<e&&i>n?a-t+o:0,U_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ty=(e,t)=>{var n,r,o,u;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:s,boundary:l,skipOverflowHiddenElements:c}=t,d=typeof l=="function"?l:G=>G!==l;if(!Py(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;Py(m)&&d(m);){if(m=U_(m),m===p){y.push(m);break}m!=null&&m===document.body&&id(m)&&!id(document.documentElement)||m!=null&&id(m,c)&&y.push(m)}const f=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(u=(o=window.visualViewport)==null?void 0:o.height)!=null?u:innerHeight,{scrollX:h,scrollY:g}=window,{height:C,width:E,top:B,right:x,bottom:A,left:S}=e.getBoundingClientRect(),{top:N,right:O,bottom:V,left:P}=(G=>{const T=window.getComputedStyle(G);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let L=i==="start"||i==="nearest"?B-N:i==="end"?A+V:B+C/2-N+V,j=s==="center"?S+E/2-P+O:s==="end"?x+O:S-P;const z=[];for(let G=0;G<y.length;G++){const T=y[G],{height:I,width:K,top:Q,right:ne,bottom:te,left:ye}=T.getBoundingClientRect();if(a==="if-needed"&&B>=0&&S>=0&&A<=w&&x<=f&&B>=Q&&A<=te&&S>=ye&&x<=ne)return z;const fe=getComputedStyle(T),F=parseInt(fe.borderLeftWidth,10),W=parseInt(fe.borderTopWidth,10),U=parseInt(fe.borderRightWidth,10),Y=parseInt(fe.borderBottomWidth,10);let ie=0,ee=0;const he="offsetWidth"in T?T.offsetWidth-T.clientWidth-F-U:0,pe="offsetHeight"in T?T.offsetHeight-T.clientHeight-W-Y:0,se="offsetWidth"in T?T.offsetWidth===0?0:K/T.offsetWidth:0,ae="offsetHeight"in T?T.offsetHeight===0?0:I/T.offsetHeight:0;if(p===T)ie=i==="start"?L:i==="end"?L-w:i==="nearest"?As(g,g+w,w,W,Y,g+L,g+L+C,C):L-w/2,ee=s==="start"?j:s==="center"?j-f/2:s==="end"?j-f:As(h,h+f,f,F,U,h+j,h+j+E,E),ie=Math.max(0,ie+g),ee=Math.max(0,ee+h);else{ie=i==="start"?L-Q-W:i==="end"?L-te+Y+pe:i==="nearest"?As(Q,te,I,W,Y+pe,L,L+C,C):L-(Q+I/2)+pe/2,ee=s==="start"?j-ye-F:s==="center"?j-(ye+K/2)+he/2:s==="end"?j-ne+U+he:As(ye,ne,K,F,U+he,j,j+E,E);const{scrollLeft:me,scrollTop:Pe}=T;ie=ae===0?0:Math.max(0,Math.min(Pe+ie/ae,T.scrollHeight-I/ae+pe)),ee=se===0?0:Math.max(0,Math.min(me+ee/se,T.scrollWidth-K/se+he)),L+=Pe-ie,j+=me-ee}z.push({el:T,top:ie,left:ee})}return z},H_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function K_(e,t){if(!e.isConnected||!(o=>{let u=o;for(;u&&u.parentNode;){if(u.parentNode===document)return!0;u=u.parentNode instanceof ShadowRoot?u.parentNode.host:u.parentNode}return!1})(e))return;const n=(o=>{const u=window.getComputedStyle(o);return{top:parseFloat(u.scrollMarginTop)||0,right:parseFloat(u.scrollMarginRight)||0,bottom:parseFloat(u.scrollMarginBottom)||0,left:parseFloat(u.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ty(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of Ty(e,H_(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var Mr=[],q_=function(){return Mr.some(function(e){return e.activeTargets.length>0})},Y_=function(){return Mr.some(function(e){return e.skippedTargets.length>0})},Ry="ResizeObserver loop completed with undelivered notifications.",Q_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ry}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ry),window.dispatchEvent(e)},ua;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ua||(ua={}));var $r=function(e){return Object.freeze(e)},G_=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,$r(this)}return e}(),Ny=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,$r(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,u=t.right,a=t.bottom,i=t.left,s=t.width,l=t.height;return{x:n,y:r,top:o,right:u,bottom:a,left:i,width:s,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),sd=function(e){return e instanceof SVGElement&&"getBBox"in e},jy=function(e){if(sd(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,u=o.offsetWidth,a=o.offsetHeight;return!(u||a||e.getClientRects().length)},Iy=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},X_=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},aa=typeof window<"u"?window:{},bs=new WeakMap,My=/auto|scroll/,Z_=/^tb|vertical/,J_=/msie|trident/i.test(aa.navigator&&aa.navigator.userAgent),cn=function(e){return parseFloat(e||"0")},jo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new G_((n?t:e)||0,(n?e:t)||0)},$y=$r({devicePixelContentBoxSize:jo(),borderBoxSize:jo(),contentBoxSize:jo(),contentRect:new Ny(0,0,0,0)}),Ly=function(e,t){if(t===void 0&&(t=!1),bs.has(e)&&!t)return bs.get(e);if(jy(e))return bs.set(e,$y),$y;var n=getComputedStyle(e),r=sd(e)&&e.ownerSVGElement&&e.getBBox(),o=!J_&&n.boxSizing==="border-box",u=Z_.test(n.writingMode||""),a=!r&&My.test(n.overflowY||""),i=!r&&My.test(n.overflowX||""),s=r?0:cn(n.paddingTop),l=r?0:cn(n.paddingRight),c=r?0:cn(n.paddingBottom),d=r?0:cn(n.paddingLeft),p=r?0:cn(n.borderTopWidth),y=r?0:cn(n.borderRightWidth),m=r?0:cn(n.borderBottomWidth),f=r?0:cn(n.borderLeftWidth),w=d+l,h=s+c,g=f+y,C=p+m,E=i?e.offsetHeight-C-e.clientHeight:0,B=a?e.offsetWidth-g-e.clientWidth:0,x=o?w+g:0,A=o?h+C:0,S=r?r.width:cn(n.width)-x-B,N=r?r.height:cn(n.height)-A-E,O=S+w+B+g,V=N+h+E+C,P=$r({devicePixelContentBoxSize:jo(Math.round(S*devicePixelRatio),Math.round(N*devicePixelRatio),u),borderBoxSize:jo(O,V,u),contentBoxSize:jo(S,N,u),contentRect:new Ny(d,s,S,N)});return bs.set(e,P),P},zy=function(e,t,n){var r=Ly(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ua.DEVICE_PIXEL_CONTENT_BOX:return a;case ua.BORDER_BOX:return o;default:return u}},e3=function(){function e(t){var n=Ly(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=$r([n.borderBoxSize]),this.contentBoxSize=$r([n.contentBoxSize]),this.devicePixelContentBoxSize=$r([n.devicePixelContentBoxSize])}return e}(),Vy=function(e){if(jy(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},t3=function(){var e=1/0,t=[];Mr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new e3(l.target),d=Vy(l.target);i.push(c),l.lastReportedSize=zy(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,i,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Wy=function(e){Mr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Vy(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},n3=function(){var e=0;for(Wy(e);q_();)e=t3(),Wy(e);return Y_()&&Q_(),e>0},ld,Uy=[],r3=function(){return Uy.splice(0).forEach(function(e){return e()})},o3=function(e){if(!ld){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return r3()}).observe(n,r),ld=function(){n.textContent="".concat(t?t--:t++)}}Uy.push(e),ld()},u3=function(e){o3(function(){requestAnimationFrame(e)})},xs=0,a3=function(){return!!xs},i3=250,s3={attributes:!0,characterData:!0,childList:!0,subtree:!0},Hy=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ky=function(e){return e===void 0&&(e=0),Date.now()+e},cd=!1,l3=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=i3),!cd){cd=!0;var r=Ky(t);u3(function(){var o=!1;try{o=n3()}finally{if(cd=!1,t=r-Ky(),!a3())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,s3)};document.body?n():aa.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Hy.forEach(function(n){return aa.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Hy.forEach(function(n){return aa.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),fd=new l3,qy=function(e){!xs&&e>0&&fd.start(),xs+=e,!xs&&fd.stop()},c3=function(e){return!sd(e)&&!X_(e)&&getComputedStyle(e).display==="inline"},f3=function(){function e(t,n){this.target=t,this.observedBox=n||ua.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=zy(this.target,this.observedBox,!0);return c3(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),d3=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Fs=new WeakMap,Yy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ss=function(){function e(){}return e.connect=function(t,n){var r=new d3(t,n);Fs.set(t,r)},e.observe=function(t,n,r){var o=Fs.get(t),u=o.observationTargets.length===0;Yy(o.observationTargets,n)<0&&(u&&Mr.push(o),o.observationTargets.push(new f3(n,r&&r.box)),qy(1),fd.schedule())},e.unobserve=function(t,n){var r=Fs.get(t),o=Yy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&Mr.splice(Mr.indexOf(r),1),r.observationTargets.splice(o,1),qy(-1))},e.disconnect=function(t){var n=this,r=Fs.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),p3=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ss.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Iy(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ss.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Iy(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ss.unobserve(this,t)},e.prototype.disconnect=function(){Ss.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});for(var v3=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),dd={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Qy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:v3?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},pd={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Os=1;Os<20;Os++)pd["f"+Os]=111+Os;function _s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return Gy(a,t)}),o=function(i){return r.some(function(s){return Xy(s,i)})},u=n==null?o:o(n);return u}function h3(e,t){return _s(e,t)}function m3(e,t){return _s(e,{byKey:!0},t)}function Gy(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in dd)r[dd[a]]=!1;var i=!0,s=!1,l=void 0;try{for(var c=o[Symbol.iterator](),d;!(i=(d=c.next()).done);i=!0){var p=d.value,y=p.endsWith("?")&&p.length>1;y&&(p=p.slice(0,-1));var m=vd(p),f=dd[m];if(p.length>1&&!f&&!Qy[p]&&!pd[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=Zy(p)),f&&(r[f]=y?null:!0)}}catch(w){s=!0,l=w}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return r}function Xy(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function Zy(e){e=vd(e);var t=pd[e]||e.toUpperCase().charCodeAt(0);return t}function vd(e){return e=e.toLowerCase(),e=Qy[e]||e,e}Sn.default=_s;var hd=Sn.isHotkey=_s;Sn.isCodeHotkey=h3,Sn.isKeyHotkey=m3,Sn.parseHotkey=Gy,Sn.compareHotkey=Xy,Sn.toKeyCode=Zy,Sn.toKeyName=vd;function g3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Io(e,t){if(e==null)return{};var n=g3(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ia(e){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(e)}function y3(e,t){if(ia(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ia(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D3(e){var t=y3(e,"string");return ia(t)==="symbol"?t:String(t)}function Lt(e,t,n){return t=D3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var md=M.createContext(null),ar=()=>{var e=M.useContext(md);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},gd,yd,Jy=parseInt(re.version.split(".")[0],10),e1=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t1=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),st=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Mo=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Lr=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),C3=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),n1=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),w3=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),E3=st&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),B3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),A3=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),b3=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Ps=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r1=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((gd=navigator.userAgent.match(/Version\/(\d+)/))!==null&&gd!==void 0&&gd[1]?parseInt((yd=navigator.userAgent.match(/Version\/(\d+)/))===null||yd===void 0?void 0:yd[1],10)<17:!1),ir=(!w3||!E3)&&!C3&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Dd=new WeakMap,Cd=new WeakMap,o1=new WeakMap,ks=new WeakMap,wd=new WeakMap,sa=new WeakMap,zr=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Ed=new WeakMap,sr=new WeakMap,Vr=new WeakMap,la=new WeakMap,Bd=new WeakMap,Ad=new WeakMap,Zt=new WeakMap,On=new WeakMap,gt=new WeakMap,lr=new WeakMap,cr=new WeakMap,u1=new WeakMap,$o=Symbol("placeholder"),a1=Symbol("mark-placeholder"),x3=globalThis.Text,bd=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,F3=e=>fr(e)&&e.nodeType===8,zt=e=>fr(e)&&e.nodeType===1,fr=e=>{var t=bd(e);return!!t&&e instanceof t.Node},xd=e=>{var t=e&&e.anchorNode&&bd(e.anchorNode);return!!t&&e instanceof t.Selection},i1=e=>fr(e)&&e.nodeType===3,S3=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,O3=e=>{var[t,n]=e;if(zt(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=s1(t,o,r?"backward":"forward"),r=o<n;zt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=P3(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},_3=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},s1=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(F3(o)||zt(o)&&o.childNodes.length===0||zt(o)&&o.getAttribute("contenteditable")==="false")&&!(a&&i);){if(u>=r.length){a=!0,u=t-1,n="backward";continue}if(u<0){i=!0,u=t+1,n="forward";continue}o=r[u],t=u,u+=n==="forward"?1:-1}return[o,t]},P3=(e,t,n)=>{var[r]=s1(e,t,n);return r},l1=e=>{var t="";if(i1(e)&&e.nodeValue)return e.nodeValue;if(zt(e)){for(var n of Array.from(e.childNodes))t+=l1(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
52
|
-
`)}return t},
|
51
|
+
*/var _O=M,PO=Symbol.for("react.element"),kO=Symbol.for("react.fragment"),TO=Object.prototype.hasOwnProperty,RO=_O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,NO={key:!0,ref:!0,__self:!0,__source:!0};function yy(e,t,n){var r,o={},u=null,a=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)TO.call(t,r)&&!NO.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:PO,type:e,key:u,ref:a,props:o,_owner:RO.current}}As.Fragment=kO,As.jsx=yy,As.jsxs=yy,gy.exports=As;var Ne=gy.exports,jO=$O,Dy="֑-߿יִ-﷽ﹰ-ﻼ",Cy="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",IO=new RegExp("^[^"+Cy+"]*["+Dy+"]"),MO=new RegExp("^[^"+Dy+"]*["+Cy+"]");function $O(e){return e=String(e||""),IO.test(e)?"rtl":MO.test(e)?"ltr":"neutral"}const wy=nu(jO);function LO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ad=LO,zO=typeof Ma=="object"&&Ma&&Ma.Object===Object&&Ma,VO=zO,WO=VO,UO=typeof self=="object"&&self&&self.Object===Object&&self,HO=WO||UO||Function("return this")(),Ey=HO,KO=Ey,qO=function(){return KO.Date.now()},YO=qO,QO=/\s/;function GO(e){for(var t=e.length;t--&&QO.test(e.charAt(t)););return t}var XO=GO,ZO=XO,JO=/^\s+/;function e_(e){return e&&e.slice(0,ZO(e)+1).replace(JO,"")}var t_=e_,n_=Ey,r_=n_.Symbol,By=r_,Ay=By,by=Object.prototype,o_=by.hasOwnProperty,u_=by.toString,ua=Ay?Ay.toStringTag:void 0;function a_(e){var t=o_.call(e,ua),n=e[ua];try{e[ua]=void 0;var r=!0}catch{}var o=u_.call(e);return r&&(t?e[ua]=n:delete e[ua]),o}var i_=a_,s_=Object.prototype,l_=s_.toString;function c_(e){return l_.call(e)}var f_=c_,xy=By,d_=i_,p_=f_,v_="[object Null]",h_="[object Undefined]",Fy=xy?xy.toStringTag:void 0;function m_(e){return e==null?e===void 0?h_:v_:Fy&&Fy in Object(e)?d_(e):p_(e)}var g_=m_;function y_(e){return e!=null&&typeof e=="object"}var D_=y_,C_=g_,w_=D_,E_="[object Symbol]";function B_(e){return typeof e=="symbol"||w_(e)&&C_(e)==E_}var A_=B_,b_=t_,Sy=ad,x_=A_,Oy=NaN,F_=/^[-+]0x[0-9a-f]+$/i,S_=/^0b[01]+$/i,O_=/^0o[0-7]+$/i,__=parseInt;function P_(e){if(typeof e=="number")return e;if(x_(e))return Oy;if(Sy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Sy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=b_(e);var n=S_.test(e);return n||O_.test(e)?__(e.slice(2),n?2:8):F_.test(e)?Oy:+e}var k_=P_,T_=ad,id=YO,_y=k_,R_="Expected a function",N_=Math.max,j_=Math.min;function I_(e,t,n){var r,o,u,a,i,s,l=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(R_);t=_y(t)||0,T_(n)&&(c=!!n.leading,d="maxWait"in n,u=d?N_(_y(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(x){var A=r,S=o;return r=o=void 0,l=x,a=e.apply(S,A),a}function m(x){return l=x,i=setTimeout(h,t),c?y(x):a}function f(x){var A=x-s,S=x-l,N=t-A;return d?j_(N,u-S):N}function w(x){var A=x-s,S=x-l;return s===void 0||A>=t||A<0||d&&S>=u}function h(){var x=id();if(w(x))return g(x);i=setTimeout(h,f(x))}function g(x){return i=void 0,p&&r?y(x):(r=o=void 0,a)}function C(){i!==void 0&&clearTimeout(i),l=0,r=s=o=i=void 0}function E(){return i===void 0?a:g(id())}function B(){var x=id(),A=w(x);if(r=arguments,o=this,s=x,A){if(i===void 0)return m(s);if(d)return clearTimeout(i),i=setTimeout(h,t),y(s)}return i===void 0&&(i=setTimeout(h,t)),a}return B.cancel=C,B.flush=E,B}var Py=I_;const M_=nu(Py);var $_=Py,L_=ad,z_="Expected a function";function V_(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(z_);return L_(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$_(e,t,{leading:r,maxWait:t,trailing:o})}var W_=V_;const U_=nu(W_),ky=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ty=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",sd=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ty(n.overflowY,t)||Ty(n.overflowX,t)||(r=>{const o=(u=>{if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},bs=(e,t,n,r,o,u,a,i)=>u<e&&a>t||u>e&&a<t?0:u<=e&&i<=n||a>=t&&i>=n?u-e-r:a>t&&i<n||u<e&&i>n?a-t+o:0,H_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ry=(e,t)=>{var n,r,o,u;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:s,boundary:l,skipOverflowHiddenElements:c}=t,d=typeof l=="function"?l:G=>G!==l;if(!ky(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;ky(m)&&d(m);){if(m=H_(m),m===p){y.push(m);break}m!=null&&m===document.body&&sd(m)&&!sd(document.documentElement)||m!=null&&sd(m,c)&&y.push(m)}const f=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(u=(o=window.visualViewport)==null?void 0:o.height)!=null?u:innerHeight,{scrollX:h,scrollY:g}=window,{height:C,width:E,top:B,right:x,bottom:A,left:S}=e.getBoundingClientRect(),{top:N,right:O,bottom:W,left:P}=(G=>{const T=window.getComputedStyle(G);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let L=i==="start"||i==="nearest"?B-N:i==="end"?A+W:B+C/2-N+W,j=s==="center"?S+E/2-P+O:s==="end"?x+O:S-P;const z=[];for(let G=0;G<y.length;G++){const T=y[G],{height:I,width:K,top:Q,right:ne,bottom:te,left:ye}=T.getBoundingClientRect();if(a==="if-needed"&&B>=0&&S>=0&&A<=w&&x<=f&&B>=Q&&A<=te&&S>=ye&&x<=ne)return z;const fe=getComputedStyle(T),F=parseInt(fe.borderLeftWidth,10),V=parseInt(fe.borderTopWidth,10),U=parseInt(fe.borderRightWidth,10),Y=parseInt(fe.borderBottomWidth,10);let ie=0,ee=0;const he="offsetWidth"in T?T.offsetWidth-T.clientWidth-F-U:0,pe="offsetHeight"in T?T.offsetHeight-T.clientHeight-V-Y:0,se="offsetWidth"in T?T.offsetWidth===0?0:K/T.offsetWidth:0,ae="offsetHeight"in T?T.offsetHeight===0?0:I/T.offsetHeight:0;if(p===T)ie=i==="start"?L:i==="end"?L-w:i==="nearest"?bs(g,g+w,w,V,Y,g+L,g+L+C,C):L-w/2,ee=s==="start"?j:s==="center"?j-f/2:s==="end"?j-f:bs(h,h+f,f,F,U,h+j,h+j+E,E),ie=Math.max(0,ie+g),ee=Math.max(0,ee+h);else{ie=i==="start"?L-Q-V:i==="end"?L-te+Y+pe:i==="nearest"?bs(Q,te,I,V,Y+pe,L,L+C,C):L-(Q+I/2)+pe/2,ee=s==="start"?j-ye-F:s==="center"?j-(ye+K/2)+he/2:s==="end"?j-ne+U+he:bs(ye,ne,K,F,U+he,j,j+E,E);const{scrollLeft:me,scrollTop:Pe}=T;ie=ae===0?0:Math.max(0,Math.min(Pe+ie/ae,T.scrollHeight-I/ae+pe)),ee=se===0?0:Math.max(0,Math.min(me+ee/se,T.scrollWidth-K/se+he)),L+=Pe-ie,j+=me-ee}z.push({el:T,top:ie,left:ee})}return z},K_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function q_(e,t){if(!e.isConnected||!(o=>{let u=o;for(;u&&u.parentNode;){if(u.parentNode===document)return!0;u=u.parentNode instanceof ShadowRoot?u.parentNode.host:u.parentNode}return!1})(e))return;const n=(o=>{const u=window.getComputedStyle(o);return{top:parseFloat(u.scrollMarginTop)||0,right:parseFloat(u.scrollMarginRight)||0,bottom:parseFloat(u.scrollMarginBottom)||0,left:parseFloat(u.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Ry(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of Ry(e,K_(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var Mr=[],Y_=function(){return Mr.some(function(e){return e.activeTargets.length>0})},Q_=function(){return Mr.some(function(e){return e.skippedTargets.length>0})},Ny="ResizeObserver loop completed with undelivered notifications.",G_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ny}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ny),window.dispatchEvent(e)},aa;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(aa||(aa={}));var $r=function(e){return Object.freeze(e)},X_=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,$r(this)}return e}(),jy=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,$r(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,u=t.right,a=t.bottom,i=t.left,s=t.width,l=t.height;return{x:n,y:r,top:o,right:u,bottom:a,left:i,width:s,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ld=function(e){return e instanceof SVGElement&&"getBBox"in e},Iy=function(e){if(ld(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,u=o.offsetWidth,a=o.offsetHeight;return!(u||a||e.getClientRects().length)},My=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Z_=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ia=typeof window<"u"?window:{},xs=new WeakMap,$y=/auto|scroll/,J_=/^tb|vertical/,e3=/msie|trident/i.test(ia.navigator&&ia.navigator.userAgent),cn=function(e){return parseFloat(e||"0")},jo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new X_((n?t:e)||0,(n?e:t)||0)},Ly=$r({devicePixelContentBoxSize:jo(),borderBoxSize:jo(),contentBoxSize:jo(),contentRect:new jy(0,0,0,0)}),zy=function(e,t){if(t===void 0&&(t=!1),xs.has(e)&&!t)return xs.get(e);if(Iy(e))return xs.set(e,Ly),Ly;var n=getComputedStyle(e),r=ld(e)&&e.ownerSVGElement&&e.getBBox(),o=!e3&&n.boxSizing==="border-box",u=J_.test(n.writingMode||""),a=!r&&$y.test(n.overflowY||""),i=!r&&$y.test(n.overflowX||""),s=r?0:cn(n.paddingTop),l=r?0:cn(n.paddingRight),c=r?0:cn(n.paddingBottom),d=r?0:cn(n.paddingLeft),p=r?0:cn(n.borderTopWidth),y=r?0:cn(n.borderRightWidth),m=r?0:cn(n.borderBottomWidth),f=r?0:cn(n.borderLeftWidth),w=d+l,h=s+c,g=f+y,C=p+m,E=i?e.offsetHeight-C-e.clientHeight:0,B=a?e.offsetWidth-g-e.clientWidth:0,x=o?w+g:0,A=o?h+C:0,S=r?r.width:cn(n.width)-x-B,N=r?r.height:cn(n.height)-A-E,O=S+w+B+g,W=N+h+E+C,P=$r({devicePixelContentBoxSize:jo(Math.round(S*devicePixelRatio),Math.round(N*devicePixelRatio),u),borderBoxSize:jo(O,W,u),contentBoxSize:jo(S,N,u),contentRect:new jy(d,s,S,N)});return xs.set(e,P),P},Vy=function(e,t,n){var r=zy(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case aa.DEVICE_PIXEL_CONTENT_BOX:return a;case aa.BORDER_BOX:return o;default:return u}},t3=function(){function e(t){var n=zy(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=$r([n.borderBoxSize]),this.contentBoxSize=$r([n.contentBoxSize]),this.devicePixelContentBoxSize=$r([n.devicePixelContentBoxSize])}return e}(),Wy=function(e){if(Iy(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},n3=function(){var e=1/0,t=[];Mr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new t3(l.target),d=Wy(l.target);i.push(c),l.lastReportedSize=Vy(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,i,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Uy=function(e){Mr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Wy(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},r3=function(){var e=0;for(Uy(e);Y_();)e=n3(),Uy(e);return Q_()&&G_(),e>0},cd,Hy=[],o3=function(){return Hy.splice(0).forEach(function(e){return e()})},u3=function(e){if(!cd){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return o3()}).observe(n,r),cd=function(){n.textContent="".concat(t?t--:t++)}}Hy.push(e),cd()},a3=function(e){u3(function(){requestAnimationFrame(e)})},Fs=0,i3=function(){return!!Fs},s3=250,l3={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ky=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],qy=function(e){return e===void 0&&(e=0),Date.now()+e},fd=!1,c3=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=s3),!fd){fd=!0;var r=qy(t);a3(function(){var o=!1;try{o=r3()}finally{if(fd=!1,t=r-qy(),!i3())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,l3)};document.body?n():ia.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ky.forEach(function(n){return ia.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ky.forEach(function(n){return ia.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),dd=new c3,Yy=function(e){!Fs&&e>0&&dd.start(),Fs+=e,!Fs&&dd.stop()},f3=function(e){return!ld(e)&&!Z_(e)&&getComputedStyle(e).display==="inline"},d3=function(){function e(t,n){this.target=t,this.observedBox=n||aa.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Vy(this.target,this.observedBox,!0);return f3(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),p3=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ss=new WeakMap,Qy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Os=function(){function e(){}return e.connect=function(t,n){var r=new p3(t,n);Ss.set(t,r)},e.observe=function(t,n,r){var o=Ss.get(t),u=o.observationTargets.length===0;Qy(o.observationTargets,n)<0&&(u&&Mr.push(o),o.observationTargets.push(new d3(n,r&&r.box)),Yy(1),dd.schedule())},e.unobserve=function(t,n){var r=Ss.get(t),o=Qy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&Mr.splice(Mr.indexOf(r),1),r.observationTargets.splice(o,1),Yy(-1))},e.disconnect=function(t){var n=this,r=Ss.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),v3=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Os.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!My(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Os.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!My(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Os.unobserve(this,t)},e.prototype.disconnect=function(){Os.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});for(var h3=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),pd={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Gy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:h3?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},vd={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},_s=1;_s<20;_s++)vd["f"+_s]=111+_s;function Ps(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return Xy(a,t)}),o=function(i){return r.some(function(s){return Zy(s,i)})},u=n==null?o:o(n);return u}function m3(e,t){return Ps(e,t)}function g3(e,t){return Ps(e,{byKey:!0},t)}function Xy(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in pd)r[pd[a]]=!1;var i=!0,s=!1,l=void 0;try{for(var c=o[Symbol.iterator](),d;!(i=(d=c.next()).done);i=!0){var p=d.value,y=p.endsWith("?")&&p.length>1;y&&(p=p.slice(0,-1));var m=hd(p),f=pd[m];if(p.length>1&&!f&&!Gy[p]&&!vd[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=Jy(p)),f&&(r[f]=y?null:!0)}}catch(w){s=!0,l=w}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return r}function Zy(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function Jy(e){e=hd(e);var t=vd[e]||e.toUpperCase().charCodeAt(0);return t}function hd(e){return e=e.toLowerCase(),e=Gy[e]||e,e}Sn.default=Ps;var md=Sn.isHotkey=Ps;Sn.isCodeHotkey=m3,Sn.isKeyHotkey=g3,Sn.parseHotkey=Xy,Sn.compareHotkey=Zy,Sn.toKeyCode=Jy,Sn.toKeyName=hd;function y3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Io(e,t){if(e==null)return{};var n=y3(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function D3(e,t){if(sa(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C3(e){var t=D3(e,"string");return sa(t)==="symbol"?t:String(t)}function Lt(e,t,n){return t=C3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gd=M.createContext(null),ar=()=>{var e=M.useContext(gd);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},yd,Dd,e1=parseInt(re.version.split(".")[0],10),t1=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,n1=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),st=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Mo=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Lr=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),w3=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),r1=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),E3=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),B3=st&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),A3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),b3=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),x3=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),ks=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((yd=navigator.userAgent.match(/Version\/(\d+)/))!==null&&yd!==void 0&&yd[1]&&parseInt((Dd=navigator.userAgent.match(/Version\/(\d+)/))===null||Dd===void 0?void 0:Dd[1],10)<17);var ir=(!E3||!B3)&&!w3&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Cd=new WeakMap,wd=new WeakMap,o1=new WeakMap,Ts=new WeakMap,Ed=new WeakMap,la=new WeakMap,zr=new WeakMap,Rs=new WeakMap,Ns=new WeakMap,Bd=new WeakMap,sr=new WeakMap,Vr=new WeakMap,ca=new WeakMap,Ad=new WeakMap,bd=new WeakMap,Zt=new WeakMap,On=new WeakMap,gt=new WeakMap,lr=new WeakMap,cr=new WeakMap,u1=new WeakMap,$o=Symbol("placeholder"),a1=Symbol("mark-placeholder"),F3=globalThis.Text,xd=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,S3=e=>fr(e)&&e.nodeType===8,zt=e=>fr(e)&&e.nodeType===1,fr=e=>{var t=xd(e);return!!t&&e instanceof t.Node},Fd=e=>{var t=e&&e.anchorNode&&xd(e.anchorNode);return!!t&&e instanceof t.Selection},i1=e=>fr(e)&&e.nodeType===3,O3=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,_3=e=>{var[t,n]=e;if(zt(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=s1(t,o,r?"backward":"forward"),r=o<n;zt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=k3(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},P3=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},s1=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(S3(o)||zt(o)&&o.childNodes.length===0||zt(o)&&o.getAttribute("contenteditable")==="false")&&!(a&&i);){if(u>=r.length){a=!0,u=t-1,n="backward";continue}if(u<0){i=!0,u=t+1,n="forward";continue}o=r[u],t=u,u+=n==="forward"?1:-1}return[o,t]},k3=(e,t,n)=>{var[r]=s1(e,t,n);return r},l1=e=>{var t="";if(i1(e)&&e.nodeValue)return e.nodeValue;if(zt(e)){for(var n of Array.from(e.childNodes))t+=l1(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
52
|
+
`)}return t},T3=/data-slate-fragment="(.+?)"/m,R3=e=>{var t=e.getData("text/html"),[,n]=t.match(T3)||[];return n},Sd=(e,t,n)=>{var{target:r}=t;if(zt(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=k.getWindow(e);if(o.contains(r))return k.hasDOMNode(e,r,{editable:!0});var u=n.find(a=>{var{addedNodes:i,removedNodes:s}=a;for(var l of i)if(l===r||l.contains(r))return!0;for(var c of s)if(c===r||c.contains(r))return!0});return!u||u===t?!1:Sd(e,u,n)},N3=()=>{for(var e=document.activeElement;(t=e)!==null&&t!==void 0&&t.shadowRoot&&(n=e.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var t,n,r;e=(r=e)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return e},j3=0;class I3{constructor(){Lt(this,"id",void 0),this.id="".concat(j3++)}}var k={androidPendingDiffs:e=>gt.get(e),androidScheduleFlush:e=>{var t;(t=bd.get(e))===null||t===void 0||t()},blur:e=>{var t=k.toDOMNode(e,e),n=k.findDocumentOrShadowRoot(e);sr.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=k.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&R.deselect(e)},findDocumentOrShadowRoot:e=>{var t=k.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var u=k.toSlateNode(e,t.target),a=k.findPath(e,u);if(X.isElement(u)&&D.isVoid(e,u)){var i=o.getBoundingClientRect(),s=e.isInline(u)?n-i.left<i.left+i.width-n:r-i.top<i.top+i.height-r,l=D.point(e,a,{edge:s?"start":"end"}),c=s?D.before(e,l):D.after(e,l);if(c){var d=D.range(e,c);return d}}var p,{document:y}=k.getWindow(e);if(y.caretRangeFromPoint)p=y.caretRangeFromPoint(n,r);else{var m=y.caretPositionFromPoint(n,r);m&&(p=y.createRange(),p.setStart(m.offsetNode,m.offset),p.setEnd(m.offsetNode,m.offset))}if(!p)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var f=k.toSlateRange(e,p,{exactMatch:!1,suppressThrow:!1});return f},findKey:(e,t)=>{var n=Rs.get(t);return n||(n=new I3,Rs.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=wd.get(r);if(o==null){if(D.isEditor(r))return n;break}var u=Cd.get(r);if(u==null)break;n.unshift(u),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Le.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!sr.get(t)){if(n.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{k.focus(t,{retries:n.retries-1})},10);return}var r=k.toDOMNode(t,t),o=k.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var u=o.getSelection(),a=k.toDOMRange(t,t.selection);u==null||u.removeAllRanges(),u==null||u.addRange(a)}t.selection||(R.select(t,D.start(t,[])),t.onChange()),sr.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=o1.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,u=k.toDOMNode(t,t),a;try{a=zt(n)?n:n.parentElement}catch(i){if(i instanceof Error&&!i.message.includes('Permission denied to access property "nodeType"'))throw i}return a?a.closest("[data-slate-editor]")===u&&(!o||a.isContentEditable?!0:typeof a.isContentEditable=="boolean"&&a.closest('[contenteditable="false"]')===u||!!a.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>fr(t)&&k.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return D.hasPath(e,n.path)&&D.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>k.hasEditableTarget(e,t)||k.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>fr(t)&&k.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Vr.get(e),isFocused:e=>!!sr.get(e),isReadOnly:e=>!!Bd.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Bd.get(e))return!1;var n=k.hasTarget(e,t)&&k.toSlateNode(e,t);return X.isElement(n)&&D.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Ns.get(e),r=D.isEditor(t)?Ts.get(e):n==null?void 0:n.get(k.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Le.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=D.node(e,t.path),r=k.toDOMNode(e,n),o;D.void(e,{at:t})&&(t={path:t.path,offset:0});for(var u="[data-slate-string], [data-slate-zero-width]",a=Array.from(r.querySelectorAll(u)),i=0,s=0;s<a.length;s++){var l=a[s],c=l.childNodes[0];if(!(c==null||c.textContent==null)){var{length:d}=c.textContent,p=l.getAttribute("data-slate-length"),y=p==null?d:parseInt(p,10),m=i+y,f=a[s+1];if(t.offset===m&&f!==null&&f!==void 0&&f.hasAttribute("data-slate-mark-placeholder")){var w,h=f.childNodes[0];o=[h instanceof F3?h:f,(w=f.textContent)!==null&&w!==void 0&&w.startsWith("\uFEFF")?1:0];break}if(t.offset<=m){var g=Math.min(d,Math.max(0,t.offset-i));o=[c,g];break}i=m}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Le.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=_.isBackward(t),u=k.toDOMPoint(e,n),a=_.isCollapsed(t)?u:k.toDOMPoint(e,r),i=k.getWindow(e),s=i.document.createRange(),[l,c]=o?a:u,[d,p]=o?u:a,y=zt(l)?l:l.parentElement,m=!!y.getAttribute("data-slate-zero-width"),f=zt(d)?d:d.parentElement,w=!!f.getAttribute("data-slate-zero-width");return s.setStart(l,m?1:c),s.setEnd(d,w?1:p),s},toSlateNode:(e,t)=>{var n=zt(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?la.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,[u,a]=r?t:_3(t),i=u.parentNode,s=null,l=0;if(i){var c,d,p=k.toDOMNode(e,e),y=i.closest('[data-slate-void="true"]'),m=y&&p.contains(y)?y:null,f=i.closest("[data-slate-leaf]"),w=null;if(f){if(s=f.closest('[data-slate-node="text"]'),s){var h=k.getWindow(e),g=h.document.createRange();g.setStart(s,0),g.setEnd(u,a);var C=g.cloneContents(),E=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];E.forEach(j=>{if(st&&!r&&j.hasAttribute("data-slate-zero-width")&&j.textContent.length>0&&j.textContext!=="\uFEFF"){j.textContent.startsWith("\uFEFF")&&(j.textContent=j.textContent.slice(1));return}j.parentNode.removeChild(j)}),l=C.textContent.length,w=s}}else if(m){for(var B=m.querySelectorAll("[data-slate-leaf]"),x=0;x<B.length;x++){var A=B[x];if(k.hasDOMNode(e,A)){f=A;break}}f?(s=f.closest('[data-slate-node="text"]'),w=f,l=w.textContent.length,w.querySelectorAll("[data-slate-zero-width]").forEach(j=>{l-=j.textContent.length})):l=1}w&&l===w.textContent.length&&st&&w.getAttribute("data-slate-zero-width")==="z"&&(c=w.textContent)!==null&&c!==void 0&&c.startsWith("\uFEFF")&&(i.hasAttribute("data-slate-zero-width")||Mo&&(d=w.textContent)!==null&&d!==void 0&&d.endsWith(`
|
53
53
|
|
54
|
-
`))&&l--}if(st&&!s&&!r){var S=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(S&&k.hasDOMNode(e,S,{editable:!0})){var N=k.toSlateNode(e,S),{path:O,offset:
|
54
|
+
`))&&l--}if(st&&!s&&!r){var S=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(S&&k.hasDOMNode(e,S,{editable:!0})){var N=k.toSlateNode(e,S),{path:O,offset:W}=D.start(e,k.findPath(e,N));return S.querySelector("[data-slate-leaf]")||(W=a),{path:O,offset:W}}}if(!s){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var P=k.toSlateNode(e,s),L=k.findPath(e,P);return{path:L,offset:l}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:u}=n,a=Fd(t)?t.anchorNode:t.startContainer,i,s,l,c,d;if(a)if(Fd(t)){if(Mo&&t.rangeCount>1){l=t.focusNode;var p=t.getRangeAt(0),y=t.getRangeAt(t.rangeCount-1);if(l instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&y.startContainer instanceof HTMLTableRowElement){let x=function(A){return A.childElementCount>0?x(A.children[0]):A};var m=p.startContainer,f=y.startContainer,w=x(m.children[p.startOffset]),h=x(f.children[y.startOffset]);c=0,h.childNodes.length>0?i=h.childNodes[0]:i=h,w.childNodes.length>0?l=w.childNodes[0]:l=w,h instanceof HTMLElement?s=h.innerHTML.length:s=0}else p.startContainer===l?(i=y.endContainer,s=y.endOffset,c=p.startOffset):(i=p.startContainer,s=p.endOffset,c=y.startOffset)}else i=t.anchorNode,s=t.anchorOffset,l=t.focusNode,c=t.focusOffset;r1&&P3(i)||Mo?d=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:d=t.isCollapsed}else i=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset,d=t.collapsed;if(i==null||l==null||s==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if(Mo&&(r=l.textContent)!==null&&r!==void 0&&r.endsWith(`
|
55
55
|
|
56
|
-
`)&&c===l.textContent.length&&c--,"getAttribute"in l&&l.getAttribute("contenteditable")==="false"&&l.getAttribute("data-slate-void")!=="true"){var g;l=i,c=((g=i.textContent)===null||g===void 0?void 0:g.length)||0}var C=k.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:k.toSlatePoint(e,[l,c],{exactMatch:o,suppressThrow:u});if(!E)return null;var B={anchor:C,focus:E};return _.isExpanded(B)&&_.isForward(B)&&zt(l)&&D.void(e,{at:B.focus,mode:"highest"})&&(B=D.unhangRange(e,B,{voids:!0})),B}};function
|
56
|
+
`)&&c===l.textContent.length&&c--,"getAttribute"in l&&l.getAttribute("contenteditable")==="false"&&l.getAttribute("data-slate-void")!=="true"){var g;l=i,c=((g=i.textContent)===null||g===void 0?void 0:g.length)||0}var C=k.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:k.toSlatePoint(e,[l,c],{exactMatch:o,suppressThrow:u});if(!E)return null;var B={anchor:C,focus:E};return _.isExpanded(B)&&_.isForward(B)&&zt(l)&&D.void(e,{at:B.focus,mode:"highest"})&&(B=D.unhangRange(e,B,{voids:!0})),B}};function M3(e,t){var{path:n,diff:r}=t;if(!D.hasPath(e,n))return!1;var o=q.get(e,n);if(!Z.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var u=b.next(n);if(!D.hasPath(e,u))return!1;var a=q.get(e,u);return Z.isText(a)&&a.text.startsWith(r.text)}function c1(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,u)=>o.slice(0,u.start)+u.text+o.slice(u.end),e)}function $3(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function L3(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}function f1(e,t){var{start:n,end:r,text:o}=t,u=e.slice(n,r),a=$3(u,o),i=Math.min(u.length-a,o.length-a),s=L3(u,o,i),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&l.text.length===0?null:l}function z3(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),u=c1(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),i=u.slice(r,a),s=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return f1(e,{start:r,end:s,text:i})}function V3(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function Od(e,t){var{path:n,offset:r}=t;if(!D.hasPath(e,n))return null;var o=q.get(e,n);if(!Z.isText(o))return null;var u=D.above(e,{match:i=>X.isElement(i)&&D.isBlock(e,i),at:n});if(!u)return null;for(;r>o.text.length;){var a=D.next(e,{at:n,match:Z.isText});if(!a||!b.isDescendant(a[1],u[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function d1(e,t){var n=Od(e,t.anchor);if(!n)return null;if(_.isCollapsed(t))return{anchor:n,focus:n};var r=Od(e,t.focus);return r?{anchor:n,focus:r}:null}function _d(e,t,n){var r=gt.get(e),o=r==null?void 0:r.find(c=>{var{path:d}=c;return b.equals(d,t.path)});if(!o||t.offset<=o.diff.start)return ue.transform(t,n,{affinity:"backward"});var{diff:u}=o;if(t.offset<=u.start+u.text.length){var a={path:t.path,offset:u.start},i=ue.transform(a,n,{affinity:"backward"});return i?{path:i.path,offset:i.offset+t.offset-u.start}:null}var s={path:t.path,offset:t.offset-u.text.length+u.end-u.start},l=ue.transform(s,n,{affinity:"backward"});return l?n.type==="split_node"&&b.equals(n.path,t.path)&&s.offset<n.position&&u.start<n.position?l:{path:l.path,offset:l.offset+u.text.length-u.end+u.start}:null}function p1(e,t,n){var r=_d(e,t.anchor,n);if(!r)return null;if(_.isCollapsed(t))return{anchor:r,focus:r};var o=_d(e,t.focus,n);return o?{anchor:r,focus:o}:null}function W3(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!b.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!b.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!b.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:b.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:b.transform(n,t,{affinity:"forward"})};case"merge_node":return b.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:b.transform(n,t)}:{diff:r,id:o,path:b.transform(n,t)}}var u=b.transform(n,t);return u?{diff:r,path:u,id:o}:null}function v1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var U3=25,H3=200,K3=function(){},q3=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function Y3(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,u=null,a=null,i=null,s=0,l=!1,c=()=>{var P=cr.get(t);if(cr.delete(t),P){var{selection:L}=t,j=d1(t,P);j&&(!L||!_.equals(j,L))&&R.select(t,j)}},d=()=>{var P=lr.get(t);if(lr.delete(t),!!P){if(P.at){var L=ue.isPoint(P.at)?Od(t,P.at):d1(t,P.at);if(!L)return;var j=D.range(t,L);(!t.selection||!_.equals(t.selection,j))&&R.select(t,L)}P.run()}},p=()=>{if(a&&(clearTimeout(a),a=null),i&&(clearTimeout(i),i=null),!E()&&!C()){c();return}o||(o=!0,setTimeout(()=>o=!1)),C()&&(o="action");var P=t.selection&&D.rangeRef(t,t.selection,{affinity:"forward"});On.set(t,t.marks),K3("flush",lr.get(t),gt.get(t));for(var L=E(),j;j=(z=gt.get(t))===null||z===void 0?void 0:z[0];){var z,G,T=Zt.get(t);T!==void 0&&(Zt.delete(t),t.marks=T),T&&l===!1&&(l=null);var I=V3(j);(!t.selection||!_.equals(t.selection,I))&&R.select(t,I),j.diff.text?D.insertText(t,j.diff.text):D.deleteFragment(t),gt.set(t,(G=gt.get(t))===null||G===void 0?void 0:G.filter(ne=>{var{id:te}=ne;return te!==j.id})),M3(t,j)||(L=!1,lr.delete(t),On.delete(t),o="action",cr.delete(t),n.cancel(),r.cancel(),P==null||P.unref())}var K=P==null?void 0:P.unref();if(K&&!cr.get(t)&&(!t.selection||!_.equals(K,t.selection))&&R.select(t,K),C()){d();return}L&&n(),n.flush(),r.flush(),c();var Q=On.get(t);On.delete(t),Q!==void 0&&(t.marks=Q,t.onChange())},y=P=>{u&&clearTimeout(u),u=setTimeout(()=>{Vr.set(t,!1),p()},U3)},m=P=>{Vr.set(t,!0),u&&(clearTimeout(u),u=null)},f=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,j=Ed.get(t);if(j){if(E()||L){j.style.display="none";return}j.style.removeProperty("display")}},w=(P,L)=>{var j,z=(j=gt.get(t))!==null&&j!==void 0?j:[];gt.set(t,z);var G=q.leaf(t,P),T=z.findIndex(Q=>b.equals(Q.path,P));if(T<0){var I=f1(G.text,L);I&&z.push({path:P,diff:L,id:s++}),f();return}var K=z3(G.text,z[T].diff,L);if(!K){z.splice(T,1),f();return}z[T]=js(js({},z[T]),{},{diff:K})},h=function(L){var{at:j}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l=!1,cr.delete(t),n.cancel(),r.cancel(),C()&&p(),lr.set(t,{at:j,run:L}),i=setTimeout(p)},g=P=>{var L;a&&(clearTimeout(a),a=null);var{inputType:j}=P,z=null,G=P.dataTransfer||P.data||void 0;l!==!1&&j!=="insertText"&&j!=="insertCompositionText"&&(l=!1);var[T]=P.getTargetRanges();T&&(z=k.toSlateRange(t,T,{exactMatch:!1,suppressThrow:!0}));var I=k.getWindow(t),K=I.getSelection();if(!z&&K&&(T=K,z=k.toSlateRange(t,K,{exactMatch:!1,suppressThrow:!0})),z=(L=z)!==null&&L!==void 0?L:t.selection,!!z){var Q=!0;if(j.startsWith("delete")){if(_.isExpanded(z)){var[ne,te]=_.edges(z),ye=q.leaf(t,ne.path);if(ye.text.length===ne.offset&&te.offset===0){var fe=D.next(t,{at:ne.path,match:Z.isText});fe&&b.equals(fe[1],te.path)&&(z={anchor:te,focus:te})}}var F=j.endsWith("Backward")?"backward":"forward",[V,U]=_.edges(z),[Y,ie]=D.leaf(t,V.path),ee={text:"",start:V.offset,end:U.offset},he=gt.get(t),pe=he==null?void 0:he.find(Ge=>b.equals(Ge.path,ie)),se=pe?[pe.diff,ee]:[ee],ae=c1(Y.text,...se);if(ae.length===0&&(Q=!1),_.isExpanded(z)){if(Q&&b.equals(z.anchor.path,z.focus.path)){var me={path:z.anchor.path,offset:V.offset},Pe=D.range(t,me,me);return A(Pe),w(z.anchor.path,{text:"",end:U.offset,start:V.offset})}return h(()=>D.deleteFragment(t,{direction:F}),{at:z})}}switch(j){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>D.deleteFragment(t),{at:z});case"deleteContent":case"deleteContentForward":{var{anchor:ve}=z;if(Q&&_.isCollapsed(z)){var Qe=q.leaf(t,ve.path);if(ve.offset<Qe.text.length)return w(ve.path,{text:"",start:ve.offset,end:ve.offset+1})}return h(()=>D.deleteForward(t),{at:z})}case"deleteContentBackward":{var yt,{anchor:je}=z,We=Fd(T)?T.isCollapsed:!!((yt=T)!==null&&yt!==void 0&&yt.collapsed);return Q&&We&&_.isCollapsed(z)&&je.offset>0?w(je.path,{text:"",start:je.offset-1,end:je.offset}):h(()=>D.deleteBackward(t),{at:z})}case"deleteEntireSoftLine":return h(()=>{D.deleteBackward(t,{unit:"line"}),D.deleteForward(t,{unit:"line"})},{at:z});case"deleteHardLineBackward":return h(()=>D.deleteBackward(t,{unit:"block"}),{at:z});case"deleteSoftLineBackward":return h(()=>D.deleteBackward(t,{unit:"line"}),{at:z});case"deleteHardLineForward":return h(()=>D.deleteForward(t,{unit:"block"}),{at:z});case"deleteSoftLineForward":return h(()=>D.deleteForward(t,{unit:"line"}),{at:z});case"deleteWordBackward":return h(()=>D.deleteBackward(t,{unit:"word"}),{at:z});case"deleteWordForward":return h(()=>D.deleteForward(t,{unit:"word"}),{at:z});case"insertLineBreak":return h(()=>D.insertSoftBreak(t),{at:z});case"insertParagraph":return h(()=>D.insertBreak(t),{at:z});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(q3(G))return h(()=>k.insertData(t,G),{at:z});var we=G??"";if(Zt.get(t)&&(we=we.replace("\uFEFF","")),j==="insertText"&&/.*\n.*\n$/.test(we)&&(we=we.slice(0,-1)),we.includes(`
|
57
57
|
`))return h(()=>{var Ge=we.split(`
|
58
|
-
`);Ge.forEach((pn,Wr)=>{pn&&D.insertText(t,pn),Wr!==Ge.length-1&&D.insertSoftBreak(t)})},{at:z});if(b.equals(z.anchor.path,z.focus.path)){var[nt,Te]=_.edges(z),de={start:nt.offset,end:Te.offset,text:we};if(we&&l&&j==="insertCompositionText"){var Dt=l.start+l.text.search(/\S|$/),dn=de.start+de.text.search(/\S|$/);dn===Dt+1&&de.end===l.start+l.text.length?(de.start-=1,l=null,O()):l=!1}else j==="insertText"?l===null?l=de:l&&_.isCollapsed(z)&&l.end+l.text.length===nt.offset?l=
|
58
|
+
`);Ge.forEach((pn,Wr)=>{pn&&D.insertText(t,pn),Wr!==Ge.length-1&&D.insertSoftBreak(t)})},{at:z});if(b.equals(z.anchor.path,z.focus.path)){var[nt,Te]=_.edges(z),de={start:nt.offset,end:Te.offset,text:we};if(we&&l&&j==="insertCompositionText"){var Dt=l.start+l.text.search(/\S|$/),dn=de.start+de.text.search(/\S|$/);dn===Dt+1&&de.end===l.start+l.text.length?(de.start-=1,l=null,O()):l=!1}else j==="insertText"?l===null?l=de:l&&_.isCollapsed(z)&&l.end+l.text.length===nt.offset?l=js(js({},l),{},{text:l.text+we}):l=!1:l=!1;if(Q){w(nt.path,de);return}}return h(()=>D.insertText(t,we),{at:z})}}}},C=()=>!!lr.get(t),E=()=>{var P;return!!((P=gt.get(t))!==null&&P!==void 0&&P.length)},B=()=>C()||E(),x=()=>o,A=P=>{cr.set(t,P),a&&(clearTimeout(a),a=null);var{selection:L}=t;if(P){var j=!L||!b.equals(L.anchor.path,P.anchor.path),z=!L||!b.equals(L.anchor.path.slice(0,-1),P.anchor.path.slice(0,-1));(j&&l||z)&&(l=!1),(j||E())&&(a=setTimeout(p,H3))}},S=()=>{(C()||!E())&&p()},N=P=>{E()||(f(!0),setTimeout(f))},O=()=>{C()||(i=setTimeout(p))},W=P=>{if(!(E()||C())&&P.some(j=>Sd(t,j,P))){var L;(L=u1.get(t))===null||L===void 0||L()}};return{flush:p,scheduleFlush:O,hasPendingDiffs:E,hasPendingAction:C,hasPendingChanges:B,isFlushing:x,handleUserSelect:A,handleCompositionEnd:y,handleCompositionStart:m,handleDOMBeforeInput:g,handleKeyDown:N,handleDomMutations:W,handleInput:S}}function Q3(){var e=M.useRef(!1);return M.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var fa=ks?M.useLayoutEffect:M.useEffect;function G3(e,t,n){var[r]=M.useState(()=>new MutationObserver(t));fa(()=>{r.takeRecords()}),M.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var X3=["node"];function h1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Z3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var J3={subtree:!0,childList:!0,characterData:!0},eP=st?e=>{var{node:t}=e,n=Io(e,X3);if(!st)return null;var r=ar(),o=Q3(),[u]=M.useState(()=>Y3(Z3({editor:r},n)));return G3(t,u.handleDomMutations,J3),bd.set(r,u.scheduleFlush),o&&u.flush(),u}:()=>null,tP=["anchor","focus"],nP=["anchor","focus"],rP=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),m1=(e,t)=>{var n=Io(e,tP),r=Io(t,nP);return e[$o]===t[$o]&&rP(n,r)},oP=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!_.equals(r,o)||!m1(r,o))return!1}return!0},uP=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!m1(r,o))return!1}return!0};function g1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var iP=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,u=ar(),a=k.findPath(u,o),i=b.parent(a),s=!!n[a1];return u.isVoid(r)?re.createElement(Pd,{length:q.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!u.isInline(r)&&D.string(u,i)===""?re.createElement(Pd,{isLineBreak:!0,isMarkPlaceholder:s}):n.text===""?re.createElement(Pd,{isMarkPlaceholder:s}):t&&n.text.slice(-1)===`
|
59
59
|
`?re.createElement(y1,{isTrailing:!0,text:n.text}):re.createElement(y1,{text:n.text})},y1=e=>{var{text:t,isTrailing:n=!1}=e,r=M.useRef(null),o=()=>"".concat(t??"").concat(n?`
|
60
|
-
`:""),[u]=M.useState(o);return ca(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(iP,{ref:r},u)},iP=M.memo(M.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),_d=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),re.createElement("span",uP({},o),!(st||e1)||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sP=st?300:0;function lP(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function w1(e){e.current&&(clearTimeout(e.current),e.current=null)}var cP=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(dP,C1({},g))}=e,i=ar(),s=M.useRef(null),l=M.useRef(null),[c,d]=M.useState(!1),p=M.useRef(null),y=M.useCallback(g=>{if(lP(s,g==null),g==null){var C;wd.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(wd.set(i,g),!s.current){var E=window.ResizeObserver||p3;s.current=new E(()=>{var B;(B=t.onPlaceholderResize)===null||B===void 0||B.call(t,g)})}s.current.observe(g),l.current=g}},[l,t,i]),m=re.createElement(aP,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[$o];if(M.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},sP)):(w1(p),d(!1)),()=>w1(p)),[f,d]),f&&c){var w={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Lr?"inherit":void 0},contentEditable:!1,ref:y}};m=re.createElement(re.Fragment,null,u(w),m)}var h={"data-slate-leaf":!0};return a({attributes:h,children:m,leaf:t,text:r})},fP=re.memo(cP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Z.equals(t.leaf,e.leaf)&&t.leaf[$o]===e.leaf[$o]),dP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",C1({},t),n)},pP=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=ar(),s=M.useRef(null),l=Z.decorations(a,t),c=k.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(re.createElement(fP,{isLast:n&&p===l.length-1,key:"".concat(c.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=M.useCallback(f=>{var w=Rs.get(i);f?(w==null||w.set(c,f),zr.set(a,f),sa.set(f,a)):(w==null||w.delete(c),zr.delete(a),s.current&&sa.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},E1=re.memo(pP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&oP(t.decorations,e.decorations));function B1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vP=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(mP,Pd({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=ar(),s=DP(),l=i.isInline(n),c=k.findKey(i,n),d=M.useCallback(g=>{var C=Rs.get(i);g?(C==null||C.set(c,g),zr.set(n,g),sa.set(g,n)):(C==null||C.delete(c),zr.delete(n))},[i,c,n]),p=b1({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}),y={"data-slate-node":"element",ref:d};if(l&&(y["data-slate-inline"]=!0),!l&&D.hasInlines(i,n)){var m=q.string(n),f=Cy(m);f==="rtl"&&(y.dir=f)}if(D.isVoid(i,n)){y["data-slate-void"]=!0,!s&&l&&(y.contentEditable=!1);var w=l?"span":"div",[[h]]=q.texts(n);p=re.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},re.createElement(E1,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),Dd.set(h,0),Cd.set(h,n)}return r({attributes:y,children:p,element:n})},hP=re.memo(vP,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&rP(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),mP=e=>{var{attributes:t,children:n,element:r}=e,o=ar(),u=o.isInline(r)?"span":"div";return re.createElement(u,Pd(Pd({},t),{},{style:{position:"relative"}}),n)},A1=M.createContext(()=>[]),gP=()=>M.useContext(A1),yP=M.createContext(!1),b1=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=gP(),s=ar(),l=k.findPath(s,n),c=[],d=X.isElement(n)&&!s.isInline(n)&&D.hasInlines(s,n),p=0;p<n.children.length;p++){var y=l.concat(p),m=n.children[p],f=k.findKey(s,m),w=D.range(s,y),h=a&&_.intersection(w,a),g=i([m,y]);for(var C of t){var E=_.intersection(C,w);E&&g.push(E)}X.isElement(m)?c.push(re.createElement(yP.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(hP,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(E1,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),Dd.set(m,p),Cd.set(m,n)}return c},x1=M.createContext(!1),DP=()=>M.useContext(x1),F1=M.createContext(null),CP=()=>{var e=M.useContext(F1);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function wP(){var e=ar(),t=M.useRef(!1),n=M.useRef(0),r=M.useCallback(()=>{if(!t.current){t.current=!0;var o=k.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return M.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var EP=3,BP={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},AP={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},bP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},xe=e=>{var t=BP[e],n=AP[e],r=bP[e],o=t&&hd(t),u=n&&hd(n),a=r&&hd(r);return i=>!!(o&&o(i)||t1&&u&&u(i)||!t1&&a&&a(i))},_e={isBold:xe("bold"),isCompose:xe("compose"),isMoveBackward:xe("moveBackward"),isMoveForward:xe("moveForward"),isDeleteBackward:xe("deleteBackward"),isDeleteForward:xe("deleteForward"),isDeleteLineBackward:xe("deleteLineBackward"),isDeleteLineForward:xe("deleteLineForward"),isDeleteWordBackward:xe("deleteWordBackward"),isDeleteWordForward:xe("deleteWordForward"),isExtendBackward:xe("extendBackward"),isExtendForward:xe("extendForward"),isExtendLineBackward:xe("extendLineBackward"),isExtendLineForward:xe("extendLineForward"),isItalic:xe("italic"),isMoveLineBackward:xe("moveLineBackward"),isMoveLineForward:xe("moveLineForward"),isMoveWordBackward:xe("moveWordBackward"),isMoveWordForward:xe("moveWordForward"),isRedo:xe("redo"),isSoftBreak:xe("insertSoftBreak"),isSplitBlock:xe("splitBlock"),isTransposeCharacter:xe("transposeCharacter"),isUndo:xe("undo")},xP=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>Fd(e,s,a));n.push(...i)}};function u(){n.length>0&&(n.reverse().forEach(a=>{a.type!=="characterData"&&(a.removedNodes.forEach(i=>{a.target.insertBefore(i,a.nextSibling)}),a.addedNodes.forEach(i=>{a.target.removeChild(i)}))}),r())}return{registerMutations:o,restoreDOM:u,clear:r}},FP={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class S1 extends M.Component{constructor(){super(...arguments),Lt(this,"context",null),Lt(this,"manager",null),Lt(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,FP)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=xP(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var u;(u=this.manager)===null||u===void 0||u.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}Lt(S1,"contextType",md);var SP=st?S1:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},OP=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],_P=["text"];function O1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var PP=e=>re.createElement(re.Fragment,null,b1(e)),kP=e=>{var t=M.useCallback(F=>re.createElement(TP,fn({},F)),[]),{autoFocus:n,decorate:r=RP,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=NP,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=Io(e,OP),f=CP(),[w,h]=M.useState(!1),g=M.useRef(null),C=M.useRef([]),[E,B]=M.useState(),x=M.useRef(!1),{onUserInput:A,receivedUserInput:S}=wP(),[,N]=M.useReducer(F=>F+1,0);u1.set(f,N),Ed.set(f,a);var O=M.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);M.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var V=M.useRef(),P=M.useMemo(()=>W_(()=>{var F=k.toDOMNode(f,f),W=F.getRootNode();if(r1&&!x.current&&Lr&&W instanceof ShadowRoot){x.current=!0;var U=R3();U?document.execCommand("indent"):R.deselect(f),x.current=!1;return}var Y=V.current;if((st||!k.isComposing(f))&&(!O.isUpdatingSelection||Y!=null&&Y.isFlushing())&&!O.isDraggingInternally){var ie=k.findDocumentOrShadowRoot(f),{activeElement:ee}=ie,he=k.toDOMNode(f,f),pe=ie.getSelection();if(ee===he?(O.latestElement=ee,sr.set(f,!0)):sr.delete(f),!pe)return R.deselect(f);var{anchorNode:se,focusNode:ae}=pe,me=k.hasEditableTarget(f,se)||k.isTargetInsideNonReadonlyVoid(f,se),Pe=k.hasEditableTarget(f,ae)||k.isTargetInsideNonReadonlyVoid(f,ae);if(me&&Pe){var ve=k.toSlateRange(f,pe,{exactMatch:!1,suppressThrow:!0});ve&&(!k.isComposing(f)&&!(Y!=null&&Y.hasPendingChanges())&&!(Y!=null&&Y.isFlushing())?R.select(f,ve):Y==null||Y.handleUserSelect(ve))}a&&(!me||!Pe)&&R.deselect(f)}},100),[f,a,O]),L=M.useMemo(()=>I_(P,0),[P]);V.current=J3({node:g,onDOMSelectionChange:P,scheduleOnDOMSelectionChange:L}),ca(()=>{var F,W,U;g.current&&(U=bd(g.current))?(o1.set(f,U),ks.set(f,g.current),zr.set(f,g.current),sa.set(g.current,f)):zr.delete(f);var{selection:Y}=f,ie=k.findDocumentOrShadowRoot(f),ee=ie.getSelection();if(!(!ee||!k.isFocused(f)||(F=V.current)!==null&&F!==void 0&&F.hasPendingAction())){var he=me=>{var Pe=ee.type!=="None";if(!(!Y&&!Pe)){var ve=ee.focusNode,Qe;if(Mo&&ee.rangeCount>1){var yt=ee.getRangeAt(0),je=ee.getRangeAt(ee.rangeCount-1);yt.startContainer===ve?Qe=je.endContainer:Qe=yt.startContainer}else Qe=ee.anchorNode;var We=ks.get(f),we=!1;if(We.contains(Qe)&&We.contains(ve)&&(we=!0),Pe&&we&&Y&&!me){var nt=k.toSlateRange(f,ee,{exactMatch:!0,suppressThrow:!0});if(nt&&_.equals(nt,Y)){var Te;if(!O.hasMarkPlaceholder||(Te=Qe)!==null&&Te!==void 0&&(Te=Te.parentElement)!==null&&Te!==void 0&&Te.hasAttribute("data-slate-mark-placeholder"))return}}if(Y&&!k.hasRange(f,Y)){f.selection=k.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!0});return}O.isUpdatingSelection=!0;var de=Y&&k.toDOMRange(f,Y);return de?(k.isComposing(f)&&!st?ee.collapseToEnd():_.isBackward(Y)?ee.setBaseAndExtent(de.endContainer,de.endOffset,de.startContainer,de.startOffset):ee.setBaseAndExtent(de.startContainer,de.startOffset,de.endContainer,de.endOffset),c(f,de)):ee.removeAllRanges(),de}};ee.rangeCount<=1&&he();var pe=((W=V.current)===null||W===void 0?void 0:W.isFlushing())==="action";if(!st||!pe){setTimeout(()=>{O.isUpdatingSelection=!1});return}var se=null,ae=requestAnimationFrame(()=>{if(pe){var me=Pe=>{try{var ve=k.toDOMNode(f,f);ve.focus(),he(Pe)}catch{}};me(),se=setTimeout(()=>{me(!0),O.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ae),se&&clearTimeout(se)}}});var j=M.useCallback(F=>{var W=k.toDOMNode(f,f),U=W.getRootNode();if(r1&&x!==null&&x!==void 0&&x.current&&Lr&&U instanceof ShadowRoot){var Y=F.getTargetRanges(),ie=Y[0],ee=new window.Range;ee.setStart(ie.startContainer,ie.startOffset),ee.setEnd(ie.endContainer,ie.endOffset);var he=k.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!1});R.select(f,he),F.preventDefault(),F.stopImmediatePropagation();return}if(A(),!a&&k.hasEditableTarget(f,F.target)&&!jP(F,o)){var pe;if(V.current)return V.current.handleDOMBeforeInput(F);L.flush(),P.flush();var{selection:se}=f,{inputType:ae}=F,me=F.dataTransfer||F.data||void 0,Pe=ae==="insertCompositionText"||ae==="deleteCompositionText";if(Pe&&k.isComposing(f))return;var ve=!1;if(ae==="insertText"&&se&&_.isCollapsed(se)&&F.data&&F.data.length===1&&/[a-z ]/i.test(F.data)&&se.anchor.offset!==0){var Qe,yt;ve=!0,f.marks&&(ve=!1);var{anchor:je}=se,[We,we]=k.toDOMPoint(f,je),nt=(Qe=We.parentElement)===null||Qe===void 0?void 0:Qe.closest("a"),Te=k.getWindow(f);if(ve&&nt&&k.hasDOMNode(f,nt)){var de,Dt=Te==null?void 0:Te.document.createTreeWalker(nt,NodeFilter.SHOW_TEXT).lastChild();Dt===We&&((de=Dt.textContent)===null||de===void 0?void 0:de.length)===we&&(ve=!1)}if(ve&&We.parentElement&&(Te==null||(yt=Te.getComputedStyle(We.parentElement))===null||yt===void 0?void 0:yt.whiteSpace)==="pre"){var dn=D.above(f,{at:je.path,match:js=>X.isElement(js)&&D.isBlock(f,js)});dn&&q.string(dn[0]).includes(" ")&&(ve=!1)}}if(!ae.startsWith("delete")||ae.startsWith("deleteBy")){var[Ge]=F.getTargetRanges();if(Ge){var pn=k.toSlateRange(f,Ge,{exactMatch:!1,suppressThrow:!1});if(!se||!_.equals(se,pn)){ve=!1;var Wr=!Pe&&f.selection&&D.rangeRef(f,f.selection);R.select(f,pn),Wr&&la.set(f,Wr)}}}if(Pe)return;if(ve||F.preventDefault(),se&&_.isExpanded(se)&&ae.startsWith("delete")){var _n=ae.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:_n});return}switch(ae){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{D.deleteFragment(f);break}case"deleteContent":case"deleteContentForward":{D.deleteForward(f);break}case"deleteContentBackward":{D.deleteBackward(f);break}case"deleteEntireSoftLine":{D.deleteBackward(f,{unit:"line"}),D.deleteForward(f,{unit:"line"});break}case"deleteHardLineBackward":{D.deleteBackward(f,{unit:"block"});break}case"deleteSoftLineBackward":{D.deleteBackward(f,{unit:"line"});break}case"deleteHardLineForward":{D.deleteForward(f,{unit:"block"});break}case"deleteSoftLineForward":{D.deleteForward(f,{unit:"line"});break}case"deleteWordBackward":{D.deleteBackward(f,{unit:"word"});break}case"deleteWordForward":{D.deleteForward(f,{unit:"word"});break}case"insertLineBreak":D.insertSoftBreak(f);break;case"insertParagraph":{D.insertBreak(f);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{ae==="insertFromComposition"&&k.isComposing(f)&&(h(!1),Vr.set(f,!1)),(me==null?void 0:me.constructor.name)==="DataTransfer"?k.insertData(f,me):typeof me=="string"&&(ve?C.current.push(()=>D.insertText(f,me)):D.insertText(f,me));break}}var fa=(pe=la.get(f))===null||pe===void 0?void 0:pe.unref();la.delete(f),fa&&(!f.selection||!_.equals(f.selection,fa))&&R.select(f,fa)}},[f,P,A,o,a,L]),z=M.useCallback(F=>{F==null?(P.cancel(),L.cancel(),ks.delete(f),zr.delete(f),g.current&&ir&&g.current.removeEventListener("beforeinput",j)):ir&&F.addEventListener("beforeinput",j),g.current=F},[P,L,f,j]);ca(()=>{var F=k.getWindow(f);return F.document.addEventListener("selectionchange",L),()=>{F.document.removeEventListener("selectionchange",L)}},[L]);var G=r([f,[]]),T=u&&f.children.length===1&&Array.from(q.texts(f)).length===1&&q.string(f)===""&&!w,I=M.useCallback(F=>{if(F&&T){var W;B((W=F.getBoundingClientRect())===null||W===void 0?void 0:W.height)}else B(void 0)},[T]);if(T){var K=D.start(f,[]);G.push({[$o]:!0,placeholder:u,onPlaceholderResize:I,anchor:K,focus:K})}var{marks:Q}=f;if(O.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&Q){var{anchor:ne}=f.selection,te=q.leaf(f,ne.path),ye=Io(te,_P);if(!Z.equals(te,Q,{loose:!0})){O.hasMarkPlaceholder=!0;var fe=Object.fromEntries(Object.keys(ye).map(F=>[F,null]));G.push(fn(fn(fn({[a1]:!0},fe),Q),{},{anchor:ne,focus:ne}))}}return M.useEffect(()=>{setTimeout(()=>{var{selection:F}=f;if(F){var{anchor:W}=F,U=q.leaf(f,W.path);if(Q&&!Z.equals(U,Q,{loose:!0})){Zt.set(f,Q);return}}Zt.delete(f)})}),re.createElement(x1.Provider,{value:a},re.createElement(A1.Provider,{value:r},re.createElement(SP,{node:g,receivedUserInput:S},re.createElement(p,fn(fn({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:ir||!Ps?m.spellCheck:!1,autoCorrect:ir||!Ps?m.autoCorrect:"false",autoCapitalize:ir||!Ps?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:z,style:fn(fn({},y?{}:fn({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:M.useCallback(F=>{if(!ir&&!a&&!lt(F,m.onBeforeInput)&&k.hasSelectableTarget(f,F.target)&&(F.preventDefault(),!k.isComposing(f))){var W=F.data;D.insertText(f,W)}},[m.onBeforeInput,f,a]),onInput:M.useCallback(F=>{if(!lt(F,m.onInput)){if(V.current){V.current.handleInput();return}for(var W of C.current)W();C.current=[]}},[m.onInput]),onBlur:M.useCallback(F=>{if(!(a||O.isUpdatingSelection||!k.hasSelectableTarget(f,F.target)||lt(F,m.onBlur))){var W=k.findDocumentOrShadowRoot(f);if(O.latestElement!==W.activeElement){var{relatedTarget:U}=F,Y=k.toDOMNode(f,f);if(U!==Y&&!(zt(U)&&U.hasAttribute("data-slate-spacer"))){if(U!=null&&fr(U)&&k.hasDOMNode(f,U)){var ie=k.toSlateNode(f,U);if(X.isElement(ie)&&!f.isVoid(ie))return}if(Lr){var ee=W.getSelection();ee==null||ee.removeAllRanges()}sr.delete(f)}}}},[a,O.isUpdatingSelection,O.latestElement,f,m.onBlur]),onClick:M.useCallback(F=>{if(k.hasTarget(f,F.target)&&!lt(F,m.onClick)&&fr(F.target)){var W=k.toSlateNode(f,F.target),U=k.findPath(f,W);if(!D.hasPath(f,U)||q.get(f,U)!==W)return;if(F.detail===EP&&U.length>=1){var Y=U;if(!(X.isElement(W)&&D.isBlock(f,W))){var ie,ee=D.above(f,{match:ve=>X.isElement(ve)&&D.isBlock(f,ve),at:U});Y=(ie=ee==null?void 0:ee[1])!==null&&ie!==void 0?ie:U.slice(0,1)}var he=D.range(f,Y);R.select(f,he);return}if(a)return;var pe=D.start(f,U),se=D.end(f,U),ae=D.void(f,{at:pe}),me=D.void(f,{at:se});if(ae&&me&&b.equals(ae[1],me[1])){var Pe=D.range(f,pe);R.select(f,Pe)}}},[f,m.onClick,a]),onCompositionEnd:M.useCallback(F=>{if(k.hasSelectableTarget(f,F.target)){var W;if(k.isComposing(f)&&Promise.resolve().then(()=>{h(!1),Vr.set(f,!1)}),(W=V.current)===null||W===void 0||W.handleCompositionEnd(F),lt(F,m.onCompositionEnd)||st)return;if(!Lr&&!B3&&!e1&&!b3&&!A3&&F.data){var U=Zt.get(f);Zt.delete(f),U!==void 0&&(On.set(f,f.marks),f.marks=U),D.insertText(f,F.data);var Y=On.get(f);On.delete(f),Y!==void 0&&(f.marks=Y)}}},[m.onCompositionEnd,f]),onCompositionUpdate:M.useCallback(F=>{k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCompositionUpdate)&&(k.isComposing(f)||(h(!0),Vr.set(f,!0)))},[m.onCompositionUpdate,f]),onCompositionStart:M.useCallback(F=>{if(k.hasSelectableTarget(f,F.target)){var W;if((W=V.current)===null||W===void 0||W.handleCompositionStart(F),lt(F,m.onCompositionStart)||st)return;h(!0);var{selection:U}=f;if(U&&_.isExpanded(U)){D.deleteFragment(f);return}}},[m.onCompositionStart,f]),onCopy:M.useCallback(F=>{k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCopy)&&!_1(F)&&(F.preventDefault(),k.setFragmentData(f,F.clipboardData,"copy"))},[m.onCopy,f]),onCut:M.useCallback(F=>{if(!a&&k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCut)&&!_1(F)){F.preventDefault(),k.setFragmentData(f,F.clipboardData,"cut");var{selection:W}=f;if(W)if(_.isExpanded(W))D.deleteFragment(f);else{var U=q.parent(f,W.anchor.path);D.isVoid(f,U)&&R.delete(f)}}},[a,f,m.onCut]),onDragOver:M.useCallback(F=>{if(k.hasTarget(f,F.target)&&!lt(F,m.onDragOver)){var W=k.toSlateNode(f,F.target);X.isElement(W)&&D.isVoid(f,W)&&F.preventDefault()}},[m.onDragOver,f]),onDragStart:M.useCallback(F=>{if(!a&&k.hasTarget(f,F.target)&&!lt(F,m.onDragStart)){var W=k.toSlateNode(f,F.target),U=k.findPath(f,W),Y=X.isElement(W)&&D.isVoid(f,W)||D.void(f,{at:U,voids:!0});if(Y){var ie=D.range(f,U);R.select(f,ie)}O.isDraggingInternally=!0,k.setFragmentData(f,F.dataTransfer,"drag")}},[a,f,m.onDragStart,O]),onDrop:M.useCallback(F=>{if(!a&&k.hasTarget(f,F.target)&&!lt(F,m.onDrop)){F.preventDefault();var W=f.selection,U=k.findEventRange(f,F),Y=F.dataTransfer;R.select(f,U),O.isDraggingInternally&&W&&!_.equals(W,U)&&!D.void(f,{at:U,voids:!0})&&R.delete(f,{at:W}),k.insertData(f,Y),k.isFocused(f)||k.focus(f)}O.isDraggingInternally=!1},[a,f,m.onDrop,O]),onDragEnd:M.useCallback(F=>{!a&&O.isDraggingInternally&&m.onDragEnd&&k.hasTarget(f,F.target)&&m.onDragEnd(F),O.isDraggingInternally=!1},[a,O,m,f]),onFocus:M.useCallback(F=>{if(!a&&!O.isUpdatingSelection&&k.hasEditableTarget(f,F.target)&&!lt(F,m.onFocus)){var W=k.toDOMNode(f,f),U=k.findDocumentOrShadowRoot(f);if(O.latestElement=U.activeElement,Mo&&F.target!==W){W.focus();return}sr.set(f,!0)}},[a,O,f,m.onFocus]),onKeyDown:M.useCallback(F=>{if(!a&&k.hasEditableTarget(f,F.target)){var W;(W=V.current)===null||W===void 0||W.handleKeyDown(F);var{nativeEvent:U}=F;if(k.isComposing(f)&&U.isComposing===!1&&(Vr.set(f,!1),h(!1)),lt(F,m.onKeyDown)||k.isComposing(f))return;var{selection:Y}=f,ie=f.children[Y!==null?Y.focus.path[0]:0],ee=Cy(q.string(ie))==="rtl";if(_e.isRedo(U)){F.preventDefault();var he=f;typeof he.redo=="function"&&he.redo();return}if(_e.isUndo(U)){F.preventDefault();var pe=f;typeof pe.undo=="function"&&pe.undo();return}if(_e.isMoveLineBackward(U)){F.preventDefault(),R.move(f,{unit:"line",reverse:!0});return}if(_e.isMoveLineForward(U)){F.preventDefault(),R.move(f,{unit:"line"});return}if(_e.isExtendLineBackward(U)){F.preventDefault(),R.move(f,{unit:"line",edge:"focus",reverse:!0});return}if(_e.isExtendLineForward(U)){F.preventDefault(),R.move(f,{unit:"line",edge:"focus"});return}if(_e.isMoveBackward(U)){F.preventDefault(),Y&&_.isCollapsed(Y)?R.move(f,{reverse:!ee}):R.collapse(f,{edge:ee?"end":"start"});return}if(_e.isMoveForward(U)){F.preventDefault(),Y&&_.isCollapsed(Y)?R.move(f,{reverse:ee}):R.collapse(f,{edge:ee?"start":"end"});return}if(_e.isMoveWordBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)&&R.collapse(f,{edge:"focus"}),R.move(f,{unit:"word",reverse:!ee});return}if(_e.isMoveWordForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)&&R.collapse(f,{edge:"focus"}),R.move(f,{unit:"word",reverse:ee});return}if(ir){if((n1||Lr)&&Y&&(_e.isDeleteBackward(U)||_e.isDeleteForward(U))&&_.isCollapsed(Y)){var se=q.parent(f,Y.anchor.path);if(X.isElement(se)&&D.isVoid(f,se)&&(D.isInline(f,se)||D.isBlock(f,se))){F.preventDefault(),D.deleteBackward(f,{unit:"block"});return}}}else{if(_e.isBold(U)||_e.isItalic(U)||_e.isTransposeCharacter(U)){F.preventDefault();return}if(_e.isSoftBreak(U)){F.preventDefault(),D.insertSoftBreak(f);return}if(_e.isSplitBlock(U)){F.preventDefault(),D.insertBreak(f);return}if(_e.isDeleteBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f);return}if(_e.isDeleteForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f);return}if(_e.isDeleteLineBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"line"});return}if(_e.isDeleteLineForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"line"});return}if(_e.isDeleteWordBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"word"});return}if(_e.isDeleteWordForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"word"});return}}}},[a,f,m.onKeyDown]),onPaste:M.useCallback(F=>{!a&&k.hasEditableTarget(f,F.target)&&!lt(F,m.onPaste)&&(!ir||S3(F.nativeEvent)||Lr)&&(F.preventDefault(),k.insertData(f,F.clipboardData))},[a,f,m.onPaste])}),re.createElement(PP,{decorations:G,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},TP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",fn({},t),n,st&&re.createElement("br",null))},RP=()=>[],NP=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),K_(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},lt=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},_1=e=>fr(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),jP=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},IP=M.createContext(!1),MP=M.createContext({});function $P(e){var t=M.useRef([]).current,n=M.useRef({editor:e}).current,r=M.useCallback(u=>{n.editor=u,t.forEach(a=>a(u))},[t,n]),o=M.useMemo(()=>({getSlate:()=>n.editor,addEventListener:u=>(t.push(u),()=>{t.splice(t.indexOf(u),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var LP=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],zP=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=Io(e,LP),[s,l]=re.useState(()=>{if(!q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Le.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Le.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:c,onChange:d}=$P(t),p=M.useCallback(f=>{var w;switch(r&&r(t.children),f==null||(w=f.operation)===null||w===void 0?void 0:w.type){case"set_selection":o==null||o(t.selection);break;default:u==null||u(t.children)}l(h=>({v:h.v+1,editor:t})),d(t)},[t,d,r,o,u]);M.useEffect(()=>(Bd.set(t,p),()=>{Bd.set(t,()=>{})}),[t,p]);var[y,m]=M.useState(k.isFocused(t));return M.useEffect(()=>{m(k.isFocused(t))},[t]),ca(()=>{var f=()=>m(k.isFocused(t));return Jy>=17?(document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",f)}):(document.addEventListener("focus",f,!0),document.addEventListener("blur",f,!0),()=>{document.removeEventListener("focus",f,!0),document.removeEventListener("blur",f,!0)})},[]),re.createElement(MP.Provider,{value:c},re.createElement(F1.Provider,{value:s},re.createElement(md.Provider,{value:s.editor},re.createElement(IP.Provider,{value:y},n))))},P1=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},k1=(e,t,n)=>{var r=k.toDOMRange(e,t).getBoundingClientRect(),o=k.toDOMRange(e,n).getBoundingClientRect();return P1(r,o)&&P1(o,r)},VP=(e,t)=>{var n=D.range(e,_.end(t)),r=Array.from(D.positions(e,{at:t})),o=0,u=r.length,a=Math.floor(u/2);if(k1(e,D.range(e,r[o]),n))return D.range(e,r[o],n);if(r.length<2)return D.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)k1(e,D.range(e,r[a]),n)?u=a:o=a,a=Math.floor((o+u)/2);return D.range(e,r[u],n)};function T1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WP=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:u,deleteBackward:a,addMark:i,removeMark:s}=r;return Rs.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=Ad.get(r))===null||d===void 0||d(),!Zt.get(r)&&(p=gt.get(r))!==null&&p!==void 0&&p.length&&Zt.set(r,null),On.delete(r),i(l,c)},r.removeMark=l=>{var c;!Zt.get(r)&&(c=gt.get(r))!==null&&c!==void 0&&c.length&&Zt.set(r,null),On.delete(r),s(l)},r.deleteBackward=l=>{if(l!=="line")return a(l);if(r.selection&&_.isCollapsed(r.selection)){var c=D.above(r,{match:m=>X.isElement(m)&&D.isBlock(r,m),at:r.selection});if(c){var[,d]=c,p=D.range(r,d,r.selection.anchor),y=VP(r,p);_.isCollapsed(y)||R.delete(r,{at:y})}}},r.apply=l=>{var c=[],d=[],p=gt.get(r);if(p!=null&&p.length){var y=p.map(j=>V3(j,l)).filter(Boolean);gt.set(r,y)}var m=cr.get(r);m&&cr.set(r,p1(r,m,l));var f=lr.get(r);if(f!=null&&f.at){var w=ue.isPoint(f==null?void 0:f.at)?Od(r,f.at,l):p1(r,f.at,l);lr.set(r,w?R1(R1({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...Lo(r,l.path));break}case"set_selection":{var h;(h=la.get(r))===null||h===void 0||h.unref(),la.delete(r);break}case"insert_node":case"remove_node":{c.push(...Lo(r,b.parent(l.path)));break}case"merge_node":{var g=b.previous(l.path);c.push(...Lo(r,g));break}case"move_node":{var C=b.common(b.parent(l.path),b.parent(l.newPath));c.push(...Lo(r,C));var E;b.isBefore(l.path,l.newPath)?(c.push(...Lo(r,b.parent(l.path))),E=l.newPath):(c.push(...Lo(r,b.parent(l.newPath))),E=l.path);var B=q.get(t,b.parent(E)),x=k.findKey(r,B),A=D.pathRef(r,b.parent(E));d.push([A,x]);break}}o(l);for(var[S,N]of c){var[O]=D.node(r,S);Ts.set(O,N)}for(var[V,P]of d)if(V.current){var[L]=D.node(r,V.current);Ts.set(L,P)}},r.setFragmentData=l=>{var{selection:c}=r;if(c){var[d,p]=_.edges(c),y=D.void(r,{at:d.path}),m=D.void(r,{at:p.path});if(!(_.isCollapsed(c)&&!y)){var f=k.toDOMRange(r,c),w=f.cloneContents(),h=w.childNodes[0];if(w.childNodes.forEach(O=>{O.textContent&&O.textContent.trim()!==""&&(h=O)}),m){var[g]=m,C=f.cloneRange(),E=k.toDOMNode(r,g);C.setEndAfter(E),w=C.cloneContents()}if(y&&(h=w.querySelector("[data-slate-spacer]")),Array.from(w.querySelectorAll("[data-slate-zero-width]")).forEach(O=>{var V=O.getAttribute("data-slate-zero-width")==="n";O.textContent=V?`
|
61
|
-
`:""}),i1(h)){var B=h.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(h),w.appendChild(B),h=B}var x=r.getFragment(),A=JSON.stringify(x),S=window.btoa(encodeURIComponent(A));h.setAttribute("data-slate-fragment",S),l.setData("application/".concat(n),S);var N=w.ownerDocument.createElement("div");return N.appendChild(w),N.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(N),l.setData("text/html",N.innerHTML),l.setData("text/plain",l1(N)),w.ownerDocument.body.removeChild(N),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||T3(l);if(c){var d=decodeURIComponent(window.atob(c)),p=JSON.parse(d);return r.insertFragment(p),!0}return!1},r.insertTextData=l=>{var c=l.getData("text/plain");if(c){var d=c.split(/\r\n|\r|\n/),p=!1;for(var y of d)p&&R.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var c=Jy<18?Ro.unstable_batchedUpdates:d=>d();c(()=>{var d=Bd.get(r);d&&d(l),u(l)})},r},Lo=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=k.findKey(e,r);n.push([o,u])}return n},UP={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Mn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Mn.isOperationList(e.undos[0].operations))}},kd=new WeakMap,Td=new WeakMap,zo={isHistoryEditor(e){return UP.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return Td.get(e)},isSaving(e){return kd.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=zo.isMerging(e);Td.set(e,!1),t(),Td.set(e,n)},withoutSaving(e,t){var n=zo.isSaving(e);kd.set(e,!1),t(),kd.set(e,n)}},HP=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:o}=r;if(o.length>0){var u=o[o.length-1];u.selectionBefore&&R.setSelection(t,u.selectionBefore),zo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{for(var a of u.operations)t.apply(a)})}),r.redos.pop(),t.writeHistory("undos",u)}},t.undo=()=>{var{history:r}=t,{undos:o}=r;if(o.length>0){var u=o[o.length-1];zo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Mn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&R.setSelection(t,u.selectionBefore)})}),t.writeHistory("redos",u),r.undos.pop()}},t.apply=r=>{var{operations:o,history:u}=t,{undos:a}=u,i=a[a.length-1],s=i&&i.operations[i.operations.length-1],l=zo.isSaving(t),c=zo.isMerging(t);if(l==null&&(l=qP(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=KP(r,s)),i&&c)i.operations.push(r);else{var d={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",d)}for(;a.length>100;)a.shift();u.redos=[]}n(r)},t.writeHistory=(r,o)=>{t.history[r].push(o)},t},KP=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&b.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&b.equals(e.path,t.path)),qP=(e,t)=>e.type!=="set_selection";function YP(e){const n=`docx-h${e.element.level}`;return Ne.jsx(n,{...e.attributes,children:e.children})}function QP(e){return Ne.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:GP,Consumer:XP}=M.createContext(!1);function ZP(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Ne.jsx(GP,{value:!!t.ordered,children:Ne.jsx(n,{...e.attributes,children:e.children})})}function JP(e){return Ne.jsx(XP,{children:t=>Ne.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const ek={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},tk=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/~~(.+?)~~$/,"del"],[/~(.+?)~$/,"underline"]];function nk(e){return e.element.type==="heading"?Ne.jsx(YP,{...e}):e.element.type==="blockquote"?Ne.jsx(QP,{...e}):e.element.type==="list"?Ne.jsx(ZP,{...e}):e.element.type==="list-item"?Ne.jsx(JP,{...e}):Ne.jsx("p",{...e.attributes,children:e.children})}function rk({attributes:e,children:t,leaf:n}){return n.bold&&(t=Ne.jsx("strong",{children:t})),n.code&&(t=Ne.jsx("code",{children:t})),n.italic&&(t=Ne.jsx("em",{children:t})),n.del&&(t=Ne.jsx("del",{children:t})),n.underline&&(t=Ne.jsx("u",{children:t})),Ne.jsx("span",{...e,children:t})}function ok(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=M.useMemo(()=>r(WP(HP(wx()))),[]),u=M.useCallback(c=>Ne.jsx(nk,{...c}),[]),a=M.useCallback(c=>Ne.jsx(rk,{...c}),[]),i=M.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=M.useCallback(c=>MA.trigger(c),[o]),l=M.useCallback(c=>Sv.trigger(c),[o]);return za.value=o,Ne.jsx(zP,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Ne.jsx(kP,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const uk=fu(v.defineComponent({__name:"Markdown",props:{initialValue:{type:Array}},setup(e){const t=e,n=bO(ok);function r(u){return{match:a=>X.isElement(a)&&D.isBlock(u,a)}}const o=u=>{const{insertText:a,deleteBackward:i,insertBreak:s}=u;return u.insertBreak=()=>{const{selection:l}=u;if(l&&_.isCollapsed(l)){const[c,d]=D.above(u,r(u))||[];if(c&&X.isElement(c)&&ue.equals(l.anchor,D.end(u,d))){if(c.type==="list-item")return R.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(c.type!=="paragraph")return R.insertNodes(u,{type:"paragraph",children:[{text:""}]},r(u))}}s()},u.insertText=l=>{const{selection:c}=u;if(l.endsWith(" ")&&c&&_.isCollapsed(c)){const d=D.above(u,r(u)),p=d?d[1]:[],y=D.start(u,p),m={anchor:c.anchor,focus:y},f=D.string(u,m)+l.slice(0,-1),w=ek[f];if(w){R.select(u,m),_.isCollapsed(m)||R.delete(u);const h={type:w};w==="heading"?h.level=`${f.length}`:w==="blockquote"&&(h.type="paragraph"),R.setNodes(u,h,r(u)),w==="blockquote"?R.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&R.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of tk){const[C,E]=f.match(h)||[];if(C){const B=D.before(u,c,{unit:"character",distance:C.length}),x=D.range(u,B,c);return R.insertText(u,E,{at:x}),R.setNodes(u,{[g]:!0},{at:x,match:A=>Z.isText(A),split:!0}),R.insertNodes(u,{text:" "})}}}a(l)},u.deleteBackward=(...l)=>{const{selection:c}=u;if(c&&_.isCollapsed(c)){const[d,p]=D.above(u,r(u))||[];if(d&&ue.equals(c.anchor,D.start(u,p))){const[y,m]=D.parent(u,p);if(y)if(X.isElement(y)){const f=y.children[0]===d,w=y.children.at(-1)===d;let h=!1;if(f&&w?(h=!0,R.unwrapNodes(u,{at:m})):f?(h=!0,R.moveNodes(u,{to:m})):w&&(h=!0,R.moveNodes(u,{to:b.next(m)})),h){R.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&R.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=_v();Xe(La(),"dragstart",a=>{u.value&&a.preventDefault()})}return(u,a)=>(v.openBlock(),v.createBlock(v.unref(n),v.mergeProps(t,{"with-override":o}),null,16))}}),[["styles",["[data-v-14d7ea7c],[data-v-14d7ea7c]:before,[data-v-14d7ea7c]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-14d7ea7c]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.list-item[data-v-14d7ea7c]{display:list-item}"]],["__scopeId","data-v-14d7ea7c"]]),ak=fu(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createCommentVNode(" Markdown "),v.createVNode(uk,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(xx)],64))}}),[["styles",[`@charset "UTF-8";[data-use-vue-component-wrap],[__use_react_component_wrap]{display:contents}.smart-docx-editor{font-size:1rem;line-height:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%}.smart-docx-editor>:first-child{margin-top:0!important}docx-h1,docx-h2,docx-h3,docx-h4,docx-h5,docx-h6{display:block;font-weight:700}docx-h1{margin-top:26px;margin-bottom:10px;font-size:26px}docx-h2{margin-top:22px;margin-bottom:8px;font-size:22px}docx-h3{margin-top:20px;margin-bottom:8px;font-size:20px}docx-h4{margin-top:18px;margin-bottom:8px;font-size:18px}docx-h5{margin-top:18px;margin-bottom:8px;font-size:16px}docx-h6{margin-top:16px;margin-bottom:8px;font-size:16px}docx-blockquote{display:block;--un-text-opacity:1;color:rgb(82 82 82 / var(--un-text-opacity));border-left-width:2px;--un-border-opacity:1;--un-border-left-opacity:var(--un-border-opacity);border-left-color:rgb(163 163 163 / var(--un-border-left-opacity));border-left-style:solid;margin-top:.5rem;margin-bottom:.5rem;padding-left:.75rem}:host-context(.dark) docx-blockquote{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}docx-ul,docx-ol,docx-li{display:block}docx-li{list-style-type:none}docx-li:not(.ordered){position:relative;padding-left:1.5rem;line-height:1.5rem}docx-li:not(.ordered):before{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 14a2 2 0 1 1 0-4a2 2 0 0 1 0 4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;pointer-events:none;position:absolute;top:0;left:0;display:flex;--un-translate-x:-25%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));align-items:center;justify-content:left;content:"";width:1.5rem;height:1.5rem}`,"[data-v-1360e702],[data-v-1360e702]:before,[data-v-1360e702]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-1360e702]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-1360e702"]]),ik=fu(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(ak,v.normalizeProps(v.guardReactiveProps(t)),null,16))}}),[["styles",["[data-v-9cb0b441],[data-v-9cb0b441]:before,[data-v-9cb0b441]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9cb0b441]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-9cb0b441"]]),sk="2.0.14";function lk(e=zA()){const t=La(),n=`style[cssr-id^="${e}-"]`;return v.onMounted(()=>{function r(){const o=t.value.parentNode;o.querySelectorAll(n).forEach(u=>{o.removeChild(u)}),Array.from(document.querySelectorAll(n)).forEach(u=>{o.appendChild(u.cloneNode()).textContent=u.textContent})}Fv(document.head,r,{childList:!0}),r()}),e}function ck(){const e=La();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[sk])??{};if(n&&(t.appendChild(document.createElement("style")).textContent=n),r){const u=document.createElement("style");u.setAttribute("namespace","smart"),t.appendChild(u).textContent=r,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(u.cloneNode()).textContent=r)}}),{classPrefix:lk()}}const fk=fu(v.defineComponent({__name:"App",props:{initialValue:{type:Array}},emits:["change"],setup(e,{emit:t}){const n=t;return ck(),Sv.on(r=>{n("change",r)}),v.onMounted(()=>{Va.value=La().value.parentNode}),(r,o)=>{const u=ZE;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(ik,{"initial-value":r.initialValue},null,8,["initial-value"])]),_:1})}}}),[["styles",["[data-v-59b0d3b6],[data-v-59b0d3b6]:before,[data-v-59b0d3b6]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-59b0d3b6]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-59b0d3b6"]]),dk="smart-docx-editor";function pk(e,t){var n;VA&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}pk(dk,fk)})((N1=SmartCore["2.0.14"])==null?void 0:N1.Vue);
|
60
|
+
`:""),[u]=M.useState(o);return fa(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(sP,{ref:r},u)},sP=M.memo(M.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),Pd=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),re.createElement("span",aP({},o),!(st||t1)||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lP=st?300:0;function cP(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function w1(e){e.current&&(clearTimeout(e.current),e.current=null)}var fP=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(pP,C1({},g))}=e,i=ar(),s=M.useRef(null),l=M.useRef(null),[c,d]=M.useState(!1),p=M.useRef(null),y=M.useCallback(g=>{if(cP(s,g==null),g==null){var C;Ed.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(Ed.set(i,g),!s.current){var E=window.ResizeObserver||v3;s.current=new E(()=>{var B;(B=t.onPlaceholderResize)===null||B===void 0||B.call(t,g)})}s.current.observe(g),l.current=g}},[l,t,i]),m=re.createElement(iP,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[$o];if(M.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},lP)):(w1(p),d(!1)),()=>w1(p)),[f,d]),f&&c){var w={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Lr?"inherit":void 0},contentEditable:!1,ref:y}};m=re.createElement(re.Fragment,null,u(w),m)}var h={"data-slate-leaf":!0};return a({attributes:h,children:m,leaf:t,text:r})},dP=re.memo(fP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Z.equals(t.leaf,e.leaf)&&t.leaf[$o]===e.leaf[$o]),pP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",C1({},t),n)},vP=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=ar(),s=M.useRef(null),l=Z.decorations(a,t),c=k.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(re.createElement(dP,{isLast:n&&p===l.length-1,key:"".concat(c.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=M.useCallback(f=>{var w=Ns.get(i);f?(w==null||w.set(c,f),zr.set(a,f),la.set(f,a)):(w==null||w.delete(c),zr.delete(a),s.current&&la.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},E1=re.memo(vP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&uP(t.decorations,e.decorations));function B1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var hP=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(gP,kd({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=ar(),s=CP(),l=i.isInline(n),c=k.findKey(i,n),d=M.useCallback(g=>{var C=Ns.get(i);g?(C==null||C.set(c,g),zr.set(n,g),la.set(g,n)):(C==null||C.delete(c),zr.delete(n))},[i,c,n]),p=b1({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}),y={"data-slate-node":"element",ref:d};if(l&&(y["data-slate-inline"]=!0),!l&&D.hasInlines(i,n)){var m=q.string(n),f=wy(m);f==="rtl"&&(y.dir=f)}if(D.isVoid(i,n)){y["data-slate-void"]=!0,!s&&l&&(y.contentEditable=!1);var w=l?"span":"div",[[h]]=q.texts(n);p=re.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},re.createElement(E1,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),Cd.set(h,0),wd.set(h,n)}return r({attributes:y,children:p,element:n})},mP=re.memo(hP,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&oP(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),gP=e=>{var{attributes:t,children:n,element:r}=e,o=ar(),u=o.isInline(r)?"span":"div";return re.createElement(u,kd(kd({},t),{},{style:{position:"relative"}}),n)},A1=M.createContext(()=>[]),yP=()=>M.useContext(A1),DP=M.createContext(!1),b1=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=yP(),s=ar(),l=k.findPath(s,n),c=[],d=X.isElement(n)&&!s.isInline(n)&&D.hasInlines(s,n),p=0;p<n.children.length;p++){var y=l.concat(p),m=n.children[p],f=k.findKey(s,m),w=D.range(s,y),h=a&&_.intersection(w,a),g=i([m,y]);for(var C of t){var E=_.intersection(C,w);E&&g.push(E)}X.isElement(m)?c.push(re.createElement(DP.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(mP,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(E1,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),Cd.set(m,p),wd.set(m,n)}return c},x1=M.createContext(!1),CP=()=>M.useContext(x1),F1=M.createContext(null),wP=()=>{var e=M.useContext(F1);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function EP(){var e=ar(),t=M.useRef(!1),n=M.useRef(0),r=M.useCallback(()=>{if(!t.current){t.current=!0;var o=k.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return M.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var BP=3,AP={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},bP={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},xP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},xe=e=>{var t=AP[e],n=bP[e],r=xP[e],o=t&&md(t),u=n&&md(n),a=r&&md(r);return i=>!!(o&&o(i)||n1&&u&&u(i)||!n1&&a&&a(i))},_e={isBold:xe("bold"),isCompose:xe("compose"),isMoveBackward:xe("moveBackward"),isMoveForward:xe("moveForward"),isDeleteBackward:xe("deleteBackward"),isDeleteForward:xe("deleteForward"),isDeleteLineBackward:xe("deleteLineBackward"),isDeleteLineForward:xe("deleteLineForward"),isDeleteWordBackward:xe("deleteWordBackward"),isDeleteWordForward:xe("deleteWordForward"),isExtendBackward:xe("extendBackward"),isExtendForward:xe("extendForward"),isExtendLineBackward:xe("extendLineBackward"),isExtendLineForward:xe("extendLineForward"),isItalic:xe("italic"),isMoveLineBackward:xe("moveLineBackward"),isMoveLineForward:xe("moveLineForward"),isMoveWordBackward:xe("moveWordBackward"),isMoveWordForward:xe("moveWordForward"),isRedo:xe("redo"),isSoftBreak:xe("insertSoftBreak"),isSplitBlock:xe("splitBlock"),isTransposeCharacter:xe("transposeCharacter"),isUndo:xe("undo")},FP=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>Sd(e,s,a));n.push(...i)}};function u(){n.length>0&&(n.reverse().forEach(a=>{a.type!=="characterData"&&(a.removedNodes.forEach(i=>{a.target.insertBefore(i,a.nextSibling)}),a.addedNodes.forEach(i=>{a.target.removeChild(i)}))}),r())}return{registerMutations:o,restoreDOM:u,clear:r}},SP={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class S1 extends M.Component{constructor(){super(...arguments),Lt(this,"context",null),Lt(this,"manager",null),Lt(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,SP)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=FP(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var u;(u=this.manager)===null||u===void 0||u.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}Lt(S1,"contextType",gd);var OP=st?S1:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},_P=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],PP=["text"];function O1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kP=e=>re.createElement(re.Fragment,null,b1(e)),TP=e=>{var t=M.useCallback(F=>re.createElement(RP,fn({},F)),[]),{autoFocus:n,decorate:r=NP,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=jP,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=Io(e,_P),f=wP(),[w,h]=M.useState(!1),g=M.useRef(null),C=M.useRef([]),[E,B]=M.useState(),x=M.useRef(!1),{onUserInput:A,receivedUserInput:S}=EP(),[,N]=M.useReducer(F=>F+1,0);u1.set(f,N),Bd.set(f,a);var O=M.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);M.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var W=M.useRef(),P=M.useMemo(()=>U_(()=>{var F=k.toDOMNode(f,f),V=F.getRootNode();if(!x.current&&Lr&&V instanceof ShadowRoot){x.current=!0;var U=N3();U?document.execCommand("indent"):R.deselect(f),x.current=!1;return}var Y=W.current;if((st||!k.isComposing(f))&&(!O.isUpdatingSelection||Y!=null&&Y.isFlushing())&&!O.isDraggingInternally){var ie=k.findDocumentOrShadowRoot(f),{activeElement:ee}=ie,he=k.toDOMNode(f,f),pe=ie.getSelection();if(ee===he?(O.latestElement=ee,sr.set(f,!0)):sr.delete(f),!pe)return R.deselect(f);var{anchorNode:se,focusNode:ae}=pe,me=k.hasEditableTarget(f,se)||k.isTargetInsideNonReadonlyVoid(f,se),Pe=k.hasEditableTarget(f,ae)||k.isTargetInsideNonReadonlyVoid(f,ae);if(me&&Pe){var ve=k.toSlateRange(f,pe,{exactMatch:!1,suppressThrow:!0});ve&&(!k.isComposing(f)&&!(Y!=null&&Y.hasPendingChanges())&&!(Y!=null&&Y.isFlushing())?R.select(f,ve):Y==null||Y.handleUserSelect(ve))}a&&(!me||!Pe)&&R.deselect(f)}},100),[f,a,O]),L=M.useMemo(()=>M_(P,0),[P]);W.current=eP({node:g,onDOMSelectionChange:P,scheduleOnDOMSelectionChange:L}),fa(()=>{var F,V,U;g.current&&(U=xd(g.current))?(o1.set(f,U),Ts.set(f,g.current),zr.set(f,g.current),la.set(g.current,f)):zr.delete(f);var{selection:Y}=f,ie=k.findDocumentOrShadowRoot(f),ee=ie.getSelection();if(!(!ee||!k.isFocused(f)||(F=W.current)!==null&&F!==void 0&&F.hasPendingAction())){var he=me=>{var Pe=ee.type!=="None";if(!(!Y&&!Pe)){var ve=ee.focusNode,Qe;if(Mo&&ee.rangeCount>1){var yt=ee.getRangeAt(0),je=ee.getRangeAt(ee.rangeCount-1);yt.startContainer===ve?Qe=je.endContainer:Qe=yt.startContainer}else Qe=ee.anchorNode;var We=Ts.get(f),we=!1;if(We.contains(Qe)&&We.contains(ve)&&(we=!0),Pe&&we&&Y&&!me){var nt=k.toSlateRange(f,ee,{exactMatch:!0,suppressThrow:!0});if(nt&&_.equals(nt,Y)){var Te;if(!O.hasMarkPlaceholder||(Te=Qe)!==null&&Te!==void 0&&(Te=Te.parentElement)!==null&&Te!==void 0&&Te.hasAttribute("data-slate-mark-placeholder"))return}}if(Y&&!k.hasRange(f,Y)){f.selection=k.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!0});return}O.isUpdatingSelection=!0;var de=Y&&k.toDOMRange(f,Y);return de?(k.isComposing(f)&&!st?ee.collapseToEnd():_.isBackward(Y)?ee.setBaseAndExtent(de.endContainer,de.endOffset,de.startContainer,de.startOffset):ee.setBaseAndExtent(de.startContainer,de.startOffset,de.endContainer,de.endOffset),c(f,de)):ee.removeAllRanges(),de}};ee.rangeCount<=1&&he();var pe=((V=W.current)===null||V===void 0?void 0:V.isFlushing())==="action";if(!st||!pe){setTimeout(()=>{O.isUpdatingSelection=!1});return}var se=null,ae=requestAnimationFrame(()=>{if(pe){var me=Pe=>{try{var ve=k.toDOMNode(f,f);ve.focus(),he(Pe)}catch{}};me(),se=setTimeout(()=>{me(!0),O.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ae),se&&clearTimeout(se)}}});var j=M.useCallback(F=>{var V=k.toDOMNode(f,f),U=V.getRootNode();if(x!=null&&x.current&&Lr&&U instanceof ShadowRoot){var Y=F.getTargetRanges(),ie=Y[0],ee=new window.Range;ee.setStart(ie.startContainer,ie.startOffset),ee.setEnd(ie.endContainer,ie.endOffset);var he=k.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!1});R.select(f,he),F.preventDefault(),F.stopImmediatePropagation();return}if(A(),!a&&k.hasEditableTarget(f,F.target)&&!IP(F,o)){var pe;if(W.current)return W.current.handleDOMBeforeInput(F);L.flush(),P.flush();var{selection:se}=f,{inputType:ae}=F,me=F.dataTransfer||F.data||void 0,Pe=ae==="insertCompositionText"||ae==="deleteCompositionText";if(Pe&&k.isComposing(f))return;var ve=!1;if(ae==="insertText"&&se&&_.isCollapsed(se)&&F.data&&F.data.length===1&&/[a-z ]/i.test(F.data)&&se.anchor.offset!==0){var Qe,yt;ve=!0,f.marks&&(ve=!1);var{anchor:je}=se,[We,we]=k.toDOMPoint(f,je),nt=(Qe=We.parentElement)===null||Qe===void 0?void 0:Qe.closest("a"),Te=k.getWindow(f);if(ve&&nt&&k.hasDOMNode(f,nt)){var de,Dt=Te==null?void 0:Te.document.createTreeWalker(nt,NodeFilter.SHOW_TEXT).lastChild();Dt===We&&((de=Dt.textContent)===null||de===void 0?void 0:de.length)===we&&(ve=!1)}if(ve&&We.parentElement&&(Te==null||(yt=Te.getComputedStyle(We.parentElement))===null||yt===void 0?void 0:yt.whiteSpace)==="pre"){var dn=D.above(f,{at:je.path,match:Is=>X.isElement(Is)&&D.isBlock(f,Is)});dn&&q.string(dn[0]).includes(" ")&&(ve=!1)}}if(!ae.startsWith("delete")||ae.startsWith("deleteBy")){var[Ge]=F.getTargetRanges();if(Ge){var pn=k.toSlateRange(f,Ge,{exactMatch:!1,suppressThrow:!1});if(!se||!_.equals(se,pn)){ve=!1;var Wr=!Pe&&f.selection&&D.rangeRef(f,f.selection);R.select(f,pn),Wr&&ca.set(f,Wr)}}}if(Pe)return;if(ve||F.preventDefault(),se&&_.isExpanded(se)&&ae.startsWith("delete")){var _n=ae.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:_n});return}switch(ae){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{D.deleteFragment(f);break}case"deleteContent":case"deleteContentForward":{D.deleteForward(f);break}case"deleteContentBackward":{D.deleteBackward(f);break}case"deleteEntireSoftLine":{D.deleteBackward(f,{unit:"line"}),D.deleteForward(f,{unit:"line"});break}case"deleteHardLineBackward":{D.deleteBackward(f,{unit:"block"});break}case"deleteSoftLineBackward":{D.deleteBackward(f,{unit:"line"});break}case"deleteHardLineForward":{D.deleteForward(f,{unit:"block"});break}case"deleteSoftLineForward":{D.deleteForward(f,{unit:"line"});break}case"deleteWordBackward":{D.deleteBackward(f,{unit:"word"});break}case"deleteWordForward":{D.deleteForward(f,{unit:"word"});break}case"insertLineBreak":D.insertSoftBreak(f);break;case"insertParagraph":{D.insertBreak(f);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{ae==="insertFromComposition"&&k.isComposing(f)&&(h(!1),Vr.set(f,!1)),(me==null?void 0:me.constructor.name)==="DataTransfer"?k.insertData(f,me):typeof me=="string"&&(ve?C.current.push(()=>D.insertText(f,me)):D.insertText(f,me));break}}var da=(pe=ca.get(f))===null||pe===void 0?void 0:pe.unref();ca.delete(f),da&&(!f.selection||!_.equals(f.selection,da))&&R.select(f,da)}},[f,P,A,o,a,L]),z=M.useCallback(F=>{F==null?(P.cancel(),L.cancel(),Ts.delete(f),zr.delete(f),g.current&&ir&&g.current.removeEventListener("beforeinput",j)):ir&&F.addEventListener("beforeinput",j),g.current=F},[P,L,f,j]);fa(()=>{var F=k.getWindow(f);F.document.addEventListener("selectionchange",L);var V=()=>{O.isDraggingInternally=!1};return F.document.addEventListener("dragend",V),F.document.addEventListener("drop",V),()=>{F.document.removeEventListener("selectionchange",L),F.document.removeEventListener("dragend",V),F.document.removeEventListener("drop",V)}},[L,O]);var G=r([f,[]]),T=u&&f.children.length===1&&Array.from(q.texts(f)).length===1&&q.string(f)===""&&!w,I=M.useCallback(F=>{if(F&&T){var V;B((V=F.getBoundingClientRect())===null||V===void 0?void 0:V.height)}else B(void 0)},[T]);if(T){var K=D.start(f,[]);G.push({[$o]:!0,placeholder:u,onPlaceholderResize:I,anchor:K,focus:K})}var{marks:Q}=f;if(O.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&Q){var{anchor:ne}=f.selection,te=q.leaf(f,ne.path),ye=Io(te,PP);if(!Z.equals(te,Q,{loose:!0})){O.hasMarkPlaceholder=!0;var fe=Object.fromEntries(Object.keys(ye).map(F=>[F,null]));G.push(fn(fn(fn({[a1]:!0},fe),Q),{},{anchor:ne,focus:ne}))}}return M.useEffect(()=>{setTimeout(()=>{var{selection:F}=f;if(F){var{anchor:V}=F,U=q.leaf(f,V.path);if(Q&&!Z.equals(U,Q,{loose:!0})){Zt.set(f,Q);return}}Zt.delete(f)})}),re.createElement(x1.Provider,{value:a},re.createElement(A1.Provider,{value:r},re.createElement(OP,{node:g,receivedUserInput:S},re.createElement(p,fn(fn({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:ir||!ks?m.spellCheck:!1,autoCorrect:ir||!ks?m.autoCorrect:"false",autoCapitalize:ir||!ks?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:z,style:fn(fn({},y?{}:fn({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:M.useCallback(F=>{if(!ir&&!a&&!lt(F,m.onBeforeInput)&&k.hasSelectableTarget(f,F.target)&&(F.preventDefault(),!k.isComposing(f))){var V=F.data;D.insertText(f,V)}},[m.onBeforeInput,f,a]),onInput:M.useCallback(F=>{if(!lt(F,m.onInput)){if(W.current){W.current.handleInput();return}for(var V of C.current)V();C.current=[]}},[m.onInput]),onBlur:M.useCallback(F=>{if(!(a||O.isUpdatingSelection||!k.hasSelectableTarget(f,F.target)||lt(F,m.onBlur))){var V=k.findDocumentOrShadowRoot(f);if(O.latestElement!==V.activeElement){var{relatedTarget:U}=F,Y=k.toDOMNode(f,f);if(U!==Y&&!(zt(U)&&U.hasAttribute("data-slate-spacer"))){if(U!=null&&fr(U)&&k.hasDOMNode(f,U)){var ie=k.toSlateNode(f,U);if(X.isElement(ie)&&!f.isVoid(ie))return}if(Lr){var ee=V.getSelection();ee==null||ee.removeAllRanges()}sr.delete(f)}}}},[a,O.isUpdatingSelection,O.latestElement,f,m.onBlur]),onClick:M.useCallback(F=>{if(k.hasTarget(f,F.target)&&!lt(F,m.onClick)&&fr(F.target)){var V=k.toSlateNode(f,F.target),U=k.findPath(f,V);if(!D.hasPath(f,U)||q.get(f,U)!==V)return;if(F.detail===BP&&U.length>=1){var Y=U;if(!(X.isElement(V)&&D.isBlock(f,V))){var ie,ee=D.above(f,{match:ve=>X.isElement(ve)&&D.isBlock(f,ve),at:U});Y=(ie=ee==null?void 0:ee[1])!==null&&ie!==void 0?ie:U.slice(0,1)}var he=D.range(f,Y);R.select(f,he);return}if(a)return;var pe=D.start(f,U),se=D.end(f,U),ae=D.void(f,{at:pe}),me=D.void(f,{at:se});if(ae&&me&&b.equals(ae[1],me[1])){var Pe=D.range(f,pe);R.select(f,Pe)}}},[f,m.onClick,a]),onCompositionEnd:M.useCallback(F=>{if(k.hasSelectableTarget(f,F.target)){var V;if(k.isComposing(f)&&Promise.resolve().then(()=>{h(!1),Vr.set(f,!1)}),(V=W.current)===null||V===void 0||V.handleCompositionEnd(F),lt(F,m.onCompositionEnd)||st)return;if(!Lr&&!A3&&!t1&&!x3&&!b3&&F.data){var U=Zt.get(f);Zt.delete(f),U!==void 0&&(On.set(f,f.marks),f.marks=U),D.insertText(f,F.data);var Y=On.get(f);On.delete(f),Y!==void 0&&(f.marks=Y)}}},[m.onCompositionEnd,f]),onCompositionUpdate:M.useCallback(F=>{k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCompositionUpdate)&&(k.isComposing(f)||(h(!0),Vr.set(f,!0)))},[m.onCompositionUpdate,f]),onCompositionStart:M.useCallback(F=>{if(k.hasSelectableTarget(f,F.target)){var V;if((V=W.current)===null||V===void 0||V.handleCompositionStart(F),lt(F,m.onCompositionStart)||st)return;h(!0);var{selection:U}=f;if(U&&_.isExpanded(U)){D.deleteFragment(f);return}}},[m.onCompositionStart,f]),onCopy:M.useCallback(F=>{k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCopy)&&!_1(F)&&(F.preventDefault(),k.setFragmentData(f,F.clipboardData,"copy"))},[m.onCopy,f]),onCut:M.useCallback(F=>{if(!a&&k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCut)&&!_1(F)){F.preventDefault(),k.setFragmentData(f,F.clipboardData,"cut");var{selection:V}=f;if(V)if(_.isExpanded(V))D.deleteFragment(f);else{var U=q.parent(f,V.anchor.path);D.isVoid(f,U)&&R.delete(f)}}},[a,f,m.onCut]),onDragOver:M.useCallback(F=>{if(k.hasTarget(f,F.target)&&!lt(F,m.onDragOver)){var V=k.toSlateNode(f,F.target);X.isElement(V)&&D.isVoid(f,V)&&F.preventDefault()}},[m.onDragOver,f]),onDragStart:M.useCallback(F=>{if(!a&&k.hasTarget(f,F.target)&&!lt(F,m.onDragStart)){var V=k.toSlateNode(f,F.target),U=k.findPath(f,V),Y=X.isElement(V)&&D.isVoid(f,V)||D.void(f,{at:U,voids:!0});if(Y){var ie=D.range(f,U);R.select(f,ie)}O.isDraggingInternally=!0,k.setFragmentData(f,F.dataTransfer,"drag")}},[a,f,m.onDragStart,O]),onDrop:M.useCallback(F=>{if(!a&&k.hasTarget(f,F.target)&&!lt(F,m.onDrop)){F.preventDefault();var V=f.selection,U=k.findEventRange(f,F),Y=F.dataTransfer;R.select(f,U),O.isDraggingInternally&&V&&!_.equals(V,U)&&!D.void(f,{at:U,voids:!0})&&R.delete(f,{at:V}),k.insertData(f,Y),k.isFocused(f)||k.focus(f)}},[a,f,m.onDrop,O]),onDragEnd:M.useCallback(F=>{!a&&O.isDraggingInternally&&m.onDragEnd&&k.hasTarget(f,F.target)&&m.onDragEnd(F)},[a,O,m,f]),onFocus:M.useCallback(F=>{if(!a&&!O.isUpdatingSelection&&k.hasEditableTarget(f,F.target)&&!lt(F,m.onFocus)){var V=k.toDOMNode(f,f),U=k.findDocumentOrShadowRoot(f);if(O.latestElement=U.activeElement,Mo&&F.target!==V){V.focus();return}sr.set(f,!0)}},[a,O,f,m.onFocus]),onKeyDown:M.useCallback(F=>{if(!a&&k.hasEditableTarget(f,F.target)){var V;(V=W.current)===null||V===void 0||V.handleKeyDown(F);var{nativeEvent:U}=F;if(k.isComposing(f)&&U.isComposing===!1&&(Vr.set(f,!1),h(!1)),lt(F,m.onKeyDown)||k.isComposing(f))return;var{selection:Y}=f,ie=f.children[Y!==null?Y.focus.path[0]:0],ee=wy(q.string(ie))==="rtl";if(_e.isRedo(U)){F.preventDefault();var he=f;typeof he.redo=="function"&&he.redo();return}if(_e.isUndo(U)){F.preventDefault();var pe=f;typeof pe.undo=="function"&&pe.undo();return}if(_e.isMoveLineBackward(U)){F.preventDefault(),R.move(f,{unit:"line",reverse:!0});return}if(_e.isMoveLineForward(U)){F.preventDefault(),R.move(f,{unit:"line"});return}if(_e.isExtendLineBackward(U)){F.preventDefault(),R.move(f,{unit:"line",edge:"focus",reverse:!0});return}if(_e.isExtendLineForward(U)){F.preventDefault(),R.move(f,{unit:"line",edge:"focus"});return}if(_e.isMoveBackward(U)){F.preventDefault(),Y&&_.isCollapsed(Y)?R.move(f,{reverse:!ee}):R.collapse(f,{edge:ee?"end":"start"});return}if(_e.isMoveForward(U)){F.preventDefault(),Y&&_.isCollapsed(Y)?R.move(f,{reverse:ee}):R.collapse(f,{edge:ee?"start":"end"});return}if(_e.isMoveWordBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)&&R.collapse(f,{edge:"focus"}),R.move(f,{unit:"word",reverse:!ee});return}if(_e.isMoveWordForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)&&R.collapse(f,{edge:"focus"}),R.move(f,{unit:"word",reverse:ee});return}if(ir){if((r1||Lr)&&Y&&(_e.isDeleteBackward(U)||_e.isDeleteForward(U))&&_.isCollapsed(Y)){var se=q.parent(f,Y.anchor.path);if(X.isElement(se)&&D.isVoid(f,se)&&(D.isInline(f,se)||D.isBlock(f,se))){F.preventDefault(),D.deleteBackward(f,{unit:"block"});return}}}else{if(_e.isBold(U)||_e.isItalic(U)||_e.isTransposeCharacter(U)){F.preventDefault();return}if(_e.isSoftBreak(U)){F.preventDefault(),D.insertSoftBreak(f);return}if(_e.isSplitBlock(U)){F.preventDefault(),D.insertBreak(f);return}if(_e.isDeleteBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f);return}if(_e.isDeleteForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f);return}if(_e.isDeleteLineBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"line"});return}if(_e.isDeleteLineForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"line"});return}if(_e.isDeleteWordBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"word"});return}if(_e.isDeleteWordForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"word"});return}}}},[a,f,m.onKeyDown]),onPaste:M.useCallback(F=>{!a&&k.hasEditableTarget(f,F.target)&&!lt(F,m.onPaste)&&(!ir||O3(F.nativeEvent)||Lr)&&(F.preventDefault(),k.insertData(f,F.clipboardData))},[a,f,m.onPaste])}),re.createElement(kP,{decorations:G,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},RP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",fn({},t),n,st&&re.createElement("br",null))},NP=()=>[],jP=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),q_(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},lt=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},_1=e=>fr(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),IP=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},MP=M.createContext(!1),$P=M.createContext({});function LP(e){var t=M.useRef([]).current,n=M.useRef({editor:e}).current,r=M.useCallback(u=>{n.editor=u,t.forEach(a=>a(u))},[t,n]),o=M.useMemo(()=>({getSlate:()=>n.editor,addEventListener:u=>(t.push(u),()=>{t.splice(t.indexOf(u),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var zP=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],VP=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=Io(e,zP),[s,l]=re.useState(()=>{if(!q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Le.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Le.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:c,onChange:d}=LP(t),p=M.useCallback(f=>{var w;switch(r&&r(t.children),f==null||(w=f.operation)===null||w===void 0?void 0:w.type){case"set_selection":o==null||o(t.selection);break;default:u==null||u(t.children)}l(h=>({v:h.v+1,editor:t})),d(t)},[t,d,r,o,u]);M.useEffect(()=>(Ad.set(t,p),()=>{Ad.set(t,()=>{})}),[t,p]);var[y,m]=M.useState(k.isFocused(t));return M.useEffect(()=>{m(k.isFocused(t))},[t]),fa(()=>{var f=()=>m(k.isFocused(t));return e1>=17?(document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",f)}):(document.addEventListener("focus",f,!0),document.addEventListener("blur",f,!0),()=>{document.removeEventListener("focus",f,!0),document.removeEventListener("blur",f,!0)})},[]),re.createElement($P.Provider,{value:c},re.createElement(F1.Provider,{value:s},re.createElement(gd.Provider,{value:s.editor},re.createElement(MP.Provider,{value:y},n))))},P1=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},k1=(e,t,n)=>{var r=k.toDOMRange(e,t).getBoundingClientRect(),o=k.toDOMRange(e,n).getBoundingClientRect();return P1(r,o)&&P1(o,r)},WP=(e,t)=>{var n=D.range(e,_.end(t)),r=Array.from(D.positions(e,{at:t})),o=0,u=r.length,a=Math.floor(u/2);if(k1(e,D.range(e,r[o]),n))return D.range(e,r[o],n);if(r.length<2)return D.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)k1(e,D.range(e,r[a]),n)?u=a:o=a,a=Math.floor((o+u)/2);return D.range(e,r[u],n)};function T1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UP=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:u,deleteBackward:a,addMark:i,removeMark:s}=r;return Ns.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=bd.get(r))===null||d===void 0||d(),!Zt.get(r)&&(p=gt.get(r))!==null&&p!==void 0&&p.length&&Zt.set(r,null),On.delete(r),i(l,c)},r.removeMark=l=>{var c;!Zt.get(r)&&(c=gt.get(r))!==null&&c!==void 0&&c.length&&Zt.set(r,null),On.delete(r),s(l)},r.deleteBackward=l=>{if(l!=="line")return a(l);if(r.selection&&_.isCollapsed(r.selection)){var c=D.above(r,{match:m=>X.isElement(m)&&D.isBlock(r,m),at:r.selection});if(c){var[,d]=c,p=D.range(r,d,r.selection.anchor),y=WP(r,p);_.isCollapsed(y)||R.delete(r,{at:y})}}},r.apply=l=>{var c=[],d=[],p=gt.get(r);if(p!=null&&p.length){var y=p.map(j=>W3(j,l)).filter(Boolean);gt.set(r,y)}var m=cr.get(r);m&&cr.set(r,p1(r,m,l));var f=lr.get(r);if(f!=null&&f.at){var w=ue.isPoint(f==null?void 0:f.at)?_d(r,f.at,l):p1(r,f.at,l);lr.set(r,w?R1(R1({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...Lo(r,l.path));break}case"set_selection":{var h;(h=ca.get(r))===null||h===void 0||h.unref(),ca.delete(r);break}case"insert_node":case"remove_node":{c.push(...Lo(r,b.parent(l.path)));break}case"merge_node":{var g=b.previous(l.path);c.push(...Lo(r,g));break}case"move_node":{var C=b.common(b.parent(l.path),b.parent(l.newPath));c.push(...Lo(r,C));var E;b.isBefore(l.path,l.newPath)?(c.push(...Lo(r,b.parent(l.path))),E=l.newPath):(c.push(...Lo(r,b.parent(l.newPath))),E=l.path);var B=q.get(t,b.parent(E)),x=k.findKey(r,B),A=D.pathRef(r,b.parent(E));d.push([A,x]);break}}o(l);for(var[S,N]of c){var[O]=D.node(r,S);Rs.set(O,N)}for(var[W,P]of d)if(W.current){var[L]=D.node(r,W.current);Rs.set(L,P)}},r.setFragmentData=l=>{var{selection:c}=r;if(c){var[d,p]=_.edges(c),y=D.void(r,{at:d.path}),m=D.void(r,{at:p.path});if(!(_.isCollapsed(c)&&!y)){var f=k.toDOMRange(r,c),w=f.cloneContents(),h=w.childNodes[0];if(w.childNodes.forEach(O=>{O.textContent&&O.textContent.trim()!==""&&(h=O)}),m){var[g]=m,C=f.cloneRange(),E=k.toDOMNode(r,g);C.setEndAfter(E),w=C.cloneContents()}if(y&&(h=w.querySelector("[data-slate-spacer]")),Array.from(w.querySelectorAll("[data-slate-zero-width]")).forEach(O=>{var W=O.getAttribute("data-slate-zero-width")==="n";O.textContent=W?`
|
61
|
+
`:""}),i1(h)){var B=h.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(h),w.appendChild(B),h=B}var x=r.getFragment(),A=JSON.stringify(x),S=window.btoa(encodeURIComponent(A));h.setAttribute("data-slate-fragment",S),l.setData("application/".concat(n),S);var N=w.ownerDocument.createElement("div");return N.appendChild(w),N.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(N),l.setData("text/html",N.innerHTML),l.setData("text/plain",l1(N)),w.ownerDocument.body.removeChild(N),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||R3(l);if(c){var d=decodeURIComponent(window.atob(c)),p=JSON.parse(d);return r.insertFragment(p),!0}return!1},r.insertTextData=l=>{var c=l.getData("text/plain");if(c){var d=c.split(/\r\n|\r|\n/),p=!1;for(var y of d)p&&R.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var c=e1<18?Ro.unstable_batchedUpdates:d=>d();c(()=>{var d=Ad.get(r);d&&d(l),u(l)})},r},Lo=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=k.findKey(e,r);n.push([o,u])}return n},HP={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Mn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Mn.isOperationList(e.undos[0].operations))}},Td=new WeakMap,Rd=new WeakMap,zo={isHistoryEditor(e){return HP.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return Rd.get(e)},isSaving(e){return Td.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=zo.isMerging(e);Rd.set(e,!1),t(),Rd.set(e,n)},withoutSaving(e,t){var n=zo.isSaving(e);Td.set(e,!1),t(),Td.set(e,n)}},KP=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:o}=r;if(o.length>0){var u=o[o.length-1];u.selectionBefore&&R.setSelection(t,u.selectionBefore),zo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{for(var a of u.operations)t.apply(a)})}),r.redos.pop(),t.writeHistory("undos",u)}},t.undo=()=>{var{history:r}=t,{undos:o}=r;if(o.length>0){var u=o[o.length-1];zo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Mn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&R.setSelection(t,u.selectionBefore)})}),t.writeHistory("redos",u),r.undos.pop()}},t.apply=r=>{var{operations:o,history:u}=t,{undos:a}=u,i=a[a.length-1],s=i&&i.operations[i.operations.length-1],l=zo.isSaving(t),c=zo.isMerging(t);if(l==null&&(l=YP(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=qP(r,s)),i&&c)i.operations.push(r);else{var d={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",d)}for(;a.length>100;)a.shift();u.redos=[]}n(r)},t.writeHistory=(r,o)=>{t.history[r].push(o)},t},qP=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&b.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&b.equals(e.path,t.path)),YP=(e,t)=>e.type!=="set_selection";function QP(e){const n=`docx-h${e.element.level}`;return Ne.jsx(n,{...e.attributes,children:e.children})}function GP(e){return Ne.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:XP,Consumer:ZP}=M.createContext(!1);function JP(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Ne.jsx(XP,{value:!!t.ordered,children:Ne.jsx(n,{...e.attributes,children:e.children})})}function ek(e){return Ne.jsx(ZP,{children:t=>Ne.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const tk={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},nk=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/~~(.+?)~~$/,"del"],[/~(.+?)~$/,"underline"]];function rk(e){return e.element.type==="heading"?Ne.jsx(QP,{...e}):e.element.type==="blockquote"?Ne.jsx(GP,{...e}):e.element.type==="list"?Ne.jsx(JP,{...e}):e.element.type==="list-item"?Ne.jsx(ek,{...e}):Ne.jsx("p",{...e.attributes,children:e.children})}function ok({attributes:e,children:t,leaf:n}){return n.bold&&(t=Ne.jsx("strong",{children:t})),n.code&&(t=Ne.jsx("code",{children:t})),n.italic&&(t=Ne.jsx("em",{children:t})),n.del&&(t=Ne.jsx("del",{children:t})),n.underline&&(t=Ne.jsx("u",{children:t})),Ne.jsx("span",{...e,children:t})}function uk(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=M.useMemo(()=>r(UP(KP(Ex()))),[]),u=M.useCallback(c=>Ne.jsx(rk,{...c}),[]),a=M.useCallback(c=>Ne.jsx(ok,{...c}),[]),i=M.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=M.useCallback(c=>$A.trigger(c),[o]),l=M.useCallback(c=>Ov.trigger(c),[o]);return Va.value=o,Ne.jsx(VP,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Ne.jsx(TP,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const ak=du(v.defineComponent({__name:"Markdown",props:{initialValue:{type:Array}},setup(e){const t=e,n=xO(uk);function r(u){return{match:a=>X.isElement(a)&&D.isBlock(u,a)}}const o=u=>{const{insertText:a,deleteBackward:i,insertBreak:s}=u;return u.insertBreak=()=>{const{selection:l}=u;if(l&&_.isCollapsed(l)){const[c,d]=D.above(u,r(u))||[];if(c&&X.isElement(c)&&ue.equals(l.anchor,D.end(u,d))){if(c.type==="list-item")return R.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(c.type!=="paragraph")return R.insertNodes(u,{type:"paragraph",children:[{text:""}]},r(u))}}s()},u.insertText=l=>{const{selection:c}=u;if(l.endsWith(" ")&&c&&_.isCollapsed(c)){const d=D.above(u,r(u)),p=d?d[1]:[],y=D.start(u,p),m={anchor:c.anchor,focus:y},f=D.string(u,m)+l.slice(0,-1),w=tk[f];if(w){R.select(u,m),_.isCollapsed(m)||R.delete(u);const h={type:w};w==="heading"?h.level=`${f.length}`:w==="blockquote"&&(h.type="paragraph"),R.setNodes(u,h,r(u)),w==="blockquote"?R.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&R.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of nk){const[C,E]=f.match(h)||[];if(C){const B=D.before(u,c,{unit:"character",distance:C.length}),x=D.range(u,B,c);return R.insertText(u,E,{at:x}),R.setNodes(u,{[g]:!0},{at:x,match:A=>Z.isText(A),split:!0}),R.insertNodes(u,{text:" "})}}}a(l)},u.deleteBackward=(...l)=>{const{selection:c}=u;if(c&&_.isCollapsed(c)){const[d,p]=D.above(u,r(u))||[];if(d&&ue.equals(c.anchor,D.start(u,p))){const[y,m]=D.parent(u,p);if(y)if(X.isElement(y)){const f=y.children[0]===d,w=y.children.at(-1)===d;let h=!1;if(f&&w?(h=!0,R.unwrapNodes(u,{at:m})):f?(h=!0,R.moveNodes(u,{to:m})):w&&(h=!0,R.moveNodes(u,{to:b.next(m)})),h){R.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&R.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=Pv();Xe(za(),"dragstart",a=>{u.value&&a.preventDefault()})}return(u,a)=>(v.openBlock(),v.createBlock(v.unref(n),v.mergeProps(t,{"with-override":o}),null,16))}}),[["styles",["[data-v-14d7ea7c],[data-v-14d7ea7c]:before,[data-v-14d7ea7c]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-14d7ea7c]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.list-item[data-v-14d7ea7c]{display:list-item}"]],["__scopeId","data-v-14d7ea7c"]]),ik=du(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createCommentVNode(" Markdown "),v.createVNode(ak,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(Fx)],64))}}),[["styles",[`@charset "UTF-8";[data-use-vue-component-wrap],[__use_react_component_wrap]{display:contents}.smart-docx-editor{font-size:1rem;line-height:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%}.smart-docx-editor>:first-child{margin-top:0!important}docx-h1,docx-h2,docx-h3,docx-h4,docx-h5,docx-h6{display:block;font-weight:700}docx-h1{margin-top:26px;margin-bottom:10px;font-size:26px}docx-h2{margin-top:22px;margin-bottom:8px;font-size:22px}docx-h3{margin-top:20px;margin-bottom:8px;font-size:20px}docx-h4{margin-top:18px;margin-bottom:8px;font-size:18px}docx-h5{margin-top:18px;margin-bottom:8px;font-size:16px}docx-h6{margin-top:16px;margin-bottom:8px;font-size:16px}docx-blockquote{display:block;--un-text-opacity:1;color:rgb(82 82 82 / var(--un-text-opacity));border-left-width:2px;--un-border-opacity:1;--un-border-left-opacity:var(--un-border-opacity);border-left-color:rgb(163 163 163 / var(--un-border-left-opacity));border-left-style:solid;margin-top:.5rem;margin-bottom:.5rem;padding-left:.75rem}:host-context(.dark) docx-blockquote{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}docx-ul,docx-ol,docx-li{display:block}docx-li{list-style-type:none}docx-li:not(.ordered){position:relative;padding-left:1.5rem;line-height:1.5rem}docx-li:not(.ordered):before{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 14a2 2 0 1 1 0-4a2 2 0 0 1 0 4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;pointer-events:none;position:absolute;top:0;left:0;display:flex;--un-translate-x:-25%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));align-items:center;justify-content:left;content:"";width:1.5rem;height:1.5rem}`,"[data-v-1360e702],[data-v-1360e702]:before,[data-v-1360e702]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-1360e702]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-1360e702"]]),sk=du(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(ik,v.normalizeProps(v.guardReactiveProps(t)),null,16))}}),[["styles",["[data-v-9cb0b441],[data-v-9cb0b441]:before,[data-v-9cb0b441]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9cb0b441]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-9cb0b441"]]),lk="2.0.15";function ck(e=VA()){const t=za(),n=`style[cssr-id^="${e}-"]`;return v.onMounted(()=>{function r(){const o=t.value.parentNode;o.querySelectorAll(n).forEach(u=>{o.removeChild(u)}),Array.from(document.querySelectorAll(n)).forEach(u=>{o.appendChild(u.cloneNode()).textContent=u.textContent})}Sv(document.head,r,{childList:!0}),r()}),e}function fk(){const e=za();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[lk])??{};if(n&&(t.appendChild(document.createElement("style")).textContent=n),r){const u=document.createElement("style");u.setAttribute("namespace","smart"),t.appendChild(u).textContent=r,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(u.cloneNode()).textContent=r)}}),{classPrefix:ck()}}const dk=du(v.defineComponent({__name:"App",props:{initialValue:{type:Array}},emits:["change"],setup(e,{emit:t}){const n=t;return fk(),Ov.on(r=>{n("change",r)}),v.onMounted(()=>{Wa.value=za().value.parentNode}),(r,o)=>{const u=JE;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(sk,{"initial-value":r.initialValue},null,8,["initial-value"])]),_:1})}}}),[["styles",["[data-v-59b0d3b6],[data-v-59b0d3b6]:before,[data-v-59b0d3b6]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-59b0d3b6]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-59b0d3b6"]]),pk="smart-docx-editor";function vk(e,t){var n;WA&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}vk(pk,dk)})((N1=SmartCore["2.0.15"])==null?void 0:N1.Vue);
|