@smartos-lib/components 1.8.4 → 1.9.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,13 @@
1
- var Hy;(function(v){"use strict";const cn=(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 sd;const fn=typeof window<"u",Ky=e=>typeof e=="string",ld=()=>{},qy=fn&&((sd=window==null?void 0:window.navigator)==null?void 0:sd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cd(e){return typeof e=="function"?e():v.unref(e)}function Qy(e){return e}function fd(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function sr(e){var t;const n=cd(e);return(t=n==null?void 0:n.$el)!=null?t:n}const dd=fn?window:void 0;function Es(...e){let t,n,r,o;if(Ky(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=dd):[t,n,r,o]=e,!t)return ld;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(f=>f()),u.length=0},i=(f,d,p,y)=>(f.addEventListener(d,p,y),()=>f.removeEventListener(d,p,y)),s=v.watch(()=>[sr(t),cd(o)],([f,d])=>{a(),f&&u.push(...n.flatMap(p=>r.map(y=>i(f,p,y,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return fd(l),l}let pd=!1;function Yy(e,t,n={}){const{window:r=dd,ignore:o=[],capture:u=!0,detectIframe:a=!1}=n;if(!r)return;qy&&!pd&&(pd=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",ld)));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=sr(y);return m&&(p.target===m||p.composedPath().includes(m))}}),f=[Es(r,"click",p=>{const y=sr(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}),Es(r,"pointerdown",p=>{const y=sr(e);y&&(i=!p.composedPath().includes(y)&&!s(p))},{passive:!0}),a&&Es(r,"blur",p=>{var y;const m=sr(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}const vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hd="__vueuse_ssr_handlers__";vd[hd]=vd[hd]||{};var md;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(md||(md={}));var Gy=Object.defineProperty,gd=Object.getOwnPropertySymbols,Xy=Object.prototype.hasOwnProperty,Zy=Object.prototype.propertyIsEnumerable,yd=(e,t,n)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jy=(e,t)=>{for(var n in t||(t={}))Xy.call(t,n)&&yd(e,n,t[n]);if(gd)for(var n of gd(t))Zy.call(t,n)&&yd(e,n,t[n]);return e};Jy({linear:Qy},{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.15
1
+ var Ky;(function(v){"use strict";const cn=(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 ld;const fn=typeof window<"u",qy=e=>typeof e=="string",cd=()=>{},Qy=fn&&((ld=window==null?void 0:window.navigator)==null?void 0:ld.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fd(e){return typeof e=="function"?e():v.unref(e)}function Yy(e){return e}function dd(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function sr(e){var t;const n=fd(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pd=fn?window:void 0;function Bs(...e){let t,n,r,o;if(qy(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=pd):[t,n,r,o]=e,!t)return cd;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(()=>[sr(t),fd(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 dd(l),l}let vd=!1;function Gy(e,t,n={}){const{window:r=pd,ignore:o=[],capture:u=!0,detectIframe:a=!1}=n;if(!r)return;Qy&&!vd&&(vd=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",cd)));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=sr(y);return m&&(p.target===m||p.composedPath().includes(m))}}),c=[Bs(r,"click",p=>{const y=sr(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}),Bs(r,"pointerdown",p=>{const y=sr(e);y&&(i=!p.composedPath().includes(y)&&!s(p))},{passive:!0}),a&&Bs(r,"blur",p=>{var y;const m=sr(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 hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},md="__vueuse_ssr_handlers__";hd[md]=hd[md]||{};var gd;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(gd||(gd={}));var Xy=Object.defineProperty,yd=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,Jy=Object.prototype.propertyIsEnumerable,Dd=(e,t,n)=>t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e1=(e,t)=>{for(var n in t||(t={}))Zy.call(t,n)&&Dd(e,n,t[n]);if(yd)for(var n of yd(t))Jy.call(t,n)&&Dd(e,n,t[n]);return e};e1({linear:Yy},{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.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/const Bs=()=>{},e1=Object.prototype.hasOwnProperty,Dd=(e,t)=>e1.call(e,t),t1=Array.isArray,ea=e=>typeof e=="function",n1=e=>typeof e=="string",As=e=>e!==null&&typeof e=="object";function bs(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 Fs(e){return e==null}function r1(e){return e===void 0}const Cd=e=>typeof e=="boolean",ta=e=>typeof e=="number",na=e=>typeof Element>"u"?!1:e instanceof Element,wd=e=>Object.keys(e),Ed="__epPropKey",me=e=>e,o1=e=>As(e)&&!!e[Ed],ra=(e,t)=>{if(!As(e)||o1(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 f=!1,d=[];if(n&&(d=Array.from(n),Dd(e,"default")&&d.push(o),f||(f=d.includes(l))),a&&(f||(f=a(l))),!f&&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 f}:void 0,[Ed]:!0};return Dd(e,"default")&&(s.default=o),s},Zt=e=>bs(Object.entries(e).map(([t,n])=>[t,ra(n,t)])),xs=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},oa={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"},u1=["","default","small","large"],a1=Symbol("localeContextKey"),Os="el",i1="is-",lr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},Bd=Symbol("namespaceContextKey"),Ss=e=>{const t=e||(v.getCurrentInstance()?v.inject(Bd,v.ref(Os)):v.ref(Os));return v.computed(()=>v.unref(t)||Os)},No=(e,t)=>{const n=Ss(t);return{namespace:n,b:(c="")=>lr(n.value,e,c,"",""),e:c=>c?lr(n.value,e,"",c,""):"",m:c=>c?lr(n.value,e,"","",c):"",be:(c,w)=>c&&w?lr(n.value,e,c,w,""):"",em:(c,w)=>c&&w?lr(n.value,e,"",c,w):"",bm:(c,w)=>c&&w?lr(n.value,e,c,"",w):"",bem:(c,w,h)=>c&&w&&h?lr(n.value,e,c,w,h):"",is:(c,...w)=>{const h=w.length>=1?w[0]:!0;return c&&h?`${i1}${c}`:""},cssVar:c=>{const w={};for(const h in c)c[h]&&(w[`--${n.value}-${h}`]=c[h]);return w},cssVarName:c=>`--${n.value}-${c}`,cssVarBlock:c=>{const w={};for(const h in c)c[h]&&(w[`--${n.value}-${e}-${h}`]=c[h]);return w},cssVarBlockName:c=>`--${n.value}-${e}-${c}`}},s1=ra({type:me(Boolean),default:null}),l1=ra({type:me(Function)}),Ad=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:s1,[n]:l1};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:f,onHide:d})=>{const p=v.getCurrentInstance(),{emit:y}=p,m=p.props,c=v.computed(()=>ea(m[n])),w=v.computed(()=>m[e]===null),h=B=>{a.value!==!0&&(a.value=!0,i&&(i.value=B),ea(f)&&f(B))},g=B=>{a.value!==!1&&(a.value=!1,i&&(i.value=B),ea(d)&&d(B))},C=B=>{if(m.disabled===!0||ea(l)&&!l())return;const O=c.value&&fn;O&&y(t,!0),(w.value||!O)&&h(B)},E=B=>{if(m.disabled===!0||!fn)return;const O=c.value&&fn;O&&y(t,!1),(w.value||!O)&&g(B)},A=B=>{Cd(B)&&(m.disabled&&B?c.value&&y(t,!1):a.value!==B&&(B?h():g()))},x=()=>{a.value?E():C()};return v.watch(()=>m[e],A),s&&p.appContext.config.globalProperties.$route!==void 0&&v.watch(()=>({...p.proxy.$route}),()=>{s.value&&a.value&&E()}),v.onMounted(()=>{A(m[e])}),{hide:E,show:C,toggle:x,hasUpdateHandler:c}},useModelToggleProps:o,useModelToggleEmits:r}};Ad("modelValue");var st="top",Ot="bottom",St="right",lt="left",_s="auto",jo=[st,Ot,St,lt],Mr="start",Io="end",c1="clippingParents",bd="viewport",Mo="popper",f1="reference",Fd=jo.reduce(function(e,t){return e.concat([t+"-"+Mr,t+"-"+Io])},[]),ks=[].concat(jo,[_s]).reduce(function(e,t){return e.concat([t,t+"-"+Mr,t+"-"+Io])},[]),d1="beforeRead",p1="read",v1="afterRead",h1="beforeMain",m1="main",g1="afterMain",y1="beforeWrite",D1="write",C1="afterWrite",w1=[d1,p1,v1,h1,m1,g1,y1,D1,C1];function Jt(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 $r(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function _t(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ps(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function E1(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];!_t(u)||!Jt(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 B1(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},{});!_t(o)||!Jt(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var xd={name:"applyStyles",enabled:!0,phase:"write",fn:E1,effect:B1,requires:["computeStyles"]};function en(e){return e.split("-")[0]}var cr=Math.max,ua=Math.min,Lr=Math.round;function zr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(_t(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Lr(n.width)/a||1),u>0&&(o=Lr(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 Ts(e){var t=zr(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 Od(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ps(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(e){return Vt(e).getComputedStyle(e)}function A1(e){return["table","td","th"].indexOf(Jt(e))>=0}function Sn(e){return(($r(e)?e.ownerDocument:e.document)||window.document).documentElement}function aa(e){return Jt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||Sn(e)}function Sd(e){return!_t(e)||dn(e).position==="fixed"?null:e.offsetParent}function b1(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&_t(e)){var r=dn(e);if(r.position==="fixed")return null}var o=aa(e);for(Ps(o)&&(o=o.host);_t(o)&&["html","body"].indexOf(Jt(o))<0;){var u=dn(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 $o(e){for(var t=Vt(e),n=Sd(e);n&&A1(n)&&dn(n).position==="static";)n=Sd(n);return n&&(Jt(n)==="html"||Jt(n)==="body"&&dn(n).position==="static")?t:n||b1(e)||t}function Rs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lo(e,t,n){return cr(e,ua(t,n))}function F1(e,t,n){var r=Lo(e,t,n);return r>n?n:r}function _d(){return{top:0,right:0,bottom:0,left:0}}function kd(e){return Object.assign({},_d(),e)}function Pd(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x1=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,kd(typeof e!="number"?e:Pd(e,jo))};function O1(e){var t,n=e.state,r=e.name,o=e.options,u=n.elements.arrow,a=n.modifiersData.popperOffsets,i=en(n.placement),s=Rs(i),l=[lt,St].indexOf(i)>=0,f=l?"height":"width";if(!(!u||!a)){var d=x1(o.padding,n),p=Ts(u),y=s==="y"?st:lt,m=s==="y"?Ot:St,c=n.rects.reference[f]+n.rects.reference[s]-a[s]-n.rects.popper[f],w=a[s]-n.rects.reference[s],h=$o(u),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=c/2-w/2,E=d[y],A=g-p[f]-d[m],x=g/2-p[f]/2+C,B=Lo(E,x,A),O=s;n.modifiersData[r]=(t={},t[O]=B,t.centerOffset=B-x,t)}}function S1(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)||!Od(t.elements.popper,o)||(t.elements.arrow=o))}var _1={name:"arrow",enabled:!0,phase:"main",fn:O1,effect:S1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vr(e){return e.split("-")[1]}var k1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function P1(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Lr(t*o)/o||0,y:Lr(n*o)/o||0}}function Td(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,f=e.roundOffsets,d=e.isFixed,p=a.x,y=p===void 0?0:p,m=a.y,c=m===void 0?0:m,w=typeof f=="function"?f({x:y,y:c}):{x:y,y:c};y=w.x,c=w.y;var h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=lt,E=st,A=window;if(l){var x=$o(n),B="clientHeight",O="clientWidth";if(x===Vt(n)&&(x=Sn(n),dn(x).position!=="static"&&i==="absolute"&&(B="scrollHeight",O="scrollWidth")),x=x,o===st||(o===lt||o===St)&&u===Io){E=Ot;var k=d&&x===A&&A.visualViewport?A.visualViewport.height:x[B];c-=k-r.height,c*=s?1:-1}if(o===lt||(o===st||o===Ot)&&u===Io){C=St;var _=d&&x===A&&A.visualViewport?A.visualViewport.width:x[O];y-=_-r.width,y*=s?1:-1}}var K=Object.assign({position:i},l&&k1),P=f===!0?P1({x:y,y:c}):{x:y,y:c};if(y=P.x,c=P.y,s){var z;return Object.assign({},K,(z={},z[E]=g?"0":"",z[C]=h?"0":"",z.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+c+"px)":"translate3d("+y+"px, "+c+"px, 0)",z))}return Object.assign({},K,(t={},t[E]=g?c+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function T1(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:en(t.placement),variation:Vr(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,Td(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,Td(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 Rd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T1,data:{}},ia={passive:!0};function R1(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(f){f.addEventListener("scroll",n.update,ia)}),i&&s.addEventListener("resize",n.update,ia),function(){u&&l.forEach(function(f){f.removeEventListener("scroll",n.update,ia)}),i&&s.removeEventListener("resize",n.update,ia)}}var Nd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:R1,data:{}},N1={left:"right",right:"left",bottom:"top",top:"bottom"};function sa(e){return e.replace(/left|right|bottom|top/g,function(t){return N1[t]})}var j1={start:"end",end:"start"};function jd(e){return e.replace(/start|end/g,function(t){return j1[t]})}function Ns(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function js(e){return zr(Sn(e)).left+Ns(e).scrollLeft}function I1(e){var t=Vt(e),n=Sn(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+js(e),y:i}}function M1(e){var t,n=Sn(e),r=Ns(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=cr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+js(e),s=-r.scrollTop;return dn(o||n).direction==="rtl"&&(i+=cr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function Is(e){var t=dn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Id(e){return["html","body","#document"].indexOf(Jt(e))>=0?e.ownerDocument.body:_t(e)&&Is(e)?e:Id(aa(e))}function zo(e,t){var n;t===void 0&&(t=[]);var r=Id(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],Is(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(zo(aa(a)))}function Ms(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $1(e){var t=zr(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 Md(e,t){return t===bd?Ms(I1(e)):$r(t)?$1(t):Ms(M1(Sn(e)))}function L1(e){var t=zo(aa(e)),n=["absolute","fixed"].indexOf(dn(e).position)>=0,r=n&&_t(e)?$o(e):e;return $r(r)?t.filter(function(o){return $r(o)&&Od(o,r)&&Jt(o)!=="body"}):[]}function z1(e,t,n){var r=t==="clippingParents"?L1(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=Md(e,s);return i.top=cr(l.top,i.top),i.right=ua(l.right,i.right),i.bottom=ua(l.bottom,i.bottom),i.left=cr(l.left,i.left),i},Md(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 $d(e){var t=e.reference,n=e.element,r=e.placement,o=r?en(r):null,u=r?Vr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case st:s={x:a,y:t.y-n.height};break;case Ot:s={x:a,y:t.y+t.height};break;case St:s={x:t.x+t.width,y:i};break;case lt:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?Rs(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(u){case Mr:s[l]=s[l]-(t[f]/2-n[f]/2);break;case Io:s[l]=s[l]+(t[f]/2-n[f]/2);break}}return s}function Vo(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?c1:u,i=n.rootBoundary,s=i===void 0?bd:i,l=n.elementContext,f=l===void 0?Mo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,c=kd(typeof m!="number"?m:Pd(m,jo)),w=f===Mo?f1:Mo,h=e.rects.popper,g=e.elements[p?w:f],C=z1($r(g)?g:g.contextElement||Sn(e.elements.popper),a,s),E=zr(e.elements.reference),A=$d({reference:E,element:h,strategy:"absolute",placement:o}),x=Ms(Object.assign({},h,A)),B=f===Mo?x:E,O={top:C.top-B.top+c.top,bottom:B.bottom-C.bottom+c.bottom,left:C.left-B.left+c.left,right:B.right-C.right+c.right},k=e.modifiersData.offset;if(f===Mo&&k){var _=k[o];Object.keys(O).forEach(function(K){var P=[St,Ot].indexOf(K)>=0?1:-1,z=[st,Ot].indexOf(K)>=0?"y":"x";O[K]+=_[z]*P})}return O}function V1(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?ks:s,f=Vr(r),d=f?i?Fd:Fd.filter(function(m){return Vr(m)===f}):jo,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var y=p.reduce(function(m,c){return m[c]=Vo(e,{placement:c,boundary:o,rootBoundary:u,padding:a})[en(c)],m},{});return Object.keys(y).sort(function(m,c){return y[m]-y[c]})}function W1(e){if(en(e)===_s)return[];var t=sa(e);return[jd(e),t,jd(t)]}function U1(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,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,c=n.allowedAutoPlacements,w=t.options.placement,h=en(w),g=h===w,C=s||(g||!m?[sa(w)]:W1(w)),E=[w].concat(C).reduce(function(F,U){return F.concat(en(U)===_s?V1(t,{placement:U,boundary:f,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:c}):U)},[]),A=t.rects.reference,x=t.rects.popper,B=new Map,O=!0,k=E[0],_=0;_<E.length;_++){var K=E[_],P=en(K),z=Vr(K)===Mr,L=[st,Ot].indexOf(P)>=0,W=L?"width":"height",G=Vo(t,{placement:K,boundary:f,rootBoundary:d,altBoundary:p,padding:l}),R=L?z?St:lt:z?Ot:st;A[W]>x[W]&&(R=sa(R));var I=sa(R),V=[];if(u&&V.push(G[P]<=0),i&&V.push(G[R]<=0,G[I]<=0),V.every(function(F){return F})){k=K,O=!1;break}B.set(K,V)}if(O)for(var Y=m?3:1,ne=function(F){var U=E.find(function(j){var q=B.get(j);if(q)return q.slice(0,F).every(function(re){return re})});if(U)return k=U,"break"},te=Y;te>0;te--){var Be=ne(te);if(Be==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var H1={name:"flip",enabled:!0,phase:"main",fn:U1,requiresIfExists:["offset"],data:{_skip:!1}};function Ld(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 zd(e){return[st,St,Ot,lt].some(function(t){return e[t]>=0})}function K1(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Vo(t,{elementContext:"reference"}),i=Vo(t,{altBoundary:!0}),s=Ld(a,r),l=Ld(i,o,u),f=zd(s),d=zd(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var q1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:K1};function Q1(e,t,n){var r=en(e),o=[lt,st].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,[lt,St].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function Y1(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=ks.reduce(function(f,d){return f[d]=Q1(d,t.rects,u),f},{}),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 G1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Y1};function X1(e){var t=e.state,n=e.name;t.modifiersData[n]=$d({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Vd={name:"popperOffsets",enabled:!0,phase:"read",fn:X1,data:{}};function Z1(e){return e==="x"?"y":"x"}function J1(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,f=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,c=m===void 0?0:m,w=Vo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:f}),h=en(t.placement),g=Vr(t.placement),C=!g,E=Rs(h),A=Z1(E),x=t.modifiersData.popperOffsets,B=t.rects.reference,O=t.rects.popper,k=typeof c=="function"?c(Object.assign({},t.rects,{placement:t.placement})):c,_=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(u){var z,L=E==="y"?st:lt,W=E==="y"?Ot:St,G=E==="y"?"height":"width",R=x[E],I=R+w[L],V=R-w[W],Y=y?-O[G]/2:0,ne=g===Mr?B[G]:O[G],te=g===Mr?-O[G]:-B[G],Be=t.elements.arrow,F=y&&Be?Ts(Be):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_d(),j=U[L],q=U[W],re=Lo(0,B[G],F[G]),ee=C?B[G]/2-Y-re-j-_.mainAxis:ne-re-j-_.mainAxis,ae=C?-B[G]/2+Y+re+q+_.mainAxis:te+re+q+_.mainAxis,ce=t.elements.arrow&&$o(t.elements.arrow),de=ce?E==="y"?ce.clientTop||0:ce.clientLeft||0:0,ve=(z=K==null?void 0:K[E])!=null?z:0,le=R+ee-ve-de,Ie=R+ae-ve,Re=Lo(y?ua(I,le):I,R,y?cr(V,Ie):V);x[E]=Re,P[E]=Re-R}if(i){var Ae,xt=E==="x"?st:lt,zt=E==="x"?Ot:St,_e=x[A],et=A==="y"?"height":"width",he=_e+w[xt],Le=_e-w[zt],ke=[st,lt].indexOf(h)!==-1,Ne=(Ae=K==null?void 0:K[A])!=null?Ae:0,mt=ke?he:_e-B[et]-O[et]-Ne+_.altAxis,Nr=ke?_e+B[et]+O[et]-Ne-_.altAxis:Le,gt=y&&ke?F1(mt,_e,Nr):Lo(y?mt:he,_e,y?Nr:Le);x[A]=gt,P[A]=gt-_e}t.modifiersData[r]=P}}var eD={name:"preventOverflow",enabled:!0,phase:"main",fn:J1,requiresIfExists:["offset"]};function tD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nD(e){return e===Vt(e)||!_t(e)?Ns(e):tD(e)}function rD(e){var t=e.getBoundingClientRect(),n=Lr(t.width)/e.offsetWidth||1,r=Lr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function oD(e,t,n){n===void 0&&(n=!1);var r=_t(t),o=_t(t)&&rD(t),u=Sn(t),a=zr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Jt(t)!=="body"||Is(u))&&(i=nD(t)),_t(t)?(s=zr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=js(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function uD(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 aD(e){var t=uD(e);return w1.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function iD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sD(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 Wd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ud(){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 $s(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?Wd:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wd,u),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},f=[],d=!1,p={state:l,setOptions:function(c){var w=typeof c=="function"?c(l.options):c;m(),l.options=Object.assign({},u,l.options,w),l.scrollParents={reference:$r(a)?zo(a):a.contextElement?zo(a.contextElement):[],popper:zo(i)};var h=aD(sD([].concat(r,l.options.modifiers)));return l.orderedModifiers=h.filter(function(g){return g.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var c=l.elements,w=c.reference,h=c.popper;if(Ud(w,h)){l.rects={reference:oD(w,$o(h),l.options.strategy==="fixed"),popper:Ts(h)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(O){return l.modifiersData[O.name]=Object.assign({},O.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,A=C.options,x=A===void 0?{}:A,B=C.name;typeof E=="function"&&(l=E({state:l,options:x,name:B,instance:p})||l)}}}},update:iD(function(){return new Promise(function(c){p.forceUpdate(),c(l)})}),destroy:function(){m(),d=!0}};if(!Ud(a,i))return p;p.setOptions(s).then(function(c){!d&&s.onFirstUpdate&&s.onFirstUpdate(c)});function y(){l.orderedModifiers.forEach(function(c){var w=c.name,h=c.options,g=h===void 0?{}:h,C=c.effect;if(typeof C=="function"){var E=C({state:l,name:w,instance:p,options:g}),A=function(){};f.push(E||A)}})}function m(){f.forEach(function(c){return c()}),f=[]}return p}}$s();var lD=[Nd,Vd,Rd,xd];$s({defaultModifiers:lD});var cD=[Nd,Vd,Rd,xd,G1,H1,eD,_1,q1],fD=$s({defaultModifiers:cD});const dD=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=pD(s);Object.assign(a.value,l)},requires:["computeStyles"]},o=v.computed(()=>{const{onFirstUpdate:s,placement:l,strategy:f,modifiers:d}=v.unref(n);return{onFirstUpdate:s,placement:l||"bottom",strategy:f||"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=fD(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 pD(e){const t=Object.keys(e.elements),n=bs(t.map(o=>[o,e.styles[o]||{}])),r=bs(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function Hd(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return fd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Kd={prefix:Math.floor(Math.random()*1e4),current:0},vD=Symbol("elIdInjection"),qd=()=>v.getCurrentInstance()?v.inject(vD,Kd):Kd,hD=e=>{const t=qd(),n=Ss();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Wr=[];const Qd=e=>{const t=e;t.key===oa.esc&&Wr.forEach(n=>n(t))},mD=e=>{v.onMounted(()=>{Wr.length===0&&document.addEventListener("keydown",Qd),fn&&Wr.push(e)}),v.onBeforeUnmount(()=>{Wr=Wr.filter(t=>t!==e),Wr.length===0&&fn&&document.removeEventListener("keydown",Qd)})};let Yd;const Gd=()=>{const e=Ss(),t=qd(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},gD=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},yD=()=>{const{id:e,selector:t}=Gd();return v.onBeforeMount(()=>{fn&&!Yd&&!document.body.querySelector(t.value)&&(Yd=gD(e.value))}),{id:e,selector:t}},DD=Zt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),CD=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Hd(),{registerTimeout:a,cancelTimeout:i}=Hd();return{onOpen:f=>{u(()=>{r(f);const d=v.unref(n);ta(d)&&d>0&&a(()=>{o(f)},d)},v.unref(e))},onClose:f=>{i(),u(()=>{o(f)},v.unref(t))}}},Xd=Symbol("elForwardRef"),wD=e=>{const t=n=>{e.value=n};v.provide(Xd,{setForwardRef:t})},ED=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Zd=v.ref(0),BD=2e3,Jd=Symbol("zIndexContextKey"),AD=e=>{const t=e||(v.getCurrentInstance()?v.inject(Jd,void 0):void 0),n=v.computed(()=>{const u=v.unref(t);return ta(u)?u:BD}),r=v.computed(()=>n.value+Zd.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Zd.value++,r.value)}},bD=ra({type:String,values:u1,required:!1}),FD=Symbol("size"),ep=Symbol(),la=v.ref();function xD(e,t=void 0){const n=v.getCurrentInstance()?v.inject(ep,la):la;return e?v.computed(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}const OD=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?xD():void 0,a=(r=t==null?void 0:t.provide)!=null?r:o?v.provide:void 0;if(!a)return;const i=v.computed(()=>{const s=v.unref(e);return u!=null&&u.value?SD(u.value,s):s});return a(ep,i),a(a1,v.computed(()=>i.value.locale)),a(Bd,v.computed(()=>i.value.namespace)),a(Jd,v.computed(()=>i.value.zIndex)),a(FD,{size:v.computed(()=>i.value.size||"")}),(n||!la.value)&&(la.value=i.value),i},SD=(e,t)=>{var n;const r=[...new Set([...wd(e),...wd(t)])],o={};for(const u of r)o[u]=(n=t[u])!=null?n:e[u];return o},_D=Zt({a11y:{type:Boolean,default:!0},locale:{type:me(Object)},size:bD,button:{type:me(Object)},experimentalFeatures:{type:me(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:me(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),kD={},PD=v.defineComponent({name:"ElConfigProvider",props:_D,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(kD,r??{})},{immediate:!0,deep:!0});const n=OD(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),TD=xs(PD);var _n=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const tp=Symbol("formItemContextKey"),Ls=Symbol("popper"),np=Symbol("popperContent"),rp=Zt({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),RD=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),ND=v.defineComponent({...RD,props:rp,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(Ls,s),(l,f)=>v.renderSlot(l.$slots,"default")}});var jD=_n(ND,[["__file","popper.vue"]]);const op=Zt({arrowOffset:{type:Number,default:5}}),ID=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),MD=v.defineComponent({...ID,props:op,setup(e,{expose:t}){const n=e,r=No("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(np,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 $D=_n(MD,[["__file","arrow.vue"]]);const LD="ElOnlyChild",zD=v.defineComponent({name:LD,setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Xd),u=ED((r=o==null?void 0:o.setForwardRef)!=null?r:Bs);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=up(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function up(e){if(!e)return null;const t=e;for(const n of t){if(As(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return ap(n);case v.Fragment:return up(n.children);default:return n}return ap(n)}return null}function ap(e){const t=No("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const ip=Zt({virtualRef:{type:me(Object)},virtualTriggering:Boolean,onMouseenter:{type:me(Function)},onMouseleave:{type:me(Function)},onClick:{type:me(Function)},onKeydown:{type:me(Function)},onFocus:{type:me(Function)},onBlur:{type:me(Function)},onContextmenu:{type:me(Function)},id:String,open:Boolean}),VD=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),WD=v.defineComponent({...VD,props:ip,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(Ls,void 0);wD(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,f=>{f&&(o.value=sr(f))},{immediate:!0}),v.watch(o,(f,d)=>{l==null||l(),l=void 0,na(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var y;const m=n[p];m&&(f.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)=>{Fs(p[m])?f.removeAttribute(y):f.setAttribute(y,p[m])})},{immediate:!0})),na(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}),(f,d)=>f.virtualTriggering?v.createCommentVNode("v-if",!0):(v.openBlock(),v.createBlock(v.unref(zD),v.mergeProps({key:0},f.$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(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var UD=_n(WD,[["__file","trigger.vue"]]);const zs="focus-trap.focus-after-trapped",Vs="focus-trap.focus-after-released",HD="focus-trap.focusout-prevented",sp={cancelable:!0,bubbles:!1},KD={cancelable:!0,bubbles:!1},lp="focusAfterTrapped",cp="focusAfterReleased",qD=Symbol("elFocusTrap"),Ws=v.ref(),ca=v.ref(0),Us=v.ref(0);let fa=0;const fp=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},dp=(e,t)=>{for(const n of e)if(!QD(n,t))return n},QD=(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},YD=e=>{const t=fp(e),n=dp(t,e),r=dp(t.reverse(),e);return[n,r]},GD=e=>e instanceof HTMLInputElement&&"select"in e,kn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Us.value=window.performance.now(),e!==n&&GD(e)&&t&&e.select()}};function pp(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const XD=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=pp(e,r),e.unshift(r)},remove:r=>{var o,u;e=pp(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},ZD=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(kn(r,t),document.activeElement!==n)return},vp=XD(),JD=()=>ca.value>Us.value,da=()=>{Ws.value="pointer",ca.value=window.performance.now()},hp=()=>{Ws.value="keyboard",ca.value=window.performance.now()},eC=()=>(v.onMounted(()=>{fa===0&&(document.addEventListener("mousedown",da),document.addEventListener("touchstart",da),document.addEventListener("keydown",hp)),fa++}),v.onBeforeUnmount(()=>{fa--,fa<=0&&(document.removeEventListener("mousedown",da),document.removeEventListener("touchstart",da),document.removeEventListener("keydown",hp))}),{focusReason:Ws,lastUserFocusTimestamp:ca,lastAutomatedFocusTimestamp:Us}),pa=e=>new CustomEvent(HD,{...KD,detail:e}),tC=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[lp,cp,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=eC();mD(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:c,altKey:w,ctrlKey:h,metaKey:g,currentTarget:C,shiftKey:E}=m,{loop:A}=e,x=c===oa.tab&&!w&&!h&&!g,B=document.activeElement;if(x&&B){const O=C,[k,_]=YD(O);if(k&&_){if(!E&&B===_){const P=pa({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),A&&kn(k,!0))}else if(E&&[k,O].includes(B)){const P=pa({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),A&&kn(_,!0))}}else if(B===O){const P=pa({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};v.provide(qD,{focusTrapRef:n,onKeydown:i}),v.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),v.watch([n],([m],[c])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",f),m.addEventListener("focusout",d)),c&&(c.removeEventListener("keydown",i),c.removeEventListener("focusin",f),c.removeEventListener("focusout",d))});const s=m=>{t(lp,m)},l=m=>t(cp,m),f=m=>{const c=v.unref(n);if(!c)return;const w=m.target,h=m.relatedTarget,g=w&&c.contains(w);e.trapped||h&&c.contains(h)||(r=h),g&&t("focusin",m),!a.paused&&e.trapped&&(g?o=w:kn(o,!0))},d=m=>{const c=v.unref(n);if(!(a.paused||!c))if(e.trapped){const w=m.relatedTarget;!Fs(w)&&!c.contains(w)&&setTimeout(()=>{if(!a.paused&&e.trapped){const h=pa({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||kn(o,!0)}},0)}else{const w=m.target;w&&c.contains(w)||t("focusout",m)}};async function p(){await v.nextTick();const m=v.unref(n);if(m){vp.push(a);const c=m.contains(document.activeElement)?r:document.activeElement;if(r=c,!m.contains(c)){const h=new Event(zs,sp);m.addEventListener(zs,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;n1(g)||(kn(g),document.activeElement!==g&&(g="first")),g==="first"&&ZD(fp(m),!0),(document.activeElement===c||g==="container")&&kn(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(zs,s);const c=new CustomEvent(Vs,{...sp,detail:{focusReason:u.value}});m.addEventListener(Vs,l),m.dispatchEvent(c),!c.defaultPrevented&&(u.value=="keyboard"||!JD()||m.contains(document.activeElement))&&kn(r??document.body),m.removeEventListener(Vs,l),vp.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function nC(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var rC=_n(tC,[["render",nC],["__file","focus-trap.vue"]]);const oC=["fixed","absolute"],uC=Zt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:me(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ks,default:"bottom"},popperOptions:{type:me(Object),default:()=>({})},strategy:{type:String,values:oC,default:"absolute"}}),mp=Zt({...uC,id:String,style:{type:me([String,Array,Object])},className:{type:me([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:me([String,Array,Object])},popperStyle:{type:me([String,Array,Object])},referenceEl:{type:me(Object)},triggerTargetEl:{type:me(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),aC={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},iC=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...lC(e),...t]};return cC(u,o==null?void 0:o.modifiers),u},sC=e=>{if(fn)return sr(e)};function lC(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 cC(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const fC=0,dC=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(Ls,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:fC;return{name:"arrow",enabled:!r1(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...iC(e,[v.unref(s),v.unref(i)])})),f=v.computed(()=>sC(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:c,instanceRef:w}=dD(f,n,l);return v.watch(w,h=>t.value=h),v.onMounted(()=>{v.watch(()=>{var h;return(h=v.unref(f))==null?void 0:h.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:u,contentRef:n,instanceRef:w,state:p,styles:y,role:o,forceUpdate:c,update:m}},pC=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=AD(),u=No("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(ta(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||{}]),f=v.computed(()=>r.value==="dialog"?"false":void 0),d=v.computed(()=>v.unref(n).arrow||{});return{ariaModal:f,arrowStyle:d,contentAttrs:a,contentClass:s,contentStyle:l,contentZIndex:i,updateZIndex:()=>{i.value=ta(e.zIndex)?e.zIndex:o()}}},vC=(e,t)=>{const n=v.ref(!1),r=v.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:l=>{var f;((f=l.detail)==null?void 0:f.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")}}},hC=v.defineComponent({name:"ElPopperContent"}),mC=v.defineComponent({...hC,props:mp,emits:aC,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:f}=vC(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:c,role:w,update:h}=dC(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:A,contentStyle:x,updateZIndex:B}=pC(r,{styles:m,attributes:d,role:w}),O=v.inject(tp,void 0),k=v.ref();v.provide(np,{arrowStyle:C,arrowRef:p,arrowOffset:k}),O&&(O.addInputId||O.removeInputId)&&v.provide(tp,{...O,addInputId:Bs,removeInputId:Bs});let _;const K=(z=!0)=>{h(),z&&B()},P=()=>{K(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(z,L)=>{_==null||_(),_=void 0;const W=v.unref(z||y.value),G=v.unref(L||y.value);na(W)&&(_=v.watch([w,()=>r.ariaLabel,g,()=>r.id],R=>{["role","aria-label","aria-modal","id"].forEach((I,V)=>{Fs(R[V])?W.removeAttribute(I):W.setAttribute(I,R[V])})},{immediate:!0})),G!==W&&na(G)&&["role","aria-label","aria-modal","id"].forEach(R=>{G.removeAttribute(R)})},{immediate:!0}),v.watch(()=>r.visible,P,{immediate:!0})}),v.onBeforeUnmount(()=>{_==null||_(),_=void 0}),t({popperContentRef:y,popperInstanceRef:c,updatePopper:K,contentStyle:x}),(z,L)=>(v.openBlock(),v.createElementBlock("div",v.mergeProps({ref_key:"contentRef",ref:y},v.unref(E),{style:v.unref(x),class:v.unref(A),tabindex:"-1",onMouseenter:L[0]||(L[0]=W=>z.$emit("mouseenter",W)),onMouseleave:L[1]||(L[1]=W=>z.$emit("mouseleave",W))}),[v.createVNode(v.unref(rC),{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(f)},{default:v.withCtx(()=>[v.renderSlot(z.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var gC=_n(mC,[["__file","content.vue"]]);const yC=xs(jD),Hs=Symbol("elTooltip"),gp=Zt({...DD,...mp,appendTo:{type:me([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:me(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),yp=Zt({...ip,disabled:Boolean,trigger:{type:me([String,Array]),default:"hover"},triggerKeys:{type:me(Array),default:()=>[oa.enter,oa.space]}}),{useModelToggleProps:DC,useModelToggleEmits:CC,useModelToggle:wC}=Ad("visible"),EC=Zt({...rp,...DC,...gp,...yp,...op,showArrow:{type:Boolean,default:!0}}),BC=[...CC,"before-show","before-hide","show","hide","open","close"],AC=(e,t)=>t1(e)?e.includes(t):e===t,Ur=(e,t,n)=>r=>{AC(v.unref(e),t)&&n(r)},bC=v.defineComponent({name:"ElTooltipTrigger"}),FC=v.defineComponent({...bC,props:yp,setup(e,{expose:t}){const n=e,r=No("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(Hs,void 0),f=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=cn(d,Ur(p,"hover",i)),m=cn(d,Ur(p,"hover",s)),c=cn(d,Ur(p,"click",E=>{E.button===0&&l(E)})),w=cn(d,Ur(p,"focus",i)),h=cn(d,Ur(p,"focus",s)),g=cn(d,Ur(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=cn(d,E=>{const{code:A}=E;n.triggerKeys.includes(A)&&(E.preventDefault(),l(E))});return t({triggerRef:f}),(E,A)=>(v.openBlock(),v.createBlock(v.unref(UD),{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(c),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 xC=_n(FC,[["__file","trigger.vue"]]);const OC=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),SC=v.defineComponent({...OC,props:gp,setup(e,{expose:t}){const n=e,{selector:r}=Gd(),o=No("tooltip"),u=v.ref(null),a=v.ref(!1),{controlled:i,id:s,open:l,trigger:f,onClose:d,onOpen:p,onShow:y,onHide:m,onBeforeShow:c,onBeforeHide:w}=v.inject(Hs,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)),A=v.computed(()=>n.appendTo||r.value),x=v.computed(()=>{var R;return(R=n.style)!=null?R:{}}),B=v.computed(()=>!v.unref(l)),O=()=>{m()},k=()=>{if(v.unref(i))return!0},_=cn(k,()=>{n.enterable&&v.unref(f)==="hover"&&p()}),K=cn(k,()=>{v.unref(f)==="hover"&&d()}),P=()=>{var R,I;(I=(R=u.value)==null?void 0:R.updatePopper)==null||I.call(R),c==null||c()},z=()=>{w==null||w()},L=()=>{y(),G=Yy(v.computed(()=>{var R;return(R=u.value)==null?void 0:R.popperContentRef}),()=>{if(v.unref(i))return;v.unref(f)!=="hover"&&d()})},W=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),R=>{R||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var R,I;(I=(R=u.value)==null?void 0:R.updatePopper)==null||I.call(R)}),t({contentRef:u}),(R,I)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!R.teleported,to:v.unref(A)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:O,onBeforeEnter:P,onAfterEnter:L,onBeforeLeave:z},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(gC),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":v.unref(B),"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,v.unref(x)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:v.unref(E),"z-index":R.zIndex,onMouseenter:v.unref(_),onMouseleave:v.unref(K),onBlur:W,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(R.$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 _C=_n(SC,[["__file","content.vue"]]);const kC=["innerHTML"],PC={key:1},TC=v.defineComponent({name:"ElTooltip"}),RC=v.defineComponent({...TC,props:EC,emits:BC,setup(e,{expose:t,emit:n}){const r=e;yD();const o=hD(),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:f,hide:d,hasUpdateHandler:p}=wC({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=CD({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:f,close:d}),c=v.computed(()=>Cd(r.visible)&&!p.value);v.provide(Hs,{controlled:c,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,A=(h==null?void 0:h.relatedTarget)||document.activeElement;return E&&E.contains(A)};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(yC),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(xC,{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(_C,{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,kC)):(v.openBlock(),v.createElementBlock("span",PC,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref($D),{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 NC=_n(RC,[["__file","tooltip.vue"]]);const jC=xs(NC);var va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const IC={viewBox:"0 0 24 24",width:"1em",height:"1em"},MC=[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 $C(e,t){return v.openBlock(),v.createElementBlock("svg",IC,[...MC])}const LC={name:"iconoir-underline",render:$C},zC={viewBox:"0 0 24 24",width:"1em",height:"1em"},VC=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function WC(e,t){return v.openBlock(),v.createElementBlock("svg",zC,[...VC])}const UC={name:"ri-italic",render:WC},HC={viewBox:"0 0 20 20",width:"1em",height:"1em"},KC=[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.71c.18.105.377.2.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.71a5.42 5.42 0 0 0-.586-.29H3.5a.75.75 0 0 1 0-1.5z"},null,-1)];function qC(e,t){return v.openBlock(),v.createElementBlock("svg",HC,[...KC])}const QC={name:"fluent-text-strikethrough20-filled",render:qC},YC={viewBox:"0 0 24 24",width:"1em",height:"1em"},GC=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M12 11.667H8m4 0s3.333 0 3.333-3.334C15.333 5 12 5 12 5H8.6a.6.6 0 0 0-.6.6v6.067m4 0s4 0 4 3.666C16 19 12 19 12 19H8.6a.6.6 0 0 1-.6-.6v-6.733"},null,-1)];function XC(e,t){return v.openBlock(),v.createElementBlock("svg",YC,[...GC])}const ZC={name:"iconoir-bold",render:XC},Ks=Math.min,Hr=Math.max,ha=Math.round,Pn=e=>({x:e,y:e}),JC={left:"right",right:"left",bottom:"top",top:"bottom"},ew={start:"end",end:"start"};function Dp(e,t,n){return Hr(e,Ks(t,n))}function ma(e,t){return typeof e=="function"?e(t):e}function fr(e){return e.split("-")[0]}function ga(e){return e.split("-")[1]}function Cp(e){return e==="x"?"y":"x"}function wp(e){return e==="y"?"height":"width"}function ya(e){return["top","bottom"].includes(fr(e))?"y":"x"}function Ep(e){return Cp(ya(e))}function tw(e,t,n){n===void 0&&(n=!1);const r=ga(e),o=Ep(e),u=wp(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=Da(a)),[a,Da(a)]}function nw(e){const t=Da(e);return[qs(e),t,qs(t)]}function qs(e){return e.replace(/start|end/g,t=>ew[t])}function rw(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 ow(e,t,n,r){const o=ga(e);let u=rw(fr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(qs)))),u}function Da(e){return e.replace(/left|right|bottom|top/g,t=>JC[t])}function uw(e){return{top:0,right:0,bottom:0,left:0,...e}}function aw(e){return typeof e!="number"?uw(e):{top:e,right:e,bottom:e,left:e}}function Ca(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Bp(e,t,n){let{reference:r,floating:o}=e;const u=ya(t),a=Ep(t),i=wp(a),s=fr(t),l=u==="y",f=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:f,y:r.y-o.height};break;case"bottom":y={x:f,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(ga(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const iw=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:f,y:d}=Bp(l,r,s),p=r,y={},m=0;for(let c=0;c<i.length;c++){const{name:w,fn:h}=i[c],{x:g,y:C,data:E,reset:A}=await h({x:f,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:l,platform:a,elements:{reference:e,floating:t}});if(f=g??f,d=C??d,y={...y,[w]:{...y[w],...E}},A&&m<=50){m++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(l=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:d}=Bp(l,p,s)),c=-1;continue}}return{x:f,y:d,placement:p,strategy:o,middlewareData:y}};async function Ap(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:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=ma(t,e),m=aw(y),w=i[p?d==="floating"?"reference":"floating":d],h=Ca(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:f,strategy:s})),g=d==="floating"?{...a.floating,x:r,y:o}: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},A=Ca(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:C,strategy:s}):g);return{top:(h.top-A.top+m.top)/E.y,bottom:(A.bottom-h.bottom+m.bottom)/E.y,left:(h.left-A.left+m.left)/E.x,right:(A.right-h.right+m.right)/E.x}}const sw=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:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:c=!0,...w}=ma(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=fr(o),g=fr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!c?[Da(i)]:nw(i));!p&&m!=="none"&&E.push(...ow(i,c,m,C));const A=[i,...E],x=await Ap(t,w),B=[];let O=((r=u.flip)==null?void 0:r.overflows)||[];if(f&&B.push(x[h]),d){const P=tw(o,a,C);B.push(x[P[0]],x[P[1]])}if(O=[...O,{placement:o,overflows:B}],!B.every(P=>P<=0)){var k,_;const P=(((k=u.flip)==null?void 0:k.index)||0)+1,z=A[P];if(z)return{data:{index:P,overflows:O},reset:{placement:z}};let L=(_=O.filter(W=>W.overflows[0]<=0).sort((W,G)=>W.overflows[1]-G.overflows[1])[0])==null?void 0:_.placement;if(!L)switch(y){case"bestFit":{var K;const W=(K=O.map(G=>[G.placement,G.overflows.filter(R=>R>0).reduce((R,I)=>R+I,0)]).sort((G,R)=>G[1]-R[1])[0])==null?void 0:K[0];W&&(L=W);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};async function lw(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=fr(n),i=ga(n),s=ya(n)==="y",l=["left","top"].includes(a)?-1:1,f=u&&s?-1:1,d=ma(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*f,y:p*l}:{x:p*l,y:y*f}}const cw=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 lw(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}}}}},fw=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}=ma(e,t),l={x:n,y:r},f=await Ap(t,s),d=ya(fr(o)),p=Cp(d);let y=l[p],m=l[d];if(u){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",g=y+f[w],C=y-f[h];y=Dp(g,y,C)}if(a){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=m+f[w],C=m-f[h];m=Dp(g,m,C)}const c=i.fn({...t,[p]:y,[d]:m});return{...c,data:{x:c.x-n,y:c.y-r}}}}};function pn(e){return Qs(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Tn(e){var t;return(t=(Qs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qs(e){return e instanceof Node||e instanceof yt(e).Node}function vn(e){return e instanceof Element||e instanceof yt(e).Element}function tn(e){return e instanceof HTMLElement||e instanceof yt(e).HTMLElement}function bp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function Uo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function dw(e){return["table","td","th"].includes(pn(e))}function Ys(e){const t=Gs(),n=kt(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 pw(e){let t=Kr(e);for(;tn(t)&&!wa(t);){if(Ys(t))return t;t=Kr(t)}return null}function Gs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wa(e){return["html","body","#document"].includes(pn(e))}function kt(e){return yt(e).getComputedStyle(e)}function Ea(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Kr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bp(e)&&e.host||Tn(e);return bp(t)?t.host:t}function Fp(e){const t=Kr(e);return wa(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&Uo(t)?t:Fp(t)}function Xs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Fp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=yt(o);return u?t.concat(a,a.visualViewport||[],Uo(o)?o:[],a.frameElement&&n?Xs(a.frameElement):[]):t.concat(o,Xs(o,[],n))}function xp(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=ha(n)!==u||ha(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Op(e){return vn(e)?e:e.contextElement}function qr(e){const t=Op(e);if(!tn(t))return Pn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=xp(t);let a=(u?ha(n.width):n.width)/r,i=(u?ha(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const vw=Pn(0);function Sp(e){const t=yt(e);return!Gs()||!t.visualViewport?vw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function Ho(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Op(e);let a=Pn(1);t&&(r?vn(r)&&(a=qr(r)):a=qr(e));const i=hw(u,n,r)?Sp(u):Pn(0);let s=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(u){const p=yt(u),y=r&&vn(r)?yt(r):r;let m=p.frameElement;for(;m&&r&&y!==p;){const c=qr(m),w=m.getBoundingClientRect(),h=kt(m),g=w.left+(m.clientLeft+parseFloat(h.paddingLeft))*c.x,C=w.top+(m.clientTop+parseFloat(h.paddingTop))*c.y;s*=c.x,l*=c.y,f*=c.x,d*=c.y,s+=g,l+=C,m=yt(m).frameElement}}return Ca({width:f,height:d,x:s,y:l})}function mw(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=tn(n),u=Tn(n);if(n===u)return t;let a={scrollLeft:0,scrollTop:0},i=Pn(1);const s=Pn(0);if((o||!o&&r!=="fixed")&&((pn(n)!=="body"||Uo(u))&&(a=Ea(n)),tn(n))){const l=Ho(n);i=qr(n),s.x=l.x+n.clientLeft,s.y=l.y+n.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-a.scrollLeft*i.x+s.x,y:t.y*i.y-a.scrollTop*i.y+s.y}}function gw(e){return Array.from(e.getClientRects())}function _p(e){return Ho(Tn(e)).left+Ea(e).scrollLeft}function yw(e){const t=Tn(e),n=Ea(e),r=e.ownerDocument.body,o=Hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+_p(e);const i=-n.scrollTop;return kt(r).direction==="rtl"&&(a+=Hr(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function Dw(e,t){const n=yt(e),r=Tn(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=Gs();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function Cw(e,t){const n=Ho(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=tn(e)?qr(e):Pn(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 kp(e,t,n){let r;if(t==="viewport")r=Dw(e,n);else if(t==="document")r=yw(Tn(e));else if(vn(t))r=Cw(t,n);else{const o=Sp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ca(r)}function Pp(e,t){const n=Kr(e);return n===t||!vn(n)||wa(n)?!1:kt(n).position==="fixed"||Pp(n,t)}function ww(e,t){const n=t.get(e);if(n)return n;let r=Xs(e,[],!1).filter(i=>vn(i)&&pn(i)!=="body"),o=null;const u=kt(e).position==="fixed";let a=u?Kr(e):e;for(;vn(a)&&!wa(a);){const i=kt(a),s=Ys(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Uo(a)&&!s&&Pp(e,a))?r=r.filter(f=>f!==a):o=i,a=Kr(a)}return t.set(e,r),r}function Ew(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?ww(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,f)=>{const d=kp(t,f,o);return l.top=Hr(d.top,l.top),l.right=Ks(d.right,l.right),l.bottom=Ks(d.bottom,l.bottom),l.left=Hr(d.left,l.left),l},kp(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Bw(e){const{width:t,height:n}=xp(e);return{width:t,height:n}}function Aw(e,t,n){const r=tn(t),o=Tn(t),u=n==="fixed",a=Ho(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=Pn(0);if(r||!r&&!u)if((pn(t)!=="body"||Uo(o))&&(i=Ea(t)),r){const l=Ho(t,!0,u,t);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else o&&(s.x=_p(o));return{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function Tp(e,t){return!tn(e)||kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Rp(e,t){const n=yt(e);if(!tn(e))return n;let r=Tp(e,t);for(;r&&dw(r)&&kt(r).position==="static";)r=Tp(r,t);return r&&(pn(r)==="html"||pn(r)==="body"&&kt(r).position==="static"&&!Ys(r))?n:r||pw(e)||n}const bw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Rp,u=this.getDimensions;return{reference:Aw(t,await o(n),r),floating:{x:0,y:0,...await u(n)}}};function Fw(e){return kt(e).direction==="rtl"}const xw={convertOffsetParentRelativeRectToViewportRelativeRect:mw,getDocumentElement:Tn,getClippingRect:Ew,getOffsetParent:Rp,getElementRects:bw,getClientRects:gw,getDimensions:Bw,getScale:qr,isElement:vn,isRTL:Fw},Ow=fw,Sw=sw,_w=(e,t,n)=>{const r=new Map,o={platform:xw,...n},u={...o.platform,_c:r};return iw(e,t,{...o,platform:u})};function kw(e){return e!=null&&typeof e=="object"&&"$el"in e}function Np(e){if(kw(e)){const t=e.$el;return Qs(t)&&pn(t)==="#comment"?null:t}return e}function jp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ip(e,t){const n=jp(e);return Math.round(t*n)/n}function Pw(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=v.computed(()=>{var B;return(B=v.unref(n.open))!=null?B:!0}),u=v.computed(()=>v.unref(n.middleware)),a=v.computed(()=>{var B;return(B=v.unref(n.placement))!=null?B:"bottom"}),i=v.computed(()=>{var B;return(B=v.unref(n.strategy))!=null?B:"absolute"}),s=v.computed(()=>{var B;return(B=v.unref(n.transform))!=null?B:!0}),l=v.computed(()=>Np(e.value)),f=v.computed(()=>Np(t.value)),d=v.ref(0),p=v.ref(0),y=v.ref(i.value),m=v.ref(a.value),c=v.shallowRef({}),w=v.ref(!1),h=v.computed(()=>{const B={position:y.value,left:"0",top:"0"};if(!f.value)return B;const O=Ip(f.value,d.value),k=Ip(f.value,p.value);return s.value?{...B,transform:"translate("+O+"px, "+k+"px)",...jp(f.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:O+"px",top:k+"px"}});let g;function C(){l.value==null||f.value==null||_w(l.value,f.value,{middleware:u.value,placement:a.value,strategy:i.value}).then(B=>{d.value=B.x,p.value=B.y,y.value=B.strategy,m.value=B.placement,c.value=B.middlewareData,w.value=!0})}function E(){typeof g=="function"&&(g(),g=void 0)}function A(){if(E(),r===void 0){C();return}if(l.value!=null&&f.value!=null){g=r(l.value,f.value,C);return}}function x(){o.value||(w.value=!1)}return v.watch([u,a,i],C,{flush:"sync"}),v.watch([l,f],A,{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(c),isPositioned:v.shallowReadonly(w),floatingStyles:h,update:C}}function Mp(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((f,d)=>(r=f,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 Ba(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Zs(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return Ba(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function Tw(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))),Ba(o),n)}function Aa(e){return typeof e=="function"?e():v.unref(e)}const Rw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nw=Object.prototype.toString,jw=e=>Nw.call(e)==="[object Object]",Iw=()=>{};function Mw(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 $w=e=>e();function Lw(e,t,n={}){const{eventFilter:r=$w,...o}=n,u=Mw(r,t);let a,i,s;if(o.flush==="sync"){const l=v.ref(!1);i=()=>{},a=f=>{l.value=!0,f(),l.value=!1},s=v.watch(e,(...f)=>{l.value||u(...f)},o)}else{const l=[],f=v.ref(0),d=v.ref(0);i=()=>{f.value=d.value},l.push(v.watch(e,()=>{d.value++},{...o,flush:"sync"})),a=p=>{const y=d.value;p(),f.value+=d.value-y},l.push(v.watch(e,(...p)=>{const y=f.value>0&&f.value===d.value;f.value=0,d.value=0,!y&&u(...p)},o)),s=()=>{l.forEach(p=>p())}}return{stop:s,ignoreUpdates:a,ignorePrevAsyncUpdates:i}}function zw(e,t,n={}){let r;function o(){if(!r)return;const f=r;r=void 0,f()}function u(f){r=f}const a=(f,d)=>(o(),t(f,d,u)),i=Lw(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let f;return s(()=>{f=a(Vw(e),Ww(e))}),f}}}function Vw(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>Aa(t)):Aa(e)}function Ww(e){return Array.isArray(e)?e.map(()=>{}):void 0}function ba(e){var t;const n=Aa(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ko=Rw?window:void 0;function Qe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=Ko):[t,n,r,o]=e,!t)return Iw;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(f=>f()),u.length=0},i=(f,d,p,y)=>(f.addEventListener(d,p,y),()=>f.removeEventListener(d,p,y)),s=v.watch(()=>[ba(t),Aa(o)],([f,d])=>{if(a(),!f)return;const p=jw(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(f,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Ba(l),l}function Uw(e={}){var t;const{window:n=Ko,deep:r=!0}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var i;let s=o==null?void 0:o.activeElement;if(r)for(;s!=null&&s.shadowRoot;)s=(i=s==null?void 0:s.shadowRoot)==null?void 0:i.activeElement;return s},a=Mp(()=>null,()=>u());return n&&(Qe(n,"blur",i=>{i.relatedTarget===null&&a.trigger()},!0),Qe(n,"focus",a.trigger,!0)),a}function Hw(){const e=v.ref(!1);return v.getCurrentInstance()&&v.onMounted(()=>{e.value=!0}),e}function Kw(e){const t=Hw();return v.computed(()=>(t.value,!!e()))}function qw(e,t,n={}){const{window:r=Ko,...o}=n;let u;const a=Kw(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.watch(()=>ba(e),d=>{i(),a.value&&r&&d&&(u=new MutationObserver(t),u.observe(d,o))},{immediate:!0}),l=()=>u==null?void 0:u.takeRecords(),f=()=>{i(),s()};return Ba(f),{isSupported:a,stop:f,takeRecords:l}}function Fa(){const e=v.getCurrentInstance(),t=Mp(()=>null,()=>e.proxy.$el);return v.onUpdated(t.trigger),v.onMounted(t.trigger),t}function Qw(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=Ko}=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&&(Qe(e,"mouseenter",()=>i(!0),{passive:!0}),Qe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function Yw(e,t={}){const n=Uw(t),r=v.computed(()=>ba(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function Gw(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=Ko}=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},f=v.computed(()=>ba(e.target)||u);return Qe(f,"mousedown",s("mouse"),{passive:!0,capture:r}),Qe(u,"mouseleave",l,{passive:!0,capture:r}),Qe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Qe(f,"dragstart",s("mouse"),{passive:!0,capture:r}),Qe(u,"drop",l,{passive:!0,capture:r}),Qe(u,"dragend",l,{passive:!0,capture:r})),t&&(Qe(f,"touchstart",s("touch"),{passive:!0,capture:r}),Qe(u,"touchend",l,{passive:!0,capture:r}),Qe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const xa=v.ref(),Oa=v.ref(),Xw=Zs(),$p=Zs();function Sa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Zw(){return String.fromCharCode(Sa(97,122))}function Jw(){return String.fromCharCode(Sa(65,90))}function Lp(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?Sa(0,a-1):0,l=u[s];l==="l"?i+=Zw():l==="u"?i+=Jw():l==="n"&&(i+=Sa(0,9))}return i}function eE(){return Lp(1,{uppercase:!0})+Lp(17,{uppercase:!0,number:!0})}const tE=typeof window<"u";function nE(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 rE(e,t,n){return nE(e,t,{...n,immediate:!0})}const zp=Tw(()=>{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=Zs();return rE(Oa,()=>{Qe(window.document,"selectionchange",()=>{e.value=null,e.value=Oa.value.getSelection(),n.value&&o.trigger(e.value)})}),{text:t,isValidSelection:n,range:r,selection:e,onValidSelectionUpdate:o.on}});/*!
5
+ **/const As=()=>{},t1=Object.prototype.hasOwnProperty,Cd=(e,t)=>t1.call(e,t),n1=Array.isArray,ra=e=>typeof e=="function",r1=e=>typeof e=="string",bs=e=>e!==null&&typeof e=="object";function Fs(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 xs(e){return e==null}function o1(e){return e===void 0}const wd=e=>typeof e=="boolean",oa=e=>typeof e=="number",ua=e=>typeof Element>"u"?!1:e instanceof Element,Ed=e=>Object.keys(e),Bd="__epPropKey",ge=e=>e,u1=e=>bs(e)&&!!e[Bd],aa=(e,t)=>{if(!bs(e)||u1(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),Cd(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,[Bd]:!0};return Cd(e,"default")&&(s.default=o),s},Zt=e=>Fs(Object.entries(e).map(([t,n])=>[t,aa(n,t)])),Ss=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},ia={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"},a1=["","default","small","large"],i1=Symbol("localeContextKey"),Os="el",s1="is-",lr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},Ad=Symbol("namespaceContextKey"),_s=e=>{const t=e||(v.getCurrentInstance()?v.inject(Ad,v.ref(Os)):v.ref(Os));return v.computed(()=>v.unref(t)||Os)},No=(e,t)=>{const n=_s(t);return{namespace:n,b:(f="")=>lr(n.value,e,f,"",""),e:f=>f?lr(n.value,e,"",f,""):"",m:f=>f?lr(n.value,e,"","",f):"",be:(f,w)=>f&&w?lr(n.value,e,f,w,""):"",em:(f,w)=>f&&w?lr(n.value,e,"",f,w):"",bm:(f,w)=>f&&w?lr(n.value,e,f,"",w):"",bem:(f,w,h)=>f&&w&&h?lr(n.value,e,f,w,h):"",is:(f,...w)=>{const h=w.length>=1?w[0]:!0;return f&&h?`${s1}${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}`}},l1=aa({type:ge(Boolean),default:null}),c1=aa({type:ge(Function)}),bd=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:l1,[n]:c1};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(()=>ra(m[n])),w=v.computed(()=>m[e]===null),h=A=>{a.value!==!0&&(a.value=!0,i&&(i.value=A),ra(c)&&c(A))},g=A=>{a.value!==!1&&(a.value=!1,i&&(i.value=A),ra(d)&&d(A))},C=A=>{if(m.disabled===!0||ra(l)&&!l())return;const S=f.value&&fn;S&&y(t,!0),(w.value||!S)&&h(A)},E=A=>{if(m.disabled===!0||!fn)return;const S=f.value&&fn;S&&y(t,!1),(w.value||!S)&&g(A)},B=A=>{wd(A)&&(m.disabled&&A?f.value&&y(t,!1):a.value!==A&&(A?h():g()))},F=()=>{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:F,hasUpdateHandler:f}},useModelToggleProps:o,useModelToggleEmits:r}};bd("modelValue");var st="top",St="bottom",Ot="right",lt="left",ks="auto",jo=[st,St,Ot,lt],Mr="start",Io="end",f1="clippingParents",Fd="viewport",Mo="popper",d1="reference",xd=jo.reduce(function(e,t){return e.concat([t+"-"+Mr,t+"-"+Io])},[]),Ps=[].concat(jo,[ks]).reduce(function(e,t){return e.concat([t,t+"-"+Mr,t+"-"+Io])},[]),p1="beforeRead",v1="read",h1="afterRead",m1="beforeMain",g1="main",y1="afterMain",D1="beforeWrite",C1="write",w1="afterWrite",E1=[p1,v1,h1,m1,g1,y1,D1,C1,w1];function Jt(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 $r(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function _t(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ts(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function B1(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];!_t(u)||!Jt(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 A1(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},{});!_t(o)||!Jt(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var Sd={name:"applyStyles",enabled:!0,phase:"write",fn:B1,effect:A1,requires:["computeStyles"]};function en(e){return e.split("-")[0]}var cr=Math.max,sa=Math.min,Lr=Math.round;function zr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(_t(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Lr(n.width)/a||1),u>0&&(o=Lr(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 Rs(e){var t=zr(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 Od(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ts(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(e){return Vt(e).getComputedStyle(e)}function b1(e){return["table","td","th"].indexOf(Jt(e))>=0}function On(e){return(($r(e)?e.ownerDocument:e.document)||window.document).documentElement}function la(e){return Jt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ts(e)?e.host:null)||On(e)}function _d(e){return!_t(e)||dn(e).position==="fixed"?null:e.offsetParent}function F1(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&_t(e)){var r=dn(e);if(r.position==="fixed")return null}var o=la(e);for(Ts(o)&&(o=o.host);_t(o)&&["html","body"].indexOf(Jt(o))<0;){var u=dn(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 $o(e){for(var t=Vt(e),n=_d(e);n&&b1(n)&&dn(n).position==="static";)n=_d(n);return n&&(Jt(n)==="html"||Jt(n)==="body"&&dn(n).position==="static")?t:n||F1(e)||t}function Ns(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lo(e,t,n){return cr(e,sa(t,n))}function x1(e,t,n){var r=Lo(e,t,n);return r>n?n:r}function kd(){return{top:0,right:0,bottom:0,left:0}}function Pd(e){return Object.assign({},kd(),e)}function Td(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var S1=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Pd(typeof e!="number"?e:Td(e,jo))};function O1(e){var t,n=e.state,r=e.name,o=e.options,u=n.elements.arrow,a=n.modifiersData.popperOffsets,i=en(n.placement),s=Ns(i),l=[lt,Ot].indexOf(i)>=0,c=l?"height":"width";if(!(!u||!a)){var d=S1(o.padding,n),p=Rs(u),y=s==="y"?st:lt,m=s==="y"?St:Ot,f=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],w=a[s]-n.rects.reference[s],h=$o(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],F=g/2-p[c]/2+C,A=Lo(E,F,B),S=s;n.modifiersData[r]=(t={},t[S]=A,t.centerOffset=A-F,t)}}function _1(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)||!Od(t.elements.popper,o)||(t.elements.arrow=o))}var k1={name:"arrow",enabled:!0,phase:"main",fn:O1,effect:_1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vr(e){return e.split("-")[1]}var P1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T1(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Lr(t*o)/o||0,y:Lr(n*o)/o||0}}function Rd(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=lt,E=st,B=window;if(l){var F=$o(n),A="clientHeight",S="clientWidth";if(F===Vt(n)&&(F=On(n),dn(F).position!=="static"&&i==="absolute"&&(A="scrollHeight",S="scrollWidth")),F=F,o===st||(o===lt||o===Ot)&&u===Io){E=St;var P=d&&F===B&&B.visualViewport?B.visualViewport.height:F[A];f-=P-r.height,f*=s?1:-1}if(o===lt||(o===st||o===St)&&u===Io){C=Ot;var O=d&&F===B&&B.visualViewport?B.visualViewport.width:F[S];y-=O-r.width,y*=s?1:-1}}var H=Object.assign({position:i},l&&P1),k=c===!0?T1({x:y,y:f}):{x:y,y:f};if(y=k.x,f=k.y,s){var W;return Object.assign({},H,(W={},W[E]=g?"0":"",W[C]=h?"0":"",W.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",W))}return Object.assign({},H,(t={},t[E]=g?f+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function R1(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:en(t.placement),variation:Vr(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,Rd(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,Rd(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 Nd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R1,data:{}},ca={passive:!0};function N1(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,ca)}),i&&s.addEventListener("resize",n.update,ca),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,ca)}),i&&s.removeEventListener("resize",n.update,ca)}}var jd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N1,data:{}},j1={left:"right",right:"left",bottom:"top",top:"bottom"};function fa(e){return e.replace(/left|right|bottom|top/g,function(t){return j1[t]})}var I1={start:"end",end:"start"};function Id(e){return e.replace(/start|end/g,function(t){return I1[t]})}function js(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Is(e){return zr(On(e)).left+js(e).scrollLeft}function M1(e){var t=Vt(e),n=On(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+Is(e),y:i}}function $1(e){var t,n=On(e),r=js(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=cr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Is(e),s=-r.scrollTop;return dn(o||n).direction==="rtl"&&(i+=cr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function Ms(e){var t=dn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Md(e){return["html","body","#document"].indexOf(Jt(e))>=0?e.ownerDocument.body:_t(e)&&Ms(e)?e:Md(la(e))}function zo(e,t){var n;t===void 0&&(t=[]);var r=Md(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],Ms(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(zo(la(a)))}function $s(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L1(e){var t=zr(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 $d(e,t){return t===Fd?$s(M1(e)):$r(t)?L1(t):$s($1(On(e)))}function z1(e){var t=zo(la(e)),n=["absolute","fixed"].indexOf(dn(e).position)>=0,r=n&&_t(e)?$o(e):e;return $r(r)?t.filter(function(o){return $r(o)&&Od(o,r)&&Jt(o)!=="body"}):[]}function V1(e,t,n){var r=t==="clippingParents"?z1(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=$d(e,s);return i.top=cr(l.top,i.top),i.right=sa(l.right,i.right),i.bottom=sa(l.bottom,i.bottom),i.left=cr(l.left,i.left),i},$d(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 Ld(e){var t=e.reference,n=e.element,r=e.placement,o=r?en(r):null,u=r?Vr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case st:s={x:a,y:t.y-n.height};break;case St:s={x:a,y:t.y+t.height};break;case Ot:s={x:t.x+t.width,y:i};break;case lt:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?Ns(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(u){case Mr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Io:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Vo(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?f1:u,i=n.rootBoundary,s=i===void 0?Fd:i,l=n.elementContext,c=l===void 0?Mo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=Pd(typeof m!="number"?m:Td(m,jo)),w=c===Mo?d1:Mo,h=e.rects.popper,g=e.elements[p?w:c],C=V1($r(g)?g:g.contextElement||On(e.elements.popper),a,s),E=zr(e.elements.reference),B=Ld({reference:E,element:h,strategy:"absolute",placement:o}),F=$s(Object.assign({},h,B)),A=c===Mo?F: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},P=e.modifiersData.offset;if(c===Mo&&P){var O=P[o];Object.keys(S).forEach(function(H){var k=[Ot,St].indexOf(H)>=0?1:-1,W=[st,St].indexOf(H)>=0?"y":"x";S[H]+=O[W]*k})}return S}function W1(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?Ps:s,c=Vr(r),d=c?i?xd:xd.filter(function(m){return Vr(m)===c}):jo,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]=Vo(e,{placement:f,boundary:o,rootBoundary:u,padding:a})[en(f)],m},{});return Object.keys(y).sort(function(m,f){return y[m]-y[f]})}function U1(e){if(en(e)===ks)return[];var t=fa(e);return[Id(e),t,Id(t)]}function H1(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=en(w),g=h===w,C=s||(g||!m?[fa(w)]:U1(w)),E=[w].concat(C).reduce(function(x,j){return x.concat(en(j)===ks?W1(t,{placement:j,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:f}):j)},[]),B=t.rects.reference,F=t.rects.popper,A=new Map,S=!0,P=E[0],O=0;O<E.length;O++){var H=E[O],k=en(H),W=Vr(H)===Mr,$=[st,St].indexOf(k)>=0,V=$?"width":"height",G=Vo(t,{placement:H,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),R=$?W?Ot:lt:W?St:st;B[V]>F[V]&&(R=fa(R));var M=fa(R),U=[];if(u&&U.push(G[k]<=0),i&&U.push(G[R]<=0,G[M]<=0),U.every(function(x){return x})){P=H,S=!1;break}A.set(H,U)}if(S)for(var Y=m?3:1,ne=function(x){var j=E.find(function(N){var Q=A.get(N);if(Q)return Q.slice(0,x).every(function(oe){return oe})});if(j)return P=j,"break"},te=Y;te>0;te--){var ve=ne(te);if(ve==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var K1={name:"flip",enabled:!0,phase:"main",fn:H1,requiresIfExists:["offset"],data:{_skip:!1}};function zd(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 Vd(e){return[st,Ot,St,lt].some(function(t){return e[t]>=0})}function q1(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Vo(t,{elementContext:"reference"}),i=Vo(t,{altBoundary:!0}),s=zd(a,r),l=zd(i,o,u),c=Vd(s),d=Vd(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 Q1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q1};function Y1(e,t,n){var r=en(e),o=[lt,st].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,[lt,Ot].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function G1(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=Ps.reduce(function(c,d){return c[d]=Y1(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 X1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G1};function Z1(e){var t=e.state,n=e.name;t.modifiersData[n]=Ld({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Wd={name:"popperOffsets",enabled:!0,phase:"read",fn:Z1,data:{}};function J1(e){return e==="x"?"y":"x"}function eD(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=Vo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=en(t.placement),g=Vr(t.placement),C=!g,E=Ns(h),B=J1(E),F=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,P=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(F){if(u){var W,$=E==="y"?st:lt,V=E==="y"?St:Ot,G=E==="y"?"height":"width",R=F[E],M=R+w[$],U=R-w[V],Y=y?-S[G]/2:0,ne=g===Mr?A[G]:S[G],te=g===Mr?-S[G]:-A[G],ve=t.elements.arrow,x=y&&ve?Rs(ve):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kd(),N=j[$],Q=j[V],oe=Lo(0,A[G],x[G]),ee=C?A[G]/2-Y-oe-N-O.mainAxis:ne-oe-N-O.mainAxis,ie=C?-A[G]/2+Y+oe+Q+O.mainAxis:te+oe+Q+O.mainAxis,ce=t.elements.arrow&&$o(t.elements.arrow),de=ce?E==="y"?ce.clientTop||0:ce.clientLeft||0:0,he=(W=H==null?void 0:H[E])!=null?W:0,le=R+ee-he-de,Ie=R+ie-he,Re=Lo(y?sa(M,le):M,R,y?cr(U,Ie):U);F[E]=Re,k[E]=Re-R}if(i){var Ae,xt=E==="x"?st:lt,zt=E==="x"?St:Ot,_e=F[B],et=B==="y"?"height":"width",me=_e+w[xt],Le=_e-w[zt],ke=[st,lt].indexOf(h)!==-1,Ne=(Ae=H==null?void 0:H[B])!=null?Ae:0,mt=ke?me:_e-A[et]-S[et]-Ne+O.altAxis,Nr=ke?_e+A[et]+S[et]-Ne-O.altAxis:Le,gt=y&&ke?x1(mt,_e,Nr):Lo(y?mt:me,_e,y?Nr:Le);F[B]=gt,k[B]=gt-_e}t.modifiersData[r]=k}}var tD={name:"preventOverflow",enabled:!0,phase:"main",fn:eD,requiresIfExists:["offset"]};function nD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rD(e){return e===Vt(e)||!_t(e)?js(e):nD(e)}function oD(e){var t=e.getBoundingClientRect(),n=Lr(t.width)/e.offsetWidth||1,r=Lr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uD(e,t,n){n===void 0&&(n=!1);var r=_t(t),o=_t(t)&&oD(t),u=On(t),a=zr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Jt(t)!=="body"||Ms(u))&&(i=rD(t)),_t(t)?(s=zr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=Is(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function aD(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 iD(e){var t=aD(e);return E1.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function sD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lD(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 Ud={placement:"bottom",modifiers:[],strategy:"absolute"};function Hd(){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 Ls(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?Ud:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ud,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:$r(a)?zo(a):a.contextElement?zo(a.contextElement):[],popper:zo(i)};var h=iD(lD([].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(Hd(w,h)){l.rects={reference:uD(w,$o(h),l.options.strategy==="fixed"),popper:Rs(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,F=B===void 0?{}:B,A=C.name;typeof E=="function"&&(l=E({state:l,options:F,name:A,instance:p})||l)}}}},update:sD(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!Hd(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}}Ls();var cD=[jd,Wd,Nd,Sd];Ls({defaultModifiers:cD});var fD=[jd,Wd,Nd,Sd,X1,K1,tD,k1,Q1],dD=Ls({defaultModifiers:fD});const pD=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=vD(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=dD(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 vD(e){const t=Object.keys(e.elements),n=Fs(t.map(o=>[o,e.styles[o]||{}])),r=Fs(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function Kd(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return dd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const qd={prefix:Math.floor(Math.random()*1e4),current:0},hD=Symbol("elIdInjection"),Qd=()=>v.getCurrentInstance()?v.inject(hD,qd):qd,mD=e=>{const t=Qd(),n=_s();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Wr=[];const Yd=e=>{const t=e;t.key===ia.esc&&Wr.forEach(n=>n(t))},gD=e=>{v.onMounted(()=>{Wr.length===0&&document.addEventListener("keydown",Yd),fn&&Wr.push(e)}),v.onBeforeUnmount(()=>{Wr=Wr.filter(t=>t!==e),Wr.length===0&&fn&&document.removeEventListener("keydown",Yd)})};let Gd;const Xd=()=>{const e=_s(),t=Qd(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},yD=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},DD=()=>{const{id:e,selector:t}=Xd();return v.onBeforeMount(()=>{fn&&!Gd&&!document.body.querySelector(t.value)&&(Gd=yD(e.value))}),{id:e,selector:t}},CD=Zt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),wD=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Kd(),{registerTimeout:a,cancelTimeout:i}=Kd();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);oa(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},Zd=Symbol("elForwardRef"),ED=e=>{const t=n=>{e.value=n};v.provide(Zd,{setForwardRef:t})},BD=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Jd=v.ref(0),AD=2e3,ep=Symbol("zIndexContextKey"),bD=e=>{const t=e||(v.getCurrentInstance()?v.inject(ep,void 0):void 0),n=v.computed(()=>{const u=v.unref(t);return oa(u)?u:AD}),r=v.computed(()=>n.value+Jd.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Jd.value++,r.value)}},zs=Math.min,Ur=Math.max,da=Math.round,_n=e=>({x:e,y:e}),FD={left:"right",right:"left",bottom:"top",top:"bottom"},xD={start:"end",end:"start"};function tp(e,t,n){return Ur(e,zs(t,n))}function pa(e,t){return typeof e=="function"?e(t):e}function fr(e){return e.split("-")[0]}function va(e){return e.split("-")[1]}function np(e){return e==="x"?"y":"x"}function rp(e){return e==="y"?"height":"width"}function ha(e){return["top","bottom"].includes(fr(e))?"y":"x"}function op(e){return np(ha(e))}function SD(e,t,n){n===void 0&&(n=!1);const r=va(e),o=op(e),u=rp(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=ma(a)),[a,ma(a)]}function OD(e){const t=ma(e);return[Vs(e),t,Vs(t)]}function Vs(e){return e.replace(/start|end/g,t=>xD[t])}function _D(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 kD(e,t,n,r){const o=va(e);let u=_D(fr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(Vs)))),u}function ma(e){return e.replace(/left|right|bottom|top/g,t=>FD[t])}function PD(e){return{top:0,right:0,bottom:0,left:0,...e}}function TD(e){return typeof e!="number"?PD(e):{top:e,right:e,bottom:e,left:e}}function ga(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function up(e,t,n){let{reference:r,floating:o}=e;const u=ha(t),a=op(t),i=rp(a),s=fr(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(va(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const RD=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}=up(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}});if(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}=up(l,p,s)),f=-1;continue}}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function ap(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}=pa(t,e),m=TD(y),w=i[p?d==="floating"?"reference":"floating":d],h=ga(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"?{...a.floating,x:r,y:o}: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=ga(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({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 ND=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}=pa(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=fr(o),g=fr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!f?[ma(i)]:OD(i));!p&&m!=="none"&&E.push(...kD(i,f,m,C));const B=[i,...E],F=await ap(t,w),A=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&A.push(F[h]),d){const k=SD(o,a,C);A.push(F[k[0]],F[k[1]])}if(S=[...S,{placement:o,overflows:A}],!A.every(k=>k<=0)){var P,O;const k=(((P=u.flip)==null?void 0:P.index)||0)+1,W=B[k];if(W)return{data:{index:k,overflows:S},reset:{placement:W}};let $=(O=S.filter(V=>V.overflows[0]<=0).sort((V,G)=>V.overflows[1]-G.overflows[1])[0])==null?void 0:O.placement;if(!$)switch(y){case"bestFit":{var H;const V=(H=S.map(G=>[G.placement,G.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((G,R)=>G[1]-R[1])[0])==null?void 0:H[0];V&&($=V);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};async function jD(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=fr(n),i=va(n),s=ha(n)==="y",l=["left","top"].includes(a)?-1:1,c=u&&s?-1:1,d=pa(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 ID=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 jD(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}}}}},MD=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}=pa(e,t),l={x:n,y:r},c=await ap(t,s),d=ha(fr(o)),p=np(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=tp(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=tp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function pn(e){return Ws(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(Ws(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ws(e){return e instanceof Node||e instanceof yt(e).Node}function vn(e){return e instanceof Element||e instanceof yt(e).Element}function tn(e){return e instanceof HTMLElement||e instanceof yt(e).HTMLElement}function ip(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function Wo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $D(e){return["table","td","th"].includes(pn(e))}function Us(e){const t=Hs(),n=kt(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 LD(e){let t=Hr(e);for(;tn(t)&&!ya(t);){if(Us(t))return t;t=Hr(t)}return null}function Hs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ya(e){return["html","body","#document"].includes(pn(e))}function kt(e){return yt(e).getComputedStyle(e)}function Da(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||kn(e);return ip(t)?t.host:t}function sp(e){const t=Hr(e);return ya(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&Wo(t)?t:sp(t)}function Ks(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=yt(o);return u?t.concat(a,a.visualViewport||[],Wo(o)?o:[],a.frameElement&&n?Ks(a.frameElement):[]):t.concat(o,Ks(o,[],n))}const zD=aa({type:String,values:a1,required:!1}),VD=Symbol("size"),lp=Symbol(),Ca=v.ref();function WD(e,t=void 0){const n=v.getCurrentInstance()?v.inject(lp,Ca):Ca;return e?v.computed(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}const UD=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?WD():void 0,a=(r=t==null?void 0:t.provide)!=null?r:o?v.provide:void 0;if(!a)return;const i=v.computed(()=>{const s=v.unref(e);return u!=null&&u.value?HD(u.value,s):s});return a(lp,i),a(i1,v.computed(()=>i.value.locale)),a(Ad,v.computed(()=>i.value.namespace)),a(ep,v.computed(()=>i.value.zIndex)),a(VD,{size:v.computed(()=>i.value.size||"")}),(n||!Ca.value)&&(Ca.value=i.value),i},HD=(e,t)=>{var n;const r=[...new Set([...Ed(e),...Ed(t)])],o={};for(const u of r)o[u]=(n=t[u])!=null?n:e[u];return o},KD=Zt({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:zD,button:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),qD={},QD=v.defineComponent({name:"ElConfigProvider",props:KD,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(qD,r??{})},{immediate:!0,deep:!0});const n=UD(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),YD=Ss(QD);var Pn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const cp=Symbol("formItemContextKey"),qs=Symbol("popper"),fp=Symbol("popperContent"),dp=Zt({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),GD=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),XD=v.defineComponent({...GD,props:dp,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(qs,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var ZD=Pn(XD,[["__file","popper.vue"]]);const pp=Zt({arrowOffset:{type:Number,default:5}}),JD=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),eC=v.defineComponent({...JD,props:pp,setup(e,{expose:t}){const n=e,r=No("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(fp,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 tC=Pn(eC,[["__file","arrow.vue"]]);const nC="ElOnlyChild",rC=v.defineComponent({name:nC,setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Zd),u=BD((r=o==null?void 0:o.setForwardRef)!=null?r:As);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=vp(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function vp(e){if(!e)return null;const t=e;for(const n of t){if(bs(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return hp(n);case v.Fragment:return vp(n.children);default:return n}return hp(n)}return null}function hp(e){const t=No("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const mp=Zt({virtualRef:{type:ge(Object)},virtualTriggering:Boolean,onMouseenter:{type:ge(Function)},onMouseleave:{type:ge(Function)},onClick:{type:ge(Function)},onKeydown:{type:ge(Function)},onFocus:{type:ge(Function)},onBlur:{type:ge(Function)},onContextmenu:{type:ge(Function)},id:String,open:Boolean}),oC=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),uC=v.defineComponent({...oC,props:mp,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(qs,void 0);ED(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=sr(c))},{immediate:!0}),v.watch(o,(c,d)=>{l==null||l(),l=void 0,ua(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)=>{xs(p[m])?c.removeAttribute(y):c.setAttribute(y,p[m])})},{immediate:!0})),ua(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(rC),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 aC=Pn(uC,[["__file","trigger.vue"]]);const Qs="focus-trap.focus-after-trapped",Ys="focus-trap.focus-after-released",iC="focus-trap.focusout-prevented",gp={cancelable:!0,bubbles:!1},sC={cancelable:!0,bubbles:!1},yp="focusAfterTrapped",Dp="focusAfterReleased",lC=Symbol("elFocusTrap"),Gs=v.ref(),wa=v.ref(0),Xs=v.ref(0);let Ea=0;const Cp=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},wp=(e,t)=>{for(const n of e)if(!cC(n,t))return n},cC=(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},fC=e=>{const t=Cp(e),n=wp(t,e),r=wp(t.reverse(),e);return[n,r]},dC=e=>e instanceof HTMLInputElement&&"select"in e,Tn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Xs.value=window.performance.now(),e!==n&&dC(e)&&t&&e.select()}};function Ep(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const pC=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=Ep(e,r),e.unshift(r)},remove:r=>{var o,u;e=Ep(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},vC=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Tn(r,t),document.activeElement!==n)return},Bp=pC(),hC=()=>wa.value>Xs.value,Ba=()=>{Gs.value="pointer",wa.value=window.performance.now()},Ap=()=>{Gs.value="keyboard",wa.value=window.performance.now()},mC=()=>(v.onMounted(()=>{Ea===0&&(document.addEventListener("mousedown",Ba),document.addEventListener("touchstart",Ba),document.addEventListener("keydown",Ap)),Ea++}),v.onBeforeUnmount(()=>{Ea--,Ea<=0&&(document.removeEventListener("mousedown",Ba),document.removeEventListener("touchstart",Ba),document.removeEventListener("keydown",Ap))}),{focusReason:Gs,lastUserFocusTimestamp:wa,lastAutomatedFocusTimestamp:Xs}),Aa=e=>new CustomEvent(iC,{...sC,detail:e}),gC=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[yp,Dp,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=mC();gD(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,F=f===ia.tab&&!w&&!h&&!g,A=document.activeElement;if(F&&A){const S=C,[P,O]=fC(S);if(P&&O){if(!E&&A===O){const k=Aa({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),B&&Tn(P,!0))}else if(E&&[P,S].includes(A)){const k=Aa({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),B&&Tn(O,!0))}}else if(A===S){const k=Aa({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||m.preventDefault()}}};v.provide(lC,{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(yp,m)},l=m=>t(Dp,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:Tn(o,!0))},d=m=>{const f=v.unref(n);if(!(a.paused||!f))if(e.trapped){const w=m.relatedTarget;!xs(w)&&!f.contains(w)&&setTimeout(()=>{if(!a.paused&&e.trapped){const h=Aa({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||Tn(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){Bp.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(Qs,gp);m.addEventListener(Qs,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;r1(g)||(Tn(g),document.activeElement!==g&&(g="first")),g==="first"&&vC(Cp(m),!0),(document.activeElement===f||g==="container")&&Tn(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(Qs,s);const f=new CustomEvent(Ys,{...gp,detail:{focusReason:u.value}});m.addEventListener(Ys,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!hC()||m.contains(document.activeElement))&&Tn(r??document.body),m.removeEventListener(Ys,l),Bp.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function yC(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var DC=Pn(gC,[["render",yC],["__file","focus-trap.vue"]]);const CC=["fixed","absolute"],wC=Zt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ge(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ps,default:"bottom"},popperOptions:{type:ge(Object),default:()=>({})},strategy:{type:String,values:CC,default:"absolute"}}),bp=Zt({...wC,id:String,style:{type:ge([String,Array,Object])},className:{type:ge([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:ge([String,Array,Object])},popperStyle:{type:ge([String,Array,Object])},referenceEl:{type:ge(Object)},triggerTargetEl:{type:ge(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),EC={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},BC=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...bC(e),...t]};return FC(u,o==null?void 0:o.modifiers),u},AC=e=>{if(fn)return sr(e)};function bC(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 FC(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const xC=0,SC=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(qs,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:xC;return{name:"arrow",enabled:!o1(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...BC(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>AC(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=pD(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}},OC=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=bD(),u=No("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(oa(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=oa(e.zIndex)?e.zIndex:o()}}},_C=(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")}}},kC=v.defineComponent({name:"ElPopperContent"}),PC=v.defineComponent({...kC,props:bp,emits:EC,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=_C(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=SC(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:F,updateZIndex:A}=OC(r,{styles:m,attributes:d,role:w}),S=v.inject(cp,void 0),P=v.ref();v.provide(fp,{arrowStyle:C,arrowRef:p,arrowOffset:P}),S&&(S.addInputId||S.removeInputId)&&v.provide(cp,{...S,addInputId:As,removeInputId:As});let O;const H=(W=!0)=>{h(),W&&A()},k=()=>{H(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(W,$)=>{O==null||O(),O=void 0;const V=v.unref(W||y.value),G=v.unref($||y.value);ua(V)&&(O=v.watch([w,()=>r.ariaLabel,g,()=>r.id],R=>{["role","aria-label","aria-modal","id"].forEach((M,U)=>{xs(R[U])?V.removeAttribute(M):V.setAttribute(M,R[U])})},{immediate:!0})),G!==V&&ua(G)&&["role","aria-label","aria-modal","id"].forEach(R=>{G.removeAttribute(R)})},{immediate:!0}),v.watch(()=>r.visible,k,{immediate:!0})}),v.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:y,popperInstanceRef:f,updatePopper:H,contentStyle:F}),(W,$)=>(v.openBlock(),v.createElementBlock("div",v.mergeProps({ref_key:"contentRef",ref:y},v.unref(E),{style:v.unref(F),class:v.unref(B),tabindex:"-1",onMouseenter:$[0]||($[0]=V=>W.$emit("mouseenter",V)),onMouseleave:$[1]||($[1]=V=>W.$emit("mouseleave",V))}),[v.createVNode(v.unref(DC),{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(W.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var TC=Pn(PC,[["__file","content.vue"]]);const RC=Ss(ZD),Zs=Symbol("elTooltip"),Fp=Zt({...CD,...bp,appendTo:{type:ge([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ge(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),xp=Zt({...mp,disabled:Boolean,trigger:{type:ge([String,Array]),default:"hover"},triggerKeys:{type:ge(Array),default:()=>[ia.enter,ia.space]}}),{useModelToggleProps:NC,useModelToggleEmits:jC,useModelToggle:IC}=bd("visible"),MC=Zt({...dp,...NC,...Fp,...xp,...pp,showArrow:{type:Boolean,default:!0}}),$C=[...jC,"before-show","before-hide","show","hide","open","close"],LC=(e,t)=>n1(e)?e.includes(t):e===t,Kr=(e,t,n)=>r=>{LC(v.unref(e),t)&&n(r)},zC=v.defineComponent({name:"ElTooltipTrigger"}),VC=v.defineComponent({...zC,props:xp,setup(e,{expose:t}){const n=e,r=No("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(Zs,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=cn(d,Kr(p,"hover",i)),m=cn(d,Kr(p,"hover",s)),f=cn(d,Kr(p,"click",E=>{E.button===0&&l(E)})),w=cn(d,Kr(p,"focus",i)),h=cn(d,Kr(p,"focus",s)),g=cn(d,Kr(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=cn(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(aC),{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 WC=Pn(VC,[["__file","trigger.vue"]]);const UC=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),HC=v.defineComponent({...UC,props:Fp,setup(e,{expose:t}){const n=e,{selector:r}=Xd(),o=No("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(Zs,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),F=v.computed(()=>{var R;return(R=n.style)!=null?R:{}}),A=v.computed(()=>!v.unref(l)),S=()=>{m()},P=()=>{if(v.unref(i))return!0},O=cn(P,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),H=cn(P,()=>{v.unref(c)==="hover"&&d()}),k=()=>{var R,M;(M=(R=u.value)==null?void 0:R.updatePopper)==null||M.call(R),f==null||f()},W=()=>{w==null||w()},$=()=>{y(),G=Gy(v.computed(()=>{var R;return(R=u.value)==null?void 0:R.popperContentRef}),()=>{if(v.unref(i))return;v.unref(c)!=="hover"&&d()})},V=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),R=>{R||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var R,M;(M=(R=u.value)==null?void 0:R.updatePopper)==null||M.call(R)}),t({contentRef:u}),(R,M)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!R.teleported,to:v.unref(B)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:S,onBeforeEnter:k,onAfterEnter:$,onBeforeLeave:W},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(TC),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":v.unref(A),"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,v.unref(F)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:v.unref(E),"z-index":R.zIndex,onMouseenter:v.unref(O),onMouseleave:v.unref(H),onBlur:V,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(R.$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 KC=Pn(HC,[["__file","content.vue"]]);const qC=["innerHTML"],QC={key:1},YC=v.defineComponent({name:"ElTooltip"}),GC=v.defineComponent({...YC,props:MC,emits:$C,setup(e,{expose:t,emit:n}){const r=e;DD();const o=mD(),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}=IC({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=wD({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>wd(r.visible)&&!p.value);v.provide(Zs,{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(RC),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(WC,{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(KC,{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,qC)):(v.openBlock(),v.createElementBlock("span",QC,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(tC),{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 XC=Pn(GC,[["__file","tooltip.vue"]]);const ZC=Ss(XC);var ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const JC={viewBox:"0 0 24 24",width:"1em",height:"1em"},ew=[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 tw(e,t){return v.openBlock(),v.createElementBlock("svg",JC,[...ew])}const nw={name:"iconoir-underline",render:tw},rw={viewBox:"0 0 24 24",width:"1em",height:"1em"},ow=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function uw(e,t){return v.openBlock(),v.createElementBlock("svg",rw,[...ow])}const aw={name:"ri-italic",render:uw},iw={viewBox:"0 0 20 20",width:"1em",height:"1em"},sw=[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.71c.18.105.377.2.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.71a5.42 5.42 0 0 0-.586-.29H3.5a.75.75 0 0 1 0-1.5z"},null,-1)];function lw(e,t){return v.openBlock(),v.createElementBlock("svg",iw,[...sw])}const cw={name:"fluent-text-strikethrough20-filled",render:lw},fw={viewBox:"0 0 24 24",width:"1em",height:"1em"},dw=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M12 11.667H8m4 0s3.333 0 3.333-3.334C15.333 5 12 5 12 5H8.6a.6.6 0 0 0-.6.6v6.067m4 0s4 0 4 3.666C16 19 12 19 12 19H8.6a.6.6 0 0 1-.6-.6v-6.733"},null,-1)];function pw(e,t){return v.openBlock(),v.createElementBlock("svg",fw,[...dw])}const vw={name:"iconoir-bold",render:pw};function Sp(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=da(n)!==u||da(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Op(e){return vn(e)?e:e.contextElement}function qr(e){const t=Op(e);if(!tn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Sp(t);let a=(u?da(n.width):n.width)/r,i=(u?da(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const hw=_n(0);function _p(e){const t=yt(e);return!Hs()||!t.visualViewport?hw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function Ho(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Op(e);let a=_n(1);t&&(r?vn(r)&&(a=qr(r)):a=qr(e));const i=mw(u,n,r)?_p(u):_n(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=yt(u),y=r&&vn(r)?yt(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=qr(f),h=f.getBoundingClientRect(),g=kt(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=yt(f),f=m.frameElement}}return ga({width:c,height:d,x:s,y:l})}const gw=[":popover-open",":modal"];function kp(e){return gw.some(t=>{try{return e.matches(t)}catch{return!1}})}function yw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=kn(r),i=t?kp(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=_n(1);const c=_n(0),d=tn(r);if((d||!d&&!u)&&((pn(r)!=="body"||Wo(a))&&(s=Da(r)),tn(r))){const p=Ho(r);l=qr(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 Dw(e){return Array.from(e.getClientRects())}function Pp(e){return Ho(kn(e)).left+Da(e).scrollLeft}function Cw(e){const t=kn(e),n=Da(e),r=e.ownerDocument.body,o=Ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Pp(e);const i=-n.scrollTop;return kt(r).direction==="rtl"&&(a+=Ur(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function ww(e,t){const n=yt(e),r=kn(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=Hs();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function Ew(e,t){const n=Ho(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=tn(e)?qr(e):_n(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 Tp(e,t,n){let r;if(t==="viewport")r=ww(e,n);else if(t==="document")r=Cw(kn(e));else if(vn(t))r=Ew(t,n);else{const o=_p(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ga(r)}function Rp(e,t){const n=Hr(e);return n===t||!vn(n)||ya(n)?!1:kt(n).position==="fixed"||Rp(n,t)}function Bw(e,t){const n=t.get(e);if(n)return n;let r=Ks(e,[],!1).filter(i=>vn(i)&&pn(i)!=="body"),o=null;const u=kt(e).position==="fixed";let a=u?Hr(e):e;for(;vn(a)&&!ya(a);){const i=kt(a),s=Us(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wo(a)&&!s&&Rp(e,a))?r=r.filter(c=>c!==a):o=i,a=Hr(a)}return t.set(e,r),r}function Aw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Bw(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=Tp(t,c,o);return l.top=Ur(d.top,l.top),l.right=zs(d.right,l.right),l.bottom=zs(d.bottom,l.bottom),l.left=Ur(d.left,l.left),l},Tp(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function bw(e){const{width:t,height:n}=Sp(e);return{width:t,height:n}}function Fw(e,t,n){const r=tn(t),o=kn(t),u=n==="fixed",a=Ho(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=_n(0);if(r||!r&&!u)if((pn(t)!=="body"||Wo(o))&&(i=Da(t)),r){const d=Ho(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=Pp(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 Np(e,t){return!tn(e)||kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function jp(e,t){const n=yt(e);if(!tn(e)||kp(e))return n;let r=Np(e,t);for(;r&&$D(r)&&kt(r).position==="static";)r=Np(r,t);return r&&(pn(r)==="html"||pn(r)==="body"&&kt(r).position==="static"&&!Us(r))?n:r||LD(e)||n}const xw=async function(e){const t=this.getOffsetParent||jp,n=this.getDimensions;return{reference:Fw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Sw(e){return kt(e).direction==="rtl"}const Ow={convertOffsetParentRelativeRectToViewportRelativeRect:yw,getDocumentElement:kn,getClippingRect:Aw,getOffsetParent:jp,getElementRects:xw,getClientRects:Dw,getDimensions:bw,getScale:qr,isElement:vn,isRTL:Sw},_w=MD,kw=ND,Pw=(e,t,n)=>{const r=new Map,o={platform:Ow,...n},u={...o.platform,_c:r};return RD(e,t,{...o,platform:u})};function Tw(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ip(e){if(Tw(e)){const t=e.$el;return Ws(t)&&pn(t)==="#comment"?null:t}return e}function Mp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $p(e,t){const n=Mp(e);return Math.round(t*n)/n}function Rw(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(()=>Ip(e.value)),c=v.computed(()=>Ip(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=$p(c.value,d.value),P=$p(c.value,p.value);return s.value?{...A,transform:"translate("+S+"px, "+P+"px)",...Mp(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:P+"px"}});let g;function C(){l.value==null||c.value==null||Pw(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 F(){o.value||(w.value=!1)}return v.watch([u,a,i],C,{flush:"sync"}),v.watch([l,c],B,{flush:"sync"}),v.watch(o,F,{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 Nw(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 Fa(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Js(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return Fa(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function jw(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))),Fa(o),n)}function Ko(e){return typeof e=="function"?e():v.unref(e)}const Iw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mw=e=>e!=null,$w=Object.prototype.toString,Lw=e=>$w.call(e)==="[object Object]",zw=()=>{};function Vw(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 Ww=e=>e();function Uw(e,t,n={}){const{eventFilter:r=Ww,...o}=n,u=Vw(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 Hw(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=Uw(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(Kw(e),qw(e))}),c}}}function Kw(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>Ko(t)):Ko(e)}function qw(e){return Array.isArray(e)?e.map(()=>{}):void 0}function qo(e){var t;const n=Ko(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Qo=Iw?window:void 0;function Qe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=Qo):[t,n,r,o]=e,!t)return zw;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(()=>[qo(t),Ko(o)],([c,d])=>{if(a(),!c)return;const p=Lw(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(c,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Fa(l),l}function Qw(e={}){var t;const{window:n=Qo,deep:r=!0}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var s;let l=o==null?void 0:o.activeElement;if(r)for(;l!=null&&l.shadowRoot;)l=(s=l==null?void 0:l.shadowRoot)==null?void 0:s.activeElement;return l},a=v.ref(),i=()=>{a.value=u()};return n&&(Qe(n,"blur",s=>{s.relatedTarget===null&&i()},!0),Qe(n,"focus",i,!0)),i(),a}function Yw(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function Gw(e){const t=Yw();return v.computed(()=>(t.value,!!e()))}function Xw(e,t,n={}){const{window:r=Qo,...o}=n;let u;const a=Gw(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=Ko(e),y=(Array.isArray(p)?p:[p]).map(qo).filter(Mw);return new Set(y)}),l=v.watch(()=>s.value,p=>{i(),a.value&&r&&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 Fa(d),{isSupported:a,stop:d,takeRecords:c}}function xa(e){const t=v.getCurrentInstance(),n=Nw(()=>null,()=>e?qo(e):t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function Zw(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=Qo}=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&&(Qe(e,"mouseenter",()=>i(!0),{passive:!0}),Qe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function Jw(e,t={}){const n=Qw(t),r=v.computed(()=>qo(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function eE(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=Qo}=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(()=>qo(e.target)||u);return Qe(c,"mousedown",s("mouse"),{passive:!0,capture:r}),Qe(u,"mouseleave",l,{passive:!0,capture:r}),Qe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Qe(c,"dragstart",s("mouse"),{passive:!0,capture:r}),Qe(u,"drop",l,{passive:!0,capture:r}),Qe(u,"dragend",l,{passive:!0,capture:r})),t&&(Qe(c,"touchstart",s("touch"),{passive:!0,capture:r}),Qe(u,"touchend",l,{passive:!0,capture:r}),Qe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const Sa=v.ref(),Oa=v.ref(),tE=Js(),Lp=Js();function _a(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function nE(){return String.fromCharCode(_a(97,122))}function rE(){return String.fromCharCode(_a(65,90))}function zp(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?_a(0,a-1):0,l=u[s];l==="l"?i+=nE():l==="u"?i+=rE():l==="n"&&(i+=_a(0,9))}return i}function oE(){return zp(1,{uppercase:!0})+zp(17,{uppercase:!0,number:!0})}const uE=typeof window<"u";function aE(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 iE(e,t,n){return aE(e,t,{...n,immediate:!0})}const Vp=jw(()=>{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=Js();return iE(Oa,()=>{Qe(window.document,"selectionchange",()=>{e.value=null,e.value=Oa.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 Vp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return Vp(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Vp(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Wp=Symbol.for("immer-nothing"),Up=Symbol.for("immer-draftable"),Dt=Symbol.for("immer-state");function Wt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qr=Object.getPrototypeOf;function dr(e){return!!e&&!!e[Dt]}function pr(e){var t;return e?Hp(e)||Array.isArray(e)||!!e[Up]||!!((t=e.constructor)!=null&&t[Up])||ka(e)||Pa(e):!1}var oE=Object.prototype.constructor.toString();function Hp(e){if(!e||typeof e!="object")return!1;const t=Qr(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)===oE}function qo(e,t){_a(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function _a(e){const t=e[Dt];return t?t.type_:Array.isArray(e)?1:ka(e)?2:Pa(e)?3:0}function Js(e,t){return _a(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kp(e,t,n){const r=_a(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function uE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ka(e){return e instanceof Map}function Pa(e){return e instanceof Set}function vr(e){return e.copy_||e.base_}function el(e,t){if(ka(e))return new Map(e);if(Pa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Hp(e))return Qr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Dt];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const u=r[o],a=n[u];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[u]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[u]})}return Object.create(Qr(e),n)}function tl(e,t=!1){return Ta(e)||dr(e)||!pr(e)||(_a(e)>1&&(e.set=e.add=e.clear=e.delete=aE),Object.freeze(e),t&&qo(e,(n,r)=>tl(r,!0))),e}function aE(){Wt(2)}function Ta(e){return Object.isFrozen(e)}var iE={};function hr(e){const t=iE[e];return t||Wt(0,e),t}var Qo;function qp(){return Qo}function sE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qp(e,t){t&&(hr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function nl(e){rl(e),e.drafts_.forEach(lE),e.drafts_=null}function rl(e){e===Qo&&(Qo=e.parent_)}function Yp(e){return Qo=sE(Qo,e)}function lE(e){const t=e[Dt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Gp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dt].modified_&&(nl(t),Wt(4)),pr(e)&&(e=Ra(t,e),t.parent_||Na(t,e)),t.patches_&&hr("Patches").generateReplacementPatches_(n[Dt].base_,e,t.patches_,t.inversePatches_)):e=Ra(t,n,[]),nl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Wp?e:void 0}function Ra(e,t,n){if(Ta(t))return t;const r=t[Dt];if(!r)return qo(t,(o,u)=>Xp(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Na(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),qo(u,(i,s)=>Xp(e,r,o,i,s,n,a)),Na(e,o,!1),n&&e.patches_&&hr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Xp(e,t,n,r,o,u,a){if(dr(o)){const i=u&&t&&t.type_!==3&&!Js(t.assigned_,r)?u.concat(r):void 0,s=Ra(e,o,i);if(Kp(n,r,s),dr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(pr(o)&&!Ta(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ra(e,o),(!t||!t.scope_.parent_)&&Na(e,o)}}function Na(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tl(t,n)}function cE(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:qp(),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=Yo);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var ol={get(e,t){if(t===Dt)return e;const n=vr(e);if(!Js(n,t))return fE(e,n,t);const r=n[t];return e.finalized_||!pr(r)?r:r===ul(e.base_,t)?(il(e),e.copy_[t]=sl(r,e)):r},has(e,t){return t in vr(e)},ownKeys(e){return Reflect.ownKeys(vr(e))},set(e,t,n){const r=Zp(vr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=ul(vr(e),t),u=o==null?void 0:o[Dt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(uE(n,o)&&(n!==void 0||Js(e.base_,t)))return!0;il(e),al(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 ul(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,il(e),al(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=vr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Wt(11)},getPrototypeOf(e){return Qr(e.base_)},setPrototypeOf(){Wt(12)}},Yo={};qo(ol,(e,t)=>{Yo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Yo.deleteProperty=function(e,t){return Yo.set.call(this,e,t,void 0)},Yo.set=function(e,t,n){return ol.set.call(this,e[0],t,n,e[0])};function ul(e,t){const n=e[Dt];return(n?vr(n):e)[t]}function fE(e,t,n){var o;const r=Zp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Zp(e,t){if(!(t in e))return;let n=Qr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Qr(n)}}function al(e){e.modified_||(e.modified_=!0,e.parent_&&al(e.parent_))}function il(e){e.copy_||(e.copy_=el(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dE=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,f=>n.call(this,f,...l))}}typeof n!="function"&&Wt(6),r!==void 0&&typeof r!="function"&&Wt(7);let o;if(pr(t)){const u=Yp(this),a=sl(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?nl(u):rl(u)}return Qp(u,r),Gp(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Wp&&(o=void 0),this.autoFreeze_&&tl(o,!0),r){const u=[],a=[];hr("Patches").generateReplacementPatches_(t,o,u,a),r(u,a)}return o}else Wt(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){pr(e)||Wt(8),dr(e)&&(e=pE(e));const t=Yp(this),n=sl(e,void 0);return n[Dt].isManual_=!0,rl(t),n}finishDraft(e,t){const n=e&&e[Dt];(!n||!n.isManual_)&&Wt(9);const{scope_:r}=n;return Qp(r,t),Gp(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=hr("Patches").applyPatches_;return dr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function sl(e,t){const n=ka(e)?hr("MapSet").proxyMap_(e,t):Pa(e)?hr("MapSet").proxySet_(e,t):cE(e,t);return(t?t.scope_:qp()).drafts_.push(n),n}function pE(e){return dr(e)||Wt(10,e),Jp(e)}function Jp(e){if(!pr(e)||Ta(e))return e;const t=e[Dt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=el(e,t.scope_.immer_.useStrictShallowCopy_)}else n=el(e,!0);return qo(n,(r,o)=>{Kp(n,r,Jp(o))}),t&&(t.finalized_=!1),n}var Ct=new dE,ll=Ct.produce;Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct);var ev=Ct.createDraft.bind(Ct),tv=Ct.finishDraft.bind(Ct),vE={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()}}},hE={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ie.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},mE={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=S.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},ja=new WeakMap,Ia=new WeakMap,Go=new WeakMap,nv=new WeakMap,rv=new WeakMap,ov=new WeakMap,uv=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:f}=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]>=f&&(r[l.length-1]+=1,r[l.length]-=f);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 Xo(e){"@babel/helpers - typeof";return Xo=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},Xo(e)}function gE(e,t){if(Xo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yE(e){var t=gE(e,"string");return Xo(t)==="symbol"?t:String(t)}function tt(e,t,n){return t=yE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function av(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?av(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var DE=(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 S.points(t))t[s]=ie.transform(i,n);break}case"insert_text":{var{path:l,offset:f,text:d}=n;if(d.length===0)break;var p=Q.leaf(e,l),y=p.text.slice(0,f),m=p.text.slice(f);if(p.text=y+d+m,t)for(var[c,w]of S.points(t))t[w]=ie.transform(c,n);break}case"merge_node":{var{path:h}=n,g=Q.get(e,h),C=b.previous(h),E=Q.get(e,C),A=Q.parent(e,h),x=h[h.length-1];if(J.isText(g)&&J.isText(E))E.text+=g.text;else if(!J.isText(g)&&!J.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(ze.stringify(g)," ").concat(ze.stringify(E)));if(A.children.splice(x,1),t)for(var[B,O]of S.points(t))t[O]=ie.transform(B,n);break}case"move_node":{var{path:k,newPath:_}=n;if(b.isAncestor(k,_))throw new Error("Cannot move a path [".concat(k,"] to new path [").concat(_,"] because the destination is inside itself."));var K=Q.get(e,k),P=Q.parent(e,k),z=k[k.length-1];P.children.splice(z,1);var L=b.transform(k,n),W=Q.get(e,b.parent(L)),G=L[L.length-1];if(W.children.splice(G,0,K),t)for(var[R,I]of S.points(t))t[I]=ie.transform(R,n);break}case"remove_node":{var{path:V}=n,Y=V[V.length-1],ne=Q.parent(e,V);if(ne.children.splice(Y,1),t)for(var[te,Be]of S.points(t)){var F=ie.transform(te,n);if(t!=null&&F!=null)t[Be]=F;else{var U=void 0,j=void 0;for(var[q,re]of Q.texts(e))if(b.compare(re,V)===-1)U=[q,re];else{j=[q,re];break}var ee=!1;U&&j&&(b.equals(j[1],V)?ee=!b.hasPrevious(j[1]):ee=b.common(U[1],V).length<b.common(j[1],V).length),U&&!ee?(te.path=U[1],te.offset=U[0].text.length):j?(te.path=j[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ae,offset:ce,text:de}=n;if(de.length===0)break;var ve=Q.leaf(e,ae),le=ve.text.slice(0,ce),Ie=ve.text.slice(ce+de.length);if(ve.text=le+Ie,t)for(var[Re,Ae]of S.points(t))t[Ae]=ie.transform(Re,n);break}case"set_node":{var{path:xt,properties:zt,newProperties:_e}=n;if(xt.length===0)throw new Error("Cannot set properties on the root node!");var et=Q.get(e,xt);for(var he in _e){if(he==="children"||he==="text")throw new Error('Cannot set the "'.concat(he,'" property of nodes!'));var Le=_e[he];Le==null?delete et[he]:et[he]=Le}for(var ke in zt)_e.hasOwnProperty(ke)||delete et[ke];break}case"set_selection":{var{newProperties:Ne}=n;if(Ne==null)t=Ne;else{if(t==null){if(!S.isRange(Ne))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ze.stringify(Ne)," when there is no current selection."));t=Zo({},Ne)}for(var mt in Ne){var Nr=Ne[mt];if(Nr==null){if(mt==="anchor"||mt==="focus")throw new Error('Cannot remove the "'.concat(mt,'" selection property'));delete t[mt]}else t[mt]=Nr}}break}case"split_node":{var{path:gt,position:jr,properties:ws}=n;if(gt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gt,"] because the root node cannot be split."));var Ir=Q.get(e,gt),E3=Q.parent(e,gt),B3=gt[gt.length-1],id;if(J.isText(Ir)){var A3=Ir.text.slice(0,jr),b3=Ir.text.slice(jr);Ir.text=A3,id=Zo(Zo({},ws),{},{text:b3})}else{var F3=Ir.children.slice(0,jr),x3=Ir.children.slice(jr);Ir.children=F3,id=Zo(Zo({},ws),{},{children:x3})}if(E3.children.splice(B3+1,0,id),t)for(var[O3,S3]of S.points(t))t[S3]=ie.transform(O3,n);break}}return t},CE={transform(e,t){e.children=ev(e.children);var n=e.selection&&ev(e.selection);try{n=DE(e,n,t)}finally{e.children=tv(e.children),n?e.selection=dr(n)?tv(n):n:e.selection=null}}},wE={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)}},EE={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)}},iv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!iv(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 BE(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 hn(e,t){if(e==null)return{};var n=BE(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 AE=["anchor","focus"];function sv(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 bE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var S={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return S.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=S.edges(e);return t},equals(e,t){return ie.equals(e.anchor,t.anchor)&&ie.equals(e.focus,t.focus)},includes(e,t){if(S.isRange(t)){if(S.includes(e,t.anchor)||S.includes(e,t.focus))return!0;var[n,r]=S.edges(e),[o,u]=S.edges(t);return ie.isBefore(n,o)&&ie.isAfter(r,u)}var[a,i]=S.edges(e),s=!1,l=!1;return ie.isPoint(t)?(s=ie.compare(t,a)>=0,l=ie.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=hn(e,AE),[r,o]=S.edges(e),[u,a]=S.edges(t),i=ie.isBefore(r,u)?u:r,s=ie.isBefore(o,a)?o:a;return ie.isBefore(s,i)?null:bE({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ie.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ie.equals(t,n)},isExpanded(e){return!S.isCollapsed(e)},isForward(e){return!S.isBackward(e)},isRange(e){return Ue(e)&&ie.isPoint(e.anchor)&&ie.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=S.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ll(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,u,a;if(o==="inward"){var i=S.isCollapsed(r);S.isForward(r)?(u="forward",a=i?u:"backward"):(u="backward",a=i?u:"forward")}else o==="outward"?S.isForward(r)?(u="backward",a="forward"):(u="forward",a="backward"):(u=o,a=o);var s=ie.transform(r.anchor,t,{affinity:u}),l=ie.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},lv=e=>Ue(e)&&Q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&Q.isNodeList(e.children)},isElement:lv,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 lv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},FE=["children"],xE=["text"],cv=new WeakMap,Q={ancestor(e,t){var n=Q.get(e,t);if(J.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ze.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(J.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ze.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ze.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(ze.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=hn(e,FE);return t}else{var t=hn(e,xE);return t}},first(e,t){for(var n=t.slice(),r=Q.get(e,n);r&&!(J.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(J.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ze.stringify(e)));var n=ll({children:e.children},r=>{var[o,u]=S.edges(t),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,y]=p;return!S.includes(t,y)}});for(var[,i]of a){if(!S.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 f=Q.leaf(r,i);f.text=f.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(J.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ze.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(J.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return J.isText(e)||X.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=cv.get(e);if(t!==void 0)return t;var n=e.every(r=>Q.isNode(r));return cv.set(e,n),n},last(e,t){for(var n=t.slice(),r=Q.get(e,n);r&&!(J.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(!J.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ze.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)||J.isText(e)&&J.isTextProps(t)&&J.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)&&!J.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 f=b.next(i);if(Q.has(e,f)){i=f,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(J.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 J.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))J.isText(n)&&(yield[n,r])}()}};function fv(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rn={isNodeOperation(e){return Rn.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&&S.isRange(e.newProperties)||e.newProperties===null&&S.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=>Rn.isOperation(t))},isSelectionOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Ce(Ce({},e),{},{type:"remove_node"});case"insert_text":return Ce(Ce({},e),{},{type:"remove_text"});case"merge_node":return Ce(Ce({},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 Ce(Ce({},e),{},{path:t,newPath:n});var r=b.transform(n,e),o=b.transform(b.next(n),e);return Ce(Ce({},e),{},{path:r,newPath:o})}case"remove_node":return Ce(Ce({},e),{},{type:"insert_node"});case"remove_text":return Ce(Ce({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return Ce(Ce({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?Ce(Ce({},e),{},{properties:s,newProperties:null}):s==null?Ce(Ce({},e),{},{properties:null,newProperties:i}):Ce(Ce({},e),{},{properties:s,newProperties:i})}case"split_node":return Ce(Ce({},e),{},{type:"merge_node",path:b.next(e.path)})}}},dv=new WeakMap,OE=e=>{var t=dv.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||S.isRange(e.selection))&&Q.isNodeList(e.children)&&Rn.isOperationList(e.operations);return dv.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 OE(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)}},SE={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(b.isPath)}};function pv(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 vv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ie={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 ie.compare(e,t)===1},isBefore(e,t){return ie.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 ll(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,vv(vv({},n),{},{affinity:"forward"})))}else r.path=b.transform(u,t,n);break}}})}},hv=void 0,ze={setScrubber(e){hv=e},stringify(e){return JSON.stringify(e,hv)}},_E=["text"],kE=["anchor","focus"];function mv(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 mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var J={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=hn(u,_E);return a}return iv(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=>J.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=[mn({},e)];for(var r of t){var o=hn(r,kE),[u,a]=S.edges(r),i=[],s=0,l=u.offset,f=a.offset;for(var d of n){var{length:p}=d.text,y=s;if(s+=p,l<=y&&s<=f){Object.assign(d,o),i.push(d);continue}if(l!==f&&(l===s||f===y)||l>s||f<y||f===y&&y!==0){i.push(d);continue}var m=d,c=void 0,w=void 0;if(f<s){var h=f-y;w=mn(mn({},m),{},{text:m.text.slice(h)}),m=mn(mn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;c=mn(mn({},m),{},{text:m.text.slice(0,g)}),m=mn(mn({},m),{},{text:m.text.slice(g)})}Object.assign(m,o),c&&i.push(c),i.push(m),w&&i.push(w)}n=i}return n}},cl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],Yr=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},fl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?IE(t):t,u=ue.None,a=ue.None,i=0,s=null,l=null;for(var f of o){var d=f.codePointAt(0);if(!d)break;var p=YE(f,d);if([u,a]=r?[a,p]:[p,u],Gr(u,ue.ZWJ)&&Gr(a,ue.ExtPict)&&(r?s=gv(t.substring(0,i)):s=gv(t.substring(0,t.length-i)),!s)||Gr(u,ue.RI)&&Gr(a,ue.RI)&&(l!==null?l=!l:r?l=!0:l=eB(t.substring(0,t.length-i)),!l)||u!==ue.None&&a!==ue.None&&XE(u,a))break;i+=f.length}return i||1},PE=/\s/,TE=/[\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]/,RE=/['\u2018\u2019]/,NE=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=fl(t,n),[a,i]=dl(t,u,n);if(jE(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},dl=(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)]},jE=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(PE.test(t))return!1;if(RE.test(t)){var o=fl(n,r),[u,a]=dl(n,o,r);if(e(u,a,r))return!0}return!TE.test(t)},IE=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if($E(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(ME(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},ME=e=>e>=55296&&e<=56319,$E=e=>e>=56320&&e<=57343,ue;(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"})(ue||(ue={}));var LE=/^(?:[\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])$/,zE=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,VE=/^(?:[\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])$/,WE=/^[\u1100-\u115F\uA960-\uA97C]$/,UE=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,HE=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,KE=/^[\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]$/,qE=/^[\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]$/,QE=/^(?:[\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])$/,YE=(e,t)=>{var n=ue.Any;return e.search(LE)!==-1&&(n|=ue.Extend),t===8205&&(n|=ue.ZWJ),t>=127462&&t<=127487&&(n|=ue.RI),e.search(zE)!==-1&&(n|=ue.Prepend),e.search(VE)!==-1&&(n|=ue.SpacingMark),e.search(WE)!==-1&&(n|=ue.L),e.search(UE)!==-1&&(n|=ue.V),e.search(HE)!==-1&&(n|=ue.T),e.search(KE)!==-1&&(n|=ue.LV),e.search(qE)!==-1&&(n|=ue.LVT),e.search(QE)!==-1&&(n|=ue.ExtPict),n};function Gr(e,t){return(e&t)!==0}var GE=[[ue.L,ue.L|ue.V|ue.LV|ue.LVT],[ue.LV|ue.V,ue.V|ue.T],[ue.LVT|ue.T,ue.T],[ue.Any,ue.Extend|ue.ZWJ],[ue.Any,ue.SpacingMark],[ue.Prepend,ue.Any],[ue.ZWJ,ue.ExtPict],[ue.RI,ue.RI]];function XE(e,t){return GE.findIndex(n=>Gr(e,n[0])&&Gr(t,n[1]))===-1}var ZE=/(?:[\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$/,gv=e=>e.search(ZE)!==-1,JE=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,eB=e=>{var t=e.match(JE);if(t===null)return!1;var n=t[0].length/2;return n%2===1},tB={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=cl(e)}=n;if(b.isPath(o)&&(o=D.range(e,o)),S.isRange(o))if(S.isCollapsed(o))o=o.anchor;else{var u=S.end(o);if(!r&&D.void(e,{at:u}))return;var a=S.start(o),i=D.pointRef(e,a),s=D.pointRef(e,u);N.delete(e,{at:o,voids:r});var l=i.unref(),f=s.unref();o=l||f,N.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 yv(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 Ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var N=Ma(Ma(Ma(Ma({},CE),wE),EE),tB),nB=(e,t)=>{for(var n of D.pathRefs(e))vE.transform(n,t);for(var r of D.pointRefs(e))hE.transform(r,t);for(var o of D.rangeRefs(e))mE.transform(o,t);var u=ja.get(e)||[],a=Ia.get(e)||new Set,i,s,l=m=>{if(m){var c=m.join(",");s.has(c)||(s.add(c),i.push(m))}};if(b.operationCanTransformPath(t)){i=[],s=new Set;for(var f of u){var d=b.transform(f,t);l(d)}}else i=u,s=a;var p=e.getDirtyPaths(t);for(var y of p)l(y);ja.set(e,i),Ia.set(e,s),N.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),Go.get(e)||(Go.set(e,!0),Promise.resolve().then(()=>{Go.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},rB=(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=J.isText(r)?[]:Array.from(Q.nodes(r),_=>{var[,K]=_;return o.concat(K)});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:f,newPath:d}=t;if(b.equals(f,d))return[];var p=[],y=[];for(var m of b.ancestors(f)){var c=b.transform(m,t);p.push(c)}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:A}=t,x=b.ancestors(A);return[...x]}case"split_node":{var{path:B}=t,O=b.levels(B),k=b.next(B);return[...O,k]}default:return[]}},oB=e=>{var{selection:t}=e;return t?Q.fragment(e,t):[]},uB=(e,t)=>{var[n,r]=t;if(!J.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};N.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||J.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(!J.isText(s)){var l=s.children[a],f=s.children[a-1],d=i===n.children.length-1,p=J.isText(l)||X.isElement(l)&&e.isInline(l);if(p!==u)N.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(X.isElement(l)){if(e.isInline(l)){if(f==null||!J.isText(f)){var y={text:""};N.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};N.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else f!=null&&J.isText(f)&&(J.equals(l,f,{loose:!0})?(N.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):f.text===""?(N.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(N.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},aB=(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},iB=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,f]of D.levels(t,{at:i,voids:r,match:a,reverse:s}))if(!J.isText(l)){if(S.isRange(u)){if(b.isAncestor(f,u.anchor.path)&&b.isAncestor(f,u.focus.path))return[l,f]}else if(!b.equals(i,f))return[l,f]}}};function Dv(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 Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sB=(e,t,n)=>{var{selection:r}=e;if(r){var o=(d,p)=>{if(!J.isText(d))return!1;var[y,m]=D.parent(e,p);return!e.isVoid(y)||e.markableVoid(y)},u=S.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)N.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var f=Cv(Cv({},D.marks(e)||{}),{},{[t]:n});e.marks=f,Go.get(e)||e.onChange()}}};function wv(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 Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lB=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 f of D.positions(t,Ev(Ev({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=f),s++}return l};function Bv(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 Av(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cB=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 f of D.positions(t,Av(Av({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=f),s++}return l},fB=(e,t)=>{var{selection:n}=e;n&&S.isCollapsed(n)&&N.delete(e,{unit:t,reverse:!0})},dB=(e,t)=>{var{selection:n}=e;n&&S.isCollapsed(n)&&N.delete(e,{unit:t})},pB=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&S.isExpanded(r)&&N.delete(t,{reverse:n==="backward"})},vB=(e,t)=>[D.start(e,t),D.end(e,t)];function bv(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 Fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var hB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Fv(Fv({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},mB=(e,t)=>D.point(e,t,{edge:"end"}),gB=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},yB=(e,t)=>{var n=D.range(e,t);return Q.fragment(e,n)};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 Ov(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){tt(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 DB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Ov(Ov({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},CB=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),wB=(e,t)=>t.children.some(n=>J.isText(n)||D.isInline(e,n)),EB=(e,t)=>Q.has(e,t),BB=(e,t)=>t.children.every(n=>J.isText(n)),AB=e=>{N.splitNodes(e,{always:!0})},bB=(e,t,n)=>{N.insertNodes(e,t,n)},FB=e=>{N.splitNodes(e,{always:!0})};function Sv(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 xB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var OB=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=xB({text:n},u);N.insertNodes(t,a,{at:r.at,voids:r.voids})}else N.insertText(t,n,r);t.marks=null}},SB=(e,t)=>!e.isInline(t),_B=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),kB=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&J.isText(r)&&r.text===""&&!e.isVoid(t)},PB=(e,t,n)=>{var r=D.end(e,n);return ie.equals(t,r)},TB=e=>{var t=nv.get(e);return t===void 0?!0:t},RB=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ie.equals(t,r)},NB=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},jB=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 IB(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 MB=["text"],$B=["text"],LB=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:o,focus:u}=r;if(n)return n;if(S.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:J.isText,at:{anchor:o,focus:u}});if(s){var[l]=s,f=hn(l,MB);return f}else return{}}var{path:d}=o,[p]=D.leaf(t,d);if(o.offset===0){var y=D.previous(t,{at:d,match:J.isText}),m=D.above(t,{match:E=>X.isElement(E)&&D.isVoid(t,E)&&t.markableVoid(E)});if(!m){var c=D.above(t,{match:E=>X.isElement(E)&&D.isBlock(t,E)});if(y&&c){var[w,h]=y,[,g]=c;b.isAncestor(g,h)&&(p=w)}}}var C=hn(p,$B);return C},zB=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[f]=D.parent(t,a);u=p=>f.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{at:l,match:u,mode:r,voids:o});return d}}},VB=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 WB(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,f;if(SE.isSpan(n))l=n[0],f=n[1];else{var d=D.path(e,n,{edge:"start"}),p=D.path(e,n,{edge:"end"});l=u?p:d,f=u?d:p}var y=Q.nodes(e,{reverse:u,from:l,to:f,pass:E=>{var[A]=E;return X.isElement(A)?!!(!a&&(D.isVoid(e,A)||D.isElementReadOnly(e,A))||i&&!D.isSelectable(e,A)):!1}}),m=[],c;for(var[w,h]of y)if(!(i&&X.isElement(w)&&!D.isSelectable(e,w))){var g=c&&b.compare(h,c[1])===0;if(!(r==="highest"&&g)){if(!s(w,h)){if(o&&!g&&J.isText(w))return;continue}if(r==="lowest"&&g){c=[w,h];continue}var C=r==="lowest"?c:[w,h];C&&(o?m.push(C):yield C),c=[w,h]}}r==="lowest"&&c&&(o?m.push(c):yield c),o&&(yield*m)}}()}var UB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=f=>ja.get(f)||[],a=f=>Ia.get(f)||new Set,i=f=>{var d=u(f).pop(),p=d.join(",");return a(f).delete(p),d};if(D.isNormalizing(t)){if(r){var s=Array.from(Q.nodes(t),f=>{var[,d]=f;return d}),l=new Set(s.map(f=>f.join(",")));ja.set(t,s),Ia.set(t,l)}u(t).length!==0&&D.withoutNormalizing(t,()=>{for(var f of u(t))if(Q.has(t,f)){var d=D.node(t,f),[p,y]=d;X.isElement(p)&&p.children.length===0&&t.normalizeNode(d,{operation:o})}for(var m=u(t),c=m.length,w=0;m.length!==0;){if(!t.shouldNormalize({dirtyPaths:m,iteration:w,initialDirtyPathsLength:c,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)}})}},HB=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},KB=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},qB=e=>{var t=rv.get(e);return t||(t=new Set,rv.set(e,t)),t},QB=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 S.isRange(n)&&(u==="start"?n=S.start(n):u==="end"?n=S.end(n):n=b.common(n.anchor.path,n.focus.path)),ie.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},YB=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},GB=e=>{var t=ov.get(e);return t||(t=new Set,ov.set(e,t)),t},XB=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(!J.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(S.isRange(n)){var[l,f]=S.edges(n);return o==="start"?l:f}return n};function ZB(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]=S.edges(i),f=o?l:s,d=!1,p="",y=0,m=0,c=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(J.isText(w)){var E=b.equals(h,f.path);for(E?(m=o?f.offset:w.text.length-f.offset,c=f.offset):(m=w.text.length,c=o?m:0),(E||d||r==="offset")&&(yield{path:h,offset:c},d=!1);;){if(y===0){if(p==="")break;y=A(p,r,o),p=dl(p,y,o)[1]}if(c=o?c-y:c+y,m=m-y,m<0){y=-m;break}y=0,yield{path:h,offset:c}}}}function A(x,B,O){return B==="character"?fl(x,O):B==="word"?NE(x,O):B==="line"||B==="block"?x.length:1}}()}var JB=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[f]=D.parent(t,a);u=p=>f.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{reverse:!0,at:l,match:u,mode:r,voids:o});return d}}},eA=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},tA=e=>{var t=uv.get(e);return t||(t=new Set,uv.set(e,t)),t},nA=(e,t,n)=>{if(S.isRange(t)&&!n)return t;var r=D.start(e,t),o=D.end(e,n||t);return{anchor:r,focus:o}};function _v(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 rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_v(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oA=(e,t)=>{var{selection:n}=e;if(n){var r=(f,d)=>{if(!J.isText(f))return!1;var[p,y]=D.parent(e,d);return!e.isVoid(p)||e.markableVoid(p)},o=S.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)N.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=rA({},D.marks(e)||{});delete l[t],e.marks=l,Go.get(e)||e.onChange()}}},uA=(e,t)=>{nv.set(e,t)},aA=(e,t)=>D.point(e,t,{edge:"start"}),iA=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]=S.edges(u),s="";for(var[l,f]of D.nodes(t,{at:u,match:J.isText,voids:o})){var d=l.text;b.equals(f,i.path)&&(d=d.slice(0,i.offset)),b.equals(f,a.path)&&(d=d.slice(a.offset)),s+=d}return s},sA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[u,a]=S.edges(n);if(u.offset!==0||a.offset!==0||S.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),f={anchor:l,focus:a},d=!0;for(var[p,y]of D.nodes(t,{at:f,match:J.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}},lA=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},cA=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:f=!1}=n;if(l){var d=!1;if(S.isRange(l)&&S.isCollapsed(l)&&(d=!0,l=l.anchor),ie.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},c=u?D.before(t,l,m)||D.start(t,[]):D.after(t,l,m)||D.end(t,[]);l={anchor:l,focus:c},f=!0}}if(b.isPath(l)){N.removeNodes(t,{at:l,voids:s});return}if(!S.isCollapsed(l)){if(!f){var[,w]=S.edges(l),h=D.end(t,[]);ie.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=S.edges(l),E=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:g,voids:s}),A=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:C,voids:s}),x=E&&A&&!b.equals(E[1],A[1]),B=b.equals(g.path,C.path),O=s?null:(r=D.void(t,{at:g,mode:"highest"}))!==null&&r!==void 0?r:D.elementReadOnly(t,{at:g,mode:"highest"}),k=s?null:(o=D.void(t,{at:C,mode:"highest"}))!==null&&o!==void 0?o:D.elementReadOnly(t,{at:C,mode:"highest"});if(O){var _=D.before(t,g);_&&E&&b.isAncestor(E[1],_.path)&&(g=_)}if(k){var K=D.after(t,C);K&&A&&b.isAncestor(A[1],K.path)&&(C=K)}var P=[],z;for(var L of D.nodes(t,{at:l,voids:s})){var[W,G]=L;z&&b.compare(G,z)===0||(!s&&X.isElement(W)&&(D.isVoid(t,W)||D.isElementReadOnly(t,W))||!b.isCommon(G,g.path)&&!b.isCommon(G,C.path))&&(P.push(L),z=G)}var R=Array.from(P,le=>{var[,Ie]=le;return D.pathRef(t,Ie)}),I=D.pointRef(t,g),V=D.pointRef(t,C),Y="";if(!B&&!O){var ne=I.current,[te]=D.leaf(t,ne),{path:Be}=ne,{offset:F}=g,U=te.text.slice(F);U.length>0&&(t.apply({type:"remove_text",path:Be,offset:F,text:U}),Y=U)}if(R.reverse().map(le=>le.unref()).filter(le=>le!==null).forEach(le=>N.removeNodes(t,{at:le,voids:s})),!k){var j=V.current,[q]=D.leaf(t,j),{path:re}=j,ee=B?g.offset:0,ae=q.text.slice(ee,C.offset);ae.length>0&&(t.apply({type:"remove_text",path:re,offset:ee,text:ae}),Y=ae)}!B&&x&&V.current&&I.current&&N.mergeNodes(t,{at:V.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Y.length>1&&Y.match(/[\u0E00-\u0E7F]+/)&&N.insertText(t,Y.slice(0,Y.length-i));var ce=I.unref(),de=V.unref(),ve=u?ce||de:de||ce;n.at==null&&ve&&N.select(t,ve)}}})},fA=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=cl(t)}=r;if(n.length){if(S.isRange(a))if(o||(a=D.unhangRange(t,a,{voids:u})),S.isCollapsed(a))a=a.anchor;else{var[,i]=S.edges(a);if(!u&&D.void(t,{at:i}))return;var s=D.pointRef(t,i);N.delete(t,{at:a}),a=s.unref()}else b.isPath(a)&&(a=D.start(t,a));if(!(!u&&D.void(t,{at:a}))){var l=D.above(t,{at:a,match:F=>X.isElement(F)&&D.isInline(t,F),mode:"highest",voids:u});if(l){var[,f]=l;if(D.isEnd(t,a,f)){var d=D.after(t,f);a=d}else if(D.isStart(t,a,f)){var p=D.before(t,f);a=p}}var y=D.above(t,{match:F=>X.isElement(F)&&D.isBlock(t,F),at:a,voids:u}),[,m]=y,c=D.isStart(t,a,m),w=D.isEnd(t,a,m),h=c&&w,g=!c||c&&w,C=!w,[,E]=Q.first({children:n},[]),[,A]=Q.last({children:n},[]),x=[],B=F=>{var[U,j]=F,q=j.length===0;return q?!1:h?!0:!(g&&b.isAncestor(j,E)&&X.isElement(U)&&!t.isVoid(U)&&!t.isInline(U)||C&&b.isAncestor(j,A)&&X.isElement(U)&&!t.isVoid(U)&&!t.isInline(U))};for(var O of Q.nodes({children:n},{pass:B}))B(O)&&x.push(O);var k=[],_=[],K=[],P=!0,z=!1;for(var[L]of x)X.isElement(L)&&!t.isInline(L)?(P=!1,z=!0,_.push(L)):P?k.push(L):K.push(L);var[W]=D.nodes(t,{at:a,match:F=>J.isText(F)||D.isInline(t,F),mode:"highest",voids:u}),[,G]=W,R=D.isStart(t,a,G),I=D.isEnd(t,a,G),V=D.pathRef(t,w&&!K.length?b.next(m):m),Y=D.pathRef(t,I?b.next(G):G);N.splitNodes(t,{at:a,match:F=>z?X.isElement(F)&&D.isBlock(t,F):J.isText(F)||D.isInline(t,F),mode:z?"lowest":"highest",always:z&&(!c||k.length>0)&&(!w||K.length>0),voids:u});var ne=D.pathRef(t,!R||R&&I?b.next(G):G);if(N.insertNodes(t,k,{at:ne.current,match:F=>J.isText(F)||D.isInline(t,F),mode:"highest",voids:u}),h&&!k.length&&_.length&&!K.length&&N.delete(t,{at:m,voids:u}),N.insertNodes(t,_,{at:V.current,match:F=>X.isElement(F)&&D.isBlock(t,F),mode:"lowest",voids:u}),N.insertNodes(t,K,{at:Y.current,match:F=>J.isText(F)||D.isInline(t,F),mode:"highest",voids:u}),!r.at){var te;if(K.length>0&&Y.current?te=b.previous(Y.current):_.length>0&&V.current?te=b.previous(V.current):ne.current&&(te=b.previous(ne.current)),te){var Be=D.end(t,te);N.select(t,Be)}}ne.unref(),V.unref(),Y.unref()}}})},dA=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")N.select(t,o.anchor);else if(r==="focus")N.select(t,o.focus);else if(r==="start"){var[u]=S.edges(o);N.select(t,u)}else if(r==="end"){var[,a]=S.edges(o);N.select(t,a)}}else return},pA=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},vA=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=S.isBackward(r)?"focus":"anchor"),i==="end"&&(i=S.isBackward(r)?"anchor":"focus");var{anchor:s,focus:l}=r,f={distance:o,unit:u,ignoreNonSelectable:!0},d={};if(i==null||i==="anchor"){var p=a?D.before(t,s,f):D.after(t,s,f);p&&(d.anchor=p)}if(i==null||i==="focus"){var y=a?D.before(t,l,f):D.after(t,l,f);y&&(d.focus=y)}N.setSelection(t,d)}},hA=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){N.setSelection(e,t);return}if(!S.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(ze.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function kv(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 Pv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mA=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=S.isBackward(o)?"focus":"anchor"),u==="end"&&(u=S.isBackward(o)?"anchor":"focus");var{anchor:a,focus:i}=o,s=u==="anchor"?a:i;N.setSelection(t,{[u==="anchor"?"anchor":"focus"]:Pv(Pv({},s),n)})}},gA=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ie.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ie.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})}},yA=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"}=r,{at:i,match:s,select:l}=r;if(Q.isNode(n)&&(n=[n]),n.length!==0){var[f]=n;if(i||(i=cl(t),l!==!1&&(l=!0)),l==null&&(l=!1),S.isRange(i))if(o||(i=D.unhangRange(t,i,{voids:u})),S.isCollapsed(i))i=i.anchor;else{var[,d]=S.edges(i),p=D.pointRef(t,d);N.delete(t,{at:i}),i=p.unref()}if(ie.isPoint(i)){s==null&&(J.isText(f)?s=B=>J.isText(B):t.isInline(f)?s=B=>J.isText(B)||D.isInline(t,B):s=B=>X.isElement(B)&&D.isBlock(t,B));var[y]=D.nodes(t,{at:i.path,match:s,mode:a,voids:u});if(y){var[,m]=y,c=D.pathRef(t,m),w=D.isEnd(t,i,m);N.splitNodes(t,{at:i,match:s,mode:a,voids:u});var h=c.unref();i=w?b.next(h):h}else return}var g=b.parent(i),C=i[i.length-1];if(!(!u&&D.void(t,{at:g}))){for(var E of n){var A=g.concat(C);C++,t.apply({type:"insert_node",path:A,node:E}),i=b.next(i)}if(i=b.previous(i),l){var x=D.end(t,i);x&&N.select(t,x)}}}})},DA=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)?Yr(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[,A]=E;return D.pathRef(t,A)});for(var l of s){var f=l.unref();if(f.length<2)throw new Error("Cannot lift node at a path [".concat(f,"] because it has a depth of less than `2`."));var d=D.node(t,b.parent(f)),[p,y]=d,m=f[f.length-1],{length:c}=p.children;if(c===1){var w=b.next(y);N.moveNodes(t,{at:f,to:w,voids:u}),N.removeNodes(t,{at:y,voids:u})}else if(m===0)N.moveNodes(t,{at:f,to:y,voids:u});else if(m===c-1){var h=b.next(y);N.moveNodes(t,{at:f,to:h,voids:u})}else{var g=b.next(f),C=b.next(y);N.splitNodes(t,{at:g,voids:u}),N.moveNodes(t,{at:f,to:C,voids:u})}}}})},CA=["text"],wA=["children"],Tv=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?Tv(e,n.children[0]):!1}else return!D.isEditor(t)},EA=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=_=>s.children.includes(_)}else r=_=>X.isElement(_)&&D.isBlock(t,_);if(!u&&S.isRange(o)&&(o=D.unhangRange(t,o,{voids:a})),S.isRange(o))if(S.isCollapsed(o))o=o.anchor;else{var[,l]=S.edges(o),f=D.pointRef(t,l);N.delete(t,{at:o}),o=f.unref(),n.at==null&&N.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,[c,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}),_=>{var[K]=_;return K}).slice(g.length).slice(0,-1),A=D.above(t,{at:m,mode:"highest",match:_=>E.includes(_)&&Tv(t,_)}),x=A&&D.pathRef(t,A[1]),B,O;if(J.isText(y)&&J.isText(c)){var k=hn(y,CA);O=c.text.length,B=k}else if(X.isElement(y)&&X.isElement(c)){var k=hn(y,wA);O=c.children.length,B=k}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(ze.stringify(y)," ").concat(ze.stringify(c)));C||N.moveNodes(t,{at:m,to:h,voids:a}),x&&N.removeNodes(t,{at:x.current,voids:a}),X.isElement(c)&&D.isEmpty(t,c)||J.isText(c)&&c.text===""&&w[w.length-1]!==0?N.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:O,properties:B}),x&&x.unref()}}}})},BA=(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)?Yr(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 f of l){var d=f.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()}})},AA=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)?Yr(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),!r&&S.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 f of l){var d=f.unref();if(d){var[p]=D.node(t,d);t.apply({type:"remove_node",path:d,node:p})}}}})},bA=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:f=!1,voids:d=!1}=r;if(u){if(o==null&&(o=b.isPath(u)?Yr(t,u):O=>X.isElement(O)&&D.isBlock(t,O)),!s&&S.isRange(u)&&(u=D.unhangRange(t,u,{voids:d})),f&&S.isRange(u)){if(S.isCollapsed(u)&&D.leaf(t,u.anchor)[0].text.length>0)return;var p=D.rangeRef(t,u,{affinity:"inward"}),[y,m]=S.edges(u),c=l==="lowest"?"lowest":"highest",w=D.isEnd(t,m,m.path);N.splitNodes(t,{at:m,match:o,mode:c,voids:d,always:!w});var h=D.isStart(t,y,y.path);N.splitNodes(t,{at:y,match:o,mode:c,voids:d,always:!h}),u=p.unref(),r.at==null&&N.select(t,u)}a||(a=(O,k)=>O!==k);for(var[g,C]of D.nodes(t,{at:u,match:o,mode:l,voids:d})){var E={},A={};if(C.length!==0){var x=!1;for(var B in n)B==="children"||B==="text"||a(n[B],g[B])&&(x=!0,g.hasOwnProperty(B)&&(E[B]=g[B]),i?n[B]!=null&&(A[B]=i(g[B],n[B])):n[B]!=null&&(A[B]=n[B]));x&&t.apply({type:"set_node",path:C,properties:E,newProperties:A})}}}})},FA=(e,t)=>{if(S.isCollapsed(t))return t.anchor;var[,n]=S.edges(t),r=D.pointRef(e,n);return N.delete(e,{at:t}),r.unref()},xA=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=V=>X.isElement(V)&&D.isBlock(t,V)),S.isRange(a)&&(a=FA(t,a)),b.isPath(a)){var l=a,f=D.point(t,l),[d]=D.parent(t,l);u=V=>V===d,i=f.path.length-l.length+1,a=f,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 c=D.void(t,{at:a,mode:"highest"}),w=0;if(!o&&c){var[h,g]=c;if(X.isElement(h)&&t.isInline(h)){var C=D.after(t,g);if(!C){var E={text:""},A=b.next(g);N.insertNodes(t,E,{at:A,voids:o}),C=D.point(t,A)}a=C,s=!0}var x=a.path.length-g.length;i=x+1,s=!0}y=D.pointRef(t,a);var B=a.path.length-i,[,O]=m,k=a.path.slice(0,B),_=i===0?a.offset:a.path[B]+w;for(var[K,P]of D.levels(t,{at:k,reverse:!0,voids:o})){var z=!1;if(P.length<O.length||P.length===0||!o&&X.isElement(K)&&D.isVoid(t,K))break;var L=p.current,W=D.isEnd(t,L,P);if(s||!p||!D.isEdge(t,L,P)){z=!0;var G=Q.extractProps(K);t.apply({type:"split_node",path:P,position:_,properties:G})}_=P[P.length-1]+(z||W?1:0)}if(n.at==null){var R=y.current||D.end(t,[]);N.select(t,R)}}finally{var I;p.unref(),(I=y)===null||I===void 0||I.unref()}}})},OA=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;N.setNodes(t,o,r)},SA=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)?Yr(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),b.isPath(a)&&(a=D.range(t,a));var s=S.isRange(a)?D.rangeRef(t,a):null,l=D.nodes(t,{at:a,match:i,mode:r,voids:u}),f=Array.from(l,y=>{var[,m]=y;return D.pathRef(t,m)}).reverse(),d=function(){var m=p.unref(),[c]=D.node(t,m),w=D.range(t,m);o&&s&&(w=S.intersection(s.current,w)),N.liftNodes(t,{at:w,match:h=>X.isAncestor(c)&&c.children.includes(h),voids:u})};for(var p of f)d();s&&s.unref()}})};function Rv(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 Nv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _A=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=Yr(t,s):t.isInline(n)?i=w=>X.isElement(w)&&D.isInline(t,w)||J.isText(w):i=w=>X.isElement(w)&&D.isBlock(t,w)),u&&S.isRange(s)){var[l,f]=S.edges(s),d=D.rangeRef(t,s,{affinity:"inward"});N.splitNodes(t,{at:f,match:i,voids:a}),N.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&N.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=S.isRange(s)?S.intersection(s,D.range(t,c)):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],[,A]=C,[,x]=E;if(A.length===0&&x.length===0)return 0;var B=b.equals(A,x)?b.parent(A):b.common(A,x),O=D.range(t,A,x),k=D.node(t,B),[_]=k,K=B.length+1,P=b.next(x.slice(0,K)),z=Nv(Nv({},n),{},{children:[]});N.insertNodes(t,z,{at:P,voids:a}),N.moveNodes(t,{at:O,match:L=>X.isAncestor(_)&&_.children.includes(L),to:P.concat(0),voids:a})}},m;for(var[,c]of p)m=y()}})},kA=()=>{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 nB(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sB(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fB(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dB(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pB(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oB(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AB(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FB(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fA(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bB(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OB(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uB(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oA(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rB(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aB(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return iB(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lB(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cB(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dA(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cA(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pA(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vB(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hB(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mB(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gB(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yB(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LB(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CB(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wB(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EB(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BB(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yA(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SB(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _B(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kB(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PB(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TB(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RB(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NB(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jB(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IB(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DA(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EA(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vA(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BA(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zB(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VB(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WB(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UB(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HB(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QB(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KB(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qB(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XB(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YB(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GB(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZB(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JB(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nA(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return eA(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tA(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AA(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hA(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bA(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uA(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mA(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gA(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xA(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aA(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return iA(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sA(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OA(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SA(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DB(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lA(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _A(e,...r)}};return e};function Jo(e){const t=D.marks(xa.value);return t?t[e]===!0:!1}function PA(e){Jo(e)?D.removeMark(xa.value,e):D.addMark(xa.value,e,!0)}const TA=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=Gw().pressed,r=Qw(t),o=Yw(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=zp(),{floatingStyles:s}=Pw(u,t,{placement:"top",middleware:[cw(6),Ow(),Sw()]}),l=v.ref(!1),f=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:c}=zw(f,()=>{d.value=Jo("bold"),p.value=Jo("del"),y.value=Jo("italic"),m.value=Jo("underline")});function w(h){PA(h),c()}return Qe(Oa,"keydown",h=>{h.key==="Escape"&&f.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=ZC,E=jC,A=QC,x=UC,B=LC;return v.unref(f)?(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]=O=>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]=O=>w("del"))},[v.createVNode(A,{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]=O=>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]=O=>w("underline"))},[v.createVNode(B,{class:"size-6 relative top-.1"})],2)]),_:1})],36)):v.createCommentVNode("v-if",!0)}}}),RA=`: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}
11
- `,NA=`*[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 0 rgba(0,0,0,calc(.14 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 1px 18px 0 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}
12
- `,eu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},jA=eu(TA,[["styles",[RA,NA]],["__scopeId","data-v-f99fe62b"]]);var jv={exports:{}},se={};/**
10
+ */function Wp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return Wp(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Wp(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Up=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),Dt=Symbol.for("immer-state");function Wt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qr=Object.getPrototypeOf;function dr(e){return!!e&&!!e[Dt]}function pr(e){var t;return e?Kp(e)||Array.isArray(e)||!!e[Hp]||!!((t=e.constructor)!=null&&t[Hp])||Pa(e)||Ta(e):!1}var sE=Object.prototype.constructor.toString();function Kp(e){if(!e||typeof e!="object")return!1;const t=Qr(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)===sE}function Yo(e,t){ka(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ka(e){const t=e[Dt];return t?t.type_:Array.isArray(e)?1:Pa(e)?2:Ta(e)?3:0}function el(e,t){return ka(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qp(e,t,n){const r=ka(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function lE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pa(e){return e instanceof Map}function Ta(e){return e instanceof Set}function vr(e){return e.copy_||e.base_}function tl(e,t){if(Pa(e))return new Map(e);if(Ta(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Kp(e))return Qr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Dt];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const u=r[o],a=n[u];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[u]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[u]})}return Object.create(Qr(e),n)}function nl(e,t=!1){return Ra(e)||dr(e)||!pr(e)||(ka(e)>1&&(e.set=e.add=e.clear=e.delete=cE),Object.freeze(e),t&&Yo(e,(n,r)=>nl(r,!0))),e}function cE(){Wt(2)}function Ra(e){return Object.isFrozen(e)}var fE={};function hr(e){const t=fE[e];return t||Wt(0,e),t}var Go;function Qp(){return Go}function dE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Yp(e,t){t&&(hr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rl(e){ol(e),e.drafts_.forEach(pE),e.drafts_=null}function ol(e){e===Go&&(Go=e.parent_)}function Gp(e){return Go=dE(Go,e)}function pE(e){const t=e[Dt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dt].modified_&&(rl(t),Wt(4)),pr(e)&&(e=Na(t,e),t.parent_||ja(t,e)),t.patches_&&hr("Patches").generateReplacementPatches_(n[Dt].base_,e,t.patches_,t.inversePatches_)):e=Na(t,n,[]),rl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Up?e:void 0}function Na(e,t,n){if(Ra(t))return t;const r=t[Dt];if(!r)return Yo(t,(o,u)=>Zp(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ja(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),Yo(u,(i,s)=>Zp(e,r,o,i,s,n,a)),ja(e,o,!1),n&&e.patches_&&hr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Zp(e,t,n,r,o,u,a){if(dr(o)){const i=u&&t&&t.type_!==3&&!el(t.assigned_,r)?u.concat(r):void 0,s=Na(e,o,i);if(qp(n,r,s),dr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(pr(o)&&!Ra(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Na(e,o),(!t||!t.scope_.parent_)&&ja(e,o)}}function ja(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&nl(t,n)}function vE(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Qp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=ul;n&&(o=[r],u=Xo);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var ul={get(e,t){if(t===Dt)return e;const n=vr(e);if(!el(n,t))return hE(e,n,t);const r=n[t];return e.finalized_||!pr(r)?r:r===al(e.base_,t)?(sl(e),e.copy_[t]=ll(r,e)):r},has(e,t){return t in vr(e)},ownKeys(e){return Reflect.ownKeys(vr(e))},set(e,t,n){const r=Jp(vr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=al(vr(e),t),u=o==null?void 0:o[Dt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(lE(n,o)&&(n!==void 0||el(e.base_,t)))return!0;sl(e),il(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 al(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,sl(e),il(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=vr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Wt(11)},getPrototypeOf(e){return Qr(e.base_)},setPrototypeOf(){Wt(12)}},Xo={};Yo(ul,(e,t)=>{Xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xo.deleteProperty=function(e,t){return Xo.set.call(this,e,t,void 0)},Xo.set=function(e,t,n){return ul.set.call(this,e[0],t,n,e[0])};function al(e,t){const n=e[Dt];return(n?vr(n):e)[t]}function hE(e,t,n){var o;const r=Jp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Jp(e,t){if(!(t in e))return;let n=Qr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Qr(n)}}function il(e){e.modified_||(e.modified_=!0,e.parent_&&il(e.parent_))}function sl(e){e.copy_||(e.copy_=tl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var mE=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"&&Wt(6),r!==void 0&&typeof r!="function"&&Wt(7);let o;if(pr(t)){const u=Gp(this),a=ll(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?rl(u):ol(u)}return Yp(u,r),Xp(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Up&&(o=void 0),this.autoFreeze_&&nl(o,!0),r){const u=[],a=[];hr("Patches").generateReplacementPatches_(t,o,u,a),r(u,a)}return o}else Wt(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){pr(e)||Wt(8),dr(e)&&(e=gE(e));const t=Gp(this),n=ll(e,void 0);return n[Dt].isManual_=!0,ol(t),n}finishDraft(e,t){const n=e&&e[Dt];(!n||!n.isManual_)&&Wt(9);const{scope_:r}=n;return Yp(r,t),Xp(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=hr("Patches").applyPatches_;return dr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function ll(e,t){const n=Pa(e)?hr("MapSet").proxyMap_(e,t):Ta(e)?hr("MapSet").proxySet_(e,t):vE(e,t);return(t?t.scope_:Qp()).drafts_.push(n),n}function gE(e){return dr(e)||Wt(10,e),ev(e)}function ev(e){if(!pr(e)||Ra(e))return e;const t=e[Dt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=tl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=tl(e,!0);return Yo(n,(r,o)=>{qp(n,r,ev(o))}),t&&(t.finalized_=!1),n}var Ct=new mE,cl=Ct.produce;Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct);var tv=Ct.createDraft.bind(Ct),nv=Ct.finishDraft.bind(Ct),yE={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()}}},DE={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ae.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},CE={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()}}},Ia=new WeakMap,Ma=new WeakMap,Zo=new WeakMap,rv=new WeakMap,ov=new WeakMap,uv=new WeakMap,av=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 Jo(e){"@babel/helpers - typeof";return Jo=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},Jo(e)}function wE(e,t){if(Jo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EE(e){var t=wE(e,"string");return Jo(t)==="symbol"?t:String(t)}function tt(e,t,n){return t=EE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iv(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 eu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BE=(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]=ae.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]=ae.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),F=h[h.length-1];if(J.isText(g)&&J.isText(E))E.text+=g.text;else if(!J.isText(g)&&!J.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(ze.stringify(g)," ").concat(ze.stringify(E)));if(B.children.splice(F,1),t)for(var[A,S]of _.points(t))t[S]=ae.transform(A,n);break}case"move_node":{var{path:P,newPath:O}=n;if(b.isAncestor(P,O))throw new Error("Cannot move a path [".concat(P,"] to new path [").concat(O,"] because the destination is inside itself."));var H=q.get(e,P),k=q.parent(e,P),W=P[P.length-1];k.children.splice(W,1);var $=b.transform(P,n),V=q.get(e,b.parent($)),G=$[$.length-1];if(V.children.splice(G,0,H),t)for(var[R,M]of _.points(t))t[M]=ae.transform(R,n);break}case"remove_node":{var{path:U}=n,Y=U[U.length-1],ne=q.parent(e,U);if(ne.children.splice(Y,1),t)for(var[te,ve]of _.points(t)){var x=ae.transform(te,n);if(t!=null&&x!=null)t[ve]=x;else{var j=void 0,N=void 0;for(var[Q,oe]of q.texts(e))if(b.compare(oe,U)===-1)j=[Q,oe];else{N=[Q,oe];break}var ee=!1;j&&N&&(b.equals(N[1],U)?ee=!b.hasPrevious(N[1]):ee=b.common(j[1],U).length<b.common(N[1],U).length),j&&!ee?(te.path=j[1],te.offset=j[0].text.length):N?(te.path=N[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ie,offset:ce,text:de}=n;if(de.length===0)break;var he=q.leaf(e,ie),le=he.text.slice(0,ce),Ie=he.text.slice(ce+de.length);if(he.text=le+Ie,t)for(var[Re,Ae]of _.points(t))t[Ae]=ae.transform(Re,n);break}case"set_node":{var{path:xt,properties:zt,newProperties:_e}=n;if(xt.length===0)throw new Error("Cannot set properties on the root node!");var et=q.get(e,xt);for(var me in _e){if(me==="children"||me==="text")throw new Error('Cannot set the "'.concat(me,'" property of nodes!'));var Le=_e[me];Le==null?delete et[me]:et[me]=Le}for(var ke in zt)_e.hasOwnProperty(ke)||delete et[ke];break}case"set_selection":{var{newProperties:Ne}=n;if(Ne==null)t=Ne;else{if(t==null){if(!_.isRange(Ne))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ze.stringify(Ne)," when there is no current selection."));t=eu({},Ne)}for(var mt in Ne){var Nr=Ne[mt];if(Nr==null){if(mt==="anchor"||mt==="focus")throw new Error('Cannot remove the "'.concat(mt,'" selection property'));delete t[mt]}else t[mt]=Nr}}break}case"split_node":{var{path:gt,position:jr,properties:Es}=n;if(gt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gt,"] because the root node cannot be split."));var Ir=q.get(e,gt),O3=q.parent(e,gt),_3=gt[gt.length-1],sd;if(J.isText(Ir)){var k3=Ir.text.slice(0,jr),P3=Ir.text.slice(jr);Ir.text=k3,sd=eu(eu({},Es),{},{text:P3})}else{var T3=Ir.children.slice(0,jr),R3=Ir.children.slice(jr);Ir.children=T3,sd=eu(eu({},Es),{},{children:R3})}if(O3.children.splice(_3+1,0,sd),t)for(var[N3,j3]of _.points(t))t[j3]=ae.transform(N3,n);break}}return t},AE={transform(e,t){e.children=tv(e.children);var n=e.selection&&tv(e.selection);try{n=BE(e,n,t)}finally{e.children=nv(e.children),n?e.selection=dr(n)?nv(n):n:e.selection=null}}},bE={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)}},FE={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)}},sv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!sv(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 xE(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 hn(e,t){if(e==null)return{};var n=xE(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 SE=["anchor","focus"];function lv(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 OE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(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 ae.equals(e.anchor,t.anchor)&&ae.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 ae.isBefore(n,o)&&ae.isAfter(r,u)}var[a,i]=_.edges(e),s=!1,l=!1;return ae.isPoint(t)?(s=ae.compare(t,a)>=0,l=ae.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=hn(e,SE),[r,o]=_.edges(e),[u,a]=_.edges(t),i=ae.isBefore(r,u)?u:r,s=ae.isBefore(o,a)?o:a;return ae.isBefore(s,i)?null:OE({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ae.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ae.equals(t,n)},isExpanded(e){return!_.isCollapsed(e)},isForward(e){return!_.isBackward(e)},isRange(e){return Ue(e)&&ae.isPoint(e.anchor)&&ae.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 cl(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=ae.transform(r.anchor,t,{affinity:u}),l=ae.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},cv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:cv,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 cv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},_E=["children"],kE=["text"],fv=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(J.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ze.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(J.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ze.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ze.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(ze.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=hn(e,_E);return t}else{var t=hn(e,kE);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(J.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ze.stringify(e)));var n=cl({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(J.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ze.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(J.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return J.isText(e)||X.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=fv.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return fv.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.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(!J.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ze.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)||J.isText(e)&&J.isTextProps(t)&&J.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)&&!J.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(J.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 J.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))J.isText(n)&&(yield[n,r])}()}};function dv(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 we(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rn={isNodeOperation(e){return Rn.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=>Rn.isOperation(t))},isSelectionOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return we(we({},e),{},{type:"remove_node"});case"insert_text":return we(we({},e),{},{type:"remove_text"});case"merge_node":return we(we({},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 we(we({},e),{},{path:t,newPath:n});var r=b.transform(n,e),o=b.transform(b.next(n),e);return we(we({},e),{},{path:r,newPath:o})}case"remove_node":return we(we({},e),{},{type:"insert_node"});case"remove_text":return we(we({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return we(we({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?we(we({},e),{},{properties:s,newProperties:null}):s==null?we(we({},e),{},{properties:null,newProperties:i}):we(we({},e),{},{properties:s,newProperties:i})}case"split_node":return we(we({},e),{},{type:"merge_node",path:b.next(e.path)})}}},pv=new WeakMap,PE=e=>{var t=pv.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)&&Rn.isOperationList(e.operations);return pv.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 PE(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)}},TE={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(b.isPath)}};function vv(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 hv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ae={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 ae.compare(e,t)===1},isBefore(e,t){return ae.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 cl(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,hv(hv({},n),{},{affinity:"forward"})))}else r.path=b.transform(u,t,n);break}}})}},mv=void 0,ze={setScrubber(e){mv=e},stringify(e){return JSON.stringify(e,mv)}},RE=["text"],NE=["anchor","focus"];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 mn(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){tt(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 J={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=hn(u,RE);return a}return sv(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=>J.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=[mn({},e)];for(var r of t){var o=hn(r,NE),[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=mn(mn({},m),{},{text:m.text.slice(h)}),m=mn(mn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=mn(mn({},m),{},{text:m.text.slice(0,g)}),m=mn(mn({},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}},fl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],Yr=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},dl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?zE(t):t,u=ue.None,a=ue.None,i=0,s=null,l=null;for(var c of o){var d=c.codePointAt(0);if(!d)break;var p=JE(c,d);if([u,a]=r?[a,p]:[p,u],Gr(u,ue.ZWJ)&&Gr(a,ue.ExtPict)&&(r?s=yv(t.substring(0,i)):s=yv(t.substring(0,t.length-i)),!s)||Gr(u,ue.RI)&&Gr(a,ue.RI)&&(l!==null?l=!l:r?l=!0:l=oB(t.substring(0,t.length-i)),!l)||u!==ue.None&&a!==ue.None&&tB(u,a))break;i+=c.length}return i||1},jE=/\s/,IE=/[\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]/,ME=/['\u2018\u2019]/,$E=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=dl(t,n),[a,i]=pl(t,u,n);if(LE(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},pl=(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)]},LE=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(jE.test(t))return!1;if(ME.test(t)){var o=dl(n,r),[u,a]=pl(n,o,r);if(e(u,a,r))return!0}return!IE.test(t)},zE=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(WE(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(VE(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},VE=e=>e>=55296&&e<=56319,WE=e=>e>=56320&&e<=57343,ue;(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"})(ue||(ue={}));var UE=/^(?:[\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])$/,HE=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,KE=/^(?:[\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])$/,qE=/^[\u1100-\u115F\uA960-\uA97C]$/,QE=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,YE=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,GE=/^[\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]$/,XE=/^[\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]$/,ZE=/^(?:[\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])$/,JE=(e,t)=>{var n=ue.Any;return e.search(UE)!==-1&&(n|=ue.Extend),t===8205&&(n|=ue.ZWJ),t>=127462&&t<=127487&&(n|=ue.RI),e.search(HE)!==-1&&(n|=ue.Prepend),e.search(KE)!==-1&&(n|=ue.SpacingMark),e.search(qE)!==-1&&(n|=ue.L),e.search(QE)!==-1&&(n|=ue.V),e.search(YE)!==-1&&(n|=ue.T),e.search(GE)!==-1&&(n|=ue.LV),e.search(XE)!==-1&&(n|=ue.LVT),e.search(ZE)!==-1&&(n|=ue.ExtPict),n};function Gr(e,t){return(e&t)!==0}var eB=[[ue.L,ue.L|ue.V|ue.LV|ue.LVT],[ue.LV|ue.V,ue.V|ue.T],[ue.LVT|ue.T,ue.T],[ue.Any,ue.Extend|ue.ZWJ],[ue.Any,ue.SpacingMark],[ue.Prepend,ue.Any],[ue.ZWJ,ue.ExtPict],[ue.RI,ue.RI]];function tB(e,t){return eB.findIndex(n=>Gr(e,n[0])&&Gr(t,n[1]))===-1}var 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])(?:[\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$/,yv=e=>e.search(nB)!==-1,rB=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,oB=e=>{var t=e.match(rB);if(t===null)return!1;var n=t[0].length/2;return n%2===1},uB={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=fl(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);I.delete(e,{at:o,voids:r});var l=i.unref(),c=s.unref();o=l||c,I.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 Dv(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 $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I=$a($a($a($a({},AE),bE),FE),uB),La=new WeakMap,aB=e=>La.get(e)||!1,iB=(e,t,n)=>{var r=La.get(e)||!1;La.set(e,!0);try{t(),n()}finally{La.set(e,r)}};function Cv(e,t,n){var r=Ia.get(e)||[],o=Ma.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);Ia.set(e,u),Ma.set(e,a)}var sB=(e,t)=>{for(var n of D.pathRefs(e))yE.transform(n,t);for(var r of D.pointRefs(e))DE.transform(r,t);for(var o of D.rangeRefs(e))CE.transform(o,t);if(!aB(e)){var u=b.operationCanTransformPath(t)?a=>b.transform(a,t):void 0;Cv(e,e.getDirtyPaths(t),u)}I.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),Zo.get(e)||(Zo.set(e,!0),Promise.resolve().then(()=>{Zo.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},lB=(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=J.isText(r)?[]:Array.from(q.nodes(r),O=>{var[,H]=O;return o.concat(H)});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,F=b.ancestors(B);return[...F]}case"split_node":{var{path:A}=t,S=b.levels(A),P=b.next(A);return[...S,P]}default:return[]}},cB=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},fB=(e,t)=>{var[n,r]=t;if(!J.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};I.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||J.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(!J.isText(s)){var l=s.children[a],c=s.children[a-1],d=i===n.children.length-1,p=J.isText(l)||X.isElement(l)&&e.isInline(l);if(p!==u)I.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(X.isElement(l)){if(e.isInline(l)){if(c==null||!J.isText(c)){var y={text:""};I.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};I.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else c!=null&&J.isText(c)&&(J.equals(l,c,{loose:!0})?(I.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(I.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(I.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},dB=(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},pB=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(!J.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 wv(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 Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vB=(e,t,n)=>{var{selection:r}=e;if(r){var o=(d,p)=>{if(!J.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)I.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var c=Ev(Ev({},D.marks(e)||{}),{},{[t]:n});e.marks=c,Zo.get(e)||e.onChange()}}};function Bv(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 Av(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var hB=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,Av(Av({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};function bv(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 Fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mB=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,Fv(Fv({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},gB=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&I.delete(e,{unit:t,reverse:!0})},yB=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&I.delete(e,{unit:t})},DB=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&_.isExpanded(r)&&I.delete(t,{reverse:n==="backward"})},CB=(e,t)=>[D.start(e,t),D.end(e,t)];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 Sv(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){tt(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 wB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Sv(Sv({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},EB=(e,t)=>D.point(e,t,{edge:"end"}),BB=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},AB=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function Ov(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 _v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ov(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,_v(_v({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},FB=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),xB=(e,t)=>t.children.some(n=>J.isText(n)||D.isInline(e,n)),SB=(e,t)=>q.has(e,t),OB=(e,t)=>t.children.every(n=>J.isText(n)),_B=e=>{I.splitNodes(e,{always:!0})},kB=(e,t,n)=>{I.insertNodes(e,t,n)},PB=e=>{I.splitNodes(e,{always:!0})};function kv(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 TB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var RB=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=TB({text:n},u);I.insertNodes(t,a,{at:r.at,voids:r.voids})}else I.insertText(t,n,r);t.marks=null}},NB=(e,t)=>!e.isInline(t),jB=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),IB=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&J.isText(r)&&r.text===""&&!e.isVoid(t)},MB=(e,t,n)=>{var r=D.end(e,n);return ae.equals(t,r)},$B=e=>{var t=rv.get(e);return t===void 0?!0:t},LB=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ae.equals(t,r)},zB=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},VB=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 WB(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 UB=["text"],HB=["text"],KB=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:J.isText,at:{anchor:o,focus:u}});if(s){var[l]=s,c=hn(l,UB);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:J.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=hn(p,HB);return C},qB=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}}},QB=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 YB(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(TE.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&&J.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 GB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=c=>Ia.get(c)||[],a=c=>Ma.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(",")));Ia.set(t,s),Ma.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)}})}},XB=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},ZB=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},JB=e=>{var t=ov.get(e);return t||(t=new Set,ov.set(e,t)),t},eA=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)),ae.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},tA=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},nA=e=>{var t=uv.get(e);return t||(t=new Set,uv.set(e,t)),t},rA=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(!J.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 oA(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(J.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=pl(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(F,A,S){return A==="character"?dl(F,S):A==="word"?$E(F,S):A==="line"||A==="block"?F.length:1}}()}var uA=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}}},aA=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},iA=e=>{var t=av.get(e);return t||(t=new Set,av.set(e,t)),t},sA=(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 Pv(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 lA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cA=(e,t)=>{var{selection:n}=e;if(n){var r=(c,d)=>{if(!J.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)I.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=lA({},D.marks(e)||{});delete l[t],e.marks=l,Zo.get(e)||e.onChange()}}},fA=(e,t)=>{rv.set(e,t)},dA=(e,t)=>D.point(e,t,{edge:"start"}),pA=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:J.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},vA=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:J.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}},hA=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},mA=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),ae.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)){I.removeNodes(t,{at:l,voids:s});return}if(!_.isCollapsed(l)){if(!c){var[,w]=_.edges(l),h=D.end(t,[]);ae.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=_.edges(l),E=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:g,voids:s}),B=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:C,voids:s}),F=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"}),P=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(P){var H=D.after(t,C);H&&B&&b.isAncestor(B[1],H.path)&&(C=H)}var k=[],W;for(var $ of D.nodes(t,{at:l,voids:s})){var[V,G]=$;W&&b.compare(G,W)===0||(!s&&X.isElement(V)&&(D.isVoid(t,V)||D.isElementReadOnly(t,V))||!b.isCommon(G,g.path)&&!b.isCommon(G,C.path))&&(k.push($),W=G)}var R=Array.from(k,le=>{var[,Ie]=le;return D.pathRef(t,Ie)}),M=D.pointRef(t,g),U=D.pointRef(t,C),Y="";if(!A&&!S){var ne=M.current,[te]=D.leaf(t,ne),{path:ve}=ne,{offset:x}=g,j=te.text.slice(x);j.length>0&&(t.apply({type:"remove_text",path:ve,offset:x,text:j}),Y=j)}if(R.reverse().map(le=>le.unref()).filter(le=>le!==null).forEach(le=>I.removeNodes(t,{at:le,voids:s})),!P){var N=U.current,[Q]=D.leaf(t,N),{path:oe}=N,ee=A?g.offset:0,ie=Q.text.slice(ee,C.offset);ie.length>0&&(t.apply({type:"remove_text",path:oe,offset:ee,text:ie}),Y=ie)}!A&&F&&U.current&&M.current&&I.mergeNodes(t,{at:U.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Y.length>1&&Y.match(/[\u0E00-\u0E7F]+/)&&I.insertText(t,Y.slice(0,Y.length-i));var ce=M.unref(),de=U.unref(),he=u?ce||de:de||ce;n.at==null&&he&&I.select(t,he)}}})},gA=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=fl(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);I.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:j=>X.isElement(j)&&D.isInline(t,j),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:j=>X.isElement(j)&&D.isBlock(t,j),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},[]),[,F]=q.last({children:n},[]),A=[],S=j=>{var[N,Q]=j,oe=Q.length===0;return oe?!1:g?!0:!(C&&b.isAncestor(Q,B)&&X.isElement(N)&&!t.isVoid(N)&&!t.isInline(N)||E&&b.isAncestor(Q,F)&&X.isElement(N)&&!t.isVoid(N)&&!t.isInline(N))};for(var P of q.nodes({children:n},{pass:S}))S(P)&&A.push(P);var O=[],H=[],k=[],W=!0,$=!1;for(var[V]of A)X.isElement(V)&&!t.isInline(V)?(W=!1,$=!0,H.push(V)):W?O.push(V):k.push(V);var[G]=D.nodes(t,{at:a,match:j=>J.isText(j)||D.isInline(t,j),mode:"highest",voids:u}),[,R]=G,M=D.isStart(t,a,R),U=D.isEnd(t,a,R),Y=D.pathRef(t,h&&!k.length?b.next(f):f),ne=D.pathRef(t,U?b.next(R):R);I.splitNodes(t,{at:a,match:j=>$?X.isElement(j)&&D.isBlock(t,j):J.isText(j)||D.isInline(t,j),mode:$?"lowest":"highest",always:$&&(!w||O.length>0)&&(!h||k.length>0),voids:u});var te=D.pathRef(t,!M||M&&U?b.next(R):R);if(I.insertNodes(t,O,{at:te.current,match:j=>J.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),g&&!O.length&&H.length&&!k.length&&I.delete(t,{at:f,voids:u}),I.insertNodes(t,H,{at:Y.current,match:j=>X.isElement(j)&&D.isBlock(t,j),mode:"lowest",voids:u,batchDirty:i}),I.insertNodes(t,k,{at:ne.current,match:j=>J.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),!r.at){var ve;if(k.length>0&&ne.current?ve=b.previous(ne.current):H.length>0&&Y.current?ve=b.previous(Y.current):te.current&&(ve=b.previous(te.current)),ve){var x=D.end(t,ve);I.select(t,x)}}te.unref(),Y.unref(),ne.unref()}}})},yA=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")I.select(t,o.anchor);else if(r==="focus")I.select(t,o.focus);else if(r==="start"){var[u]=_.edges(o);I.select(t,u)}else if(r==="end"){var[,a]=_.edges(o);I.select(t,a)}}else return},DA=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},CA=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)}I.setSelection(t,d)}},wA=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){I.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(ze.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function Tv(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 Rv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var EA=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;I.setSelection(t,{[u==="anchor"?"anchor":"focus"]:Rv(Rv({},s),n)})}},BA=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ae.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ae.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})}},AA=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=fl(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);I.delete(t,{at:s}),s=y.unref()}if(ae.isPoint(s)){l==null&&(J.isText(d)?l=O=>J.isText(O):t.isInline(d)?l=O=>J.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);I.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=[],F=b.levels(C);iB(t,()=>{var O=function(){var W=C.concat(E);E++;var $={type:"insert_node",path:W,node:H};t.apply($),s=b.next(s),B.push($),J.isText?F.push(...Array.from(q.nodes(H),V=>{var[,G]=V;return W.concat(G)})):F.push(W)};for(var H of n)O()},()=>{Cv(t,F,O=>{var H=O;for(var k of B)if(b.operationCanTransformPath(k)&&(H=b.transform(H,k),!H))return null;return H})})}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 P=D.end(t,s);P&&I.select(t,P)}}}})},bA=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)?Yr(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);I.moveNodes(t,{at:c,to:w,voids:u}),I.removeNodes(t,{at:y,voids:u})}else if(m===0)I.moveNodes(t,{at:c,to:y,voids:u});else if(m===f-1){var h=b.next(y);I.moveNodes(t,{at:c,to:h,voids:u})}else{var g=b.next(c),C=b.next(y);I.splitNodes(t,{at:g,voids:u}),I.moveNodes(t,{at:c,to:C,voids:u})}}}})},FA=["text"],xA=["children"],Nv=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?Nv(e,n.children[0]):!1}else return!D.isEditor(t)},SA=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);I.delete(t,{at:o}),o=c.unref(),n.at==null&&I.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[H]=O;return H}).slice(g.length).slice(0,-1),B=D.above(t,{at:m,mode:"highest",match:O=>E.includes(O)&&Nv(t,O)}),F=B&&D.pathRef(t,B[1]),A,S;if(J.isText(y)&&J.isText(f)){var P=hn(y,FA);S=f.text.length,A=P}else if(X.isElement(y)&&X.isElement(f)){var P=hn(y,xA);S=f.children.length,A=P}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(ze.stringify(y)," ").concat(ze.stringify(f)));C||I.moveNodes(t,{at:m,to:h,voids:a}),F&&I.removeNodes(t,{at:F.current,voids:a}),X.isElement(f)&&D.isEmpty(t,f)||J.isText(f)&&f.text===""&&w[w.length-1]!==0?I.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:S,properties:A}),F&&F.unref()}}}})},OA=(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)?Yr(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()}})},_A=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)?Yr(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})}}}})},kA=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)?Yr(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);I.splitNodes(t,{at:m,match:o,mode:f,voids:d,always:!w});var h=D.isStart(t,y,y.path);I.splitNodes(t,{at:y,match:o,mode:f,voids:d,always:!h}),u=p.unref(),r.at==null&&I.select(t,u)}a||(a=(S,P)=>S!==P);for(var[g,C]of D.nodes(t,{at:u,match:o,mode:l,voids:d})){var E={},B={};if(C.length!==0){var F=!1;for(var A in n)A==="children"||A==="text"||a(n[A],g[A])&&(F=!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]));F&&t.apply({type:"set_node",path:C,properties:E,newProperties:B})}}}})},PA=(e,t)=>{if(_.isCollapsed(t))return t.anchor;var[,n]=_.edges(t),r=D.pointRef(e,n);return I.delete(e,{at:t}),r.unref()},TA=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=U=>X.isElement(U)&&D.isBlock(t,U)),_.isRange(a)&&(a=PA(t,a)),b.isPath(a)){var l=a,c=D.point(t,l),[d]=D.parent(t,l);u=U=>U===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);I.insertNodes(t,E,{at:B,voids:o}),C=D.point(t,B)}a=C,s=!0}var F=a.path.length-g.length;i=F+1,s=!0}y=D.pointRef(t,a);var A=a.path.length-i,[,S]=m,P=a.path.slice(0,A),O=i===0?a.offset:a.path[A]+w;for(var[H,k]of D.levels(t,{at:P,reverse:!0,voids:o})){var W=!1;if(k.length<S.length||k.length===0||!o&&X.isElement(H)&&D.isVoid(t,H))break;var $=p.current,V=D.isEnd(t,$,k);if(s||!p||!D.isEdge(t,$,k)){W=!0;var G=q.extractProps(H);t.apply({type:"split_node",path:k,position:O,properties:G})}O=k[k.length-1]+(W||V?1:0)}if(n.at==null){var R=y.current||D.end(t,[]);I.select(t,R)}}finally{var M;p.unref(),(M=y)===null||M===void 0||M.unref()}}})},RA=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;I.setNodes(t,o,r)},NA=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)?Yr(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)),I.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 jv(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 Iv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jA=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=Yr(t,s):t.isInline(n)?i=w=>X.isElement(w)&&D.isInline(t,w)||J.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"});I.splitNodes(t,{at:c,match:i,voids:a}),I.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&I.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,[,F]=E;if(B.length===0&&F.length===0)return 0;var A=b.equals(B,F)?b.parent(B):b.common(B,F),S=D.range(t,B,F),P=D.node(t,A),[O]=P,H=A.length+1,k=b.next(F.slice(0,H)),W=Iv(Iv({},n),{},{children:[]});I.insertNodes(t,W,{at:k,voids:a}),I.moveNodes(t,{at:S,match:$=>X.isAncestor(O)&&O.children.includes($),to:k.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},IA=()=>{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 sB(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vB(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gB(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yB(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DB(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cB(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _B(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PB(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gA(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kB(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RB(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fB(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cA(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lB(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dB(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pB(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hB(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mB(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yA(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mA(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DA(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CB(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wB(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EB(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BB(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AB(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KB(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FB(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xB(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SB(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OB(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AA(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NB(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jB(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IB(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return MB(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $B(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LB(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zB(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VB(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WB(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bA(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SA(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CA(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OA(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qB(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QB(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YB(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GB(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XB(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return eA(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZB(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JB(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rA(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tA(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nA(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oA(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uA(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sA(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aA(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return iA(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _A(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wA(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kA(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fA(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EA(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BA(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TA(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dA(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pA(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vA(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RA(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NA(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bB(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hA(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jA(e,...r)}};return e};function tu(e){const t=D.marks(Sa.value);return t?t[e]===!0:!1}function MA(e){tu(e)?D.removeMark(Sa.value,e):D.addMark(Sa.value,e,!0)}const $A=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=eE().pressed,r=Zw(t),o=Jw(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=Vp(),{floatingStyles:s}=Rw(u,t,{placement:"top",middleware:[ID(6),_w(),kw()]}),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}=Hw(c,()=>{d.value=tu("bold"),p.value=tu("del"),y.value=tu("italic"),m.value=tu("underline")});function w(h){MA(h),f()}return Qe(Oa,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=vw,E=ZC,B=cw,F=aw,A=nw;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(F,{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)}}}),LA=":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}",zA='*[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}',nu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},VA=nu($A,[["styles",[LA,zA]],["__scopeId","data-v-f99fe62b"]]);var Mv={exports:{}},se={};/**
13
11
  * @license React
14
12
  * react.production.min.js
15
13
  *
@@ -17,7 +15,7 @@ var Hy;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={
17
15
  *
18
16
  * This source code is licensed under the MIT license found in the
19
17
  * LICENSE file in the root directory of this source tree.
20
- */var tu=Symbol.for("react.element"),IA=Symbol.for("react.portal"),MA=Symbol.for("react.fragment"),$A=Symbol.for("react.strict_mode"),LA=Symbol.for("react.profiler"),zA=Symbol.for("react.provider"),VA=Symbol.for("react.context"),WA=Symbol.for("react.forward_ref"),UA=Symbol.for("react.suspense"),HA=Symbol.for("react.memo"),KA=Symbol.for("react.lazy"),Iv=Symbol.iterator;function qA(e){return e===null||typeof e!="object"?null:(e=Iv&&e[Iv]||e["@@iterator"],typeof e=="function"?e:null)}var Mv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$v=Object.assign,Lv={};function Xr(e,t,n){this.props=e,this.context=t,this.refs=Lv,this.updater=n||Mv}Xr.prototype.isReactComponent={},Xr.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")},Xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zv(){}zv.prototype=Xr.prototype;function pl(e,t,n){this.props=e,this.context=t,this.refs=Lv,this.updater=n||Mv}var vl=pl.prototype=new zv;vl.constructor=pl,$v(vl,Xr.prototype),vl.isPureReactComponent=!0;var Vv=Array.isArray,Wv=Object.prototype.hasOwnProperty,hl={current:null},Uv={key:!0,ref:!0,__self:!0,__source:!0};function Hv(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)Wv.call(t,r)&&!Uv.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:tu,type:e,key:u,ref:a,props:o,_owner:hl.current}}function QA(e,t){return{$$typeof:tu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ml(e){return typeof e=="object"&&e!==null&&e.$$typeof===tu}function YA(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Kv=/\/+/g;function gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?YA(""+e.key):t.toString(36)}function $a(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 tu:case IA:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+gl(a,0):r,Vv(o)?(n="",e!=null&&(n=e.replace(Kv,"$&/")+"/"),$a(o,t,n,"",function(l){return l})):o!=null&&(ml(o)&&(o=QA(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Kv,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Vv(e))for(var i=0;i<e.length;i++){u=e[i];var s=r+gl(u,i);a+=$a(u,t,n,s,o)}else if(s=qA(e),typeof s=="function")for(e=s.call(e),i=0;!(u=e.next()).done;)u=u.value,s=r+gl(u,i++),a+=$a(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 La(e,t,n){if(e==null)return e;var r=[],o=0;return $a(e,r,"","",function(u){return t.call(n,u,o++)}),r}function GA(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 nt={current:null},za={transition:null},XA={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:za,ReactCurrentOwner:hl};se.Children={map:La,forEach:function(e,t,n){La(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return La(e,function(){t++}),t},toArray:function(e){return La(e,function(t){return t})||[]},only:function(e){if(!ml(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},se.Component=Xr,se.Fragment=MA,se.Profiler=LA,se.PureComponent=pl,se.StrictMode=$A,se.Suspense=UA,se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=XA,se.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=$v({},e.props),o=e.key,u=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,a=hl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)Wv.call(t,s)&&!Uv.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:tu,type:e.type,key:o,ref:u,props:r,_owner:a}},se.createContext=function(e){return e={$$typeof:VA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zA,_context:e},e.Consumer=e},se.createElement=Hv,se.createFactory=function(e){var t=Hv.bind(null,e);return t.type=e,t},se.createRef=function(){return{current:null}},se.forwardRef=function(e){return{$$typeof:WA,render:e}},se.isValidElement=ml,se.lazy=function(e){return{$$typeof:KA,_payload:{_status:-1,_result:e},_init:GA}},se.memo=function(e,t){return{$$typeof:HA,type:e,compare:t===void 0?null:t}},se.startTransition=function(e){var t=za.transition;za.transition={};try{e()}finally{za.transition=t}},se.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},se.useCallback=function(e,t){return nt.current.useCallback(e,t)},se.useContext=function(e){return nt.current.useContext(e)},se.useDebugValue=function(){},se.useDeferredValue=function(e){return nt.current.useDeferredValue(e)},se.useEffect=function(e,t){return nt.current.useEffect(e,t)},se.useId=function(){return nt.current.useId()},se.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)},se.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)},se.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)},se.useMemo=function(e,t){return nt.current.useMemo(e,t)},se.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)},se.useRef=function(e){return nt.current.useRef(e)},se.useState=function(e){return nt.current.useState(e)},se.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)},se.useTransition=function(){return nt.current.useTransition()},se.version="18.2.0",jv.exports=se;var M=jv.exports;const oe=Wo(M);var qv={exports:{}},wt={},Qv={exports:{}},Yv={};/**
18
+ */var ru=Symbol.for("react.element"),WA=Symbol.for("react.portal"),UA=Symbol.for("react.fragment"),HA=Symbol.for("react.strict_mode"),KA=Symbol.for("react.profiler"),qA=Symbol.for("react.provider"),QA=Symbol.for("react.context"),YA=Symbol.for("react.forward_ref"),GA=Symbol.for("react.suspense"),XA=Symbol.for("react.memo"),ZA=Symbol.for("react.lazy"),$v=Symbol.iterator;function JA(e){return e===null||typeof e!="object"?null:(e=$v&&e[$v]||e["@@iterator"],typeof e=="function"?e:null)}var Lv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Vv={};function Xr(e,t,n){this.props=e,this.context=t,this.refs=Vv,this.updater=n||Lv}Xr.prototype.isReactComponent={},Xr.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")},Xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=Xr.prototype;function vl(e,t,n){this.props=e,this.context=t,this.refs=Vv,this.updater=n||Lv}var hl=vl.prototype=new Wv;hl.constructor=vl,zv(hl,Xr.prototype),hl.isPureReactComponent=!0;var Uv=Array.isArray,Hv=Object.prototype.hasOwnProperty,ml={current:null},Kv={key:!0,ref:!0,__self:!0,__source:!0};function qv(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)Hv.call(t,r)&&!Kv.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:ru,type:e,key:u,ref:a,props:o,_owner:ml.current}}function eb(e,t){return{$$typeof:ru,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ru}function tb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qv=/\/+/g;function yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tb(""+e.key):t.toString(36)}function za(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 ru:case WA:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+yl(a,0):r,Uv(o)?(n="",e!=null&&(n=e.replace(Qv,"$&/")+"/"),za(o,t,n,"",function(l){return l})):o!=null&&(gl(o)&&(o=eb(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Qv,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Uv(e))for(var i=0;i<e.length;i++){u=e[i];var s=r+yl(u,i);a+=za(u,t,n,s,o)}else if(s=JA(e),typeof s=="function")for(e=s.call(e),i=0;!(u=e.next()).done;)u=u.value,s=r+yl(u,i++),a+=za(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 Va(e,t,n){if(e==null)return e;var r=[],o=0;return za(e,r,"","",function(u){return t.call(n,u,o++)}),r}function nb(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 nt={current:null},Wa={transition:null},rb={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Wa,ReactCurrentOwner:ml};se.Children={map:Va,forEach:function(e,t,n){Va(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Va(e,function(){t++}),t},toArray:function(e){return Va(e,function(t){return t})||[]},only:function(e){if(!gl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},se.Component=Xr,se.Fragment=UA,se.Profiler=KA,se.PureComponent=vl,se.StrictMode=HA,se.Suspense=GA,se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rb,se.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=zv({},e.props),o=e.key,u=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,a=ml.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)Hv.call(t,s)&&!Kv.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:ru,type:e.type,key:o,ref:u,props:r,_owner:a}},se.createContext=function(e){return e={$$typeof:QA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:qA,_context:e},e.Consumer=e},se.createElement=qv,se.createFactory=function(e){var t=qv.bind(null,e);return t.type=e,t},se.createRef=function(){return{current:null}},se.forwardRef=function(e){return{$$typeof:YA,render:e}},se.isValidElement=gl,se.lazy=function(e){return{$$typeof:ZA,_payload:{_status:-1,_result:e},_init:nb}},se.memo=function(e,t){return{$$typeof:XA,type:e,compare:t===void 0?null:t}},se.startTransition=function(e){var t=Wa.transition;Wa.transition={};try{e()}finally{Wa.transition=t}},se.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},se.useCallback=function(e,t){return nt.current.useCallback(e,t)},se.useContext=function(e){return nt.current.useContext(e)},se.useDebugValue=function(){},se.useDeferredValue=function(e){return nt.current.useDeferredValue(e)},se.useEffect=function(e,t){return nt.current.useEffect(e,t)},se.useId=function(){return nt.current.useId()},se.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)},se.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)},se.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)},se.useMemo=function(e,t){return nt.current.useMemo(e,t)},se.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)},se.useRef=function(e){return nt.current.useRef(e)},se.useState=function(e){return nt.current.useState(e)},se.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)},se.useTransition=function(){return nt.current.useTransition()},se.version="18.2.0",Mv.exports=se;var L=Mv.exports;const re=Uo(L);var Yv={exports:{}},wt={},Gv={exports:{}},Xv={};/**
21
19
  * @license React
22
20
  * scheduler.production.min.js
23
21
  *
@@ -25,7 +23,7 @@ var Hy;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={
25
23
  *
26
24
  * This source code is licensed under the MIT license found in the
27
25
  * LICENSE file in the root directory of this source tree.
28
- */(function(e){function t(I,V){var Y=I.length;I.push(V);e:for(;0<Y;){var ne=Y-1>>>1,te=I[ne];if(0<o(te,V))I[ne]=V,I[Y]=te,Y=ne;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var V=I[0],Y=I.pop();if(Y!==V){I[0]=Y;e:for(var ne=0,te=I.length,Be=te>>>1;ne<Be;){var F=2*(ne+1)-1,U=I[F],j=F+1,q=I[j];if(0>o(U,Y))j<te&&0>o(q,U)?(I[ne]=q,I[j]=Y,ne=j):(I[ne]=U,I[F]=Y,ne=F);else if(j<te&&0>o(q,Y))I[ne]=q,I[j]=Y,ne=j;else break e}}return V}function o(I,V){var Y=I.sortIndex-V.sortIndex;return Y!==0?Y:I.id-V.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=[],f=1,d=null,p=3,y=!1,m=!1,c=!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 V=n(l);V!==null;){if(V.callback===null)r(l);else if(V.startTime<=I)r(l),V.sortIndex=V.expirationTime,t(s,V);else break;V=n(l)}}function E(I){if(c=!1,C(I),!m)if(n(s)!==null)m=!0,G(A);else{var V=n(l);V!==null&&R(E,V.startTime-I)}}function A(I,V){m=!1,c&&(c=!1,h(O),O=-1),y=!0;var Y=p;try{for(C(V),d=n(s);d!==null&&(!(d.expirationTime>V)||I&&!K());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var te=ne(d.expirationTime<=V);V=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(s)&&r(s),C(V)}else r(s);d=n(s)}if(d!==null)var Be=!0;else{var F=n(l);F!==null&&R(E,F.startTime-V),Be=!1}return Be}finally{d=null,p=Y,y=!1}}var x=!1,B=null,O=-1,k=5,_=-1;function K(){return!(e.unstable_now()-_<k)}function P(){if(B!==null){var I=e.unstable_now();_=I;var V=!0;try{V=B(!0,I)}finally{V?z():(x=!1,B=null)}}else x=!1}var z;if(typeof g=="function")z=function(){g(P)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,W=L.port2;L.port1.onmessage=P,z=function(){W.postMessage(null)}}else z=function(){w(P,0)};function G(I){B=I,x||(x=!0,z())}function R(I,V){O=w(function(){I(e.unstable_now())},V)}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(A))},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"):k=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 V=3;break;default:V=p}var Y=p;p=V;try{return I()}finally{p=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,V){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Y=p;p=I;try{return V()}finally{p=Y}},e.unstable_scheduleCallback=function(I,V,Y){var ne=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ne+Y:ne):Y=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=Y+te,I={id:f++,callback:V,priorityLevel:I,startTime:Y,expirationTime:te,sortIndex:-1},Y>ne?(I.sortIndex=Y,t(l,I),n(s)===null&&I===n(l)&&(c?(h(O),O=-1):c=!0,R(E,Y-ne))):(I.sortIndex=te,t(s,I),m||y||(m=!0,G(A))),I},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(I){var V=p;return function(){var Y=p;p=V;try{return I.apply(this,arguments)}finally{p=Y}}}})(Yv),Qv.exports=Yv;var ZA=Qv.exports;/**
26
+ */(function(e){function t(M,U){var Y=M.length;M.push(U);e:for(;0<Y;){var ne=Y-1>>>1,te=M[ne];if(0<o(te,U))M[ne]=U,M[Y]=te,Y=ne;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var U=M[0],Y=M.pop();if(Y!==U){M[0]=Y;e:for(var ne=0,te=M.length,ve=te>>>1;ne<ve;){var x=2*(ne+1)-1,j=M[x],N=x+1,Q=M[N];if(0>o(j,Y))N<te&&0>o(Q,j)?(M[ne]=Q,M[N]=Y,ne=N):(M[ne]=j,M[x]=Y,ne=x);else if(N<te&&0>o(Q,Y))M[ne]=Q,M[N]=Y,ne=N;else break e}}return U}function o(M,U){var Y=M.sortIndex-U.sortIndex;return Y!==0?Y:M.id-U.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(M){for(var U=n(l);U!==null;){if(U.callback===null)r(l);else if(U.startTime<=M)r(l),U.sortIndex=U.expirationTime,t(s,U);else break;U=n(l)}}function E(M){if(f=!1,C(M),!m)if(n(s)!==null)m=!0,G(B);else{var U=n(l);U!==null&&R(E,U.startTime-M)}}function B(M,U){m=!1,f&&(f=!1,h(S),S=-1),y=!0;var Y=p;try{for(C(U),d=n(s);d!==null&&(!(d.expirationTime>U)||M&&!H());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var te=ne(d.expirationTime<=U);U=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(s)&&r(s),C(U)}else r(s);d=n(s)}if(d!==null)var ve=!0;else{var x=n(l);x!==null&&R(E,x.startTime-U),ve=!1}return ve}finally{d=null,p=Y,y=!1}}var F=!1,A=null,S=-1,P=5,O=-1;function H(){return!(e.unstable_now()-O<P)}function k(){if(A!==null){var M=e.unstable_now();O=M;var U=!0;try{U=A(!0,M)}finally{U?W():(F=!1,A=null)}}else F=!1}var W;if(typeof g=="function")W=function(){g(k)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,V=$.port2;$.port1.onmessage=k,W=function(){V.postMessage(null)}}else W=function(){w(k,0)};function G(M){A=M,F||(F=!0,W())}function R(M,U){S=w(function(){M(e.unstable_now())},U)}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(M){M.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,G(B))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(M){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var Y=p;p=U;try{return M()}finally{p=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,U){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Y=p;p=M;try{return U()}finally{p=Y}},e.unstable_scheduleCallback=function(M,U,Y){var ne=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ne+Y:ne):Y=ne,M){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=Y+te,M={id:c++,callback:U,priorityLevel:M,startTime:Y,expirationTime:te,sortIndex:-1},Y>ne?(M.sortIndex=Y,t(l,M),n(s)===null&&M===n(l)&&(f?(h(S),S=-1):f=!0,R(E,Y-ne))):(M.sortIndex=te,t(s,M),m||y||(m=!0,G(B))),M},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(M){var U=p;return function(){var Y=p;p=U;try{return M.apply(this,arguments)}finally{p=Y}}}})(Xv),Gv.exports=Xv;var ob=Gv.exports;/**
29
27
  * @license React
30
28
  * react-dom.production.min.js
31
29
  *
@@ -33,16 +31,16 @@ var Hy;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={
33
31
  *
34
32
  * This source code is licensed under the MIT license found in the
35
33
  * LICENSE file in the root directory of this source tree.
36
- */var Gv=M,Et=ZA;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 Xv=new Set,nu={};function mr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for(nu[e]=t,e=0;e<t.length;e++)Xv.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yl=Object.prototype.hasOwnProperty,JA=/^[: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]*$/,Zv={},Jv={};function eb(e){return yl.call(Jv,e)?!0:yl.call(Zv,e)?!1:JA.test(e)?Jv[e]=!0:(Zv[e]=!0,!1)}function tb(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 nb(e,t,n,r){if(t===null||typeof t>"u"||tb(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 rt(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 rt(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 rt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(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 rt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Dl=/[\-:]([a-z])/g;function Cl(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(Dl,Cl);He[t]=new rt(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(Dl,Cl);He[t]=new rt(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(Dl,Cl);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)}),He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function wl(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")&&(nb(t,n,o,r)&&(n=null),r||o===null?eb(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 yn=Gv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Va=Symbol.for("react.element"),Jr=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),El=Symbol.for("react.strict_mode"),Bl=Symbol.for("react.profiler"),eh=Symbol.for("react.provider"),th=Symbol.for("react.context"),Al=Symbol.for("react.forward_ref"),bl=Symbol.for("react.suspense"),Fl=Symbol.for("react.suspense_list"),xl=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),nh=Symbol.for("react.offscreen"),rh=Symbol.iterator;function ru(e){return e===null||typeof e!="object"?null:(e=rh&&e[rh]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Ol;function ou(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
37
- `+Ol+e}var Sl=!1;function _l(e,t){if(!e||Sl)return"";Sl=!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(`
34
+ */var Zv=L,Et=ob;function K(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 Jv=new Set,ou={};function mr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for(ou[e]=t,e=0;e<t.length;e++)Jv.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dl=Object.prototype.hasOwnProperty,ub=/^[: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]*$/,eh={},th={};function ab(e){return Dl.call(th,e)?!0:Dl.call(eh,e)?!1:ub.test(e)?th[e]=!0:(eh[e]=!0,!1)}function ib(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 sb(e,t,n,r){if(t===null||typeof t>"u"||ib(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 rt(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 rt(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 rt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(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 rt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function wl(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(Cl,wl);He[t]=new rt(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(Cl,wl);He[t]=new rt(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(Cl,wl);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)}),He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function El(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")&&(sb(t,n,o,r)&&(n=null),r||o===null?ab(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 yn=Zv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ua=Symbol.for("react.element"),Jr=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),Bl=Symbol.for("react.strict_mode"),Al=Symbol.for("react.profiler"),nh=Symbol.for("react.provider"),rh=Symbol.for("react.context"),bl=Symbol.for("react.forward_ref"),Fl=Symbol.for("react.suspense"),xl=Symbol.for("react.suspense_list"),Sl=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),oh=Symbol.for("react.offscreen"),uh=Symbol.iterator;function uu(e){return e===null||typeof e!="object"?null:(e=uh&&e[uh]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Ol;function au(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
35
+ `+Ol+e}var _l=!1;function kl(e,t){if(!e||_l)return"";_l=!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(`
38
36
  `),u=r.stack.split(`
39
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=`
40
- `+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{Sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ou(e):""}function rb(e){switch(e.tag){case 5:return ou(e.type);case 16:return ou("Lazy");case 13:return ou("Suspense");case 19:return ou("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function kl(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 eo:return"Fragment";case Jr:return"Portal";case Bl:return"Profiler";case El:return"StrictMode";case bl:return"Suspense";case Fl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case th:return(e.displayName||"Context")+".Consumer";case eh:return(e._context.displayName||"Context")+".Provider";case Al:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xl:return t=e.displayName||null,t!==null?t:kl(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return kl(e(t))}catch{}}return null}function ob(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 kl(t);case 8:return t===El?"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 jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ub(e){var t=oh(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 Wa(e){e._valueTracker||(e._valueTracker=ub(e))}function uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=oh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ua(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 Pl(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ah(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(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 ih(e,t){t=t.checked,t!=null&&wl(e,"checked",t,!1)}function Tl(e,t){ih(e,t);var n=jn(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")?Rl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rl(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sh(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 Rl(e,t,n){(t!=="number"||Ua(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var uu=Array.isArray;function to(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=""+jn(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 Nl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lh(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(uu(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jn(n)}}function ch(e,t){var n=jn(t.value),r=jn(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 fh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dh(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 jl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ha,ph=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(Ha=Ha||document.createElement("div"),Ha.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ha.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function au(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var iu={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},ab=["Webkit","ms","Moz","O"];Object.keys(iu).forEach(function(e){ab.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),iu[t]=iu[e]})});function vh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||iu.hasOwnProperty(e)&&iu[e]?(""+t).trim():t+"px"}function hh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=vh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ib=be({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 Il(e,t){if(t){if(ib[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 Ml(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 $l=null;function Ll(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zl=null,no=null,ro=null;function mh(e){if(e=Su(e)){if(typeof zl!="function")throw Error(H(280));var t=e.stateNode;t&&(t=vi(t),zl(e.stateNode,e.type,t))}}function gh(e){no?ro?ro.push(e):ro=[e]:no=e}function yh(){if(no){var e=no,t=ro;if(ro=no=null,mh(e),t)for(e=0;e<t.length;e++)mh(t[e])}}function Dh(e,t){return e(t)}function Ch(){}var Vl=!1;function wh(e,t,n){if(Vl)return e(t,n);Vl=!0;try{return Dh(e,t,n)}finally{Vl=!1,(no!==null||ro!==null)&&(Ch(),yh())}}function su(e,t){var n=e.stateNode;if(n===null)return null;var r=vi(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 Wl=!1;if(gn)try{var lu={};Object.defineProperty(lu,"passive",{get:function(){Wl=!0}}),window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{Wl=!1}function sb(e,t,n,r,o,u,a,i,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(f){this.onError(f)}}var cu=!1,Ka=null,qa=!1,Ul=null,lb={onError:function(e){cu=!0,Ka=e}};function cb(e,t,n,r,o,u,a,i,s){cu=!1,Ka=null,sb.apply(lb,arguments)}function fb(e,t,n,r,o,u,a,i,s){if(cb.apply(this,arguments),cu){if(cu){var l=Ka;cu=!1,Ka=null}else throw Error(H(198));qa||(qa=!0,Ul=l)}}function gr(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 Eh(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 Bh(e){if(gr(e)!==e)throw Error(H(188))}function db(e){var t=e.alternate;if(!t){if(t=gr(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 Bh(o),e;if(u===r)return Bh(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 Ah(e){return e=db(e),e!==null?bh(e):null}function bh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bh(e);if(t!==null)return t;e=e.sibling}return null}var Fh=Et.unstable_scheduleCallback,xh=Et.unstable_cancelCallback,pb=Et.unstable_shouldYield,vb=Et.unstable_requestPaint,Pe=Et.unstable_now,hb=Et.unstable_getCurrentPriorityLevel,Hl=Et.unstable_ImmediatePriority,Oh=Et.unstable_UserBlockingPriority,Qa=Et.unstable_NormalPriority,mb=Et.unstable_LowPriority,Sh=Et.unstable_IdlePriority,Ya=null,nn=null;function gb(e){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(Ya,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:Cb,yb=Math.log,Db=Math.LN2;function Cb(e){return e>>>=0,e===0?32:31-(yb(e)/Db|0)|0}var Ga=64,Xa=4194304;function fu(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 Za(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=fu(i):(u&=a,u!==0&&(r=fu(u)))}else a=n&~o,a!==0?r=fu(a):u!==0&&(r=fu(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-Ut(t),o=1<<n,r|=e[n],t&=~o;return r}function wb(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 Eb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var a=31-Ut(u),i=1<<a,s=o[a];s===-1?(!(i&n)||i&r)&&(o[a]=wb(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function Kl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _h(){var e=Ga;return Ga<<=1,!(Ga&4194240)&&(Ga=64),e}function ql(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function du(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function Bb(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-Ut(n),u=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~u}}function Ql(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function kh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ph,Yl,Th,Rh,Nh,Gl=!1,Ja=[],In=null,Mn=null,$n=null,pu=new Map,vu=new Map,Ln=[],Ab="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 jh(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":pu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vu.delete(t.pointerId)}}function hu(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=Su(t),t!==null&&Yl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function bb(e,t,n,r,o){switch(t){case"focusin":return In=hu(In,e,t,n,r,o),!0;case"dragenter":return Mn=hu(Mn,e,t,n,r,o),!0;case"mouseover":return $n=hu($n,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return pu.set(u,hu(pu.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,vu.set(u,hu(vu.get(u)||null,e,t,n,r,o)),!0}return!1}function Ih(e){var t=yr(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=Eh(n),t!==null){e.blockedOn=t,Nh(e.priority,function(){Th(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 ei(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$l=r,n.target.dispatchEvent(r),$l=null}else return t=Su(n),t!==null&&Yl(t),e.blockedOn=n,!1;t.shift()}return!0}function Mh(e,t,n){ei(e)&&n.delete(t)}function Fb(){Gl=!1,In!==null&&ei(In)&&(In=null),Mn!==null&&ei(Mn)&&(Mn=null),$n!==null&&ei($n)&&($n=null),pu.forEach(Mh),vu.forEach(Mh)}function mu(e,t){e.blockedOn===t&&(e.blockedOn=null,Gl||(Gl=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,Fb)))}function gu(e){function t(o){return mu(o,e)}if(0<Ja.length){mu(Ja[0],e);for(var n=1;n<Ja.length;n++){var r=Ja[n];r.blockedOn===e&&(r.blockedOn=null)}}for(In!==null&&mu(In,e),Mn!==null&&mu(Mn,e),$n!==null&&mu($n,e),pu.forEach(t),vu.forEach(t),n=0;n<Ln.length;n++)r=Ln[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ln.length&&(n=Ln[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&Ln.shift()}var oo=yn.ReactCurrentBatchConfig,ti=!0;function xb(e,t,n,r){var o=pe,u=oo.transition;oo.transition=null;try{pe=1,Xl(e,t,n,r)}finally{pe=o,oo.transition=u}}function Ob(e,t,n,r){var o=pe,u=oo.transition;oo.transition=null;try{pe=4,Xl(e,t,n,r)}finally{pe=o,oo.transition=u}}function Xl(e,t,n,r){if(ti){var o=Zl(e,t,n,r);if(o===null)hc(e,t,r,ni,n),jh(e,r);else if(bb(o,e,t,n,r))r.stopPropagation();else if(jh(e,r),t&4&&-1<Ab.indexOf(e)){for(;o!==null;){var u=Su(o);if(u!==null&&Ph(u),u=Zl(e,t,n,r),u===null&&hc(e,t,r,ni,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else hc(e,t,r,null,n)}}var ni=null;function Zl(e,t,n,r){if(ni=null,e=Ll(r),e=yr(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Eh(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 ni=e,null}function $h(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(hb()){case Hl:return 1;case Oh:return 4;case Qa:case mb:return 16;case Sh:return 536870912;default:return 16}default:return 16}}var zn=null,Jl=null,ri=null;function Lh(){if(ri)return ri;var e,t=Jl,n=t.length,r,o="value"in zn?zn.value:zn.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 ri=o.slice(e,1<r?1-r:void 0)}function oi(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 ui(){return!0}function zh(){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)?ui:zh,this.isPropagationStopped=zh,this}return be(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=ui)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ui)},persist:function(){},isPersistent:ui}),t}var uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ec=Bt(uo),yu=be({},uo,{view:0,detail:0}),Sb=Bt(yu),tc,nc,Du,ai=be({},yu,{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!==Du&&(Du&&e.type==="mousemove"?(tc=e.screenX-Du.screenX,nc=e.screenY-Du.screenY):nc=tc=0,Du=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),Vh=Bt(ai),_b=be({},ai,{dataTransfer:0}),kb=Bt(_b),Pb=be({},yu,{relatedTarget:0}),rc=Bt(Pb),Tb=be({},uo,{animationName:0,elapsedTime:0,pseudoElement:0}),Rb=Bt(Tb),Nb=be({},uo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jb=Bt(Nb),Ib=be({},uo,{data:0}),Wh=Bt(Ib),Mb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$b={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"},Lb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Lb[e])?!!t[e]:!1}function oc(){return zb}var Vb=be({},yu,{key:function(e){if(e.key){var t=Mb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$b[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"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wb=Bt(Vb),Ub=be({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uh=Bt(Ub),Hb=be({},yu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),Kb=Bt(Hb),qb=be({},uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qb=Bt(qb),Yb=be({},ai,{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}),Gb=Bt(Yb),Xb=[9,13,27,32],uc=gn&&"CompositionEvent"in window,Cu=null;gn&&"documentMode"in document&&(Cu=document.documentMode);var Zb=gn&&"TextEvent"in window&&!Cu,Hh=gn&&(!uc||Cu&&8<Cu&&11>=Cu),Kh=String.fromCharCode(32),qh=!1;function Qh(e,t){switch(e){case"keyup":return Xb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ao=!1;function Jb(e,t){switch(e){case"compositionend":return Yh(t);case"keypress":return t.which!==32?null:(qh=!0,Kh);case"textInput":return e=t.data,e===Kh&&qh?null:e;default:return null}}function e2(e,t){if(ao)return e==="compositionend"||!uc&&Qh(e,t)?(e=Lh(),ri=Jl=zn=null,ao=!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 Hh&&t.locale!=="ko"?null:t.data;default:return null}}var t2={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 Gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!t2[e.type]:t==="textarea"}function Xh(e,t,n,r){gh(r),t=fi(t,"onChange"),0<t.length&&(n=new ec("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wu=null,Eu=null;function n2(e){hm(e,0)}function ii(e){var t=fo(e);if(uh(t))return e}function r2(e,t){if(e==="change")return t}var Zh=!1;if(gn){var ac;if(gn){var ic="oninput"in document;if(!ic){var Jh=document.createElement("div");Jh.setAttribute("oninput","return;"),ic=typeof Jh.oninput=="function"}ac=ic}else ac=!1;Zh=ac&&(!document.documentMode||9<document.documentMode)}function em(){wu&&(wu.detachEvent("onpropertychange",tm),Eu=wu=null)}function tm(e){if(e.propertyName==="value"&&ii(Eu)){var t=[];Xh(t,Eu,e,Ll(e)),wh(n2,t)}}function o2(e,t,n){e==="focusin"?(em(),wu=t,Eu=n,wu.attachEvent("onpropertychange",tm)):e==="focusout"&&em()}function u2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ii(Eu)}function a2(e,t){if(e==="click")return ii(t)}function i2(e,t){if(e==="input"||e==="change")return ii(t)}function s2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:s2;function Bu(e,t){if(Ht(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(!yl.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rm(e,t){var n=nm(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=nm(n)}}function om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function um(){for(var e=window,t=Ua();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ua(e.document)}return t}function sc(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 l2(e){var t=um(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&om(n.ownerDocument.documentElement,n)){if(r!==null&&sc(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=rm(n,u);var a=rm(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 c2=gn&&"documentMode"in document&&11>=document.documentMode,io=null,lc=null,Au=null,cc=!1;function am(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||io==null||io!==Ua(r)||(r=io,"selectionStart"in r&&sc(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}),Au&&Bu(Au,r)||(Au=r,r=fi(lc,"onSelect"),0<r.length&&(t=new ec("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},fc={},im={};gn&&(im=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function li(e){if(fc[e])return fc[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in im)return fc[e]=t[n];return e}var sm=li("animationend"),lm=li("animationiteration"),cm=li("animationstart"),fm=li("transitionend"),dm=new Map,pm="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 Vn(e,t){dm.set(e,t),mr(t,[e])}for(var dc=0;dc<pm.length;dc++){var pc=pm[dc],f2=pc.toLowerCase(),d2=pc[0].toUpperCase()+pc.slice(1);Vn(f2,"on"+d2)}Vn(sm,"onAnimationEnd"),Vn(lm,"onAnimationIteration"),Vn(cm,"onAnimationStart"),Vn("dblclick","onDoubleClick"),Vn("focusin","onFocus"),Vn("focusout","onBlur"),Vn(fm,"onTransitionEnd"),Zr("onMouseEnter",["mouseout","mouseover"]),Zr("onMouseLeave",["mouseout","mouseover"]),Zr("onPointerEnter",["pointerout","pointerover"]),Zr("onPointerLeave",["pointerout","pointerover"]),mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bu="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(" "),p2=new Set("cancel close invalid load scroll toggle".split(" ").concat(bu));function vm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,fb(r,t,void 0,e),e.currentTarget=null}function hm(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;vm(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;vm(o,i,l),u=s}}}if(qa)throw e=Ul,qa=!1,Ul=null,e}function ye(e,t){var n=t[wc];n===void 0&&(n=t[wc]=new Set);var r=e+"__bubble";n.has(r)||(mm(t,e,2,!1),n.add(r))}function vc(e,t,n){var r=0;t&&(r|=4),mm(n,e,r,t)}var ci="_reactListening"+Math.random().toString(36).slice(2);function Fu(e){if(!e[ci]){e[ci]=!0,Xv.forEach(function(n){n!=="selectionchange"&&(p2.has(n)||vc(n,!1,e),vc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ci]||(t[ci]=!0,vc("selectionchange",!1,t))}}function mm(e,t,n,r){switch($h(t)){case 1:var o=xb;break;case 4:o=Ob;break;default:o=Xl}n=o.bind(null,t,n,e),o=void 0,!Wl||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 hc(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=yr(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}wh(function(){var l=u,f=Ll(n),d=[];e:{var p=dm.get(e);if(p!==void 0){var y=ec,m=e;switch(e){case"keypress":if(oi(n)===0)break e;case"keydown":case"keyup":y=Wb;break;case"focusin":m="focus",y=rc;break;case"focusout":m="blur",y=rc;break;case"beforeblur":case"afterblur":y=rc;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=Vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=kb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Kb;break;case sm:case lm:case cm:y=Rb;break;case fm:y=Qb;break;case"scroll":y=Sb;break;case"wheel":y=Gb;break;case"copy":case"cut":case"paste":y=jb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Uh}var c=(t&4)!==0,w=!c&&e==="scroll",h=c?p!==null?p+"Capture":null:p;c=[];for(var g=l,C;g!==null;){C=g;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,h!==null&&(E=su(g,h),E!=null&&c.push(xu(g,E,C)))),w)break;g=g.return}0<c.length&&(p=new y(p,m,null,n,f),d.push({event:p,listeners:c}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==$l&&(m=n.relatedTarget||n.fromElement)&&(yr(m)||m[Dn]))break e;if((y||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=l,m=m?yr(m):null,m!==null&&(w=gr(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(c=Vh,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(c=Uh,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:fo(y),C=m==null?p:fo(m),p=new c(E,g+"leave",y,n,f),p.target=w,p.relatedTarget=C,E=null,yr(f)===l&&(c=new c(h,g+"enter",m,n,f),c.target=C,c.relatedTarget=w,E=c),w=E,y&&m)t:{for(c=y,h=m,g=0,C=c;C;C=lo(C))g++;for(C=0,E=h;E;E=lo(E))C++;for(;0<g-C;)c=lo(c),g--;for(;0<C-g;)h=lo(h),C--;for(;g--;){if(c===h||h!==null&&c===h.alternate)break t;c=lo(c),h=lo(h)}c=null}else c=null;y!==null&&gm(d,p,y,c,!1),m!==null&&w!==null&&gm(d,w,m,c,!0)}}e:{if(p=l?fo(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var A=r2;else if(Gh(p))if(Zh)A=i2;else{A=u2;var x=o2}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(A=a2);if(A&&(A=A(e,l))){Xh(d,A,n,f);break e}x&&x(e,p,l),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&Rl(p,"number",p.value)}switch(x=l?fo(l):window,e){case"focusin":(Gh(x)||x.contentEditable==="true")&&(io=x,lc=l,Au=null);break;case"focusout":Au=lc=io=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,am(d,n,f);break;case"selectionchange":if(c2)break;case"keydown":case"keyup":am(d,n,f)}var B;if(uc)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ao?Qh(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Hh&&n.locale!=="ko"&&(ao||O!=="onCompositionStart"?O==="onCompositionEnd"&&ao&&(B=Lh()):(zn=f,Jl="value"in zn?zn.value:zn.textContent,ao=!0)),x=fi(l,O),0<x.length&&(O=new Wh(O,e,null,n,f),d.push({event:O,listeners:x}),B?O.data=B:(B=Yh(n),B!==null&&(O.data=B)))),(B=Zb?Jb(e,n):e2(e,n))&&(l=fi(l,"onBeforeInput"),0<l.length&&(f=new Wh("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:l}),f.data=B))}hm(d,t)})}function xu(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=su(e,n),u!=null&&r.unshift(xu(e,u,o)),u=su(e,t),u!=null&&r.push(xu(e,u,o))),e=e.return}return r}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gm(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=su(n,u),s!=null&&a.unshift(xu(n,s,i))):o||(s=su(n,u),s!=null&&a.push(xu(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var v2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function ym(e){return(typeof e=="string"?e:""+e).replace(v2,`
41
- `).replace(h2,"")}function di(e,t,n){if(t=ym(t),ym(e)!==t&&n)throw Error(H(425))}function pi(){}var mc=null,gc=null;function yc(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 Dc=typeof setTimeout=="function"?setTimeout:void 0,m2=typeof clearTimeout=="function"?clearTimeout:void 0,Dm=typeof Promise=="function"?Promise:void 0,g2=typeof queueMicrotask=="function"?queueMicrotask:typeof Dm<"u"?function(e){return Dm.resolve(null).then(e).catch(y2)}:Dc;function y2(e){setTimeout(function(){throw e})}function Cc(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),gu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);gu(t)}function Wn(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 Cm(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 co=Math.random().toString(36).slice(2),rn="__reactFiber$"+co,Ou="__reactProps$"+co,Dn="__reactContainer$"+co,wc="__reactEvents$"+co,D2="__reactListeners$"+co,C2="__reactHandles$"+co;function yr(e){var t=e[rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cm(e);e!==null;){if(n=e[rn])return n;e=Cm(e)}return t}e=n,n=e.parentNode}return null}function Su(e){return e=e[rn]||e[Dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function vi(e){return e[Ou]||null}var Ec=[],po=-1;function Un(e){return{current:e}}function De(e){0>po||(e.current=Ec[po],Ec[po]=null,po--)}function ge(e,t){po++,Ec[po]=e.current,e.current=t}var Hn={},Ye=Un(Hn),ct=Un(!1),Dr=Hn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Hn;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 ft(e){return e=e.childContextTypes,e!=null}function hi(){De(ct),De(Ye)}function wm(e,t,n){if(Ye.current!==Hn)throw Error(H(168));ge(Ye,t),ge(ct,n)}function Em(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,ob(e)||"Unknown",o));return be({},n,r)}function mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,Dr=Ye.current,ge(Ye,e),ge(ct,ct.current),!0}function Bm(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=Em(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=e,De(ct),De(Ye),ge(Ye,e)):De(ct),ge(ct,n)}var Cn=null,gi=!1,Bc=!1;function Am(e){Cn===null?Cn=[e]:Cn.push(e)}function w2(e){gi=!0,Am(e)}function Kn(){if(!Bc&&Cn!==null){Bc=!0;var e=0,t=pe;try{var n=Cn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cn=null,gi=!1}catch(o){throw Cn!==null&&(Cn=Cn.slice(e+1)),Fh(Hl,Kn),o}finally{pe=t,Bc=!1}}return null}var ho=[],mo=0,yi=null,Di=0,Pt=[],Tt=0,Cr=null,wn=1,En="";function wr(e,t){ho[mo++]=Di,ho[mo++]=yi,yi=e,Di=t}function bm(e,t,n){Pt[Tt++]=wn,Pt[Tt++]=En,Pt[Tt++]=Cr,Cr=e;var r=wn;e=En;var o=32-Ut(r)-1;r&=~(1<<o),n+=1;var u=32-Ut(t)+o;if(30<u){var a=o-o%5;u=(r&(1<<a)-1).toString(32),r>>=a,o-=a,wn=1<<32-Ut(t)+o|n<<o|r,En=u+e}else wn=1<<u|n<<o|r,En=e}function Ac(e){e.return!==null&&(wr(e,1),bm(e,1,0))}function bc(e){for(;e===yi;)yi=ho[--mo],ho[mo]=null,Di=ho[--mo],ho[mo]=null;for(;e===Cr;)Cr=Pt[--Tt],Pt[Tt]=null,En=Pt[--Tt],Pt[Tt]=null,wn=Pt[--Tt],Pt[Tt]=null}var At=null,bt=null,we=!1,Kt=null;function Fm(e,t){var n=It(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 xm(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,At=e,bt=Wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cr!==null?{id:wn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=It(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,At=e,bt=null,!0):!1;default:return!1}}function Fc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xc(e){if(we){var t=bt;if(t){var n=t;if(!xm(e,t)){if(Fc(e))throw Error(H(418));t=Wn(n.nextSibling);var r=At;t&&xm(e,t)?Fm(r,n):(e.flags=e.flags&-4097|2,we=!1,At=e)}}else{if(Fc(e))throw Error(H(418));e.flags=e.flags&-4097|2,we=!1,At=e}}}function Om(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function Ci(e){if(e!==At)return!1;if(!we)return Om(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yc(e.type,e.memoizedProps)),t&&(t=bt)){if(Fc(e))throw Sm(),Error(H(418));for(;t;)Fm(e,t),t=Wn(t.nextSibling)}if(Om(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){bt=Wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=At?Wn(e.stateNode.nextSibling):null;return!0}function Sm(){for(var e=bt;e;)e=Wn(e.nextSibling)}function go(){bt=At=null,we=!1}function Oc(e){Kt===null?Kt=[e]:Kt.push(e)}var E2=yn.ReactCurrentBatchConfig;function qt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var wi=Un(null),Ei=null,yo=null,Sc=null;function _c(){Sc=yo=Ei=null}function kc(e){var t=wi.current;De(wi),e._currentValue=t}function Pc(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 Do(e,t){Ei=e,Sc=yo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Sc!==e)if(e={context:e,memoizedValue:t,next:null},yo===null){if(Ei===null)throw Error(H(308));yo=e,Ei.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var Er=null;function Tc(e){Er===null?Er=[e]:Er.push(e)}function _m(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Tc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bn(e,r)}function Bn(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 qn=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function km(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 An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bn(e,n)}return o=r.interleaved,o===null?(t.next=t,Tc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bn(e,n)}function Bi(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,Ql(e,n)}}function Pm(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 Ai(e,t,n,r){var o=e.updateQueue;qn=!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 f=e.alternate;f!==null&&(f=f.updateQueue,i=f.lastBaseUpdate,i!==a&&(i===null?f.firstBaseUpdate=l:i.next=l,f.lastBaseUpdate=s))}if(u!==null){var d=o.baseState;a=0,f=l=s=null,i=u;do{var p=i.lane,y=i.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,c=i;switch(p=t,y=n,c.tag){case 1:if(m=c.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=c.payload,p=typeof m=="function"?m.call(y,d,p):m,p==null)break e;d=be({},d,p);break e;case 2:qn=!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},f===null?(l=f=y,s=d):f=f.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(1);if(f===null&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=f,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);br|=a,e.lanes=a,e.memoizedState=d}}function Tm(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 Rm=new Gv.Component().refs;function Nc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bi={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Zn(e),u=An(r,o);u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Gt(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Zn(e),u=An(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Gt(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=Zn(e),o=An(n,r);o.tag=2,t!=null&&(o.callback=t),t=Qn(e,o,r),t!==null&&(Gt(t,e,r,n),Bi(t,e,r))}};function Nm(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?!Bu(n,r)||!Bu(o,u):!0}function jm(e,t,n){var r=!1,o=Hn,u=t.contextType;return typeof u=="object"&&u!==null?u=Rt(u):(o=ft(t)?Dr:Ye.current,r=t.contextTypes,u=(r=r!=null)?vo(e,o):Hn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function Im(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&&bi.enqueueReplaceState(t,t.state,null)}function jc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Rm,Rc(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Rt(u):(u=ft(t)?Dr:Ye.current,o.context=vo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Nc(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&&bi.enqueueReplaceState(o,o.state,null),Ai(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function _u(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;i===Rm&&(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 Fi(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mm(e){var t=e._init;return t(e._payload)}function $m(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=er(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=Cf(C,h.mode,E),g.return=h,g):(g=o(g,C),g.return=h,g)}function s(h,g,C,E){var A=C.type;return A===eo?f(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Nn&&Mm(A)===g.type)?(E=o(g,C.props),E.ref=_u(h,g,C),E.return=h,E):(E=Hi(C.type,C.key,C.props,null,h.mode,E),E.ref=_u(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=wf(C,h.mode,E),g.return=h,g):(g=o(g,C.children||[]),g.return=h,g)}function f(h,g,C,E,A){return g===null||g.tag!==7?(g=Sr(C,h.mode,E,A),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=Cf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Va:return C=Hi(g.type,g.key,g.props,null,h.mode,C),C.ref=_u(h,null,g),C.return=h,C;case Jr:return g=wf(g,h.mode,C),g.return=h,g;case Nn:var E=g._init;return d(h,E(g._payload),C)}if(uu(g)||ru(g))return g=Sr(g,h.mode,C,null),g.return=h,g;Fi(h,g)}return null}function p(h,g,C,E){var A=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return A!==null?null:i(h,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Va:return C.key===A?s(h,g,C,E):null;case Jr:return C.key===A?l(h,g,C,E):null;case Nn:return A=C._init,p(h,g,A(C._payload),E)}if(uu(C)||ru(C))return A!==null?null:f(h,g,C,E,null);Fi(h,C)}return null}function y(h,g,C,E,A){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(C)||null,i(g,h,""+E,A);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Va:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,A);case Jr:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,A);case Nn:var x=E._init;return y(h,g,C,x(E._payload),A)}if(uu(E)||ru(E))return h=h.get(C)||null,f(g,h,E,A,null);Fi(g,E)}return null}function m(h,g,C,E){for(var A=null,x=null,B=g,O=g=0,k=null;B!==null&&O<C.length;O++){B.index>O?(k=B,B=null):k=B.sibling;var _=p(h,B,C[O],E);if(_===null){B===null&&(B=k);break}e&&B&&_.alternate===null&&t(h,B),g=u(_,g,O),x===null?A=_:x.sibling=_,x=_,B=k}if(O===C.length)return n(h,B),we&&wr(h,O),A;if(B===null){for(;O<C.length;O++)B=d(h,C[O],E),B!==null&&(g=u(B,g,O),x===null?A=B:x.sibling=B,x=B);return we&&wr(h,O),A}for(B=r(h,B);O<C.length;O++)k=y(B,h,O,C[O],E),k!==null&&(e&&k.alternate!==null&&B.delete(k.key===null?O:k.key),g=u(k,g,O),x===null?A=k:x.sibling=k,x=k);return e&&B.forEach(function(K){return t(h,K)}),we&&wr(h,O),A}function c(h,g,C,E){var A=ru(C);if(typeof A!="function")throw Error(H(150));if(C=A.call(C),C==null)throw Error(H(151));for(var x=A=null,B=g,O=g=0,k=null,_=C.next();B!==null&&!_.done;O++,_=C.next()){B.index>O?(k=B,B=null):k=B.sibling;var K=p(h,B,_.value,E);if(K===null){B===null&&(B=k);break}e&&B&&K.alternate===null&&t(h,B),g=u(K,g,O),x===null?A=K:x.sibling=K,x=K,B=k}if(_.done)return n(h,B),we&&wr(h,O),A;if(B===null){for(;!_.done;O++,_=C.next())_=d(h,_.value,E),_!==null&&(g=u(_,g,O),x===null?A=_:x.sibling=_,x=_);return we&&wr(h,O),A}for(B=r(h,B);!_.done;O++,_=C.next())_=y(B,h,O,_.value,E),_!==null&&(e&&_.alternate!==null&&B.delete(_.key===null?O:_.key),g=u(_,g,O),x===null?A=_:x.sibling=_,x=_);return e&&B.forEach(function(P){return t(h,P)}),we&&wr(h,O),A}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===eo&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Va:e:{for(var A=C.key,x=g;x!==null;){if(x.key===A){if(A=C.type,A===eo){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===A||typeof A=="object"&&A!==null&&A.$$typeof===Nn&&Mm(A)===x.type){n(h,x.sibling),g=o(x,C.props),g.ref=_u(h,x,C),g.return=h,h=g;break e}n(h,x);break}else t(h,x);x=x.sibling}C.type===eo?(g=Sr(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=Hi(C.type,C.key,C.props,null,h.mode,E),E.ref=_u(h,g,C),E.return=h,h=E)}return a(h);case Jr: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=wf(C,h.mode,E),g.return=h,h=g}return a(h);case Nn:return x=C._init,w(h,g,x(C._payload),E)}if(uu(C))return m(h,g,C,E);if(ru(C))return c(h,g,C,E);Fi(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=Cf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var Co=$m(!0),Lm=$m(!1),ku={},on=Un(ku),Pu=Un(ku),Tu=Un(ku);function Br(e){if(e===ku)throw Error(H(174));return e}function Ic(e,t){switch(ge(Tu,t),ge(Pu,e),ge(on,ku),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jl(t,e)}De(on),ge(on,t)}function wo(){De(on),De(Pu),De(Tu)}function zm(e){Br(Tu.current);var t=Br(on.current),n=jl(t,e.type);t!==n&&(ge(Pu,e),ge(on,n))}function Mc(e){Pu.current===e&&(De(on),De(Pu))}var Fe=Un(0);function xi(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 $c=[];function Lc(){for(var e=0;e<$c.length;e++)$c[e]._workInProgressVersionPrimary=null;$c.length=0}var Oi=yn.ReactCurrentDispatcher,zc=yn.ReactCurrentBatchConfig,Ar=0,xe=null,Me=null,Ve=null,Si=!1,Ru=!1,Nu=0,B2=0;function Ge(){throw Error(H(321))}function Vc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Wc(e,t,n,r,o,u){if(Ar=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oi.current=e===null||e.memoizedState===null?x2:O2,e=n(r,o),Ru){u=0;do{if(Ru=!1,Nu=0,25<=u)throw Error(H(301));u+=1,Ve=Me=null,t.updateQueue=null,Oi.current=S2,e=n(r,o)}while(Ru)}if(Oi.current=Pi,t=Me!==null&&Me.next!==null,Ar=0,Ve=Me=xe=null,Si=!1,t)throw Error(H(300));return e}function Uc(){var e=Nu!==0;return Nu=0,e}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Nt(){if(Me===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ve===null?xe.memoizedState:Ve.next;if(t!==null)Ve=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},Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function ju(e,t){return typeof t=="function"?t(e):t}function Hc(e){var t=Nt(),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 f=l.lane;if((Ar&f)===f)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:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};s===null?(i=s=d,a=r):s=s.next=d,xe.lanes|=f,br|=f}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Ht(r,t.memoizedState)||(dt=!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,xe.lanes|=u,br|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Kc(e){var t=Nt(),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);Ht(u,t.memoizedState)||(dt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Vm(){}function Wm(e,t){var n=xe,r=Nt(),o=t(),u=!Ht(r.memoizedState,o);if(u&&(r.memoizedState=o,dt=!0),r=r.queue,qc(Km.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Iu(9,Hm.bind(null,n,r,o,t),void 0,null),We===null)throw Error(H(349));Ar&30||Um(n,t,o)}return o}function Um(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hm(e,t,n,r){t.value=n,t.getSnapshot=r,qm(t)&&Qm(e)}function Km(e,t,n){return n(function(){qm(t)&&Qm(e)})}function qm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Qm(e){var t=Bn(e,1);t!==null&&Gt(t,e,1,-1)}function Ym(e){var t=un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ju,lastRenderedState:e},t.queue=e,e=e.dispatch=F2.bind(null,xe,e),[t.memoizedState,e]}function Iu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.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 Gm(){return Nt().memoizedState}function _i(e,t,n,r){var o=un();xe.flags|=e,o.memoizedState=Iu(1|t,n,void 0,r===void 0?null:r)}function ki(e,t,n,r){var o=Nt();r=r===void 0?null:r;var u=void 0;if(Me!==null){var a=Me.memoizedState;if(u=a.destroy,r!==null&&Vc(r,a.deps)){o.memoizedState=Iu(t,n,u,r);return}}xe.flags|=e,o.memoizedState=Iu(1|t,n,u,r)}function Xm(e,t){return _i(8390656,8,e,t)}function qc(e,t){return ki(2048,8,e,t)}function Zm(e,t){return ki(4,2,e,t)}function Jm(e,t){return ki(4,4,e,t)}function eg(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 tg(e,t,n){return n=n!=null?n.concat([e]):null,ki(4,4,eg.bind(null,t,e),n)}function Qc(){}function ng(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rg(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Vc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function og(e,t,n){return Ar&21?(Ht(n,t)||(n=_h(),xe.lanes|=n,br|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function A2(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=zc.transition;zc.transition={};try{e(!1),t()}finally{pe=n,zc.transition=r}}function ug(){return Nt().memoizedState}function b2(e,t,n){var r=Zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ag(e))ig(t,n);else if(n=_m(e,t,n,r),n!==null){var o=ut();Gt(n,e,r,o),sg(n,t,r)}}function F2(e,t,n){var r=Zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ag(e))ig(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,Ht(i,a)){var s=t.interleaved;s===null?(o.next=o,Tc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=_m(e,t,o,r),n!==null&&(o=ut(),Gt(n,e,r,o),sg(n,t,r))}}function ag(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function ig(e,t){Ru=Si=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ql(e,n)}}var Pi={readContext:Rt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},x2={readContext:Rt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Xm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_i(4194308,4,eg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){return _i(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();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=b2.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Ym,useDebugValue:Qc,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Ym(!1),t=e[0];return e=A2.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=un();if(we){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),We===null)throw Error(H(349));Ar&30||Um(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Xm(Km.bind(null,r,u,e),[e]),r.flags|=2048,Iu(9,Hm.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=un(),t=We.identifierPrefix;if(we){var n=En,r=wn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=B2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},O2={readContext:Rt,useCallback:ng,useContext:Rt,useEffect:qc,useImperativeHandle:tg,useInsertionEffect:Zm,useLayoutEffect:Jm,useMemo:rg,useReducer:Hc,useRef:Gm,useState:function(){return Hc(ju)},useDebugValue:Qc,useDeferredValue:function(e){var t=Nt();return og(t,Me.memoizedState,e)},useTransition:function(){var e=Hc(ju)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Vm,useSyncExternalStore:Wm,useId:ug,unstable_isNewReconciler:!1},S2={readContext:Rt,useCallback:ng,useContext:Rt,useEffect:qc,useImperativeHandle:tg,useInsertionEffect:Zm,useLayoutEffect:Jm,useMemo:rg,useReducer:Kc,useRef:Gm,useState:function(){return Kc(ju)},useDebugValue:Qc,useDeferredValue:function(e){var t=Nt();return Me===null?t.memoizedState=e:og(t,Me.memoizedState,e)},useTransition:function(){var e=Kc(ju)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Vm,useSyncExternalStore:Wm,useId:ug,unstable_isNewReconciler:!1};function Eo(e,t){try{var n="",r=t;do n+=rb(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{_l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?au(e):""}function lb(e){switch(e.tag){case 5:return au(e.type);case 16:return au("Lazy");case 13:return au("Suspense");case 19:return au("SuspenseList");case 0:case 2:case 15:return e=kl(e.type,!1),e;case 11:return e=kl(e.type.render,!1),e;case 1:return e=kl(e.type,!0),e;default:return""}}function Pl(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 eo:return"Fragment";case Jr:return"Portal";case Al:return"Profiler";case Bl:return"StrictMode";case Fl:return"Suspense";case xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rh:return(e.displayName||"Context")+".Consumer";case nh:return(e._context.displayName||"Context")+".Provider";case bl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sl:return t=e.displayName||null,t!==null?t:Pl(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return Pl(e(t))}catch{}}return null}function cb(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 Pl(t);case 8:return t===Bl?"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 jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ah(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fb(e){var t=ah(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 Ha(e){e._valueTracker||(e._valueTracker=fb(e))}function ih(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ah(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(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 Tl(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(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 lh(e,t){t=t.checked,t!=null&&El(e,"checked",t,!1)}function Rl(e,t){lh(e,t);var n=jn(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")?Nl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nl(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ch(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 Nl(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var iu=Array.isArray;function to(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=""+jn(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 jl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(iu(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jn(n)}}function dh(e,t){var n=jn(t.value),r=jn(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 ph(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vh(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 Il(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qa,hh=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(qa=qa||document.createElement("div"),qa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function su(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var lu={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},db=["Webkit","ms","Moz","O"];Object.keys(lu).forEach(function(e){db.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lu[t]=lu[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||lu.hasOwnProperty(e)&&lu[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pb=be({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 Ml(e,t){if(t){if(pb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function $l(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 Ll=null;function zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,no=null,ro=null;function yh(e){if(e=ku(e)){if(typeof Vl!="function")throw Error(K(280));var t=e.stateNode;t&&(t=mi(t),Vl(e.stateNode,e.type,t))}}function Dh(e){no?ro?ro.push(e):ro=[e]:no=e}function Ch(){if(no){var e=no,t=ro;if(ro=no=null,yh(e),t)for(e=0;e<t.length;e++)yh(t[e])}}function wh(e,t){return e(t)}function Eh(){}var Wl=!1;function Bh(e,t,n){if(Wl)return e(t,n);Wl=!0;try{return wh(e,t,n)}finally{Wl=!1,(no!==null||ro!==null)&&(Eh(),Ch())}}function cu(e,t){var n=e.stateNode;if(n===null)return null;var r=mi(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(K(231,t,typeof n));return n}var Ul=!1;if(gn)try{var fu={};Object.defineProperty(fu,"passive",{get:function(){Ul=!0}}),window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch{Ul=!1}function vb(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 du=!1,Qa=null,Ya=!1,Hl=null,hb={onError:function(e){du=!0,Qa=e}};function mb(e,t,n,r,o,u,a,i,s){du=!1,Qa=null,vb.apply(hb,arguments)}function gb(e,t,n,r,o,u,a,i,s){if(mb.apply(this,arguments),du){if(du){var l=Qa;du=!1,Qa=null}else throw Error(K(198));Ya||(Ya=!0,Hl=l)}}function gr(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 Ah(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 bh(e){if(gr(e)!==e)throw Error(K(188))}function yb(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(K(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 bh(o),e;if(u===r)return bh(o),t;u=u.sibling}throw Error(K(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(K(189))}}if(n.alternate!==r)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function Fh(e){return e=yb(e),e!==null?xh(e):null}function xh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xh(e);if(t!==null)return t;e=e.sibling}return null}var Sh=Et.unstable_scheduleCallback,Oh=Et.unstable_cancelCallback,Db=Et.unstable_shouldYield,Cb=Et.unstable_requestPaint,Pe=Et.unstable_now,wb=Et.unstable_getCurrentPriorityLevel,Kl=Et.unstable_ImmediatePriority,_h=Et.unstable_UserBlockingPriority,Ga=Et.unstable_NormalPriority,Eb=Et.unstable_LowPriority,kh=Et.unstable_IdlePriority,Xa=null,nn=null;function Bb(e){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(Xa,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:Fb,Ab=Math.log,bb=Math.LN2;function Fb(e){return e>>>=0,e===0?32:31-(Ab(e)/bb|0)|0}var Za=64,Ja=4194304;function pu(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 ei(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=pu(i):(u&=a,u!==0&&(r=pu(u)))}else a=n&~o,a!==0?r=pu(a):u!==0&&(r=pu(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-Ut(t),o=1<<n,r|=e[n],t&=~o;return r}function xb(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 Sb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var a=31-Ut(u),i=1<<a,s=o[a];s===-1?(!(i&n)||i&r)&&(o[a]=xb(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function ql(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ph(){var e=Za;return Za<<=1,!(Za&4194240)&&(Za=64),e}function Ql(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function Ob(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-Ut(n),u=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~u}}function Yl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function Th(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rh,Gl,Nh,jh,Ih,Xl=!1,ti=[],In=null,Mn=null,$n=null,hu=new Map,mu=new Map,Ln=[],_b="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 Mh(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function gu(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=ku(t),t!==null&&Gl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function kb(e,t,n,r,o){switch(t){case"focusin":return In=gu(In,e,t,n,r,o),!0;case"dragenter":return Mn=gu(Mn,e,t,n,r,o),!0;case"mouseover":return $n=gu($n,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return hu.set(u,gu(hu.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,mu.set(u,gu(mu.get(u)||null,e,t,n,r,o)),!0}return!1}function $h(e){var t=yr(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ah(n),t!==null){e.blockedOn=t,Ih(e.priority,function(){Nh(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 ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ll=r,n.target.dispatchEvent(r),Ll=null}else return t=ku(n),t!==null&&Gl(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){ni(e)&&n.delete(t)}function Pb(){Xl=!1,In!==null&&ni(In)&&(In=null),Mn!==null&&ni(Mn)&&(Mn=null),$n!==null&&ni($n)&&($n=null),hu.forEach(Lh),mu.forEach(Lh)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,Xl||(Xl=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,Pb)))}function Du(e){function t(o){return yu(o,e)}if(0<ti.length){yu(ti[0],e);for(var n=1;n<ti.length;n++){var r=ti[n];r.blockedOn===e&&(r.blockedOn=null)}}for(In!==null&&yu(In,e),Mn!==null&&yu(Mn,e),$n!==null&&yu($n,e),hu.forEach(t),mu.forEach(t),n=0;n<Ln.length;n++)r=Ln[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ln.length&&(n=Ln[0],n.blockedOn===null);)$h(n),n.blockedOn===null&&Ln.shift()}var oo=yn.ReactCurrentBatchConfig,ri=!0;function Tb(e,t,n,r){var o=pe,u=oo.transition;oo.transition=null;try{pe=1,Zl(e,t,n,r)}finally{pe=o,oo.transition=u}}function Rb(e,t,n,r){var o=pe,u=oo.transition;oo.transition=null;try{pe=4,Zl(e,t,n,r)}finally{pe=o,oo.transition=u}}function Zl(e,t,n,r){if(ri){var o=Jl(e,t,n,r);if(o===null)mc(e,t,r,oi,n),Mh(e,r);else if(kb(o,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<_b.indexOf(e)){for(;o!==null;){var u=ku(o);if(u!==null&&Rh(u),u=Jl(e,t,n,r),u===null&&mc(e,t,r,oi,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else mc(e,t,r,null,n)}}var oi=null;function Jl(e,t,n,r){if(oi=null,e=zl(r),e=yr(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ah(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 oi=e,null}function zh(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(wb()){case Kl:return 1;case _h:return 4;case Ga:case Eb:return 16;case kh:return 536870912;default:return 16}default:return 16}}var zn=null,ec=null,ui=null;function Vh(){if(ui)return ui;var e,t=ec,n=t.length,r,o="value"in zn?zn.value:zn.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 ui=o.slice(e,1<r?1-r:void 0)}function ai(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 ii(){return!0}function Wh(){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)?ii:Wh,this.isPropagationStopped=Wh,this}return be(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=ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=Bt(uo),Cu=be({},uo,{view:0,detail:0}),Nb=Bt(Cu),nc,rc,wu,si=be({},Cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,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!==wu&&(wu&&e.type==="mousemove"?(nc=e.screenX-wu.screenX,rc=e.screenY-wu.screenY):rc=nc=0,wu=e),nc)},movementY:function(e){return"movementY"in e?e.movementY:rc}}),Uh=Bt(si),jb=be({},si,{dataTransfer:0}),Ib=Bt(jb),Mb=be({},Cu,{relatedTarget:0}),oc=Bt(Mb),$b=be({},uo,{animationName:0,elapsedTime:0,pseudoElement:0}),Lb=Bt($b),zb=be({},uo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vb=Bt(zb),Wb=be({},uo,{data:0}),Hh=Bt(Wb),Ub={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hb={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"},Kb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kb[e])?!!t[e]:!1}function uc(){return qb}var Qb=be({},Cu,{key:function(e){if(e.key){var t=Ub[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yb=Bt(Qb),Gb=be({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kh=Bt(Gb),Xb=be({},Cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),Zb=Bt(Xb),Jb=be({},uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),e2=Bt(Jb),t2=be({},si,{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}),n2=Bt(t2),r2=[9,13,27,32],ac=gn&&"CompositionEvent"in window,Eu=null;gn&&"documentMode"in document&&(Eu=document.documentMode);var o2=gn&&"TextEvent"in window&&!Eu,qh=gn&&(!ac||Eu&&8<Eu&&11>=Eu),Qh=" ",Yh=!1;function Gh(e,t){switch(e){case"keyup":return r2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ao=!1;function u2(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":return t.which!==32?null:(Yh=!0,Qh);case"textInput":return e=t.data,e===Qh&&Yh?null:e;default:return null}}function a2(e,t){if(ao)return e==="compositionend"||!ac&&Gh(e,t)?(e=Vh(),ui=ec=zn=null,ao=!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 qh&&t.locale!=="ko"?null:t.data;default:return null}}var i2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!i2[e.type]:t==="textarea"}function Jh(e,t,n,r){Dh(r),t=pi(t,"onChange"),0<t.length&&(n=new tc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bu=null,Au=null;function s2(e){gm(e,0)}function li(e){var t=fo(e);if(ih(t))return e}function l2(e,t){if(e==="change")return t}var em=!1;if(gn){var ic;if(gn){var sc="oninput"in document;if(!sc){var tm=document.createElement("div");tm.setAttribute("oninput","return;"),sc=typeof tm.oninput=="function"}ic=sc}else ic=!1;em=ic&&(!document.documentMode||9<document.documentMode)}function nm(){Bu&&(Bu.detachEvent("onpropertychange",rm),Au=Bu=null)}function rm(e){if(e.propertyName==="value"&&li(Au)){var t=[];Jh(t,Au,e,zl(e)),Bh(s2,t)}}function c2(e,t,n){e==="focusin"?(nm(),Bu=t,Au=n,Bu.attachEvent("onpropertychange",rm)):e==="focusout"&&nm()}function f2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return li(Au)}function d2(e,t){if(e==="click")return li(t)}function p2(e,t){if(e==="input"||e==="change")return li(t)}function v2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:v2;function bu(e,t){if(Ht(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(!Dl.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function om(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,t){var n=om(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=om(n)}}function am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function lc(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 h2(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&am(n.ownerDocument.documentElement,n)){if(r!==null&&lc(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=um(n,u);var a=um(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 m2=gn&&"documentMode"in document&&11>=document.documentMode,io=null,cc=null,Fu=null,fc=!1;function sm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fc||io==null||io!==Ka(r)||(r=io,"selectionStart"in r&&lc(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}),Fu&&bu(Fu,r)||(Fu=r,r=pi(cc,"onSelect"),0<r.length&&(t=new tc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionend:ci("Transition","TransitionEnd")},dc={},lm={};gn&&(lm=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function fi(e){if(dc[e])return dc[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in lm)return dc[e]=t[n];return e}var cm=fi("animationend"),fm=fi("animationiteration"),dm=fi("animationstart"),pm=fi("transitionend"),vm=new Map,hm="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 Vn(e,t){vm.set(e,t),mr(t,[e])}for(var pc=0;pc<hm.length;pc++){var vc=hm[pc],g2=vc.toLowerCase(),y2=vc[0].toUpperCase()+vc.slice(1);Vn(g2,"on"+y2)}Vn(cm,"onAnimationEnd"),Vn(fm,"onAnimationIteration"),Vn(dm,"onAnimationStart"),Vn("dblclick","onDoubleClick"),Vn("focusin","onFocus"),Vn("focusout","onBlur"),Vn(pm,"onTransitionEnd"),Zr("onMouseEnter",["mouseout","mouseover"]),Zr("onMouseLeave",["mouseout","mouseover"]),Zr("onPointerEnter",["pointerout","pointerover"]),Zr("onPointerLeave",["pointerout","pointerover"]),mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="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(" "),D2=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function mm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,gb(r,t,void 0,e),e.currentTarget=null}function gm(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;mm(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;mm(o,i,l),u=s}}}if(Ya)throw e=Hl,Ya=!1,Hl=null,e}function De(e,t){var n=t[Ec];n===void 0&&(n=t[Ec]=new Set);var r=e+"__bubble";n.has(r)||(ym(t,e,2,!1),n.add(r))}function hc(e,t,n){var r=0;t&&(r|=4),ym(n,e,r,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function Su(e){if(!e[di]){e[di]=!0,Jv.forEach(function(n){n!=="selectionchange"&&(D2.has(n)||hc(n,!1,e),hc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,hc("selectionchange",!1,t))}}function ym(e,t,n,r){switch(zh(t)){case 1:var o=Tb;break;case 4:o=Rb;break;default:o=Zl}n=o.bind(null,t,n,e),o=void 0,!Ul||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 mc(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=yr(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}Bh(function(){var l=u,c=zl(n),d=[];e:{var p=vm.get(e);if(p!==void 0){var y=tc,m=e;switch(e){case"keypress":if(ai(n)===0)break e;case"keydown":case"keyup":y=Yb;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=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Ib;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Zb;break;case cm:case fm:case dm:y=Lb;break;case pm:y=e2;break;case"scroll":y=Nb;break;case"wheel":y=n2;break;case"copy":case"cut":case"paste":y=Vb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Kh}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(Ou(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!==Ll&&(m=n.relatedTarget||n.fromElement)&&(yr(m)||m[Dn]))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?yr(m):null,m!==null&&(w=gr(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=Uh,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Kh,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:fo(y),C=m==null?p:fo(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,yr(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=lo(C))g++;for(C=0,E=h;E;E=lo(E))C++;for(;0<g-C;)f=lo(f),g--;for(;0<C-g;)h=lo(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=lo(f),h=lo(h)}f=null}else f=null;y!==null&&Dm(d,p,y,f,!1),m!==null&&w!==null&&Dm(d,w,m,f,!0)}}e:{if(p=l?fo(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=l2;else if(Zh(p))if(em)B=p2;else{B=f2;var F=c2}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=d2);if(B&&(B=B(e,l))){Jh(d,B,n,c);break e}F&&F(e,p,l),e==="focusout"&&(F=p._wrapperState)&&F.controlled&&p.type==="number"&&Nl(p,"number",p.value)}switch(F=l?fo(l):window,e){case"focusin":(Zh(F)||F.contentEditable==="true")&&(io=F,cc=l,Fu=null);break;case"focusout":Fu=cc=io=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,sm(d,n,c);break;case"selectionchange":if(m2)break;case"keydown":case"keyup":sm(d,n,c)}var A;if(ac)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 ao?Gh(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(qh&&n.locale!=="ko"&&(ao||S!=="onCompositionStart"?S==="onCompositionEnd"&&ao&&(A=Vh()):(zn=c,ec="value"in zn?zn.value:zn.textContent,ao=!0)),F=pi(l,S),0<F.length&&(S=new Hh(S,e,null,n,c),d.push({event:S,listeners:F}),A?S.data=A:(A=Xh(n),A!==null&&(S.data=A)))),(A=o2?u2(e,n):a2(e,n))&&(l=pi(l,"onBeforeInput"),0<l.length&&(c=new Hh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=A))}gm(d,t)})}function Ou(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pi(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(Ou(e,u,o)),u=cu(e,t),u!=null&&r.push(Ou(e,u,o))),e=e.return}return r}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dm(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(Ou(n,s,i))):o||(s=cu(n,u),s!=null&&a.push(Ou(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var C2=/\r\n?/g,w2=/\u0000|\uFFFD/g;function Cm(e){return(typeof e=="string"?e:""+e).replace(C2,`
39
+ `).replace(w2,"")}function vi(e,t,n){if(t=Cm(t),Cm(e)!==t&&n)throw Error(K(425))}function hi(){}var gc=null,yc=null;function Dc(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 Cc=typeof setTimeout=="function"?setTimeout:void 0,E2=typeof clearTimeout=="function"?clearTimeout:void 0,wm=typeof Promise=="function"?Promise:void 0,B2=typeof queueMicrotask=="function"?queueMicrotask:typeof wm<"u"?function(e){return wm.resolve(null).then(e).catch(A2)}:Cc;function A2(e){setTimeout(function(){throw e})}function wc(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),Du(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Du(t)}function Wn(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 Em(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 co=Math.random().toString(36).slice(2),rn="__reactFiber$"+co,_u="__reactProps$"+co,Dn="__reactContainer$"+co,Ec="__reactEvents$"+co,b2="__reactListeners$"+co,F2="__reactHandles$"+co;function yr(e){var t=e[rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Em(e);e!==null;){if(n=e[rn])return n;e=Em(e)}return t}e=n,n=e.parentNode}return null}function ku(e){return e=e[rn]||e[Dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function mi(e){return e[_u]||null}var Bc=[],po=-1;function Un(e){return{current:e}}function Ce(e){0>po||(e.current=Bc[po],Bc[po]=null,po--)}function ye(e,t){po++,Bc[po]=e.current,e.current=t}var Hn={},Ye=Un(Hn),ct=Un(!1),Dr=Hn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Hn;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 ft(e){return e=e.childContextTypes,e!=null}function gi(){Ce(ct),Ce(Ye)}function Bm(e,t,n){if(Ye.current!==Hn)throw Error(K(168));ye(Ye,t),ye(ct,n)}function Am(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(K(108,cb(e)||"Unknown",o));return be({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,Dr=Ye.current,ye(Ye,e),ye(ct,ct.current),!0}function bm(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=Am(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=e,Ce(ct),Ce(Ye),ye(Ye,e)):Ce(ct),ye(ct,n)}var Cn=null,Di=!1,Ac=!1;function Fm(e){Cn===null?Cn=[e]:Cn.push(e)}function x2(e){Di=!0,Fm(e)}function Kn(){if(!Ac&&Cn!==null){Ac=!0;var e=0,t=pe;try{var n=Cn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cn=null,Di=!1}catch(o){throw Cn!==null&&(Cn=Cn.slice(e+1)),Sh(Kl,Kn),o}finally{pe=t,Ac=!1}}return null}var ho=[],mo=0,Ci=null,wi=0,Pt=[],Tt=0,Cr=null,wn=1,En="";function wr(e,t){ho[mo++]=wi,ho[mo++]=Ci,Ci=e,wi=t}function xm(e,t,n){Pt[Tt++]=wn,Pt[Tt++]=En,Pt[Tt++]=Cr,Cr=e;var r=wn;e=En;var o=32-Ut(r)-1;r&=~(1<<o),n+=1;var u=32-Ut(t)+o;if(30<u){var a=o-o%5;u=(r&(1<<a)-1).toString(32),r>>=a,o-=a,wn=1<<32-Ut(t)+o|n<<o|r,En=u+e}else wn=1<<u|n<<o|r,En=e}function bc(e){e.return!==null&&(wr(e,1),xm(e,1,0))}function Fc(e){for(;e===Ci;)Ci=ho[--mo],ho[mo]=null,wi=ho[--mo],ho[mo]=null;for(;e===Cr;)Cr=Pt[--Tt],Pt[Tt]=null,En=Pt[--Tt],Pt[Tt]=null,wn=Pt[--Tt],Pt[Tt]=null}var At=null,bt=null,Ee=!1,Kt=null;function Sm(e,t){var n=It(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 Om(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,At=e,bt=Wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cr!==null?{id:wn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=It(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,At=e,bt=null,!0):!1;default:return!1}}function xc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sc(e){if(Ee){var t=bt;if(t){var n=t;if(!Om(e,t)){if(xc(e))throw Error(K(418));t=Wn(n.nextSibling);var r=At;t&&Om(e,t)?Sm(r,n):(e.flags=e.flags&-4097|2,Ee=!1,At=e)}}else{if(xc(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ee=!1,At=e}}}function _m(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function Ei(e){if(e!==At)return!1;if(!Ee)return _m(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Dc(e.type,e.memoizedProps)),t&&(t=bt)){if(xc(e))throw km(),Error(K(418));for(;t;)Sm(e,t),t=Wn(t.nextSibling)}if(_m(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=Wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=At?Wn(e.stateNode.nextSibling):null;return!0}function km(){for(var e=bt;e;)e=Wn(e.nextSibling)}function go(){bt=At=null,Ee=!1}function Oc(e){Kt===null?Kt=[e]:Kt.push(e)}var S2=yn.ReactCurrentBatchConfig;function qt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Bi=Un(null),Ai=null,yo=null,_c=null;function kc(){_c=yo=Ai=null}function Pc(e){var t=Bi.current;Ce(Bi),e._currentValue=t}function Tc(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 Do(e,t){Ai=e,_c=yo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(_c!==e)if(e={context:e,memoizedValue:t,next:null},yo===null){if(Ai===null)throw Error(K(308));yo=e,Ai.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var Er=null;function Rc(e){Er===null?Er=[e]:Er.push(e)}function Pm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Rc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bn(e,r)}function Bn(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 qn=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tm(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 An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bn(e,n)}return o=r.interleaved,o===null?(t.next=t,Rc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bn(e,n)}function bi(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,Yl(e,n)}}function Rm(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 Fi(e,t,n,r){var o=e.updateQueue;qn=!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=be({},d,p);break e;case 2:qn=!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);br|=a,e.lanes=a,e.memoizedState=d}}function Nm(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(K(191,o));o.call(r)}}}var jm=new Zv.Component().refs;function jc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xi={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Zn(e),u=An(r,o);u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Gt(t,e,o,r),bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Zn(e),u=An(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Gt(t,e,o,r),bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=Zn(e),o=An(n,r);o.tag=2,t!=null&&(o.callback=t),t=Qn(e,o,r),t!==null&&(Gt(t,e,r,n),bi(t,e,r))}};function Im(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?!bu(n,r)||!bu(o,u):!0}function Mm(e,t,n){var r=!1,o=Hn,u=t.contextType;return typeof u=="object"&&u!==null?u=Rt(u):(o=ft(t)?Dr:Ye.current,r=t.contextTypes,u=(r=r!=null)?vo(e,o):Hn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function $m(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&&xi.enqueueReplaceState(t,t.state,null)}function Ic(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=jm,Nc(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Rt(u):(u=ft(t)?Dr:Ye.current,o.context=vo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(jc(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&&xi.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Pu(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(K(309));var r=n.stateNode}if(!r)throw Error(K(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;i===jm&&(i=o.refs={}),a===null?delete i[u]:i[u]=a},t._stringRef=u,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function Si(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lm(e){var t=e._init;return t(e._payload)}function zm(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=er(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=wf(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===eo?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Nn&&Lm(B)===g.type)?(E=o(g,C.props),E.ref=Pu(h,g,C),E.return=h,E):(E=qi(C.type,C.key,C.props,null,h.mode,E),E.ref=Pu(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=Ef(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=Or(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=wf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ua:return C=qi(g.type,g.key,g.props,null,h.mode,C),C.ref=Pu(h,null,g),C.return=h,C;case Jr:return g=Ef(g,h.mode,C),g.return=h,g;case Nn:var E=g._init;return d(h,E(g._payload),C)}if(iu(g)||uu(g))return g=Or(g,h.mode,C,null),g.return=h,g;Si(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 Ua:return C.key===B?s(h,g,C,E):null;case Jr:return C.key===B?l(h,g,C,E):null;case Nn:return B=C._init,p(h,g,B(C._payload),E)}if(iu(C)||uu(C))return B!==null?null:c(h,g,C,E,null);Si(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 Ua:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,B);case Jr:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,B);case Nn:var F=E._init;return y(h,g,C,F(E._payload),B)}if(iu(E)||uu(E))return h=h.get(C)||null,c(g,h,E,B,null);Si(g,E)}return null}function m(h,g,C,E){for(var B=null,F=null,A=g,S=g=0,P=null;A!==null&&S<C.length;S++){A.index>S?(P=A,A=null):P=A.sibling;var O=p(h,A,C[S],E);if(O===null){A===null&&(A=P);break}e&&A&&O.alternate===null&&t(h,A),g=u(O,g,S),F===null?B=O:F.sibling=O,F=O,A=P}if(S===C.length)return n(h,A),Ee&&wr(h,S),B;if(A===null){for(;S<C.length;S++)A=d(h,C[S],E),A!==null&&(g=u(A,g,S),F===null?B=A:F.sibling=A,F=A);return Ee&&wr(h,S),B}for(A=r(h,A);S<C.length;S++)P=y(A,h,S,C[S],E),P!==null&&(e&&P.alternate!==null&&A.delete(P.key===null?S:P.key),g=u(P,g,S),F===null?B=P:F.sibling=P,F=P);return e&&A.forEach(function(H){return t(h,H)}),Ee&&wr(h,S),B}function f(h,g,C,E){var B=uu(C);if(typeof B!="function")throw Error(K(150));if(C=B.call(C),C==null)throw Error(K(151));for(var F=B=null,A=g,S=g=0,P=null,O=C.next();A!==null&&!O.done;S++,O=C.next()){A.index>S?(P=A,A=null):P=A.sibling;var H=p(h,A,O.value,E);if(H===null){A===null&&(A=P);break}e&&A&&H.alternate===null&&t(h,A),g=u(H,g,S),F===null?B=H:F.sibling=H,F=H,A=P}if(O.done)return n(h,A),Ee&&wr(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),F===null?B=O:F.sibling=O,F=O);return Ee&&wr(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),F===null?B=O:F.sibling=O,F=O);return e&&A.forEach(function(k){return t(h,k)}),Ee&&wr(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===eo&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Ua:e:{for(var B=C.key,F=g;F!==null;){if(F.key===B){if(B=C.type,B===eo){if(F.tag===7){n(h,F.sibling),g=o(F,C.props.children),g.return=h,h=g;break e}}else if(F.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Nn&&Lm(B)===F.type){n(h,F.sibling),g=o(F,C.props),g.ref=Pu(h,F,C),g.return=h,h=g;break e}n(h,F);break}else t(h,F);F=F.sibling}C.type===eo?(g=Or(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=qi(C.type,C.key,C.props,null,h.mode,E),E.ref=Pu(h,g,C),E.return=h,h=E)}return a(h);case Jr:e:{for(F=C.key;g!==null;){if(g.key===F)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=Ef(C,h.mode,E),g.return=h,h=g}return a(h);case Nn:return F=C._init,w(h,g,F(C._payload),E)}if(iu(C))return m(h,g,C,E);if(uu(C))return f(h,g,C,E);Si(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=wf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var Co=zm(!0),Vm=zm(!1),Tu={},on=Un(Tu),Ru=Un(Tu),Nu=Un(Tu);function Br(e){if(e===Tu)throw Error(K(174));return e}function Mc(e,t){switch(ye(Nu,t),ye(Ru,e),ye(on,Tu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Il(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Il(t,e)}Ce(on),ye(on,t)}function wo(){Ce(on),Ce(Ru),Ce(Nu)}function Wm(e){Br(Nu.current);var t=Br(on.current),n=Il(t,e.type);t!==n&&(ye(Ru,e),ye(on,n))}function $c(e){Ru.current===e&&(Ce(on),Ce(Ru))}var Fe=Un(0);function Oi(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 Lc=[];function zc(){for(var e=0;e<Lc.length;e++)Lc[e]._workInProgressVersionPrimary=null;Lc.length=0}var _i=yn.ReactCurrentDispatcher,Vc=yn.ReactCurrentBatchConfig,Ar=0,xe=null,Me=null,Ve=null,ki=!1,ju=!1,Iu=0,O2=0;function Ge(){throw Error(K(321))}function Wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Uc(e,t,n,r,o,u){if(Ar=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_i.current=e===null||e.memoizedState===null?T2:R2,e=n(r,o),ju){u=0;do{if(ju=!1,Iu=0,25<=u)throw Error(K(301));u+=1,Ve=Me=null,t.updateQueue=null,_i.current=N2,e=n(r,o)}while(ju)}if(_i.current=Ri,t=Me!==null&&Me.next!==null,Ar=0,Ve=Me=xe=null,ki=!1,t)throw Error(K(300));return e}function Hc(){var e=Iu!==0;return Iu=0,e}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Nt(){if(Me===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ve===null?xe.memoizedState:Ve.next;if(t!==null)Ve=t,Me=e;else{if(e===null)throw Error(K(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Mu(e,t){return typeof t=="function"?t(e):t}function Kc(e){var t=Nt(),n=t.queue;if(n===null)throw Error(K(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((Ar&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,xe.lanes|=c,br|=c}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Ht(r,t.memoizedState)||(dt=!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,xe.lanes|=u,br|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qc(e){var t=Nt(),n=t.queue;if(n===null)throw Error(K(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);Ht(u,t.memoizedState)||(dt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Um(){}function Hm(e,t){var n=xe,r=Nt(),o=t(),u=!Ht(r.memoizedState,o);if(u&&(r.memoizedState=o,dt=!0),r=r.queue,Qc(Qm.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,$u(9,qm.bind(null,n,r,o,t),void 0,null),We===null)throw Error(K(349));Ar&30||Km(n,t,o)}return o}function Km(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qm(e,t,n,r){t.value=n,t.getSnapshot=r,Ym(t)&&Gm(e)}function Qm(e,t,n){return n(function(){Ym(t)&&Gm(e)})}function Ym(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Gm(e){var t=Bn(e,1);t!==null&&Gt(t,e,1,-1)}function Xm(e){var t=un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:e},t.queue=e,e=e.dispatch=P2.bind(null,xe,e),[t.memoizedState,e]}function $u(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.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 Zm(){return Nt().memoizedState}function Pi(e,t,n,r){var o=un();xe.flags|=e,o.memoizedState=$u(1|t,n,void 0,r===void 0?null:r)}function Ti(e,t,n,r){var o=Nt();r=r===void 0?null:r;var u=void 0;if(Me!==null){var a=Me.memoizedState;if(u=a.destroy,r!==null&&Wc(r,a.deps)){o.memoizedState=$u(t,n,u,r);return}}xe.flags|=e,o.memoizedState=$u(1|t,n,u,r)}function Jm(e,t){return Pi(8390656,8,e,t)}function Qc(e,t){return Ti(2048,8,e,t)}function eg(e,t){return Ti(4,2,e,t)}function tg(e,t){return Ti(4,4,e,t)}function ng(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 rg(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4,4,ng.bind(null,t,e),n)}function Yc(){}function og(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ug(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ag(e,t,n){return Ar&21?(Ht(n,t)||(n=Ph(),xe.lanes|=n,br|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function _2(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Vc.transition;Vc.transition={};try{e(!1),t()}finally{pe=n,Vc.transition=r}}function ig(){return Nt().memoizedState}function k2(e,t,n){var r=Zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sg(e))lg(t,n);else if(n=Pm(e,t,n,r),n!==null){var o=ut();Gt(n,e,r,o),cg(n,t,r)}}function P2(e,t,n){var r=Zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sg(e))lg(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,Ht(i,a)){var s=t.interleaved;s===null?(o.next=o,Rc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Pm(e,t,o,r),n!==null&&(o=ut(),Gt(n,e,r,o),cg(n,t,r))}}function sg(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function lg(e,t){ju=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}var Ri={readContext:Rt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},T2={readContext:Rt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Jm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();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=k2.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Xm,useDebugValue:Yc,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Xm(!1),t=e[0];return e=_2.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=un();if(Ee){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),We===null)throw Error(K(349));Ar&30||Km(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Jm(Qm.bind(null,r,u,e),[e]),r.flags|=2048,$u(9,qm.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=un(),t=We.identifierPrefix;if(Ee){var n=En,r=wn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Iu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=O2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},R2={readContext:Rt,useCallback:og,useContext:Rt,useEffect:Qc,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ug,useReducer:Kc,useRef:Zm,useState:function(){return Kc(Mu)},useDebugValue:Yc,useDeferredValue:function(e){var t=Nt();return ag(t,Me.memoizedState,e)},useTransition:function(){var e=Kc(Mu)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Um,useSyncExternalStore:Hm,useId:ig,unstable_isNewReconciler:!1},N2={readContext:Rt,useCallback:og,useContext:Rt,useEffect:Qc,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ug,useReducer:qc,useRef:Zm,useState:function(){return qc(Mu)},useDebugValue:Yc,useDeferredValue:function(e){var t=Nt();return Me===null?t.memoizedState=e:ag(t,Me.memoizedState,e)},useTransition:function(){var e=qc(Mu)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Um,useSyncExternalStore:Hm,useId:ig,unstable_isNewReconciler:!1};function Eo(e,t){try{var n="",r=t;do n+=lb(r),r=r.return;while(r);var o=n}catch(u){o=`
42
40
  Error generating stack: `+u.message+`
43
- `+u.stack}return{value:e,source:t,stack:o,digest:null}}function Yc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _2=typeof WeakMap=="function"?WeakMap:Map;function lg(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$i||($i=!0,df=r),Gc(e,t)},n}function cg(e,t,n){n=An(-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(){Gc(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Gc(e,t),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function fg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _2;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=U2.bind(null,e,t,n),t.then(e,e))}function dg(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 pg(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=An(-1,1),t.tag=2,Qn(n,t,1))),n.lanes|=1),e)}var k2=yn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?Lm(t,null,n,r):Co(t,e.child,n,r)}function vg(e,t,n,r,o){n=n.render;var u=t.ref;return Do(t,o),r=Wc(e,t,n,r,u,o),n=Uc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(we&&n&&Ac(t),t.flags|=1,ot(e,t,r,o),t.child)}function hg(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Df(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,mg(e,t,u,r,o)):(e=Hi(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:Bu,n(a,r)&&e.ref===t.ref)return bn(e,t,o)}return t.flags|=1,e=er(u,r),e.ref=t.ref,e.return=t,t.child=e}function mg(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(Bu(u,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,bn(e,t,o)}return Xc(e,t,n,r,o)}function gg(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},ge(Ao,Ft),Ft|=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,ge(Ao,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ge(Ao,Ft),Ft|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ge(Ao,Ft),Ft|=r;return ot(e,t,o,n),t.child}function yg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xc(e,t,n,r,o){var u=ft(n)?Dr:Ye.current;return u=vo(t,u),Do(t,o),n=Wc(e,t,n,r,u,o),r=Uc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(we&&r&&Ac(t),t.flags|=1,ot(e,t,n,o),t.child)}function Dg(e,t,n,r,o){if(ft(n)){var u=!0;mi(t)}else u=!1;if(Do(t,o),t.stateNode===null)Ri(e,t),jm(t,n,r),jc(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=Rt(l):(l=ft(n)?Dr:Ye.current,l=vo(t,l));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==r||s!==l)&&Im(t,a,r,l),qn=!1;var p=t.memoizedState;a.state=p,Ai(t,r,a,o),s=t.memoizedState,i!==r||p!==s||ct.current||qn?(typeof f=="function"&&(Nc(t,n,f,r),s=t.memoizedState),(i=qn||Nm(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,km(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:qt(t.type,i),a.props=l,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Rt(s):(s=ft(n)?Dr:Ye.current,s=vo(t,s));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==d||p!==s)&&Im(t,a,r,s),qn=!1,p=t.memoizedState,a.state=p,Ai(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||ct.current||qn?(typeof y=="function"&&(Nc(t,n,y,r),m=t.memoizedState),(l=qn||Nm(t,n,l,r,p,m,s)||!1)?(f||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 Zc(e,t,n,r,u,o)}function Zc(e,t,n,r,o,u){yg(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Bm(t,n,!1),bn(e,t,u);r=t.stateNode,k2.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Co(t,e.child,null,u),t.child=Co(t,null,i,u)):ot(e,t,i,u),t.memoizedState=r.state,o&&Bm(t,n,!0),t.child}function Cg(e){var t=e.stateNode;t.pendingContext?wm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wm(e,t.context,!1),Ic(e,t.containerInfo)}function wg(e,t,n,r,o){return go(),Oc(o),t.flags|=256,ot(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0};function ef(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eg(e,t,n){var r=t.pendingProps,o=Fe.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),ge(Fe,o&1),e===null)return xc(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=Ki(a,r,0,null),e=Sr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=ef(n),t.memoizedState=Jc,e):tf(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return P2(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=er(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=er(i,u):(u=Sr(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?ef(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=Jc,r}return u=e.child,e=u.sibling,r=er(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 tf(e,t){return t=Ki({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ti(e,t,n,r){return r!==null&&Oc(r),Co(t,e.child,null,n),e=tf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P2(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=Yc(Error(H(422))),Ti(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=Ki({mode:"visible",children:r.children},o,0,null),u=Sr(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&Co(t,e.child,null,a),t.child.memoizedState=ef(a),t.memoizedState=Jc,u);if(!(t.mode&1))return Ti(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=Yc(u,r,void 0),Ti(e,t,a,r)}if(i=(a&e.childLanes)!==0,dt||i){if(r=We,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,Bn(e,o),Gt(r,e,o,-1))}return yf(),r=Yc(Error(H(421))),Ti(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=H2.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,bt=Wn(o.nextSibling),At=t,we=!0,Kt=null,e!==null&&(Pt[Tt++]=wn,Pt[Tt++]=En,Pt[Tt++]=Cr,wn=e.id,En=e.overflow,Cr=t),t=tf(t,r.children),t.flags|=4096,t)}function Bg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pc(e.return,t,n)}function nf(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 Ag(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(ot(e,t,r.children,n),r=Fe.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&&Bg(e,n,t);else if(e.tag===19)Bg(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(ge(Fe,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&&xi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nf(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&&xi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nf(t,!0,n,null,u);break;case"together":nf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ri(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),br|=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=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function T2(e,t,n){switch(t.tag){case 3:Cg(t),go();break;case 5:zm(t);break;case 1:ft(t.type)&&mi(t);break;case 4:Ic(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(wi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?Eg(e,t,n):(ge(Fe,Fe.current&1),e=bn(e,t,n),e!==null?e.sibling:null);ge(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ag(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,gg(e,t,n)}return bn(e,t,n)}var bg,rf,Fg,xg;bg=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}},rf=function(){},Fg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Br(on.current);var u=null;switch(n){case"input":o=Pl(e,o),r=Pl(e,r),u=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),u=[];break;case"textarea":o=Nl(e,o),r=Nl(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pi)}Il(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"&&(nu.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"&&(nu.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&ye("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)}},xg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mu(e,t){if(!we)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 Xe(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 R2(e,t,n){var r=t.pendingProps;switch(bc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return ft(t.type)&&hi(),Xe(t),null;case 3:return r=t.stateNode,wo(),De(ct),De(Ye),Lc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ci(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(hf(Kt),Kt=null))),rf(e,t),Xe(t),null;case 5:Mc(t);var o=Br(Tu.current);if(n=t.type,e!==null&&t.stateNode!=null)Fg(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 Xe(t),null}if(e=Br(on.current),Ci(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[rn]=t,r[Ou]=u,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(o=0;o<bu.length;o++)ye(bu[o],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":ah(r,u),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},ye("invalid",r);break;case"textarea":lh(r,u),ye("invalid",r)}Il(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&&di(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&di(r.textContent,i,e),o=["children",""+i]):nu.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&ye("scroll",r)}switch(n){case"input":Wa(r),sh(r,u,!0);break;case"textarea":Wa(r),fh(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=pi)}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=dh(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[rn]=t,e[Ou]=r,bg(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ml(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;o<bu.length;o++)ye(bu[o],e);o=r;break;case"source":ye("error",e),o=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),o=r;break;case"details":ye("toggle",e),o=r;break;case"input":ah(e,r),o=Pl(e,r),ye("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),ye("invalid",e);break;case"textarea":lh(e,r),o=Nl(e,r),ye("invalid",e);break;default:o=r}Il(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?hh(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&ph(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&au(e,s):typeof s=="number"&&au(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(nu.hasOwnProperty(u)?s!=null&&u==="onScroll"&&ye("scroll",e):s!=null&&wl(e,u,s,a))}switch(n){case"input":Wa(e),sh(e,r,!1);break;case"textarea":Wa(e),fh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jn(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?to(e,!!r.multiple,u,!1):r.defaultValue!=null&&to(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=pi)}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 Xe(t),null;case 6:if(e&&t.stateNode!=null)xg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=Br(Tu.current),Br(on.current),Ci(t)){if(r=t.stateNode,n=t.memoizedProps,r[rn]=t,(u=r.nodeValue!==n)&&(e=At,e!==null))switch(e.tag){case 3:di(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&di(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rn]=t,t.stateNode=r}return Xe(t),null;case 13:if(De(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&bt!==null&&t.mode&1&&!(t.flags&128))Sm(),go(),t.flags|=98560,u=!1;else if(u=Ci(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[rn]=t}else go(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),u=!1}else Kt!==null&&(hf(Kt),Kt=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||Fe.current&1?$e===0&&($e=3):yf())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return wo(),rf(e,t),e===null&&Fu(t.stateNode.containerInfo),Xe(t),null;case 10:return kc(t.type._context),Xe(t),null;case 17:return ft(t.type)&&hi(),Xe(t),null;case 19:if(De(Fe),u=t.memoizedState,u===null)return Xe(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Mu(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=xi(e),a!==null){for(t.flags|=128,Mu(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 ge(Fe,Fe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Pe()>bo&&(t.flags|=128,r=!0,Mu(u,!1),t.lanes=4194304)}else{if(!r)if(e=xi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!we)return Xe(t),null}else 2*Pe()-u.renderingStartTime>bo&&n!==1073741824&&(t.flags|=128,r=!0,Mu(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=Pe(),t.sibling=null,n=Fe.current,ge(Fe,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return gf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function N2(e,t){switch(bc(t),t.tag){case 1:return ft(t.type)&&hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),De(ct),De(Ye),Lc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mc(t),null;case 13:if(De(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Fe),null;case 4:return wo(),null;case 10:return kc(t.type._context),null;case 22:case 23:return gf(),null;case 24:return null;default:return null}}var Ni=!1,Ze=!1,j2=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function of(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Og=!1;function I2(e,t){if(mc=ti,e=um(),sc(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,f=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&&++f===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(gc={focusedElem:e,selectionRange:n},ti=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;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 c=m.memoizedProps,w=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?c:qt(t.type,c),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){Se(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return m=Og,Og=!1,m}function $u(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&&of(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 uf(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 Sg(e){var t=e.alternate;t!==null&&(e.alternate=null,Sg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Ou],delete t[wc],delete t[D2],delete t[C2])),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 _g(e){return e.tag===5||e.tag===3||e.tag===4}function kg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_g(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 af(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=pi));else if(r!==4&&(e=e.child,e!==null))for(af(e,t,n),e=e.sibling;e!==null;)af(e,t,n),e=e.sibling}function sf(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(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Pg(e,t,n),n=n.sibling}function Pg(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:Ze||Bo(n,t);case 6:var r=Ke,o=Qt;Ke=null,Yn(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?Cc(e.parentNode,n):e.nodeType===1&&Cc(e,n),gu(e)):Cc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Yn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(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)&&of(n,t,a),o=o.next}while(o!==r)}Yn(e,t,n);break;case 1:if(!Ze&&(Bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Se(n,t,i)}Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,Yn(e,t,n),Ze=r):Yn(e,t,n);break;default:Yn(e,t,n)}}function Tg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j2),t.forEach(function(r){var o=K2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(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));Pg(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){Se(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rg(t,e),t=t.sibling}function Rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),an(e),r&4){try{$u(3,e,e.return),ji(3,e)}catch(c){Se(e,e.return,c)}try{$u(5,e,e.return)}catch(c){Se(e,e.return,c)}}break;case 1:Yt(t,e),an(e),r&512&&n!==null&&Bo(n,n.return);break;case 5:if(Yt(t,e),an(e),r&512&&n!==null&&Bo(n,n.return),e.flags&32){var o=e.stateNode;try{au(o,"")}catch(c){Se(e,e.return,c)}}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&&ih(o,u),Ml(i,a);var l=Ml(i,u);for(a=0;a<s.length;a+=2){var f=s[a],d=s[a+1];f==="style"?hh(o,d):f==="dangerouslySetInnerHTML"?ph(o,d):f==="children"?au(o,d):wl(o,f,d,l)}switch(i){case"input":Tl(o,u);break;case"textarea":ch(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?to(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?to(o,!!u.multiple,u.defaultValue,!0):to(o,!!u.multiple,u.multiple?[]:"",!1))}o[Ou]=u}catch(c){Se(e,e.return,c)}}break;case 6:if(Yt(t,e),an(e),r&4){if(e.stateNode===null)throw Error(H(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(c){Se(e,e.return,c)}}break;case 3:if(Yt(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{gu(t.containerInfo)}catch(c){Se(e,e.return,c)}break;case 4:Yt(t,e),an(e);break;case 13:Yt(t,e),an(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(ff=Pe())),r&4&&Tg(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(l=Ze)||f,Yt(t,e),Ze=l):Yt(t,e),an(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!f&&e.mode&1)for(Z=e,f=e.child;f!==null;){for(d=Z=f;Z!==null;){switch(p=Z,y=p.child,p.tag){case 0:case 11:case 14:case 15:$u(4,p,p.return);break;case 1:Bo(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(c){Se(r,n,c)}}break;case 5:Bo(p,p.return);break;case 22:if(p.memoizedState!==null){Ig(d);continue}}y!==null?(y.return=p,Z=y):Ig(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=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=vh("display",a))}catch(c){Se(e,e.return,c)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(c){Se(e,e.return,c)}}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;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Yt(t,e),an(e),r&4&&Tg(e);break;case 21:break;default:Yt(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_g(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&&(au(o,""),r.flags&=-33);var u=kg(e);sf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=kg(e);af(e,i,a);break;default:throw Error(H(161))}}catch(s){Se(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function M2(e,t,n){Z=e,Ng(e)}function Ng(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var o=Z,u=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Ni;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||Ze;i=Ni;var l=Ze;if(Ni=a,(Ze=s)&&!l)for(Z=o;Z!==null;)a=Z,s=a.child,a.tag===22&&a.memoizedState!==null?Mg(o):s!==null?(s.return=a,Z=s):Mg(o);for(;u!==null;)Z=u,Ng(u),u=u.sibling;Z=o,Ni=i,Ze=l}jg(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,Z=u):jg(e)}}function jg(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||ji(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Tm(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}Tm(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 f=l.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&gu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}Ze||t.flags&512&&uf(t)}catch(p){Se(t,t.return,p)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Ig(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Mg(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ji(4,t)}catch(s){Se(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Se(t,o,s)}}var u=t.return;try{uf(t)}catch(s){Se(t,u,s)}break;case 5:var a=t.return;try{uf(t)}catch(s){Se(t,a,s)}}}catch(s){Se(t,t.return,s)}if(t===e){Z=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Z=i;break}Z=t.return}}var $2=Math.ceil,Ii=yn.ReactCurrentDispatcher,lf=yn.ReactCurrentOwner,jt=yn.ReactCurrentBatchConfig,fe=0,We=null,je=null,qe=0,Ft=0,Ao=Un(0),$e=0,Lu=null,br=0,Mi=0,cf=0,zu=null,pt=null,ff=0,bo=1/0,Fn=null,$i=!1,df=null,Gn=null,Li=!1,Xn=null,zi=0,Vu=0,pf=null,Vi=-1,Wi=0;function ut(){return fe&6?Pe():Vi!==-1?Vi:Vi=Pe()}function Zn(e){return e.mode&1?fe&2&&qe!==0?qe&-qe:E2.transition!==null?(Wi===0&&(Wi=_h()),Wi):(e=pe,e!==0||(e=window.event,e=e===void 0?16:$h(e.type)),e):1}function Gt(e,t,n,r){if(50<Vu)throw Vu=0,pf=null,Error(H(185));du(e,n,r),(!(fe&2)||e!==We)&&(e===We&&(!(fe&2)&&(Mi|=n),$e===4&&Jn(e,qe)),vt(e,r),n===1&&fe===0&&!(t.mode&1)&&(bo=Pe()+500,gi&&Kn()))}function vt(e,t){var n=e.callbackNode;Eb(e,t);var r=Za(e,e===We?qe:0);if(r===0)n!==null&&xh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xh(n),t===1)e.tag===0?w2(Lg.bind(null,e)):Am(Lg.bind(null,e)),g2(function(){!(fe&6)&&Kn()}),n=null;else{switch(kh(r)){case 1:n=Hl;break;case 4:n=Oh;break;case 16:n=Qa;break;case 536870912:n=Sh;break;default:n=Qa}n=Qg(n,$g.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $g(e,t){if(Vi=-1,Wi=0,fe&6)throw Error(H(327));var n=e.callbackNode;if(Fo()&&e.callbackNode!==n)return null;var r=Za(e,e===We?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ui(e,r);else{t=r;var o=fe;fe|=2;var u=Vg();(We!==e||qe!==t)&&(Fn=null,bo=Pe()+500,xr(e,t));do try{V2();break}catch(i){zg(e,i)}while(1);_c(),Ii.current=u,fe=o,je!==null?t=0:(We=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=Kl(e),o!==0&&(r=o,t=vf(e,o))),t===1)throw n=Lu,xr(e,0),Jn(e,r),vt(e,Pe()),n;if(t===6)Jn(e,r);else{if(o=e.current.alternate,!(r&30)&&!L2(o)&&(t=Ui(e,r),t===2&&(u=Kl(e),u!==0&&(r=u,t=vf(e,u))),t===1))throw n=Lu,xr(e,0),Jn(e,r),vt(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Or(e,pt,Fn);break;case 3:if(Jn(e,r),(r&130023424)===r&&(t=ff+500-Pe(),10<t)){if(Za(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Dc(Or.bind(null,e,pt,Fn),t);break}Or(e,pt,Fn);break;case 4:if(Jn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ut(r);u=1<<a,a=t[a],a>o&&(o=a),r&=~u}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$2(r/1960))-r,10<r){e.timeoutHandle=Dc(Or.bind(null,e,pt,Fn),r);break}Or(e,pt,Fn);break;case 5:Or(e,pt,Fn);break;default:throw Error(H(329))}}}return vt(e,Pe()),e.callbackNode===n?$g.bind(null,e):null}function vf(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=Ui(e,t),e!==2&&(t=pt,pt=n,t!==null&&hf(t)),e}function hf(e){pt===null?pt=e:pt.push.apply(pt,e)}function L2(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(!Ht(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 Jn(e,t){for(t&=~cf,t&=~Mi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function Lg(e){if(fe&6)throw Error(H(327));Fo();var t=Za(e,0);if(!(t&1))return vt(e,Pe()),null;var n=Ui(e,t);if(e.tag!==0&&n===2){var r=Kl(e);r!==0&&(t=r,n=vf(e,r))}if(n===1)throw n=Lu,xr(e,0),Jn(e,t),vt(e,Pe()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Or(e,pt,Fn),vt(e,Pe()),null}function mf(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(bo=Pe()+500,gi&&Kn())}}function Fr(e){Xn!==null&&Xn.tag===0&&!(fe&6)&&Fo();var t=fe;fe|=1;var n=jt.transition,r=pe;try{if(jt.transition=null,pe=1,e)return e()}finally{pe=r,jt.transition=n,fe=t,!(fe&6)&&Kn()}}function gf(){Ft=Ao.current,De(Ao)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,m2(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(bc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hi();break;case 3:wo(),De(ct),De(Ye),Lc();break;case 5:Mc(r);break;case 4:wo();break;case 13:De(Fe);break;case 19:De(Fe);break;case 10:kc(r.type._context);break;case 22:case 23:gf()}n=n.return}if(We=e,je=e=er(e.current,null),qe=Ft=t,$e=0,Lu=null,cf=Mi=br=0,pt=zu=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[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}Er=null}return e}function zg(e,t){do{var n=je;try{if(_c(),Oi.current=Pi,Si){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Si=!1}if(Ar=0,Ve=Me=xe=null,Ru=!1,Nu=0,lf.current=null,n===null||n.return===null){$e=1,Lu=t,je=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,f=i,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=dg(a);if(y!==null){y.flags&=-257,pg(y,a,i,u,t),y.mode&1&&fg(u,l,t),t=y,s=l;var m=t.updateQueue;if(m===null){var c=new Set;c.add(s),t.updateQueue=c}else m.add(s);break e}else{if(!(t&1)){fg(u,l,t),yf();break e}s=Error(H(426))}}else if(we&&i.mode&1){var w=dg(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),pg(w,a,i,u,t),Oc(Eo(s,i));break e}}u=s=Eo(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=lg(u,s,t);Pm(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"&&(Gn===null||!Gn.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=cg(u,i,t);Pm(u,E);break e}}u=u.return}while(u!==null)}Ug(n)}catch(A){t=A,je===n&&n!==null&&(je=n=n.return);continue}break}while(1)}function Vg(){var e=Ii.current;return Ii.current=Pi,e===null?Pi:e}function yf(){($e===0||$e===3||$e===2)&&($e=4),We===null||!(br&268435455)&&!(Mi&268435455)||Jn(We,qe)}function Ui(e,t){var n=fe;fe|=2;var r=Vg();(We!==e||qe!==t)&&(Fn=null,xr(e,t));do try{z2();break}catch(o){zg(e,o)}while(1);if(_c(),fe=n,Ii.current=r,je!==null)throw Error(H(261));return We=null,qe=0,$e}function z2(){for(;je!==null;)Wg(je)}function V2(){for(;je!==null&&!pb();)Wg(je)}function Wg(e){var t=qg(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Ug(e):je=t,lf.current=null}function Ug(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=N2(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,je=null;return}}else if(n=R2(n,t,Ft),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);$e===0&&($e=5)}function Or(e,t,n){var r=pe,o=jt.transition;try{jt.transition=null,pe=1,W2(e,t,n,r)}finally{jt.transition=o,pe=r}return null}function W2(e,t,n,r){do Fo();while(Xn!==null);if(fe&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(Bb(e,u),e===We&&(je=We=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Li||(Li=!0,Qg(Qa,function(){return Fo(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=jt.transition,jt.transition=null;var a=pe;pe=1;var i=fe;fe|=4,lf.current=null,I2(e,n),Rg(n,e),l2(gc),ti=!!mc,gc=mc=null,e.current=n,M2(n),vb(),fe=i,pe=a,jt.transition=u}else e.current=n;if(Li&&(Li=!1,Xn=e,zi=o),u=e.pendingLanes,u===0&&(Gn=null),gb(n.stateNode),vt(e,Pe()),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($i)throw $i=!1,e=df,df=null,e;return zi&1&&e.tag!==0&&Fo(),u=e.pendingLanes,u&1?e===pf?Vu++:(Vu=0,pf=e):Vu=0,Kn(),null}function Fo(){if(Xn!==null){var e=kh(zi),t=jt.transition,n=pe;try{if(jt.transition=null,pe=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,zi=0,fe&6)throw Error(H(331));var o=fe;for(fe|=4,Z=e.current;Z!==null;){var u=Z,a=u.child;if(Z.flags&16){var i=u.deletions;if(i!==null){for(var s=0;s<i.length;s++){var l=i[s];for(Z=l;Z!==null;){var f=Z;switch(f.tag){case 0:case 11:case 15:$u(8,f,u)}var d=f.child;if(d!==null)d.return=f,Z=d;else for(;Z!==null;){f=Z;var p=f.sibling,y=f.return;if(Sg(f),f===l){Z=null;break}if(p!==null){p.return=y,Z=p;break}Z=y}}}var m=u.alternate;if(m!==null){var c=m.child;if(c!==null){m.child=null;do{var w=c.sibling;c.sibling=null,c=w}while(c!==null)}}Z=u}}if(u.subtreeFlags&2064&&a!==null)a.return=u,Z=a;else e:for(;Z!==null;){if(u=Z,u.flags&2048)switch(u.tag){case 0:case 11:case 15:$u(9,u,u.return)}var h=u.sibling;if(h!==null){h.return=u.return,Z=h;break e}Z=u.return}}var g=e.current;for(Z=g;Z!==null;){a=Z;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,Z=C;else e:for(a=g;Z!==null;){if(i=Z,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:ji(9,i)}}catch(A){Se(i,i.return,A)}if(i===a){Z=null;break e}var E=i.sibling;if(E!==null){E.return=i.return,Z=E;break e}Z=i.return}}if(fe=o,Kn(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Ya,e)}catch{}r=!0}return r}finally{pe=n,jt.transition=t}}return!1}function Hg(e,t,n){t=Eo(n,t),t=lg(e,t,1),e=Qn(e,t,1),t=ut(),e!==null&&(du(e,1,t),vt(e,t))}function Se(e,t,n){if(e.tag===3)Hg(e,e,n);else for(;t!==null;){if(t.tag===3){Hg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gn===null||!Gn.has(r))){e=Eo(n,e),e=cg(t,e,1),t=Qn(t,e,1),e=ut(),t!==null&&(du(t,1,e),vt(t,e));break}}t=t.return}}function U2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,We===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Pe()-ff?xr(e,0):cf|=n),vt(e,t)}function Kg(e,t){t===0&&(e.mode&1?(t=Xa,Xa<<=1,!(Xa&130023424)&&(Xa=4194304)):t=1);var n=ut();e=Bn(e,t),e!==null&&(du(e,t,n),vt(e,n))}function H2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kg(e,n)}function K2(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),Kg(e,n)}var qg;qg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,T2(e,t,n);dt=!!(e.flags&131072)}else dt=!1,we&&t.flags&1048576&&bm(t,Di,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ri(e,t),e=t.pendingProps;var o=vo(t,Ye.current);Do(t,n),o=Wc(null,t,r,e,o,n);var u=Uc();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,ft(r)?(u=!0,mi(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rc(t),o.updater=bi,t.stateNode=o,o._reactInternals=t,jc(t,r,e,n),t=Zc(null,t,r,!0,u,n)):(t.tag=0,we&&u&&Ac(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ri(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Q2(r),e=qt(r,e),o){case 0:t=Xc(null,t,r,e,n);break e;case 1:t=Dg(null,t,r,e,n);break e;case 11:t=vg(null,t,r,e,n);break e;case 14:t=hg(null,t,r,qt(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:qt(r,o),Xc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Dg(e,t,r,o,n);case 3:e:{if(Cg(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,o=u.element,km(e,t),Ai(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=Eo(Error(H(423)),t),t=wg(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(H(424)),t),t=wg(e,t,r,n,o);break e}else for(bt=Wn(t.stateNode.containerInfo.firstChild),At=t,we=!0,Kt=null,n=Lm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(go(),r===o){t=bn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return zm(t),e===null&&xc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,yc(r,o)?a=null:u!==null&&yc(r,u)&&(t.flags|=32),yg(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&xc(t),null;case 13:return Eg(e,t,n);case 4:return Ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),vg(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(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,ge(wi,r._currentValue),r._currentValue=a,u!==null)if(Ht(u.value,a)){if(u.children===o.children&&!ct.current){t=bn(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=An(-1,n&-n),s.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Pc(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),Pc(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}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Do(t,n),o=Rt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=qt(r,t.pendingProps),o=qt(r.type,o),hg(e,t,r,o,n);case 15:return mg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Ri(e,t),t.tag=1,ft(r)?(e=!0,mi(t)):e=!1,Do(t,n),jm(t,r,o),jc(t,r,o,n),Zc(null,t,r,!0,e,n);case 19:return Ag(e,t,n);case 22:return gg(e,t,n)}throw Error(H(156,t.tag))};function Qg(e,t){return Fh(e,t)}function q2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new q2(e,t,n,r)}function Df(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q2(e){if(typeof e=="function")return Df(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Al)return 11;if(e===xl)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hi(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Df(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case eo:return Sr(n.children,o,u,t);case El:a=8,o|=8;break;case Bl:return e=It(12,n,t,o|2),e.elementType=Bl,e.lanes=u,e;case bl:return e=It(13,n,t,o),e.elementType=bl,e.lanes=u,e;case Fl:return e=It(19,n,t,o),e.elementType=Fl,e.lanes=u,e;case nh:return Ki(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eh:a=10;break e;case th:a=9;break e;case Al:a=11;break e;case xl:a=14;break e;case Nn:a=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=It(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Sr(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Ki(e,t,n,r){return e=It(22,e,r,t),e.elementType=nh,e.lanes=n,e.stateNode={isHidden:!1},e}function Cf(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function wf(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Y2(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=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ef(e,t,n,r,o,u,a,i,s){return e=new Y2(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=It(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rc(u),e}function G2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Yg(e){if(!e)return Hn;e=e._reactInternals;e:{if(gr(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(ft(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(ft(n))return Em(e,n,t)}return t}function Gg(e,t,n,r,o,u,a,i,s){return e=Ef(n,r,!0,e,o,u,a,i,s),e.context=Yg(null),n=e.current,r=ut(),o=Zn(n),u=An(r,o),u.callback=t??null,Qn(n,u,o),e.current.lanes=o,du(e,o,r),vt(e,r),e}function qi(e,t,n,r){var o=t.current,u=ut(),a=Zn(o);return n=Yg(n),t.context===null?t.context=n:t.pendingContext=n,t=An(u,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qn(o,t,a),e!==null&&(Gt(e,o,a,u),Bi(e,o,a)),a}function Qi(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 Xg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bf(e,t){Xg(e,t),(e=e.alternate)&&Xg(e,t)}function X2(){return null}var Zg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Af(e){this._internalRoot=e}Yi.prototype.render=Af.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));qi(e,t,null,null)},Yi.prototype.unmount=Af.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fr(function(){qi(null,e,null,null)}),t[Dn]=null}};function Yi(e){this._internalRoot=e}Yi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ln.length&&t!==0&&t<Ln[n].priority;n++);Ln.splice(n,0,e),n===0&&Ih(e)}};function bf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jg(){}function Z2(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=Qi(a);u.call(l)}}var a=Gg(t,r,e,0,null,!1,!1,"",Jg);return e._reactRootContainer=a,e[Dn]=a.current,Fu(e.nodeType===8?e.parentNode:e),Fr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=Qi(s);i.call(l)}}var s=Ef(e,0,!1,null,null,!1,!1,"",Jg);return e._reactRootContainer=s,e[Dn]=s.current,Fu(e.nodeType===8?e.parentNode:e),Fr(function(){qi(t,s,n,r)}),s}function Xi(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=Qi(a);i.call(s)}}qi(t,a,e,o)}else a=Z2(n,t,e,o,r);return Qi(a)}Ph=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fu(t.pendingLanes);n!==0&&(Ql(t,n|1),vt(t,Pe()),!(fe&6)&&(bo=Pe()+500,Kn()))}break;case 13:Fr(function(){var r=Bn(e,1);if(r!==null){var o=ut();Gt(r,e,1,o)}}),Bf(e,1)}},Yl=function(e){if(e.tag===13){var t=Bn(e,134217728);if(t!==null){var n=ut();Gt(t,e,134217728,n)}Bf(e,134217728)}},Th=function(e){if(e.tag===13){var t=Zn(e),n=Bn(e,t);if(n!==null){var r=ut();Gt(n,e,t,r)}Bf(e,t)}},Rh=function(){return pe},Nh=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}},zl=function(e,t,n){switch(t){case"input":if(Tl(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=vi(r);if(!o)throw Error(H(90));uh(r),Tl(r,o)}}}break;case"textarea":ch(e,n);break;case"select":t=n.value,t!=null&&to(e,!!n.multiple,t,!1)}},Dh=mf,Ch=Fr;var J2={usingClientEntryPoint:!1,Events:[Su,fo,vi,gh,yh,mf]},Wu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},eF={bundleType:Wu.bundleType,version:Wu.version,rendererPackageName:Wu.rendererPackageName,rendererConfig:Wu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ah(e),e===null?null:e.stateNode},findFiberByHostInstance:Wu.findFiberByHostInstance||X2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{Ya=Zi.inject(eF),nn=Zi}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J2,wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bf(t))throw Error(H(200));return G2(e,t,null,n)},wt.createRoot=function(e,t){if(!bf(e))throw Error(H(299));var n=!1,r="",o=Zg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ef(e,1,!1,null,null,n,!1,r,o),e[Dn]=t.current,Fu(e.nodeType===8?e.parentNode:e),new Af(t)},wt.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=Ah(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Fr(e)},wt.hydrate=function(e,t,n){if(!Gi(t))throw Error(H(200));return Xi(null,e,t,!0,n)},wt.hydrateRoot=function(e,t,n){if(!bf(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=Zg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Gg(t,null,e,1,n??null,o,!1,u,a),e[Dn]=t.current,Fu(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 Yi(t)},wt.render=function(e,t,n){if(!Gi(t))throw Error(H(200));return Xi(null,e,t,!1,n)},wt.unmountComponentAtNode=function(e){if(!Gi(e))throw Error(H(40));return e._reactRootContainer?(Fr(function(){Xi(null,null,e,!1,function(){e._reactRootContainer=null,e[Dn]=null})}),!0):!1},wt.unstable_batchedUpdates=mf,wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gi(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return Xi(e,t,n,!1,r)},wt.version="18.2.0-next-9e3b772b8-20220608";function e0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e0)}catch(e){console.error(e)}}e0(),qv.exports=wt;var t0=qv.exports;const xo=Wo(t0);function n0(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?n0(Object(n),!0).forEach(function(r){Oo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Je(e){return(Je=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 Uu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r0(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 Hu(e,t,n){return t&&r0(e.prototype,t),n&&r0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(){return(_r=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 Ji(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&&o0(e,t)}function Ff(e){return(Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function o0(e,t){return(o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function tF(){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 nF(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 Mt(e,t){if(e==null)return{};var n,r=nF(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 es(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rF(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 es(e)}function ts(e){var t=tF();return function(){var n,r=Ff(e);return rF(this,t?(n=Ff(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function u0(e,t){return uF(e)||iF(e,t)||a0(e,t)||lF()}function ns(e){return oF(e)||aF(e)||a0(e)||sF()}function oF(e){if(Array.isArray(e))return xf(e)}function uF(e){if(Array.isArray(e))return e}function aF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iF(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 a0(e,t){var n;if(e)return typeof e=="string"?xf(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)?xf(e,t):void 0}function xf(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 sF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
44
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cF(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 i0(e){return e=cF(e,"string"),typeof e=="symbol"?e:String(e)}var s0={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 l0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:s0,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 c0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],rs={Document:{},Element:{}};function f0(e){Object.keys(rs).forEach(function(t){c0.forEach(function(n){var r=window[t].prototype[n];rs[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:Element.prototype[n].apply(e,u)}})})}function fF(){Object.keys(rs).forEach(function(e){c0.forEach(function(t){window[e].prototype[t]=rs[e][t]})})}var dF=["ref"],pF=["key"],vF=["hashList"],d0=parseInt(M.version);function j3(e){return e}var hF=function(){Ji(t,M.Component);var e=ts(t);function t(n){return Uu(this,t),e.call(this,n)}return Hu(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,Mt(r,dF));return M.createElement(n,r,this.props.children)}}]),t}(),mF=function(e,t,n){var r=function(){Ji(u,M.Component);var o=ts(u);function u(a){var i;return Uu(this,u),(i=o.call(this,a)).state=$($({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(es(i)),i.vueInReactCall=i.vueInReactCall.bind(es(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return Hu(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=Mt(i,pF),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,f){return us(i.createSlot(l instanceof Function?l:[l]),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null||(l=l.data)==null?void 0:l.key)||f})}):us(this.createSlot(a),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render()}},{key:"render",value:function(){var a,i,s,l=this,c=this.state,f=c.hashList,d=Mt(c,vF),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].__top__=l.__veauryVueWrapperRef__,d[i]=t.defaultSlotsFormatter(d[i].__trueChildren,l.vueInReactCall,f),d[i]instanceof Array?d[i]=ns(d[i]):-1<["string","number"].indexOf(Je(d[i]))?d[i]=[d[i]]:Je(d[i])==="object"&&(d[i]=$({},d[i]))):d[i]=$({},us(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,c={};return c.ref=this.setRef,t.isSlots?this.state.children||this.props.children:(m=d,m=$($($({},m=t.defaultPropsFormatter?t.defaultPropsFormatter(d,this.vueInReactCall,f):m),p),y),Object.getPrototypeOf(e)!==Function.prototype&&(Je(e)!=="object"||e.render)||u.catchVueRefs()?(Object.getPrototypeOf(e)===Function.prototype&&delete c.ref,M.createElement(e,_r({},m,c))):M.createElement(hF,_r({passedProps:m,component:e},c),m.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 Oo(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Of(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=l0(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)}Object.keys(n).forEach(function(u){try{var a,i,s,l=n[u],f=l.apply(r,l.__reactArgs||[{}]);(l.__trueChildren=f).forEach(function(d){d.children&&r.__veauryCheckReactSlot__(d.children)}),f.length!==1||o(l,i=f[0],"reactSlot")||o(l,i,"reactFunction")||i.type!==v.Fragment||((a=i.children)==null?void 0:a.length)!==1||o(l,s=i.children[0],"reactSlot")||o(l,s,"reactFunction")}catch{}})},__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,f=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<Je(l).indexOf("string","number")?l=ns(l):Je(l)==="object"&&(l=$({},l)),l):us(i(function(){return n.apply(f,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=[],f=this.$.vnode.scopeId,d=(f&&(s[f]="",l.push(f)),{}),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(A){return C.indexOf(A)===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(A){t.isSlots&&A==="children"||delete E[A]}),$($($($({},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 f=mF(e,t,this),c=M.createElement(f,_r({},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 t0.createPortal(c,w)},h.pushReactPortal(this.reactPortal)):17<d0?(xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=xo.createRoot(w),this.__veauryReactApp__.render(c)):xo.render(c,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),this.reactPortal?(f0(this.$refs.react),(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal)):(f0(this.$refs.react),17<d0?this.__veauryReactApp__.unmount():xo.unmountComponentAtNode(this.$refs.react)),fF()},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 gF=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 yF(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 p0(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function v0(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&&p0(e,n,u[3])):u[2]instanceof Array&&p0(e,n,u[2]),e["onUpdate:"+n]);e["onUpdate:"+n]=typeof i=="function"?function(){for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];i.apply(r,l),a.apply(r,l)}:a,e[n]=u[0]}function Sf(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),f=0;f<s;f++)l[f]=arguments[f];u.apply(t,l),e[o].apply(t,l)}:e[o];else if(a=o.match(/^v-model($|:([^:]+)|-([^:]+))/))a=a[2]||a[3]||"modelValue",v0(n,e[o],a),delete r[o];else if(o==="v-models"){if(Je(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){v0(n,i[s],s,"v-models")}),delete r[o]}}),$($({},r),n)}var os=function(){function e(){Uu(this,e),Oo(this,"pool",new Set)}return Hu(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 h0(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(Je(r)))return r;if(r instanceof Array){if(r.length!==1)return r;r=r[0]}return $($({},r),{},{ref:t})}var DF=Of(h0);function _f(e){return v.h(DF,{node:function(){return e.node}})}_f.originReactComponent=M.forwardRef(h0);var CF=["component","node"],wF=["component","$slots","children","class","style"],EF=["className","classname"],tr="veaury-options",m0=new os;function BF(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 g0(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 AF(e){var t;return(t=e.node)==null?void 0:t.call(e)}var kf=M.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=Mt(o,CF);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||AF,i=l0(o[tr]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),M.createElement(bF,_r({},$($($($({component:a},r?{node:r}:{}),o),u),{},Oo({},tr,i)),{ref:t}))}),bF=function(){Ji(t,M.Component);var e=ts(t);function t(n){var r;return Uu(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(es(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return Hu(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[tr];return o.isSlots?(Object.keys(this.props).forEach(function(u){gF.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",_r({},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[tr],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=Mt(n,["component",tr,"v-slots","children"].map(i0)),this.__veauryCurrentVueComponent__!==u&&this.updateVueComponent(u),!!u.__fromReactSlot||(this.__veauryVueInstance__?(i&&(a=a||{},Je(i)!=="object"||i instanceof Array||i.$$typeof?a.default=i:a=i),(s=this.__veauryVueInstance__.$data.$slots)&&Object.keys(s).forEach(function(f){delete s[f]}),a&&(s||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,g0(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(f){f!=="$slots"&&delete l.__veauryVueInstance__.$data[f]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,Sf(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),m0.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[tr]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=Mt(s,["component",tr,"children","v-slots"].map(i0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Je(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=g0(i))&&(s.$slots=i),l=l.bind(this);var f,d=$({},Sf(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,c){return v.h(_f,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||c})}):v.h(_f,{node:y})},getScopedSlots:function(y,m){var c,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),$({},m));for(c in h)(function(g){var C,E;!h.hasOwnProperty(g)||(C=h[g])==null||(h[g]=(E=C,function(){for(var A,x,B,O,k=arguments.length,_=new Array(k),K=0;K<k;K++)_[K]=arguments[K];return E.vueFunction?E.vueFunction.apply(w,_):(B=E.reactSlot,O=E.reactFunction,B=B||(O==null?void 0:O.apply(w,_)),O=u.defaultSlotsFormatter,(A=w.getScopedSlots.__scopeSlots[g])!=null&&(A=A.component)!=null&&(A=A.ctx)!=null&&A.__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,_)})})):(x=O&&B?[O(B,w.reactInVueCall)]:y(Of(function(){return E.apply(w,_)},$($({},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)})(c);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),c=C.style,C=Mt(C,wF),w=this.getScopedSlots(v.h,$({},h)),h=C.className,g=C.classname,C=Mt(C,EF),E={};return Object.keys(w).forEach(function(A){var x=w[A];E[A]=typeof x=="function"?x:function(){return x}}),v.h(BF(o.__veauryCurrentVueComponent__,this),$($($($({},C),m||h||g?{class:m||h||g}:{}),c?{style:c}:{}),{},{ref:"use_vue_wrapper"}),$({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:$({},E)))}};n&&(f=m0.getRandomId("__vue_wrapper_container_"),n.id=f,this.__veauryVueTargetId__=f,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=yF(this),a&&document.getElementById(f)?(this.parentVueWrapperRef=a,this.vuePortal=function(y,m){return y(v.Teleport,{to:"#"+f,key:f},[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 us(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(kf,_r({},r,{component:e,ref:o},Oo({},tr,t)))}));return n.originVueComponent=e,n}new os;function FF(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Of(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 y0(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function as(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,Oo({},y0(r[0]),r[1])),n},{}):Je(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[y0(n)]=e[n]}),t):{}:{}}function is(e){return e?e instanceof Array?e:typeof e=="string"?(e=e.trim()).split(/\s+/):Je(e)==="object"?Object.keys(e).filter(function(t){return!!e[t]}):[]:[]}var xF=["ref"];function OF(e,t,n,r,o){var u=e.props||{},u=(u.ref,Mt(u,xF)),a={},i=(Object.keys(e.children||{}).forEach(function(f){var d=e.children[f],p=s0.react.vueNamedSlotsKey.find(function(y){return f.indexOf(y)===0});p||f==="default"?(p=f.replace(new RegExp("^".concat(p)),"").replace(/^default$/,"children"),a[p]=r(d(),n,o)):a[f]=function(){for(var y=arguments.length,m=new Array(y),c=0;c<y;c++)m[c]=arguments[c];return d.__reactArgs=m,r(d.apply(this,m),n,o)}}),{}),s=as(u.style),l=Array.from(new Set(is(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 D0(e){return e.type===v.Text}new os;function C0(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?M.createElement(SF,{vnode:e},t):t}var SF=function(){Ji(t,M.Component);var e=ts(t);function t(n){var r;return Uu(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return Hu(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,f,d,p,y,m;i&&(m=(s=u0(n.findDirectiveName(i),2))[0],s=s[1],l=(p=i.dir).created,f=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),f!=null&&f.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,f,d,p;s&&(l=(p=u0(n.findDirectiveName(s),2))[0],p=p[1],l&&(f=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=$($({},l),s),p=[u,l,r,a],f!=null&&f.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 _F(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)&&(!(!t||!/^function\s+[A-Z]/.test(n))||!!/\b\(this\b|\bthis[\.\[]\b/.test(n)&&(!(t&&!/classCallCheck\(this/.test(n))||/^function\sdefault_\d+\s*\(/.test(n)))))}function w0(e){var t,n;return typeof((n=e.type)==null?void 0:n.originReactComponent)!="function"||_F((n=e.type)==null?void 0:n.originReactComponent)?((n=(n=e.ref)==null?void 0:n.r)&&typeof n=="string"&&(t=n,n=function(r){var o;r&&(e.ref.i.refs&&((o=$({},e.ref.i.refs))[t]=r,e.ref.i.refs=o),((o=e.ref.i.setupState)==null?void 0:o[t])!==void 0&&(e.ref.i.setupState[t]=r))},n=new Proxy(n,{get:function(r,o){return r[o]},set:function(r,o,u){var a;return(a=e.ref.i.refs)!=null&&a[t]&&((a=$({},e.ref.i.refs))[o]=u,e.ref.i.refs=a),u}})),n):null}function Pf(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 kF=["style","class"];function E0(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(e.children,n,u):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(t=w0(e),l=(s=e.props||{}).style,i=s.class,s=$($({},Mt(s,kF)),{},{style:as(l),className:Array.from(new Set(is(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Je(l))?[l]:ns(l)).__top__=a),C0(e,Pf(oe.createElement(e.type,s,o(l,n,u)),e.scopeId))):n([e],null,r)}function PF(){return 0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}}function B0(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 A0(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?(l=[],a.forEach(function(f,d){if(f&&f.type!==v.Comment){if((m=f.type)==null||!m.originReactComponent)return f.$$typeof||typeof f=="string"||typeof f=="number"?void l.push(f):D0(f)?void(f.children.trim()!==""&&l.push(f.children.trim())):void(f.type&&(Pf(m=B0(E0(f,n,i,o,u,s,a.__top__),a,d),f.scopeId),l.push(m)));var p,y,m=f.type.originReactComponent;Pf(p=B0(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(f.__top__=a.__top__,p=OF(f,"_key_".concat(d),i,u,s),y=w0(f),f.children&&(f.children.__top__=a.__top__),C0(f,oe.createElement(m,$($($({},PF(p,f,m)),f.__extraData||{}),y?{ref:y}:{})))):D0(f)?f.text:E0(f,n,i,o,u,s),a,d),f.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var Tf=A0({reactComponents:"all",domTags:"all"});function TF(e,t){return FF(e,{combinedOption:$({pureTransformer:!0,defaultSlotsFormatter:Tf,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),f=0;f<s;f++)l[f]=arguments[f];return Tf(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=Tf(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}A0({reactComponents:"all",domTags:"all"});var RF=["ref","children","v-slots"];function NF(s,t,n,r,o){var s=s.props||{},l=(s.ref,s.children),a=s["v-slots"],u=a===void 0?{}:a,a=Mt(s,RF),i=(l&&(Je(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),c=0;c<y;c++)m[c]=arguments[c];p=p.apply(this,m)}return r(p,n,o)}}),{}),l=as(a.style),f=Array.from(new Set(is(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),f!==""&&(s.class=f),Object.assign(a,$({},s)),delete a.className,{props:a=Sf(a),slots:i}}function b0(e){var t=e.ref;if(t)return Je(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var jF=["style","class","children"];function F0(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=b0(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=Mt(t,jF),s=Array.from(new Set(is(s))).join(" "),l=as(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(Je(l))?[l]:l instanceof Array?ns(l):$({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function x0(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,f){if(((d=l.type)==null||!d.originVueComponent)&&l.type!==kf)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=F0(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===kf){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__,f=(p=NF(l,"_key_".concat(f),i,u)).props,p=p.slots,b0(l),l.children&&(l.children.__top__=a.__top__),v.h(d,$({},f),p)):F0(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}x0({vueComponents:"all",domTags:"all"}),x0({reactComponents:"all",domTags:"all"}),new os;var O0={exports:{}},ss={};/**
41
+ `+u.stack}return{value:e,source:t,stack:o,digest:null}}function Gc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var j2=typeof WeakMap=="function"?WeakMap:Map;function fg(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zi||(zi=!0,pf=r),Xc(e,t)},n}function dg(e,t,n){n=An(-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(){Xc(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Xc(e,t),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function pg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new j2;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=G2.bind(null,e,t,n),t.then(e,e))}function vg(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 hg(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=An(-1,1),t.tag=2,Qn(n,t,1))),n.lanes|=1),e)}var I2=yn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?Vm(t,null,n,r):Co(t,e.child,n,r)}function mg(e,t,n,r,o){n=n.render;var u=t.ref;return Do(t,o),r=Uc(e,t,n,r,u,o),n=Hc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(Ee&&n&&bc(t),t.flags|=1,ot(e,t,r,o),t.child)}function gg(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Cf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,yg(e,t,u,r,o)):(e=qi(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:bu,n(a,r)&&e.ref===t.ref)return bn(e,t,o)}return t.flags|=1,e=er(u,r),e.ref=t.ref,e.return=t,t.child=e}function yg(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(bu(u,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,bn(e,t,o)}return Zc(e,t,n,r,o)}function Dg(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},ye(Ao,Ft),Ft|=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,ye(Ao,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ye(Ao,Ft),Ft|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ye(Ao,Ft),Ft|=r;return ot(e,t,o,n),t.child}function Cg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zc(e,t,n,r,o){var u=ft(n)?Dr:Ye.current;return u=vo(t,u),Do(t,o),n=Uc(e,t,n,r,u,o),r=Hc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(Ee&&r&&bc(t),t.flags|=1,ot(e,t,n,o),t.child)}function wg(e,t,n,r,o){if(ft(n)){var u=!0;yi(t)}else u=!1;if(Do(t,o),t.stateNode===null)ji(e,t),Mm(t,n,r),Ic(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=Rt(l):(l=ft(n)?Dr:Ye.current,l=vo(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)&&$m(t,a,r,l),qn=!1;var p=t.memoizedState;a.state=p,Fi(t,r,a,o),s=t.memoizedState,i!==r||p!==s||ct.current||qn?(typeof c=="function"&&(jc(t,n,c,r),s=t.memoizedState),(i=qn||Im(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,Tm(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:qt(t.type,i),a.props=l,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Rt(s):(s=ft(n)?Dr:Ye.current,s=vo(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)&&$m(t,a,r,s),qn=!1,p=t.memoizedState,a.state=p,Fi(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||ct.current||qn?(typeof y=="function"&&(jc(t,n,y,r),m=t.memoizedState),(l=qn||Im(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 Jc(e,t,n,r,u,o)}function Jc(e,t,n,r,o,u){Cg(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&bm(t,n,!1),bn(e,t,u);r=t.stateNode,I2.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Co(t,e.child,null,u),t.child=Co(t,null,i,u)):ot(e,t,i,u),t.memoizedState=r.state,o&&bm(t,n,!0),t.child}function Eg(e){var t=e.stateNode;t.pendingContext?Bm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bm(e,t.context,!1),Mc(e,t.containerInfo)}function Bg(e,t,n,r,o){return go(),Oc(o),t.flags|=256,ot(e,t,n,r),t.child}var ef={dehydrated:null,treeContext:null,retryLane:0};function tf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ag(e,t,n){var r=t.pendingProps,o=Fe.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),ye(Fe,o&1),e===null)return Sc(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=Qi(a,r,0,null),e=Or(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=tf(n),t.memoizedState=ef,e):nf(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return M2(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=er(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=er(i,u):(u=Or(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?tf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=ef,r}return u=e.child,e=u.sibling,r=er(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 nf(e,t){return t=Qi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ni(e,t,n,r){return r!==null&&Oc(r),Co(t,e.child,null,n),e=nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M2(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=Gc(Error(K(422))),Ni(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=Qi({mode:"visible",children:r.children},o,0,null),u=Or(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&Co(t,e.child,null,a),t.child.memoizedState=tf(a),t.memoizedState=ef,u);if(!(t.mode&1))return Ni(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,u=Error(K(419)),r=Gc(u,r,void 0),Ni(e,t,a,r)}if(i=(a&e.childLanes)!==0,dt||i){if(r=We,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,Bn(e,o),Gt(r,e,o,-1))}return Df(),r=Gc(Error(K(421))),Ni(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=X2.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,bt=Wn(o.nextSibling),At=t,Ee=!0,Kt=null,e!==null&&(Pt[Tt++]=wn,Pt[Tt++]=En,Pt[Tt++]=Cr,wn=e.id,En=e.overflow,Cr=t),t=nf(t,r.children),t.flags|=4096,t)}function bg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Tc(e.return,t,n)}function rf(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 Fg(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(ot(e,t,r.children,n),r=Fe.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&&bg(e,n,t);else if(e.tag===19)bg(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(ye(Fe,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&&Oi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rf(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&&Oi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rf(t,!0,n,null,u);break;case"together":rf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ji(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $2(e,t,n){switch(t.tag){case 3:Eg(t),go();break;case 5:Wm(t);break;case 1:ft(t.type)&&yi(t);break;case 4:Mc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(Bi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?Ag(e,t,n):(ye(Fe,Fe.current&1),e=bn(e,t,n),e!==null?e.sibling:null);ye(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,Dg(e,t,n)}return bn(e,t,n)}var xg,of,Sg,Og;xg=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(){},Sg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Br(on.current);var u=null;switch(n){case"input":o=Tl(e,o),r=Tl(e,r),u=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),u=[];break;case"textarea":o=jl(e,o),r=jl(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hi)}Ml(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"&&(ou.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"&&(ou.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&De("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)}},Og=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lu(e,t){if(!Ee)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 Xe(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 L2(e,t,n){var r=t.pendingProps;switch(Fc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return ft(t.type)&&gi(),Xe(t),null;case 3:return r=t.stateNode,wo(),Ce(ct),Ce(Ye),zc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ei(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(mf(Kt),Kt=null))),of(e,t),Xe(t),null;case 5:$c(t);var o=Br(Nu.current);if(n=t.type,e!==null&&t.stateNode!=null)Sg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(K(166));return Xe(t),null}if(e=Br(on.current),Ei(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[rn]=t,r[_u]=u,e=(t.mode&1)!==0,n){case"dialog":De("cancel",r),De("close",r);break;case"iframe":case"object":case"embed":De("load",r);break;case"video":case"audio":for(o=0;o<xu.length;o++)De(xu[o],r);break;case"source":De("error",r);break;case"img":case"image":case"link":De("error",r),De("load",r);break;case"details":De("toggle",r);break;case"input":sh(r,u),De("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},De("invalid",r);break;case"textarea":fh(r,u),De("invalid",r)}Ml(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&&vi(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&vi(r.textContent,i,e),o=["children",""+i]):ou.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&De("scroll",r)}switch(n){case"input":Ha(r),ch(r,u,!0);break;case"textarea":Ha(r),ph(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=hi)}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=vh(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[rn]=t,e[_u]=r,xg(e,t,!1,!1),t.stateNode=e;e:{switch(a=$l(n,r),n){case"dialog":De("cancel",e),De("close",e),o=r;break;case"iframe":case"object":case"embed":De("load",e),o=r;break;case"video":case"audio":for(o=0;o<xu.length;o++)De(xu[o],e);o=r;break;case"source":De("error",e),o=r;break;case"img":case"image":case"link":De("error",e),De("load",e),o=r;break;case"details":De("toggle",e),o=r;break;case"input":sh(e,r),o=Tl(e,r),De("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),De("invalid",e);break;case"textarea":fh(e,r),o=jl(e,r),De("invalid",e);break;default:o=r}Ml(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?gh(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&hh(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&su(e,s):typeof s=="number"&&su(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ou.hasOwnProperty(u)?s!=null&&u==="onScroll"&&De("scroll",e):s!=null&&El(e,u,s,a))}switch(n){case"input":Ha(e),ch(e,r,!1);break;case"textarea":Ha(e),ph(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jn(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?to(e,!!r.multiple,u,!1):r.defaultValue!=null&&to(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=hi)}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 Xe(t),null;case 6:if(e&&t.stateNode!=null)Og(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=Br(Nu.current),Br(on.current),Ei(t)){if(r=t.stateNode,n=t.memoizedProps,r[rn]=t,(u=r.nodeValue!==n)&&(e=At,e!==null))switch(e.tag){case 3:vi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vi(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rn]=t,t.stateNode=r}return Xe(t),null;case 13:if(Ce(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&bt!==null&&t.mode&1&&!(t.flags&128))km(),go(),t.flags|=98560,u=!1;else if(u=Ei(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(K(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(K(317));u[rn]=t}else go(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),u=!1}else Kt!==null&&(mf(Kt),Kt=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||Fe.current&1?$e===0&&($e=3):Df())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return wo(),of(e,t),e===null&&Su(t.stateNode.containerInfo),Xe(t),null;case 10:return Pc(t.type._context),Xe(t),null;case 17:return ft(t.type)&&gi(),Xe(t),null;case 19:if(Ce(Fe),u=t.memoizedState,u===null)return Xe(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Lu(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Oi(e),a!==null){for(t.flags|=128,Lu(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 ye(Fe,Fe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Pe()>bo&&(t.flags|=128,r=!0,Lu(u,!1),t.lanes=4194304)}else{if(!r)if(e=Oi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!Ee)return Xe(t),null}else 2*Pe()-u.renderingStartTime>bo&&n!==1073741824&&(t.flags|=128,r=!0,Lu(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=Pe(),t.sibling=null,n=Fe.current,ye(Fe,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function z2(e,t){switch(Fc(t),t.tag){case 1:return ft(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),Ce(ct),Ce(Ye),zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $c(t),null;case 13:if(Ce(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(Fe),null;case 4:return wo(),null;case 10:return Pc(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Ii=!1,Ze=!1,V2=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function uf(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var _g=!1;function W2(e,t){if(gc=ri,e=im(),lc(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(yc={focusedElem:e,selectionRange:n},ri=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;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:qt(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(K(163))}}catch(E){Oe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return m=_g,_g=!1,m}function zu(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&&uf(t,n,u)}o=o.next}while(o!==r)}}function Mi(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 af(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 kg(e){var t=e.alternate;t!==null&&(e.alternate=null,kg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[_u],delete t[Ec],delete t[b2],delete t[F2])),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 Pg(e){return e.tag===5||e.tag===3||e.tag===4}function Tg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pg(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 sf(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=hi));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function lf(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(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Xa,n)}catch{}switch(n.tag){case 5:Ze||Bo(n,t);case 6:var r=Ke,o=Qt;Ke=null,Yn(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?wc(e.parentNode,n):e.nodeType===1&&wc(e,n),Du(e)):wc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Yn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(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)&&uf(n,t,a),o=o.next}while(o!==r)}Yn(e,t,n);break;case 1:if(!Ze&&(Bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Oe(n,t,i)}Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,Yn(e,t,n),Ze=r):Yn(e,t,n);break;default:Yn(e,t,n)}}function Ng(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new V2),t.forEach(function(r){var o=Z2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(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(K(160));Rg(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){Oe(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jg(t,e),t=t.sibling}function jg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),an(e),r&4){try{zu(3,e,e.return),Mi(3,e)}catch(f){Oe(e,e.return,f)}try{zu(5,e,e.return)}catch(f){Oe(e,e.return,f)}}break;case 1:Yt(t,e),an(e),r&512&&n!==null&&Bo(n,n.return);break;case 5:if(Yt(t,e),an(e),r&512&&n!==null&&Bo(n,n.return),e.flags&32){var o=e.stateNode;try{su(o,"")}catch(f){Oe(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&&lh(o,u),$l(i,a);var l=$l(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?gh(o,d):c==="dangerouslySetInnerHTML"?hh(o,d):c==="children"?su(o,d):El(o,c,d,l)}switch(i){case"input":Rl(o,u);break;case"textarea":dh(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?to(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?to(o,!!u.multiple,u.defaultValue,!0):to(o,!!u.multiple,u.multiple?[]:"",!1))}o[_u]=u}catch(f){Oe(e,e.return,f)}}break;case 6:if(Yt(t,e),an(e),r&4){if(e.stateNode===null)throw Error(K(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(f){Oe(e,e.return,f)}}break;case 3:if(Yt(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Du(t.containerInfo)}catch(f){Oe(e,e.return,f)}break;case 4:Yt(t,e),an(e);break;case 13:Yt(t,e),an(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(df=Pe())),r&4&&Ng(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(l=Ze)||c,Yt(t,e),Ze=l):Yt(t,e),an(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(Z=e,c=e.child;c!==null;){for(d=Z=c;Z!==null;){switch(p=Z,y=p.child,p.tag){case 0:case 11:case 14:case 15:zu(4,p,p.return);break;case 1:Bo(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){Oe(r,n,f)}}break;case 5:Bo(p,p.return);break;case 22:if(p.memoizedState!==null){$g(d);continue}}y!==null?(y.return=p,Z=y):$g(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=mh("display",a))}catch(f){Oe(e,e.return,f)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){Oe(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:Yt(t,e),an(e),r&4&&Ng(e);break;case 21:break;default:Yt(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pg(n)){var r=n;break e}n=n.return}throw Error(K(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(su(o,""),r.flags&=-33);var u=Tg(e);lf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=Tg(e);sf(e,i,a);break;default:throw Error(K(161))}}catch(s){Oe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U2(e,t,n){Z=e,Ig(e)}function Ig(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var o=Z,u=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Ii;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||Ze;i=Ii;var l=Ze;if(Ii=a,(Ze=s)&&!l)for(Z=o;Z!==null;)a=Z,s=a.child,a.tag===22&&a.memoizedState!==null?Lg(o):s!==null?(s.return=a,Z=s):Lg(o);for(;u!==null;)Z=u,Ig(u),u=u.sibling;Z=o,Ii=i,Ze=l}Mg(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,Z=u):Mg(e)}}function Mg(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||Mi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Nm(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}Nm(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&&Du(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}Ze||t.flags&512&&af(t)}catch(p){Oe(t,t.return,p)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function $g(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Lg(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mi(4,t)}catch(s){Oe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Oe(t,o,s)}}var u=t.return;try{af(t)}catch(s){Oe(t,u,s)}break;case 5:var a=t.return;try{af(t)}catch(s){Oe(t,a,s)}}}catch(s){Oe(t,t.return,s)}if(t===e){Z=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Z=i;break}Z=t.return}}var H2=Math.ceil,$i=yn.ReactCurrentDispatcher,cf=yn.ReactCurrentOwner,jt=yn.ReactCurrentBatchConfig,fe=0,We=null,je=null,qe=0,Ft=0,Ao=Un(0),$e=0,Vu=null,br=0,Li=0,ff=0,Wu=null,pt=null,df=0,bo=1/0,Fn=null,zi=!1,pf=null,Gn=null,Vi=!1,Xn=null,Wi=0,Uu=0,vf=null,Ui=-1,Hi=0;function ut(){return fe&6?Pe():Ui!==-1?Ui:Ui=Pe()}function Zn(e){return e.mode&1?fe&2&&qe!==0?qe&-qe:S2.transition!==null?(Hi===0&&(Hi=Ph()),Hi):(e=pe,e!==0||(e=window.event,e=e===void 0?16:zh(e.type)),e):1}function Gt(e,t,n,r){if(50<Uu)throw Uu=0,vf=null,Error(K(185));vu(e,n,r),(!(fe&2)||e!==We)&&(e===We&&(!(fe&2)&&(Li|=n),$e===4&&Jn(e,qe)),vt(e,r),n===1&&fe===0&&!(t.mode&1)&&(bo=Pe()+500,Di&&Kn()))}function vt(e,t){var n=e.callbackNode;Sb(e,t);var r=ei(e,e===We?qe:0);if(r===0)n!==null&&Oh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Oh(n),t===1)e.tag===0?x2(Vg.bind(null,e)):Fm(Vg.bind(null,e)),B2(function(){!(fe&6)&&Kn()}),n=null;else{switch(Th(r)){case 1:n=Kl;break;case 4:n=_h;break;case 16:n=Ga;break;case 536870912:n=kh;break;default:n=Ga}n=Gg(n,zg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zg(e,t){if(Ui=-1,Hi=0,fe&6)throw Error(K(327));var n=e.callbackNode;if(Fo()&&e.callbackNode!==n)return null;var r=ei(e,e===We?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ki(e,r);else{t=r;var o=fe;fe|=2;var u=Ug();(We!==e||qe!==t)&&(Fn=null,bo=Pe()+500,xr(e,t));do try{Q2();break}catch(i){Wg(e,i)}while(!0);kc(),$i.current=u,fe=o,je!==null?t=0:(We=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=ql(e),o!==0&&(r=o,t=hf(e,o))),t===1)throw n=Vu,xr(e,0),Jn(e,r),vt(e,Pe()),n;if(t===6)Jn(e,r);else{if(o=e.current.alternate,!(r&30)&&!K2(o)&&(t=Ki(e,r),t===2&&(u=ql(e),u!==0&&(r=u,t=hf(e,u))),t===1))throw n=Vu,xr(e,0),Jn(e,r),vt(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:Sr(e,pt,Fn);break;case 3:if(Jn(e,r),(r&130023424)===r&&(t=df+500-Pe(),10<t)){if(ei(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Cc(Sr.bind(null,e,pt,Fn),t);break}Sr(e,pt,Fn);break;case 4:if(Jn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ut(r);u=1<<a,a=t[a],a>o&&(o=a),r&=~u}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*H2(r/1960))-r,10<r){e.timeoutHandle=Cc(Sr.bind(null,e,pt,Fn),r);break}Sr(e,pt,Fn);break;case 5:Sr(e,pt,Fn);break;default:throw Error(K(329))}}}return vt(e,Pe()),e.callbackNode===n?zg.bind(null,e):null}function hf(e,t){var n=Wu;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=Ki(e,t),e!==2&&(t=pt,pt=n,t!==null&&mf(t)),e}function mf(e){pt===null?pt=e:pt.push.apply(pt,e)}function K2(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(!Ht(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 Jn(e,t){for(t&=~ff,t&=~Li,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function Vg(e){if(fe&6)throw Error(K(327));Fo();var t=ei(e,0);if(!(t&1))return vt(e,Pe()),null;var n=Ki(e,t);if(e.tag!==0&&n===2){var r=ql(e);r!==0&&(t=r,n=hf(e,r))}if(n===1)throw n=Vu,xr(e,0),Jn(e,t),vt(e,Pe()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,pt,Fn),vt(e,Pe()),null}function gf(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(bo=Pe()+500,Di&&Kn())}}function Fr(e){Xn!==null&&Xn.tag===0&&!(fe&6)&&Fo();var t=fe;fe|=1;var n=jt.transition,r=pe;try{if(jt.transition=null,pe=1,e)return e()}finally{pe=r,jt.transition=n,fe=t,!(fe&6)&&Kn()}}function yf(){Ft=Ao.current,Ce(Ao)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,E2(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Fc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:wo(),Ce(ct),Ce(Ye),zc();break;case 5:$c(r);break;case 4:wo();break;case 13:Ce(Fe);break;case 19:Ce(Fe);break;case 10:Pc(r.type._context);break;case 22:case 23:yf()}n=n.return}if(We=e,je=e=er(e.current,null),qe=Ft=t,$e=0,Vu=null,ff=Li=br=0,pt=Wu=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[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}Er=null}return e}function Wg(e,t){do{var n=je;try{if(kc(),_i.current=Ri,ki){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ki=!1}if(Ar=0,Ve=Me=xe=null,ju=!1,Iu=0,cf.current=null,n===null||n.return===null){$e=1,Vu=t,je=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=vg(a);if(y!==null){y.flags&=-257,hg(y,a,i,u,t),y.mode&1&&pg(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)){pg(u,l,t),Df();break e}s=Error(K(426))}}else if(Ee&&i.mode&1){var w=vg(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),hg(w,a,i,u,t),Oc(Eo(s,i));break e}}u=s=Eo(s,i),$e!==4&&($e=2),Wu===null?Wu=[u]:Wu.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=fg(u,s,t);Rm(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"&&(Gn===null||!Gn.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=dg(u,i,t);Rm(u,E);break e}}u=u.return}while(u!==null)}Kg(n)}catch(B){t=B,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function Ug(){var e=$i.current;return $i.current=Ri,e===null?Ri:e}function Df(){($e===0||$e===3||$e===2)&&($e=4),We===null||!(br&268435455)&&!(Li&268435455)||Jn(We,qe)}function Ki(e,t){var n=fe;fe|=2;var r=Ug();(We!==e||qe!==t)&&(Fn=null,xr(e,t));do try{q2();break}catch(o){Wg(e,o)}while(!0);if(kc(),fe=n,$i.current=r,je!==null)throw Error(K(261));return We=null,qe=0,$e}function q2(){for(;je!==null;)Hg(je)}function Q2(){for(;je!==null&&!Db();)Hg(je)}function Hg(e){var t=Yg(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Kg(e):je=t,cf.current=null}function Kg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=z2(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,je=null;return}}else if(n=L2(n,t,Ft),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);$e===0&&($e=5)}function Sr(e,t,n){var r=pe,o=jt.transition;try{jt.transition=null,pe=1,Y2(e,t,n,r)}finally{jt.transition=o,pe=r}return null}function Y2(e,t,n,r){do Fo();while(Xn!==null);if(fe&6)throw Error(K(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(K(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Ob(e,u),e===We&&(je=We=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vi||(Vi=!0,Gg(Ga,function(){return Fo(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=jt.transition,jt.transition=null;var a=pe;pe=1;var i=fe;fe|=4,cf.current=null,W2(e,n),jg(n,e),h2(yc),ri=!!gc,yc=gc=null,e.current=n,U2(n),Cb(),fe=i,pe=a,jt.transition=u}else e.current=n;if(Vi&&(Vi=!1,Xn=e,Wi=o),u=e.pendingLanes,u===0&&(Gn=null),Bb(n.stateNode),vt(e,Pe()),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(zi)throw zi=!1,e=pf,pf=null,e;return Wi&1&&e.tag!==0&&Fo(),u=e.pendingLanes,u&1?e===vf?Uu++:(Uu=0,vf=e):Uu=0,Kn(),null}function Fo(){if(Xn!==null){var e=Th(Wi),t=jt.transition,n=pe;try{if(jt.transition=null,pe=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Wi=0,fe&6)throw Error(K(331));var o=fe;for(fe|=4,Z=e.current;Z!==null;){var u=Z,a=u.child;if(Z.flags&16){var i=u.deletions;if(i!==null){for(var s=0;s<i.length;s++){var l=i[s];for(Z=l;Z!==null;){var c=Z;switch(c.tag){case 0:case 11:case 15:zu(8,c,u)}var d=c.child;if(d!==null)d.return=c,Z=d;else for(;Z!==null;){c=Z;var p=c.sibling,y=c.return;if(kg(c),c===l){Z=null;break}if(p!==null){p.return=y,Z=p;break}Z=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)}}Z=u}}if(u.subtreeFlags&2064&&a!==null)a.return=u,Z=a;else e:for(;Z!==null;){if(u=Z,u.flags&2048)switch(u.tag){case 0:case 11:case 15:zu(9,u,u.return)}var h=u.sibling;if(h!==null){h.return=u.return,Z=h;break e}Z=u.return}}var g=e.current;for(Z=g;Z!==null;){a=Z;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,Z=C;else e:for(a=g;Z!==null;){if(i=Z,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Mi(9,i)}}catch(B){Oe(i,i.return,B)}if(i===a){Z=null;break e}var E=i.sibling;if(E!==null){E.return=i.return,Z=E;break e}Z=i.return}}if(fe=o,Kn(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Xa,e)}catch{}r=!0}return r}finally{pe=n,jt.transition=t}}return!1}function qg(e,t,n){t=Eo(n,t),t=fg(e,t,1),e=Qn(e,t,1),t=ut(),e!==null&&(vu(e,1,t),vt(e,t))}function Oe(e,t,n){if(e.tag===3)qg(e,e,n);else for(;t!==null;){if(t.tag===3){qg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gn===null||!Gn.has(r))){e=Eo(n,e),e=dg(t,e,1),t=Qn(t,e,1),e=ut(),t!==null&&(vu(t,1,e),vt(t,e));break}}t=t.return}}function G2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,We===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Pe()-df?xr(e,0):ff|=n),vt(e,t)}function Qg(e,t){t===0&&(e.mode&1?(t=Ja,Ja<<=1,!(Ja&130023424)&&(Ja=4194304)):t=1);var n=ut();e=Bn(e,t),e!==null&&(vu(e,t,n),vt(e,n))}function X2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qg(e,n)}function Z2(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(K(314))}r!==null&&r.delete(t),Qg(e,n)}var Yg;Yg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,$2(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&xm(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ji(e,t),e=t.pendingProps;var o=vo(t,Ye.current);Do(t,n),o=Uc(null,t,r,e,o,n);var u=Hc();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,ft(r)?(u=!0,yi(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Nc(t),o.updater=xi,t.stateNode=o,o._reactInternals=t,Ic(t,r,e,n),t=Jc(null,t,r,!0,u,n)):(t.tag=0,Ee&&u&&bc(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=eF(r),e=qt(r,e),o){case 0:t=Zc(null,t,r,e,n);break e;case 1:t=wg(null,t,r,e,n);break e;case 11:t=mg(null,t,r,e,n);break e;case 14:t=gg(null,t,r,qt(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),wg(e,t,r,o,n);case 3:e:{if(Eg(t),e===null)throw Error(K(387));r=t.pendingProps,u=t.memoizedState,o=u.element,Tm(e,t),Fi(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=Eo(Error(K(423)),t),t=Bg(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(K(424)),t),t=Bg(e,t,r,n,o);break e}else for(bt=Wn(t.stateNode.containerInfo.firstChild),At=t,Ee=!0,Kt=null,n=Vm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(go(),r===o){t=bn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Wm(t),e===null&&Sc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,Dc(r,o)?a=null:u!==null&&Dc(r,u)&&(t.flags|=32),Cg(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Sc(t),null;case 13:return Ag(e,t,n);case 4:return Mc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),mg(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(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,ye(Bi,r._currentValue),r._currentValue=a,u!==null)if(Ht(u.value,a)){if(u.children===o.children&&!ct.current){t=bn(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=An(-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),Tc(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(K(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),Tc(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}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Do(t,n),o=Rt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=qt(r,t.pendingProps),o=qt(r.type,o),gg(e,t,r,o,n);case 15:return yg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),ji(e,t),t.tag=1,ft(r)?(e=!0,yi(t)):e=!1,Do(t,n),Mm(t,r,o),Ic(t,r,o,n),Jc(null,t,r,!0,e,n);case 19:return Fg(e,t,n);case 22:return Dg(e,t,n)}throw Error(K(156,t.tag))};function Gg(e,t){return Sh(e,t)}function J2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new J2(e,t,n,r)}function Cf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eF(e){if(typeof e=="function")return Cf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bl)return 11;if(e===Sl)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qi(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Cf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case eo:return Or(n.children,o,u,t);case Bl:a=8,o|=8;break;case Al:return e=It(12,n,t,o|2),e.elementType=Al,e.lanes=u,e;case Fl:return e=It(13,n,t,o),e.elementType=Fl,e.lanes=u,e;case xl:return e=It(19,n,t,o),e.elementType=xl,e.lanes=u,e;case oh:return Qi(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nh:a=10;break e;case rh:a=9;break e;case bl:a=11;break e;case Sl:a=14;break e;case Nn:a=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=It(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Or(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Qi(e,t,n,r){return e=It(22,e,r,t),e.elementType=oh,e.lanes=n,e.stateNode={isHidden:!1},e}function wf(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Ef(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tF(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=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,o,u,a,i,s){return e=new tF(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=It(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nc(u),e}function nF(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Xg(e){if(!e)return Hn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(ft(n))return Am(e,n,t)}return t}function Zg(e,t,n,r,o,u,a,i,s){return e=Bf(n,r,!0,e,o,u,a,i,s),e.context=Xg(null),n=e.current,r=ut(),o=Zn(n),u=An(r,o),u.callback=t??null,Qn(n,u,o),e.current.lanes=o,vu(e,o,r),vt(e,r),e}function Yi(e,t,n,r){var o=t.current,u=ut(),a=Zn(o);return n=Xg(n),t.context===null?t.context=n:t.pendingContext=n,t=An(u,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qn(o,t,a),e!==null&&(Gt(e,o,a,u),bi(e,o,a)),a}function Gi(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 Jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Af(e,t){Jg(e,t),(e=e.alternate)&&Jg(e,t)}function rF(){return null}var e0=typeof reportError=="function"?reportError:function(e){console.error(e)};function bf(e){this._internalRoot=e}Xi.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));Yi(e,t,null,null)},Xi.prototype.unmount=bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fr(function(){Yi(null,e,null,null)}),t[Dn]=null}};function Xi(e){this._internalRoot=e}Xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=jh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ln.length&&t!==0&&t<Ln[n].priority;n++);Ln.splice(n,0,e),n===0&&$h(e)}};function Ff(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t0(){}function oF(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=Gi(a);u.call(l)}}var a=Zg(t,r,e,0,null,!1,!1,"",t0);return e._reactRootContainer=a,e[Dn]=a.current,Su(e.nodeType===8?e.parentNode:e),Fr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=Gi(s);i.call(l)}}var s=Bf(e,0,!1,null,null,!1,!1,"",t0);return e._reactRootContainer=s,e[Dn]=s.current,Su(e.nodeType===8?e.parentNode:e),Fr(function(){Yi(t,s,n,r)}),s}function Ji(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=Gi(a);i.call(s)}}Yi(t,a,e,o)}else a=oF(n,t,e,o,r);return Gi(a)}Rh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pu(t.pendingLanes);n!==0&&(Yl(t,n|1),vt(t,Pe()),!(fe&6)&&(bo=Pe()+500,Kn()))}break;case 13:Fr(function(){var r=Bn(e,1);if(r!==null){var o=ut();Gt(r,e,1,o)}}),Af(e,1)}},Gl=function(e){if(e.tag===13){var t=Bn(e,134217728);if(t!==null){var n=ut();Gt(t,e,134217728,n)}Af(e,134217728)}},Nh=function(e){if(e.tag===13){var t=Zn(e),n=Bn(e,t);if(n!==null){var r=ut();Gt(n,e,t,r)}Af(e,t)}},jh=function(){return pe},Ih=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}},Vl=function(e,t,n){switch(t){case"input":if(Rl(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=mi(r);if(!o)throw Error(K(90));ih(r),Rl(r,o)}}}break;case"textarea":dh(e,n);break;case"select":t=n.value,t!=null&&to(e,!!n.multiple,t,!1)}},wh=gf,Eh=Fr;var uF={usingClientEntryPoint:!1,Events:[ku,fo,mi,Dh,Ch,gf]},Hu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},aF={bundleType:Hu.bundleType,version:Hu.version,rendererPackageName:Hu.rendererPackageName,rendererConfig:Hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fh(e),e===null?null:e.stateNode},findFiberByHostInstance:Hu.findFiberByHostInstance||rF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!es.isDisabled&&es.supportsFiber)try{Xa=es.inject(aF),nn=es}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uF,wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ff(t))throw Error(K(200));return nF(e,t,null,n)},wt.createRoot=function(e,t){if(!Ff(e))throw Error(K(299));var n=!1,r="",o=e0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Bf(e,1,!1,null,null,n,!1,r,o),e[Dn]=t.current,Su(e.nodeType===8?e.parentNode:e),new bf(t)},wt.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(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=Fh(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Fr(e)},wt.hydrate=function(e,t,n){if(!Zi(t))throw Error(K(200));return Ji(null,e,t,!0,n)},wt.hydrateRoot=function(e,t,n){if(!Ff(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=e0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Zg(t,null,e,1,n??null,o,!1,u,a),e[Dn]=t.current,Su(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 Xi(t)},wt.render=function(e,t,n){if(!Zi(t))throw Error(K(200));return Ji(null,e,t,!1,n)},wt.unmountComponentAtNode=function(e){if(!Zi(e))throw Error(K(40));return e._reactRootContainer?(Fr(function(){Ji(null,null,e,!1,function(){e._reactRootContainer=null,e[Dn]=null})}),!0):!1},wt.unstable_batchedUpdates=gf,wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zi(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Ji(e,t,n,!1,r)},wt.version="18.2.0-next-9e3b772b8-20220608";function n0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n0)}catch(e){console.error(e)}}n0(),Yv.exports=wt;var r0=Yv.exports;const xo=Uo(r0);function o0(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 z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(n),!0).forEach(function(r){So(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Je(e){return(Je=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 Ku(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u0(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 qu(e,t,n){return t&&u0(e.prototype,t),n&&u0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(){return(_r=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 ts(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&&a0(e,t)}function xf(e){return(xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function a0(e,t){return(a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function iF(){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 sF(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 Mt(e,t){if(e==null)return{};var n,r=sF(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 ns(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lF(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 ns(e)}function rs(e){var t=iF();return function(){var n,r=xf(e);return lF(this,t?(n=xf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function i0(e,t){return fF(e)||pF(e,t)||s0(e,t)||hF()}function os(e){return cF(e)||dF(e)||s0(e)||vF()}function cF(e){if(Array.isArray(e))return Sf(e)}function fF(e){if(Array.isArray(e))return e}function dF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pF(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 s0(e,t){var n;if(e)return typeof e=="string"?Sf(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)?Sf(e,t):void 0}function Sf(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 vF(){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 hF(){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 mF(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 l0(e){return e=mF(e,"string"),typeof e=="symbol"?e:String(e)}var c0={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 L.createElement(L.Fragment,null,e,(t===void 0?[]:t).map(function(o){var r=o.Portal,o=o.key;return L.createElement(r,{key:o})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function f0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:c0,t=2<arguments.length?arguments[2]:void 0,n=(e.vue||(e.vue={}),e.react||(e.react={}),[n,z(z({},e),{},{react:z(z(z({},n.react),e.react),{},{componentWrapAttrs:z(z({},n.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:z(z({},n.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:z(z(z({},n.vue),e.vue),{},{componentWrapAttrs:z(z({},n.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:z(z({},n.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return t&&n.unshift({}),Object.assign.apply(this,n)}var d0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],Qu={Document:{},Element:{}};function gF(e){Object.keys(Qu).forEach(function(t){d0.forEach(function(n){var r=window[t].prototype[n];Qu[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:(Qu.Element[n]||Element.prototype[mehtod]).apply(e,u)}})})}function yF(){Object.keys(Qu).forEach(function(e){d0.forEach(function(t){window[e].prototype[t]=Qu[e][t]})})}var DF=["ref"],CF=["key"],wF=["hashList"],p0=parseInt(L.version);function W3(e){return e}var EF=function(){ts(t,L.Component);var e=rs(t);function t(n){return Ku(this,t),e.call(this,n)}return qu(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,Mt(r,DF));return L.createElement(n,r,this.props.children)}}]),t}(),BF=function(e,t,n){var r=function(){ts(u,L.Component);var o=rs(u);function u(a){var i;return Ku(this,u),(i=o.call(this,a)).state=z(z({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(ns(i)),i.vueInReactCall=i.vueInReactCall.bind(ns(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return qu(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=Mt(i,CF),a[0].props=z(z({},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 as(i.createSlot(l instanceof Function?l:[l]),z(z(z({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null||(l=l.data)==null?void 0:l.key)||c})}):as(this.createSlot(a),z(z(z({},t),s),{},{isSlots:!0,wrapInstance:n})).render()}},{key:"render",value:function(){var a,i,s,l=this,f=this.state,c=f.hashList,d=Mt(f,wF),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].__top__=l.__veauryVueWrapperRef__,d[i]=t.defaultSlotsFormatter(d[i].__trueChildren,l.vueInReactCall,c),d[i]instanceof Array?d[i]=os(d[i]):-1<["string","number"].indexOf(Je(d[i]))?d[i]=[d[i]]:Je(d[i])==="object"&&(d[i]=z({},d[i]))):d[i]=z({},as(l.createSlot(d[i]),z(z({},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={};return f.ref=this.setRef,t.isSlots?this.state.children||this.props.children:(m=d,m=z(z(z({},m=t.defaultPropsFormatter?t.defaultPropsFormatter(d,this.vueInReactCall,c):m),p),y),Object.getPrototypeOf(e)!==Function.prototype&&(Je(e)!=="object"||e.render)||u.catchVueRefs()?(Object.getPrototypeOf(e)===Function.prototype&&delete f.ref,L.createElement(e,_r({},m,f))):L.createElement(EF,_r({passedProps:m,component:e},f),m.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 So(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Of(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=f0(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,z({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)}Object.keys(n).forEach(function(u){try{var a,i,s,l=n[u],c=l.apply(r,l.__reactArgs||[{}]);(l.__trueChildren=c).forEach(function(d){d.children&&r.__veauryCheckReactSlot__(d.children)}),c.length!==1||o(l,i=c[0],"reactSlot")||o(l,i,"reactFunction")||i.type!==v.Fragment||((a=i.children)==null?void 0:a.length)!==1||o(l,s=i.children[0],"reactSlot")||o(l,s,"reactFunction")}catch{}})},__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<Je(l).indexOf("string","number")?l=os(l):Je(l)==="object"&&(l=z({},l)),l):as(i(function(){return n.apply(c,p)}),z(z({},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=z({},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=z(z(z({},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]}),z(z(z(z({},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__=z(z({},this.__veauryCache__||{}),z(z(z(z({},i),this.$attrs.class?{className:this.$attrs.class}:{}),z({},s)),{},{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||C()}else{m.slot(),m.attrs();var c=BF(e,t,this),f=L.createElement(c,_r({},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 r0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<p0?(xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=xo.createRoot(w),this.__veauryReactApp__.render(f)):xo.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),gF(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<p0?this.__veauryReactApp__.unmount():xo.unmountComponentAtNode(this.$refs.react),yF()},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 AF=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 bF(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 v0(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function h0(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&&v0(e,n,u[3])):u[2]instanceof Array&&v0(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 _f(e){var t=this,n={},r=z({},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",h0(n,e[o],a),delete r[o];else if(o==="v-models"){if(Je(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){h0(n,i[s],s,"v-models")}),delete r[o]}}),z(z({},r),n)}var us=function(){function e(){Ku(this,e),So(this,"pool",new Set)}return qu(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 m0(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(Je(r)))return r;if(r instanceof Array){if(r.length!==1)return r;r=r[0]}return z(z({},r),{},{ref:t})}var FF=Of(m0);function kf(e){return v.h(FF,{node:function(){return e.node}})}kf.originReactComponent=L.forwardRef(m0);var xF=["component","node"],SF=["component","$slots","children","class","style"],OF=["className","classname"],tr="veaury-options",g0=new us;function _F(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 y0(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 kF(e){var t;return(t=e.node)==null?void 0:t.call(e)}var Pf=L.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=Mt(o,xF);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||kF,i=f0(o[tr]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),L.createElement(PF,_r({},z(z(z(z({component:a},r?{node:r}:{}),o),u),{},So({},tr,i)),{ref:t}))}),PF=function(){ts(t,L.Component);var e=rs(t);function t(n){var r;return Ku(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(ns(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return qu(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[tr];return o.isSlots?(Object.keys(this.props).forEach(function(u){AF.has(u)&&typeof n.props[u]=="function"&&(r[u]=n.props[u])}),o.vue.slotWrapAttrs&&(r=z(z({},r),o.vue.slotWrapAttrs))):o.vue.componentWrapAttrs&&(r=z(z({},r),o.vue.componentWrapAttrs)),o.vue.componentWrapHOC(L.createElement("div",_r({},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[tr],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=Mt(n,["component",tr,"v-slots","children"].map(l0)),this.__veauryCurrentVueComponent__!==u&&this.updateVueComponent(u),!!u.__fromReactSlot||(this.__veauryVueInstance__?(i&&(a=a||{},Je(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,y0(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,_f(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),g0.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[tr]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=Mt(s,["component",tr,"children","v-slots"].map(l0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Je(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=y0(i))&&(s.$slots=i),l=l.bind(this);var c,d=z({},_f(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(kf,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(kf,{node:y})},getScopedSlots:function(y,m){var f,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),z({},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,F,A,S,P=arguments.length,O=new Array(P),H=0;H<P;H++)O[H]=arguments[H];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__?(F=w.getScopedSlots.__scopeSlots[g],Promise.resolve().then(function(){var k;(k=F)!=null&&(k=k.component)!=null&&(k=k.ctx)!=null&&(k=k.__veauryReactInstance__)!=null&&k.setState({children:E.apply(w,O)})})):(F=S&&A?[S(A,w.reactInVueCall)]:y(Of(function(){return E.apply(w,O)},z(z({},u),{},{isSlots:!0,wrapInstance:o}))),w.getScopedSlots.__scopeSlots[g]=F),E.reactFunction?F.reactFunction=E.reactFunction:E.reactSlot&&(F.reactSlot=E.reactSlot),F)}),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=Mt(C,SF),w=this.getScopedSlots(v.h,z({},h)),h=C.className,g=C.classname,C=Mt(C,OF),E={};return Object.keys(w).forEach(function(B){var F=w[B];E[B]=typeof F=="function"?F:function(){return F}}),v.h(_F(o.__veauryCurrentVueComponent__,this),z(z(z(z({},C),m||h||g?{class:m||h||g}:{}),f?{style:f}:{}),{},{ref:"use_vue_wrapper"}),z({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:z({},E)))}};n&&(c=g0.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=bF(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 L.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),t}();function as(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),L.forwardRef(function(r,o){return L.createElement(Pf,_r({},r,{component:e,ref:o},So({},tr,t)))}));return n.originVueComponent=e,n}new us;function TF(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Of(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 D0(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function is(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,So({},D0(r[0]),r[1])),n},{}):Je(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[D0(n)]=e[n]}),t):{}:{}}function ss(e){return e?e instanceof Array?e:typeof e=="string"?(e=e.trim()).split(/\s+/):Je(e)==="object"?Object.keys(e).filter(function(t){return!!e[t]}):[]:[]}var RF=["ref"];function NF(e,t,n,r,o){var u=e.props||{},u=(u.ref,Mt(u,RF)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=c0.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(d(),n,o)):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=is(u.style),l=Array.from(new Set(ss(u.class))).join(" ");return 0<Object.keys(s).length&&(i.style=s),l!==""&&(i.className=l),Object.assign(u,z(z({},i),a)),delete u.class,u}function C0(e){return e.type===v.Text}new us;function w0(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?L.createElement(jF,{vnode:e},t):t}var jF=function(){ts(t,L.Component);var e=rs(t);function t(n){var r;return Ku(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return qu(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=i0(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]=z(z(z({},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:z({},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=i0(n.findDirectiveName(s),2))[0],p=p[1],l&&(c=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=z(z({},l),s),p=[u,l,r,a],c!=null&&c.apply(null,p),d!=null&&d.apply(null,p)))}),this.setState({prevVnode:z({},r),savedDirectives:o}))}},{key:"render",value:function(){var n=this.props;return n.vnode,n.children}}]),t}();function IF(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)&&(!(!t||!/^function\s+[A-Z]/.test(n))||!!/\b\(this\b|\bthis[\.\[]\b/.test(n)&&(!(t&&!/classCallCheck\(this/.test(n))||/^function\sdefault_\d+\s*\(/.test(n)))))}function E0(e){var t,n;return typeof((n=e.type)==null?void 0:n.originReactComponent)!="function"||IF((n=e.type)==null?void 0:n.originReactComponent)?((n=(n=e.ref)==null?void 0:n.r)&&typeof n=="string"&&(t=n,n=function(r){var o;r&&(e.ref.i.refs&&((o=z({},e.ref.i.refs))[t]=r,e.ref.i.refs=o),((o=e.ref.i.setupState)==null?void 0:o[t])!==void 0&&(e.ref.i.setupState[t]=r))},n=new Proxy(n,{get:function(r,o){return r[o]},set:function(r,o,u){var a;return(a=e.ref.i.refs)!=null&&a[t]&&((a=z({},e.ref.i.refs))[o]=u,e.ref.i.refs=a),u}})),n):null}function Tf(e,t){return!t||t instanceof Array&&t.length===0||(typeof t=="string"&&(t=[t]),(e=z({},e)).props=z({},e.props),t.forEach(function(n){e.props[n]=""})),e}var MF=["style","class"];function B0(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(e.children,n,u):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(t=E0(e),l=(s=e.props||{}).style,i=s.class,s=z(z({},Mt(s,MF)),{},{style:is(l),className:Array.from(new Set(ss(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Je(l))?[l]:os(l)).__top__=a),w0(e,Tf(re.createElement(e.type,s,o(l,n,u)),e.scopeId))):n([e],null,r)}function $F(){return 0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}}function A0(e,t,n){return!((e=e instanceof Array&&e.length===1?e[0]:e)instanceof Array)&&e.key==null&&1<t.length&&((e=z({},e)).key="_key_".concat(n)),e}function b0(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?(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):C0(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(Tf(m=A0(B0(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;Tf(p=A0(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=NF(c,"_key_".concat(d),i,u,s),y=E0(c),c.children&&(c.children.__top__=a.__top__),w0(c,re.createElement(m,z(z(z({},$F(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):C0(c)?c.text:B0(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var Rf=b0({reactComponents:"all",domTags:"all"});function LF(e,t){return TF(e,{combinedOption:z({pureTransformer:!0,defaultSlotsFormatter:Rf,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 Rf(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=Rf(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}b0({reactComponents:"all",domTags:"all"});var zF=["ref","children","v-slots"];function VF(s,t,n,r,o){var s=s.props||{},l=(s.ref,s.children),a=s["v-slots"],u=a===void 0?{}:a,a=Mt(s,zF),i=(l&&(Je(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=is(a.style),c=Array.from(new Set(ss(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),c!==""&&(s.class=c),Object.assign(a,z({},s)),delete a.className,{props:a=_f(a),slots:i}}function F0(e){var t=e.ref;if(t)return Je(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var WF=["style","class","children"];function x0(e,t,n,r,o,u){var a,i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===L.Fragment?o((a=e.props)==null?void 0:a.children,n):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(a=F0(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=Mt(t,WF),s=Array.from(new Set(ss(s))).join(" "),l=is(l),t=z(z(z(z({},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(Je(l))?[l]:l instanceof Array?os(l):z({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function S0(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!==Pf)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=x0(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===Pf){if(!l.props.component)return void s.push(l.props.node);d=l.props.component,l=z({},l);var p=z({},l.props);delete p.component,l.props=p}d=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(d)?((l=z({},l)).__top__=a.__top__,c=(p=VF(l,"_key_".concat(c),i,u)).props,p=p.slots,F0(l),l.children&&(l.children.__top__=a.__top__),v.h(d,z({},c),p)):x0(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}S0({vueComponents:"all",domTags:"all"}),S0({reactComponents:"all",domTags:"all"}),new us;var O0={exports:{}},ls={};/**
46
44
  * @license React
47
45
  * react-jsx-runtime.production.min.js
48
46
  *
@@ -50,19 +48,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
50
48
  *
51
49
  * This source code is licensed under the MIT license found in the
52
50
  * LICENSE file in the root directory of this source tree.
53
- */var IF=M,MF=Symbol.for("react.element"),$F=Symbol.for("react.fragment"),LF=Object.prototype.hasOwnProperty,zF=IF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VF={key:!0,ref:!0,__self:!0,__source:!0};function S0(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)LF.call(t,r)&&!VF.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:MF,type:e,key:u,ref:a,props:o,_owner:zF.current}}ss.Fragment=$F,ss.jsx=S0,ss.jsxs=S0,O0.exports=ss;var Te=O0.exports,WF=KF,_0="֑-߿יִ-﷽ﹰ-ﻼ",k0="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",UF=new RegExp("^[^"+k0+"]*["+_0+"]"),HF=new RegExp("^[^"+_0+"]*["+k0+"]");function KF(e){return e=String(e||""),UF.test(e)?"rtl":HF.test(e)?"ltr":"neutral"}const P0=Wo(WF);function qF(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rf=qF,QF=typeof va=="object"&&va&&va.Object===Object&&va,YF=QF,GF=YF,XF=typeof self=="object"&&self&&self.Object===Object&&self,ZF=GF||XF||Function("return this")(),T0=ZF,JF=T0,ex=function(){return JF.Date.now()},tx=ex,nx=/\s/;function rx(e){for(var t=e.length;t--&&nx.test(e.charAt(t)););return t}var ox=rx,ux=ox,ax=/^\s+/;function ix(e){return e&&e.slice(0,ux(e)+1).replace(ax,"")}var sx=ix,lx=T0,cx=lx.Symbol,R0=cx,N0=R0,j0=Object.prototype,fx=j0.hasOwnProperty,dx=j0.toString,Ku=N0?N0.toStringTag:void 0;function px(e){var t=fx.call(e,Ku),n=e[Ku];try{e[Ku]=void 0;var r=!0}catch{}var o=dx.call(e);return r&&(t?e[Ku]=n:delete e[Ku]),o}var vx=px,hx=Object.prototype,mx=hx.toString;function gx(e){return mx.call(e)}var yx=gx,I0=R0,Dx=vx,Cx=yx,wx="[object Null]",Ex="[object Undefined]",M0=I0?I0.toStringTag:void 0;function Bx(e){return e==null?e===void 0?Ex:wx:M0&&M0 in Object(e)?Dx(e):Cx(e)}var Ax=Bx;function bx(e){return e!=null&&typeof e=="object"}var Fx=bx,xx=Ax,Ox=Fx,Sx="[object Symbol]";function _x(e){return typeof e=="symbol"||Ox(e)&&xx(e)==Sx}var kx=_x,Px=sx,$0=Rf,Tx=kx,L0=0/0,Rx=/^[-+]0x[0-9a-f]+$/i,Nx=/^0b[01]+$/i,jx=/^0o[0-7]+$/i,Ix=parseInt;function Mx(e){if(typeof e=="number")return e;if(Tx(e))return L0;if($0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Px(e);var n=Nx.test(e);return n||jx.test(e)?Ix(e.slice(2),n?2:8):Rx.test(e)?L0:+e}var $x=Mx,Lx=Rf,Nf=tx,z0=$x,zx="Expected a function",Vx=Math.max,Wx=Math.min;function Ux(e,t,n){var r,o,u,a,i,s,l=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(zx);t=z0(t)||0,Lx(n)&&(f=!!n.leading,d="maxWait"in n,u=d?Vx(z0(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(x){var B=r,O=o;return r=o=void 0,l=x,a=e.apply(O,B),a}function m(x){return l=x,i=setTimeout(h,t),f?y(x):a}function c(x){var B=x-s,O=x-l,k=t-B;return d?Wx(k,u-O):k}function w(x){var B=x-s,O=x-l;return s===void 0||B>=t||B<0||d&&O>=u}function h(){var x=Nf();if(w(x))return g(x);i=setTimeout(h,c(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(Nf())}function A(){var x=Nf(),B=w(x);if(r=arguments,o=this,s=x,B){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 A.cancel=C,A.flush=E,A}var V0=Ux;const Hx=Wo(V0);var Kx=V0,qx=Rf,Qx="Expected a function";function Yx(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Qx);return qx(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Kx(e,t,{leading:r,maxWait:t,trailing:o})}var Gx=Yx;const Xx=Wo(Gx),W0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,U0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",jf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return U0(n.overflowY,t)||U0(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},ls=(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,Zx=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},H0=(e,t)=>{var n,r,o,u;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:s,boundary:l,skipOverflowHiddenElements:f}=t,d=typeof l=="function"?l:G=>G!==l;if(!W0(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;W0(m)&&d(m);){if(m=Zx(m),m===p){y.push(m);break}m!=null&&m===document.body&&jf(m)&&!jf(document.documentElement)||m!=null&&jf(m,f)&&y.push(m)}const c=(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:A,right:x,bottom:B,left:O}=e.getBoundingClientRect(),{top:k,right:_,bottom:K,left:P}=(G=>{const R=window.getComputedStyle(G);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let z=i==="start"||i==="nearest"?A-k:i==="end"?B+K:A+C/2-k+K,L=s==="center"?O+E/2-P+_:s==="end"?x+_:O-P;const W=[];for(let G=0;G<y.length;G++){const R=y[G],{height:I,width:V,top:Y,right:ne,bottom:te,left:Be}=R.getBoundingClientRect();if(a==="if-needed"&&A>=0&&O>=0&&B<=w&&x<=c&&A>=Y&&B<=te&&O>=Be&&x<=ne)return W;const F=getComputedStyle(R),U=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),q=parseInt(F.borderRightWidth,10),re=parseInt(F.borderBottomWidth,10);let ee=0,ae=0;const ce="offsetWidth"in R?R.offsetWidth-R.clientWidth-U-q:0,de="offsetHeight"in R?R.offsetHeight-R.clientHeight-j-re:0,ve="offsetWidth"in R?R.offsetWidth===0?0:V/R.offsetWidth:0,le="offsetHeight"in R?R.offsetHeight===0?0:I/R.offsetHeight:0;if(p===R)ee=i==="start"?z:i==="end"?z-w:i==="nearest"?ls(g,g+w,w,j,re,g+z,g+z+C,C):z-w/2,ae=s==="start"?L:s==="center"?L-c/2:s==="end"?L-c:ls(h,h+c,c,U,q,h+L,h+L+E,E),ee=Math.max(0,ee+g),ae=Math.max(0,ae+h);else{ee=i==="start"?z-Y-j:i==="end"?z-te+re+de:i==="nearest"?ls(Y,te,I,j,re+de,z,z+C,C):z-(Y+I/2)+de/2,ae=s==="start"?L-Be-U:s==="center"?L-(Be+V/2)+ce/2:s==="end"?L-ne+q+ce:ls(Be,ne,V,U,q+ce,L,L+E,E);const{scrollLeft:Ie,scrollTop:Re}=R;ee=le===0?0:Math.max(0,Math.min(Re+ee/le,R.scrollHeight-I/le+de)),ae=ve===0?0:Math.max(0,Math.min(Ie+ae/ve,R.scrollWidth-V/ve+ce)),z+=Re-ee,L+=Ie-ae}W.push({el:R,top:ee,left:ae})}return W},Jx=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function eO(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(H0(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of H0(e,Jx(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var kr=[],tO=function(){return kr.some(function(e){return e.activeTargets.length>0})},nO=function(){return kr.some(function(e){return e.skippedTargets.length>0})},K0="ResizeObserver loop completed with undelivered notifications.",rO=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:K0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=K0),window.dispatchEvent(e)},qu;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qu||(qu={}));var Pr=function(e){return Object.freeze(e)},oO=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pr(this)}return e}(),q0=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,Pr(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}(),If=function(e){return e instanceof SVGElement&&"getBBox"in e},Q0=function(e){if(If(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)},Y0=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)},uO=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},Qu=typeof window<"u"?window:{},cs=new WeakMap,G0=/auto|scroll/,aO=/^tb|vertical/,iO=/msie|trident/i.test(Qu.navigator&&Qu.navigator.userAgent),sn=function(e){return parseFloat(e||"0")},So=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new oO((n?t:e)||0,(n?e:t)||0)},X0=Pr({devicePixelContentBoxSize:So(),borderBoxSize:So(),contentBoxSize:So(),contentRect:new q0(0,0,0,0)}),Z0=function(e,t){if(t===void 0&&(t=!1),cs.has(e)&&!t)return cs.get(e);if(Q0(e))return cs.set(e,X0),X0;var n=getComputedStyle(e),r=If(e)&&e.ownerSVGElement&&e.getBBox(),o=!iO&&n.boxSizing==="border-box",u=aO.test(n.writingMode||""),a=!r&&G0.test(n.overflowY||""),i=!r&&G0.test(n.overflowX||""),s=r?0:sn(n.paddingTop),l=r?0:sn(n.paddingRight),f=r?0:sn(n.paddingBottom),d=r?0:sn(n.paddingLeft),p=r?0:sn(n.borderTopWidth),y=r?0:sn(n.borderRightWidth),m=r?0:sn(n.borderBottomWidth),c=r?0:sn(n.borderLeftWidth),w=d+l,h=s+f,g=c+y,C=p+m,E=i?e.offsetHeight-C-e.clientHeight:0,A=a?e.offsetWidth-g-e.clientWidth:0,x=o?w+g:0,B=o?h+C:0,O=r?r.width:sn(n.width)-x-A,k=r?r.height:sn(n.height)-B-E,_=O+w+A+g,K=k+h+E+C,P=Pr({devicePixelContentBoxSize:So(Math.round(O*devicePixelRatio),Math.round(k*devicePixelRatio),u),borderBoxSize:So(_,K,u),contentBoxSize:So(O,k,u),contentRect:new q0(d,s,O,k)});return cs.set(e,P),P},J0=function(e,t,n){var r=Z0(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case qu.DEVICE_PIXEL_CONTENT_BOX:return a;case qu.BORDER_BOX:return o;default:return u}},sO=function(){function e(t){var n=Z0(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pr([n.borderBoxSize]),this.contentBoxSize=Pr([n.contentBoxSize]),this.devicePixelContentBoxSize=Pr([n.devicePixelContentBoxSize])}return e}(),ey=function(e){if(Q0(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},lO=function(){var e=1/0,t=[];kr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var f=new sO(l.target),d=ey(l.target);i.push(f),l.lastReportedSize=J0(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},ty=function(e){kr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(ey(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},cO=function(){var e=0;for(ty(e);tO();)e=lO(),ty(e);return nO()&&rO(),e>0},Mf,ny=[],fO=function(){return ny.splice(0).forEach(function(e){return e()})},dO=function(e){if(!Mf){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return fO()}).observe(n,r),Mf=function(){n.textContent="".concat(t?t--:t++)}}ny.push(e),Mf()},pO=function(e){dO(function(){requestAnimationFrame(e)})},fs=0,vO=function(){return!!fs},hO=250,mO={attributes:!0,characterData:!0,childList:!0,subtree:!0},ry=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],oy=function(e){return e===void 0&&(e=0),Date.now()+e},$f=!1,gO=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=hO),!$f){$f=!0;var r=oy(t);pO(function(){var o=!1;try{o=cO()}finally{if($f=!1,t=r-oy(),!vO())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,mO)};document.body?n():Qu.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ry.forEach(function(n){return Qu.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ry.forEach(function(n){return Qu.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Lf=new gO,uy=function(e){!fs&&e>0&&Lf.start(),fs+=e,!fs&&Lf.stop()},yO=function(e){return!If(e)&&!uO(e)&&getComputedStyle(e).display==="inline"},DO=function(){function e(t,n){this.target=t,this.observedBox=n||qu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=J0(this.target,this.observedBox,!0);return yO(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),CO=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ds=new WeakMap,ay=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ps=function(){function e(){}return e.connect=function(t,n){var r=new CO(t,n);ds.set(t,r)},e.observe=function(t,n,r){var o=ds.get(t),u=o.observationTargets.length===0;ay(o.observationTargets,n)<0&&(u&&kr.push(o),o.observationTargets.push(new DO(n,r&&r.box)),uy(1),Lf.schedule())},e.unobserve=function(t,n){var r=ds.get(t),o=ay(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&kr.splice(kr.indexOf(r),1),r.observationTargets.splice(o,1),uy(-1))},e.disconnect=function(t){var n=this,r=ds.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),wO=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.");ps.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(!Y0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ps.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(!Y0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ps.unobserve(this,t)},e.prototype.disconnect=function(){ps.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),xn={};Object.defineProperty(xn,"__esModule",{value:!0});for(var EO=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),zf={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},iy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:EO?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Vf={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},vs=1;vs<20;vs++)Vf["f"+vs]=111+vs;function hs(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return sy(a,t)}),o=function(i){return r.some(function(s){return ly(s,i)})},u=n==null?o:o(n);return u}function BO(e,t){return hs(e,t)}function AO(e,t){return hs(e,{byKey:!0},t)}function sy(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in zf)r[zf[a]]=!1;var i=!0,s=!1,l=void 0;try{for(var f=o[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var p=d.value,y=p.endsWith("?")&&p.length>1;y&&(p=p.slice(0,-1));var m=Wf(p),c=zf[m];if(p.length>1&&!c&&!iy[p]&&!Vf[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!c)&&(n?r.key=m:r.which=cy(p)),c&&(r[c]=y?null:!0)}}catch(w){s=!0,l=w}finally{try{!i&&f.return&&f.return()}finally{if(s)throw l}}return r}function ly(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 cy(e){e=Wf(e);var t=Vf[e]||e.toUpperCase().charCodeAt(0);return t}function Wf(e){return e=e.toLowerCase(),e=iy[e]||e,e}xn.default=hs;var Uf=xn.isHotkey=hs;xn.isCodeHotkey=BO,xn.isKeyHotkey=AO,xn.parseHotkey=sy,xn.compareHotkey=ly,xn.toKeyCode=cy,xn.toKeyName=Wf;function bO(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 _o(e,t){if(e==null)return{};var n=bO(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 Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function FO(e,t){if(Yu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xO(e){var t=FO(e,"string");return Yu(t)==="symbol"?t:String(t)}function $t(e,t,n){return t=xO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hf=M.createContext(null),nr=()=>{var e=M.useContext(Hf);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},fy=parseInt(oe.version.split(".")[0],10),OO=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,dy=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),at=typeof navigator<"u"&&/Android/.test(navigator.userAgent),ko=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Gu=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),SO=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),py=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),_O=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),kO=at&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),PO=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),TO=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),RO=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),ms=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rr=(!_O||!kO)&&!SO&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Kf=new WeakMap,qf=new WeakMap,vy=new WeakMap,gs=new WeakMap,Qf=new WeakMap,Xu=new WeakMap,Tr=new WeakMap,ys=new WeakMap,Ds=new WeakMap,Yf=new WeakMap,or=new WeakMap,Rr=new WeakMap,Zu=new WeakMap,Gf=new WeakMap,Xf=new WeakMap,Xt=new WeakMap,On=new WeakMap,ht=new WeakMap,ur=new WeakMap,ar=new WeakMap,hy=new WeakMap,Po=Symbol("placeholder"),my=Symbol("mark-placeholder"),NO=globalThis.Text,Zf=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,jO=e=>ir(e)&&e.nodeType===8,Lt=e=>ir(e)&&e.nodeType===1,ir=e=>{var t=Zf(e);return!!t&&e instanceof t.Node},Jf=e=>{var t=e&&e.anchorNode&&Zf(e.anchorNode);return!!t&&e instanceof t.Selection},gy=e=>ir(e)&&e.nodeType===3,IO=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,MO=e=>{var[t,n]=e;if(Lt(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=yy(t,o,r?"backward":"forward"),r=o<n;Lt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=LO(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},$O=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},yy=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(jO(o)||Lt(o)&&o.childNodes.length===0||Lt(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]},LO=(e,t,n)=>{var[r]=yy(e,t,n);return r},Dy=e=>{var t="";if(gy(e)&&e.nodeValue)return e.nodeValue;if(Lt(e)){for(var n of Array.from(e.childNodes))t+=Dy(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
54
- `)}return t},zO=/data-slate-fragment="(.+?)"/m,VO=e=>{var t=e.getData("text/html"),[,n]=t.match(zO)||[];return n},ed=(e,t,n)=>{var{target:r}=t;if(Lt(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=T.getWindow(e);if(o.contains(r))return T.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 f of s)if(f===r||f.contains(r))return!0});return!u||u===t?!1:ed(e,u,n)},WO=0;class UO{constructor(){$t(this,"id",void 0),this.id="".concat(WO++)}}var T={androidPendingDiffs:e=>ht.get(e),androidScheduleFlush:e=>{var t;(t=Xf.get(e))===null||t===void 0||t()},blur:e=>{var t=T.toDOMNode(e,e),n=T.findDocumentOrShadowRoot(e);or.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=T.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&N.deselect(e)},findDocumentOrShadowRoot:e=>{var t=T.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=T.toSlateNode(e,t.target),a=T.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"}),f=s?D.before(e,l):D.after(e,l);if(f){var d=D.range(e,f);return d}}var p,{document:y}=T.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 c=T.toSlateRange(e,p,{exactMatch:!1,suppressThrow:!1});return c},findKey:(e,t)=>{var n=ys.get(t);return n||(n=new UO,ys.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=qf.get(r);if(o==null){if(D.isEditor(r))return n;break}var u=Kf.get(r);if(u==null)break;n.unshift(u),r=o}throw new Error("Unable to find the path for Slate node: ".concat(ze.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!or.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(()=>{T.focus(t,{retries:n.retries-1})},10);return}var r=T.toDOMNode(t,t),o=T.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var u=o.getSelection(),a=T.toDOMRange(t,t.selection);u==null||u.removeAllRanges(),u==null||u.addRange(a)}t.selection||(N.select(t,D.start(t,[])),t.onChange()),r.focus({preventScroll:!0}),or.set(t,!0)}}},getWindow:e=>{var t=vy.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=T.toDOMNode(t,t),a;try{a=Lt(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)=>ir(t)&&T.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)=>T.hasEditableTarget(e,t)||T.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>ir(t)&&T.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Rr.get(e),isFocused:e=>!!or.get(e),isReadOnly:e=>!!Yf.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Yf.get(e))return!1;var n=T.hasTarget(e,t)&&T.toSlateNode(e,t);return X.isElement(n)&&D.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Ds.get(e),r=D.isEditor(t)?gs.get(e):n==null?void 0:n.get(T.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ze.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=D.node(e,t.path),r=T.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],f=l.childNodes[0];if(!(f==null||f.textContent==null)){var{length:d}=f.textContent,p=l.getAttribute("data-slate-length"),y=p==null?d:parseInt(p,10),m=i+y,c=a[s+1];if(t.offset===m&&c!==null&&c!==void 0&&c.hasAttribute("data-slate-mark-placeholder")){var w,h=c.childNodes[0];o=[h instanceof NO?h:c,(w=c.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=[f,g];break}i=m}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(ze.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=S.isBackward(t),u=T.toDOMPoint(e,n),a=S.isCollapsed(t)?u:T.toDOMPoint(e,r),i=T.getWindow(e),s=i.document.createRange(),[l,f]=o?a:u,[d,p]=o?u:a,y=Lt(l)?l:l.parentElement,m=!!y.getAttribute("data-slate-zero-width"),c=Lt(d)?d:d.parentElement,w=!!c.getAttribute("data-slate-zero-width");return s.setStart(l,m?1:f),s.setEnd(d,w?1:p),s},toSlateNode:(e,t)=>{var n=Lt(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Xu.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:MO(t),i=u.parentNode,s=null,l=0;if(i){var f,d,p=T.toDOMNode(e,e),y=i.closest('[data-slate-void="true"]'),m=y&&p.contains(y)?y:null,c=i.closest("[data-slate-leaf]"),w=null;if(c){if(s=c.closest('[data-slate-node="text"]'),s){var h=T.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(L=>{if(at&&!r&&L.hasAttribute("data-slate-zero-width")&&L.textContent.length>0&&L.textContext!=="\uFEFF"){L.textContent.startsWith("\uFEFF")&&(L.textContent=L.textContent.slice(1));return}L.parentNode.removeChild(L)}),l=C.textContent.length,w=s}}else if(m){for(var A=m.querySelectorAll("[data-slate-leaf]"),x=0;x<A.length;x++){var B=A[x];if(T.hasDOMNode(e,B)){c=B;break}}c?(s=c.closest('[data-slate-node="text"]'),w=c,l=w.textContent.length,w.querySelectorAll("[data-slate-zero-width]").forEach(L=>{l-=L.textContent.length})):l=1}w&&l===w.textContent.length&&at&&w.getAttribute("data-slate-zero-width")==="z"&&(f=w.textContent)!==null&&f!==void 0&&f.startsWith("\uFEFF")&&(i.hasAttribute("data-slate-zero-width")||ko&&(d=w.textContent)!==null&&d!==void 0&&d.endsWith(`
51
+ */var UF=L,HF=Symbol.for("react.element"),KF=Symbol.for("react.fragment"),qF=Object.prototype.hasOwnProperty,QF=UF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YF={key:!0,ref:!0,__self:!0,__source:!0};function _0(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)qF.call(t,r)&&!YF.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:HF,type:e,key:u,ref:a,props:o,_owner:QF.current}}ls.Fragment=KF,ls.jsx=_0,ls.jsxs=_0,O0.exports=ls;var Te=O0.exports,GF=JF,k0="֑-߿יִ-﷽ﹰ-ﻼ",P0="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",XF=new RegExp("^[^"+P0+"]*["+k0+"]"),ZF=new RegExp("^[^"+k0+"]*["+P0+"]");function JF(e){return e=String(e||""),XF.test(e)?"rtl":ZF.test(e)?"ltr":"neutral"}const T0=Uo(GF);function ex(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nf=ex,tx=typeof ba=="object"&&ba&&ba.Object===Object&&ba,nx=tx,rx=nx,ox=typeof self=="object"&&self&&self.Object===Object&&self,ux=rx||ox||Function("return this")(),R0=ux,ax=R0,ix=function(){return ax.Date.now()},sx=ix,lx=/\s/;function cx(e){for(var t=e.length;t--&&lx.test(e.charAt(t)););return t}var fx=cx,dx=fx,px=/^\s+/;function vx(e){return e&&e.slice(0,dx(e)+1).replace(px,"")}var hx=vx,mx=R0,gx=mx.Symbol,N0=gx,j0=N0,I0=Object.prototype,yx=I0.hasOwnProperty,Dx=I0.toString,Yu=j0?j0.toStringTag:void 0;function Cx(e){var t=yx.call(e,Yu),n=e[Yu];try{e[Yu]=void 0;var r=!0}catch{}var o=Dx.call(e);return r&&(t?e[Yu]=n:delete e[Yu]),o}var wx=Cx,Ex=Object.prototype,Bx=Ex.toString;function Ax(e){return Bx.call(e)}var bx=Ax,M0=N0,Fx=wx,xx=bx,Sx="[object Null]",Ox="[object Undefined]",$0=M0?M0.toStringTag:void 0;function _x(e){return e==null?e===void 0?Ox:Sx:$0&&$0 in Object(e)?Fx(e):xx(e)}var kx=_x;function Px(e){return e!=null&&typeof e=="object"}var Tx=Px,Rx=kx,Nx=Tx,jx="[object Symbol]";function Ix(e){return typeof e=="symbol"||Nx(e)&&Rx(e)==jx}var Mx=Ix,$x=hx,L0=Nf,Lx=Mx,z0=NaN,zx=/^[-+]0x[0-9a-f]+$/i,Vx=/^0b[01]+$/i,Wx=/^0o[0-7]+$/i,Ux=parseInt;function Hx(e){if(typeof e=="number")return e;if(Lx(e))return z0;if(L0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=L0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$x(e);var n=Vx.test(e);return n||Wx.test(e)?Ux(e.slice(2),n?2:8):zx.test(e)?z0:+e}var Kx=Hx,qx=Nf,jf=sx,V0=Kx,Qx="Expected a function",Yx=Math.max,Gx=Math.min;function Xx(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(Qx);t=V0(t)||0,qx(n)&&(c=!!n.leading,d="maxWait"in n,u=d?Yx(V0(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(F){var A=r,S=o;return r=o=void 0,l=F,a=e.apply(S,A),a}function m(F){return l=F,i=setTimeout(h,t),c?y(F):a}function f(F){var A=F-s,S=F-l,P=t-A;return d?Gx(P,u-S):P}function w(F){var A=F-s,S=F-l;return s===void 0||A>=t||A<0||d&&S>=u}function h(){var F=jf();if(w(F))return g(F);i=setTimeout(h,f(F))}function g(F){return i=void 0,p&&r?y(F):(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(jf())}function B(){var F=jf(),A=w(F);if(r=arguments,o=this,s=F,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 W0=Xx;const Zx=Uo(W0);var Jx=W0,eS=Nf,tS="Expected a function";function nS(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(tS);return eS(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Jx(e,t,{leading:r,maxWait:t,trailing:o})}var rS=nS;const oS=Uo(rS),U0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,H0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",If=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return H0(n.overflowY,t)||H0(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},cs=(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,uS=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},K0=(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(!U0(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;U0(m)&&d(m);){if(m=uS(m),m===p){y.push(m);break}m!=null&&m===document.body&&If(m)&&!If(document.documentElement)||m!=null&&If(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:F,bottom:A,left:S}=e.getBoundingClientRect(),{top:P,right:O,bottom:H,left:k}=(G=>{const R=window.getComputedStyle(G);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let W=i==="start"||i==="nearest"?B-P:i==="end"?A+H:B+C/2-P+H,$=s==="center"?S+E/2-k+O:s==="end"?F+O:S-k;const V=[];for(let G=0;G<y.length;G++){const R=y[G],{height:M,width:U,top:Y,right:ne,bottom:te,left:ve}=R.getBoundingClientRect();if(a==="if-needed"&&B>=0&&S>=0&&A<=w&&F<=f&&B>=Y&&A<=te&&S>=ve&&F<=ne)return V;const x=getComputedStyle(R),j=parseInt(x.borderLeftWidth,10),N=parseInt(x.borderTopWidth,10),Q=parseInt(x.borderRightWidth,10),oe=parseInt(x.borderBottomWidth,10);let ee=0,ie=0;const ce="offsetWidth"in R?R.offsetWidth-R.clientWidth-j-Q:0,de="offsetHeight"in R?R.offsetHeight-R.clientHeight-N-oe:0,he="offsetWidth"in R?R.offsetWidth===0?0:U/R.offsetWidth:0,le="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(p===R)ee=i==="start"?W:i==="end"?W-w:i==="nearest"?cs(g,g+w,w,N,oe,g+W,g+W+C,C):W-w/2,ie=s==="start"?$:s==="center"?$-f/2:s==="end"?$-f:cs(h,h+f,f,j,Q,h+$,h+$+E,E),ee=Math.max(0,ee+g),ie=Math.max(0,ie+h);else{ee=i==="start"?W-Y-N:i==="end"?W-te+oe+de:i==="nearest"?cs(Y,te,M,N,oe+de,W,W+C,C):W-(Y+M/2)+de/2,ie=s==="start"?$-ve-j:s==="center"?$-(ve+U/2)+ce/2:s==="end"?$-ne+Q+ce:cs(ve,ne,U,j,Q+ce,$,$+E,E);const{scrollLeft:Ie,scrollTop:Re}=R;ee=le===0?0:Math.max(0,Math.min(Re+ee/le,R.scrollHeight-M/le+de)),ie=he===0?0:Math.max(0,Math.min(Ie+ie/he,R.scrollWidth-U/he+ce)),W+=Re-ee,$+=Ie-ie}V.push({el:R,top:ee,left:ie})}return V},aS=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function iS(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(K0(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of K0(e,aS(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var kr=[],sS=function(){return kr.some(function(e){return e.activeTargets.length>0})},lS=function(){return kr.some(function(e){return e.skippedTargets.length>0})},q0="ResizeObserver loop completed with undelivered notifications.",cS=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:q0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=q0),window.dispatchEvent(e)},Gu;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gu||(Gu={}));var Pr=function(e){return Object.freeze(e)},fS=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pr(this)}return e}(),Q0=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,Pr(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}(),Mf=function(e){return e instanceof SVGElement&&"getBBox"in e},Y0=function(e){if(Mf(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)},G0=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)},dS=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},Xu=typeof window<"u"?window:{},fs=new WeakMap,X0=/auto|scroll/,pS=/^tb|vertical/,vS=/msie|trident/i.test(Xu.navigator&&Xu.navigator.userAgent),sn=function(e){return parseFloat(e||"0")},Oo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new fS((n?t:e)||0,(n?e:t)||0)},Z0=Pr({devicePixelContentBoxSize:Oo(),borderBoxSize:Oo(),contentBoxSize:Oo(),contentRect:new Q0(0,0,0,0)}),J0=function(e,t){if(t===void 0&&(t=!1),fs.has(e)&&!t)return fs.get(e);if(Y0(e))return fs.set(e,Z0),Z0;var n=getComputedStyle(e),r=Mf(e)&&e.ownerSVGElement&&e.getBBox(),o=!vS&&n.boxSizing==="border-box",u=pS.test(n.writingMode||""),a=!r&&X0.test(n.overflowY||""),i=!r&&X0.test(n.overflowX||""),s=r?0:sn(n.paddingTop),l=r?0:sn(n.paddingRight),c=r?0:sn(n.paddingBottom),d=r?0:sn(n.paddingLeft),p=r?0:sn(n.borderTopWidth),y=r?0:sn(n.borderRightWidth),m=r?0:sn(n.borderBottomWidth),f=r?0:sn(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,F=o?w+g:0,A=o?h+C:0,S=r?r.width:sn(n.width)-F-B,P=r?r.height:sn(n.height)-A-E,O=S+w+B+g,H=P+h+E+C,k=Pr({devicePixelContentBoxSize:Oo(Math.round(S*devicePixelRatio),Math.round(P*devicePixelRatio),u),borderBoxSize:Oo(O,H,u),contentBoxSize:Oo(S,P,u),contentRect:new Q0(d,s,S,P)});return fs.set(e,k),k},ey=function(e,t,n){var r=J0(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Gu.DEVICE_PIXEL_CONTENT_BOX:return a;case Gu.BORDER_BOX:return o;default:return u}},hS=function(){function e(t){var n=J0(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pr([n.borderBoxSize]),this.contentBoxSize=Pr([n.contentBoxSize]),this.devicePixelContentBoxSize=Pr([n.devicePixelContentBoxSize])}return e}(),ty=function(e){if(Y0(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},mS=function(){var e=1/0,t=[];kr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new hS(l.target),d=ty(l.target);i.push(c),l.lastReportedSize=ey(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},ny=function(e){kr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(ty(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},gS=function(){var e=0;for(ny(e);sS();)e=mS(),ny(e);return lS()&&cS(),e>0},$f,ry=[],yS=function(){return ry.splice(0).forEach(function(e){return e()})},DS=function(e){if(!$f){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return yS()}).observe(n,r),$f=function(){n.textContent="".concat(t?t--:t++)}}ry.push(e),$f()},CS=function(e){DS(function(){requestAnimationFrame(e)})},ds=0,wS=function(){return!!ds},ES=250,BS={attributes:!0,characterData:!0,childList:!0,subtree:!0},oy=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],uy=function(e){return e===void 0&&(e=0),Date.now()+e},Lf=!1,AS=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=ES),!Lf){Lf=!0;var r=uy(t);CS(function(){var o=!1;try{o=gS()}finally{if(Lf=!1,t=r-uy(),!wS())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,BS)};document.body?n():Xu.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),oy.forEach(function(n){return Xu.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),oy.forEach(function(n){return Xu.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),zf=new AS,ay=function(e){!ds&&e>0&&zf.start(),ds+=e,!ds&&zf.stop()},bS=function(e){return!Mf(e)&&!dS(e)&&getComputedStyle(e).display==="inline"},FS=function(){function e(t,n){this.target=t,this.observedBox=n||Gu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ey(this.target,this.observedBox,!0);return bS(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),xS=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ps=new WeakMap,iy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},vs=function(){function e(){}return e.connect=function(t,n){var r=new xS(t,n);ps.set(t,r)},e.observe=function(t,n,r){var o=ps.get(t),u=o.observationTargets.length===0;iy(o.observationTargets,n)<0&&(u&&kr.push(o),o.observationTargets.push(new FS(n,r&&r.box)),ay(1),zf.schedule())},e.unobserve=function(t,n){var r=ps.get(t),o=iy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&kr.splice(kr.indexOf(r),1),r.observationTargets.splice(o,1),ay(-1))},e.disconnect=function(t){var n=this,r=ps.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),SS=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.");vs.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(!G0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");vs.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(!G0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");vs.unobserve(this,t)},e.prototype.disconnect=function(){vs.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),xn={};Object.defineProperty(xn,"__esModule",{value:!0});for(var OS=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Vf={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},sy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:OS?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Wf={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},hs=1;hs<20;hs++)Wf["f"+hs]=111+hs;function ms(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return ly(a,t)}),o=function(i){return r.some(function(s){return cy(s,i)})},u=n==null?o:o(n);return u}function _S(e,t){return ms(e,t)}function kS(e,t){return ms(e,{byKey:!0},t)}function ly(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in Vf)r[Vf[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=Uf(p),f=Vf[m];if(p.length>1&&!f&&!sy[p]&&!Wf[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=fy(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 cy(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 fy(e){e=Uf(e);var t=Wf[e]||e.toUpperCase().charCodeAt(0);return t}function Uf(e){return e=e.toLowerCase(),e=sy[e]||e,e}xn.default=ms;var Hf=xn.isHotkey=ms;xn.isCodeHotkey=_S,xn.isKeyHotkey=kS,xn.parseHotkey=ly,xn.compareHotkey=cy,xn.toKeyCode=fy,xn.toKeyName=Uf;function PS(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 _o(e,t){if(e==null)return{};var n=PS(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 Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function TS(e,t){if(Zu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RS(e){var t=TS(e,"string");return Zu(t)==="symbol"?t:String(t)}function $t(e,t,n){return t=RS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kf=L.createContext(null),nr=()=>{var e=L.useContext(Kf);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},dy=parseInt(re.version.split(".")[0],10),NS=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,py=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),at=typeof navigator<"u"&&/Android/.test(navigator.userAgent),ko=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ju=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),jS=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),vy=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),IS=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),MS=at&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),$S=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),LS=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),zS=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),gs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rr=(!IS||!MS)&&!jS&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",qf=new WeakMap,Qf=new WeakMap,hy=new WeakMap,ys=new WeakMap,Yf=new WeakMap,ea=new WeakMap,Tr=new WeakMap,Ds=new WeakMap,Cs=new WeakMap,Gf=new WeakMap,or=new WeakMap,Rr=new WeakMap,ta=new WeakMap,Xf=new WeakMap,Zf=new WeakMap,Xt=new WeakMap,Sn=new WeakMap,ht=new WeakMap,ur=new WeakMap,ar=new WeakMap,my=new WeakMap,Po=Symbol("placeholder"),gy=Symbol("mark-placeholder"),VS=globalThis.Text,Jf=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,WS=e=>ir(e)&&e.nodeType===8,Lt=e=>ir(e)&&e.nodeType===1,ir=e=>{var t=Jf(e);return!!t&&e instanceof t.Node},ed=e=>{var t=e&&e.anchorNode&&Jf(e.anchorNode);return!!t&&e instanceof t.Selection},yy=e=>ir(e)&&e.nodeType===3,US=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,HS=e=>{var[t,n]=e;if(Lt(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=Dy(t,o,r?"backward":"forward"),r=o<n;Lt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=qS(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},KS=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},Dy=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(WS(o)||Lt(o)&&o.childNodes.length===0||Lt(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]},qS=(e,t,n)=>{var[r]=Dy(e,t,n);return r},Cy=e=>{var t="";if(yy(e)&&e.nodeValue)return e.nodeValue;if(Lt(e)){for(var n of Array.from(e.childNodes))t+=Cy(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
52
+ `)}return t},QS=/data-slate-fragment="(.+?)"/m,YS=e=>{var t=e.getData("text/html"),[,n]=t.match(QS)||[];return n},td=(e,t,n)=>{var{target:r}=t;if(Lt(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=T.getWindow(e);if(o.contains(r))return T.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:td(e,u,n)},GS=0;class XS{constructor(){$t(this,"id",void 0),this.id="".concat(GS++)}}var T={androidPendingDiffs:e=>ht.get(e),androidScheduleFlush:e=>{var t;(t=Zf.get(e))===null||t===void 0||t()},blur:e=>{var t=T.toDOMNode(e,e),n=T.findDocumentOrShadowRoot(e);or.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=T.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&I.deselect(e)},findDocumentOrShadowRoot:e=>{var t=T.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=T.toSlateNode(e,t.target),a=T.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}=T.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=T.toSlateRange(e,p,{exactMatch:!1,suppressThrow:!1});return f},findKey:(e,t)=>{var n=Ds.get(t);return n||(n=new XS,Ds.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=Qf.get(r);if(o==null){if(D.isEditor(r))return n;break}var u=qf.get(r);if(u==null)break;n.unshift(u),r=o}throw new Error("Unable to find the path for Slate node: ".concat(ze.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!or.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(()=>{T.focus(t,{retries:n.retries-1})},10);return}var r=T.toDOMNode(t,t),o=T.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var u=o.getSelection(),a=T.toDOMRange(t,t.selection);u==null||u.removeAllRanges(),u==null||u.addRange(a)}t.selection||(I.select(t,D.start(t,[])),t.onChange()),or.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=hy.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=T.toDOMNode(t,t),a;try{a=Lt(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)=>ir(t)&&T.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)=>T.hasEditableTarget(e,t)||T.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>ir(t)&&T.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Rr.get(e),isFocused:e=>!!or.get(e),isReadOnly:e=>!!Gf.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Gf.get(e))return!1;var n=T.hasTarget(e,t)&&T.toSlateNode(e,t);return X.isElement(n)&&D.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Cs.get(e),r=D.isEditor(t)?ys.get(e):n==null?void 0:n.get(T.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ze.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=D.node(e,t.path),r=T.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 VS?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(ze.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=_.isBackward(t),u=T.toDOMPoint(e,n),a=_.isCollapsed(t)?u:T.toDOMPoint(e,r),i=T.getWindow(e),s=i.document.createRange(),[l,c]=o?a:u,[d,p]=o?u:a,y=Lt(l)?l:l.parentElement,m=!!y.getAttribute("data-slate-zero-width"),f=Lt(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=Lt(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?ea.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:HS(t),i=u.parentNode,s=null,l=0;if(i){var c,d,p=T.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=T.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($=>{if(at&&!r&&$.hasAttribute("data-slate-zero-width")&&$.textContent.length>0&&$.textContext!=="\uFEFF"){$.textContent.startsWith("\uFEFF")&&($.textContent=$.textContent.slice(1));return}$.parentNode.removeChild($)}),l=C.textContent.length,w=s}}else if(m){for(var B=m.querySelectorAll("[data-slate-leaf]"),F=0;F<B.length;F++){var A=B[F];if(T.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($=>{l-=$.textContent.length})):l=1}w&&l===w.textContent.length&&at&&w.getAttribute("data-slate-zero-width")==="z"&&(c=w.textContent)!==null&&c!==void 0&&c.startsWith("\uFEFF")&&(i.hasAttribute("data-slate-zero-width")||ko&&(d=w.textContent)!==null&&d!==void 0&&d.endsWith(`
55
53
 
56
- `))&&l--}if(at&&!s&&!r){var O=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(O&&T.hasDOMNode(e,O,{editable:!0})){var k=T.toSlateNode(e,O),{path:_,offset:K}=D.start(e,T.findPath(e,k));return O.querySelector("[data-slate-leaf]")||(K=a),{path:_,offset:K}}}if(!s){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var P=T.toSlateNode(e,s),z=T.findPath(e,P);return{path:z,offset:l}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:u}=n,a=Jf(t)?t.anchorNode:t.startContainer,i,s,l,f,d;if(a)if(Jf(t)){if(ko&&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(B){return B.childElementCount>0?x(B.children[0]):B};var m=p.startContainer,c=y.startContainer,w=x(m.children[p.startOffset]),h=x(c.children[y.startOffset]);f=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,f=p.startOffset):(i=p.startContainer,s=p.endOffset,f=y.startOffset)}else i=t.anchorNode,s=t.anchorOffset,l=t.focusNode,f=t.focusOffset;py&&$O(i)||ko?d=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:d=t.isCollapsed}else i=t.startContainer,s=t.startOffset,l=t.endContainer,f=t.endOffset,d=t.collapsed;if(i==null||l==null||s==null||f==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if(ko&&(r=l.textContent)!==null&&r!==void 0&&r.endsWith(`
54
+ `))&&l--}if(at&&!s&&!r){var S=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(S&&T.hasDOMNode(e,S,{editable:!0})){var P=T.toSlateNode(e,S),{path:O,offset:H}=D.start(e,T.findPath(e,P));return S.querySelector("[data-slate-leaf]")||(H=a),{path:O,offset:H}}}if(!s){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=T.toSlateNode(e,s),W=T.findPath(e,k);return{path:W,offset:l}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:u}=n,a=ed(t)?t.anchorNode:t.startContainer,i,s,l,c,d;if(a)if(ed(t)){if(ko&&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 F=function(A){return A.childElementCount>0?F(A.children[0]):A};var m=p.startContainer,f=y.startContainer,w=F(m.children[p.startOffset]),h=F(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;vy&&KS(i)||ko?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(ko&&(r=l.textContent)!==null&&r!==void 0&&r.endsWith(`
57
55
 
58
- `)&&f===l.textContent.length&&f--,"getAttribute"in l&&l.getAttribute("contenteditable")==="false"&&l.getAttribute("data-slate-void")!=="true"){var g;l=i,f=((g=i.textContent)===null||g===void 0?void 0:g.length)||0}var C=T.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:T.toSlatePoint(e,[l,f],{exactMatch:o,suppressThrow:u});if(!E)return null;var A={anchor:C,focus:E};return S.isExpanded(A)&&S.isForward(A)&&Lt(l)&&D.void(e,{at:A.focus,mode:"highest"})&&(A=D.unhangRange(e,A,{voids:!0})),A}};function HO(e,t){var{path:n,diff:r}=t;if(!D.hasPath(e,n))return!1;var o=Q.get(e,n);if(!J.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 J.isText(a)&&a.text.startsWith(r.text)}function Cy(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 KO(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 qO(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 wy(e,t){var{start:n,end:r,text:o}=t,u=e.slice(n,r),a=KO(u,o),i=Math.min(u.length-a,o.length-a),s=qO(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 QO(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=Cy(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 wy(e,{start:r,end:s,text:i})}function YO(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function td(e,t){var{path:n,offset:r}=t;if(!D.hasPath(e,n))return null;var o=Q.get(e,n);if(!J.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:J.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 Ey(e,t){var n=td(e,t.anchor);if(!n)return null;if(S.isCollapsed(t))return{anchor:n,focus:n};var r=td(e,t.focus);return r?{anchor:n,focus:r}:null}function nd(e,t,n){var r=ht.get(e),o=r==null?void 0:r.find(f=>{var{path:d}=f;return b.equals(d,t.path)});if(!o||t.offset<=o.diff.start)return ie.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=ie.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=ie.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 By(e,t,n){var r=nd(e,t.anchor,n);if(!r)return null;if(S.isCollapsed(t))return{anchor:r,focus:r};var o=nd(e,t.focus,n);return o?{anchor:r,focus:o}:null}function GO(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 Ay(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 Cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ay(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XO=25,ZO=200,JO=function(){},eS=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function tS(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,u=null,a=null,i=null,s=0,l=!1,f=()=>{var P=ar.get(t);if(ar.delete(t),P){var{selection:z}=t,L=Ey(t,P);L&&(!z||!S.equals(L,z))&&N.select(t,L)}},d=()=>{var P=ur.get(t);if(ur.delete(t),!!P){if(P.at){var z=ie.isPoint(P.at)?td(t,P.at):Ey(t,P.at);if(!z)return;var L=D.range(t,z);(!t.selection||!S.equals(t.selection,L))&&N.select(t,z)}P.run()}},p=()=>{if(a&&(clearTimeout(a),a=null),i&&(clearTimeout(i),i=null),!E()&&!C()){f();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),JO("flush",ur.get(t),ht.get(t));for(var z=E(),L;L=(W=ht.get(t))===null||W===void 0?void 0:W[0];){var W,G,R=Xt.get(t);R!==void 0&&(Xt.delete(t),t.marks=R),R&&l===!1&&(l=null);var I=YO(L);(!t.selection||!S.equals(t.selection,I))&&N.select(t,I),L.diff.text?D.insertText(t,L.diff.text):D.deleteFragment(t),ht.set(t,(G=ht.get(t))===null||G===void 0?void 0:G.filter(ne=>{var{id:te}=ne;return te!==L.id})),HO(t,L)||(z=!1,ur.delete(t),On.delete(t),o="action",ar.delete(t),n.cancel(),r.cancel(),P==null||P.unref())}var V=P==null?void 0:P.unref();if(V&&!ar.get(t)&&(!t.selection||!S.equals(V,t.selection))&&N.select(t,V),C()){d();return}z&&n(),n.flush(),r.flush(),f();var Y=On.get(t);On.delete(t),Y!==void 0&&(t.marks=Y,t.onChange())},y=P=>{u&&clearTimeout(u),u=setTimeout(()=>{Rr.set(t,!1),p()},XO)},m=P=>{Rr.set(t,!0),u&&(clearTimeout(u),u=null)},c=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,L=Qf.get(t);if(L){if(E()||z){L.style.display="none";return}L.style.removeProperty("display")}},w=(P,z)=>{var L,W=(L=ht.get(t))!==null&&L!==void 0?L:[];ht.set(t,W);var G=Q.leaf(t,P),R=W.findIndex(Y=>b.equals(Y.path,P));if(R<0){var I=wy(G.text,z);I&&W.push({path:P,diff:z,id:s++}),c();return}var V=QO(G.text,W[R].diff,z);if(!V){W.splice(R,1),c();return}W[R]=Cs(Cs({},W[R]),{},{diff:V})},h=function(z){var{at:L}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l=!1,ar.delete(t),n.cancel(),r.cancel(),C()&&p(),ur.set(t,{at:L,run:z}),i=setTimeout(p)},g=P=>{var z;a&&(clearTimeout(a),a=null);var{inputType:L}=P,W=null,G=P.dataTransfer||P.data||void 0;l!==!1&&L!=="insertText"&&L!=="insertCompositionText"&&(l=!1);var[R]=P.getTargetRanges();R&&(W=T.toSlateRange(t,R,{exactMatch:!1,suppressThrow:!0}));var I=T.getWindow(t),V=I.getSelection();if(!W&&V&&(R=V,W=T.toSlateRange(t,V,{exactMatch:!1,suppressThrow:!0})),W=(z=W)!==null&&z!==void 0?z:t.selection,!!W){var Y=!0;if(L.startsWith("delete")){if(S.isExpanded(W)){var[ne,te]=S.edges(W),Be=Q.leaf(t,ne.path);if(Be.text.length===ne.offset&&te.offset===0){var F=D.next(t,{at:ne.path,match:J.isText});F&&b.equals(F[1],te.path)&&(W={anchor:te,focus:te})}}var U=L.endsWith("Backward")?"backward":"forward",[j,q]=S.edges(W),[re,ee]=D.leaf(t,j.path),ae={text:"",start:j.offset,end:q.offset},ce=ht.get(t),de=ce==null?void 0:ce.find(gt=>b.equals(gt.path,ee)),ve=de?[de.diff,ae]:[ae],le=Cy(re.text,...ve);if(le.length===0&&(Y=!1),S.isExpanded(W)){if(Y&&b.equals(W.anchor.path,W.focus.path)){var Ie={path:W.anchor.path,offset:j.offset},Re=D.range(t,Ie,Ie);return B(Re),w(W.anchor.path,{text:"",end:q.offset,start:j.offset})}return h(()=>D.deleteFragment(t,{direction:U}),{at:W})}}switch(L){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>D.deleteFragment(t),{at:W});case"deleteContent":case"deleteContentForward":{var{anchor:Ae}=W;if(Y&&S.isCollapsed(W)){var xt=Q.leaf(t,Ae.path);if(Ae.offset<xt.text.length)return w(Ae.path,{text:"",start:Ae.offset,end:Ae.offset+1})}return h(()=>D.deleteForward(t),{at:W})}case"deleteContentBackward":{var zt,{anchor:_e}=W,et=Jf(R)?R.isCollapsed:!!((zt=R)!==null&&zt!==void 0&&zt.collapsed);return Y&&et&&S.isCollapsed(W)&&_e.offset>0?w(_e.path,{text:"",start:_e.offset-1,end:_e.offset}):h(()=>D.deleteBackward(t),{at:W})}case"deleteEntireSoftLine":return h(()=>{D.deleteBackward(t,{unit:"line"}),D.deleteForward(t,{unit:"line"})},{at:W});case"deleteHardLineBackward":return h(()=>D.deleteBackward(t,{unit:"block"}),{at:W});case"deleteSoftLineBackward":return h(()=>D.deleteBackward(t,{unit:"line"}),{at:W});case"deleteHardLineForward":return h(()=>D.deleteForward(t,{unit:"block"}),{at:W});case"deleteSoftLineForward":return h(()=>D.deleteForward(t,{unit:"line"}),{at:W});case"deleteWordBackward":return h(()=>D.deleteBackward(t,{unit:"word"}),{at:W});case"deleteWordForward":return h(()=>D.deleteForward(t,{unit:"word"}),{at:W});case"insertLineBreak":return h(()=>D.insertSoftBreak(t),{at:W});case"insertParagraph":return h(()=>D.insertBreak(t),{at:W});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(eS(G))return h(()=>T.insertData(t,G),{at:W});var he=G??"";if(Xt.get(t)&&(he=he.replace("\uFEFF","")),L==="insertText"&&/.*\n.*\n$/.test(he)&&(he=he.slice(0,-1)),he.includes(`
59
- `))return h(()=>{var gt=he.split(`
60
- `);gt.forEach((jr,ws)=>{jr&&D.insertText(t,jr),ws!==gt.length-1&&D.insertSoftBreak(t)})},{at:W});if(b.equals(W.anchor.path,W.focus.path)){var[Le,ke]=S.edges(W),Ne={start:Le.offset,end:ke.offset,text:he};if(he&&l&&L==="insertCompositionText"){var mt=l.start+l.text.search(/\S|$/),Nr=Ne.start+Ne.text.search(/\S|$/);Nr===mt+1&&Ne.end===l.start+l.text.length?(Ne.start-=1,l=null,_()):l=!1}else L==="insertText"?l===null?l=Ne:l&&S.isCollapsed(W)&&l.end+l.text.length===Le.offset?l=Cs(Cs({},l),{},{text:l.text+he}):l=!1:l=!1;if(Y){w(Le.path,Ne);return}}return h(()=>D.insertText(t,he),{at:W})}}}},C=()=>!!ur.get(t),E=()=>{var P;return!!((P=ht.get(t))!==null&&P!==void 0&&P.length)},A=()=>C()||E(),x=()=>o,B=P=>{ar.set(t,P),a&&(clearTimeout(a),a=null);var{selection:z}=t;if(P){var L=!z||!b.equals(z.anchor.path,P.anchor.path),W=!z||!b.equals(z.anchor.path.slice(0,-1),P.anchor.path.slice(0,-1));(L&&l||W)&&(l=!1),(L||E())&&(a=setTimeout(p,ZO))}},O=()=>{(C()||!E())&&p()},k=P=>{E()||(c(!0),setTimeout(c))},_=()=>{C()||(i=setTimeout(p))},K=P=>{if(!(E()||C())&&P.some(L=>ed(t,L,P))){var z;(z=hy.get(t))===null||z===void 0||z()}};return{flush:p,scheduleFlush:_,hasPendingDiffs:E,hasPendingAction:C,hasPendingChanges:A,isFlushing:x,handleUserSelect:B,handleCompositionEnd:y,handleCompositionStart:m,handleDOMBeforeInput:g,handleKeyDown:k,handleDomMutations:K,handleInput:O}}function nS(){var e=M.useRef(!1);return M.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var Ju=ms?M.useLayoutEffect:M.useEffect;function rS(e,t,n){var[r]=M.useState(()=>new MutationObserver(t));Ju(()=>{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 oS=["node"];function by(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 uS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?by(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aS={subtree:!0,childList:!0,characterData:!0},iS=at?e=>{var{node:t}=e,n=_o(e,oS);if(!at)return null;var r=nr(),o=nS(),[u]=M.useState(()=>tS(uS({editor:r},n)));return rS(t,u.handleDomMutations,aS),Xf.set(r,u.scheduleFlush),o&&u.flush(),u}:()=>null,sS=["anchor","focus"],lS=["anchor","focus"],cS=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),Fy=(e,t)=>{var n=_o(e,sS),r=_o(t,lS);return e[Po]===t[Po]&&cS(n,r)},fS=(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(!S.equals(r,o)||!Fy(r,o))return!1}return!0},dS=(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||!Fy(r,o))return!1}return!0};function xy(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 pS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vS=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,u=nr(),a=T.findPath(u,o),i=b.parent(a),s=!!n[my];return u.isVoid(r)?oe.createElement(rd,{length:Q.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!u.isInline(r)&&D.string(u,i)===""?oe.createElement(rd,{isLineBreak:!0,isMarkPlaceholder:s}):n.text===""?oe.createElement(rd,{isMarkPlaceholder:s}):t&&n.text.slice(-1)===`
61
- `?oe.createElement(Oy,{isTrailing:!0,text:n.text}):oe.createElement(Oy,{text:n.text})},Oy=e=>{var{text:t,isTrailing:n=!1}=e,r=M.useRef(null),o=()=>"".concat(t??"").concat(n?`
62
- `:""),[u]=M.useState(o);return Ju(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),oe.createElement(hS,{ref:r},u)},hS=M.memo(M.forwardRef((e,t)=>oe.createElement("span",{"data-slate-string":!0,ref:t},e.children))),rd=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),oe.createElement("span",pS({},o),!at||!n?"\uFEFF":null,n?oe.createElement("br",null):null)};function Sy(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 _y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mS=at?300:0;function gS(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function ky(e){e.current&&(clearTimeout(e.current),e.current=null)}var yS=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>oe.createElement(CS,_y({},g))}=e,i=nr(),s=M.useRef(null),l=M.useRef(null),[f,d]=M.useState(!1),p=M.useRef(null),y=M.useCallback(g=>{if(gS(s,g==null),g==null){var C;Qf.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(Qf.set(i,g),!s.current){var E=window.ResizeObserver||wO;s.current=new E(()=>{var A;(A=t.onPlaceholderResize)===null||A===void 0||A.call(t,g)})}s.current.observe(g),l.current=g}},[l,t,i]),m=oe.createElement(vS,{isLast:n,leaf:t,parent:o,text:r}),c=!!t[Po];if(M.useEffect(()=>(c?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},mS)):(ky(p),d(!1)),()=>ky(p)),[c,d]),c&&f){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:Gu?"inherit":void 0},contentEditable:!1,ref:y}};m=oe.createElement(oe.Fragment,null,u(w),m)}var h={"data-slate-leaf":!0};return a({attributes:h,children:m,leaf:t,text:r})},DS=oe.memo(yS,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&J.equals(t.leaf,e.leaf)&&t.leaf[Po]===e.leaf[Po]),CS=e=>{var{attributes:t,children:n}=e;return oe.createElement("span",_y({},t),n)},wS=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=nr(),s=M.useRef(null),l=J.decorations(a,t),f=T.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(oe.createElement(DS,{isLast:n&&p===l.length-1,key:"".concat(f.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=M.useCallback(c=>{var w=Ds.get(i);c?(w==null||w.set(f,c),Tr.set(a,c),Xu.set(c,a)):(w==null||w.delete(f),Tr.delete(a),s.current&&Xu.delete(s.current)),s.current=c},[s,i,f,a]);return oe.createElement("span",{"data-slate-node":"text",ref:m},d)},Py=oe.memo(wS,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&dS(t.decorations,e.decorations));function Ty(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 od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ty(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ES=e=>{var{decorations:t,element:n,renderElement:r=g=>oe.createElement(AS,od({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=nr(),s=xS(),l=i.isInline(n),f=T.findKey(i,n),d=M.useCallback(g=>{var C=Ds.get(i);g?(C==null||C.set(f,g),Tr.set(n,g),Xu.set(g,n)):(C==null||C.delete(f),Tr.delete(n))},[i,f,n]),p=Ny({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),c=P0(m);c==="rtl"&&(y.dir=c)}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=oe.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},oe.createElement(Py,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),Kf.set(h,0),qf.set(h,n)}return r({attributes:y,children:p,element:n})},BS=oe.memo(ES,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&fS(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&S.equals(e.selection,t.selection))),AS=e=>{var{attributes:t,children:n,element:r}=e,o=nr(),u=o.isInline(r)?"span":"div";return oe.createElement(u,od(od({},t),{},{style:{position:"relative"}}),n)},Ry=M.createContext(()=>[]),bS=()=>M.useContext(Ry),FS=M.createContext(!1),Ny=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=bS(),s=nr(),l=T.findPath(s,n),f=[],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],c=T.findKey(s,m),w=D.range(s,y),h=a&&S.intersection(w,a),g=i([m,y]);for(var C of t){var E=S.intersection(C,w);E&&g.push(E)}X.isElement(m)?f.push(oe.createElement(FS.Provider,{key:"provider-".concat(c.id),value:!!h},oe.createElement(BS,{decorations:g,element:m,key:c.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):f.push(oe.createElement(Py,{decorations:g,key:c.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),Kf.set(m,p),qf.set(m,n)}return f},jy=M.createContext(!1),xS=()=>M.useContext(jy),Iy=M.createContext(null),OS=()=>{var e=M.useContext(Iy);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function SS(){var e=nr(),t=M.useRef(!1),n=M.useRef(0),r=M.useCallback(()=>{if(!t.current){t.current=!0;var o=T.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 _S=3,kS={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"},PS={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"},TS={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Ee=e=>{var t=kS[e],n=PS[e],r=TS[e],o=t&&Uf(t),u=n&&Uf(n),a=r&&Uf(r);return i=>!!(o&&o(i)||dy&&u&&u(i)||!dy&&a&&a(i))},Oe={isBold:Ee("bold"),isCompose:Ee("compose"),isMoveBackward:Ee("moveBackward"),isMoveForward:Ee("moveForward"),isDeleteBackward:Ee("deleteBackward"),isDeleteForward:Ee("deleteForward"),isDeleteLineBackward:Ee("deleteLineBackward"),isDeleteLineForward:Ee("deleteLineForward"),isDeleteWordBackward:Ee("deleteWordBackward"),isDeleteWordForward:Ee("deleteWordForward"),isExtendBackward:Ee("extendBackward"),isExtendForward:Ee("extendForward"),isExtendLineBackward:Ee("extendLineBackward"),isExtendLineForward:Ee("extendLineForward"),isItalic:Ee("italic"),isMoveLineBackward:Ee("moveLineBackward"),isMoveLineForward:Ee("moveLineForward"),isMoveWordBackward:Ee("moveWordBackward"),isMoveWordForward:Ee("moveWordForward"),isRedo:Ee("redo"),isSoftBreak:Ee("insertSoftBreak"),isSplitBlock:Ee("splitBlock"),isTransposeCharacter:Ee("transposeCharacter"),isUndo:Ee("undo")},RS=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>ed(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}},NS={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class My extends M.Component{constructor(){super(...arguments),$t(this,"context",null),$t(this,"manager",null),$t(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,NS)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=RS(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}}$t(My,"contextType",Hf);var jS=at?My:e=>{var{children:t}=e;return oe.createElement(oe.Fragment,null,t)},IS=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],MS=["text"];function $y(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 ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$y(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $S=e=>oe.createElement(oe.Fragment,null,Ny(e)),LS=e=>{var t=M.useCallback(F=>oe.createElement(zS,ln({},F)),[]),{autoFocus:n,decorate:r=VS,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:f=WS,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=_o(e,IS),c=OS(),[w,h]=M.useState(!1),g=M.useRef(null),C=M.useRef([]),[E,A]=M.useState(),{onUserInput:x,receivedUserInput:B}=SS(),[,O]=M.useReducer(F=>F+1,0);hy.set(c,O),Yf.set(c,a);var k=M.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);M.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var _=M.useRef(),K=M.useMemo(()=>Xx(()=>{var F=_.current;if((at||!T.isComposing(c))&&(!k.isUpdatingSelection||F!=null&&F.isFlushing())&&!k.isDraggingInternally){var U=T.findDocumentOrShadowRoot(c),{activeElement:j}=U,q=T.toDOMNode(c,c),re=U.getSelection();if(j===q?(k.latestElement=j,or.set(c,!0)):or.delete(c),!re)return N.deselect(c);var{anchorNode:ee,focusNode:ae}=re,ce=T.hasEditableTarget(c,ee)||T.isTargetInsideNonReadonlyVoid(c,ee),de=T.hasEditableTarget(c,ae)||T.isTargetInsideNonReadonlyVoid(c,ae);if(ce&&de){var ve=T.toSlateRange(c,re,{exactMatch:!1,suppressThrow:!0});ve&&(!T.isComposing(c)&&!(F!=null&&F.hasPendingChanges())&&!(F!=null&&F.isFlushing())?N.select(c,ve):F==null||F.handleUserSelect(ve))}a&&(!ce||!de)&&N.deselect(c)}},100),[c,a,k]),P=M.useMemo(()=>Hx(K,0),[K]);_.current=iS({node:g,onDOMSelectionChange:K,scheduleOnDOMSelectionChange:P}),Ju(()=>{var F,U,j;g.current&&(j=Zf(g.current))?(vy.set(c,j),gs.set(c,g.current),Tr.set(c,g.current),Xu.set(g.current,c)):Tr.delete(c);var{selection:q}=c,re=T.findDocumentOrShadowRoot(c),ee=re.getSelection();if(!(!ee||!T.isFocused(c)||(F=_.current)!==null&&F!==void 0&&F.hasPendingAction())){var ae=le=>{var Ie=ee.type!=="None";if(!(!q&&!Ie)){var Re=ee.focusNode,Ae;if(ko&&ee.rangeCount>1){var xt=ee.getRangeAt(0),zt=ee.getRangeAt(ee.rangeCount-1);xt.startContainer===Re?Ae=zt.endContainer:Ae=xt.startContainer}else Ae=ee.anchorNode;var _e=gs.get(c),et=!1;if(_e.contains(Ae)&&_e.contains(Re)&&(et=!0),Ie&&et&&q&&!le){var he=T.toSlateRange(c,ee,{exactMatch:!0,suppressThrow:!0});if(he&&S.equals(he,q)){var Le;if(!k.hasMarkPlaceholder||(Le=Ae)!==null&&Le!==void 0&&(Le=Le.parentElement)!==null&&Le!==void 0&&Le.hasAttribute("data-slate-mark-placeholder"))return}}if(q&&!T.hasRange(c,q)){c.selection=T.toSlateRange(c,ee,{exactMatch:!1,suppressThrow:!0});return}k.isUpdatingSelection=!0;var ke=q&&T.toDOMRange(c,q);return ke?(T.isComposing(c)&&!at?ee.collapseToEnd():S.isBackward(q)?ee.setBaseAndExtent(ke.endContainer,ke.endOffset,ke.startContainer,ke.startOffset):ee.setBaseAndExtent(ke.startContainer,ke.startOffset,ke.endContainer,ke.endOffset),f(c,ke)):ee.removeAllRanges(),ke}};ee.rangeCount<=1&&ae();var ce=((U=_.current)===null||U===void 0?void 0:U.isFlushing())==="action";if(!at||!ce){setTimeout(()=>{k.isUpdatingSelection=!1});return}var de=null,ve=requestAnimationFrame(()=>{if(ce){var le=Ie=>{try{var Re=T.toDOMNode(c,c);Re.focus(),ae(Ie)}catch{}};le(),de=setTimeout(()=>{le(!0),k.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ve),de&&clearTimeout(de)}}});var z=M.useCallback(F=>{if(x(),!a&&T.hasEditableTarget(c,F.target)&&!US(F,o)){var U;if(_.current)return _.current.handleDOMBeforeInput(F);P.flush(),K.flush();var{selection:j}=c,{inputType:q}=F,re=F.dataTransfer||F.data||void 0,ee=q==="insertCompositionText"||q==="deleteCompositionText";if(ee&&T.isComposing(c))return;var ae=!1;if(q==="insertText"&&j&&S.isCollapsed(j)&&F.data&&F.data.length===1&&/[a-z ]/i.test(F.data)&&j.anchor.offset!==0){var ce,de;ae=!0,c.marks&&(ae=!1);var{anchor:ve}=j,[le,Ie]=T.toDOMPoint(c,ve),Re=(ce=le.parentElement)===null||ce===void 0?void 0:ce.closest("a"),Ae=T.getWindow(c);if(ae&&Re&&T.hasDOMNode(c,Re)){var xt,zt=Ae==null?void 0:Ae.document.createTreeWalker(Re,NodeFilter.SHOW_TEXT).lastChild();zt===le&&((xt=zt.textContent)===null||xt===void 0?void 0:xt.length)===Ie&&(ae=!1)}if(ae&&le.parentElement&&(Ae==null||(de=Ae.getComputedStyle(le.parentElement))===null||de===void 0?void 0:de.whiteSpace)==="pre"){var _e=D.above(c,{at:ve.path,match:mt=>X.isElement(mt)&&D.isBlock(c,mt)});_e&&Q.string(_e[0]).includes(" ")&&(ae=!1)}}if(!q.startsWith("delete")||q.startsWith("deleteBy")){var[et]=F.getTargetRanges();if(et){var he=T.toSlateRange(c,et,{exactMatch:!1,suppressThrow:!1});if(!j||!S.equals(j,he)){ae=!1;var Le=!ee&&c.selection&&D.rangeRef(c,c.selection);N.select(c,he),Le&&Zu.set(c,Le)}}}if(ee)return;if(ae||F.preventDefault(),j&&S.isExpanded(j)&&q.startsWith("delete")){var ke=q.endsWith("Backward")?"backward":"forward";D.deleteFragment(c,{direction:ke});return}switch(q){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{D.deleteFragment(c);break}case"deleteContent":case"deleteContentForward":{D.deleteForward(c);break}case"deleteContentBackward":{D.deleteBackward(c);break}case"deleteEntireSoftLine":{D.deleteBackward(c,{unit:"line"}),D.deleteForward(c,{unit:"line"});break}case"deleteHardLineBackward":{D.deleteBackward(c,{unit:"block"});break}case"deleteSoftLineBackward":{D.deleteBackward(c,{unit:"line"});break}case"deleteHardLineForward":{D.deleteForward(c,{unit:"block"});break}case"deleteSoftLineForward":{D.deleteForward(c,{unit:"line"});break}case"deleteWordBackward":{D.deleteBackward(c,{unit:"word"});break}case"deleteWordForward":{D.deleteForward(c,{unit:"word"});break}case"insertLineBreak":D.insertSoftBreak(c);break;case"insertParagraph":{D.insertBreak(c);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{q==="insertFromComposition"&&T.isComposing(c)&&(h(!1),Rr.set(c,!1)),(re==null?void 0:re.constructor.name)==="DataTransfer"?T.insertData(c,re):typeof re=="string"&&(ae?C.current.push(()=>D.insertText(c,re)):D.insertText(c,re));break}}var Ne=(U=Zu.get(c))===null||U===void 0?void 0:U.unref();Zu.delete(c),Ne&&(!c.selection||!S.equals(c.selection,Ne))&&N.select(c,Ne)}},[c,K,x,o,a,P]),L=M.useCallback(F=>{F==null?(K.cancel(),P.cancel(),gs.delete(c),Tr.delete(c),g.current&&rr&&g.current.removeEventListener("beforeinput",z)):rr&&F.addEventListener("beforeinput",z),g.current=F},[K,P,c,z]);Ju(()=>{var F=T.getWindow(c);return F.document.addEventListener("selectionchange",P),()=>{F.document.removeEventListener("selectionchange",P)}},[P]);var W=r([c,[]]),G=u&&c.children.length===1&&Array.from(Q.texts(c)).length===1&&Q.string(c)===""&&!w,R=M.useCallback(F=>{if(F&&G){var U;A((U=F.getBoundingClientRect())===null||U===void 0?void 0:U.height)}else A(void 0)},[G]);if(G){var I=D.start(c,[]);W.push({[Po]:!0,placeholder:u,onPlaceholderResize:R,anchor:I,focus:I})}var{marks:V}=c;if(k.hasMarkPlaceholder=!1,c.selection&&S.isCollapsed(c.selection)&&V){var{anchor:Y}=c.selection,ne=Q.leaf(c,Y.path),te=_o(ne,MS);if(!J.equals(ne,V,{loose:!0})){k.hasMarkPlaceholder=!0;var Be=Object.fromEntries(Object.keys(te).map(F=>[F,null]));W.push(ln(ln(ln({[my]:!0},Be),V),{},{anchor:Y,focus:Y}))}}return M.useEffect(()=>{setTimeout(()=>{var{selection:F}=c;if(F){var{anchor:U}=F,j=Q.leaf(c,U.path);if(V&&!J.equals(j,V,{loose:!0})){Xt.set(c,V);return}}Xt.delete(c)})}),oe.createElement(jy.Provider,{value:a},oe.createElement(Ry.Provider,{value:r},oe.createElement(jS,{node:g,receivedUserInput:B},oe.createElement(p,ln(ln({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:rr||!ms?m.spellCheck:!1,autoCorrect:rr||!ms?m.autoCorrect:"false",autoCapitalize:rr||!ms?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:L,style:ln(ln({},y?{}:ln({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:M.useCallback(F=>{if(!rr&&!a&&!it(F,m.onBeforeInput)&&T.hasSelectableTarget(c,F.target)&&(F.preventDefault(),!T.isComposing(c))){var U=F.data;D.insertText(c,U)}},[m.onBeforeInput,c,a]),onInput:M.useCallback(F=>{if(!it(F,m.onInput)){if(_.current){_.current.handleInput();return}for(var U of C.current)U();C.current=[]}},[m.onInput]),onBlur:M.useCallback(F=>{if(!(a||k.isUpdatingSelection||!T.hasSelectableTarget(c,F.target)||it(F,m.onBlur))){var U=T.findDocumentOrShadowRoot(c);if(k.latestElement!==U.activeElement){var{relatedTarget:j}=F,q=T.toDOMNode(c,c);if(j!==q&&!(Lt(j)&&j.hasAttribute("data-slate-spacer"))){if(j!=null&&ir(j)&&T.hasDOMNode(c,j)){var re=T.toSlateNode(c,j);if(X.isElement(re)&&!c.isVoid(re))return}if(Gu){var ee=U.getSelection();ee==null||ee.removeAllRanges()}or.delete(c)}}}},[a,k.isUpdatingSelection,k.latestElement,c,m.onBlur]),onClick:M.useCallback(F=>{if(T.hasTarget(c,F.target)&&!it(F,m.onClick)&&ir(F.target)){var U=T.toSlateNode(c,F.target),j=T.findPath(c,U);if(!D.hasPath(c,j)||Q.get(c,j)!==U)return;if(F.detail===_S&&j.length>=1){var q=j;if(!(X.isElement(U)&&D.isBlock(c,U))){var re,ee=D.above(c,{match:Re=>X.isElement(Re)&&D.isBlock(c,Re),at:j});q=(re=ee==null?void 0:ee[1])!==null&&re!==void 0?re:j.slice(0,1)}var ae=D.range(c,q);N.select(c,ae);return}if(a)return;var ce=D.start(c,j),de=D.end(c,j),ve=D.void(c,{at:ce}),le=D.void(c,{at:de});if(ve&&le&&b.equals(ve[1],le[1])){var Ie=D.range(c,ce);N.select(c,Ie)}}},[c,m.onClick,a]),onCompositionEnd:M.useCallback(F=>{if(T.hasSelectableTarget(c,F.target)){var U;if(T.isComposing(c)&&Promise.resolve().then(()=>{h(!1),Rr.set(c,!1)}),(U=_.current)===null||U===void 0||U.handleCompositionEnd(F),it(F,m.onCompositionEnd)||at)return;if(!Gu&&!PO&&!OO&&!RO&&!TO&&F.data){var j=Xt.get(c);Xt.delete(c),j!==void 0&&(On.set(c,c.marks),c.marks=j),D.insertText(c,F.data);var q=On.get(c);On.delete(c),q!==void 0&&(c.marks=q)}}},[m.onCompositionEnd,c]),onCompositionUpdate:M.useCallback(F=>{T.hasSelectableTarget(c,F.target)&&!it(F,m.onCompositionUpdate)&&(T.isComposing(c)||(h(!0),Rr.set(c,!0)))},[m.onCompositionUpdate,c]),onCompositionStart:M.useCallback(F=>{if(T.hasSelectableTarget(c,F.target)){var U;if((U=_.current)===null||U===void 0||U.handleCompositionStart(F),it(F,m.onCompositionStart)||at)return;h(!0);var{selection:j}=c;if(j){if(S.isExpanded(j)){D.deleteFragment(c);return}var q=D.above(c,{match:ae=>X.isElement(ae)&&D.isInline(c,ae),mode:"highest"});if(q){var[,re]=q;if(D.isEnd(c,j.anchor,re)){var ee=D.after(c,re);N.setSelection(c,{anchor:ee,focus:ee})}}}}},[m.onCompositionStart,c]),onCopy:M.useCallback(F=>{T.hasSelectableTarget(c,F.target)&&!it(F,m.onCopy)&&!Ly(F)&&(F.preventDefault(),T.setFragmentData(c,F.clipboardData,"copy"))},[m.onCopy,c]),onCut:M.useCallback(F=>{if(!a&&T.hasSelectableTarget(c,F.target)&&!it(F,m.onCut)&&!Ly(F)){F.preventDefault(),T.setFragmentData(c,F.clipboardData,"cut");var{selection:U}=c;if(U)if(S.isExpanded(U))D.deleteFragment(c);else{var j=Q.parent(c,U.anchor.path);D.isVoid(c,j)&&N.delete(c)}}},[a,c,m.onCut]),onDragOver:M.useCallback(F=>{if(T.hasTarget(c,F.target)&&!it(F,m.onDragOver)){var U=T.toSlateNode(c,F.target);X.isElement(U)&&D.isVoid(c,U)&&F.preventDefault()}},[m.onDragOver,c]),onDragStart:M.useCallback(F=>{if(!a&&T.hasTarget(c,F.target)&&!it(F,m.onDragStart)){var U=T.toSlateNode(c,F.target),j=T.findPath(c,U),q=X.isElement(U)&&D.isVoid(c,U)||D.void(c,{at:j,voids:!0});if(q){var re=D.range(c,j);N.select(c,re)}k.isDraggingInternally=!0,T.setFragmentData(c,F.dataTransfer,"drag")}},[a,c,m.onDragStart,k]),onDrop:M.useCallback(F=>{if(!a&&T.hasTarget(c,F.target)&&!it(F,m.onDrop)){F.preventDefault();var U=c.selection,j=T.findEventRange(c,F),q=F.dataTransfer;N.select(c,j),k.isDraggingInternally&&U&&!S.equals(U,j)&&!D.void(c,{at:j,voids:!0})&&N.delete(c,{at:U}),T.insertData(c,q),T.isFocused(c)||T.focus(c)}k.isDraggingInternally=!1},[a,c,m.onDrop,k]),onDragEnd:M.useCallback(F=>{!a&&k.isDraggingInternally&&m.onDragEnd&&T.hasTarget(c,F.target)&&m.onDragEnd(F),k.isDraggingInternally=!1},[a,k,m,c]),onFocus:M.useCallback(F=>{if(!a&&!k.isUpdatingSelection&&T.hasEditableTarget(c,F.target)&&!it(F,m.onFocus)){var U=T.toDOMNode(c,c),j=T.findDocumentOrShadowRoot(c);if(k.latestElement=j.activeElement,ko&&F.target!==U){U.focus();return}or.set(c,!0)}},[a,k,c,m.onFocus]),onKeyDown:M.useCallback(F=>{if(!a&&T.hasEditableTarget(c,F.target)){var U;(U=_.current)===null||U===void 0||U.handleKeyDown(F);var{nativeEvent:j}=F;if(T.isComposing(c)&&j.isComposing===!1&&(Rr.set(c,!1),h(!1)),it(F,m.onKeyDown)||T.isComposing(c))return;var{selection:q}=c,re=c.children[q!==null?q.focus.path[0]:0],ee=P0(Q.string(re))==="rtl";if(Oe.isRedo(j)){F.preventDefault();var ae=c;typeof ae.redo=="function"&&ae.redo();return}if(Oe.isUndo(j)){F.preventDefault();var ce=c;typeof ce.undo=="function"&&ce.undo();return}if(Oe.isMoveLineBackward(j)){F.preventDefault(),N.move(c,{unit:"line",reverse:!0});return}if(Oe.isMoveLineForward(j)){F.preventDefault(),N.move(c,{unit:"line"});return}if(Oe.isExtendLineBackward(j)){F.preventDefault(),N.move(c,{unit:"line",edge:"focus",reverse:!0});return}if(Oe.isExtendLineForward(j)){F.preventDefault(),N.move(c,{unit:"line",edge:"focus"});return}if(Oe.isMoveBackward(j)){F.preventDefault(),q&&S.isCollapsed(q)?N.move(c,{reverse:!ee}):N.collapse(c,{edge:ee?"end":"start"});return}if(Oe.isMoveForward(j)){F.preventDefault(),q&&S.isCollapsed(q)?N.move(c,{reverse:ee}):N.collapse(c,{edge:ee?"start":"end"});return}if(Oe.isMoveWordBackward(j)){F.preventDefault(),q&&S.isExpanded(q)&&N.collapse(c,{edge:"focus"}),N.move(c,{unit:"word",reverse:!ee});return}if(Oe.isMoveWordForward(j)){F.preventDefault(),q&&S.isExpanded(q)&&N.collapse(c,{edge:"focus"}),N.move(c,{unit:"word",reverse:ee});return}if(rr){if((py||Gu)&&q&&(Oe.isDeleteBackward(j)||Oe.isDeleteForward(j))&&S.isCollapsed(q)){var de=Q.parent(c,q.anchor.path);if(X.isElement(de)&&D.isVoid(c,de)&&(D.isInline(c,de)||D.isBlock(c,de))){F.preventDefault(),D.deleteBackward(c,{unit:"block"});return}}}else{if(Oe.isBold(j)||Oe.isItalic(j)||Oe.isTransposeCharacter(j)){F.preventDefault();return}if(Oe.isSoftBreak(j)){F.preventDefault(),D.insertSoftBreak(c);return}if(Oe.isSplitBlock(j)){F.preventDefault(),D.insertBreak(c);return}if(Oe.isDeleteBackward(j)){F.preventDefault(),q&&S.isExpanded(q)?D.deleteFragment(c,{direction:"backward"}):D.deleteBackward(c);return}if(Oe.isDeleteForward(j)){F.preventDefault(),q&&S.isExpanded(q)?D.deleteFragment(c,{direction:"forward"}):D.deleteForward(c);return}if(Oe.isDeleteLineBackward(j)){F.preventDefault(),q&&S.isExpanded(q)?D.deleteFragment(c,{direction:"backward"}):D.deleteBackward(c,{unit:"line"});return}if(Oe.isDeleteLineForward(j)){F.preventDefault(),q&&S.isExpanded(q)?D.deleteFragment(c,{direction:"forward"}):D.deleteForward(c,{unit:"line"});return}if(Oe.isDeleteWordBackward(j)){F.preventDefault(),q&&S.isExpanded(q)?D.deleteFragment(c,{direction:"backward"}):D.deleteBackward(c,{unit:"word"});return}if(Oe.isDeleteWordForward(j)){F.preventDefault(),q&&S.isExpanded(q)?D.deleteFragment(c,{direction:"forward"}):D.deleteForward(c,{unit:"word"});return}}}},[a,c,m.onKeyDown]),onPaste:M.useCallback(F=>{!a&&T.hasEditableTarget(c,F.target)&&!it(F,m.onPaste)&&(!rr||IO(F.nativeEvent)||Gu)&&(F.preventDefault(),T.insertData(c,F.clipboardData))},[a,c,m.onPaste])}),oe.createElement($S,{decorations:W,node:c,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:c.selection})))))},zS=e=>{var{attributes:t,children:n}=e;return oe.createElement("span",ln({},t),n,at&&oe.createElement("br",null))},VS=()=>[],WS=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&S.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),eO(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},it=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},Ly=e=>ir(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),US=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},HS=M.createContext(!1),KS=M.createContext({});function qS(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 QS=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],YS=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=_o(e,QS),[s,l]=oe.useState(()=>{if(!Q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ze.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(ze.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:f,onChange:d}=qS(t),p=M.useCallback(c=>{var w;switch(r&&r(t.children),c==null||(w=c.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(()=>(Gf.set(t,p),()=>{Gf.set(t,()=>{})}),[t,p]);var[y,m]=M.useState(T.isFocused(t));return M.useEffect(()=>{m(T.isFocused(t))},[t]),Ju(()=>{var c=()=>m(T.isFocused(t));return fy>=17?(document.addEventListener("focusin",c),document.addEventListener("focusout",c),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",c)}):(document.addEventListener("focus",c,!0),document.addEventListener("blur",c,!0),()=>{document.removeEventListener("focus",c,!0),document.removeEventListener("blur",c,!0)})},[]),oe.createElement(KS.Provider,{value:f},oe.createElement(Iy.Provider,{value:s},oe.createElement(Hf.Provider,{value:s.editor},oe.createElement(HS.Provider,{value:y},n))))},zy=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Vy=(e,t,n)=>{var r=T.toDOMRange(e,t).getBoundingClientRect(),o=T.toDOMRange(e,n).getBoundingClientRect();return zy(r,o)&&zy(o,r)},GS=(e,t)=>{var n=D.range(e,S.end(t)),r=Array.from(D.positions(e,{at:t})),o=0,u=r.length,a=Math.floor(u/2);if(Vy(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;)Vy(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 Wy(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 Uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XS=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 Ds.set(r,new WeakMap),r.addMark=(l,f)=>{var d,p;(d=Xf.get(r))===null||d===void 0||d(),!Xt.get(r)&&(p=ht.get(r))!==null&&p!==void 0&&p.length&&Xt.set(r,null),On.delete(r),i(l,f)},r.removeMark=l=>{var f;!Xt.get(r)&&(f=ht.get(r))!==null&&f!==void 0&&f.length&&Xt.set(r,null),On.delete(r),s(l)},r.deleteBackward=l=>{if(l!=="line")return a(l);if(r.selection&&S.isCollapsed(r.selection)){var f=D.above(r,{match:m=>X.isElement(m)&&D.isBlock(r,m),at:r.selection});if(f){var[,d]=f,p=D.range(r,d,r.selection.anchor),y=GS(r,p);S.isCollapsed(y)||N.delete(r,{at:y})}}},r.apply=l=>{var f=[],d=[],p=ht.get(r);if(p!=null&&p.length){var y=p.map(L=>GO(L,l)).filter(Boolean);ht.set(r,y)}var m=ar.get(r);m&&ar.set(r,By(r,m,l));var c=ur.get(r);if(c!=null&&c.at){var w=ie.isPoint(c==null?void 0:c.at)?nd(r,c.at,l):By(r,c.at,l);ur.set(r,w?Uy(Uy({},c),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{f.push(...To(r,l.path));break}case"set_selection":{var h;(h=Zu.get(r))===null||h===void 0||h.unref(),Zu.delete(r);break}case"insert_node":case"remove_node":{f.push(...To(r,b.parent(l.path)));break}case"merge_node":{var g=b.previous(l.path);f.push(...To(r,g));break}case"move_node":{var C=b.common(b.parent(l.path),b.parent(l.newPath));f.push(...To(r,C));var E;b.isBefore(l.path,l.newPath)?(f.push(...To(r,b.parent(l.path))),E=l.newPath):(f.push(...To(r,b.parent(l.newPath))),E=l.path);var A=Q.get(t,b.parent(E)),x=T.findKey(r,A),B=D.pathRef(r,b.parent(E));d.push([B,x]);break}}o(l);for(var[O,k]of f){var[_]=D.node(r,O);ys.set(_,k)}for(var[K,P]of d)if(K.current){var[z]=D.node(r,K.current);ys.set(z,P)}},r.setFragmentData=l=>{var{selection:f}=r;if(f){var[d,p]=S.edges(f),y=D.void(r,{at:d.path}),m=D.void(r,{at:p.path});if(!(S.isCollapsed(f)&&!y)){var c=T.toDOMRange(r,f),w=c.cloneContents(),h=w.childNodes[0];if(w.childNodes.forEach(_=>{_.textContent&&_.textContent.trim()!==""&&(h=_)}),m){var[g]=m,C=c.cloneRange(),E=T.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(_=>{var K=_.getAttribute("data-slate-zero-width")==="n";_.textContent=K?`
63
- `:""}),gy(h)){var A=h.ownerDocument.createElement("span");A.style.whiteSpace="pre",A.appendChild(h),w.appendChild(A),h=A}var x=r.getFragment(),B=JSON.stringify(x),O=window.btoa(encodeURIComponent(B));h.setAttribute("data-slate-fragment",O),l.setData("application/".concat(n),O);var k=w.ownerDocument.createElement("div");return k.appendChild(w),k.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(k),l.setData("text/html",k.innerHTML),l.setData("text/plain",Dy(k)),w.ownerDocument.body.removeChild(k),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var f=l.getData("application/".concat(n))||VO(l);if(f){var d=decodeURIComponent(window.atob(f)),p=JSON.parse(d);return r.insertFragment(p),!0}return!1},r.insertTextData=l=>{var f=l.getData("text/plain");if(f){var d=f.split(/\r\n|\r|\n/),p=!1;for(var y of d)p&&N.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var f=fy<18?xo.unstable_batchedUpdates:d=>d();f(()=>{var d=Gf.get(r);d&&d(l),u(l)})},r},To=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=T.findKey(e,r);n.push([o,u])}return n},ZS={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Rn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Rn.isOperationList(e.undos[0].operations))}},ud=new WeakMap,ad=new WeakMap,Ro={isHistoryEditor(e){return ZS.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return ad.get(e)},isSaving(e){return ud.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ro.isMerging(e);ad.set(e,!1),t(),ad.set(e,n)},withoutSaving(e,t){var n=Ro.isSaving(e);ud.set(e,!1),t(),ud.set(e,n)}},JS=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&&N.setSelection(t,u.selectionBefore),Ro.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];Ro.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Rn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&N.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=Ro.isSaving(t),f=Ro.isMerging(t);if(l==null&&(l=t3(r)),l){if(f==null&&(i==null?f=!1:o.length!==0?f=!0:f=e3(r,s)),i&&f)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},e3=(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)),t3=(e,t)=>e.type!=="set_selection";function n3(e){const n=`docx-h${e.element.level}`;return Te.jsx(n,{...e.attributes,children:e.children})}function r3(e){return Te.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:o3,Consumer:u3}=M.createContext(!1);function a3(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Te.jsx(o3,{value:!!t.ordered,children:Te.jsx(n,{...e.attributes,children:e.children})})}function i3(e){return Te.jsx(u3,{children:t=>Te.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const s3={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},l3=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/\~\~(.+?)\~\~$/,"del"],[/\~(.+?)\~$/,"underline"]];function c3(e){return e.element.type==="heading"?Te.jsx(n3,{...e}):e.element.type==="blockquote"?Te.jsx(r3,{...e}):e.element.type==="list"?Te.jsx(a3,{...e}):e.element.type==="list-item"?Te.jsx(i3,{...e}):Te.jsx("p",{...e.attributes,children:e.children})}function f3({attributes:e,children:t,leaf:n}){return n.bold&&(t=Te.jsx("strong",{children:t})),n.code&&(t=Te.jsx("code",{children:t})),n.italic&&(t=Te.jsx("em",{children:t})),n.del&&(t=Te.jsx("del",{children:t})),n.underline&&(t=Te.jsx("u",{children:t})),Te.jsx("span",{...e,children:t})}function d3(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=f=>f}=e,o=M.useMemo(()=>r(XS(JS(kA()))),[]),u=M.useCallback(f=>Te.jsx(c3,{...f}),[]),a=M.useCallback(f=>Te.jsx(f3,{...f}),[]),i=M.useCallback(n?f=>{queueMicrotask(()=>n(f))}:()=>{},[o]),s=M.useCallback(f=>Xw.trigger(f),[o]),l=M.useCallback(f=>$p.trigger(f),[o]);return xa.value=o,Te.jsx(YS,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Te.jsx(LS,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const p3=eu(v.defineComponent({__name:"Markdown",props:{initialValue:{type:null}},setup(e){const t=e,n=TF(d3);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&&S.isCollapsed(l)){const[f,d]=D.above(u,r(u))||[];if(f&&X.isElement(f)&&ie.equals(l.anchor,D.end(u,d))){if(f.type==="list-item")return N.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(f.type!=="paragraph")return N.insertNodes(u,{type:"paragraph",children:[{text:""}]},r(u))}}s()},u.insertText=l=>{const{selection:f}=u;if(l.endsWith(" ")&&f&&S.isCollapsed(f)){const d=D.above(u,r(u)),p=d?d[1]:[],y=D.start(u,p),m={anchor:f.anchor,focus:y},c=D.string(u,m)+l.slice(0,-1),w=s3[c];if(w){N.select(u,m),S.isCollapsed(m)||N.delete(u);const h={type:w};w==="heading"?h.level=`${c.length}`:w==="blockquote"&&(h.type="paragraph"),N.setNodes(u,h,r(u)),w==="blockquote"?N.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&N.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of l3){const[C,E]=c.match(h)||[];if(C){const A=D.before(u,f,{unit:"character",distance:C.length}),x=D.range(u,A,f);return N.insertText(u,E,{at:x}),N.setNodes(u,{[g]:!0},{at:x,match:B=>J.isText(B),split:!0}),N.insertNodes(u,{text:" "})}}}a(l)},u.deleteBackward=(...l)=>{const{selection:f}=u;if(f&&S.isCollapsed(f)){const[d,p]=D.above(u,r(u))||[];if(d&&ie.equals(f.anchor,D.start(u,p))){const[y,m]=D.parent(u,p);if(y)if(X.isElement(y)){const c=y.children[0]===d,w=y.children.at(-1)===d;let h=!1;if(c&&w?(h=!0,N.unwrapNodes(u,{at:m})):c?(h=!0,N.moveNodes(u,{to:m})):w&&(h=!0,N.moveNodes(u,{to:b.next(m)})),h){N.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&N.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=zp();Qe(Fa(),"dragstart",a=>{u.value&&a.preventDefault()})}return(u,a)=>(v.openBlock(),v.createBlock(v.unref(n),v.mergeProps(t,{withOverride:o}),null,16))}}),[["styles",[`*[data-v-01a5af76],[data-v-01a5af76]:before,[data-v-01a5af76]: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-01a5af76]::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-01a5af76]{display:list-item}
64
- `]],["__scopeId","data-v-01a5af76"]]),v3=eu(v.defineComponent({__name:"index",props:{initialValue:{type:null}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createCommentVNode(" Markdown "),v.createVNode(p3,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(jA)],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}
65
- `,`*[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: }
66
- `]],["__scopeId","data-v-1360e702"]]),h3=eu(v.defineComponent({__name:"index",props:{initialValue:{type:null}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(v3,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: }
67
- `]],["__scopeId","data-v-9cb0b441"]]),m3="1.8.4";function g3(e=eE()){const t=Fa(),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})}qw(document.head,r,{childList:!0}),r()}),e}function y3(){const e=Fa();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[m3])??{};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:g3()}}const D3=eu(v.defineComponent({__name:"App",props:{initialValue:{type:null}},emits:["change"],setup(e,{emit:t}){const n=t;return y3(),$p.on(r=>{n("change",r)}),v.onMounted(()=>{Oa.value=Fa().value.parentNode}),(r,o)=>{const u=TD;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(h3,{"initial-value":r.initialValue},null,8,["initial-value"])]),_:1})}}}),[["styles",[`*[data-v-6eedc1cf],[data-v-6eedc1cf]:before,[data-v-6eedc1cf]: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-6eedc1cf]::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: }
68
- `]],["__scopeId","data-v-6eedc1cf"]]),C3="smart-docx-editor";function w3(e,t){var n;tE&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}w3(C3,D3)})((Hy=SmartCore["1.8.4"])==null?void 0:Hy.Vue);
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=T.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:T.toSlatePoint(e,[l,c],{exactMatch:o,suppressThrow:u});if(!E)return null;var B={anchor:C,focus:E};return _.isExpanded(B)&&_.isForward(B)&&Lt(l)&&D.void(e,{at:B.focus,mode:"highest"})&&(B=D.unhangRange(e,B,{voids:!0})),B}};function ZS(e,t){var{path:n,diff:r}=t;if(!D.hasPath(e,n))return!1;var o=q.get(e,n);if(!J.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 J.isText(a)&&a.text.startsWith(r.text)}function wy(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 JS(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 eO(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 Ey(e,t){var{start:n,end:r,text:o}=t,u=e.slice(n,r),a=JS(u,o),i=Math.min(u.length-a,o.length-a),s=eO(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 tO(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=wy(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 Ey(e,{start:r,end:s,text:i})}function nO(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function nd(e,t){var{path:n,offset:r}=t;if(!D.hasPath(e,n))return null;var o=q.get(e,n);if(!J.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:J.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 By(e,t){var n=nd(e,t.anchor);if(!n)return null;if(_.isCollapsed(t))return{anchor:n,focus:n};var r=nd(e,t.focus);return r?{anchor:n,focus:r}:null}function rd(e,t,n){var r=ht.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 ae.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=ae.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=ae.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 Ay(e,t,n){var r=rd(e,t.anchor,n);if(!r)return null;if(_.isCollapsed(t))return{anchor:r,focus:r};var o=rd(e,t.focus,n);return o?{anchor:r,focus:o}:null}function rO(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 by(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 ws(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?by(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oO=25,uO=200,aO=function(){},iO=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function sO(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,u=null,a=null,i=null,s=0,l=!1,c=()=>{var k=ar.get(t);if(ar.delete(t),k){var{selection:W}=t,$=By(t,k);$&&(!W||!_.equals($,W))&&I.select(t,$)}},d=()=>{var k=ur.get(t);if(ur.delete(t),!!k){if(k.at){var W=ae.isPoint(k.at)?nd(t,k.at):By(t,k.at);if(!W)return;var $=D.range(t,W);(!t.selection||!_.equals(t.selection,$))&&I.select(t,W)}k.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 k=t.selection&&D.rangeRef(t,t.selection,{affinity:"forward"});Sn.set(t,t.marks),aO("flush",ur.get(t),ht.get(t));for(var W=E(),$;$=(V=ht.get(t))===null||V===void 0?void 0:V[0];){var V,G,R=Xt.get(t);R!==void 0&&(Xt.delete(t),t.marks=R),R&&l===!1&&(l=null);var M=nO($);(!t.selection||!_.equals(t.selection,M))&&I.select(t,M),$.diff.text?D.insertText(t,$.diff.text):D.deleteFragment(t),ht.set(t,(G=ht.get(t))===null||G===void 0?void 0:G.filter(ne=>{var{id:te}=ne;return te!==$.id})),ZS(t,$)||(W=!1,ur.delete(t),Sn.delete(t),o="action",ar.delete(t),n.cancel(),r.cancel(),k==null||k.unref())}var U=k==null?void 0:k.unref();if(U&&!ar.get(t)&&(!t.selection||!_.equals(U,t.selection))&&I.select(t,U),C()){d();return}W&&n(),n.flush(),r.flush(),c();var Y=Sn.get(t);Sn.delete(t),Y!==void 0&&(t.marks=Y,t.onChange())},y=k=>{u&&clearTimeout(u),u=setTimeout(()=>{Rr.set(t,!1),p()},oO)},m=k=>{Rr.set(t,!0),u&&(clearTimeout(u),u=null)},f=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,$=Yf.get(t);if($){if(E()||W){$.style.display="none";return}$.style.removeProperty("display")}},w=(k,W)=>{var $,V=($=ht.get(t))!==null&&$!==void 0?$:[];ht.set(t,V);var G=q.leaf(t,k),R=V.findIndex(Y=>b.equals(Y.path,k));if(R<0){var M=Ey(G.text,W);M&&V.push({path:k,diff:W,id:s++}),f();return}var U=tO(G.text,V[R].diff,W);if(!U){V.splice(R,1),f();return}V[R]=ws(ws({},V[R]),{},{diff:U})},h=function(W){var{at:$}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l=!1,ar.delete(t),n.cancel(),r.cancel(),C()&&p(),ur.set(t,{at:$,run:W}),i=setTimeout(p)},g=k=>{var W;a&&(clearTimeout(a),a=null);var{inputType:$}=k,V=null,G=k.dataTransfer||k.data||void 0;l!==!1&&$!=="insertText"&&$!=="insertCompositionText"&&(l=!1);var[R]=k.getTargetRanges();R&&(V=T.toSlateRange(t,R,{exactMatch:!1,suppressThrow:!0}));var M=T.getWindow(t),U=M.getSelection();if(!V&&U&&(R=U,V=T.toSlateRange(t,U,{exactMatch:!1,suppressThrow:!0})),V=(W=V)!==null&&W!==void 0?W:t.selection,!!V){var Y=!0;if($.startsWith("delete")){if(_.isExpanded(V)){var[ne,te]=_.edges(V),ve=q.leaf(t,ne.path);if(ve.text.length===ne.offset&&te.offset===0){var x=D.next(t,{at:ne.path,match:J.isText});x&&b.equals(x[1],te.path)&&(V={anchor:te,focus:te})}}var j=$.endsWith("Backward")?"backward":"forward",[N,Q]=_.edges(V),[oe,ee]=D.leaf(t,N.path),ie={text:"",start:N.offset,end:Q.offset},ce=ht.get(t),de=ce==null?void 0:ce.find(gt=>b.equals(gt.path,ee)),he=de?[de.diff,ie]:[ie],le=wy(oe.text,...he);if(le.length===0&&(Y=!1),_.isExpanded(V)){if(Y&&b.equals(V.anchor.path,V.focus.path)){var Ie={path:V.anchor.path,offset:N.offset},Re=D.range(t,Ie,Ie);return A(Re),w(V.anchor.path,{text:"",end:Q.offset,start:N.offset})}return h(()=>D.deleteFragment(t,{direction:j}),{at:V})}}switch($){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>D.deleteFragment(t),{at:V});case"deleteContent":case"deleteContentForward":{var{anchor:Ae}=V;if(Y&&_.isCollapsed(V)){var xt=q.leaf(t,Ae.path);if(Ae.offset<xt.text.length)return w(Ae.path,{text:"",start:Ae.offset,end:Ae.offset+1})}return h(()=>D.deleteForward(t),{at:V})}case"deleteContentBackward":{var zt,{anchor:_e}=V,et=ed(R)?R.isCollapsed:!!((zt=R)!==null&&zt!==void 0&&zt.collapsed);return Y&&et&&_.isCollapsed(V)&&_e.offset>0?w(_e.path,{text:"",start:_e.offset-1,end:_e.offset}):h(()=>D.deleteBackward(t),{at:V})}case"deleteEntireSoftLine":return h(()=>{D.deleteBackward(t,{unit:"line"}),D.deleteForward(t,{unit:"line"})},{at:V});case"deleteHardLineBackward":return h(()=>D.deleteBackward(t,{unit:"block"}),{at:V});case"deleteSoftLineBackward":return h(()=>D.deleteBackward(t,{unit:"line"}),{at:V});case"deleteHardLineForward":return h(()=>D.deleteForward(t,{unit:"block"}),{at:V});case"deleteSoftLineForward":return h(()=>D.deleteForward(t,{unit:"line"}),{at:V});case"deleteWordBackward":return h(()=>D.deleteBackward(t,{unit:"word"}),{at:V});case"deleteWordForward":return h(()=>D.deleteForward(t,{unit:"word"}),{at:V});case"insertLineBreak":return h(()=>D.insertSoftBreak(t),{at:V});case"insertParagraph":return h(()=>D.insertBreak(t),{at:V});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(iO(G))return h(()=>T.insertData(t,G),{at:V});var me=G??"";if(Xt.get(t)&&(me=me.replace("\uFEFF","")),$==="insertText"&&/.*\n.*\n$/.test(me)&&(me=me.slice(0,-1)),me.includes(`
57
+ `))return h(()=>{var gt=me.split(`
58
+ `);gt.forEach((jr,Es)=>{jr&&D.insertText(t,jr),Es!==gt.length-1&&D.insertSoftBreak(t)})},{at:V});if(b.equals(V.anchor.path,V.focus.path)){var[Le,ke]=_.edges(V),Ne={start:Le.offset,end:ke.offset,text:me};if(me&&l&&$==="insertCompositionText"){var mt=l.start+l.text.search(/\S|$/),Nr=Ne.start+Ne.text.search(/\S|$/);Nr===mt+1&&Ne.end===l.start+l.text.length?(Ne.start-=1,l=null,O()):l=!1}else $==="insertText"?l===null?l=Ne:l&&_.isCollapsed(V)&&l.end+l.text.length===Le.offset?l=ws(ws({},l),{},{text:l.text+me}):l=!1:l=!1;if(Y){w(Le.path,Ne);return}}return h(()=>D.insertText(t,me),{at:V})}}}},C=()=>!!ur.get(t),E=()=>{var k;return!!((k=ht.get(t))!==null&&k!==void 0&&k.length)},B=()=>C()||E(),F=()=>o,A=k=>{ar.set(t,k),a&&(clearTimeout(a),a=null);var{selection:W}=t;if(k){var $=!W||!b.equals(W.anchor.path,k.anchor.path),V=!W||!b.equals(W.anchor.path.slice(0,-1),k.anchor.path.slice(0,-1));($&&l||V)&&(l=!1),($||E())&&(a=setTimeout(p,uO))}},S=()=>{(C()||!E())&&p()},P=k=>{E()||(f(!0),setTimeout(f))},O=()=>{C()||(i=setTimeout(p))},H=k=>{if(!(E()||C())&&k.some($=>td(t,$,k))){var W;(W=my.get(t))===null||W===void 0||W()}};return{flush:p,scheduleFlush:O,hasPendingDiffs:E,hasPendingAction:C,hasPendingChanges:B,isFlushing:F,handleUserSelect:A,handleCompositionEnd:y,handleCompositionStart:m,handleDOMBeforeInput:g,handleKeyDown:P,handleDomMutations:H,handleInput:S}}function lO(){var e=L.useRef(!1);return L.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var na=gs?L.useLayoutEffect:L.useEffect;function cO(e,t,n){var[r]=L.useState(()=>new MutationObserver(t));na(()=>{r.takeRecords()}),L.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 fO=["node"];function Fy(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 dO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pO={subtree:!0,childList:!0,characterData:!0},vO=at?e=>{var{node:t}=e,n=_o(e,fO);if(!at)return null;var r=nr(),o=lO(),[u]=L.useState(()=>sO(dO({editor:r},n)));return cO(t,u.handleDomMutations,pO),Zf.set(r,u.scheduleFlush),o&&u.flush(),u}:()=>null,hO=["anchor","focus"],mO=["anchor","focus"],gO=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),xy=(e,t)=>{var n=_o(e,hO),r=_o(t,mO);return e[Po]===t[Po]&&gO(n,r)},yO=(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)||!xy(r,o))return!1}return!0},DO=(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||!xy(r,o))return!1}return!0};function Sy(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 CO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wO=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,u=nr(),a=T.findPath(u,o),i=b.parent(a),s=!!n[gy];return u.isVoid(r)?re.createElement(od,{length:q.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!u.isInline(r)&&D.string(u,i)===""?re.createElement(od,{isLineBreak:!0,isMarkPlaceholder:s}):n.text===""?re.createElement(od,{isMarkPlaceholder:s}):t&&n.text.slice(-1)===`
59
+ `?re.createElement(Oy,{isTrailing:!0,text:n.text}):re.createElement(Oy,{text:n.text})},Oy=e=>{var{text:t,isTrailing:n=!1}=e,r=L.useRef(null),o=()=>"".concat(t??"").concat(n?`
60
+ `:""),[u]=L.useState(o);return na(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(EO,{ref:r},u)},EO=L.memo(L.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),od=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",CO({},o),!at||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function _y(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 ky(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_y(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_y(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BO=at?300:0;function AO(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function Py(e){e.current&&(clearTimeout(e.current),e.current=null)}var bO=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(xO,ky({},g))}=e,i=nr(),s=L.useRef(null),l=L.useRef(null),[c,d]=L.useState(!1),p=L.useRef(null),y=L.useCallback(g=>{if(AO(s,g==null),g==null){var C;Yf.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(Yf.set(i,g),!s.current){var E=window.ResizeObserver||SS;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(wO,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[Po];if(L.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},BO)):(Py(p),d(!1)),()=>Py(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:Ju?"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})},FO=re.memo(bO,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&J.equals(t.leaf,e.leaf)&&t.leaf[Po]===e.leaf[Po]),xO=e=>{var{attributes:t,children:n}=e;return re.createElement("span",ky({},t),n)},SO=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=nr(),s=L.useRef(null),l=J.decorations(a,t),c=T.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(re.createElement(FO,{isLast:n&&p===l.length-1,key:"".concat(c.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=L.useCallback(f=>{var w=Cs.get(i);f?(w==null||w.set(c,f),Tr.set(a,f),ea.set(f,a)):(w==null||w.delete(c),Tr.delete(a),s.current&&ea.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},Ty=re.memo(SO,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&DO(t.decorations,e.decorations));function Ry(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 ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var OO=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(kO,ud({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=nr(),s=RO(),l=i.isInline(n),c=T.findKey(i,n),d=L.useCallback(g=>{var C=Cs.get(i);g?(C==null||C.set(c,g),Tr.set(n,g),ea.set(g,n)):(C==null||C.delete(c),Tr.delete(n))},[i,c,n]),p=jy({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=T0(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(Ty,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),qf.set(h,0),Qf.set(h,n)}return r({attributes:y,children:p,element:n})},_O=re.memo(OO,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&yO(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),kO=e=>{var{attributes:t,children:n,element:r}=e,o=nr(),u=o.isInline(r)?"span":"div";return re.createElement(u,ud(ud({},t),{},{style:{position:"relative"}}),n)},Ny=L.createContext(()=>[]),PO=()=>L.useContext(Ny),TO=L.createContext(!1),jy=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=PO(),s=nr(),l=T.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=T.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(TO.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(_O,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(Ty,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),qf.set(m,p),Qf.set(m,n)}return c},Iy=L.createContext(!1),RO=()=>L.useContext(Iy),My=L.createContext(null),NO=()=>{var e=L.useContext(My);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function jO(){var e=nr(),t=L.useRef(!1),n=L.useRef(0),r=L.useCallback(()=>{if(!t.current){t.current=!0;var o=T.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return L.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var IO=3,MO={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"},$O={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"},LO={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Be=e=>{var t=MO[e],n=$O[e],r=LO[e],o=t&&Hf(t),u=n&&Hf(n),a=r&&Hf(r);return i=>!!(o&&o(i)||py&&u&&u(i)||!py&&a&&a(i))},Se={isBold:Be("bold"),isCompose:Be("compose"),isMoveBackward:Be("moveBackward"),isMoveForward:Be("moveForward"),isDeleteBackward:Be("deleteBackward"),isDeleteForward:Be("deleteForward"),isDeleteLineBackward:Be("deleteLineBackward"),isDeleteLineForward:Be("deleteLineForward"),isDeleteWordBackward:Be("deleteWordBackward"),isDeleteWordForward:Be("deleteWordForward"),isExtendBackward:Be("extendBackward"),isExtendForward:Be("extendForward"),isExtendLineBackward:Be("extendLineBackward"),isExtendLineForward:Be("extendLineForward"),isItalic:Be("italic"),isMoveLineBackward:Be("moveLineBackward"),isMoveLineForward:Be("moveLineForward"),isMoveWordBackward:Be("moveWordBackward"),isMoveWordForward:Be("moveWordForward"),isRedo:Be("redo"),isSoftBreak:Be("insertSoftBreak"),isSplitBlock:Be("splitBlock"),isTransposeCharacter:Be("transposeCharacter"),isUndo:Be("undo")},zO=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>td(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}},VO={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class $y extends L.Component{constructor(){super(...arguments),$t(this,"context",null),$t(this,"manager",null),$t(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,VO)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=zO(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}}$t($y,"contextType",Kf);var WO=at?$y:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},UO=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],HO=["text"];function Ly(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 ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ly(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var KO=e=>re.createElement(re.Fragment,null,jy(e)),qO=e=>{var t=L.useCallback(x=>re.createElement(QO,ln({},x)),[]),{autoFocus:n,decorate:r=YO,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=GO,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=_o(e,UO),f=NO(),[w,h]=L.useState(!1),g=L.useRef(null),C=L.useRef([]),[E,B]=L.useState(),{onUserInput:F,receivedUserInput:A}=jO(),[,S]=L.useReducer(x=>x+1,0);my.set(f,S),Gf.set(f,a);var P=L.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);L.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var O=L.useRef(),H=L.useMemo(()=>oS(()=>{var x=O.current;if((at||!T.isComposing(f))&&(!P.isUpdatingSelection||x!=null&&x.isFlushing())&&!P.isDraggingInternally){var j=T.findDocumentOrShadowRoot(f),{activeElement:N}=j,Q=T.toDOMNode(f,f),oe=j.getSelection();if(N===Q?(P.latestElement=N,or.set(f,!0)):or.delete(f),!oe)return I.deselect(f);var{anchorNode:ee,focusNode:ie}=oe,ce=T.hasEditableTarget(f,ee)||T.isTargetInsideNonReadonlyVoid(f,ee),de=T.hasEditableTarget(f,ie)||T.isTargetInsideNonReadonlyVoid(f,ie);if(ce&&de){var he=T.toSlateRange(f,oe,{exactMatch:!1,suppressThrow:!0});he&&(!T.isComposing(f)&&!(x!=null&&x.hasPendingChanges())&&!(x!=null&&x.isFlushing())?I.select(f,he):x==null||x.handleUserSelect(he))}a&&(!ce||!de)&&I.deselect(f)}},100),[f,a,P]),k=L.useMemo(()=>Zx(H,0),[H]);O.current=vO({node:g,onDOMSelectionChange:H,scheduleOnDOMSelectionChange:k}),na(()=>{var x,j,N;g.current&&(N=Jf(g.current))?(hy.set(f,N),ys.set(f,g.current),Tr.set(f,g.current),ea.set(g.current,f)):Tr.delete(f);var{selection:Q}=f,oe=T.findDocumentOrShadowRoot(f),ee=oe.getSelection();if(!(!ee||!T.isFocused(f)||(x=O.current)!==null&&x!==void 0&&x.hasPendingAction())){var ie=le=>{var Ie=ee.type!=="None";if(!(!Q&&!Ie)){var Re=ee.focusNode,Ae;if(ko&&ee.rangeCount>1){var xt=ee.getRangeAt(0),zt=ee.getRangeAt(ee.rangeCount-1);xt.startContainer===Re?Ae=zt.endContainer:Ae=xt.startContainer}else Ae=ee.anchorNode;var _e=ys.get(f),et=!1;if(_e.contains(Ae)&&_e.contains(Re)&&(et=!0),Ie&&et&&Q&&!le){var me=T.toSlateRange(f,ee,{exactMatch:!0,suppressThrow:!0});if(me&&_.equals(me,Q)){var Le;if(!P.hasMarkPlaceholder||(Le=Ae)!==null&&Le!==void 0&&(Le=Le.parentElement)!==null&&Le!==void 0&&Le.hasAttribute("data-slate-mark-placeholder"))return}}if(Q&&!T.hasRange(f,Q)){f.selection=T.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!0});return}P.isUpdatingSelection=!0;var ke=Q&&T.toDOMRange(f,Q);return ke?(T.isComposing(f)&&!at?ee.collapseToEnd():_.isBackward(Q)?ee.setBaseAndExtent(ke.endContainer,ke.endOffset,ke.startContainer,ke.startOffset):ee.setBaseAndExtent(ke.startContainer,ke.startOffset,ke.endContainer,ke.endOffset),c(f,ke)):ee.removeAllRanges(),ke}};ee.rangeCount<=1&&ie();var ce=((j=O.current)===null||j===void 0?void 0:j.isFlushing())==="action";if(!at||!ce){setTimeout(()=>{P.isUpdatingSelection=!1});return}var de=null,he=requestAnimationFrame(()=>{if(ce){var le=Ie=>{try{var Re=T.toDOMNode(f,f);Re.focus(),ie(Ie)}catch{}};le(),de=setTimeout(()=>{le(!0),P.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(he),de&&clearTimeout(de)}}});var W=L.useCallback(x=>{if(F(),!a&&T.hasEditableTarget(f,x.target)&&!XO(x,o)){var j;if(O.current)return O.current.handleDOMBeforeInput(x);k.flush(),H.flush();var{selection:N}=f,{inputType:Q}=x,oe=x.dataTransfer||x.data||void 0,ee=Q==="insertCompositionText"||Q==="deleteCompositionText";if(ee&&T.isComposing(f))return;var ie=!1;if(Q==="insertText"&&N&&_.isCollapsed(N)&&x.data&&x.data.length===1&&/[a-z ]/i.test(x.data)&&N.anchor.offset!==0){var ce,de;ie=!0,f.marks&&(ie=!1);var{anchor:he}=N,[le,Ie]=T.toDOMPoint(f,he),Re=(ce=le.parentElement)===null||ce===void 0?void 0:ce.closest("a"),Ae=T.getWindow(f);if(ie&&Re&&T.hasDOMNode(f,Re)){var xt,zt=Ae==null?void 0:Ae.document.createTreeWalker(Re,NodeFilter.SHOW_TEXT).lastChild();zt===le&&((xt=zt.textContent)===null||xt===void 0?void 0:xt.length)===Ie&&(ie=!1)}if(ie&&le.parentElement&&(Ae==null||(de=Ae.getComputedStyle(le.parentElement))===null||de===void 0?void 0:de.whiteSpace)==="pre"){var _e=D.above(f,{at:he.path,match:mt=>X.isElement(mt)&&D.isBlock(f,mt)});_e&&q.string(_e[0]).includes(" ")&&(ie=!1)}}if(!Q.startsWith("delete")||Q.startsWith("deleteBy")){var[et]=x.getTargetRanges();if(et){var me=T.toSlateRange(f,et,{exactMatch:!1,suppressThrow:!1});if(!N||!_.equals(N,me)){ie=!1;var Le=!ee&&f.selection&&D.rangeRef(f,f.selection);I.select(f,me),Le&&ta.set(f,Le)}}}if(ee)return;if(ie||x.preventDefault(),N&&_.isExpanded(N)&&Q.startsWith("delete")){var ke=Q.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:ke});return}switch(Q){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":{Q==="insertFromComposition"&&T.isComposing(f)&&(h(!1),Rr.set(f,!1)),(oe==null?void 0:oe.constructor.name)==="DataTransfer"?T.insertData(f,oe):typeof oe=="string"&&(ie?C.current.push(()=>D.insertText(f,oe)):D.insertText(f,oe));break}}var Ne=(j=ta.get(f))===null||j===void 0?void 0:j.unref();ta.delete(f),Ne&&(!f.selection||!_.equals(f.selection,Ne))&&I.select(f,Ne)}},[f,H,F,o,a,k]),$=L.useCallback(x=>{x==null?(H.cancel(),k.cancel(),ys.delete(f),Tr.delete(f),g.current&&rr&&g.current.removeEventListener("beforeinput",W)):rr&&x.addEventListener("beforeinput",W),g.current=x},[H,k,f,W]);na(()=>{var x=T.getWindow(f);return x.document.addEventListener("selectionchange",k),()=>{x.document.removeEventListener("selectionchange",k)}},[k]);var V=r([f,[]]),G=u&&f.children.length===1&&Array.from(q.texts(f)).length===1&&q.string(f)===""&&!w,R=L.useCallback(x=>{if(x&&G){var j;B((j=x.getBoundingClientRect())===null||j===void 0?void 0:j.height)}else B(void 0)},[G]);if(G){var M=D.start(f,[]);V.push({[Po]:!0,placeholder:u,onPlaceholderResize:R,anchor:M,focus:M})}var{marks:U}=f;if(P.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&U){var{anchor:Y}=f.selection,ne=q.leaf(f,Y.path),te=_o(ne,HO);if(!J.equals(ne,U,{loose:!0})){P.hasMarkPlaceholder=!0;var ve=Object.fromEntries(Object.keys(te).map(x=>[x,null]));V.push(ln(ln(ln({[gy]:!0},ve),U),{},{anchor:Y,focus:Y}))}}return L.useEffect(()=>{setTimeout(()=>{var{selection:x}=f;if(x){var{anchor:j}=x,N=q.leaf(f,j.path);if(U&&!J.equals(N,U,{loose:!0})){Xt.set(f,U);return}}Xt.delete(f)})}),re.createElement(Iy.Provider,{value:a},re.createElement(Ny.Provider,{value:r},re.createElement(WO,{node:g,receivedUserInput:A},re.createElement(p,ln(ln({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:rr||!gs?m.spellCheck:!1,autoCorrect:rr||!gs?m.autoCorrect:"false",autoCapitalize:rr||!gs?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:$,style:ln(ln({},y?{}:ln({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:L.useCallback(x=>{if(!rr&&!a&&!it(x,m.onBeforeInput)&&T.hasSelectableTarget(f,x.target)&&(x.preventDefault(),!T.isComposing(f))){var j=x.data;D.insertText(f,j)}},[m.onBeforeInput,f,a]),onInput:L.useCallback(x=>{if(!it(x,m.onInput)){if(O.current){O.current.handleInput();return}for(var j of C.current)j();C.current=[]}},[m.onInput]),onBlur:L.useCallback(x=>{if(!(a||P.isUpdatingSelection||!T.hasSelectableTarget(f,x.target)||it(x,m.onBlur))){var j=T.findDocumentOrShadowRoot(f);if(P.latestElement!==j.activeElement){var{relatedTarget:N}=x,Q=T.toDOMNode(f,f);if(N!==Q&&!(Lt(N)&&N.hasAttribute("data-slate-spacer"))){if(N!=null&&ir(N)&&T.hasDOMNode(f,N)){var oe=T.toSlateNode(f,N);if(X.isElement(oe)&&!f.isVoid(oe))return}if(Ju){var ee=j.getSelection();ee==null||ee.removeAllRanges()}or.delete(f)}}}},[a,P.isUpdatingSelection,P.latestElement,f,m.onBlur]),onClick:L.useCallback(x=>{if(T.hasTarget(f,x.target)&&!it(x,m.onClick)&&ir(x.target)){var j=T.toSlateNode(f,x.target),N=T.findPath(f,j);if(!D.hasPath(f,N)||q.get(f,N)!==j)return;if(x.detail===IO&&N.length>=1){var Q=N;if(!(X.isElement(j)&&D.isBlock(f,j))){var oe,ee=D.above(f,{match:Re=>X.isElement(Re)&&D.isBlock(f,Re),at:N});Q=(oe=ee==null?void 0:ee[1])!==null&&oe!==void 0?oe:N.slice(0,1)}var ie=D.range(f,Q);I.select(f,ie);return}if(a)return;var ce=D.start(f,N),de=D.end(f,N),he=D.void(f,{at:ce}),le=D.void(f,{at:de});if(he&&le&&b.equals(he[1],le[1])){var Ie=D.range(f,ce);I.select(f,Ie)}}},[f,m.onClick,a]),onCompositionEnd:L.useCallback(x=>{if(T.hasSelectableTarget(f,x.target)){var j;if(T.isComposing(f)&&Promise.resolve().then(()=>{h(!1),Rr.set(f,!1)}),(j=O.current)===null||j===void 0||j.handleCompositionEnd(x),it(x,m.onCompositionEnd)||at)return;if(!Ju&&!$S&&!NS&&!zS&&!LS&&x.data){var N=Xt.get(f);Xt.delete(f),N!==void 0&&(Sn.set(f,f.marks),f.marks=N),D.insertText(f,x.data);var Q=Sn.get(f);Sn.delete(f),Q!==void 0&&(f.marks=Q)}}},[m.onCompositionEnd,f]),onCompositionUpdate:L.useCallback(x=>{T.hasSelectableTarget(f,x.target)&&!it(x,m.onCompositionUpdate)&&(T.isComposing(f)||(h(!0),Rr.set(f,!0)))},[m.onCompositionUpdate,f]),onCompositionStart:L.useCallback(x=>{if(T.hasSelectableTarget(f,x.target)){var j;if((j=O.current)===null||j===void 0||j.handleCompositionStart(x),it(x,m.onCompositionStart)||at)return;h(!0);var{selection:N}=f;if(N&&_.isExpanded(N)){D.deleteFragment(f);return}}},[m.onCompositionStart,f]),onCopy:L.useCallback(x=>{T.hasSelectableTarget(f,x.target)&&!it(x,m.onCopy)&&!zy(x)&&(x.preventDefault(),T.setFragmentData(f,x.clipboardData,"copy"))},[m.onCopy,f]),onCut:L.useCallback(x=>{if(!a&&T.hasSelectableTarget(f,x.target)&&!it(x,m.onCut)&&!zy(x)){x.preventDefault(),T.setFragmentData(f,x.clipboardData,"cut");var{selection:j}=f;if(j)if(_.isExpanded(j))D.deleteFragment(f);else{var N=q.parent(f,j.anchor.path);D.isVoid(f,N)&&I.delete(f)}}},[a,f,m.onCut]),onDragOver:L.useCallback(x=>{if(T.hasTarget(f,x.target)&&!it(x,m.onDragOver)){var j=T.toSlateNode(f,x.target);X.isElement(j)&&D.isVoid(f,j)&&x.preventDefault()}},[m.onDragOver,f]),onDragStart:L.useCallback(x=>{if(!a&&T.hasTarget(f,x.target)&&!it(x,m.onDragStart)){var j=T.toSlateNode(f,x.target),N=T.findPath(f,j),Q=X.isElement(j)&&D.isVoid(f,j)||D.void(f,{at:N,voids:!0});if(Q){var oe=D.range(f,N);I.select(f,oe)}P.isDraggingInternally=!0,T.setFragmentData(f,x.dataTransfer,"drag")}},[a,f,m.onDragStart,P]),onDrop:L.useCallback(x=>{if(!a&&T.hasTarget(f,x.target)&&!it(x,m.onDrop)){x.preventDefault();var j=f.selection,N=T.findEventRange(f,x),Q=x.dataTransfer;I.select(f,N),P.isDraggingInternally&&j&&!_.equals(j,N)&&!D.void(f,{at:N,voids:!0})&&I.delete(f,{at:j}),T.insertData(f,Q),T.isFocused(f)||T.focus(f)}P.isDraggingInternally=!1},[a,f,m.onDrop,P]),onDragEnd:L.useCallback(x=>{!a&&P.isDraggingInternally&&m.onDragEnd&&T.hasTarget(f,x.target)&&m.onDragEnd(x),P.isDraggingInternally=!1},[a,P,m,f]),onFocus:L.useCallback(x=>{if(!a&&!P.isUpdatingSelection&&T.hasEditableTarget(f,x.target)&&!it(x,m.onFocus)){var j=T.toDOMNode(f,f),N=T.findDocumentOrShadowRoot(f);if(P.latestElement=N.activeElement,ko&&x.target!==j){j.focus();return}or.set(f,!0)}},[a,P,f,m.onFocus]),onKeyDown:L.useCallback(x=>{if(!a&&T.hasEditableTarget(f,x.target)){var j;(j=O.current)===null||j===void 0||j.handleKeyDown(x);var{nativeEvent:N}=x;if(T.isComposing(f)&&N.isComposing===!1&&(Rr.set(f,!1),h(!1)),it(x,m.onKeyDown)||T.isComposing(f))return;var{selection:Q}=f,oe=f.children[Q!==null?Q.focus.path[0]:0],ee=T0(q.string(oe))==="rtl";if(Se.isRedo(N)){x.preventDefault();var ie=f;typeof ie.redo=="function"&&ie.redo();return}if(Se.isUndo(N)){x.preventDefault();var ce=f;typeof ce.undo=="function"&&ce.undo();return}if(Se.isMoveLineBackward(N)){x.preventDefault(),I.move(f,{unit:"line",reverse:!0});return}if(Se.isMoveLineForward(N)){x.preventDefault(),I.move(f,{unit:"line"});return}if(Se.isExtendLineBackward(N)){x.preventDefault(),I.move(f,{unit:"line",edge:"focus",reverse:!0});return}if(Se.isExtendLineForward(N)){x.preventDefault(),I.move(f,{unit:"line",edge:"focus"});return}if(Se.isMoveBackward(N)){x.preventDefault(),Q&&_.isCollapsed(Q)?I.move(f,{reverse:!ee}):I.collapse(f,{edge:ee?"end":"start"});return}if(Se.isMoveForward(N)){x.preventDefault(),Q&&_.isCollapsed(Q)?I.move(f,{reverse:ee}):I.collapse(f,{edge:ee?"start":"end"});return}if(Se.isMoveWordBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)&&I.collapse(f,{edge:"focus"}),I.move(f,{unit:"word",reverse:!ee});return}if(Se.isMoveWordForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)&&I.collapse(f,{edge:"focus"}),I.move(f,{unit:"word",reverse:ee});return}if(rr){if((vy||Ju)&&Q&&(Se.isDeleteBackward(N)||Se.isDeleteForward(N))&&_.isCollapsed(Q)){var de=q.parent(f,Q.anchor.path);if(X.isElement(de)&&D.isVoid(f,de)&&(D.isInline(f,de)||D.isBlock(f,de))){x.preventDefault(),D.deleteBackward(f,{unit:"block"});return}}}else{if(Se.isBold(N)||Se.isItalic(N)||Se.isTransposeCharacter(N)){x.preventDefault();return}if(Se.isSoftBreak(N)){x.preventDefault(),D.insertSoftBreak(f);return}if(Se.isSplitBlock(N)){x.preventDefault(),D.insertBreak(f);return}if(Se.isDeleteBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f);return}if(Se.isDeleteForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f);return}if(Se.isDeleteLineBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"line"});return}if(Se.isDeleteLineForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"line"});return}if(Se.isDeleteWordBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"word"});return}if(Se.isDeleteWordForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"word"});return}}}},[a,f,m.onKeyDown]),onPaste:L.useCallback(x=>{!a&&T.hasEditableTarget(f,x.target)&&!it(x,m.onPaste)&&(!rr||US(x.nativeEvent)||Ju)&&(x.preventDefault(),T.insertData(f,x.clipboardData))},[a,f,m.onPaste])}),re.createElement(KO,{decorations:V,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},QO=e=>{var{attributes:t,children:n}=e;return re.createElement("span",ln({},t),n,at&&re.createElement("br",null))},YO=()=>[],GO=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),iS(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},it=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},zy=e=>ir(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),XO=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},ZO=L.createContext(!1),JO=L.createContext({});function e3(e){var t=L.useRef([]).current,n=L.useRef({editor:e}).current,r=L.useCallback(u=>{n.editor=u,t.forEach(a=>a(u))},[t,n]),o=L.useMemo(()=>({getSlate:()=>n.editor,addEventListener:u=>(t.push(u),()=>{t.splice(t.indexOf(u),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var t3=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],n3=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=_o(e,t3),[s,l]=re.useState(()=>{if(!q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ze.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(ze.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:c,onChange:d}=e3(t),p=L.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]);L.useEffect(()=>(Xf.set(t,p),()=>{Xf.set(t,()=>{})}),[t,p]);var[y,m]=L.useState(T.isFocused(t));return L.useEffect(()=>{m(T.isFocused(t))},[t]),na(()=>{var f=()=>m(T.isFocused(t));return dy>=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(JO.Provider,{value:c},re.createElement(My.Provider,{value:s},re.createElement(Kf.Provider,{value:s.editor},re.createElement(ZO.Provider,{value:y},n))))},Vy=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Wy=(e,t,n)=>{var r=T.toDOMRange(e,t).getBoundingClientRect(),o=T.toDOMRange(e,n).getBoundingClientRect();return Vy(r,o)&&Vy(o,r)},r3=(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(Wy(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;)Wy(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 Uy(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 Hy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var o3=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 Cs.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=Zf.get(r))===null||d===void 0||d(),!Xt.get(r)&&(p=ht.get(r))!==null&&p!==void 0&&p.length&&Xt.set(r,null),Sn.delete(r),i(l,c)},r.removeMark=l=>{var c;!Xt.get(r)&&(c=ht.get(r))!==null&&c!==void 0&&c.length&&Xt.set(r,null),Sn.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=r3(r,p);_.isCollapsed(y)||I.delete(r,{at:y})}}},r.apply=l=>{var c=[],d=[],p=ht.get(r);if(p!=null&&p.length){var y=p.map($=>rO($,l)).filter(Boolean);ht.set(r,y)}var m=ar.get(r);m&&ar.set(r,Ay(r,m,l));var f=ur.get(r);if(f!=null&&f.at){var w=ae.isPoint(f==null?void 0:f.at)?rd(r,f.at,l):Ay(r,f.at,l);ur.set(r,w?Hy(Hy({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...To(r,l.path));break}case"set_selection":{var h;(h=ta.get(r))===null||h===void 0||h.unref(),ta.delete(r);break}case"insert_node":case"remove_node":{c.push(...To(r,b.parent(l.path)));break}case"merge_node":{var g=b.previous(l.path);c.push(...To(r,g));break}case"move_node":{var C=b.common(b.parent(l.path),b.parent(l.newPath));c.push(...To(r,C));var E;b.isBefore(l.path,l.newPath)?(c.push(...To(r,b.parent(l.path))),E=l.newPath):(c.push(...To(r,b.parent(l.newPath))),E=l.path);var B=q.get(t,b.parent(E)),F=T.findKey(r,B),A=D.pathRef(r,b.parent(E));d.push([A,F]);break}}o(l);for(var[S,P]of c){var[O]=D.node(r,S);Ds.set(O,P)}for(var[H,k]of d)if(H.current){var[W]=D.node(r,H.current);Ds.set(W,k)}},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=T.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=T.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 H=O.getAttribute("data-slate-zero-width")==="n";O.textContent=H?`
61
+ `:""}),yy(h)){var B=h.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(h),w.appendChild(B),h=B}var F=r.getFragment(),A=JSON.stringify(F),S=window.btoa(encodeURIComponent(A));h.setAttribute("data-slate-fragment",S),l.setData("application/".concat(n),S);var P=w.ownerDocument.createElement("div");return P.appendChild(w),P.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(P),l.setData("text/html",P.innerHTML),l.setData("text/plain",Cy(P)),w.ownerDocument.body.removeChild(P),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||YS(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&&I.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var c=dy<18?xo.unstable_batchedUpdates:d=>d();c(()=>{var d=Xf.get(r);d&&d(l),u(l)})},r},To=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=T.findKey(e,r);n.push([o,u])}return n},u3={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Rn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Rn.isOperationList(e.undos[0].operations))}},ad=new WeakMap,id=new WeakMap,Ro={isHistoryEditor(e){return u3.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return id.get(e)},isSaving(e){return ad.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ro.isMerging(e);id.set(e,!1),t(),id.set(e,n)},withoutSaving(e,t){var n=Ro.isSaving(e);ad.set(e,!1),t(),ad.set(e,n)}},a3=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&&I.setSelection(t,u.selectionBefore),Ro.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];Ro.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Rn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&I.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=Ro.isSaving(t),c=Ro.isMerging(t);if(l==null&&(l=s3(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=i3(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},i3=(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)),s3=(e,t)=>e.type!=="set_selection";function l3(e){const n=`docx-h${e.element.level}`;return Te.jsx(n,{...e.attributes,children:e.children})}function c3(e){return Te.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:f3,Consumer:d3}=L.createContext(!1);function p3(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Te.jsx(f3,{value:!!t.ordered,children:Te.jsx(n,{...e.attributes,children:e.children})})}function v3(e){return Te.jsx(d3,{children:t=>Te.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const h3={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},m3=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/\~\~(.+?)\~\~$/,"del"],[/\~(.+?)\~$/,"underline"]];function g3(e){return e.element.type==="heading"?Te.jsx(l3,{...e}):e.element.type==="blockquote"?Te.jsx(c3,{...e}):e.element.type==="list"?Te.jsx(p3,{...e}):e.element.type==="list-item"?Te.jsx(v3,{...e}):Te.jsx("p",{...e.attributes,children:e.children})}function y3({attributes:e,children:t,leaf:n}){return n.bold&&(t=Te.jsx("strong",{children:t})),n.code&&(t=Te.jsx("code",{children:t})),n.italic&&(t=Te.jsx("em",{children:t})),n.del&&(t=Te.jsx("del",{children:t})),n.underline&&(t=Te.jsx("u",{children:t})),Te.jsx("span",{...e,children:t})}function D3(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=L.useMemo(()=>r(o3(a3(IA()))),[]),u=L.useCallback(c=>Te.jsx(g3,{...c}),[]),a=L.useCallback(c=>Te.jsx(y3,{...c}),[]),i=L.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=L.useCallback(c=>tE.trigger(c),[o]),l=L.useCallback(c=>Lp.trigger(c),[o]);return Sa.value=o,Te.jsx(n3,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Te.jsx(qO,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const C3=nu(v.defineComponent({__name:"Markdown",props:{initialValue:{type:null}},setup(e){const t=e,n=LF(D3);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)&&ae.equals(l.anchor,D.end(u,d))){if(c.type==="list-item")return I.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(c.type!=="paragraph")return I.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=h3[f];if(w){I.select(u,m),_.isCollapsed(m)||I.delete(u);const h={type:w};w==="heading"?h.level=`${f.length}`:w==="blockquote"&&(h.type="paragraph"),I.setNodes(u,h,r(u)),w==="blockquote"?I.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&I.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of m3){const[C,E]=f.match(h)||[];if(C){const B=D.before(u,c,{unit:"character",distance:C.length}),F=D.range(u,B,c);return I.insertText(u,E,{at:F}),I.setNodes(u,{[g]:!0},{at:F,match:A=>J.isText(A),split:!0}),I.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&&ae.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,I.unwrapNodes(u,{at:m})):f?(h=!0,I.moveNodes(u,{to:m})):w&&(h=!0,I.moveNodes(u,{to:b.next(m)})),h){I.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&I.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=Vp();Qe(xa(),"dragstart",a=>{u.value&&a.preventDefault()})}return(u,a)=>(v.openBlock(),v.createBlock(v.unref(n),v.mergeProps(t,{withOverride:o}),null,16))}}),[["styles",["*[data-v-01a5af76],[data-v-01a5af76]:before,[data-v-01a5af76]: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-01a5af76]::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-01a5af76]{display:list-item}"]],["__scopeId","data-v-01a5af76"]]),w3=nu(v.defineComponent({__name:"index",props:{initialValue:{type:null}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createCommentVNode(" Markdown "),v.createVNode(C3,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(VA)],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"]]),E3=nu(v.defineComponent({__name:"index",props:{initialValue:{type:null}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(w3,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"]]),B3="1.9.0-beta.1";function A3(e=oE()){const t=xa(),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})}Xw(document.head,r,{childList:!0}),r()}),e}function b3(){const e=xa();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[B3])??{};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:A3()}}const F3=nu(v.defineComponent({__name:"App",props:{initialValue:{type:null}},emits:["change"],setup(e,{emit:t}){const n=t;return b3(),Lp.on(r=>{n("change",r)}),v.onMounted(()=>{Oa.value=xa().value.parentNode}),(r,o)=>{const u=YD;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(E3,{"initial-value":r.initialValue},null,8,["initial-value"])]),_:1})}}}),[["styles",["*[data-v-6eedc1cf],[data-v-6eedc1cf]:before,[data-v-6eedc1cf]: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-6eedc1cf]::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-6eedc1cf"]]),x3="smart-docx-editor";function S3(e,t){var n;uE&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}S3(x3,F3)})((Ky=SmartCore["1.9.0-beta.1"])==null?void 0:Ky.Vue);