@groupher/rich-editor 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +69 -0
  2. package/components.json +21 -0
  3. package/dist/rich-editor.css +1 -0
  4. package/dist/rich-editor.es.js +60825 -0
  5. package/dist/rich-editor.umd.js +361 -0
  6. package/dist/vite.svg +1 -0
  7. package/eslint.config.js +26 -0
  8. package/index.html +13 -0
  9. package/package.json +54 -0
  10. package/public/vite.svg +1 -0
  11. package/src/RichEditor.tsx +102 -0
  12. package/src/assets/react.svg +1 -0
  13. package/src/components/editor/plate-editor.tsx +54 -0
  14. package/src/components/editor/plugins/basic-blocks-base-kit.tsx +35 -0
  15. package/src/components/editor/plugins/basic-blocks-kit.tsx +88 -0
  16. package/src/components/editor/plugins/basic-marks-base-kit.tsx +27 -0
  17. package/src/components/editor/plugins/basic-marks-kit.tsx +41 -0
  18. package/src/components/editor/plugins/basic-nodes-kit.tsx +6 -0
  19. package/src/components/ui/blockquote-node-static.tsx +11 -0
  20. package/src/components/ui/blockquote-node.tsx +13 -0
  21. package/src/components/ui/button.tsx +59 -0
  22. package/src/components/ui/code-node-static.tsx +15 -0
  23. package/src/components/ui/code-node.tsx +17 -0
  24. package/src/components/ui/dropdown-menu.tsx +255 -0
  25. package/src/components/ui/editor-static.tsx +53 -0
  26. package/src/components/ui/editor.tsx +129 -0
  27. package/src/components/ui/fixed-toolbar.tsx +17 -0
  28. package/src/components/ui/heading-node-static.tsx +66 -0
  29. package/src/components/ui/heading-node.tsx +58 -0
  30. package/src/components/ui/highlight-node-static.tsx +11 -0
  31. package/src/components/ui/highlight-node.tsx +13 -0
  32. package/src/components/ui/hr-node-static.tsx +20 -0
  33. package/src/components/ui/hr-node.tsx +33 -0
  34. package/src/components/ui/kbd-node-static.tsx +15 -0
  35. package/src/components/ui/kbd-node.tsx +17 -0
  36. package/src/components/ui/mark-toolbar-button.tsx +19 -0
  37. package/src/components/ui/paragraph-node-static.tsx +13 -0
  38. package/src/components/ui/paragraph-node.tsx +15 -0
  39. package/src/components/ui/separator.tsx +28 -0
  40. package/src/components/ui/toolbar.tsx +389 -0
  41. package/src/components/ui/tooltip.tsx +59 -0
  42. package/src/global.css +235 -0
  43. package/src/lib/utils.ts +6 -0
  44. package/src/main.tsx +11 -0
  45. package/src/vite-env.d.ts +1 -0
  46. package/tsconfig.app.json +31 -0
  47. package/tsconfig.json +10 -0
  48. package/tsconfig.node.json +25 -0
  49. package/vite.config.ts +40 -0
@@ -0,0 +1,361 @@
1
+ (function(k,hs){typeof exports=="object"&&typeof module<"u"?hs(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],hs):(k=typeof globalThis<"u"?globalThis:k||self,hs(k.React,k.ReactDOM))})(this,(function(k,hs){"use strict";function bN(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ye=bN(k),EN=bN(hs);var hE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vE={exports:{}},sy={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var DN;function JU(){if(DN)return sy;DN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,l,s){var f=null;if(s!==void 0&&(f=""+s),l.key!==void 0&&(f=""+l.key),"key"in l){s={};for(var h in l)h!=="key"&&(s[h]=l[h])}else s=l;return l=s.ref,{$$typeof:e,type:r,key:f,ref:l!==void 0?l:null,props:s}}return sy.Fragment=t,sy.jsx=n,sy.jsxs=n,sy}var cy={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var SN;function eH(){return SN||(SN=1,process.env.NODE_ENV!=="production"&&(function(){function e(ie){if(ie==null)return null;if(typeof ie=="function")return ie.$$typeof===Q?null:ie.displayName||ie.name||null;if(typeof ie=="string")return ie;switch(ie){case _:return"Fragment";case R:return"Profiler";case B:return"StrictMode";case L:return"Suspense";case Y:return"SuspenseList";case $:return"Activity"}if(typeof ie=="object")switch(typeof ie.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ie.$$typeof){case x:return"Portal";case j:return(ie.displayName||"Context")+".Provider";case O:return(ie._context.displayName||"Context")+".Consumer";case P:var xe=ie.render;return ie=ie.displayName,ie||(ie=xe.displayName||xe.name||"",ie=ie!==""?"ForwardRef("+ie+")":"ForwardRef"),ie;case G:return xe=ie.displayName||null,xe!==null?xe:e(ie.type)||"Memo";case z:xe=ie._payload,ie=ie._init;try{return e(ie(xe))}catch{}}return null}function t(ie){return""+ie}function n(ie){try{t(ie);var xe=!1}catch{xe=!0}if(xe){xe=console;var Re=xe.error,me=typeof Symbol=="function"&&Symbol.toStringTag&&ie[Symbol.toStringTag]||ie.constructor.name||"Object";return Re.call(xe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),t(ie)}}function r(ie){if(ie===_)return"<>";if(typeof ie=="object"&&ie!==null&&ie.$$typeof===z)return"<...>";try{var xe=e(ie);return xe?"<"+xe+">":"<...>"}catch{return"<...>"}}function l(){var ie=I.A;return ie===null?null:ie.getOwner()}function s(){return Error("react-stack-top-frame")}function f(ie){if(H.call(ie,"key")){var xe=Object.getOwnPropertyDescriptor(ie,"key").get;if(xe&&xe.isReactWarning)return!1}return ie.key!==void 0}function h(ie,xe){function Re(){ne||(ne=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",xe))}Re.isReactWarning=!0,Object.defineProperty(ie,"key",{get:Re,configurable:!0})}function p(){var ie=e(this.type);return U[ie]||(U[ie]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),ie=this.props.ref,ie!==void 0?ie:null}function y(ie,xe,Re,me,ke,Xe,Ye,Qe){return Re=Xe.ref,ie={$$typeof:A,type:ie,key:xe,props:Xe,_owner:ke},(Re!==void 0?Re:null)!==null?Object.defineProperty(ie,"ref",{enumerable:!1,get:p}):Object.defineProperty(ie,"ref",{enumerable:!1,value:null}),ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ie,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ie,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ye}),Object.defineProperty(ie,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Qe}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie}function b(ie,xe,Re,me,ke,Xe,Ye,Qe){var ft=xe.children;if(ft!==void 0)if(me)if(K(ft)){for(me=0;me<ft.length;me++)S(ft[me]);Object.freeze&&Object.freeze(ft)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else S(ft);if(H.call(xe,"key")){ft=e(ie);var ce=Object.keys(xe).filter(function(ue){return ue!=="key"});me=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",he[ft+me]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,me,ft,ce,ft),he[ft+me]=!0)}if(ft=null,Re!==void 0&&(n(Re),ft=""+Re),f(xe)&&(n(xe.key),ft=""+xe.key),"key"in xe){Re={};for(var le in xe)le!=="key"&&(Re[le]=xe[le])}else Re=xe;return ft&&h(Re,typeof ie=="function"?ie.displayName||ie.name||"Unknown":ie),y(ie,ft,Xe,ke,l(),Re,Ye,Qe)}function S(ie){typeof ie=="object"&&ie!==null&&ie.$$typeof===A&&ie._store&&(ie._store.validated=1)}var C=k,A=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),j=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),I=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,K=Array.isArray,W=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(ie){return ie()}};var ne,U={},Z=C.react_stack_bottom_frame.bind(C,s)(),J=W(r(s)),he={};cy.Fragment=_,cy.jsx=function(ie,xe,Re,me,ke){var Xe=1e4>I.recentlyCreatedOwnerStacks++;return b(ie,xe,Re,!1,me,ke,Xe?Error("react-stack-top-frame"):Z,Xe?W(r(ie)):J)},cy.jsxs=function(ie,xe,Re,me,ke){var Xe=1e4>I.recentlyCreatedOwnerStacks++;return b(ie,xe,Re,!0,me,ke,Xe?Error("react-stack-top-frame"):Z,Xe?W(r(ie)):J)}})()),cy}var CN;function tH(){return CN||(CN=1,process.env.NODE_ENV==="production"?vE.exports=JU():vE.exports=eH()),vE.exports}var Me=tH(),pE={exports:{}},fy={},mE={exports:{}},Ow={};/**
23
+ * @license React
24
+ * scheduler.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var wN;function nH(){return wN||(wN=1,(function(e){function t(U,Z){var J=U.length;U.push(Z);e:for(;0<J;){var he=J-1>>>1,ie=U[he];if(0<l(ie,Z))U[he]=Z,U[J]=ie,J=he;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var Z=U[0],J=U.pop();if(J!==Z){U[0]=J;e:for(var he=0,ie=U.length,xe=ie>>>1;he<xe;){var Re=2*(he+1)-1,me=U[Re],ke=Re+1,Xe=U[ke];if(0>l(me,J))ke<ie&&0>l(Xe,me)?(U[he]=Xe,U[ke]=J,he=ke):(U[he]=me,U[Re]=J,he=Re);else if(ke<ie&&0>l(Xe,J))U[he]=Xe,U[ke]=J,he=ke;else break e}}return Z}function l(U,Z){var J=U.sortIndex-Z.sortIndex;return J!==0?J:U.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],y=[],b=1,S=null,C=3,A=!1,x=!1,_=!1,B=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function P(U){for(var Z=n(y);Z!==null;){if(Z.callback===null)r(y);else if(Z.startTime<=U)r(y),Z.sortIndex=Z.expirationTime,t(p,Z);else break;Z=n(y)}}function L(U){if(_=!1,P(U),!x)if(n(p)!==null)x=!0,Y||(Y=!0,H());else{var Z=n(y);Z!==null&&ne(L,Z.startTime-U)}}var Y=!1,G=-1,z=5,$=-1;function Q(){return B?!0:!(e.unstable_now()-$<z)}function I(){if(B=!1,Y){var U=e.unstable_now();$=U;var Z=!0;try{e:{x=!1,_&&(_=!1,O(G),G=-1),A=!0;var J=C;try{t:{for(P(U),S=n(p);S!==null&&!(S.expirationTime>U&&Q());){var he=S.callback;if(typeof he=="function"){S.callback=null,C=S.priorityLevel;var ie=he(S.expirationTime<=U);if(U=e.unstable_now(),typeof ie=="function"){S.callback=ie,P(U),Z=!0;break t}S===n(p)&&r(p),P(U)}else r(p);S=n(p)}if(S!==null)Z=!0;else{var xe=n(y);xe!==null&&ne(L,xe.startTime-U),Z=!1}}break e}finally{S=null,C=J,A=!1}Z=void 0}}finally{Z?H():Y=!1}}}var H;if(typeof j=="function")H=function(){j(I)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,W=K.port2;K.port1.onmessage=I,H=function(){W.postMessage(null)}}else H=function(){R(I,0)};function ne(U,Z){G=R(function(){U(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_next=function(U){switch(C){case 1:case 2:case 3:var Z=3;break;default:Z=C}var J=C;C=Z;try{return U()}finally{C=J}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(U,Z){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var J=C;C=U;try{return Z()}finally{C=J}},e.unstable_scheduleCallback=function(U,Z,J){var he=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?he+J:he):J=he,U){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=J+ie,U={id:b++,callback:Z,priorityLevel:U,startTime:J,expirationTime:ie,sortIndex:-1},J>he?(U.sortIndex=J,t(y,U),n(p)===null&&U===n(y)&&(_?(O(G),G=-1):_=!0,ne(L,J-he))):(U.sortIndex=ie,t(p,U),x||A||(x=!0,Y||(Y=!0,H()))),U},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(U){var Z=C;return function(){var J=C;C=Z;try{return U.apply(this,arguments)}finally{C=J}}}})(Ow)),Ow}var xw={};/**
31
+ * @license React
32
+ * scheduler.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var AN;function rH(){return AN||(AN=1,(function(e){process.env.NODE_ENV!=="production"&&(function(){function t(){if(L=!1,$){var U=e.unstable_now();H=U;var Z=!0;try{e:{j=!1,P&&(P=!1,G(Q),Q=-1),O=!0;var J=R;try{t:{for(f(U),B=r(A);B!==null&&!(B.expirationTime>U&&p());){var he=B.callback;if(typeof he=="function"){B.callback=null,R=B.priorityLevel;var ie=he(B.expirationTime<=U);if(U=e.unstable_now(),typeof ie=="function"){B.callback=ie,f(U),Z=!0;break t}B===r(A)&&l(A),f(U)}else l(A);B=r(A)}if(B!==null)Z=!0;else{var xe=r(x);xe!==null&&y(h,xe.startTime-U),Z=!1}}break e}finally{B=null,R=J,O=!1}Z=void 0}}finally{Z?K():$=!1}}}function n(U,Z){var J=U.length;U.push(Z);e:for(;0<J;){var he=J-1>>>1,ie=U[he];if(0<s(ie,Z))U[he]=Z,U[J]=ie,J=he;else break e}}function r(U){return U.length===0?null:U[0]}function l(U){if(U.length===0)return null;var Z=U[0],J=U.pop();if(J!==Z){U[0]=J;e:for(var he=0,ie=U.length,xe=ie>>>1;he<xe;){var Re=2*(he+1)-1,me=U[Re],ke=Re+1,Xe=U[ke];if(0>s(me,J))ke<ie&&0>s(Xe,me)?(U[he]=Xe,U[ke]=J,he=ke):(U[he]=me,U[Re]=J,he=Re);else if(ke<ie&&0>s(Xe,J))U[he]=Xe,U[ke]=J,he=ke;else break e}}return Z}function s(U,Z){var J=U.sortIndex-Z.sortIndex;return J!==0?J:U.id-Z.id}function f(U){for(var Z=r(x);Z!==null;){if(Z.callback===null)l(x);else if(Z.startTime<=U)l(x),Z.sortIndex=Z.expirationTime,n(A,Z);else break;Z=r(x)}}function h(U){if(P=!1,f(U),!j)if(r(A)!==null)j=!0,$||($=!0,K());else{var Z=r(x);Z!==null&&y(h,Z.startTime-U)}}function p(){return L?!0:!(e.unstable_now()-H<I)}function y(U,Z){Q=Y(function(){U(e.unstable_now())},Z)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;e.unstable_now=function(){return b.now()}}else{var S=Date,C=S.now();e.unstable_now=function(){return S.now()-C}}var A=[],x=[],_=1,B=null,R=3,O=!1,j=!1,P=!1,L=!1,Y=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null,$=!1,Q=-1,I=5,H=-1;if(typeof z=="function")var K=function(){z(t)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ne=W.port2;W.port1.onmessage=t,K=function(){ne.postMessage(null)}}else K=function(){Y(t,0)};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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_next=function(U){switch(R){case 1:case 2:case 3:var Z=3;break;default:Z=R}var J=R;R=Z;try{return U()}finally{R=J}},e.unstable_requestPaint=function(){L=!0},e.unstable_runWithPriority=function(U,Z){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var J=R;R=U;try{return Z()}finally{R=J}},e.unstable_scheduleCallback=function(U,Z,J){var he=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?he+J:he):J=he,U){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=J+ie,U={id:_++,callback:Z,priorityLevel:U,startTime:J,expirationTime:ie,sortIndex:-1},J>he?(U.sortIndex=J,n(x,U),r(A)===null&&U===r(x)&&(P?(G(Q),Q=-1):P=!0,y(h,J-he))):(U.sortIndex=ie,n(A,U),j||O||(j=!0,$||($=!0,K()))),U},e.unstable_shouldYield=p,e.unstable_wrapCallback=function(U){var Z=R;return function(){var J=R;R=Z;try{return U.apply(this,arguments)}finally{R=J}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(xw)),xw}var ON;function xN(){return ON||(ON=1,process.env.NODE_ENV==="production"?mE.exports=nH():mE.exports=rH()),mE.exports}/**
39
+ * @license React
40
+ * react-dom-client.production.js
41
+ *
42
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var TN;function aH(){if(TN)return fy;TN=1;var e=xN(),t=k,n=hs;function r(u){var c="https://react.dev/errors/"+u;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+u+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function s(u){var c=u,d=u;if(u.alternate)for(;c.return;)c=c.return;else{u=c;do c=u,(c.flags&4098)!==0&&(d=c.return),u=c.return;while(u)}return c.tag===3?d:null}function f(u){if(u.tag===13){var c=u.memoizedState;if(c===null&&(u=u.alternate,u!==null&&(c=u.memoizedState)),c!==null)return c.dehydrated}return null}function h(u){if(s(u)!==u)throw Error(r(188))}function p(u){var c=u.alternate;if(!c){if(c=s(u),c===null)throw Error(r(188));return c!==u?null:u}for(var d=u,m=c;;){var D=d.return;if(D===null)break;var w=D.alternate;if(w===null){if(m=D.return,m!==null){d=m;continue}break}if(D.child===w.child){for(w=D.child;w;){if(w===d)return h(D),u;if(w===m)return h(D),c;w=w.sibling}throw Error(r(188))}if(d.return!==m.return)d=D,m=w;else{for(var M=!1,q=D.child;q;){if(q===d){M=!0,d=D,m=w;break}if(q===m){M=!0,m=D,d=w;break}q=q.sibling}if(!M){for(q=w.child;q;){if(q===d){M=!0,d=w,m=D;break}if(q===m){M=!0,m=w,d=D;break}q=q.sibling}if(!M)throw Error(r(189))}}if(d.alternate!==m)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?u:c}function y(u){var c=u.tag;if(c===5||c===26||c===27||c===6)return u;for(u=u.child;u!==null;){if(c=y(u),c!==null)return c;u=u.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),j=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function H(u){return u===null||typeof u!="object"?null:(u=I&&u[I]||u["@@iterator"],typeof u=="function"?u:null)}var K=Symbol.for("react.client.reference");function W(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===K?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case x:return"Fragment";case B:return"Profiler";case _:return"StrictMode";case L:return"Suspense";case Y:return"SuspenseList";case $:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case A:return"Portal";case j:return(u.displayName||"Context")+".Provider";case O:return(u._context.displayName||"Context")+".Consumer";case P:var c=u.render;return u=u.displayName,u||(u=c.displayName||c.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case G:return c=u.displayName||null,c!==null?c:W(u.type)||"Memo";case z:c=u._payload,u=u._init;try{return W(u(c))}catch{}}return null}var ne=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},he=[],ie=-1;function xe(u){return{current:u}}function Re(u){0>ie||(u.current=he[ie],he[ie]=null,ie--)}function me(u,c){ie++,he[ie]=u.current,u.current=c}var ke=xe(null),Xe=xe(null),Ye=xe(null),Qe=xe(null);function ft(u,c){switch(me(Ye,c),me(Xe,u),me(ke,null),c.nodeType){case 9:case 11:u=(u=c.documentElement)&&(u=u.namespaceURI)?to(u):0;break;default:if(u=c.tagName,c=c.namespaceURI)c=to(c),u=Kf(c,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}Re(ke),me(ke,u)}function ce(){Re(ke),Re(Xe),Re(Ye)}function le(u){u.memoizedState!==null&&me(Qe,u);var c=ke.current,d=Kf(c,u.type);c!==d&&(me(Xe,u),me(ke,d))}function ue(u){Xe.current===u&&(Re(ke),Re(Xe)),Qe.current===u&&(Re(Qe),Ka._currentValue=J)}var fe=Object.prototype.hasOwnProperty,Ue=e.unstable_scheduleCallback,He=e.unstable_cancelCallback,ut=e.unstable_shouldYield,yt=e.unstable_requestPaint,Ie=e.unstable_now,an=e.unstable_getCurrentPriorityLevel,Wt=e.unstable_ImmediatePriority,Bn=e.unstable_UserBlockingPriority,Vt=e.unstable_NormalPriority,Ft=e.unstable_LowPriority,Jt=e.unstable_IdlePriority,ri=e.log,er=e.unstable_setDisableYieldValue,va=null,Dn=null;function Lt(u){if(typeof ri=="function"&&er(u),Dn&&typeof Dn.setStrictMode=="function")try{Dn.setStrictMode(va,u)}catch{}}var Mt=Math.clz32?Math.clz32:Ms,Ti=Math.log,Ns=Math.LN2;function Ms(u){return u>>>=0,u===0?32:31-(Ti(u)/Ns|0)|0}var Nr=256,hr=4194304;function pa(u){var c=u&42;if(c!==0)return c;switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function Bi(u,c,d){var m=u.pendingLanes;if(m===0)return 0;var D=0,w=u.suspendedLanes,M=u.pingedLanes;u=u.warmLanes;var q=m&134217727;return q!==0?(m=q&~w,m!==0?D=pa(m):(M&=q,M!==0?D=pa(M):d||(d=q&~u,d!==0&&(D=pa(d))))):(q=m&~w,q!==0?D=pa(q):M!==0?D=pa(M):d||(d=m&~u,d!==0&&(D=pa(d)))),D===0?0:c!==0&&c!==D&&(c&w)===0&&(w=D&-D,d=c&-c,w>=d||w===32&&(d&4194048)!==0)?c:D}function ai(u,c){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&c)===0}function Mr(u,c){switch(u){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function So(){var u=Nr;return Nr<<=1,(Nr&4194048)===0&&(Nr=256),u}function zs(){var u=hr;return hr<<=1,(hr&62914560)===0&&(hr=4194304),u}function Co(u){for(var c=[],d=0;31>d;d++)c.push(u);return c}function ks(u,c){u.pendingLanes|=c,c!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function zS(u,c,d,m,D,w){var M=u.pendingLanes;u.pendingLanes=d,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=d,u.entangledLanes&=d,u.errorRecoveryDisabledLanes&=d,u.shellSuspendCounter=0;var q=u.entanglements,ee=u.expirationTimes,pe=u.hiddenUpdates;for(d=M&~d;0<d;){var _e=31-Mt(d),ze=1<<_e;q[_e]=0,ee[_e]=-1;var be=pe[_e];if(be!==null)for(pe[_e]=null,_e=0;_e<be.length;_e++){var De=be[_e];De!==null&&(De.lane&=-536870913)}d&=~ze}m!==0&&Qd(u,m,0),w!==0&&D===0&&u.tag!==0&&(u.suspendedLanes|=w&~(M&~c))}function Qd(u,c,d){u.pendingLanes|=c,u.suspendedLanes&=~c;var m=31-Mt(c);u.entangledLanes|=c,u.entanglements[m]=u.entanglements[m]|1073741824|d&4194090}function Wd(u,c){var d=u.entangledLanes|=c;for(u=u.entanglements;d;){var m=31-Mt(d),D=1<<m;D&c|u[m]&c&&(u[m]|=c),d&=~D}}function fl(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function Up(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function kS(){var u=Z.p;return u!==0?u:(u=window.event,u===void 0?32:T1(u.type))}function tR(u,c){var d=Z.p;try{return Z.p=u,c()}finally{Z.p=d}}var Er=Math.random().toString(36).slice(2),zr="__reactFiber$"+Er,ma="__reactProps$"+Er,rf="__reactContainer$"+Er,Hp="__reactEvents$"+Er,PS="__reactListeners$"+Er,$p="__reactHandles$"+Er,jS="__reactResources$"+Er,et="__reactMarker$"+Er;function Jd(u){delete u[zr],delete u[ma],delete u[Hp],delete u[PS],delete u[$p]}function $r(u){var c=u[zr];if(c)return c;for(var d=u.parentNode;d;){if(c=d[rf]||d[zr]){if(d=c.alternate,c.child!==null||d!==null&&d.child!==null)for(u=Zr(u);u!==null;){if(d=u[zr])return d;u=Zr(u)}return c}u=d,d=u.parentNode}return null}function Ps(u){if(u=u[zr]||u[rf]){var c=u.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return u}return null}function eh(u){var c=u.tag;if(c===5||c===26||c===27||c===6)return u.stateNode;throw Error(r(33))}function zu(u){var c=u[jS];return c||(c=u[jS]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Dr(u){u[et]=!0}var th=new Set,ii={};function wo(u,c){Ao(u,c),Ao(u+"Capture",c)}function Ao(u,c){for(ii[u]=c,u=0;u<c.length;u++)th.add(c[u])}var FS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Vp={},Ab={};function LS(u){return fe.call(Ab,u)?!0:fe.call(Vp,u)?!1:FS.test(u)?Ab[u]=!0:(Vp[u]=!0,!1)}function ku(u,c,d){if(LS(c))if(d===null)u.removeAttribute(c);else{switch(typeof d){case"undefined":case"function":case"symbol":u.removeAttribute(c);return;case"boolean":var m=c.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){u.removeAttribute(c);return}}u.setAttribute(c,""+d)}}function nh(u,c,d){if(d===null)u.removeAttribute(c);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(c);return}u.setAttribute(c,""+d)}}function zl(u,c,d,m){if(m===null)u.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(d);return}u.setAttributeNS(c,d,""+m)}}var Gp,Ob;function js(u){if(Gp===void 0)try{throw Error()}catch(d){var c=d.stack.trim().match(/\n( *(at )?)/);Gp=c&&c[1]||"",Ob=-1<d.stack.indexOf(`
47
+ at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
48
+ `+Gp+u+Ob}var ga=!1;function Oo(u,c){if(!u||ga)return"";ga=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(c){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(De){var be=De}Reflect.construct(u,[],ze)}else{try{ze.call()}catch(De){be=De}u.call(ze.prototype)}}else{try{throw Error()}catch(De){be=De}(ze=u())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(De){if(De&&be&&typeof De.stack=="string")return[De.stack,be.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),M=w[0],q=w[1];if(M&&q){var ee=M.split(`
49
+ `),pe=q.split(`
50
+ `);for(D=m=0;m<ee.length&&!ee[m].includes("DetermineComponentFrameRoot");)m++;for(;D<pe.length&&!pe[D].includes("DetermineComponentFrameRoot");)D++;if(m===ee.length||D===pe.length)for(m=ee.length-1,D=pe.length-1;1<=m&&0<=D&&ee[m]!==pe[D];)D--;for(;1<=m&&0<=D;m--,D--)if(ee[m]!==pe[D]){if(m!==1||D!==1)do if(m--,D--,0>D||ee[m]!==pe[D]){var _e=`
51
+ `+ee[m].replace(" at new "," at ");return u.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",u.displayName)),_e}while(1<=m&&0<=D);break}}}finally{ga=!1,Error.prepareStackTrace=d}return(d=u?u.displayName||u.name:"")?js(d):""}function Fs(u){switch(u.tag){case 26:case 27:case 5:return js(u.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 15:return Oo(u.type,!1);case 11:return Oo(u.type.render,!1);case 1:return Oo(u.type,!0);case 31:return js("Activity");default:return""}}function xb(u){try{var c="";do c+=Fs(u),u=u.return;while(u);return c}catch(d){return`
52
+ Error generating stack: `+d.message+`
53
+ `+d.stack}}function ra(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function rh(u){var c=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Tb(u){var c=rh(u)?"checked":"value",d=Object.getOwnPropertyDescriptor(u.constructor.prototype,c),m=""+u[c];if(!u.hasOwnProperty(c)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var D=d.get,w=d.set;return Object.defineProperty(u,c,{configurable:!0,get:function(){return D.call(this)},set:function(M){m=""+M,w.call(this,M)}}),Object.defineProperty(u,c,{enumerable:d.enumerable}),{getValue:function(){return m},setValue:function(M){m=""+M},stopTracking:function(){u._valueTracker=null,delete u[c]}}}}function xo(u){u._valueTracker||(u._valueTracker=Tb(u))}function Ls(u){if(!u)return!1;var c=u._valueTracker;if(!c)return!0;var d=c.getValue(),m="";return u&&(m=rh(u)?u.checked?"true":"false":u.value),u=m,u!==d?(c.setValue(u),!0):!1}function af(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var nR=/[\n"\\]/g;function _i(u){return u.replace(nR,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Ip(u,c,d,m,D,w,M,q){u.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?u.type=M:u.removeAttribute("type"),c!=null?M==="number"?(c===0&&u.value===""||u.value!=c)&&(u.value=""+ra(c)):u.value!==""+ra(c)&&(u.value=""+ra(c)):M!=="submit"&&M!=="reset"||u.removeAttribute("value"),c!=null?ah(u,M,ra(c)):d!=null?ah(u,M,ra(d)):m!=null&&u.removeAttribute("value"),D==null&&w!=null&&(u.defaultChecked=!!w),D!=null&&(u.checked=D&&typeof D!="function"&&typeof D!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?u.name=""+ra(q):u.removeAttribute("name")}function Yp(u,c,d,m,D,w,M,q){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(u.type=w),c!=null||d!=null){if(!(w!=="submit"&&w!=="reset"||c!=null))return;d=d!=null?""+ra(d):"",c=c!=null?""+ra(c):d,q||c===u.value||(u.value=c),u.defaultValue=c}m=m??D,m=typeof m!="function"&&typeof m!="symbol"&&!!m,u.checked=q?u.checked:!!m,u.defaultChecked=!!m,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(u.name=M)}function ah(u,c,d){c==="number"&&af(u.ownerDocument)===u||u.defaultValue===""+d||(u.defaultValue=""+d)}function qs(u,c,d,m){if(u=u.options,c){c={};for(var D=0;D<d.length;D++)c["$"+d[D]]=!0;for(d=0;d<u.length;d++)D=c.hasOwnProperty("$"+u[d].value),u[d].selected!==D&&(u[d].selected=D),D&&m&&(u[d].defaultSelected=!0)}else{for(d=""+ra(d),c=null,D=0;D<u.length;D++){if(u[D].value===d){u[D].selected=!0,m&&(u[D].defaultSelected=!0);return}c!==null||u[D].disabled||(c=u[D])}c!==null&&(c.selected=!0)}}function Bb(u,c,d){if(c!=null&&(c=""+ra(c),c!==u.value&&(u.value=c),d==null)){u.defaultValue!==c&&(u.defaultValue=c);return}u.defaultValue=d!=null?""+ra(d):""}function _b(u,c,d,m){if(c==null){if(m!=null){if(d!=null)throw Error(r(92));if(ne(m)){if(1<m.length)throw Error(r(93));m=m[0]}d=m}d==null&&(d=""),c=d}d=ra(c),u.defaultValue=d,m=u.textContent,m===d&&m!==""&&m!==null&&(u.value=m)}function lf(u,c){if(c){var d=u.firstChild;if(d&&d===u.lastChild&&d.nodeType===3){d.nodeValue=c;return}}u.textContent=c}var qS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Kp(u,c,d){var m=c.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?m?u.setProperty(c,""):c==="float"?u.cssFloat="":u[c]="":m?u.setProperty(c,d):typeof d!="number"||d===0||qS.has(c)?c==="float"?u.cssFloat=d:u[c]=(""+d).trim():u[c]=d+"px"}function ih(u,c,d){if(c!=null&&typeof c!="object")throw Error(r(62));if(u=u.style,d!=null){for(var m in d)!d.hasOwnProperty(m)||c!=null&&c.hasOwnProperty(m)||(m.indexOf("--")===0?u.setProperty(m,""):m==="float"?u.cssFloat="":u[m]="");for(var D in c)m=c[D],c.hasOwnProperty(D)&&d[D]!==m&&Kp(u,D,m)}else for(var w in c)c.hasOwnProperty(w)&&Kp(u,w,c[w])}function Us(u){if(u.indexOf("-")===-1)return!1;switch(u){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 rR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),US=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lh(u){return US.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Hs=null;function Xp(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var uf=null,of=null;function HS(u){var c=Ps(u);if(c&&(u=c.stateNode)){var d=u[ma]||null;e:switch(u=c.stateNode,c.type){case"input":if(Ip(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),c=d.name,d.type==="radio"&&c!=null){for(d=u;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+_i(""+c)+'"][type="radio"]'),c=0;c<d.length;c++){var m=d[c];if(m!==u&&m.form===u.form){var D=m[ma]||null;if(!D)throw Error(r(90));Ip(m,D.value,D.defaultValue,D.defaultValue,D.checked,D.defaultChecked,D.type,D.name)}}for(c=0;c<d.length;c++)m=d[c],m.form===u.form&&Ls(m)}break e;case"textarea":Bb(u,d.value,d.defaultValue);break e;case"select":c=d.value,c!=null&&qs(u,!!d.multiple,c,!1)}}}var Rb=!1;function sf(u,c,d){if(Rb)return u(c,d);Rb=!0;try{var m=u(c);return m}finally{if(Rb=!1,(uf!==null||of!==null)&&(Ec(),uf&&(c=uf,u=of,of=uf=null,HS(c),u)))for(c=0;c<u.length;c++)HS(u[c])}}function $s(u,c){var d=u.stateNode;if(d===null)return null;var m=d[ma]||null;if(m===null)return null;d=m[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(u=u.type,m=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!m;break e;default:u=!1}if(u)return null;if(d&&typeof d!="function")throw Error(r(231,c,typeof d));return d}var kl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zp=!1;if(kl)try{var Pu={};Object.defineProperty(Pu,"passive",{get:function(){Zp=!0}}),window.addEventListener("test",Pu,Pu),window.removeEventListener("test",Pu,Pu)}catch{Zp=!1}var ju=null,cf=null,Vs=null;function Nb(){if(Vs)return Vs;var u,c=cf,d=c.length,m,D="value"in ju?ju.value:ju.textContent,w=D.length;for(u=0;u<d&&c[u]===D[u];u++);var M=d-u;for(m=1;m<=M&&c[d-m]===D[w-m];m++);return Vs=D.slice(u,1<m?1-m:void 0)}function Vr(u){var c=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&c===13&&(u=13)):u=c,u===10&&(u=13),32<=u||u===13?u:0}function Qp(){return!0}function Wp(){return!1}function ya(u){function c(d,m,D,w,M){this._reactName=d,this._targetInst=D,this.type=m,this.nativeEvent=w,this.target=M,this.currentTarget=null;for(var q in u)u.hasOwnProperty(q)&&(d=u[q],this[q]=d?d(w):w[q]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Qp:Wp,this.isPropagationStopped=Wp,this}return b(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Qp)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Qp)},persist:function(){},isPersistent:Qp}),c}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jp=ya(To),uh=b({},To,{view:0,detail:0}),$S=ya(uh),Mb,em,oh,Gs=b({},uh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==oh&&(oh&&u.type==="mousemove"?(Mb=u.screenX-oh.screenX,em=u.screenY-oh.screenY):em=Mb=0,oh=u),Mb)},movementY:function(u){return"movementY"in u?u.movementY:em}}),zb=ya(Gs),VS=b({},Gs,{dataTransfer:0}),GS=ya(VS),aR=b({},uh,{relatedTarget:0}),kb=ya(aR),iR=b({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),lR=ya(iR),uR=b({},To,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),sh=ya(uR),IS=b({},To,{data:0}),Pb=ya(IS),YS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KS={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"},jb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XS(u){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(u):(u=jb[u])?!!c[u]:!1}function Fu(){return XS}var Is=b({},uh,{key:function(u){if(u.key){var c=YS[u.key]||u.key;if(c!=="Unidentified")return c}return u.type==="keypress"?(u=Vr(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?KS[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(u){return u.type==="keypress"?Vr(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Vr(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),dl=ya(Is),li=b({},Gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=ya(li),tm=b({},uh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),Fb=ya(tm),ka=b({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZS=ya(ka),nm=b({},Gs,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),Ys=ya(nm),Lb=b({},To,{newState:0,oldState:0}),QS=ya(Lb),WS=[9,13,27,32],fh=kl&&"CompositionEvent"in window,dh=null;kl&&"documentMode"in document&&(dh=document.documentMode);var qb=kl&&"TextEvent"in window&&!dh,Pl=kl&&(!fh||dh&&8<dh&&11>=dh),Ub=" ",rm=!1;function hh(u,c){switch(u){case"keyup":return WS.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bo(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var _o=!1;function Hb(u,c){switch(u){case"compositionend":return Bo(c);case"keypress":return c.which!==32?null:(rm=!0,Ub);case"textInput":return u=c.data,u===Ub&&rm?null:u;default:return null}}function Ks(u,c){if(_o)return u==="compositionend"||!fh&&hh(u,c)?(u=Nb(),Vs=cf=ju=null,_o=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Pl&&c.locale!=="ko"?null:c.data;default:return null}}var JS={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 am(u){var c=u&&u.nodeName&&u.nodeName.toLowerCase();return c==="input"?!!JS[u.type]:c==="textarea"}function im(u,c,d,m){uf?of?of.push(m):of=[m]:uf=m,c=Yf(c,"onChange"),0<c.length&&(d=new Jp("onChange","change",null,d,m),u.push({event:d,listeners:c}))}var hl=null,vl=null;function $b(u){wc(u,0)}function jl(u){var c=eh(u);if(Ls(c))return u}function Vb(u,c){if(u==="change")return c}var Gb=!1;if(kl){var Xs;if(kl){var Zs="oninput"in document;if(!Zs){var Ib=document.createElement("div");Ib.setAttribute("oninput","return;"),Zs=typeof Ib.oninput=="function"}Xs=Zs}else Xs=!1;Gb=Xs&&(!document.documentMode||9<document.documentMode)}function ff(){hl&&(hl.detachEvent("onpropertychange",Yb),vl=hl=null)}function Yb(u){if(u.propertyName==="value"&&jl(vl)){var c=[];im(c,vl,u,Xp(u)),sf($b,c)}}function lm(u,c,d){u==="focusin"?(ff(),hl=c,vl=d,hl.attachEvent("onpropertychange",Yb)):u==="focusout"&&ff()}function Ro(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return jl(vl)}function Lu(u,c){if(u==="click")return jl(c)}function Kb(u,c){if(u==="input"||u==="change")return jl(c)}function Xb(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var Gr=typeof Object.is=="function"?Object.is:Xb;function No(u,c){if(Gr(u,c))return!0;if(typeof u!="object"||u===null||typeof c!="object"||c===null)return!1;var d=Object.keys(u),m=Object.keys(c);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var D=d[m];if(!fe.call(c,D)||!Gr(u[D],c[D]))return!1}return!0}function Mo(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function On(u,c){var d=Mo(u);u=0;for(var m;d;){if(d.nodeType===3){if(m=u+d.textContent.length,u<=c&&m>=c)return{node:d,offset:c-u};u=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Mo(d)}}function vh(u,c){return u&&c?u===c?!0:u&&u.nodeType===3?!1:c&&c.nodeType===3?vh(u,c.parentNode):"contains"in u?u.contains(c):u.compareDocumentPosition?!!(u.compareDocumentPosition(c)&16):!1:!1}function Zb(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var c=af(u.document);c instanceof u.HTMLIFrameElement;){try{var d=typeof c.contentWindow.location.href=="string"}catch{d=!1}if(d)u=c.contentWindow;else break;c=af(u.document)}return c}function ph(u){var c=u&&u.nodeName&&u.nodeName.toLowerCase();return c&&(c==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||c==="textarea"||u.contentEditable==="true")}var Qs=kl&&"documentMode"in document&&11>=document.documentMode,Fl=null,pl=null,zo=null,Ws=!1;function um(u,c,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Ws||Fl==null||Fl!==af(m)||(m=Fl,"selectionStart"in m&&ph(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),zo&&No(zo,m)||(zo=m,m=Yf(pl,"onSelect"),0<m.length&&(c=new Jp("onSelect","select",null,c,d),u.push({event:c,listeners:m}),c.target=Fl)))}function qu(u,c){var d={};return d[u.toLowerCase()]=c.toLowerCase(),d["Webkit"+u]="webkit"+c,d["Moz"+u]="moz"+c,d}var Js={animationend:qu("Animation","AnimationEnd"),animationiteration:qu("Animation","AnimationIteration"),animationstart:qu("Animation","AnimationStart"),transitionrun:qu("Transition","TransitionRun"),transitionstart:qu("Transition","TransitionStart"),transitioncancel:qu("Transition","TransitionCancel"),transitionend:qu("Transition","TransitionEnd")},Ri={},ml={};kl&&(ml=document.createElement("div").style,"AnimationEvent"in window||(delete Js.animationend.animation,delete Js.animationiteration.animation,delete Js.animationstart.animation),"TransitionEvent"in window||delete Js.transitionend.transition);function Ll(u){if(Ri[u])return Ri[u];if(!Js[u])return u;var c=Js[u],d;for(d in c)if(c.hasOwnProperty(d)&&d in ml)return Ri[u]=c[d];return u}var eC=Ll("animationend"),Qb=Ll("animationiteration"),tC=Ll("animationstart"),Wb=Ll("transitionrun"),om=Ll("transitionstart"),nC=Ll("transitioncancel"),Jb=Ll("transitionend"),e0=new Map,df="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");df.push("scrollEnd");function Ni(u,c){e0.set(u,c),wo(c,[u])}var t0=new WeakMap;function ui(u,c){if(typeof u=="object"&&u!==null){var d=t0.get(u);return d!==void 0?d:(c={value:u,source:c,stack:xb(c)},t0.set(u,c),c)}return{value:u,source:c,stack:xb(c)}}var Pa=[],ko=0,ql=0;function gl(){for(var u=ko,c=ql=ko=0;c<u;){var d=Pa[c];Pa[c++]=null;var m=Pa[c];Pa[c++]=null;var D=Pa[c];Pa[c++]=null;var w=Pa[c];if(Pa[c++]=null,m!==null&&D!==null){var M=m.pending;M===null?D.next=D:(D.next=M.next,M.next=D),m.pending=D}w!==0&&vf(d,D,w)}}function Po(u,c,d,m){Pa[ko++]=u,Pa[ko++]=c,Pa[ko++]=d,Pa[ko++]=m,ql|=m,u.lanes|=m,u=u.alternate,u!==null&&(u.lanes|=m)}function hf(u,c,d,m){return Po(u,c,d,m),mh(u)}function Ul(u,c){return Po(u,null,null,c),mh(u)}function vf(u,c,d){u.lanes|=d;var m=u.alternate;m!==null&&(m.lanes|=d);for(var D=!1,w=u.return;w!==null;)w.childLanes|=d,m=w.alternate,m!==null&&(m.childLanes|=d),w.tag===22&&(u=w.stateNode,u===null||u._visibility&1||(D=!0)),u=w,w=w.return;return u.tag===3?(w=u.stateNode,D&&c!==null&&(D=31-Mt(d),u=w.hiddenUpdates,m=u[D],m===null?u[D]=[c]:m.push(c),c.lane=d|536870912),w):null}function mh(u){if(50<Uf)throw Uf=0,t1=null,Error(r(185));for(var c=u.return;c!==null;)u=c,c=u.return;return u.tag===3?u.stateNode:null}var pf={};function rC(u,c,d,m){this.tag=u,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ja(u,c,d,m){return new rC(u,c,d,m)}function gh(u){return u=u.prototype,!(!u||!u.isReactComponent)}function yl(u,c){var d=u.alternate;return d===null?(d=ja(u.tag,c,u.key,u.mode),d.elementType=u.elementType,d.type=u.type,d.stateNode=u.stateNode,d.alternate=u,u.alternate=d):(d.pendingProps=c,d.type=u.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=u.flags&65011712,d.childLanes=u.childLanes,d.lanes=u.lanes,d.child=u.child,d.memoizedProps=u.memoizedProps,d.memoizedState=u.memoizedState,d.updateQueue=u.updateQueue,c=u.dependencies,d.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},d.sibling=u.sibling,d.index=u.index,d.ref=u.ref,d.refCleanup=u.refCleanup,d}function Tt(u,c){u.flags&=65011714;var d=u.alternate;return d===null?(u.childLanes=0,u.lanes=c,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,c=d.dependencies,u.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),u}function Le(u,c,d,m,D,w){var M=0;if(m=u,typeof u=="function")gh(u)&&(M=1);else if(typeof u=="string")M=jC(u,d,ke.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case $:return u=ja(31,d,c,D),u.elementType=$,u.lanes=w,u;case x:return Mi(d.children,D,w,c);case _:M=8,D|=24;break;case B:return u=ja(12,d,c,D|2),u.elementType=B,u.lanes=w,u;case L:return u=ja(13,d,c,D),u.elementType=L,u.lanes=w,u;case Y:return u=ja(19,d,c,D),u.elementType=Y,u.lanes=w,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case R:case j:M=10;break e;case O:M=9;break e;case P:M=11;break e;case G:M=14;break e;case z:M=16,m=null;break e}M=29,d=Error(r(130,u===null?"null":typeof u,"")),m=null}return c=ja(M,d,c,D),c.elementType=u,c.type=m,c.lanes=w,c}function Mi(u,c,d,m){return u=ja(7,u,m,c),u.lanes=d,u}function mf(u,c,d){return u=ja(6,u,null,c),u.lanes=d,u}function Hn(u,c,d){return c=ja(4,u.children!==null?u.children:[],u.key,c),c.lanes=d,c.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},c}var jo=[],Fo=0,yh=null,gf=0,zi=[],Fa=0,Uu=null,bl=1,tr="";function qt(u,c){jo[Fo++]=gf,jo[Fo++]=yh,yh=u,gf=c}function sm(u,c,d){zi[Fa++]=bl,zi[Fa++]=tr,zi[Fa++]=Uu,Uu=u;var m=bl;u=tr;var D=32-Mt(m)-1;m&=~(1<<D),d+=1;var w=32-Mt(c)+D;if(30<w){var M=D-D%5;w=(m&(1<<M)-1).toString(32),m>>=M,D-=M,bl=1<<32-Mt(c)+D|d<<D|m,tr=w+u}else bl=1<<w|d<<D|m,tr=u}function ec(u){u.return!==null&&(qt(u,1),sm(u,1,0))}function Hl(u){for(;u===yh;)yh=jo[--Fo],jo[Fo]=null,gf=jo[--Fo],jo[Fo]=null;for(;u===Uu;)Uu=zi[--Fa],zi[Fa]=null,tr=zi[--Fa],zi[Fa]=null,bl=zi[--Fa],zi[Fa]=null}var dr=null,en=null,Qt=!1,ki=null,Pi=!1,tc=Error(r(519));function Hu(u){var c=Error(r(418,""));throw Ef(ui(c,u)),tc}function bh(u){var c=u.stateNode,d=u.type,m=u.memoizedProps;switch(c[zr]=u,c[ma]=m,d){case"dialog":Ct("cancel",c),Ct("close",c);break;case"iframe":case"object":case"embed":Ct("load",c);break;case"video":case"audio":for(d=0;d<av.length;d++)Ct(av[d],c);break;case"source":Ct("error",c);break;case"img":case"image":case"link":Ct("error",c),Ct("load",c);break;case"details":Ct("toggle",c);break;case"input":Ct("invalid",c),Yp(c,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),xo(c);break;case"select":Ct("invalid",c);break;case"textarea":Ct("invalid",c),_b(c,m.value,m.defaultValue,m.children),xo(c)}d=m.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||c.textContent===""+d||m.suppressHydrationWarning===!0||p1(c.textContent,d)?(m.popover!=null&&(Ct("beforetoggle",c),Ct("toggle",c)),m.onScroll!=null&&Ct("scroll",c),m.onScrollEnd!=null&&Ct("scrollend",c),m.onClick!=null&&(c.onclick=bg),c=!0):c=!1,c||Hu(u)}function n0(u){for(dr=u.return;dr;)switch(dr.tag){case 5:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:dr=dr.return}}function yf(u){if(u!==dr)return!1;if(!Qt)return n0(u),Qt=!0,!1;var c=u.tag,d;if((d=c!==3&&c!==27)&&((d=c===5)&&(d=u.type,d=!(d!=="form"&&d!=="button")||ou(u.type,u.memoizedProps)),d=!d),d&&en&&Hu(u),n0(u),c===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,c=0;u;){if(u.nodeType===8)if(d=u.data,d==="/$"){if(c===0){en=Al(u.nextSibling);break e}c--}else d!=="$"&&d!=="$!"&&d!=="$?"||c++;u=u.nextSibling}en=null}}else c===27?(c=en,ns(u.type)?(u=rs,rs=null,en=u):en=c):en=dr?Al(u.stateNode.nextSibling):null;return!0}function bf(){en=dr=null,Qt=!1}function r0(){var u=ki;return u!==null&&(Va===null?Va=u:Va.push.apply(Va,u),ki=null),u}function Ef(u){ki===null?ki=[u]:ki.push(u)}var Eh=xe(null),$u=null,El=null;function Vu(u,c,d){me(Eh,c._currentValue),c._currentValue=d}function $l(u){u._currentValue=Eh.current,Re(Eh)}function cm(u,c,d){for(;u!==null;){var m=u.alternate;if((u.childLanes&c)!==c?(u.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),u===d)break;u=u.return}}function a0(u,c,d,m){var D=u.child;for(D!==null&&(D.return=u);D!==null;){var w=D.dependencies;if(w!==null){var M=D.child;w=w.firstContext;e:for(;w!==null;){var q=w;w=D;for(var ee=0;ee<c.length;ee++)if(q.context===c[ee]){w.lanes|=d,q=w.alternate,q!==null&&(q.lanes|=d),cm(w.return,d,u),m||(M=null);break e}w=q.next}}else if(D.tag===18){if(M=D.return,M===null)throw Error(r(341));M.lanes|=d,w=M.alternate,w!==null&&(w.lanes|=d),cm(M,d,u),M=null}else M=D.child;if(M!==null)M.return=D;else for(M=D;M!==null;){if(M===u){M=null;break}if(D=M.sibling,D!==null){D.return=M.return,M=D;break}M=M.return}D=M}}function Df(u,c,d,m){u=null;for(var D=c,w=!1;D!==null;){if(!w){if((D.flags&524288)!==0)w=!0;else if((D.flags&262144)!==0)break}if(D.tag===10){var M=D.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var q=D.type;Gr(D.pendingProps.value,M.value)||(u!==null?u.push(q):u=[q])}}else if(D===Qe.current){if(M=D.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==D.memoizedState.memoizedState&&(u!==null?u.push(Ka):u=[Ka])}D=D.return}u!==null&&a0(c,u,d,m),c.flags|=262144}function Dh(u){for(u=u.firstContext;u!==null;){if(!Gr(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Lo(u){$u=u,El=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function kr(u){return i0($u,u)}function Sh(u,c){return $u===null&&Lo(u),i0(u,c)}function i0(u,c){var d=c._currentValue;if(c={context:c,memoizedValue:d,next:null},El===null){if(u===null)throw Error(r(308));El=c,u.dependencies={lanes:0,firstContext:c},u.flags|=524288}else El=El.next=c;return d}var Sf=typeof AbortController<"u"?AbortController:function(){var u=[],c=this.signal={aborted:!1,addEventListener:function(d,m){u.push(m)}};this.abort=function(){c.aborted=!0,u.forEach(function(d){return d()})}},fm=e.unstable_scheduleCallback,aC=e.unstable_NormalPriority,Sr={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cf(){return{controller:new Sf,data:new Map,refCount:0}}function Vl(u){u.refCount--,u.refCount===0&&fm(aC,function(){u.controller.abort()})}var qo=null,Ch=0,ji=0,Cr=null;function dm(u,c){if(qo===null){var d=qo=[];Ch=0,ji=Cc(),Cr={status:"pending",value:void 0,then:function(m){d.push(m)}}}return Ch++,c.then(hm,hm),c}function hm(){if(--Ch===0&&qo!==null){Cr!==null&&(Cr.status="fulfilled");var u=qo;qo=null,ji=0,Cr=null;for(var c=0;c<u.length;c++)(0,u[c])()}}function iC(u,c){var d=[],m={status:"pending",value:null,reason:null,then:function(D){d.push(D)}};return u.then(function(){m.status="fulfilled",m.value=c;for(var D=0;D<d.length;D++)(0,d[D])(c)},function(D){for(m.status="rejected",m.reason=D,D=0;D<d.length;D++)(0,d[D])(void 0)}),m}var vm=U.S;U.S=function(u,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&dm(u,c),vm!==null&&vm(u,c)};var Gl=xe(null);function wh(){var u=Gl.current;return u!==null?u:Sn.pooledCache}function nc(u,c){c===null?me(Gl,Gl.current):me(Gl,c.pool)}function pm(){var u=wh();return u===null?null:{parent:Sr._currentValue,pool:u}}var Uo=Error(r(460)),mm=Error(r(474)),Ah=Error(r(542)),gm={then:function(){}};function ym(u){return u=u.status,u==="fulfilled"||u==="rejected"}function Oh(){}function l0(u,c,d){switch(d=u[d],d===void 0?u.push(c):d!==c&&(c.then(Oh,Oh),c=d),c.status){case"fulfilled":return c.value;case"rejected":throw u=c.reason,o0(u),u;default:if(typeof c.status=="string")c.then(Oh,Oh);else{if(u=Sn,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=c,u.status="pending",u.then(function(m){if(c.status==="pending"){var D=c;D.status="fulfilled",D.value=m}},function(m){if(c.status==="pending"){var D=c;D.status="rejected",D.reason=m}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw u=c.reason,o0(u),u}throw rc=c,Uo}}var rc=null;function u0(){if(rc===null)throw Error(r(459));var u=rc;return rc=null,u}function o0(u){if(u===Uo||u===Ah)throw Error(r(483))}var Il=!1;function bm(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Em(u,c){u=u.updateQueue,c.updateQueue===u&&(c.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function La(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Yl(u,c,d){var m=u.updateQueue;if(m===null)return null;if(m=m.shared,(un&2)!==0){var D=m.pending;return D===null?c.next=c:(c.next=D.next,D.next=c),m.pending=c,c=mh(u),vf(u,null,d),c}return Po(u,m,c,d),mh(u)}function ac(u,c,d){if(c=c.updateQueue,c!==null&&(c=c.shared,(d&4194048)!==0)){var m=c.lanes;m&=u.pendingLanes,d|=m,c.lanes=d,Wd(u,d)}}function s0(u,c){var d=u.updateQueue,m=u.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var D=null,w=null;if(d=d.firstBaseUpdate,d!==null){do{var M={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};w===null?D=w=M:w=w.next=M,d=d.next}while(d!==null);w===null?D=w=c:w=w.next=c}else D=w=c;d={baseState:m.baseState,firstBaseUpdate:D,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},u.updateQueue=d;return}u=d.lastBaseUpdate,u===null?d.firstBaseUpdate=c:u.next=c,d.lastBaseUpdate=c}var c0=!1;function wf(){if(c0){var u=Cr;if(u!==null)throw u}}function Gu(u,c,d,m){c0=!1;var D=u.updateQueue;Il=!1;var w=D.firstBaseUpdate,M=D.lastBaseUpdate,q=D.shared.pending;if(q!==null){D.shared.pending=null;var ee=q,pe=ee.next;ee.next=null,M===null?w=pe:M.next=pe,M=ee;var _e=u.alternate;_e!==null&&(_e=_e.updateQueue,q=_e.lastBaseUpdate,q!==M&&(q===null?_e.firstBaseUpdate=pe:q.next=pe,_e.lastBaseUpdate=ee))}if(w!==null){var ze=D.baseState;M=0,_e=pe=ee=null,q=w;do{var be=q.lane&-536870913,De=be!==q.lane;if(De?(kt&be)===be:(m&be)===be){be!==0&&be===ji&&(c0=!0),_e!==null&&(_e=_e.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});e:{var dt=u,ht=q;be=c;var nn=d;switch(ht.tag){case 1:if(dt=ht.payload,typeof dt=="function"){ze=dt.call(nn,ze,be);break e}ze=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=ht.payload,be=typeof dt=="function"?dt.call(nn,ze,be):dt,be==null)break e;ze=b({},ze,be);break e;case 2:Il=!0}}be=q.callback,be!==null&&(u.flags|=64,De&&(u.flags|=8192),De=D.callbacks,De===null?D.callbacks=[be]:De.push(be))}else De={lane:be,tag:q.tag,payload:q.payload,callback:q.callback,next:null},_e===null?(pe=_e=De,ee=ze):_e=_e.next=De,M|=be;if(q=q.next,q===null){if(q=D.shared.pending,q===null)break;De=q,q=De.next,De.next=null,D.lastBaseUpdate=De,D.shared.pending=null}}while(!0);_e===null&&(ee=ze),D.baseState=ee,D.firstBaseUpdate=pe,D.lastBaseUpdate=_e,w===null&&(D.shared.lanes=0),Wu|=M,u.lanes=M,u.memoizedState=ze}}function Dm(u,c){if(typeof u!="function")throw Error(r(191,u));u.call(c)}function xh(u,c){var d=u.callbacks;if(d!==null)for(u.callbacks=null,u=0;u<d.length;u++)Dm(d[u],c)}var ic=xe(null),Th=xe(0);function Pr(u,c){u=Qu,me(Th,u),me(ic,c),Qu=u|c.baseLanes}function Af(){me(Th,Qu),me(ic,ic.current)}function Of(){Qu=Th.current,Re(ic),Re(Th)}var Fi=0,St=null,ln=null,$n=null,Bh=!1,oi=!1,Ho=!1,Dl=0,si=0,Iu=null,f0=0;function Vn(){throw Error(r(321))}function Sm(u,c){if(c===null)return!1;for(var d=0;d<c.length&&d<u.length;d++)if(!Gr(u[d],c[d]))return!1;return!0}function Cm(u,c,d,m,D,w){return Fi=w,St=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,U.H=u===null||u.memoizedState===null?O0:x0,Ho=!1,w=d(m,D),Ho=!1,oi&&(w=d0(c,d,m,D)),$o(u),w}function $o(u){U.H=qm;var c=ln!==null&&ln.next!==null;if(Fi=0,$n=ln=St=null,Bh=!1,si=0,Iu=null,c)throw Error(r(300));u===null||wr||(u=u.dependencies,u!==null&&Dh(u)&&(wr=!0))}function d0(u,c,d,m){St=u;var D=0;do{if(oi&&(Iu=null),si=0,oi=!1,25<=D)throw Error(r(301));if(D+=1,$n=ln=null,u.updateQueue!=null){var w=u.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}U.H=Yu,w=c(d,m)}while(oi);return w}function lC(){var u=U.H,c=u.useState()[0];return c=typeof c.then=="function"?Rh(c):c,u=u.useState()[0],(ln!==null?ln.memoizedState:null)!==u&&(St.flags|=1024),c}function wm(){var u=Dl!==0;return Dl=0,u}function xf(u,c,d){c.updateQueue=u.updateQueue,c.flags&=-2053,u.lanes&=~d}function Am(u){if(Bh){for(u=u.memoizedState;u!==null;){var c=u.queue;c!==null&&(c.pending=null),u=u.next}Bh=!1}Fi=0,$n=ln=St=null,oi=!1,si=Dl=0,Iu=null}function aa(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $n===null?St.memoizedState=$n=u:$n=$n.next=u,$n}function nr(){if(ln===null){var u=St.alternate;u=u!==null?u.memoizedState:null}else u=ln.next;var c=$n===null?St.memoizedState:$n.next;if(c!==null)$n=c,ln=u;else{if(u===null)throw St.alternate===null?Error(r(467)):Error(r(310));ln=u,u={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},$n===null?St.memoizedState=$n=u:$n=$n.next=u}return $n}function _h(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rh(u){var c=si;return si+=1,Iu===null&&(Iu=[]),u=l0(Iu,u,c),c=St,($n===null?c.memoizedState:$n.next)===null&&(c=c.alternate,U.H=c===null||c.memoizedState===null?O0:x0),u}function vr(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Rh(u);if(u.$$typeof===j)return kr(u)}throw Error(r(438,String(u)))}function Om(u){var c=null,d=St.updateQueue;if(d!==null&&(c=d.memoCache),c==null){var m=St.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(c={data:m.data.map(function(D){return D.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),d===null&&(d=_h(),St.updateQueue=d),d.memoCache=c,d=c.data[c.index],d===void 0)for(d=c.data[c.index]=Array(u),m=0;m<u;m++)d[m]=Q;return c.index++,d}function Kl(u,c){return typeof c=="function"?c(u):c}function Nh(u){var c=nr();return xm(c,ln,u)}function xm(u,c,d){var m=u.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=d;var D=u.baseQueue,w=m.pending;if(w!==null){if(D!==null){var M=D.next;D.next=w.next,w.next=M}c.baseQueue=D=w,m.pending=null}if(w=u.baseState,D===null)u.memoizedState=w;else{c=D.next;var q=M=null,ee=null,pe=c,_e=!1;do{var ze=pe.lane&-536870913;if(ze!==pe.lane?(kt&ze)===ze:(Fi&ze)===ze){var be=pe.revertLane;if(be===0)ee!==null&&(ee=ee.next={lane:0,revertLane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),ze===ji&&(_e=!0);else if((Fi&be)===be){pe=pe.next,be===ji&&(_e=!0);continue}else ze={lane:0,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},ee===null?(q=ee=ze,M=w):ee=ee.next=ze,St.lanes|=be,Wu|=be;ze=pe.action,Ho&&d(w,ze),w=pe.hasEagerState?pe.eagerState:d(w,ze)}else be={lane:ze,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},ee===null?(q=ee=be,M=w):ee=ee.next=be,St.lanes|=ze,Wu|=ze;pe=pe.next}while(pe!==null&&pe!==c);if(ee===null?M=w:ee.next=q,!Gr(w,u.memoizedState)&&(wr=!0,_e&&(d=Cr,d!==null)))throw d;u.memoizedState=w,u.baseState=M,u.baseQueue=ee,m.lastRenderedState=w}return D===null&&(m.lanes=0),[u.memoizedState,m.dispatch]}function Tm(u){var c=nr(),d=c.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=u;var m=d.dispatch,D=d.pending,w=c.memoizedState;if(D!==null){d.pending=null;var M=D=D.next;do w=u(w,M.action),M=M.next;while(M!==D);Gr(w,c.memoizedState)||(wr=!0),c.memoizedState=w,c.baseQueue===null&&(c.baseState=w),d.lastRenderedState=w}return[w,m]}function Mh(u,c,d){var m=St,D=nr(),w=Qt;if(w){if(d===void 0)throw Error(r(407));d=d()}else d=c();var M=!Gr((ln||D).memoizedState,d);M&&(D.memoizedState=d,wr=!0),D=D.queue;var q=v0.bind(null,m,D,u);if(yn(2048,8,q,[u]),D.getSnapshot!==c||M||$n!==null&&$n.memoizedState.tag&1){if(m.flags|=2048,qa(9,Ph(),h0.bind(null,m,D,d,c),null),Sn===null)throw Error(r(349));w||(Fi&124)!==0||Bm(m,c,d)}return d}function Bm(u,c,d){u.flags|=16384,u={getSnapshot:c,value:d},c=St.updateQueue,c===null?(c=_h(),St.updateQueue=c,c.stores=[u]):(d=c.stores,d===null?c.stores=[u]:d.push(u))}function h0(u,c,d,m){c.value=d,c.getSnapshot=m,p0(c)&&_m(u)}function v0(u,c,d){return d(function(){p0(c)&&_m(u)})}function p0(u){var c=u.getSnapshot;u=u.value;try{var d=c();return!Gr(u,d)}catch{return!0}}function _m(u){var c=Ul(u,2);c!==null&&di(c,u,2)}function zh(u){var c=aa();if(typeof u=="function"){var d=u;if(u=d(),Ho){Lt(!0);try{d()}finally{Lt(!1)}}}return c.memoizedState=c.baseState=u,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:u},c}function Rm(u,c,d,m){return u.baseState=d,xm(u,ln,typeof m=="function"?m:Kl)}function uC(u,c,d,m,D){if(sc(u))throw Error(r(485));if(u=c.action,u!==null){var w={payload:D,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){w.listeners.push(M)}};U.T!==null?d(!0):w.isTransition=!1,m(w),d=c.pending,d===null?(w.next=c.pending=w,Nm(c,w)):(w.next=d.next,c.pending=d.next=w)}}function Nm(u,c){var d=c.action,m=c.payload,D=u.state;if(c.isTransition){var w=U.T,M={};U.T=M;try{var q=d(D,m),ee=U.S;ee!==null&&ee(M,q),kh(u,c,q)}catch(pe){zm(u,c,pe)}finally{U.T=w}}else try{w=d(D,m),kh(u,c,w)}catch(pe){zm(u,c,pe)}}function kh(u,c,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(m){Mm(u,c,m)},function(m){return zm(u,c,m)}):Mm(u,c,d)}function Mm(u,c,d){c.status="fulfilled",c.value=d,m0(c),u.state=d,c=u.pending,c!==null&&(d=c.next,d===c?u.pending=null:(d=d.next,c.next=d,Nm(u,d)))}function zm(u,c,d){var m=u.pending;if(u.pending=null,m!==null){m=m.next;do c.status="rejected",c.reason=d,m0(c),c=c.next;while(c!==m)}u.action=null}function m0(u){u=u.listeners;for(var c=0;c<u.length;c++)(0,u[c])()}function km(u,c){return c}function g0(u,c){if(Qt){var d=Sn.formState;if(d!==null){e:{var m=St;if(Qt){if(en){t:{for(var D=en,w=Pi;D.nodeType!==8;){if(!w){D=null;break t}if(D=Al(D.nextSibling),D===null){D=null;break t}}w=D.data,D=w==="F!"||w==="F"?D:null}if(D){en=Al(D.nextSibling),m=D.data==="F!";break e}}Hu(m)}m=!1}m&&(c=d[0])}}return d=aa(),d.memoizedState=d.baseState=c,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:km,lastRenderedState:c},d.queue=m,d=w0.bind(null,St,m),m.dispatch=d,m=zh(!1),w=Lh.bind(null,St,!1,m.queue),m=aa(),D={state:c,dispatch:null,action:u,pending:null},m.queue=D,d=uC.bind(null,St,D,w,d),D.dispatch=d,m.memoizedState=u,[c,d,!1]}function Xl(u){var c=nr();return Pm(c,ln,u)}function Pm(u,c,d){if(c=xm(u,c,km)[0],u=Nh(Kl)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var m=Rh(c)}catch(M){throw M===Uo?Ah:M}else m=c;c=nr();var D=c.queue,w=D.dispatch;return d!==c.memoizedState&&(St.flags|=2048,qa(9,Ph(),oR.bind(null,D,d),null)),[m,w,u]}function oR(u,c){u.action=c}function jm(u){var c=nr(),d=ln;if(d!==null)return Pm(c,d,u);nr(),c=c.memoizedState,d=nr();var m=d.queue.dispatch;return d.memoizedState=u,[c,m,!1]}function qa(u,c,d,m){return u={tag:u,create:d,deps:m,inst:c,next:null},c=St.updateQueue,c===null&&(c=_h(),St.updateQueue=c),d=c.lastEffect,d===null?c.lastEffect=u.next=u:(m=d.next,d.next=u,u.next=m,c.lastEffect=u),u}function Ph(){return{destroy:void 0,resource:void 0}}function jh(){return nr().memoizedState}function Vo(u,c,d,m){var D=aa();m=m===void 0?null:m,St.flags|=u,D.memoizedState=qa(1|c,Ph(),d,m)}function yn(u,c,d,m){var D=nr();m=m===void 0?null:m;var w=D.memoizedState.inst;ln!==null&&m!==null&&Sm(m,ln.memoizedState.deps)?D.memoizedState=qa(c,w,d,m):(St.flags|=u,D.memoizedState=qa(1|c,w,d,m))}function oC(u,c){Vo(8390656,8,u,c)}function sC(u,c){yn(2048,8,u,c)}function y0(u,c){return yn(4,2,u,c)}function Sl(u,c){return yn(4,4,u,c)}function b0(u,c){if(typeof c=="function"){u=u();var d=c(u);return function(){typeof d=="function"?d():c(null)}}if(c!=null)return u=u(),c.current=u,function(){c.current=null}}function Fm(u,c,d){d=d!=null?d.concat([u]):null,yn(4,4,b0.bind(null,c,u),d)}function lc(){}function uc(u,c){var d=nr();c=c===void 0?null:c;var m=d.memoizedState;return c!==null&&Sm(c,m[1])?m[0]:(d.memoizedState=[u,c],u)}function E0(u,c){var d=nr();c=c===void 0?null:c;var m=d.memoizedState;if(c!==null&&Sm(c,m[1]))return m[0];if(m=u(),Ho){Lt(!0);try{u()}finally{Lt(!1)}}return d.memoizedState=[m,c],m}function Fh(u,c,d){return d===void 0||(Fi&1073741824)!==0?u.memoizedState=c:(u.memoizedState=d,u=n1(),St.lanes|=u,Wu|=u,d)}function D0(u,c,d,m){return Gr(d,c)?d:ic.current!==null?(u=Fh(u,d,m),Gr(u,c)||(wr=!0),u):(Fi&42)===0?(wr=!0,u.memoizedState=d):(u=n1(),St.lanes|=u,Wu|=u,c)}function cC(u,c,d,m,D){var w=Z.p;Z.p=w!==0&&8>w?w:8;var M=U.T,q={};U.T=q,Lh(u,!1,c,d);try{var ee=D(),pe=U.S;if(pe!==null&&pe(q,ee),ee!==null&&typeof ee=="object"&&typeof ee.then=="function"){var _e=iC(ee,m);oc(u,c,_e,fi(u))}else oc(u,c,m,fi(u))}catch(ze){oc(u,c,{then:function(){},status:"rejected",reason:ze},fi())}finally{Z.p=w,U.T=M}}function sR(){}function Lm(u,c,d,m){if(u.tag!==5)throw Error(r(476));var D=fC(u).queue;cC(u,D,c,J,d===null?sR:function(){return Tf(u),d(m)})}function fC(u){var c=u.memoizedState;if(c!==null)return c;c={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:J},next:null};var d={};return c.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:d},next:null},u.memoizedState=c,u=u.alternate,u!==null&&(u.memoizedState=c),c}function Tf(u){var c=fC(u).next.queue;oc(u,c,{},fi())}function Li(){return kr(Ka)}function S0(){return nr().memoizedState}function dC(){return nr().memoizedState}function hC(u){for(var c=u.return;c!==null;){switch(c.tag){case 24:case 3:var d=fi();u=La(d);var m=Yl(c,u,d);m!==null&&(di(m,c,d),ac(m,c,d)),c={cache:Cf()},u.payload=c;return}c=c.return}}function C0(u,c,d){var m=fi();d={lane:m,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null},sc(u)?vC(c,d):(d=hf(u,c,d,m),d!==null&&(di(d,u,m),A0(d,c,m)))}function w0(u,c,d){var m=fi();oc(u,c,d,m)}function oc(u,c,d,m){var D={lane:m,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null};if(sc(u))vC(c,D);else{var w=u.alternate;if(u.lanes===0&&(w===null||w.lanes===0)&&(w=c.lastRenderedReducer,w!==null))try{var M=c.lastRenderedState,q=w(M,d);if(D.hasEagerState=!0,D.eagerState=q,Gr(q,M))return Po(u,c,D,0),Sn===null&&gl(),!1}catch{}finally{}if(d=hf(u,c,D,m),d!==null)return di(d,u,m),A0(d,c,m),!0}return!1}function Lh(u,c,d,m){if(m={lane:2,revertLane:Cc(),action:m,hasEagerState:!1,eagerState:null,next:null},sc(u)){if(c)throw Error(r(479))}else c=hf(u,d,m,2),c!==null&&di(c,u,2)}function sc(u){var c=u.alternate;return u===St||c!==null&&c===St}function vC(u,c){oi=Bh=!0;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}function A0(u,c,d){if((d&4194048)!==0){var m=c.lanes;m&=u.pendingLanes,d|=m,c.lanes=d,Wd(u,d)}}var qm={readContext:kr,use:vr,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useLayoutEffect:Vn,useInsertionEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useSyncExternalStore:Vn,useId:Vn,useHostTransitionStatus:Vn,useFormState:Vn,useActionState:Vn,useOptimistic:Vn,useMemoCache:Vn,useCacheRefresh:Vn},O0={readContext:kr,use:vr,useCallback:function(u,c){return aa().memoizedState=[u,c===void 0?null:c],u},useContext:kr,useEffect:oC,useImperativeHandle:function(u,c,d){d=d!=null?d.concat([u]):null,Vo(4194308,4,b0.bind(null,c,u),d)},useLayoutEffect:function(u,c){return Vo(4194308,4,u,c)},useInsertionEffect:function(u,c){Vo(4,2,u,c)},useMemo:function(u,c){var d=aa();c=c===void 0?null:c;var m=u();if(Ho){Lt(!0);try{u()}finally{Lt(!1)}}return d.memoizedState=[m,c],m},useReducer:function(u,c,d){var m=aa();if(d!==void 0){var D=d(c);if(Ho){Lt(!0);try{d(c)}finally{Lt(!1)}}}else D=c;return m.memoizedState=m.baseState=D,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:D},m.queue=u,u=u.dispatch=C0.bind(null,St,u),[m.memoizedState,u]},useRef:function(u){var c=aa();return u={current:u},c.memoizedState=u},useState:function(u){u=zh(u);var c=u.queue,d=w0.bind(null,St,c);return c.dispatch=d,[u.memoizedState,d]},useDebugValue:lc,useDeferredValue:function(u,c){var d=aa();return Fh(d,u,c)},useTransition:function(){var u=zh(!1);return u=cC.bind(null,St,u.queue,!0,!1),aa().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,c,d){var m=St,D=aa();if(Qt){if(d===void 0)throw Error(r(407));d=d()}else{if(d=c(),Sn===null)throw Error(r(349));(kt&124)!==0||Bm(m,c,d)}D.memoizedState=d;var w={value:d,getSnapshot:c};return D.queue=w,oC(v0.bind(null,m,w,u),[u]),m.flags|=2048,qa(9,Ph(),h0.bind(null,m,w,d,c),null),d},useId:function(){var u=aa(),c=Sn.identifierPrefix;if(Qt){var d=tr,m=bl;d=(m&~(1<<32-Mt(m)-1)).toString(32)+d,c="«"+c+"R"+d,d=Dl++,0<d&&(c+="H"+d.toString(32)),c+="»"}else d=f0++,c="«"+c+"r"+d.toString(32)+"»";return u.memoizedState=c},useHostTransitionStatus:Li,useFormState:g0,useActionState:g0,useOptimistic:function(u){var c=aa();c.memoizedState=c.baseState=u;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=d,c=Lh.bind(null,St,!0,d),d.dispatch=c,[u,c]},useMemoCache:Om,useCacheRefresh:function(){return aa().memoizedState=hC.bind(null,St)}},x0={readContext:kr,use:vr,useCallback:uc,useContext:kr,useEffect:sC,useImperativeHandle:Fm,useInsertionEffect:y0,useLayoutEffect:Sl,useMemo:E0,useReducer:Nh,useRef:jh,useState:function(){return Nh(Kl)},useDebugValue:lc,useDeferredValue:function(u,c){var d=nr();return D0(d,ln.memoizedState,u,c)},useTransition:function(){var u=Nh(Kl)[0],c=nr().memoizedState;return[typeof u=="boolean"?u:Rh(u),c]},useSyncExternalStore:Mh,useId:S0,useHostTransitionStatus:Li,useFormState:Xl,useActionState:Xl,useOptimistic:function(u,c){var d=nr();return Rm(d,ln,u,c)},useMemoCache:Om,useCacheRefresh:dC},Yu={readContext:kr,use:vr,useCallback:uc,useContext:kr,useEffect:sC,useImperativeHandle:Fm,useInsertionEffect:y0,useLayoutEffect:Sl,useMemo:E0,useReducer:Tm,useRef:jh,useState:function(){return Tm(Kl)},useDebugValue:lc,useDeferredValue:function(u,c){var d=nr();return ln===null?Fh(d,u,c):D0(d,ln.memoizedState,u,c)},useTransition:function(){var u=Tm(Kl)[0],c=nr().memoizedState;return[typeof u=="boolean"?u:Rh(u),c]},useSyncExternalStore:Mh,useId:S0,useHostTransitionStatus:Li,useFormState:jm,useActionState:jm,useOptimistic:function(u,c){var d=nr();return ln!==null?Rm(d,ln,u,c):(d.baseState=u,[u,d.queue.dispatch])},useMemoCache:Om,useCacheRefresh:dC},cc=null,Bf=0;function Um(u){var c=Bf;return Bf+=1,cc===null&&(cc=[]),l0(cc,u,c)}function fc(u,c){c=c.props.ref,u.ref=c!==void 0?c:null}function ia(u,c){throw c.$$typeof===S?Error(r(525)):(u=Object.prototype.toString.call(c),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":u)))}function T0(u){var c=u._init;return c(u._payload)}function Ua(u){function c(de,se){if(u){var ve=de.deletions;ve===null?(de.deletions=[se],de.flags|=16):ve.push(se)}}function d(de,se){if(!u)return null;for(;se!==null;)c(de,se),se=se.sibling;return null}function m(de){for(var se=new Map;de!==null;)de.key!==null?se.set(de.key,de):se.set(de.index,de),de=de.sibling;return se}function D(de,se){return de=yl(de,se),de.index=0,de.sibling=null,de}function w(de,se,ve){return de.index=ve,u?(ve=de.alternate,ve!==null?(ve=ve.index,ve<se?(de.flags|=67108866,se):ve):(de.flags|=67108866,se)):(de.flags|=1048576,se)}function M(de){return u&&de.alternate===null&&(de.flags|=67108866),de}function q(de,se,ve,Ne){return se===null||se.tag!==6?(se=mf(ve,de.mode,Ne),se.return=de,se):(se=D(se,ve),se.return=de,se)}function ee(de,se,ve,Ne){var We=ve.type;return We===x?_e(de,se,ve.props.children,Ne,ve.key):se!==null&&(se.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===z&&T0(We)===se.type)?(se=D(se,ve.props),fc(se,ve),se.return=de,se):(se=Le(ve.type,ve.key,ve.props,null,de.mode,Ne),fc(se,ve),se.return=de,se)}function pe(de,se,ve,Ne){return se===null||se.tag!==4||se.stateNode.containerInfo!==ve.containerInfo||se.stateNode.implementation!==ve.implementation?(se=Hn(ve,de.mode,Ne),se.return=de,se):(se=D(se,ve.children||[]),se.return=de,se)}function _e(de,se,ve,Ne,We){return se===null||se.tag!==7?(se=Mi(ve,de.mode,Ne,We),se.return=de,se):(se=D(se,ve),se.return=de,se)}function ze(de,se,ve){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=mf(""+se,de.mode,ve),se.return=de,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case C:return ve=Le(se.type,se.key,se.props,null,de.mode,ve),fc(ve,se),ve.return=de,ve;case A:return se=Hn(se,de.mode,ve),se.return=de,se;case z:var Ne=se._init;return se=Ne(se._payload),ze(de,se,ve)}if(ne(se)||H(se))return se=Mi(se,de.mode,ve,null),se.return=de,se;if(typeof se.then=="function")return ze(de,Um(se),ve);if(se.$$typeof===j)return ze(de,Sh(de,se),ve);ia(de,se)}return null}function be(de,se,ve,Ne){var We=se!==null?se.key:null;if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return We!==null?null:q(de,se,""+ve,Ne);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case C:return ve.key===We?ee(de,se,ve,Ne):null;case A:return ve.key===We?pe(de,se,ve,Ne):null;case z:return We=ve._init,ve=We(ve._payload),be(de,se,ve,Ne)}if(ne(ve)||H(ve))return We!==null?null:_e(de,se,ve,Ne,null);if(typeof ve.then=="function")return be(de,se,Um(ve),Ne);if(ve.$$typeof===j)return be(de,se,Sh(de,ve),Ne);ia(de,ve)}return null}function De(de,se,ve,Ne,We){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return de=de.get(ve)||null,q(se,de,""+Ne,We);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case C:return de=de.get(Ne.key===null?ve:Ne.key)||null,ee(se,de,Ne,We);case A:return de=de.get(Ne.key===null?ve:Ne.key)||null,pe(se,de,Ne,We);case z:var Bt=Ne._init;return Ne=Bt(Ne._payload),De(de,se,ve,Ne,We)}if(ne(Ne)||H(Ne))return de=de.get(ve)||null,_e(se,de,Ne,We,null);if(typeof Ne.then=="function")return De(de,se,ve,Um(Ne),We);if(Ne.$$typeof===j)return De(de,se,ve,Sh(se,Ne),We);ia(se,Ne)}return null}function dt(de,se,ve,Ne){for(var We=null,Bt=null,st=se,pt=se=0,Lr=null;st!==null&&pt<ve.length;pt++){st.index>pt?(Lr=st,st=null):Lr=st.sibling;var Gt=be(de,st,ve[pt],Ne);if(Gt===null){st===null&&(st=Lr);break}u&&st&&Gt.alternate===null&&c(de,st),se=w(Gt,se,pt),Bt===null?We=Gt:Bt.sibling=Gt,Bt=Gt,st=Lr}if(pt===ve.length)return d(de,st),Qt&&qt(de,pt),We;if(st===null){for(;pt<ve.length;pt++)st=ze(de,ve[pt],Ne),st!==null&&(se=w(st,se,pt),Bt===null?We=st:Bt.sibling=st,Bt=st);return Qt&&qt(de,pt),We}for(st=m(st);pt<ve.length;pt++)Lr=De(st,de,pt,ve[pt],Ne),Lr!==null&&(u&&Lr.alternate!==null&&st.delete(Lr.key===null?pt:Lr.key),se=w(Lr,se,pt),Bt===null?We=Lr:Bt.sibling=Lr,Bt=Lr);return u&&st.forEach(function(os){return c(de,os)}),Qt&&qt(de,pt),We}function ht(de,se,ve,Ne){if(ve==null)throw Error(r(151));for(var We=null,Bt=null,st=se,pt=se=0,Lr=null,Gt=ve.next();st!==null&&!Gt.done;pt++,Gt=ve.next()){st.index>pt?(Lr=st,st=null):Lr=st.sibling;var os=be(de,st,Gt.value,Ne);if(os===null){st===null&&(st=Lr);break}u&&st&&os.alternate===null&&c(de,st),se=w(os,se,pt),Bt===null?We=os:Bt.sibling=os,Bt=os,st=Lr}if(Gt.done)return d(de,st),Qt&&qt(de,pt),We;if(st===null){for(;!Gt.done;pt++,Gt=ve.next())Gt=ze(de,Gt.value,Ne),Gt!==null&&(se=w(Gt,se,pt),Bt===null?We=Gt:Bt.sibling=Gt,Bt=Gt);return Qt&&qt(de,pt),We}for(st=m(st);!Gt.done;pt++,Gt=ve.next())Gt=De(st,de,pt,Gt.value,Ne),Gt!==null&&(u&&Gt.alternate!==null&&st.delete(Gt.key===null?pt:Gt.key),se=w(Gt,se,pt),Bt===null?We=Gt:Bt.sibling=Gt,Bt=Gt);return u&&st.forEach(function(DR){return c(de,DR)}),Qt&&qt(de,pt),We}function nn(de,se,ve,Ne){if(typeof ve=="object"&&ve!==null&&ve.type===x&&ve.key===null&&(ve=ve.props.children),typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case C:e:{for(var We=ve.key;se!==null;){if(se.key===We){if(We=ve.type,We===x){if(se.tag===7){d(de,se.sibling),Ne=D(se,ve.props.children),Ne.return=de,de=Ne;break e}}else if(se.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===z&&T0(We)===se.type){d(de,se.sibling),Ne=D(se,ve.props),fc(Ne,ve),Ne.return=de,de=Ne;break e}d(de,se);break}else c(de,se);se=se.sibling}ve.type===x?(Ne=Mi(ve.props.children,de.mode,Ne,ve.key),Ne.return=de,de=Ne):(Ne=Le(ve.type,ve.key,ve.props,null,de.mode,Ne),fc(Ne,ve),Ne.return=de,de=Ne)}return M(de);case A:e:{for(We=ve.key;se!==null;){if(se.key===We)if(se.tag===4&&se.stateNode.containerInfo===ve.containerInfo&&se.stateNode.implementation===ve.implementation){d(de,se.sibling),Ne=D(se,ve.children||[]),Ne.return=de,de=Ne;break e}else{d(de,se);break}else c(de,se);se=se.sibling}Ne=Hn(ve,de.mode,Ne),Ne.return=de,de=Ne}return M(de);case z:return We=ve._init,ve=We(ve._payload),nn(de,se,ve,Ne)}if(ne(ve))return dt(de,se,ve,Ne);if(H(ve)){if(We=H(ve),typeof We!="function")throw Error(r(150));return ve=We.call(ve),ht(de,se,ve,Ne)}if(typeof ve.then=="function")return nn(de,se,Um(ve),Ne);if(ve.$$typeof===j)return nn(de,se,Sh(de,ve),Ne);ia(de,ve)}return typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint"?(ve=""+ve,se!==null&&se.tag===6?(d(de,se.sibling),Ne=D(se,ve),Ne.return=de,de=Ne):(d(de,se),Ne=mf(ve,de.mode,Ne),Ne.return=de,de=Ne),M(de)):d(de,se)}return function(de,se,ve,Ne){try{Bf=0;var We=nn(de,se,ve,Ne);return cc=null,We}catch(st){if(st===Uo||st===Ah)throw st;var Bt=ja(29,st,null,de.mode);return Bt.lanes=Ne,Bt.return=de,Bt}finally{}}}var dc=Ua(!0),Zl=Ua(!1),ci=xe(null),la=null;function Ku(u){var c=u.alternate;me(bn,bn.current&1),me(ci,u),la===null&&(c===null||ic.current!==null||c.memoizedState!==null)&&(la=u)}function Ql(u){if(u.tag===22){if(me(bn,bn.current),me(ci,u),la===null){var c=u.alternate;c!==null&&c.memoizedState!==null&&(la=u)}}else Wl()}function Wl(){me(bn,bn.current),me(ci,ci.current)}function Cl(u){Re(ci),la===u&&(la=null),Re(bn)}var bn=xe(0);function qh(u){for(var c=u;c!==null;){if(c.tag===13){var d=c.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||sv(d)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===u)break;for(;c.sibling===null;){if(c.return===null||c.return===u)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function Go(u,c,d,m){c=u.memoizedState,d=d(m,c),d=d==null?c:b({},c,d),u.memoizedState=d,u.lanes===0&&(u.updateQueue.baseState=d)}var Hm={enqueueSetState:function(u,c,d){u=u._reactInternals;var m=fi(),D=La(m);D.payload=c,d!=null&&(D.callback=d),c=Yl(u,D,m),c!==null&&(di(c,u,m),ac(c,u,m))},enqueueReplaceState:function(u,c,d){u=u._reactInternals;var m=fi(),D=La(m);D.tag=1,D.payload=c,d!=null&&(D.callback=d),c=Yl(u,D,m),c!==null&&(di(c,u,m),ac(c,u,m))},enqueueForceUpdate:function(u,c){u=u._reactInternals;var d=fi(),m=La(d);m.tag=2,c!=null&&(m.callback=c),c=Yl(u,m,d),c!==null&&(di(c,u,d),ac(c,u,d))}};function _f(u,c,d,m,D,w,M){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(m,w,M):c.prototype&&c.prototype.isPureReactComponent?!No(d,m)||!No(D,w):!0}function hc(u,c,d,m){u=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(d,m),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(d,m),c.state!==u&&Hm.enqueueReplaceState(c,c.state,null)}function Io(u,c){var d=c;if("ref"in c){d={};for(var m in c)m!=="ref"&&(d[m]=c[m])}if(u=u.defaultProps){d===c&&(d=b({},d));for(var D in u)d[D]===void 0&&(d[D]=u[D])}return d}var Uh=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function Rf(u){Uh(u)}function B0(u){console.error(u)}function Hh(u){Uh(u)}function $h(u,c){try{var d=u.onUncaughtError;d(c.value,{componentStack:c.stack})}catch(m){setTimeout(function(){throw m})}}function _0(u,c,d){try{var m=u.onCaughtError;m(d.value,{componentStack:d.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(D){setTimeout(function(){throw D})}}function R0(u,c,d){return d=La(d),d.tag=3,d.payload={element:null},d.callback=function(){$h(u,c)},d}function N0(u){return u=La(u),u.tag=3,u}function Ha(u,c,d,m){var D=d.type.getDerivedStateFromError;if(typeof D=="function"){var w=m.value;u.payload=function(){return D(w)},u.callback=function(){_0(c,d,m)}}var M=d.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(u.callback=function(){_0(c,d,m),typeof D!="function"&&(Zo===null?Zo=new Set([this]):Zo.add(this));var q=m.stack;this.componentDidCatch(m.value,{componentStack:q!==null?q:""})})}function pC(u,c,d,m,D){if(d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(c=d.alternate,c!==null&&Df(c,d,D,!0),d=ci.current,d!==null){switch(d.tag){case 13:return la===null?Sc():d.alternate===null&&lr===0&&(lr=3),d.flags&=-257,d.flags|=65536,d.lanes=D,m===gm?d.flags|=16384:(c=d.updateQueue,c===null?d.updateQueue=new Set([m]):c.add(m),vg(u,m,D)),!1;case 22:return d.flags|=65536,m===gm?d.flags|=16384:(c=d.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([m])},d.updateQueue=c):(d=c.retryQueue,d===null?c.retryQueue=new Set([m]):d.add(m)),vg(u,m,D)),!1}throw Error(r(435,d.tag))}return vg(u,m,D),Sc(),!1}if(Qt)return c=ci.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=D,m!==tc&&(u=Error(r(422),{cause:m}),Ef(ui(u,d)))):(m!==tc&&(c=Error(r(423),{cause:m}),Ef(ui(c,d))),u=u.current.alternate,u.flags|=65536,D&=-D,u.lanes|=D,m=ui(m,d),D=R0(u.stateNode,m,D),s0(u,D),lr!==4&&(lr=2)),!1;var w=Error(r(520),{cause:m});if(w=ui(w,d),Ff===null?Ff=[w]:Ff.push(w),lr!==4&&(lr=2),c===null)return!0;m=ui(m,d),d=c;do{switch(d.tag){case 3:return d.flags|=65536,u=D&-D,d.lanes|=u,u=R0(d.stateNode,m,u),s0(d,u),!1;case 1:if(c=d.type,w=d.stateNode,(d.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Zo===null||!Zo.has(w))))return d.flags|=65536,D&=-D,d.lanes|=D,D=N0(D),Ha(D,u,d,m),s0(d,D),!1}d=d.return}while(d!==null);return!1}var rr=Error(r(461)),wr=!1;function jr(u,c,d,m){c.child=u===null?Zl(c,null,d,m):dc(c,u.child,d,m)}function mC(u,c,d,m,D){d=d.render;var w=c.ref;if("ref"in m){var M={};for(var q in m)q!=="ref"&&(M[q]=m[q])}else M=m;return Lo(c),m=Cm(u,c,d,M,w,D),q=wm(),u!==null&&!wr?(xf(u,c,D),Jl(u,c,D)):(Qt&&q&&ec(c),c.flags|=1,jr(u,c,m,D),c.child)}function Xu(u,c,d,m,D){if(u===null){var w=d.type;return typeof w=="function"&&!gh(w)&&w.defaultProps===void 0&&d.compare===null?(c.tag=15,c.type=w,vc(u,c,w,m,D)):(u=Le(d.type,null,m,c,c.mode,D),u.ref=c.ref,u.return=c,c.child=u)}if(w=u.child,!Wm(u,D)){var M=w.memoizedProps;if(d=d.compare,d=d!==null?d:No,d(M,m)&&u.ref===c.ref)return Jl(u,c,D)}return c.flags|=1,u=yl(w,m),u.ref=c.ref,u.return=c,c.child=u}function vc(u,c,d,m,D){if(u!==null){var w=u.memoizedProps;if(No(w,m)&&u.ref===c.ref)if(wr=!1,c.pendingProps=m=w,Wm(u,D))(u.flags&131072)!==0&&(wr=!0);else return c.lanes=u.lanes,Jl(u,c,D)}return Vm(u,c,d,m,D)}function $m(u,c,d){var m=c.pendingProps,D=m.children,w=u!==null?u.memoizedState:null;if(m.mode==="hidden"){if((c.flags&128)!==0){if(m=w!==null?w.baseLanes|d:d,u!==null){for(D=c.child=u.child,w=0;D!==null;)w=w|D.lanes|D.childLanes,D=D.sibling;c.childLanes=w&~m}else c.childLanes=0,c.child=null;return pc(u,c,m,d)}if((d&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},u!==null&&nc(c,w!==null?w.cachePool:null),w!==null?Pr(c,w):Af(),Ql(c);else return c.lanes=c.childLanes=536870912,pc(u,c,w!==null?w.baseLanes|d:d,d)}else w!==null?(nc(c,w.cachePool),Pr(c,w),Wl(),c.memoizedState=null):(u!==null&&nc(c,null),Af(),Wl());return jr(u,c,D,d),c.child}function pc(u,c,d,m){var D=wh();return D=D===null?null:{parent:Sr._currentValue,pool:D},c.memoizedState={baseLanes:d,cachePool:D},u!==null&&nc(c,null),Af(),Ql(c),u!==null&&Df(u,c,m,!0),null}function Vh(u,c){var d=c.ref;if(d===null)u!==null&&u.ref!==null&&(c.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(u===null||u.ref!==d)&&(c.flags|=4194816)}}function Vm(u,c,d,m,D){return Lo(c),d=Cm(u,c,d,m,void 0,D),m=wm(),u!==null&&!wr?(xf(u,c,D),Jl(u,c,D)):(Qt&&m&&ec(c),c.flags|=1,jr(u,c,d,D),c.child)}function M0(u,c,d,m,D,w){return Lo(c),c.updateQueue=null,d=d0(c,m,d,D),$o(u),m=wm(),u!==null&&!wr?(xf(u,c,w),Jl(u,c,w)):(Qt&&m&&ec(c),c.flags|=1,jr(u,c,d,w),c.child)}function Gm(u,c,d,m,D){if(Lo(c),c.stateNode===null){var w=pf,M=d.contextType;typeof M=="object"&&M!==null&&(w=kr(M)),w=new d(m,w),c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Hm,c.stateNode=w,w._reactInternals=c,w=c.stateNode,w.props=m,w.state=c.memoizedState,w.refs={},bm(c),M=d.contextType,w.context=typeof M=="object"&&M!==null?kr(M):pf,w.state=c.memoizedState,M=d.getDerivedStateFromProps,typeof M=="function"&&(Go(c,d,M,m),w.state=c.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(M=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),M!==w.state&&Hm.enqueueReplaceState(w,w.state,null),Gu(c,m,w,D),wf(),w.state=c.memoizedState),typeof w.componentDidMount=="function"&&(c.flags|=4194308),m=!0}else if(u===null){w=c.stateNode;var q=c.memoizedProps,ee=Io(d,q);w.props=ee;var pe=w.context,_e=d.contextType;M=pf,typeof _e=="object"&&_e!==null&&(M=kr(_e));var ze=d.getDerivedStateFromProps;_e=typeof ze=="function"||typeof w.getSnapshotBeforeUpdate=="function",q=c.pendingProps!==q,_e||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(q||pe!==M)&&hc(c,w,m,M),Il=!1;var be=c.memoizedState;w.state=be,Gu(c,m,w,D),wf(),pe=c.memoizedState,q||be!==pe||Il?(typeof ze=="function"&&(Go(c,d,ze,m),pe=c.memoizedState),(ee=Il||_f(c,d,ee,m,be,pe,M))?(_e||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(c.flags|=4194308)):(typeof w.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=pe),w.props=m,w.state=pe,w.context=M,m=ee):(typeof w.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{w=c.stateNode,Em(u,c),M=c.memoizedProps,_e=Io(d,M),w.props=_e,ze=c.pendingProps,be=w.context,pe=d.contextType,ee=pf,typeof pe=="object"&&pe!==null&&(ee=kr(pe)),q=d.getDerivedStateFromProps,(pe=typeof q=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==ze||be!==ee)&&hc(c,w,m,ee),Il=!1,be=c.memoizedState,w.state=be,Gu(c,m,w,D),wf();var De=c.memoizedState;M!==ze||be!==De||Il||u!==null&&u.dependencies!==null&&Dh(u.dependencies)?(typeof q=="function"&&(Go(c,d,q,m),De=c.memoizedState),(_e=Il||_f(c,d,_e,m,be,De,ee)||u!==null&&u.dependencies!==null&&Dh(u.dependencies))?(pe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,De,ee),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,De,ee)),typeof w.componentDidUpdate=="function"&&(c.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===u.memoizedProps&&be===u.memoizedState||(c.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===u.memoizedProps&&be===u.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=De),w.props=m,w.state=De,w.context=ee,m=_e):(typeof w.componentDidUpdate!="function"||M===u.memoizedProps&&be===u.memoizedState||(c.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===u.memoizedProps&&be===u.memoizedState||(c.flags|=1024),m=!1)}return w=m,Vh(u,c),m=(c.flags&128)!==0,w||m?(w=c.stateNode,d=m&&typeof d.getDerivedStateFromError!="function"?null:w.render(),c.flags|=1,u!==null&&m?(c.child=dc(c,u.child,null,D),c.child=dc(c,null,d,D)):jr(u,c,d,D),c.memoizedState=w.state,u=c.child):u=Jl(u,c,D),u}function Im(u,c,d,m){return bf(),c.flags|=256,jr(u,c,d,m),c.child}var Ym={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function z0(u){return{baseLanes:u,cachePool:pm()}}function k0(u,c,d){return u=u!==null?u.childLanes&~d:0,c&&(u|=Hi),u}function P0(u,c,d){var m=c.pendingProps,D=!1,w=(c.flags&128)!==0,M;if((M=w)||(M=u!==null&&u.memoizedState===null?!1:(bn.current&2)!==0),M&&(D=!0,c.flags&=-129),M=(c.flags&32)!==0,c.flags&=-33,u===null){if(Qt){if(D?Ku(c):Wl(),Qt){var q=en,ee;if(ee=q){e:{for(ee=q,q=Pi;ee.nodeType!==8;){if(!q){q=null;break e}if(ee=Al(ee.nextSibling),ee===null){q=null;break e}}q=ee}q!==null?(c.memoizedState={dehydrated:q,treeContext:Uu!==null?{id:bl,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},ee=ja(18,null,null,0),ee.stateNode=q,ee.return=c,c.child=ee,dr=c,en=null,ee=!0):ee=!1}ee||Hu(c)}if(q=c.memoizedState,q!==null&&(q=q.dehydrated,q!==null))return sv(q)?c.lanes=32:c.lanes=536870912,null;Cl(c)}return q=m.children,m=m.fallback,D?(Wl(),D=c.mode,q=Xm({mode:"hidden",children:q},D),m=Mi(m,D,d,null),q.return=c,m.return=c,q.sibling=m,c.child=q,D=c.child,D.memoizedState=z0(d),D.childLanes=k0(u,M,d),c.memoizedState=Ym,m):(Ku(c),Km(c,q))}if(ee=u.memoizedState,ee!==null&&(q=ee.dehydrated,q!==null)){if(w)c.flags&256?(Ku(c),c.flags&=-257,c=Yo(u,c,d)):c.memoizedState!==null?(Wl(),c.child=u.child,c.flags|=128,c=null):(Wl(),D=m.fallback,q=c.mode,m=Xm({mode:"visible",children:m.children},q),D=Mi(D,q,d,null),D.flags|=2,m.return=c,D.return=c,m.sibling=D,c.child=m,dc(c,u.child,null,d),m=c.child,m.memoizedState=z0(d),m.childLanes=k0(u,M,d),c.memoizedState=Ym,c=D);else if(Ku(c),sv(q)){if(M=q.nextSibling&&q.nextSibling.dataset,M)var pe=M.dgst;M=pe,m=Error(r(419)),m.stack="",m.digest=M,Ef({value:m,source:null,stack:null}),c=Yo(u,c,d)}else if(wr||Df(u,c,d,!1),M=(d&u.childLanes)!==0,wr||M){if(M=Sn,M!==null&&(m=d&-d,m=(m&42)!==0?1:fl(m),m=(m&(M.suspendedLanes|d))!==0?0:m,m!==0&&m!==ee.retryLane))throw ee.retryLane=m,Ul(u,m),di(M,u,m),rr;q.data==="$?"||Sc(),c=Yo(u,c,d)}else q.data==="$?"?(c.flags|=192,c.child=u.child,c=null):(u=ee.treeContext,en=Al(q.nextSibling),dr=c,Qt=!0,ki=null,Pi=!1,u!==null&&(zi[Fa++]=bl,zi[Fa++]=tr,zi[Fa++]=Uu,bl=u.id,tr=u.overflow,Uu=c),c=Km(c,m.children),c.flags|=4096);return c}return D?(Wl(),D=m.fallback,q=c.mode,ee=u.child,pe=ee.sibling,m=yl(ee,{mode:"hidden",children:m.children}),m.subtreeFlags=ee.subtreeFlags&65011712,pe!==null?D=yl(pe,D):(D=Mi(D,q,d,null),D.flags|=2),D.return=c,m.return=c,m.sibling=D,c.child=m,m=D,D=c.child,q=u.child.memoizedState,q===null?q=z0(d):(ee=q.cachePool,ee!==null?(pe=Sr._currentValue,ee=ee.parent!==pe?{parent:pe,pool:pe}:ee):ee=pm(),q={baseLanes:q.baseLanes|d,cachePool:ee}),D.memoizedState=q,D.childLanes=k0(u,M,d),c.memoizedState=Ym,m):(Ku(c),d=u.child,u=d.sibling,d=yl(d,{mode:"visible",children:m.children}),d.return=c,d.sibling=null,u!==null&&(M=c.deletions,M===null?(c.deletions=[u],c.flags|=16):M.push(u)),c.child=d,c.memoizedState=null,d)}function Km(u,c){return c=Xm({mode:"visible",children:c},u.mode),c.return=u,u.child=c}function Xm(u,c){return u=ja(22,u,null,c),u.lanes=0,u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},u}function Yo(u,c,d){return dc(c,u.child,null,d),u=Km(c,c.pendingProps.children),u.flags|=2,c.memoizedState=null,u}function Gh(u,c,d){u.lanes|=c;var m=u.alternate;m!==null&&(m.lanes|=c),cm(u.return,c,d)}function Zm(u,c,d,m,D){var w=u.memoizedState;w===null?u.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:D}:(w.isBackwards=c,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=d,w.tailMode=D)}function Qm(u,c,d){var m=c.pendingProps,D=m.revealOrder,w=m.tail;if(jr(u,c,m.children,d),m=bn.current,(m&2)!==0)m=m&1|2,c.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=c.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&Gh(u,d,c);else if(u.tag===19)Gh(u,d,c);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===c)break e;for(;u.sibling===null;){if(u.return===null||u.return===c)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}m&=1}switch(me(bn,m),D){case"forwards":for(d=c.child,D=null;d!==null;)u=d.alternate,u!==null&&qh(u)===null&&(D=d),d=d.sibling;d=D,d===null?(D=c.child,c.child=null):(D=d.sibling,d.sibling=null),Zm(c,!1,D,d,w);break;case"backwards":for(d=null,D=c.child,c.child=null;D!==null;){if(u=D.alternate,u!==null&&qh(u)===null){c.child=D;break}u=D.sibling,D.sibling=d,d=D,D=u}Zm(c,!0,d,null,w);break;case"together":Zm(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Jl(u,c,d){if(u!==null&&(c.dependencies=u.dependencies),Wu|=c.lanes,(d&c.childLanes)===0)if(u!==null){if(Df(u,c,d,!1),(d&c.childLanes)===0)return null}else return null;if(u!==null&&c.child!==u.child)throw Error(r(153));if(c.child!==null){for(u=c.child,d=yl(u,u.pendingProps),c.child=d,d.return=c;u.sibling!==null;)u=u.sibling,d=d.sibling=yl(u,u.pendingProps),d.return=c;d.sibling=null}return c.child}function Wm(u,c){return(u.lanes&c)!==0?!0:(u=u.dependencies,!!(u!==null&&Dh(u)))}function gC(u,c,d){switch(c.tag){case 3:ft(c,c.stateNode.containerInfo),Vu(c,Sr,u.memoizedState.cache),bf();break;case 27:case 5:le(c);break;case 4:ft(c,c.stateNode.containerInfo);break;case 10:Vu(c,c.type,c.memoizedProps.value);break;case 13:var m=c.memoizedState;if(m!==null)return m.dehydrated!==null?(Ku(c),c.flags|=128,null):(d&c.child.childLanes)!==0?P0(u,c,d):(Ku(c),u=Jl(u,c,d),u!==null?u.sibling:null);Ku(c);break;case 19:var D=(u.flags&128)!==0;if(m=(d&c.childLanes)!==0,m||(Df(u,c,d,!1),m=(d&c.childLanes)!==0),D){if(m)return Qm(u,c,d);c.flags|=128}if(D=c.memoizedState,D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),me(bn,bn.current),m)break;return null;case 22:case 23:return c.lanes=0,$m(u,c,d);case 24:Vu(c,Sr,u.memoizedState.cache)}return Jl(u,c,d)}function yC(u,c,d){if(u!==null)if(u.memoizedProps!==c.pendingProps)wr=!0;else{if(!Wm(u,d)&&(c.flags&128)===0)return wr=!1,gC(u,c,d);wr=(u.flags&131072)!==0}else wr=!1,Qt&&(c.flags&1048576)!==0&&sm(c,gf,c.index);switch(c.lanes=0,c.tag){case 16:e:{u=c.pendingProps;var m=c.elementType,D=m._init;if(m=D(m._payload),c.type=m,typeof m=="function")gh(m)?(u=Io(m,u),c.tag=1,c=Gm(null,c,m,u,d)):(c.tag=0,c=Vm(null,c,m,u,d));else{if(m!=null){if(D=m.$$typeof,D===P){c.tag=11,c=mC(null,c,m,u,d);break e}else if(D===G){c.tag=14,c=Xu(null,c,m,u,d);break e}}throw c=W(m)||m,Error(r(306,c,""))}}return c;case 0:return Vm(u,c,c.type,c.pendingProps,d);case 1:return m=c.type,D=Io(m,c.pendingProps),Gm(u,c,m,D,d);case 3:e:{if(ft(c,c.stateNode.containerInfo),u===null)throw Error(r(387));m=c.pendingProps;var w=c.memoizedState;D=w.element,Em(u,c),Gu(c,m,null,d);var M=c.memoizedState;if(m=M.cache,Vu(c,Sr,m),m!==w.cache&&a0(c,[Sr],d,!0),wf(),m=M.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:M.cache},c.updateQueue.baseState=w,c.memoizedState=w,c.flags&256){c=Im(u,c,m,d);break e}else if(m!==D){D=ui(Error(r(424)),c),Ef(D),c=Im(u,c,m,d);break e}else{switch(u=c.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(en=Al(u.firstChild),dr=c,Qt=!0,ki=null,Pi=!0,d=Zl(c,null,m,d),c.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(bf(),m===D){c=Jl(u,c,d);break e}jr(u,c,m,d)}c=c.child}return c;case 26:return Vh(u,c),u===null?(d=zC(c.type,null,c.pendingProps,null))?c.memoizedState=d:Qt||(d=c.type,u=c.pendingProps,m=Vi(Ye.current).createElement(d),m[zr]=c,m[ma]=u,mt(m,d,u),Dr(m),c.stateNode=m):c.memoizedState=zC(c.type,u.memoizedProps,c.pendingProps,u.memoizedState),null;case 27:return le(c),u===null&&Qt&&(m=c.stateNode=Ke(c.type,c.pendingProps,Ye.current),dr=c,Pi=!0,D=en,ns(c.type)?(rs=D,en=Al(m.firstChild)):en=D),jr(u,c,c.pendingProps.children,d),Vh(u,c),u===null&&(c.flags|=4194304),c.child;case 5:return u===null&&Qt&&((D=m=en)&&(m=Zf(m,c.type,c.pendingProps,Pi),m!==null?(c.stateNode=m,dr=c,en=Al(m.firstChild),Pi=!1,D=!0):D=!1),D||Hu(c)),le(c),D=c.type,w=c.pendingProps,M=u!==null?u.memoizedProps:null,m=w.children,ou(D,w)?m=null:M!==null&&ou(D,M)&&(c.flags|=32),c.memoizedState!==null&&(D=Cm(u,c,lC,null,null,d),Ka._currentValue=D),Vh(u,c),jr(u,c,m,d),c.child;case 6:return u===null&&Qt&&((u=d=en)&&(d=yR(d,c.pendingProps,Pi),d!==null?(c.stateNode=d,dr=c,en=null,u=!0):u=!1),u||Hu(c)),null;case 13:return P0(u,c,d);case 4:return ft(c,c.stateNode.containerInfo),m=c.pendingProps,u===null?c.child=dc(c,null,m,d):jr(u,c,m,d),c.child;case 11:return mC(u,c,c.type,c.pendingProps,d);case 7:return jr(u,c,c.pendingProps,d),c.child;case 8:return jr(u,c,c.pendingProps.children,d),c.child;case 12:return jr(u,c,c.pendingProps.children,d),c.child;case 10:return m=c.pendingProps,Vu(c,c.type,m.value),jr(u,c,m.children,d),c.child;case 9:return D=c.type._context,m=c.pendingProps.children,Lo(c),D=kr(D),m=m(D),c.flags|=1,jr(u,c,m,d),c.child;case 14:return Xu(u,c,c.type,c.pendingProps,d);case 15:return vc(u,c,c.type,c.pendingProps,d);case 19:return Qm(u,c,d);case 31:return m=c.pendingProps,d=c.mode,m={mode:m.mode,children:m.children},u===null?(d=Xm(m,d),d.ref=c.ref,c.child=d,d.return=c,c=d):(d=yl(u.child,m),d.ref=c.ref,c.child=d,d.return=c,c=d),c;case 22:return $m(u,c,d);case 24:return Lo(c),m=kr(Sr),u===null?(D=wh(),D===null&&(D=Sn,w=Cf(),D.pooledCache=w,w.refCount++,w!==null&&(D.pooledCacheLanes|=d),D=w),c.memoizedState={parent:m,cache:D},bm(c),Vu(c,Sr,D)):((u.lanes&d)!==0&&(Em(u,c),Gu(c,null,null,d),wf()),D=u.memoizedState,w=c.memoizedState,D.parent!==m?(D={parent:m,cache:m},c.memoizedState=D,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=D),Vu(c,Sr,m)):(m=w.cache,Vu(c,Sr,m),m!==D.cache&&a0(c,[Sr],d,!0))),jr(u,c,c.pendingProps.children,d),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function eu(u){u.flags|=4}function Nf(u,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!b1(c)){if(c=ci.current,c!==null&&((kt&4194048)===kt?la!==null:(kt&62914560)!==kt&&(kt&536870912)===0||c!==la))throw rc=gm,mm;u.flags|=8192}}function Ih(u,c){c!==null&&(u.flags|=4),u.flags&16384&&(c=u.tag!==22?zs():536870912,u.lanes|=c,jf|=c)}function Mf(u,c){if(!Qt)switch(u.tailMode){case"hidden":c=u.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?u.tail=null:d.sibling=null;break;case"collapsed":d=u.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?c||u.tail===null?u.tail=null:u.tail.sibling=null:m.sibling=null}}function vt(u){var c=u.alternate!==null&&u.alternate.child===u.child,d=0,m=0;if(c)for(var D=u.child;D!==null;)d|=D.lanes|D.childLanes,m|=D.subtreeFlags&65011712,m|=D.flags&65011712,D.return=u,D=D.sibling;else for(D=u.child;D!==null;)d|=D.lanes|D.childLanes,m|=D.subtreeFlags,m|=D.flags,D.return=u,D=D.sibling;return u.subtreeFlags|=m,u.childLanes=d,c}function j0(u,c,d){var m=c.pendingProps;switch(Hl(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(c),null;case 1:return vt(c),null;case 3:return d=c.stateNode,m=null,u!==null&&(m=u.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),$l(Sr),ce(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(u===null||u.child===null)&&(yf(c)?eu(c):u===null||u.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,r0())),vt(c),null;case 26:return d=c.memoizedState,u===null?(eu(c),d!==null?(vt(c),Nf(c,d)):(vt(c),c.flags&=-16777217)):d?d!==u.memoizedState?(eu(c),vt(c),Nf(c,d)):(vt(c),c.flags&=-16777217):(u.memoizedProps!==m&&eu(c),vt(c),c.flags&=-16777217),null;case 27:ue(c),d=Ye.current;var D=c.type;if(u!==null&&c.stateNode!=null)u.memoizedProps!==m&&eu(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return vt(c),null}u=ke.current,yf(c)?bh(c):(u=Ke(D,m,d),c.stateNode=u,eu(c))}return vt(c),null;case 5:if(ue(c),d=c.type,u!==null&&c.stateNode!=null)u.memoizedProps!==m&&eu(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return vt(c),null}if(u=ke.current,yf(c))bh(c);else{switch(D=Vi(Ye.current),u){case 1:u=D.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:u=D.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":u=D.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":u=D.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":u=D.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof m.is=="string"?D.createElement("select",{is:m.is}):D.createElement("select"),m.multiple?u.multiple=!0:m.size&&(u.size=m.size);break;default:u=typeof m.is=="string"?D.createElement(d,{is:m.is}):D.createElement(d)}}u[zr]=c,u[ma]=m;e:for(D=c.child;D!==null;){if(D.tag===5||D.tag===6)u.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===c)break e;for(;D.sibling===null;){if(D.return===null||D.return===c)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}c.stateNode=u;e:switch(mt(u,d,m),d){case"button":case"input":case"select":case"textarea":u=!!m.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&eu(c)}}return vt(c),c.flags&=-16777217,null;case 6:if(u&&c.stateNode!=null)u.memoizedProps!==m&&eu(c);else{if(typeof m!="string"&&c.stateNode===null)throw Error(r(166));if(u=Ye.current,yf(c)){if(u=c.stateNode,d=c.memoizedProps,m=null,D=dr,D!==null)switch(D.tag){case 27:case 5:m=D.memoizedProps}u[zr]=c,u=!!(u.nodeValue===d||m!==null&&m.suppressHydrationWarning===!0||p1(u.nodeValue,d)),u||Hu(c)}else u=Vi(u).createTextNode(m),u[zr]=c,c.stateNode=u}return vt(c),null;case 13:if(m=c.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(D=yf(c),m!==null&&m.dehydrated!==null){if(u===null){if(!D)throw Error(r(318));if(D=c.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(r(317));D[zr]=c}else bf(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;vt(c),D=!1}else D=r0(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=D),D=!0;if(!D)return c.flags&256?(Cl(c),c):(Cl(c),null)}if(Cl(c),(c.flags&128)!==0)return c.lanes=d,c;if(d=m!==null,u=u!==null&&u.memoizedState!==null,d){m=c.child,D=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(D=m.alternate.memoizedState.cachePool.pool);var w=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==D&&(m.flags|=2048)}return d!==u&&d&&(c.child.flags|=8192),Ih(c,c.updateQueue),vt(c),null;case 4:return ce(),u===null&&h1(c.stateNode.containerInfo),vt(c),null;case 10:return $l(c.type),vt(c),null;case 19:if(Re(bn),D=c.memoizedState,D===null)return vt(c),null;if(m=(c.flags&128)!==0,w=D.rendering,w===null)if(m)Mf(D,!1);else{if(lr!==0||u!==null&&(u.flags&128)!==0)for(u=c.child;u!==null;){if(w=qh(u),w!==null){for(c.flags|=128,Mf(D,!1),u=w.updateQueue,c.updateQueue=u,Ih(c,u),c.subtreeFlags=0,u=d,d=c.child;d!==null;)Tt(d,u),d=d.sibling;return me(bn,bn.current&1|2),c.child}u=u.sibling}D.tail!==null&&Ie()>ug&&(c.flags|=128,m=!0,Mf(D,!1),c.lanes=4194304)}else{if(!m)if(u=qh(w),u!==null){if(c.flags|=128,m=!0,u=u.updateQueue,c.updateQueue=u,Ih(c,u),Mf(D,!0),D.tail===null&&D.tailMode==="hidden"&&!w.alternate&&!Qt)return vt(c),null}else 2*Ie()-D.renderingStartTime>ug&&d!==536870912&&(c.flags|=128,m=!0,Mf(D,!1),c.lanes=4194304);D.isBackwards?(w.sibling=c.child,c.child=w):(u=D.last,u!==null?u.sibling=w:c.child=w,D.last=w)}return D.tail!==null?(c=D.tail,D.rendering=c,D.tail=c.sibling,D.renderingStartTime=Ie(),c.sibling=null,u=bn.current,me(bn,m?u&1|2:u&1),c):(vt(c),null);case 22:case 23:return Cl(c),Of(),m=c.memoizedState!==null,u!==null?u.memoizedState!==null!==m&&(c.flags|=8192):m&&(c.flags|=8192),m?(d&536870912)!==0&&(c.flags&128)===0&&(vt(c),c.subtreeFlags&6&&(c.flags|=8192)):vt(c),d=c.updateQueue,d!==null&&Ih(c,d.retryQueue),d=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(d=u.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==d&&(c.flags|=2048),u!==null&&Re(Gl),null;case 24:return d=null,u!==null&&(d=u.memoizedState.cache),c.memoizedState.cache!==d&&(c.flags|=2048),$l(Sr),vt(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function cR(u,c){switch(Hl(c),c.tag){case 1:return u=c.flags,u&65536?(c.flags=u&-65537|128,c):null;case 3:return $l(Sr),ce(),u=c.flags,(u&65536)!==0&&(u&128)===0?(c.flags=u&-65537|128,c):null;case 26:case 27:case 5:return ue(c),null;case 13:if(Cl(c),u=c.memoizedState,u!==null&&u.dehydrated!==null){if(c.alternate===null)throw Error(r(340));bf()}return u=c.flags,u&65536?(c.flags=u&-65537|128,c):null;case 19:return Re(bn),null;case 4:return ce(),null;case 10:return $l(c.type),null;case 22:case 23:return Cl(c),Of(),u!==null&&Re(Gl),u=c.flags,u&65536?(c.flags=u&-65537|128,c):null;case 24:return $l(Sr),null;case 25:return null;default:return null}}function F0(u,c){switch(Hl(c),c.tag){case 3:$l(Sr),ce();break;case 26:case 27:case 5:ue(c);break;case 4:ce();break;case 13:Cl(c);break;case 19:Re(bn);break;case 10:$l(c.type);break;case 22:case 23:Cl(c),Of(),u!==null&&Re(Gl);break;case 24:$l(Sr)}}function Yh(u,c){try{var d=c.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var D=m.next;d=D;do{if((d.tag&u)===u){m=void 0;var w=d.create,M=d.inst;m=w(),M.destroy=m}d=d.next}while(d!==D)}}catch(q){pn(c,c.return,q)}}function Ko(u,c,d){try{var m=c.updateQueue,D=m!==null?m.lastEffect:null;if(D!==null){var w=D.next;m=w;do{if((m.tag&u)===u){var M=m.inst,q=M.destroy;if(q!==void 0){M.destroy=void 0,D=c;var ee=d,pe=q;try{pe()}catch(_e){pn(D,ee,_e)}}}m=m.next}while(m!==w)}}catch(_e){pn(c,c.return,_e)}}function Jm(u){var c=u.updateQueue;if(c!==null){var d=u.stateNode;try{xh(c,d)}catch(m){pn(u,u.return,m)}}}function L0(u,c,d){d.props=Io(u.type,u.memoizedProps),d.state=u.memoizedState;try{d.componentWillUnmount()}catch(m){pn(u,c,m)}}function zf(u,c){try{var d=u.ref;if(d!==null){switch(u.tag){case 26:case 27:case 5:var m=u.stateNode;break;case 30:m=u.stateNode;break;default:m=u.stateNode}typeof d=="function"?u.refCleanup=d(m):d.current=m}}catch(D){pn(u,c,D)}}function wl(u,c){var d=u.ref,m=u.refCleanup;if(d!==null)if(typeof m=="function")try{m()}catch(D){pn(u,c,D)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(D){pn(u,c,D)}else d.current=null}function kf(u){var c=u.type,d=u.memoizedProps,m=u.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":d.autoFocus&&m.focus();break e;case"img":d.src?m.src=d.src:d.srcSet&&(m.srcset=d.srcSet)}}catch(D){pn(u,u.return,D)}}function q0(u,c,d){try{var m=u.stateNode;pR(m,u.type,d,c),m[ma]=c}catch(D){pn(u,u.return,D)}}function bC(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&ns(u.type)||u.tag===4}function qi(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||bC(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&ns(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function mc(u,c,d){var m=u.tag;if(m===5||m===6)u=u.stateNode,c?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(u,c):(c=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,c.appendChild(u),d=d._reactRootContainer,d!=null||c.onclick!==null||(c.onclick=bg));else if(m!==4&&(m===27&&ns(u.type)&&(d=u.stateNode,c=null),u=u.child,u!==null))for(mc(u,c,d),u=u.sibling;u!==null;)mc(u,c,d),u=u.sibling}function eg(u,c,d){var m=u.tag;if(m===5||m===6)u=u.stateNode,c?d.insertBefore(u,c):d.appendChild(u);else if(m!==4&&(m===27&&ns(u.type)&&(d=u.stateNode),u=u.child,u!==null))for(eg(u,c,d),u=u.sibling;u!==null;)eg(u,c,d),u=u.sibling}function tg(u){var c=u.stateNode,d=u.memoizedProps;try{for(var m=u.type,D=c.attributes;D.length;)c.removeAttributeNode(D[0]);mt(c,m,d),c[zr]=u,c[ma]=d}catch(w){pn(u,u.return,w)}}var tu=!1,ar=!1,ng=!1,rg=typeof WeakSet=="function"?WeakSet:Set,Ar=null;function U0(u,c){if(u=u.containerInfo,lv=dv,u=Zb(u),ph(u)){if("selectionStart"in u)var d={start:u.selectionStart,end:u.selectionEnd};else e:{d=(d=u.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var D=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{d.nodeType,w.nodeType}catch{d=null;break e}var M=0,q=-1,ee=-1,pe=0,_e=0,ze=u,be=null;t:for(;;){for(var De;ze!==d||D!==0&&ze.nodeType!==3||(q=M+D),ze!==w||m!==0&&ze.nodeType!==3||(ee=M+m),ze.nodeType===3&&(M+=ze.nodeValue.length),(De=ze.firstChild)!==null;)be=ze,ze=De;for(;;){if(ze===u)break t;if(be===d&&++pe===D&&(q=M),be===w&&++_e===m&&(ee=M),(De=ze.nextSibling)!==null)break;ze=be,be=ze.parentNode}ze=De}d=q===-1||ee===-1?null:{start:q,end:ee}}else d=null}d=d||{start:0,end:0}}else d=null;for(uv={focusedElem:u,selectionRange:d},dv=!1,Ar=c;Ar!==null;)if(c=Ar,u=c.child,(c.subtreeFlags&1024)!==0&&u!==null)u.return=c,Ar=u;else for(;Ar!==null;){switch(c=Ar,w=c.alternate,u=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&w!==null){u=void 0,d=c,D=w.memoizedProps,w=w.memoizedState,m=d.stateNode;try{var dt=Io(d.type,D,d.elementType===d.type);u=m.getSnapshotBeforeUpdate(dt,w),m.__reactInternalSnapshotBeforeUpdate=u}catch(ht){pn(d,d.return,ht)}}break;case 3:if((u&1024)!==0){if(u=c.stateNode.containerInfo,d=u.nodeType,d===9)ov(u);else if(d===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":ov(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=c.sibling,u!==null){u.return=c.return,Ar=u;break}Ar=c.return}}function H0(u,c,d){var m=d.flags;switch(d.tag){case 0:case 11:case 15:ru(u,d),m&4&&Yh(5,d);break;case 1:if(ru(u,d),m&4)if(u=d.stateNode,c===null)try{u.componentDidMount()}catch(M){pn(d,d.return,M)}else{var D=Io(d.type,c.memoizedProps);c=c.memoizedState;try{u.componentDidUpdate(D,c,u.__reactInternalSnapshotBeforeUpdate)}catch(M){pn(d,d.return,M)}}m&64&&Jm(d),m&512&&zf(d,d.return);break;case 3:if(ru(u,d),m&64&&(u=d.updateQueue,u!==null)){if(c=null,d.child!==null)switch(d.child.tag){case 27:case 5:c=d.child.stateNode;break;case 1:c=d.child.stateNode}try{xh(u,c)}catch(M){pn(d,d.return,M)}}break;case 27:c===null&&m&4&&tg(d);case 26:case 5:ru(u,d),c===null&&m&4&&kf(d),m&512&&zf(d,d.return);break;case 12:ru(u,d);break;case 13:ru(u,d),m&4&&ag(u,d),m&64&&(u=d.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(d=fR.bind(null,d),bR(u,d))));break;case 22:if(m=d.memoizedState!==null||tu,!m){c=c!==null&&c.memoizedState!==null||ar,D=tu;var w=ar;tu=m,(ar=c)&&!w?Xo(u,d,(d.subtreeFlags&8772)!==0):ru(u,d),tu=D,ar=w}break;case 30:break;default:ru(u,d)}}function $0(u){var c=u.alternate;c!==null&&(u.alternate=null,$0(c)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(c=u.stateNode,c!==null&&Jd(c)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var _n=null,Ir=!1;function nu(u,c,d){for(d=d.child;d!==null;)Rt(u,c,d),d=d.sibling}function Rt(u,c,d){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(va,d)}catch{}switch(d.tag){case 26:ar||wl(d,c),nu(u,c,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:ar||wl(d,c);var m=_n,D=Ir;ns(d.type)&&(_n=d.stateNode,Ir=!1),nu(u,c,d),Ia(d.stateNode),_n=m,Ir=D;break;case 5:ar||wl(d,c);case 6:if(m=_n,D=Ir,_n=null,nu(u,c,d),_n=m,Ir=D,_n!==null)if(Ir)try{(_n.nodeType===9?_n.body:_n.nodeName==="HTML"?_n.ownerDocument.body:_n).removeChild(d.stateNode)}catch(w){pn(d,c,w)}else try{_n.removeChild(d.stateNode)}catch(w){pn(d,c,w)}break;case 18:_n!==null&&(Ir?(u=_n,Dg(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,d.stateNode),fu(u)):Dg(_n,d.stateNode));break;case 4:m=_n,D=Ir,_n=d.stateNode.containerInfo,Ir=!0,nu(u,c,d),_n=m,Ir=D;break;case 0:case 11:case 14:case 15:ar||Ko(2,d,c),ar||Ko(4,d,c),nu(u,c,d);break;case 1:ar||(wl(d,c),m=d.stateNode,typeof m.componentWillUnmount=="function"&&L0(d,c,m)),nu(u,c,d);break;case 21:nu(u,c,d);break;case 22:ar=(m=ar)||d.memoizedState!==null,nu(u,c,d),ar=m;break;default:nu(u,c,d)}}function ag(u,c){if(c.memoizedState===null&&(u=c.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{fu(u)}catch(d){pn(c,c.return,d)}}function V0(u){switch(u.tag){case 13:case 19:var c=u.stateNode;return c===null&&(c=u.stateNode=new rg),c;case 22:return u=u.stateNode,c=u._retryCache,c===null&&(c=u._retryCache=new rg),c;default:throw Error(r(435,u.tag))}}function ig(u,c){var d=V0(u);c.forEach(function(m){var D=dR.bind(null,u,m);d.has(m)||(d.add(m),m.then(D,D))})}function ba(u,c){var d=c.deletions;if(d!==null)for(var m=0;m<d.length;m++){var D=d[m],w=u,M=c,q=M;e:for(;q!==null;){switch(q.tag){case 27:if(ns(q.type)){_n=q.stateNode,Ir=!1;break e}break;case 5:_n=q.stateNode,Ir=!1;break e;case 3:case 4:_n=q.stateNode.containerInfo,Ir=!0;break e}q=q.return}if(_n===null)throw Error(r(160));Rt(w,M,D),_n=null,Ir=!1,w=D.alternate,w!==null&&(w.return=null),D.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)Kh(c,u),c=c.sibling}var Ea=null;function Kh(u,c){var d=u.alternate,m=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:ba(c,u),Fr(u),m&4&&(Ko(3,u,u.return),Yh(3,u),Ko(5,u,u.return));break;case 1:ba(c,u),Fr(u),m&512&&(ar||d===null||wl(d,d.return)),m&64&&tu&&(u=u.updateQueue,u!==null&&(m=u.callbacks,m!==null&&(d=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=d===null?m:d.concat(m))));break;case 26:var D=Ea;if(ba(c,u),Fr(u),m&512&&(ar||d===null||wl(d,d.return)),m&4){var w=d!==null?d.memoizedState:null;if(m=u.memoizedState,d===null)if(m===null)if(u.stateNode===null){e:{m=u.type,d=u.memoizedProps,D=D.ownerDocument||D;t:switch(m){case"title":w=D.getElementsByTagName("title")[0],(!w||w[et]||w[zr]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=D.createElement(m),D.head.insertBefore(w,D.querySelector("head > title"))),mt(w,m,d),w[zr]=u,Dr(w),m=w;break e;case"link":var M=g1("link","href",D).get(m+(d.href||""));if(M){for(var q=0;q<M.length;q++)if(w=M[q],w.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&w.getAttribute("rel")===(d.rel==null?null:d.rel)&&w.getAttribute("title")===(d.title==null?null:d.title)&&w.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){M.splice(q,1);break t}}w=D.createElement(m),mt(w,m,d),D.head.appendChild(w);break;case"meta":if(M=g1("meta","content",D).get(m+(d.content||""))){for(q=0;q<M.length;q++)if(w=M[q],w.getAttribute("content")===(d.content==null?null:""+d.content)&&w.getAttribute("name")===(d.name==null?null:d.name)&&w.getAttribute("property")===(d.property==null?null:d.property)&&w.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&w.getAttribute("charset")===(d.charSet==null?null:d.charSet)){M.splice(q,1);break t}}w=D.createElement(m),mt(w,m,d),D.head.appendChild(w);break;default:throw Error(r(468,m))}w[zr]=u,Dr(w),m=w}u.stateNode=m}else y1(D,u.type,u.stateNode);else u.stateNode=PC(D,m,u.memoizedProps);else w!==m?(w===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):w.count--,m===null?y1(D,u.type,u.stateNode):PC(D,m,u.memoizedProps)):m===null&&u.stateNode!==null&&q0(u,u.memoizedProps,d.memoizedProps)}break;case 27:ba(c,u),Fr(u),m&512&&(ar||d===null||wl(d,d.return)),d!==null&&m&4&&q0(u,u.memoizedProps,d.memoizedProps);break;case 5:if(ba(c,u),Fr(u),m&512&&(ar||d===null||wl(d,d.return)),u.flags&32){D=u.stateNode;try{lf(D,"")}catch(De){pn(u,u.return,De)}}m&4&&u.stateNode!=null&&(D=u.memoizedProps,q0(u,D,d!==null?d.memoizedProps:D)),m&1024&&(ng=!0);break;case 6:if(ba(c,u),Fr(u),m&4){if(u.stateNode===null)throw Error(r(162));m=u.memoizedProps,d=u.stateNode;try{d.nodeValue=m}catch(De){pn(u,u.return,De)}}break;case 3:if(ls=null,D=Ea,Ea=Sg(c.containerInfo),ba(c,u),Ea=D,Fr(u),m&4&&d!==null&&d.memoizedState.isDehydrated)try{fu(c.containerInfo)}catch(De){pn(u,u.return,De)}ng&&(ng=!1,G0(u));break;case 4:m=Ea,Ea=Sg(u.stateNode.containerInfo),ba(c,u),Fr(u),Ea=m;break;case 12:ba(c,u),Fr(u);break;case 13:ba(c,u),Fr(u),u.child.flags&8192&&u.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(J0=Ie()),m&4&&(m=u.updateQueue,m!==null&&(u.updateQueue=null,ig(u,m)));break;case 22:D=u.memoizedState!==null;var ee=d!==null&&d.memoizedState!==null,pe=tu,_e=ar;if(tu=pe||D,ar=_e||ee,ba(c,u),ar=_e,tu=pe,Fr(u),m&8192)e:for(c=u.stateNode,c._visibility=D?c._visibility&-2:c._visibility|1,D&&(d===null||ee||tu||ar||Rn(u)),d=null,c=u;;){if(c.tag===5||c.tag===26){if(d===null){ee=d=c;try{if(w=ee.stateNode,D)M=w.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{q=ee.stateNode;var ze=ee.memoizedProps.style,be=ze!=null&&ze.hasOwnProperty("display")?ze.display:null;q.style.display=be==null||typeof be=="boolean"?"":(""+be).trim()}}catch(De){pn(ee,ee.return,De)}}}else if(c.tag===6){if(d===null){ee=c;try{ee.stateNode.nodeValue=D?"":ee.memoizedProps}catch(De){pn(ee,ee.return,De)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===u)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===u)break e;for(;c.sibling===null;){if(c.return===null||c.return===u)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}m&4&&(m=u.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,ig(u,d))));break;case 19:ba(c,u),Fr(u),m&4&&(m=u.updateQueue,m!==null&&(u.updateQueue=null,ig(u,m)));break;case 30:break;case 21:break;default:ba(c,u),Fr(u)}}function Fr(u){var c=u.flags;if(c&2){try{for(var d,m=u.return;m!==null;){if(bC(m)){d=m;break}m=m.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var D=d.stateNode,w=qi(u);eg(u,w,D);break;case 5:var M=d.stateNode;d.flags&32&&(lf(M,""),d.flags&=-33);var q=qi(u);eg(u,q,M);break;case 3:case 4:var ee=d.stateNode.containerInfo,pe=qi(u);mc(u,pe,ee);break;default:throw Error(r(161))}}catch(_e){pn(u,u.return,_e)}u.flags&=-3}c&4096&&(u.flags&=-4097)}function G0(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var c=u;G0(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),u=u.sibling}}function ru(u,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)H0(u,c.alternate,c),c=c.sibling}function Rn(u){for(u=u.child;u!==null;){var c=u;switch(c.tag){case 0:case 11:case 14:case 15:Ko(4,c,c.return),Rn(c);break;case 1:wl(c,c.return);var d=c.stateNode;typeof d.componentWillUnmount=="function"&&L0(c,c.return,d),Rn(c);break;case 27:Ia(c.stateNode);case 26:case 5:wl(c,c.return),Rn(c);break;case 22:c.memoizedState===null&&Rn(c);break;case 30:Rn(c);break;default:Rn(c)}u=u.sibling}}function Xo(u,c,d){for(d=d&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var m=c.alternate,D=u,w=c,M=w.flags;switch(w.tag){case 0:case 11:case 15:Xo(D,w,d),Yh(4,w);break;case 1:if(Xo(D,w,d),m=w,D=m.stateNode,typeof D.componentDidMount=="function")try{D.componentDidMount()}catch(pe){pn(m,m.return,pe)}if(m=w,D=m.updateQueue,D!==null){var q=m.stateNode;try{var ee=D.shared.hiddenCallbacks;if(ee!==null)for(D.shared.hiddenCallbacks=null,D=0;D<ee.length;D++)Dm(ee[D],q)}catch(pe){pn(m,m.return,pe)}}d&&M&64&&Jm(w),zf(w,w.return);break;case 27:tg(w);case 26:case 5:Xo(D,w,d),d&&m===null&&M&4&&kf(w),zf(w,w.return);break;case 12:Xo(D,w,d);break;case 13:Xo(D,w,d),d&&M&4&&ag(D,w);break;case 22:w.memoizedState===null&&Xo(D,w,d),zf(w,w.return);break;case 30:break;default:Xo(D,w,d)}c=c.sibling}}function Ui(u,c){var d=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(d=u.memoizedState.cachePool.pool),u=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(u=c.memoizedState.cachePool.pool),u!==d&&(u!=null&&u.refCount++,d!=null&&Vl(d))}function lg(u,c){u=null,c.alternate!==null&&(u=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==u&&(c.refCount++,u!=null&&Vl(u))}function Yr(u,c,d,m){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)I0(u,c,d,m),c=c.sibling}function I0(u,c,d,m){var D=c.flags;switch(c.tag){case 0:case 11:case 15:Yr(u,c,d,m),D&2048&&Yh(9,c);break;case 1:Yr(u,c,d,m);break;case 3:Yr(u,c,d,m),D&2048&&(u=null,c.alternate!==null&&(u=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==u&&(c.refCount++,u!=null&&Vl(u)));break;case 12:if(D&2048){Yr(u,c,d,m),u=c.stateNode;try{var w=c.memoizedProps,M=w.id,q=w.onPostCommit;typeof q=="function"&&q(M,c.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(ee){pn(c,c.return,ee)}}else Yr(u,c,d,m);break;case 13:Yr(u,c,d,m);break;case 23:break;case 22:w=c.stateNode,M=c.alternate,c.memoizedState!==null?w._visibility&2?Yr(u,c,d,m):tn(u,c):w._visibility&2?Yr(u,c,d,m):(w._visibility|=2,Zu(u,c,d,m,(c.subtreeFlags&10256)!==0)),D&2048&&Ui(M,c);break;case 24:Yr(u,c,d,m),D&2048&&lg(c.alternate,c);break;default:Yr(u,c,d,m)}}function Zu(u,c,d,m,D){for(D=D&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var w=u,M=c,q=d,ee=m,pe=M.flags;switch(M.tag){case 0:case 11:case 15:Zu(w,M,q,ee,D),Yh(8,M);break;case 23:break;case 22:var _e=M.stateNode;M.memoizedState!==null?_e._visibility&2?Zu(w,M,q,ee,D):tn(w,M):(_e._visibility|=2,Zu(w,M,q,ee,D)),D&&pe&2048&&Ui(M.alternate,M);break;case 24:Zu(w,M,q,ee,D),D&&pe&2048&&lg(M.alternate,M);break;default:Zu(w,M,q,ee,D)}c=c.sibling}}function tn(u,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var d=u,m=c,D=m.flags;switch(m.tag){case 22:tn(d,m),D&2048&&Ui(m.alternate,m);break;case 24:tn(d,m),D&2048&&lg(m.alternate,m);break;default:tn(d,m)}c=c.sibling}}var gc=8192;function ir(u){if(u.subtreeFlags&gc)for(u=u.child;u!==null;)EC(u),u=u.sibling}function EC(u){switch(u.tag){case 26:ir(u),u.flags&gc&&u.memoizedState!==null&&LC(Ea,u.memoizedState,u.memoizedProps);break;case 5:ir(u);break;case 3:case 4:var c=Ea;Ea=Sg(u.stateNode.containerInfo),ir(u),Ea=c;break;case 22:u.memoizedState===null&&(c=u.alternate,c!==null&&c.memoizedState!==null?(c=gc,gc=16777216,ir(u),gc=c):ir(u));break;default:ir(u)}}function Y0(u){var c=u.alternate;if(c!==null&&(u=c.child,u!==null)){c.child=null;do c=u.sibling,u.sibling=null,u=c;while(u!==null)}}function yc(u){var c=u.deletions;if((u.flags&16)!==0){if(c!==null)for(var d=0;d<c.length;d++){var m=c[d];Ar=m,X0(m,u)}Y0(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)K0(u),u=u.sibling}function K0(u){switch(u.tag){case 0:case 11:case 15:yc(u),u.flags&2048&&Ko(9,u,u.return);break;case 3:yc(u);break;case 12:yc(u);break;case 22:var c=u.stateNode;u.memoizedState!==null&&c._visibility&2&&(u.return===null||u.return.tag!==13)?(c._visibility&=-3,Da(u)):yc(u);break;default:yc(u)}}function Da(u){var c=u.deletions;if((u.flags&16)!==0){if(c!==null)for(var d=0;d<c.length;d++){var m=c[d];Ar=m,X0(m,u)}Y0(u)}for(u=u.child;u!==null;){switch(c=u,c.tag){case 0:case 11:case 15:Ko(8,c,c.return),Da(c);break;case 22:d=c.stateNode,d._visibility&2&&(d._visibility&=-3,Da(c));break;default:Da(c)}u=u.sibling}}function X0(u,c){for(;Ar!==null;){var d=Ar;switch(d.tag){case 0:case 11:case 15:Ko(8,d,c);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var m=d.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Vl(d.memoizedState.cache)}if(m=d.child,m!==null)m.return=d,Ar=m;else e:for(d=u;Ar!==null;){m=Ar;var D=m.sibling,w=m.return;if($0(m),m===d){Ar=null;break e}if(D!==null){D.return=w,Ar=D;break e}Ar=w}}}var Z0={getCacheForType:function(u){var c=kr(Sr),d=c.data.get(u);return d===void 0&&(d=u(),c.data.set(u,d)),d}},DC=typeof WeakMap=="function"?WeakMap:Map,un=0,Sn=null,zt=null,kt=0,hn=0,$a=null,au=!1,Pf=!1,Q0=!1,Qu=0,lr=0,Wu=0,bc=0,iu=0,Hi=0,jf=0,Ff=null,Va=null,W0=!1,J0=0,ug=1/0,Lf=null,Zo=null,Kr=0,lu=null,qf=null,Xr=0,og=0,sg=null,e1=null,Uf=0,t1=null;function fi(){if((un&2)!==0&&kt!==0)return kt&-kt;if(U.T!==null){var u=ji;return u!==0?u:Cc()}return kS()}function n1(){Hi===0&&(Hi=(kt&536870912)===0||Qt?So():536870912);var u=ci.current;return u!==null&&(u.flags|=32),Hi}function di(u,c,d){(u===Sn&&(hn===2||hn===9)||u.cancelPendingCommit!==null)&&(uu(u,0),Ju(u,kt,Hi,!1)),ks(u,d),((un&2)===0||u!==Sn)&&(u===Sn&&((un&2)===0&&(bc|=d),lr===4&&Ju(u,kt,Hi,!1)),Ga(u))}function Hf(u,c,d){if((un&6)!==0)throw Error(r(327));var m=!d&&(c&124)===0&&(c&u.expiredLanes)===0||ai(u,c),D=m?a1(u,c):cg(u,c,!0),w=m;do{if(D===0){Pf&&!m&&Ju(u,c,0,!1);break}else{if(d=u.current.alternate,w&&!SC(d)){D=cg(u,c,!1),w=!1;continue}if(D===2){if(w=c,u.errorRecoveryDisabledLanes&w)var M=0;else M=u.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){c=M;e:{var q=u;D=Ff;var ee=q.current.memoizedState.isDehydrated;if(ee&&(uu(q,M).flags|=256),M=cg(q,M,!1),M!==2){if(Q0&&!ee){q.errorRecoveryDisabledLanes|=w,bc|=w,D=4;break e}w=Va,Va=D,w!==null&&(Va===null?Va=w:Va.push.apply(Va,w))}D=M}if(w=!1,D!==2)continue}}if(D===1){uu(u,0),Ju(u,c,0,!0);break}e:{switch(m=u,w=D,w){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:Ju(m,c,Hi,!au);break e;case 2:Va=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(D=J0+300-Ie(),10<D)){if(Ju(m,c,Hi,!au),Bi(m,0,!0)!==0)break e;m.timeoutHandle=Eg(Xh.bind(null,m,d,Va,Lf,W0,c,Hi,bc,jf,au,w,2,-0,0),D);break e}Xh(m,d,Va,Lf,W0,c,Hi,bc,jf,au,w,0,-0,0)}}break}while(!0);Ga(u)}function Xh(u,c,d,m,D,w,M,q,ee,pe,_e,ze,be,De){if(u.timeoutHandle=-1,ze=c.subtreeFlags,(ze&8192||(ze&16785408)===16785408)&&(ed={stylesheets:null,count:0,unsuspend:FC},EC(c),ze=E1(),ze!==null)){u.cancelPendingCommit=ze(AC.bind(null,u,c,w,d,m,D,M,q,ee,_e,1,be,De)),Ju(u,w,M,!pe);return}AC(u,c,w,d,m,D,M,q,ee)}function SC(u){for(var c=u;;){var d=c.tag;if((d===0||d===11||d===15)&&c.flags&16384&&(d=c.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var m=0;m<d.length;m++){var D=d[m],w=D.getSnapshot;D=D.value;try{if(!Gr(w(),D))return!1}catch{return!1}}if(d=c.child,c.subtreeFlags&16384&&d!==null)d.return=c,c=d;else{if(c===u)break;for(;c.sibling===null;){if(c.return===null||c.return===u)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ju(u,c,d,m){c&=~iu,c&=~bc,u.suspendedLanes|=c,u.pingedLanes&=~c,m&&(u.warmLanes|=c),m=u.expirationTimes;for(var D=c;0<D;){var w=31-Mt(D),M=1<<w;m[w]=-1,D&=~M}d!==0&&Qd(u,d,c)}function Ec(){return(un&6)===0?(Jh(0),!1):!0}function Qo(){if(zt!==null){if(hn===0)var u=zt.return;else u=zt,El=$u=null,Am(u),cc=null,Bf=0,u=zt;for(;u!==null;)F0(u.alternate,u),u=u.return;zt=null}}function uu(u,c){var d=u.timeoutHandle;d!==-1&&(u.timeoutHandle=-1,mR(d)),d=u.cancelPendingCommit,d!==null&&(u.cancelPendingCommit=null,d()),Qo(),Sn=u,zt=d=yl(u.current,null),kt=c,hn=0,$a=null,au=!1,Pf=ai(u,c),Q0=!1,jf=Hi=iu=bc=Wu=lr=0,Va=Ff=null,W0=!1,(c&8)!==0&&(c|=c&32);var m=u.entangledLanes;if(m!==0)for(u=u.entanglements,m&=c;0<m;){var D=31-Mt(m),w=1<<D;c|=u[D],m&=~w}return Qu=c,gl(),d}function r1(u,c){St=null,U.H=qm,c===Uo||c===Ah?(c=u0(),hn=3):c===mm?(c=u0(),hn=4):hn=c===rr?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,$a=c,zt===null&&(lr=1,$h(u,ui(c,u.current)))}function CC(){var u=U.H;return U.H=qm,u===null?qm:u}function Dc(){var u=U.A;return U.A=Z0,u}function Sc(){lr=4,au||(kt&4194048)!==kt&&ci.current!==null||(Pf=!0),(Wu&134217727)===0&&(bc&134217727)===0||Sn===null||Ju(Sn,kt,Hi,!1)}function cg(u,c,d){var m=un;un|=2;var D=CC(),w=Dc();(Sn!==u||kt!==c)&&(Lf=null,uu(u,c)),c=!1;var M=lr;e:do try{if(hn!==0&&zt!==null){var q=zt,ee=$a;switch(hn){case 8:Qo(),M=6;break e;case 3:case 2:case 9:case 6:ci.current===null&&(c=!0);var pe=hn;if(hn=0,$a=null,$f(u,q,ee,pe),d&&Pf){M=0;break e}break;default:pe=hn,hn=0,$a=null,$f(u,q,ee,pe)}}fg(),M=lr;break}catch(_e){r1(u,_e)}while(!0);return c&&u.shellSuspendCounter++,El=$u=null,un=m,U.H=D,U.A=w,zt===null&&(Sn=null,kt=0,gl()),M}function fg(){for(;zt!==null;)l1(zt)}function a1(u,c){var d=un;un|=2;var m=CC(),D=Dc();Sn!==u||kt!==c?(Lf=null,ug=Ie()+500,uu(u,c)):Pf=ai(u,c);e:do try{if(hn!==0&&zt!==null){c=zt;var w=$a;t:switch(hn){case 1:hn=0,$a=null,$f(u,c,w,1);break;case 2:case 9:if(ym(w)){hn=0,$a=null,u1(c);break}c=function(){hn!==2&&hn!==9||Sn!==u||(hn=7),Ga(u)},w.then(c,c);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:ym(w)?(hn=0,$a=null,u1(c)):(hn=0,$a=null,$f(u,c,w,7));break;case 5:var M=null;switch(zt.tag){case 26:M=zt.memoizedState;case 5:case 27:var q=zt;if(!M||b1(M)){hn=0,$a=null;var ee=q.sibling;if(ee!==null)zt=ee;else{var pe=q.return;pe!==null?(zt=pe,Zh(pe)):zt=null}break t}}hn=0,$a=null,$f(u,c,w,5);break;case 6:hn=0,$a=null,$f(u,c,w,6);break;case 8:Qo(),lr=6;break e;default:throw Error(r(462))}}i1();break}catch(_e){r1(u,_e)}while(!0);return El=$u=null,U.H=m,U.A=D,un=d,zt!==null?0:(Sn=null,kt=0,gl(),lr)}function i1(){for(;zt!==null&&!ut();)l1(zt)}function l1(u){var c=yC(u.alternate,u,Qu);u.memoizedProps=u.pendingProps,c===null?Zh(u):zt=c}function u1(u){var c=u,d=c.alternate;switch(c.tag){case 15:case 0:c=M0(d,c,c.pendingProps,c.type,void 0,kt);break;case 11:c=M0(d,c,c.pendingProps,c.type.render,c.ref,kt);break;case 5:Am(c);default:F0(d,c),c=zt=Tt(c,Qu),c=yC(d,c,Qu)}u.memoizedProps=u.pendingProps,c===null?Zh(u):zt=c}function $f(u,c,d,m){El=$u=null,Am(c),cc=null,Bf=0;var D=c.return;try{if(pC(u,D,c,d,kt)){lr=1,$h(u,ui(d,u.current)),zt=null;return}}catch(w){if(D!==null)throw zt=D,w;lr=1,$h(u,ui(d,u.current)),zt=null;return}c.flags&32768?(Qt||m===1?u=!0:Pf||(kt&536870912)!==0?u=!1:(au=u=!0,(m===2||m===9||m===3||m===6)&&(m=ci.current,m!==null&&m.tag===13&&(m.flags|=16384))),wC(c,u)):Zh(c)}function Zh(u){var c=u;do{if((c.flags&32768)!==0){wC(c,au);return}u=c.return;var d=j0(c.alternate,c,Qu);if(d!==null){zt=d;return}if(c=c.sibling,c!==null){zt=c;return}zt=c=u}while(c!==null);lr===0&&(lr=5)}function wC(u,c){do{var d=cR(u.alternate,u);if(d!==null){d.flags&=32767,zt=d;return}if(d=u.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!c&&(u=u.sibling,u!==null)){zt=u;return}zt=u=d}while(u!==null);lr=6,zt=null}function AC(u,c,d,m,D,w,M,q,ee){u.cancelPendingCommit=null;do hg();while(Kr!==0);if((un&6)!==0)throw Error(r(327));if(c!==null){if(c===u.current)throw Error(r(177));if(w=c.lanes|c.childLanes,w|=ql,zS(u,d,w,M,q,ee),u===Sn&&(zt=Sn=null,kt=0),qf=c,lu=u,Xr=d,og=w,sg=D,e1=m,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,hR(Vt,function(){return o1(),null})):(u.callbackNode=null,u.callbackPriority=0),m=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||m){m=U.T,U.T=null,D=Z.p,Z.p=2,M=un,un|=4;try{U0(u,c,d)}finally{un=M,Z.p=D,U.T=m}}Kr=1,OC(),Qh(),dg()}}function OC(){if(Kr===1){Kr=0;var u=lu,c=qf,d=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||d){d=U.T,U.T=null;var m=Z.p;Z.p=2;var D=un;un|=4;try{Kh(c,u);var w=uv,M=Zb(u.containerInfo),q=w.focusedElem,ee=w.selectionRange;if(M!==q&&q&&q.ownerDocument&&vh(q.ownerDocument.documentElement,q)){if(ee!==null&&ph(q)){var pe=ee.start,_e=ee.end;if(_e===void 0&&(_e=pe),"selectionStart"in q)q.selectionStart=pe,q.selectionEnd=Math.min(_e,q.value.length);else{var ze=q.ownerDocument||document,be=ze&&ze.defaultView||window;if(be.getSelection){var De=be.getSelection(),dt=q.textContent.length,ht=Math.min(ee.start,dt),nn=ee.end===void 0?ht:Math.min(ee.end,dt);!De.extend&&ht>nn&&(M=nn,nn=ht,ht=M);var de=On(q,ht),se=On(q,nn);if(de&&se&&(De.rangeCount!==1||De.anchorNode!==de.node||De.anchorOffset!==de.offset||De.focusNode!==se.node||De.focusOffset!==se.offset)){var ve=ze.createRange();ve.setStart(de.node,de.offset),De.removeAllRanges(),ht>nn?(De.addRange(ve),De.extend(se.node,se.offset)):(ve.setEnd(se.node,se.offset),De.addRange(ve))}}}}for(ze=[],De=q;De=De.parentNode;)De.nodeType===1&&ze.push({element:De,left:De.scrollLeft,top:De.scrollTop});for(typeof q.focus=="function"&&q.focus(),q=0;q<ze.length;q++){var Ne=ze[q];Ne.element.scrollLeft=Ne.left,Ne.element.scrollTop=Ne.top}}dv=!!lv,uv=lv=null}finally{un=D,Z.p=m,U.T=d}}u.current=c,Kr=2}}function Qh(){if(Kr===2){Kr=0;var u=lu,c=qf,d=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||d){d=U.T,U.T=null;var m=Z.p;Z.p=2;var D=un;un|=4;try{H0(u,c.alternate,c)}finally{un=D,Z.p=m,U.T=d}}Kr=3}}function dg(){if(Kr===4||Kr===3){Kr=0,yt();var u=lu,c=qf,d=Xr,m=e1;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Kr=5:(Kr=0,qf=lu=null,xC(u,u.pendingLanes));var D=u.pendingLanes;if(D===0&&(Zo=null),Up(d),c=c.stateNode,Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(va,c,void 0,(c.current.flags&128)===128)}catch{}if(m!==null){c=U.T,D=Z.p,Z.p=2,U.T=null;try{for(var w=u.onRecoverableError,M=0;M<m.length;M++){var q=m[M];w(q.value,{componentStack:q.stack})}}finally{U.T=c,Z.p=D}}(Xr&3)!==0&&hg(),Ga(u),D=u.pendingLanes,(d&4194090)!==0&&(D&42)!==0?u===t1?Uf++:(Uf=0,t1=u):Uf=0,Jh(0)}}function xC(u,c){(u.pooledCacheLanes&=c)===0&&(c=u.pooledCache,c!=null&&(u.pooledCache=null,Vl(c)))}function hg(u){return OC(),Qh(),dg(),o1()}function o1(){if(Kr!==5)return!1;var u=lu,c=og;og=0;var d=Up(Xr),m=U.T,D=Z.p;try{Z.p=32>d?32:d,U.T=null,d=sg,sg=null;var w=lu,M=Xr;if(Kr=0,qf=lu=null,Xr=0,(un&6)!==0)throw Error(r(331));var q=un;if(un|=4,K0(w.current),I0(w,w.current,M,d),un=q,Jh(0,!1),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(va,w)}catch{}return!0}finally{Z.p=D,U.T=m,xC(u,c)}}function s1(u,c,d){c=ui(d,c),c=R0(u.stateNode,c,2),u=Yl(u,c,2),u!==null&&(ks(u,2),Ga(u))}function pn(u,c,d){if(u.tag===3)s1(u,u,d);else for(;c!==null;){if(c.tag===3){s1(c,u,d);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Zo===null||!Zo.has(m))){u=ui(d,u),d=N0(2),m=Yl(c,d,2),m!==null&&(Ha(d,m,c,u),ks(m,2),Ga(m));break}}c=c.return}}function vg(u,c,d){var m=u.pingCache;if(m===null){m=u.pingCache=new DC;var D=new Set;m.set(c,D)}else D=m.get(c),D===void 0&&(D=new Set,m.set(c,D));D.has(d)||(Q0=!0,D.add(d),u=c1.bind(null,u,c,d),c.then(u,u))}function c1(u,c,d){var m=u.pingCache;m!==null&&m.delete(c),u.pingedLanes|=u.suspendedLanes&d,u.warmLanes&=~d,Sn===u&&(kt&d)===d&&(lr===4||lr===3&&(kt&62914560)===kt&&300>Ie()-J0?(un&2)===0&&uu(u,0):iu|=d,jf===kt&&(jf=0)),Ga(u)}function f1(u,c){c===0&&(c=zs()),u=Ul(u,c),u!==null&&(ks(u,c),Ga(u))}function fR(u){var c=u.memoizedState,d=0;c!==null&&(d=c.retryLane),f1(u,d)}function dR(u,c){var d=0;switch(u.tag){case 13:var m=u.stateNode,D=u.memoizedState;D!==null&&(d=D.retryLane);break;case 19:m=u.stateNode;break;case 22:m=u.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(c),f1(u,d)}function hR(u,c){return Ue(u,c)}var pg=null,Wo=null,Wh=!1,Vf=!1,mg=!1,Jo=0;function Ga(u){u!==Wo&&u.next===null&&(Wo===null?pg=Wo=u:Wo=Wo.next=u),Vf=!0,Wh||(Wh=!0,_C())}function Jh(u,c){if(!mg&&Vf){mg=!0;do for(var d=!1,m=pg;m!==null;){if(u!==0){var D=m.pendingLanes;if(D===0)var w=0;else{var M=m.suspendedLanes,q=m.pingedLanes;w=(1<<31-Mt(42|u)+1)-1,w&=D&~(M&~q),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(d=!0,tv(m,w))}else w=kt,w=Bi(m,m===Sn?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||ai(m,w)||(d=!0,tv(m,w));m=m.next}while(d);mg=!1}}function TC(){ev()}function ev(){Vf=Wh=!1;var u=0;Jo!==0&&(no()&&(u=Jo),Jo=0);for(var c=Ie(),d=null,m=pg;m!==null;){var D=m.next,w=d1(m,c);w===0?(m.next=null,d===null?pg=D:d.next=D,D===null&&(Wo=d)):(d=m,(u!==0||(w&3)!==0)&&(Vf=!0)),m=D}Jh(u)}function d1(u,c){for(var d=u.suspendedLanes,m=u.pingedLanes,D=u.expirationTimes,w=u.pendingLanes&-62914561;0<w;){var M=31-Mt(w),q=1<<M,ee=D[M];ee===-1?((q&d)===0||(q&m)!==0)&&(D[M]=Mr(q,c)):ee<=c&&(u.expiredLanes|=q),w&=~q}if(c=Sn,d=kt,d=Bi(u,u===c?d:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),m=u.callbackNode,d===0||u===c&&(hn===2||hn===9)||u.cancelPendingCommit!==null)return m!==null&&m!==null&&He(m),u.callbackNode=null,u.callbackPriority=0;if((d&3)===0||ai(u,d)){if(c=d&-d,c===u.callbackPriority)return c;switch(m!==null&&He(m),Up(d)){case 2:case 8:d=Bn;break;case 32:d=Vt;break;case 268435456:d=Jt;break;default:d=Vt}return m=BC.bind(null,u),d=Ue(d,m),u.callbackPriority=c,u.callbackNode=d,c}return m!==null&&m!==null&&He(m),u.callbackPriority=2,u.callbackNode=null,2}function BC(u,c){if(Kr!==0&&Kr!==5)return u.callbackNode=null,u.callbackPriority=0,null;var d=u.callbackNode;if(hg()&&u.callbackNode!==d)return null;var m=kt;return m=Bi(u,u===Sn?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),m===0?null:(Hf(u,m,c),d1(u,Ie()),u.callbackNode!=null&&u.callbackNode===d?BC.bind(null,u):null)}function tv(u,c){if(hg())return null;Hf(u,c,!0)}function _C(){gR(function(){(un&6)!==0?Ue(Wt,TC):ev()})}function Cc(){return Jo===0&&(Jo=So()),Jo}function gg(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:lh(""+u)}function nv(u,c){var d=c.ownerDocument.createElement("input");return d.name=c.name,d.value=c.value,u.id&&d.setAttribute("form",u.id),c.parentNode.insertBefore(d,c),u=new FormData(u),d.parentNode.removeChild(d),u}function RC(u,c,d,m,D){if(c==="submit"&&d&&d.stateNode===D){var w=gg((D[ma]||null).action),M=m.submitter;M&&(c=(c=M[ma]||null)?gg(c.formAction):M.getAttribute("formAction"),c!==null&&(w=c,M=null));var q=new Jp("action","action",null,m,D);u.push({event:q,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Jo!==0){var ee=M?nv(D,M):new FormData(D);Lm(d,{pending:!0,data:ee,method:D.method,action:w},null,ee)}}else typeof w=="function"&&(q.preventDefault(),ee=M?nv(D,M):new FormData(D),Lm(d,{pending:!0,data:ee,method:D.method,action:w},w,ee))},currentTarget:D}]})}}for(var ur=0;ur<df.length;ur++){var rv=df[ur],vR=rv.toLowerCase(),xt=rv[0].toUpperCase()+rv.slice(1);Ni(vR,"on"+xt)}Ni(eC,"onAnimationEnd"),Ni(Qb,"onAnimationIteration"),Ni(tC,"onAnimationStart"),Ni("dblclick","onDoubleClick"),Ni("focusin","onFocus"),Ni("focusout","onBlur"),Ni(Wb,"onTransitionRun"),Ni(om,"onTransitionStart"),Ni(nC,"onTransitionCancel"),Ni(Jb,"onTransitionEnd"),Ao("onMouseEnter",["mouseout","mouseover"]),Ao("onMouseLeave",["mouseout","mouseover"]),Ao("onPointerEnter",["pointerout","pointerover"]),Ao("onPointerLeave",["pointerout","pointerover"]),wo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wo("onBeforeInput",["compositionend","keypress","textInput","paste"]),wo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var av="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(" "),es=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(av));function wc(u,c){c=(c&4)!==0;for(var d=0;d<u.length;d++){var m=u[d],D=m.event;m=m.listeners;e:{var w=void 0;if(c)for(var M=m.length-1;0<=M;M--){var q=m[M],ee=q.instance,pe=q.currentTarget;if(q=q.listener,ee!==w&&D.isPropagationStopped())break e;w=q,D.currentTarget=pe;try{w(D)}catch(_e){Uh(_e)}D.currentTarget=null,w=ee}else for(M=0;M<m.length;M++){if(q=m[M],ee=q.instance,pe=q.currentTarget,q=q.listener,ee!==w&&D.isPropagationStopped())break e;w=q,D.currentTarget=pe;try{w(D)}catch(_e){Uh(_e)}D.currentTarget=null,w=ee}}}}function Ct(u,c){var d=c[Hp];d===void 0&&(d=c[Hp]=new Set);var m=u+"__bubble";d.has(m)||(yg(c,u,2,!1),d.add(m))}function Gf(u,c,d){var m=0;c&&(m|=4),yg(d,u,m,c)}var If="_reactListening"+Math.random().toString(36).slice(2);function h1(u){if(!u[If]){u[If]=!0,th.forEach(function(d){d!=="selectionchange"&&(es.has(d)||Gf(d,!1,u),Gf(d,!0,u))});var c=u.nodeType===9?u:u.ownerDocument;c===null||c[If]||(c[If]=!0,Gf("selectionchange",!1,c))}}function yg(u,c,d,m){switch(T1(c)){case 2:var D=qC;break;case 8:D=UC;break;default:D=O1}d=D.bind(null,c,d,u),D=void 0,!Zp||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(D=!0),m?D!==void 0?u.addEventListener(c,d,{capture:!0,passive:D}):u.addEventListener(c,d,!0):D!==void 0?u.addEventListener(c,d,{passive:D}):u.addEventListener(c,d,!1)}function $i(u,c,d,m,D){var w=m;if((c&1)===0&&(c&2)===0&&m!==null)e:for(;;){if(m===null)return;var M=m.tag;if(M===3||M===4){var q=m.stateNode.containerInfo;if(q===D)break;if(M===4)for(M=m.return;M!==null;){var ee=M.tag;if((ee===3||ee===4)&&M.stateNode.containerInfo===D)return;M=M.return}for(;q!==null;){if(M=$r(q),M===null)return;if(ee=M.tag,ee===5||ee===6||ee===26||ee===27){m=w=M;continue e}q=q.parentNode}}m=m.return}sf(function(){var pe=w,_e=Xp(d),ze=[];e:{var be=e0.get(u);if(be!==void 0){var De=Jp,dt=u;switch(u){case"keypress":if(Vr(d)===0)break e;case"keydown":case"keyup":De=dl;break;case"focusin":dt="focus",De=kb;break;case"focusout":dt="blur",De=kb;break;case"beforeblur":case"afterblur":De=kb;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=zb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=GS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=Fb;break;case eC:case Qb:case tC:De=lR;break;case Jb:De=ZS;break;case"scroll":case"scrollend":De=$S;break;case"wheel":De=Ys;break;case"copy":case"cut":case"paste":De=sh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=ch;break;case"toggle":case"beforetoggle":De=QS}var ht=(c&4)!==0,nn=!ht&&(u==="scroll"||u==="scrollend"),de=ht?be!==null?be+"Capture":null:be;ht=[];for(var se=pe,ve;se!==null;){var Ne=se;if(ve=Ne.stateNode,Ne=Ne.tag,Ne!==5&&Ne!==26&&Ne!==27||ve===null||de===null||(Ne=$s(se,de),Ne!=null&&ht.push(eo(se,Ne,ve))),nn)break;se=se.return}0<ht.length&&(be=new De(be,dt,null,d,_e),ze.push({event:be,listeners:ht}))}}if((c&7)===0){e:{if(be=u==="mouseover"||u==="pointerover",De=u==="mouseout"||u==="pointerout",be&&d!==Hs&&(dt=d.relatedTarget||d.fromElement)&&($r(dt)||dt[rf]))break e;if((De||be)&&(be=_e.window===_e?_e:(be=_e.ownerDocument)?be.defaultView||be.parentWindow:window,De?(dt=d.relatedTarget||d.toElement,De=pe,dt=dt?$r(dt):null,dt!==null&&(nn=s(dt),ht=dt.tag,dt!==nn||ht!==5&&ht!==27&&ht!==6)&&(dt=null)):(De=null,dt=pe),De!==dt)){if(ht=zb,Ne="onMouseLeave",de="onMouseEnter",se="mouse",(u==="pointerout"||u==="pointerover")&&(ht=ch,Ne="onPointerLeave",de="onPointerEnter",se="pointer"),nn=De==null?be:eh(De),ve=dt==null?be:eh(dt),be=new ht(Ne,se+"leave",De,d,_e),be.target=nn,be.relatedTarget=ve,Ne=null,$r(_e)===pe&&(ht=new ht(de,se+"enter",dt,d,_e),ht.target=ve,ht.relatedTarget=nn,Ne=ht),nn=Ne,De&&dt)t:{for(ht=De,de=dt,se=0,ve=ht;ve;ve=ts(ve))se++;for(ve=0,Ne=de;Ne;Ne=ts(Ne))ve++;for(;0<se-ve;)ht=ts(ht),se--;for(;0<ve-se;)de=ts(de),ve--;for(;se--;){if(ht===de||de!==null&&ht===de.alternate)break t;ht=ts(ht),de=ts(de)}ht=null}else ht=null;De!==null&&iv(ze,be,De,ht,!1),dt!==null&&nn!==null&&iv(ze,nn,dt,ht,!0)}}e:{if(be=pe?eh(pe):window,De=be.nodeName&&be.nodeName.toLowerCase(),De==="select"||De==="input"&&be.type==="file")var We=Vb;else if(am(be))if(Gb)We=Kb;else{We=Ro;var Bt=lm}else De=be.nodeName,!De||De.toLowerCase()!=="input"||be.type!=="checkbox"&&be.type!=="radio"?pe&&Us(pe.elementType)&&(We=Vb):We=Lu;if(We&&(We=We(u,pe))){im(ze,We,d,_e);break e}Bt&&Bt(u,be,pe),u==="focusout"&&pe&&be.type==="number"&&pe.memoizedProps.value!=null&&ah(be,"number",be.value)}switch(Bt=pe?eh(pe):window,u){case"focusin":(am(Bt)||Bt.contentEditable==="true")&&(Fl=Bt,pl=pe,zo=null);break;case"focusout":zo=pl=Fl=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,um(ze,d,_e);break;case"selectionchange":if(Qs)break;case"keydown":case"keyup":um(ze,d,_e)}var st;if(fh)e:{switch(u){case"compositionstart":var pt="onCompositionStart";break e;case"compositionend":pt="onCompositionEnd";break e;case"compositionupdate":pt="onCompositionUpdate";break e}pt=void 0}else _o?hh(u,d)&&(pt="onCompositionEnd"):u==="keydown"&&d.keyCode===229&&(pt="onCompositionStart");pt&&(Pl&&d.locale!=="ko"&&(_o||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&_o&&(st=Nb()):(ju=_e,cf="value"in ju?ju.value:ju.textContent,_o=!0)),Bt=Yf(pe,pt),0<Bt.length&&(pt=new Pb(pt,u,null,d,_e),ze.push({event:pt,listeners:Bt}),st?pt.data=st:(st=Bo(d),st!==null&&(pt.data=st)))),(st=qb?Hb(u,d):Ks(u,d))&&(pt=Yf(pe,"onBeforeInput"),0<pt.length&&(Bt=new Pb("onBeforeInput","beforeinput",null,d,_e),ze.push({event:Bt,listeners:pt}),Bt.data=st)),RC(ze,u,pe,d,_e)}wc(ze,c)})}function eo(u,c,d){return{instance:u,listener:c,currentTarget:d}}function Yf(u,c){for(var d=c+"Capture",m=[];u!==null;){var D=u,w=D.stateNode;if(D=D.tag,D!==5&&D!==26&&D!==27||w===null||(D=$s(u,d),D!=null&&m.unshift(eo(u,D,w)),D=$s(u,c),D!=null&&m.push(eo(u,D,w))),u.tag===3)return m;u=u.return}return[]}function ts(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function iv(u,c,d,m,D){for(var w=c._reactName,M=[];d!==null&&d!==m;){var q=d,ee=q.alternate,pe=q.stateNode;if(q=q.tag,ee!==null&&ee===m)break;q!==5&&q!==26&&q!==27||pe===null||(ee=pe,D?(pe=$s(d,w),pe!=null&&M.unshift(eo(d,pe,ee))):D||(pe=$s(d,w),pe!=null&&M.push(eo(d,pe,ee)))),d=d.return}M.length!==0&&u.push({event:c,listeners:M})}var hi=/\r\n?/g,v1=/\u0000|\uFFFD/g;function NC(u){return(typeof u=="string"?u:""+u).replace(hi,`
54
+ `).replace(v1,"")}function p1(u,c){return c=NC(c),NC(u)===c}function bg(){}function bt(u,c,d,m,D,w){switch(d){case"children":typeof m=="string"?c==="body"||c==="textarea"&&m===""||lf(u,m):(typeof m=="number"||typeof m=="bigint")&&c!=="body"&&lf(u,""+m);break;case"className":nh(u,"class",m);break;case"tabIndex":nh(u,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":nh(u,d,m);break;case"style":ih(u,m,w);break;case"data":if(c!=="object"){nh(u,"data",m);break}case"src":case"href":if(m===""&&(c!=="a"||d!=="href")){u.removeAttribute(d);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){u.removeAttribute(d);break}m=lh(""+m),u.setAttribute(d,m);break;case"action":case"formAction":if(typeof m=="function"){u.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(d==="formAction"?(c!=="input"&&bt(u,c,"name",D.name,D,null),bt(u,c,"formEncType",D.formEncType,D,null),bt(u,c,"formMethod",D.formMethod,D,null),bt(u,c,"formTarget",D.formTarget,D,null)):(bt(u,c,"encType",D.encType,D,null),bt(u,c,"method",D.method,D,null),bt(u,c,"target",D.target,D,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){u.removeAttribute(d);break}m=lh(""+m),u.setAttribute(d,m);break;case"onClick":m!=null&&(u.onclick=bg);break;case"onScroll":m!=null&&Ct("scroll",u);break;case"onScrollEnd":m!=null&&Ct("scrollend",u);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(D.children!=null)throw Error(r(60));u.innerHTML=d}}break;case"multiple":u.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":u.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){u.removeAttribute("xlink:href");break}d=lh(""+m),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?u.setAttribute(d,""+m):u.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?u.setAttribute(d,""):u.removeAttribute(d);break;case"capture":case"download":m===!0?u.setAttribute(d,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?u.setAttribute(d,m):u.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?u.setAttribute(d,m):u.removeAttribute(d);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?u.removeAttribute(d):u.setAttribute(d,m);break;case"popover":Ct("beforetoggle",u),Ct("toggle",u),ku(u,"popover",m);break;case"xlinkActuate":zl(u,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":zl(u,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":zl(u,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":zl(u,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":zl(u,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":zl(u,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":zl(u,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":zl(u,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":zl(u,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":ku(u,"is",m);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=rR.get(d)||d,ku(u,d,m))}}function Ce(u,c,d,m,D,w){switch(d){case"style":ih(u,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(D.children!=null)throw Error(r(60));u.innerHTML=d}}break;case"children":typeof m=="string"?lf(u,m):(typeof m=="number"||typeof m=="bigint")&&lf(u,""+m);break;case"onScroll":m!=null&&Ct("scroll",u);break;case"onScrollEnd":m!=null&&Ct("scrollend",u);break;case"onClick":m!=null&&(u.onclick=bg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ii.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(D=d.endsWith("Capture"),c=d.slice(2,D?d.length-7:void 0),w=u[ma]||null,w=w!=null?w[d]:null,typeof w=="function"&&u.removeEventListener(c,w,D),typeof m=="function")){typeof w!="function"&&w!==null&&(d in u?u[d]=null:u.hasAttribute(d)&&u.removeAttribute(d)),u.addEventListener(c,m,D);break e}d in u?u[d]=m:m===!0?u.setAttribute(d,""):ku(u,d,m)}}}function mt(u,c,d){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",u),Ct("load",u);var m=!1,D=!1,w;for(w in d)if(d.hasOwnProperty(w)){var M=d[w];if(M!=null)switch(w){case"src":m=!0;break;case"srcSet":D=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:bt(u,c,w,M,d,null)}}D&&bt(u,c,"srcSet",d.srcSet,d,null),m&&bt(u,c,"src",d.src,d,null);return;case"input":Ct("invalid",u);var q=w=M=D=null,ee=null,pe=null;for(m in d)if(d.hasOwnProperty(m)){var _e=d[m];if(_e!=null)switch(m){case"name":D=_e;break;case"type":M=_e;break;case"checked":ee=_e;break;case"defaultChecked":pe=_e;break;case"value":w=_e;break;case"defaultValue":q=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,c));break;default:bt(u,c,m,_e,d,null)}}Yp(u,w,q,ee,pe,M,D,!1),xo(u);return;case"select":Ct("invalid",u),m=M=w=null;for(D in d)if(d.hasOwnProperty(D)&&(q=d[D],q!=null))switch(D){case"value":w=q;break;case"defaultValue":M=q;break;case"multiple":m=q;default:bt(u,c,D,q,d,null)}c=w,d=M,u.multiple=!!m,c!=null?qs(u,!!m,c,!1):d!=null&&qs(u,!!m,d,!0);return;case"textarea":Ct("invalid",u),w=D=m=null;for(M in d)if(d.hasOwnProperty(M)&&(q=d[M],q!=null))switch(M){case"value":m=q;break;case"defaultValue":D=q;break;case"children":w=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(91));break;default:bt(u,c,M,q,d,null)}_b(u,m,D,w),xo(u);return;case"option":for(ee in d)if(d.hasOwnProperty(ee)&&(m=d[ee],m!=null))switch(ee){case"selected":u.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:bt(u,c,ee,m,d,null)}return;case"dialog":Ct("beforetoggle",u),Ct("toggle",u),Ct("cancel",u),Ct("close",u);break;case"iframe":case"object":Ct("load",u);break;case"video":case"audio":for(m=0;m<av.length;m++)Ct(av[m],u);break;case"image":Ct("error",u),Ct("load",u);break;case"details":Ct("toggle",u);break;case"embed":case"source":case"link":Ct("error",u),Ct("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in d)if(d.hasOwnProperty(pe)&&(m=d[pe],m!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:bt(u,c,pe,m,d,null)}return;default:if(Us(c)){for(_e in d)d.hasOwnProperty(_e)&&(m=d[_e],m!==void 0&&Ce(u,c,_e,m,d,void 0));return}}for(q in d)d.hasOwnProperty(q)&&(m=d[q],m!=null&&bt(u,c,q,m,d,null))}function pR(u,c,d,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var D=null,w=null,M=null,q=null,ee=null,pe=null,_e=null;for(De in d){var ze=d[De];if(d.hasOwnProperty(De)&&ze!=null)switch(De){case"checked":break;case"value":break;case"defaultValue":ee=ze;default:m.hasOwnProperty(De)||bt(u,c,De,null,m,ze)}}for(var be in m){var De=m[be];if(ze=d[be],m.hasOwnProperty(be)&&(De!=null||ze!=null))switch(be){case"type":w=De;break;case"name":D=De;break;case"checked":pe=De;break;case"defaultChecked":_e=De;break;case"value":M=De;break;case"defaultValue":q=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r(137,c));break;default:De!==ze&&bt(u,c,be,De,m,ze)}}Ip(u,M,q,ee,pe,_e,w,D);return;case"select":De=M=q=be=null;for(w in d)if(ee=d[w],d.hasOwnProperty(w)&&ee!=null)switch(w){case"value":break;case"multiple":De=ee;default:m.hasOwnProperty(w)||bt(u,c,w,null,m,ee)}for(D in m)if(w=m[D],ee=d[D],m.hasOwnProperty(D)&&(w!=null||ee!=null))switch(D){case"value":be=w;break;case"defaultValue":q=w;break;case"multiple":M=w;default:w!==ee&&bt(u,c,D,w,m,ee)}c=q,d=M,m=De,be!=null?qs(u,!!d,be,!1):!!m!=!!d&&(c!=null?qs(u,!!d,c,!0):qs(u,!!d,d?[]:"",!1));return;case"textarea":De=be=null;for(q in d)if(D=d[q],d.hasOwnProperty(q)&&D!=null&&!m.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:bt(u,c,q,null,m,D)}for(M in m)if(D=m[M],w=d[M],m.hasOwnProperty(M)&&(D!=null||w!=null))switch(M){case"value":be=D;break;case"defaultValue":De=D;break;case"children":break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:D!==w&&bt(u,c,M,D,m,w)}Bb(u,be,De);return;case"option":for(var dt in d)if(be=d[dt],d.hasOwnProperty(dt)&&be!=null&&!m.hasOwnProperty(dt))switch(dt){case"selected":u.selected=!1;break;default:bt(u,c,dt,null,m,be)}for(ee in m)if(be=m[ee],De=d[ee],m.hasOwnProperty(ee)&&be!==De&&(be!=null||De!=null))switch(ee){case"selected":u.selected=be&&typeof be!="function"&&typeof be!="symbol";break;default:bt(u,c,ee,be,m,De)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ht in d)be=d[ht],d.hasOwnProperty(ht)&&be!=null&&!m.hasOwnProperty(ht)&&bt(u,c,ht,null,m,be);for(pe in m)if(be=m[pe],De=d[pe],m.hasOwnProperty(pe)&&be!==De&&(be!=null||De!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(r(137,c));break;default:bt(u,c,pe,be,m,De)}return;default:if(Us(c)){for(var nn in d)be=d[nn],d.hasOwnProperty(nn)&&be!==void 0&&!m.hasOwnProperty(nn)&&Ce(u,c,nn,void 0,m,be);for(_e in m)be=m[_e],De=d[_e],!m.hasOwnProperty(_e)||be===De||be===void 0&&De===void 0||Ce(u,c,_e,be,m,De);return}}for(var de in d)be=d[de],d.hasOwnProperty(de)&&be!=null&&!m.hasOwnProperty(de)&&bt(u,c,de,null,m,be);for(ze in m)be=m[ze],De=d[ze],!m.hasOwnProperty(ze)||be===De||be==null&&De==null||bt(u,c,ze,be,m,De)}var lv=null,uv=null;function Vi(u){return u.nodeType===9?u:u.ownerDocument}function to(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kf(u,c){if(u===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&c==="foreignObject"?0:u}function ou(u,c){return u==="textarea"||u==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Xf=null;function no(){var u=window.event;return u&&u.type==="popstate"?u===Xf?!1:(Xf=u,!0):(Xf=null,!1)}var Eg=typeof setTimeout=="function"?setTimeout:void 0,mR=typeof clearTimeout=="function"?clearTimeout:void 0,MC=typeof Promise=="function"?Promise:void 0,gR=typeof queueMicrotask=="function"?queueMicrotask:typeof MC<"u"?function(u){return MC.resolve(null).then(u).catch(su)}:Eg;function su(u){setTimeout(function(){throw u})}function ns(u){return u==="head"}function Dg(u,c){var d=c,m=0,D=0;do{var w=d.nextSibling;if(u.removeChild(d),w&&w.nodeType===8)if(d=w.data,d==="/$"){if(0<m&&8>m){d=m;var M=u.ownerDocument;if(d&1&&Ia(M.documentElement),d&2&&Ia(M.body),d&4)for(d=M.head,Ia(d),M=d.firstChild;M;){var q=M.nextSibling,ee=M.nodeName;M[et]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&M.rel.toLowerCase()==="stylesheet"||d.removeChild(M),M=q}}if(D===0){u.removeChild(w),fu(c);return}D--}else d==="$"||d==="$?"||d==="$!"?D++:m=d.charCodeAt(0)-48;else m=0;d=w}while(d);fu(c)}function ov(u){var c=u.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var d=c;switch(c=c.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":ov(d),Jd(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}u.removeChild(d)}}function Zf(u,c,d,m){for(;u.nodeType===1;){var D=d;if(u.nodeName.toLowerCase()!==c.toLowerCase()){if(!m&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(m){if(!u[et])switch(c){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(w=u.getAttribute("rel"),w==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(w!==D.rel||u.getAttribute("href")!==(D.href==null||D.href===""?null:D.href)||u.getAttribute("crossorigin")!==(D.crossOrigin==null?null:D.crossOrigin)||u.getAttribute("title")!==(D.title==null?null:D.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(w=u.getAttribute("src"),(w!==(D.src==null?null:D.src)||u.getAttribute("type")!==(D.type==null?null:D.type)||u.getAttribute("crossorigin")!==(D.crossOrigin==null?null:D.crossOrigin))&&w&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(c==="input"&&u.type==="hidden"){var w=D.name==null?null:""+D.name;if(D.type==="hidden"&&u.getAttribute("name")===w)return u}else return u;if(u=Al(u.nextSibling),u===null)break}return null}function yR(u,c,d){if(c==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!d||(u=Al(u.nextSibling),u===null))return null;return u}function sv(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function bR(u,c){var d=u.ownerDocument;if(u.data!=="$?"||d.readyState==="complete")c();else{var m=function(){c(),d.removeEventListener("DOMContentLoaded",m)};d.addEventListener("DOMContentLoaded",m),u._reactRetry=m}}function Al(u){for(;u!=null;u=u.nextSibling){var c=u.nodeType;if(c===1||c===3)break;if(c===8){if(c=u.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return u}var rs=null;function Zr(u){u=u.previousSibling;for(var c=0;u;){if(u.nodeType===8){var d=u.data;if(d==="$"||d==="$!"||d==="$?"){if(c===0)return u;c--}else d==="/$"&&c++}u=u.previousSibling}return null}function Ke(u,c,d){switch(c=Vi(d),u){case"html":if(u=c.documentElement,!u)throw Error(r(452));return u;case"head":if(u=c.head,!u)throw Error(r(453));return u;case"body":if(u=c.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function Ia(u){for(var c=u.attributes;c.length;)u.removeAttributeNode(c[0]);Jd(u)}var or=new Map,ua=new Set;function Sg(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var ro=Z.d;Z.d={f:Cg,r:wg,D:ao,C:Ag,L:as,m:oa,X:is,S:Ya,M:m1};function Cg(){var u=ro.f(),c=Ec();return u||c}function wg(u){var c=Ps(u);c!==null&&c.tag===5&&c.type==="form"?Tf(c):ro.r(u)}var Qr=typeof document>"u"?null:document;function Ol(u,c,d){var m=Qr;if(m&&typeof c=="string"&&c){var D=_i(c);D='link[rel="'+u+'"][href="'+D+'"]',typeof d=="string"&&(D+='[crossorigin="'+d+'"]'),ua.has(D)||(ua.add(D),u={rel:u,crossOrigin:d,href:c},m.querySelector(D)===null&&(c=m.createElement("link"),mt(c,"link",u),Dr(c),m.head.appendChild(c)))}}function ao(u){ro.D(u),Ol("dns-prefetch",u,null)}function Ag(u,c){ro.C(u,c),Ol("preconnect",u,c)}function as(u,c,d){ro.L(u,c,d);var m=Qr;if(m&&u&&c){var D='link[rel="preload"][as="'+_i(c)+'"]';c==="image"&&d&&d.imageSrcSet?(D+='[imagesrcset="'+_i(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(D+='[imagesizes="'+_i(d.imageSizes)+'"]')):D+='[href="'+_i(u)+'"]';var w=D;switch(c){case"style":w=Qf(u);break;case"script":w=Gi(u)}or.has(w)||(u=b({rel:"preload",href:c==="image"&&d&&d.imageSrcSet?void 0:u,as:c},d),or.set(w,u),m.querySelector(D)!==null||c==="style"&&m.querySelector(Wf(w))||c==="script"&&m.querySelector(Ac(w))||(c=m.createElement("link"),mt(c,"link",u),Dr(c),m.head.appendChild(c)))}}function oa(u,c){ro.m(u,c);var d=Qr;if(d&&u){var m=c&&typeof c.as=="string"?c.as:"script",D='link[rel="modulepreload"][as="'+_i(m)+'"][href="'+_i(u)+'"]',w=D;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=Gi(u)}if(!or.has(w)&&(u=b({rel:"modulepreload",href:u},c),or.set(w,u),d.querySelector(D)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Ac(w)))return}m=d.createElement("link"),mt(m,"link",u),Dr(m),d.head.appendChild(m)}}}function Ya(u,c,d){ro.S(u,c,d);var m=Qr;if(m&&u){var D=zu(m).hoistableStyles,w=Qf(u);c=c||"default";var M=D.get(w);if(!M){var q={loading:0,preload:null};if(M=m.querySelector(Wf(w)))q.loading=5;else{u=b({rel:"stylesheet",href:u,"data-precedence":c},d),(d=or.get(w))&&xg(u,d);var ee=M=m.createElement("link");Dr(ee),mt(ee,"link",u),ee._p=new Promise(function(pe,_e){ee.onload=pe,ee.onerror=_e}),ee.addEventListener("load",function(){q.loading|=1}),ee.addEventListener("error",function(){q.loading|=2}),q.loading|=4,Og(M,c,m)}M={type:"stylesheet",instance:M,count:1,state:q},D.set(w,M)}}}function is(u,c){ro.X(u,c);var d=Qr;if(d&&u){var m=zu(d).hoistableScripts,D=Gi(u),w=m.get(D);w||(w=d.querySelector(Ac(D)),w||(u=b({src:u,async:!0},c),(c=or.get(D))&&Tg(u,c),w=d.createElement("script"),Dr(w),mt(w,"link",u),d.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(D,w))}}function m1(u,c){ro.M(u,c);var d=Qr;if(d&&u){var m=zu(d).hoistableScripts,D=Gi(u),w=m.get(D);w||(w=d.querySelector(Ac(D)),w||(u=b({src:u,async:!0,type:"module"},c),(c=or.get(D))&&Tg(u,c),w=d.createElement("script"),Dr(w),mt(w,"link",u),d.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(D,w))}}function zC(u,c,d,m){var D=(D=Ye.current)?Sg(D):null;if(!D)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(c=Qf(d.href),d=zu(D).hoistableStyles,m=d.get(c),m||(m={type:"style",instance:null,count:0,state:null},d.set(c,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){u=Qf(d.href);var w=zu(D).hoistableStyles,M=w.get(u);if(M||(D=D.ownerDocument||D,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(u,M),(w=D.querySelector(Wf(u)))&&!w._p&&(M.instance=w,M.state.loading=5),or.has(u)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},or.set(u,d),w||kC(D,u,d,M.state))),c&&m===null)throw Error(r(528,""));return M}if(c&&m!==null)throw Error(r(529,""));return null;case"script":return c=d.async,d=d.src,typeof d=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Gi(d),d=zu(D).hoistableScripts,m=d.get(c),m||(m={type:"script",instance:null,count:0,state:null},d.set(c,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Qf(u){return'href="'+_i(u)+'"'}function Wf(u){return'link[rel="stylesheet"]['+u+"]"}function Jf(u){return b({},u,{"data-precedence":u.precedence,precedence:null})}function kC(u,c,d,m){u.querySelector('link[rel="preload"][as="style"]['+c+"]")?m.loading=1:(c=u.createElement("link"),m.preload=c,c.addEventListener("load",function(){return m.loading|=1}),c.addEventListener("error",function(){return m.loading|=2}),mt(c,"link",d),Dr(c),u.head.appendChild(c))}function Gi(u){return'[src="'+_i(u)+'"]'}function Ac(u){return"script[async]"+u}function PC(u,c,d){if(c.count++,c.instance===null)switch(c.type){case"style":var m=u.querySelector('style[data-href~="'+_i(d.href)+'"]');if(m)return c.instance=m,Dr(m),m;var D=b({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return m=(u.ownerDocument||u).createElement("style"),Dr(m),mt(m,"style",D),Og(m,d.precedence,u),c.instance=m;case"stylesheet":D=Qf(d.href);var w=u.querySelector(Wf(D));if(w)return c.state.loading|=4,c.instance=w,Dr(w),w;m=Jf(d),(D=or.get(D))&&xg(m,D),w=(u.ownerDocument||u).createElement("link"),Dr(w);var M=w;return M._p=new Promise(function(q,ee){M.onload=q,M.onerror=ee}),mt(w,"link",m),c.state.loading|=4,Og(w,d.precedence,u),c.instance=w;case"script":return w=Gi(d.src),(D=u.querySelector(Ac(w)))?(c.instance=D,Dr(D),D):(m=d,(D=or.get(w))&&(m=b({},d),Tg(m,D)),u=u.ownerDocument||u,D=u.createElement("script"),Dr(D),mt(D,"link",m),u.head.appendChild(D),c.instance=D);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(m=c.instance,c.state.loading|=4,Og(m,d.precedence,u));return c.instance}function Og(u,c,d){for(var m=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),D=m.length?m[m.length-1]:null,w=D,M=0;M<m.length;M++){var q=m[M];if(q.dataset.precedence===c)w=q;else if(w!==D)break}w?w.parentNode.insertBefore(u,w.nextSibling):(c=d.nodeType===9?d.head:d,c.insertBefore(u,c.firstChild))}function xg(u,c){u.crossOrigin==null&&(u.crossOrigin=c.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=c.referrerPolicy),u.title==null&&(u.title=c.title)}function Tg(u,c){u.crossOrigin==null&&(u.crossOrigin=c.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=c.referrerPolicy),u.integrity==null&&(u.integrity=c.integrity)}var ls=null;function g1(u,c,d){if(ls===null){var m=new Map,D=ls=new Map;D.set(d,m)}else D=ls,m=D.get(d),m||(m=new Map,D.set(d,m));if(m.has(u))return m;for(m.set(u,null),d=d.getElementsByTagName(u),D=0;D<d.length;D++){var w=d[D];if(!(w[et]||w[zr]||u==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var M=w.getAttribute(c)||"";M=u+M;var q=m.get(M);q?q.push(w):m.set(M,[w])}}return m}function y1(u,c,d){u=u.ownerDocument||u,u.head.insertBefore(d,c==="title"?u.querySelector("head > title"):null)}function jC(u,c,d){if(d===1||c.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return u=c.disabled,typeof c.precedence=="string"&&u==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function b1(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var ed=null;function FC(){}function LC(u,c,d){if(ed===null)throw Error(r(475));var m=ed;if(c.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var D=Qf(d.href),w=u.querySelector(Wf(D));if(w){u=w._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(m.count++,m=cv.bind(m),u.then(m,m)),c.state.loading|=4,c.instance=w,Dr(w);return}w=u.ownerDocument||u,d=Jf(d),(D=or.get(D))&&xg(d,D),w=w.createElement("link"),Dr(w);var M=w;M._p=new Promise(function(q,ee){M.onload=q,M.onerror=ee}),mt(w,"link",d),c.instance=w}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(c,u),(u=c.state.preload)&&(c.state.loading&3)===0&&(m.count++,c=cv.bind(m),u.addEventListener("load",c),u.addEventListener("error",c))}}function E1(){if(ed===null)throw Error(r(475));var u=ed;return u.stylesheets&&u.count===0&&fv(u,u.stylesheets),0<u.count?function(c){var d=setTimeout(function(){if(u.stylesheets&&fv(u,u.stylesheets),u.unsuspend){var m=u.unsuspend;u.unsuspend=null,m()}},6e4);return u.unsuspend=c,function(){u.unsuspend=null,clearTimeout(d)}}:null}function cv(){if(this.count--,this.count===0){if(this.stylesheets)fv(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var td=null;function fv(u,c){u.stylesheets=null,u.unsuspend!==null&&(u.count++,td=new Map,c.forEach(vi,u),td=null,cv.call(u))}function vi(u,c){if(!(c.state.loading&4)){var d=td.get(u);if(d)var m=d.get(null);else{d=new Map,td.set(u,d);for(var D=u.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<D.length;w++){var M=D[w];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(d.set(M.dataset.precedence,M),m=M)}m&&d.set(null,m)}D=c.instance,M=D.getAttribute("data-precedence"),w=d.get(M)||m,w===m&&d.set(null,D),d.set(M,D),this.count++,m=cv.bind(this),D.addEventListener("load",m),D.addEventListener("error",m),w?w.parentNode.insertBefore(D,w.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(D,u.firstChild)),c.state.loading|=4}}var Ka={$$typeof:j,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function ER(u,c,d,m,D,w,M,q){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Co(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.hiddenUpdates=Co(null),this.identifierPrefix=m,this.onUncaughtError=D,this.onCaughtError=w,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function D1(u,c,d,m,D,w,M,q,ee,pe,_e,ze){return u=new ER(u,c,d,M,q,ee,pe,ze),c=1,w===!0&&(c|=24),w=ja(3,null,null,c),u.current=w,w.stateNode=u,c=Cf(),c.refCount++,u.pooledCache=c,c.refCount++,w.memoizedState={element:m,isDehydrated:d,cache:c},bm(w),u}function S1(u){return u?(u=pf,u):pf}function C1(u,c,d,m,D,w){D=S1(D),m.context===null?m.context=D:m.pendingContext=D,m=La(c),m.payload={element:d},w=w===void 0?null:w,w!==null&&(m.callback=w),d=Yl(u,m,c),d!==null&&(di(d,u,c),ac(d,u,c))}function w1(u,c){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var d=u.retryLane;u.retryLane=d!==0&&d<c?d:c}}function Bg(u,c){w1(u,c),(u=u.alternate)&&w1(u,c)}function A1(u){if(u.tag===13){var c=Ul(u,67108864);c!==null&&di(c,u,67108864),Bg(u,67108864)}}var dv=!0;function qC(u,c,d,m){var D=U.T;U.T=null;var w=Z.p;try{Z.p=2,O1(u,c,d,m)}finally{Z.p=w,U.T=D}}function UC(u,c,d,m){var D=U.T;U.T=null;var w=Z.p;try{Z.p=8,O1(u,c,d,m)}finally{Z.p=w,U.T=D}}function O1(u,c,d,m){if(dv){var D=_g(m);if(D===null)$i(u,c,m,Rg,d),Oc(u,m);else if($C(D,u,c,d,m))m.stopPropagation();else if(Oc(u,m),c&4&&-1<HC.indexOf(u)){for(;D!==null;){var w=Ps(D);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var M=pa(w.pendingLanes);if(M!==0){var q=w;for(q.pendingLanes|=2,q.entangledLanes|=2;M;){var ee=1<<31-Mt(M);q.entanglements[1]|=ee,M&=~ee}Ga(w),(un&6)===0&&(ug=Ie()+500,Jh(0))}}break;case 13:q=Ul(w,2),q!==null&&di(q,w,2),Ec(),Bg(w,2)}if(w=_g(m),w===null&&$i(u,c,m,Rg,d),w===D)break;D=w}D!==null&&m.stopPropagation()}else $i(u,c,m,null,d)}}function _g(u){return u=Xp(u),x1(u)}var Rg=null;function x1(u){if(Rg=null,u=$r(u),u!==null){var c=s(u);if(c===null)u=null;else{var d=c.tag;if(d===13){if(u=f(c),u!==null)return u;u=null}else if(d===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;u=null}else c!==u&&(u=null)}}return Rg=u,null}function T1(u){switch(u){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(an()){case Wt:return 2;case Bn:return 8;case Vt:case Ft:return 32;case Jt:return 268435456;default:return 32}default:return 32}}var nd=!1,cu=null,io=null,lo=null,hv=new Map,vv=new Map,us=[],HC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Oc(u,c){switch(u){case"focusin":case"focusout":cu=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":hv.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":vv.delete(c.pointerId)}}function xc(u,c,d,m,D,w){return u===null||u.nativeEvent!==w?(u={blockedOn:c,domEventName:d,eventSystemFlags:m,nativeEvent:w,targetContainers:[D]},c!==null&&(c=Ps(c),c!==null&&A1(c)),u):(u.eventSystemFlags|=m,c=u.targetContainers,D!==null&&c.indexOf(D)===-1&&c.push(D),u)}function $C(u,c,d,m,D){switch(c){case"focusin":return cu=xc(cu,u,c,d,m,D),!0;case"dragenter":return io=xc(io,u,c,d,m,D),!0;case"mouseover":return lo=xc(lo,u,c,d,m,D),!0;case"pointerover":var w=D.pointerId;return hv.set(w,xc(hv.get(w)||null,u,c,d,m,D)),!0;case"gotpointercapture":return w=D.pointerId,vv.set(w,xc(vv.get(w)||null,u,c,d,m,D)),!0}return!1}function B1(u){var c=$r(u.target);if(c!==null){var d=s(c);if(d!==null){if(c=d.tag,c===13){if(c=f(d),c!==null){u.blockedOn=c,tR(u.priority,function(){if(d.tag===13){var m=fi();m=fl(m);var D=Ul(d,m);D!==null&&di(D,d,m),Bg(d,m)}});return}}else if(c===3&&d.stateNode.current.memoizedState.isDehydrated){u.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}u.blockedOn=null}function pv(u){if(u.blockedOn!==null)return!1;for(var c=u.targetContainers;0<c.length;){var d=_g(u.nativeEvent);if(d===null){d=u.nativeEvent;var m=new d.constructor(d.type,d);Hs=m,d.target.dispatchEvent(m),Hs=null}else return c=Ps(d),c!==null&&A1(c),u.blockedOn=d,!1;c.shift()}return!0}function mv(u,c,d){pv(u)&&d.delete(c)}function rd(){nd=!1,cu!==null&&pv(cu)&&(cu=null),io!==null&&pv(io)&&(io=null),lo!==null&&pv(lo)&&(lo=null),hv.forEach(mv),vv.forEach(mv)}function Ng(u,c){u.blockedOn===c&&(u.blockedOn=null,nd||(nd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rd)))}var Tc=null;function _1(u){Tc!==u&&(Tc=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tc===u&&(Tc=null);for(var c=0;c<u.length;c+=3){var d=u[c],m=u[c+1],D=u[c+2];if(typeof m!="function"){if(x1(m||d)===null)continue;break}var w=Ps(d);w!==null&&(u.splice(c,3),c-=3,Lm(w,{pending:!0,data:D,method:d.method,action:m},m,D))}}))}function fu(u){function c(ee){return Ng(ee,u)}cu!==null&&Ng(cu,u),io!==null&&Ng(io,u),lo!==null&&Ng(lo,u),hv.forEach(c),vv.forEach(c);for(var d=0;d<us.length;d++){var m=us[d];m.blockedOn===u&&(m.blockedOn=null)}for(;0<us.length&&(d=us[0],d.blockedOn===null);)B1(d),d.blockedOn===null&&us.shift();if(d=(u.ownerDocument||u).$$reactFormReplay,d!=null)for(m=0;m<d.length;m+=3){var D=d[m],w=d[m+1],M=D[ma]||null;if(typeof w=="function")M||_1(d);else if(M){var q=null;if(w&&w.hasAttribute("formAction")){if(D=w,M=w[ma]||null)q=M.formAction;else if(x1(D)!==null)continue}else q=M.action;typeof q=="function"?d[m+1]=q:(d.splice(m,3),m-=3),_1(d)}}}function R1(u){this._internalRoot=u}Mg.prototype.render=R1.prototype.render=function(u){var c=this._internalRoot;if(c===null)throw Error(r(409));var d=c.current,m=fi();C1(d,m,u,c,null,null)},Mg.prototype.unmount=R1.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var c=u.containerInfo;C1(u.current,2,null,u,null,null),Ec(),c[rf]=null}};function Mg(u){this._internalRoot=u}Mg.prototype.unstable_scheduleHydration=function(u){if(u){var c=kS();u={blockedOn:null,target:u,priority:c};for(var d=0;d<us.length&&c!==0&&c<us[d].priority;d++);us.splice(d,0,u),d===0&&B1(u)}};var N1=t.version;if(N1!=="19.1.1")throw Error(r(527,N1,"19.1.1"));Z.findDOMNode=function(u){var c=u._reactInternals;if(c===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=p(c),u=u!==null?y(u):null,u=u===null?null:u.stateNode,u};var Sa={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gv.isDisabled&&gv.supportsFiber)try{va=gv.inject(Sa),Dn=gv}catch{}}return fy.createRoot=function(u,c){if(!l(u))throw Error(r(299));var d=!1,m="",D=Rf,w=B0,M=Hh,q=null;return c!=null&&(c.unstable_strictMode===!0&&(d=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(D=c.onUncaughtError),c.onCaughtError!==void 0&&(w=c.onCaughtError),c.onRecoverableError!==void 0&&(M=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(q=c.unstable_transitionCallbacks)),c=D1(u,1,!1,null,null,d,m,D,w,M,q,null),u[rf]=c.current,h1(u),new R1(c)},fy.hydrateRoot=function(u,c,d){if(!l(u))throw Error(r(299));var m=!1,D="",w=Rf,M=B0,q=Hh,ee=null,pe=null;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(D=d.identifierPrefix),d.onUncaughtError!==void 0&&(w=d.onUncaughtError),d.onCaughtError!==void 0&&(M=d.onCaughtError),d.onRecoverableError!==void 0&&(q=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(ee=d.unstable_transitionCallbacks),d.formState!==void 0&&(pe=d.formState)),c=D1(u,1,!0,c,d??null,m,D,w,M,q,ee,pe),c.context=S1(null),d=c.current,m=fi(),m=fl(m),D=La(m),D.callback=null,Yl(d,D,m),d=m,c.current.lanes=d,ks(c,d),Ga(c),u[rf]=c.current,h1(u),new Mg(c)},fy.version="19.1.1",fy}var dy={};/**
55
+ * @license React
56
+ * react-dom-client.development.js
57
+ *
58
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */var BN;function iH(){return BN||(BN=1,process.env.NODE_ENV!=="production"&&(function(){function e(a,i){for(a=a.memoizedState;a!==null&&0<i;)a=a.next,i--;return a}function t(a,i,o,v){if(o>=i.length)return v;var g=i[o],E=bt(a)?a.slice():xt({},a);return E[g]=t(a[g],i,o+1,v),E}function n(a,i,o){if(i.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var v=0;v<o.length-1;v++)if(i[v]!==o[v]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(a,i,o,0)}}function r(a,i,o,v){var g=i[v],E=bt(a)?a.slice():xt({},a);return v+1===i.length?(E[o[v]]=E[g],bt(E)?E.splice(g,1):delete E[g]):E[g]=r(a[g],i,o,v+1),E}function l(a,i,o){var v=i[o],g=bt(a)?a.slice():xt({},a);return o+1===i.length?(bt(g)?g.splice(v,1):delete g[v],g):(g[v]=l(a[v],i,o+1),g)}function s(){return!1}function f(){return null}function h(){}function p(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function b(){}function S(a){var i=[];return a.forEach(function(o){i.push(o)}),i.sort().join(", ")}function C(a,i,o,v){return new dh(a,i,o,v)}function A(a,i){a.context===ad&&(pn(a.current,2,i,a,null,null),vc())}function x(a,i){if(hu!==null){var o=i.staleFamilies;i=i.updatedFamilies,Nf(),fh(a.current,i,o),vc()}}function _(a){hu=a}function B(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function R(a){var i=a,o=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(o=i.return),a=i.return;while(a)}return i.tag===3?o:null}function O(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function j(a){if(R(a)!==a)throw Error("Unable to find node on an unmounted component.")}function P(a){var i=a.alternate;if(!i){if(i=R(a),i===null)throw Error("Unable to find node on an unmounted component.");return i!==a?null:a}for(var o=a,v=i;;){var g=o.return;if(g===null)break;var E=g.alternate;if(E===null){if(v=g.return,v!==null){o=v;continue}break}if(g.child===E.child){for(E=g.child;E;){if(E===o)return j(g),a;if(E===v)return j(g),i;E=E.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==v.return)o=g,v=E;else{for(var T=!1,N=g.child;N;){if(N===o){T=!0,o=g,v=E;break}if(N===v){T=!0,v=g,o=E;break}N=N.sibling}if(!T){for(N=E.child;N;){if(N===o){T=!0,o=E,v=g;break}if(N===v){T=!0,v=E,o=g;break}N=N.sibling}if(!T)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(o.alternate!==v)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?a:i}function L(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=L(a),i!==null)return i;a=a.sibling}return null}function Y(a){return a===null||typeof a!="object"?null:(a=p1&&a[p1]||a["@@iterator"],typeof a=="function"?a:null)}function G(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===bg?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Ct:return"Fragment";case If:return"Profiler";case Gf:return"StrictMode";case Yf:return"Suspense";case ts:return"SuspenseList";case v1:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case wc:return"Portal";case $i:return(a.displayName||"Context")+".Provider";case yg:return(a._context.displayName||"Context")+".Consumer";case eo:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case iv:return i=a.displayName||null,i!==null?i:G(a.type)||"Memo";case hi:i=a._payload,a=a._init;try{return G(a(i))}catch{}}return null}function z(a){return typeof a.tag=="number"?$(a):typeof a.name=="string"?a.name:null}function $(a){var i=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(i._context.displayName||"Context")+".Consumer";case 10:return(i.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(i);case 8:return i===Gf?"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 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break;case 29:if(i=a._debugInfo,i!=null){for(var o=i.length-1;0<=o;o--)if(typeof i[o].name=="string")return i[o].name}if(a.return!==null)return $(a.return)}return null}function Q(a){return{current:a}}function I(a,i){0>Vi?console.error("Unexpected pop."):(i!==uv[Vi]&&console.error("Unexpected Fiber popped."),a.current=lv[Vi],lv[Vi]=null,uv[Vi]=null,Vi--)}function H(a,i,o){Vi++,lv[Vi]=a.current,uv[Vi]=o,a.current=i}function K(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function W(a,i){H(ou,i,a),H(Kf,a,a),H(to,null,a);var o=i.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",i=(i=i.documentElement)&&(i=i.namespaceURI)?hn(i):Fc;break;default:if(o=i.tagName,i=i.namespaceURI)i=hn(i),i=$a(i,o);else switch(o){case"svg":i=uy;break;case"math":i=bw;break;default:i=Fc}}o=o.toLowerCase(),o=Bb(null,o),o={context:i,ancestorInfo:o},I(to,a),H(to,o,a)}function ne(a){I(to,a),I(Kf,a),I(ou,a)}function U(){return K(to.current)}function Z(a){a.memoizedState!==null&&H(Xf,a,a);var i=K(to.current),o=a.type,v=$a(i.context,o);o=Bb(i.ancestorInfo,o),v={context:v,ancestorInfo:o},i!==v&&(H(Kf,a,a),H(to,v,a))}function J(a){Kf.current===a&&(I(to,a),I(Kf,a)),Xf.current===a&&(I(Xf,a),cE._currentValue=kv)}function he(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function ie(a){try{return xe(a),!1}catch{return!0}}function xe(a){return""+a}function Re(a,i){if(ie(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",i,he(a)),xe(a)}function me(a,i){if(ie(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",i,he(a)),xe(a)}function ke(a){if(ie(a))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",he(a)),xe(a)}function Xe(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{rs=i.inject(a),Zr=i}catch(o){console.error("React instrumentation encountered an error: %s.",o)}return!!i.checkDCE}function Ye(a){if(typeof bR=="function"&&Al(a),Zr&&typeof Zr.setStrictMode=="function")try{Zr.setStrictMode(rs,a)}catch(i){Ia||(Ia=!0,console.error("React instrumentation encountered an error: %s",i))}}function Qe(a){Ke=a}function ft(){Ke!==null&&typeof Ke.markCommitStopped=="function"&&Ke.markCommitStopped()}function ce(a){Ke!==null&&typeof Ke.markComponentRenderStarted=="function"&&Ke.markComponentRenderStarted(a)}function le(){Ke!==null&&typeof Ke.markComponentRenderStopped=="function"&&Ke.markComponentRenderStopped()}function ue(a){Ke!==null&&typeof Ke.markRenderStarted=="function"&&Ke.markRenderStarted(a)}function fe(){Ke!==null&&typeof Ke.markRenderStopped=="function"&&Ke.markRenderStopped()}function Ue(a,i){Ke!==null&&typeof Ke.markStateUpdateScheduled=="function"&&Ke.markStateUpdateScheduled(a,i)}function He(a){return a>>>=0,a===0?32:31-(Sg(a)/ro|0)|0}function ut(a){if(a&1)return"SyncHydrationLane";if(a&2)return"Sync";if(a&4)return"InputContinuousHydration";if(a&8)return"InputContinuous";if(a&16)return"DefaultHydration";if(a&32)return"Default";if(a&128)return"TransitionHydration";if(a&4194048)return"Transition";if(a&62914560)return"Retry";if(a&67108864)return"SelectiveHydration";if(a&134217728)return"IdleHydration";if(a&268435456)return"Idle";if(a&536870912)return"Offscreen";if(a&1073741824)return"Deferred"}function yt(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function Ie(a,i,o){var v=a.pendingLanes;if(v===0)return 0;var g=0,E=a.suspendedLanes,T=a.pingedLanes;a=a.warmLanes;var N=v&134217727;return N!==0?(v=N&~E,v!==0?g=yt(v):(T&=N,T!==0?g=yt(T):o||(o=N&~a,o!==0&&(g=yt(o))))):(N=v&~E,N!==0?g=yt(N):T!==0?g=yt(T):o||(o=v&~a,o!==0&&(g=yt(o)))),g===0?0:i!==0&&i!==g&&(i&E)===0&&(E=g&-g,o=i&-i,E>=o||E===32&&(o&4194048)!==0)?i:g}function an(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function Wt(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Bn(){var a=Cg;return Cg<<=1,(Cg&4194048)===0&&(Cg=256),a}function Vt(){var a=wg;return wg<<=1,(wg&62914560)===0&&(wg=4194304),a}function Ft(a){for(var i=[],o=0;31>o;o++)i.push(a);return i}function Jt(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function ri(a,i,o,v,g,E){var T=a.pendingLanes;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=o,a.entangledLanes&=o,a.errorRecoveryDisabledLanes&=o,a.shellSuspendCounter=0;var N=a.entanglements,V=a.expirationTimes,X=a.hiddenUpdates;for(o=T&~o;0<o;){var Ee=31-ua(o),Oe=1<<Ee;N[Ee]=0,V[Ee]=-1;var ge=X[Ee];if(ge!==null)for(X[Ee]=null,Ee=0;Ee<ge.length;Ee++){var Te=ge[Ee];Te!==null&&(Te.lane&=-536870913)}o&=~Oe}v!==0&&er(a,v,0),E!==0&&g===0&&a.tag!==0&&(a.suspendedLanes|=E&~(T&~i))}function er(a,i,o){a.pendingLanes|=i,a.suspendedLanes&=~i;var v=31-ua(i);a.entangledLanes|=i,a.entanglements[v]=a.entanglements[v]|1073741824|o&4194090}function va(a,i){var o=a.entangledLanes|=i;for(a=a.entanglements;o;){var v=31-ua(o),g=1<<v;g&i|a[v]&i&&(a[v]|=i),o&=~g}}function Dn(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Lt(a,i,o){if(or)for(a=a.pendingUpdatersLaneMap;0<o;){var v=31-ua(o),g=1<<v;a[v].add(i),o&=~g}}function Mt(a,i){if(or)for(var o=a.pendingUpdatersLaneMap,v=a.memoizedUpdaters;0<i;){var g=31-ua(i);a=1<<g,g=o[g],0<g.size&&(g.forEach(function(E){var T=E.alternate;T!==null&&v.has(T)||v.add(E)}),g.clear()),i&=~a}}function Ti(a){return a&=-a,Qr<a?Ol<a?(a&134217727)!==0?ao:Ag:Ol:Qr}function Ns(){var a=mt.p;return a!==0?a:(a=window.event,a===void 0?ao:mg(a.type))}function Ms(a,i){var o=mt.p;try{return mt.p=a,i()}finally{mt.p=o}}function Nr(a){delete a[oa],delete a[Ya],delete a[m1],delete a[zC],delete a[Qf]}function hr(a){var i=a[oa];if(i)return i;for(var o=a.parentNode;o;){if(i=o[is]||o[oa]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(a=Uf(a);a!==null;){if(o=a[oa])return o;a=Uf(a)}return i}a=o,o=a.parentNode}return null}function pa(a){if(a=a[oa]||a[is]){var i=a.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return a}return null}function Bi(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ai(a){var i=a[Wf];return i||(i=a[Wf]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Mr(a){a[Jf]=!0}function So(a,i){zs(a,i),zs(a+"Capture",i)}function zs(a,i){Gi[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),Gi[a]=i;var o=a.toLowerCase();for(Ac[o]=a,a==="onDoubleClick"&&(Ac.ondblclick=a),a=0;a<i.length;a++)kC.add(i[a])}function Co(a,i){PC[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||console.error(a==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),i.onChange||i.readOnly||i.disabled||i.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ks(a){return no.call(Tg,a)?!0:no.call(xg,a)?!1:Og.test(a)?Tg[a]=!0:(xg[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function zS(a,i,o){if(ks(i)){if(!a.hasAttribute(i)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}return a=a.getAttribute(i),a===""&&o===!0?!0:(Re(o,i),a===""+o?o:a)}}function Qd(a,i,o){if(ks(i))if(o===null)a.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var v=i.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){a.removeAttribute(i);return}}Re(o,i),a.setAttribute(i,""+o)}}function Wd(a,i,o){if(o===null)a.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}Re(o,i),a.setAttribute(i,""+o)}}function fl(a,i,o,v){if(v===null)a.removeAttribute(o);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}Re(v,o),a.setAttributeNS(i,o,""+v)}}function Up(){}function kS(){if(ls===0){g1=console.log,y1=console.info,jC=console.warn,b1=console.error,ed=console.group,FC=console.groupCollapsed,LC=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Up,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}ls++}function tR(){if(ls--,ls===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xt({},a,{value:g1}),info:xt({},a,{value:y1}),warn:xt({},a,{value:jC}),error:xt({},a,{value:b1}),group:xt({},a,{value:ed}),groupCollapsed:xt({},a,{value:FC}),groupEnd:xt({},a,{value:LC})})}0>ls&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Er(a){if(E1===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);E1=i&&i[1]||"",cv=-1<o.stack.indexOf(`
63
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
64
+ `+E1+a+cv}function zr(a,i){if(!a||td)return"";var o=fv.get(a);if(o!==void 0)return o;td=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var v=null;v=Ce.H,Ce.H=null,kS();try{var g={DetermineComponentFrameRoot:function(){try{if(i){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(tt){var Te=tt}Reflect.construct(a,[],ge)}else{try{ge.call()}catch(tt){Te=tt}a.call(ge.prototype)}}else{try{throw Error()}catch(tt){Te=tt}(ge=a())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(tt){if(tt&&Te&&typeof tt.stack=="string")return[tt.stack,Te.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=g.DetermineComponentFrameRoot(),N=T[0],V=T[1];if(N&&V){var X=N.split(`
65
+ `),Ee=V.split(`
66
+ `);for(T=E=0;E<X.length&&!X[E].includes("DetermineComponentFrameRoot");)E++;for(;T<Ee.length&&!Ee[T].includes("DetermineComponentFrameRoot");)T++;if(E===X.length||T===Ee.length)for(E=X.length-1,T=Ee.length-1;1<=E&&0<=T&&X[E]!==Ee[T];)T--;for(;1<=E&&0<=T;E--,T--)if(X[E]!==Ee[T]){if(E!==1||T!==1)do if(E--,T--,0>T||X[E]!==Ee[T]){var Oe=`
67
+ `+X[E].replace(" at new "," at ");return a.displayName&&Oe.includes("<anonymous>")&&(Oe=Oe.replace("<anonymous>",a.displayName)),typeof a=="function"&&fv.set(a,Oe),Oe}while(1<=E&&0<=T);break}}}finally{td=!1,Ce.H=v,tR(),Error.prepareStackTrace=o}return X=(X=a?a.displayName||a.name:"")?Er(X):"",typeof a=="function"&&fv.set(a,X),X}function ma(a){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=i,a.startsWith(`Error: react-stack-top-frame
68
+ `)&&(a=a.slice(29)),i=a.indexOf(`
69
+ `),i!==-1&&(a=a.slice(i+1)),i=a.indexOf("react_stack_bottom_frame"),i!==-1&&(i=a.lastIndexOf(`
70
+ `,i)),i!==-1)a=a.slice(0,i);else return"";return a}function rf(a){switch(a.tag){case 26:case 27:case 5:return Er(a.type);case 16:return Er("Lazy");case 13:return Er("Suspense");case 19:return Er("SuspenseList");case 0:case 15:return zr(a.type,!1);case 11:return zr(a.type.render,!1);case 1:return zr(a.type,!0);case 31:return Er("Activity");default:return""}}function Hp(a){try{var i="";do{i+=rf(a);var o=a._debugInfo;if(o)for(var v=o.length-1;0<=v;v--){var g=o[v];if(typeof g.name=="string"){var E=i,T=g.env,N=Er(g.name+(T?" ["+T+"]":""));i=E+N}}a=a.return}while(a);return i}catch(V){return`
71
+ Error generating stack: `+V.message+`
72
+ `+V.stack}}function PS(a){return(a=a?a.displayName||a.name:"")?Er(a):""}function $p(){if(vi===null)return null;var a=vi._debugOwner;return a!=null?z(a):null}function jS(){if(vi===null)return"";var a=vi;try{var i="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:i+=Er(a.type);break;case 13:i+=Er("Suspense");break;case 19:i+=Er("SuspenseList");break;case 31:i+=Er("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==""||(i+=PS(a.type));break;case 11:a._debugOwner||i!==""||(i+=PS(a.type.render))}for(;a;)if(typeof a.tag=="number"){var o=a;a=o._debugOwner;var v=o._debugStack;a&&v&&(typeof v!="string"&&(o._debugStack=v=ma(v)),v!==""&&(i+=`
73
+ `+v))}else if(a.debugStack!=null){var g=a.debugStack;(a=a.owner)&&g&&(i+=`
74
+ `+ma(g))}else break;var E=i}catch(T){E=`
75
+ Error generating stack: `+T.message+`
76
+ `+T.stack}return E}function et(a,i,o,v,g,E,T){var N=vi;Jd(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,o,v,g,E,T)):i(o,v,g,E,T)}finally{Jd(N)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Jd(a){Ce.getCurrentStack=a===null?null:jS,Ka=!1,vi=a}function $r(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return ke(a),a;default:return""}}function Ps(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function eh(a){var i=Ps(a)?"checked":"value",o=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);ke(a[i]);var v=""+a[i];if(!a.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var g=o.get,E=o.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return g.call(this)},set:function(T){ke(T),v=""+T,E.call(this,T)}}),Object.defineProperty(a,i,{enumerable:o.enumerable}),{getValue:function(){return v},setValue:function(T){ke(T),v=""+T},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function zu(a){a._valueTracker||(a._valueTracker=eh(a))}function Dr(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var o=i.getValue(),v="";return a&&(v=Ps(a)?a.checked?"true":"false":a.value),a=v,a!==o?(i.setValue(a),!0):!1}function th(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function ii(a){return a.replace(ER,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function wo(a,i){i.checked===void 0||i.defaultChecked===void 0||S1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$p()||"A component",i.type),S1=!0),i.value===void 0||i.defaultValue===void 0||D1||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$p()||"A component",i.type),D1=!0)}function Ao(a,i,o,v,g,E,T,N){a.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?(Re(T,"type"),a.type=T):a.removeAttribute("type"),i!=null?T==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+$r(i)):a.value!==""+$r(i)&&(a.value=""+$r(i)):T!=="submit"&&T!=="reset"||a.removeAttribute("value"),i!=null?Vp(a,T,$r(i)):o!=null?Vp(a,T,$r(o)):v!=null&&a.removeAttribute("value"),g==null&&E!=null&&(a.defaultChecked=!!E),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?(Re(N,"name"),a.name=""+$r(N)):a.removeAttribute("name")}function FS(a,i,o,v,g,E,T,N){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(Re(E,"type"),a.type=E),i!=null||o!=null){if(!(E!=="submit"&&E!=="reset"||i!=null))return;o=o!=null?""+$r(o):"",i=i!=null?""+$r(i):o,N||i===a.value||(a.value=i),a.defaultValue=i}v=v??g,v=typeof v!="function"&&typeof v!="symbol"&&!!v,a.checked=N?a.checked:!!v,a.defaultChecked=!!v,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(Re(T,"name"),a.name=T)}function Vp(a,i,o){i==="number"&&th(a.ownerDocument)===a||a.defaultValue===""+o||(a.defaultValue=""+o)}function Ab(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?rv.Children.forEach(i.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||w1||(w1=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):i.dangerouslySetInnerHTML==null||Bg||(Bg=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||C1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),C1=!0)}function LS(){var a=$p();return a?`
77
+
78
+ Check the render method of \``+a+"`.":""}function ku(a,i,o,v){if(a=a.options,i){i={};for(var g=0;g<o.length;g++)i["$"+o[g]]=!0;for(o=0;o<a.length;o++)g=i.hasOwnProperty("$"+a[o].value),a[o].selected!==g&&(a[o].selected=g),g&&v&&(a[o].defaultSelected=!0)}else{for(o=""+$r(o),i=null,g=0;g<a.length;g++){if(a[g].value===o){a[g].selected=!0,v&&(a[g].defaultSelected=!0);return}i!==null||a[g].disabled||(i=a[g])}i!==null&&(i.selected=!0)}}function nh(a,i){for(a=0;a<dv.length;a++){var o=dv[a];if(i[o]!=null){var v=bt(i[o]);i.multiple&&!v?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,LS()):!i.multiple&&v&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,LS())}}i.value===void 0||i.defaultValue===void 0||A1||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),A1=!0)}function zl(a,i){i.value===void 0||i.defaultValue===void 0||qC||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",$p()||"A component"),qC=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Gp(a,i,o){if(i!=null&&(i=""+$r(i),i!==a.value&&(a.value=i),o==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=o!=null?""+$r(o):""}function Ob(a,i,o,v){if(i==null){if(v!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(bt(v)){if(1<v.length)throw Error("<textarea> can only have at most one child.");v=v[0]}o=v}o==null&&(o=""),i=o}o=$r(i),a.defaultValue=o,v=a.textContent,v===o&&v!==""&&v!==null&&(a.value=v)}function js(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?js(a.children[0],i):a}function ga(a){return" "+" ".repeat(a)}function Oo(a){return"+ "+" ".repeat(a)}function Fs(a){return"- "+" ".repeat(a)}function xb(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function ra(a,i){return UC.test(a)?(a=JSON.stringify(a),a.length>i-2?8>i?'{"..."}':"{"+a.slice(0,i-7)+'..."}':"{"+a+"}"):a.length>i?5>i?'{"..."}':a.slice(0,i-3)+"...":a}function rh(a,i,o){var v=120-2*o;if(i===null)return Oo(o)+ra(a,v)+`
79
+ `;if(typeof i=="string"){for(var g=0;g<i.length&&g<a.length&&i.charCodeAt(g)===a.charCodeAt(g);g++);return g>v-8&&10<g&&(a="..."+a.slice(g-8),i="..."+i.slice(g-8)),Oo(o)+ra(a,v)+`
80
+ `+Fs(o)+ra(i,v)+`
81
+ `}return ga(o)+ra(a,v)+`
82
+ `}function Tb(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,o){return o})}function xo(a,i){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>i?5>i?'"..."':a.slice(0,i-4)+'..."':a;case"object":if(a===null)return"null";if(bt(a))return"[...]";if(a.$$typeof===es)return(i=G(a.type))?"<"+i+">":"<...>";var o=Tb(a);if(o==="Object"){o="",i-=2;for(var v in a)if(a.hasOwnProperty(v)){var g=JSON.stringify(v);if(g!=='"'+v+'"'&&(v=g),i-=v.length-2,g=xo(a[v],15>i?i:15),i-=g.length,0>i){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+v+":"+g}return"{"+o+"}"}return o;case"function":return(i=a.displayName||a.name)?"function "+i:"function";default:return String(a)}}function Ls(a,i){return typeof a!="string"||UC.test(a)?"{"+xo(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function af(a,i,o){var v=120-o.length-a.length,g=[],E;for(E in i)if(i.hasOwnProperty(E)&&E!=="children"){var T=Ls(i[E],120-o.length-E.length-1);v-=E.length+T.length+2,g.push(E+"="+T)}return g.length===0?o+"<"+a+`>
83
+ `:0<v?o+"<"+a+" "+g.join(" ")+`>
84
+ `:o+"<"+a+`
85
+ `+o+" "+g.join(`
86
+ `+o+" ")+`
87
+ `+o+`>
88
+ `}function nR(a,i,o){var v="",g=xt({},i),E;for(E in a)if(a.hasOwnProperty(E)){delete g[E];var T=120-2*o-E.length-2,N=xo(a[E],T);i.hasOwnProperty(E)?(T=xo(i[E],T),v+=Oo(o)+E+": "+N+`
89
+ `,v+=Fs(o)+E+": "+T+`
90
+ `):v+=Oo(o)+E+": "+N+`
91
+ `}for(var V in g)g.hasOwnProperty(V)&&(a=xo(g[V],120-2*o-V.length-2),v+=Fs(o)+V+": "+a+`
92
+ `);return v}function _i(a,i,o,v){var g="",E=new Map;for(X in o)o.hasOwnProperty(X)&&E.set(X.toLowerCase(),X);if(E.size===1&&E.has("children"))g+=af(a,i,ga(v));else{for(var T in i)if(i.hasOwnProperty(T)&&T!=="children"){var N=120-2*(v+1)-T.length-1,V=E.get(T.toLowerCase());if(V!==void 0){E.delete(T.toLowerCase());var X=i[T];V=o[V];var Ee=Ls(X,N);N=Ls(V,N),typeof X=="object"&&X!==null&&typeof V=="object"&&V!==null&&Tb(X)==="Object"&&Tb(V)==="Object"&&(2<Object.keys(X).length||2<Object.keys(V).length||-1<Ee.indexOf("...")||-1<N.indexOf("..."))?g+=ga(v+1)+T+`={{
93
+ `+nR(X,V,v+2)+ga(v+1)+`}}
94
+ `:(g+=Oo(v+1)+T+"="+Ee+`
95
+ `,g+=Fs(v+1)+T+"="+N+`
96
+ `)}else g+=ga(v+1)+T+"="+Ls(i[T],N)+`
97
+ `}E.forEach(function(Oe){if(Oe!=="children"){var ge=120-2*(v+1)-Oe.length-1;g+=Fs(v+1)+Oe+"="+Ls(o[Oe],ge)+`
98
+ `}}),g=g===""?ga(v)+"<"+a+`>
99
+ `:ga(v)+"<"+a+`
100
+ `+g+ga(v)+`>
101
+ `}return a=o.children,i=i.children,typeof a=="string"||typeof a=="number"||typeof a=="bigint"?(E="",(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(E=""+i),g+=rh(E,""+a,v+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(g=a==null?g+rh(""+i,null,v+1):g+rh(""+i,void 0,v+1)),g}function Ip(a,i){var o=xb(a);if(o===null){for(o="",a=a.child;a;)o+=Ip(a,i),a=a.sibling;return o}return ga(i)+"<"+o+`>
102
+ `}function Yp(a,i){var o=js(a,i);if(o!==a&&(a.children.length!==1||a.children[0]!==o))return ga(i)+`...
103
+ `+Yp(o,i+1);o="";var v=a.fiber._debugInfo;if(v)for(var g=0;g<v.length;g++){var E=v[g].name;typeof E=="string"&&(o+=ga(i)+"<"+E+`>
104
+ `,i++)}if(v="",g=a.fiber.pendingProps,a.fiber.tag===6)v=rh(g,a.serverProps,i),i++;else if(E=xb(a.fiber),E!==null)if(a.serverProps===void 0){v=i;var T=120-2*v-E.length-2,N="";for(X in g)if(g.hasOwnProperty(X)&&X!=="children"){var V=Ls(g[X],15);if(T-=X.length+V.length+2,0>T){N+=" ...";break}N+=" "+X+"="+V}v=ga(v)+"<"+E+N+`>
105
+ `,i++}else a.serverProps===null?(v=af(E,g,Oo(i)),i++):typeof a.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(v=_i(E,g,a.serverProps,i),i++);var X="";for(g=a.fiber.child,E=0;g&&E<a.children.length;)T=a.children[E],T.fiber===g?(X+=Yp(T,i),E++):X+=Ip(g,i),g=g.sibling;for(g&&0<a.children.length&&(X+=ga(i)+`...
106
+ `),g=a.serverTail,a.serverProps===null&&i--,a=0;a<g.length;a++)E=g[a],X=typeof E=="string"?X+(Fs(i)+ra(E,120-2*i)+`
107
+ `):X+af(E.type,E.props,Fs(i));return o+v+X}function ah(a){try{return`
108
+
109
+ `+Yp(a,0)}catch{return""}}function qs(a,i,o){for(var v=i,g=null,E=0;v;)v===a&&(E=0),g={fiber:v,children:g!==null?[g]:[],serverProps:v===i?o:v===a?null:void 0,serverTail:[],distanceFromLeaf:E},E++,v=v.return;return g!==null?ah(g).replaceAll(/^[+-]/gm,">"):""}function Bb(a,i){var o=xt({},a||T1),v={tag:i};return _g.indexOf(i)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),Rg.indexOf(i)!==-1&&(o.pTagInButtonScope=null),O1.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=v,i==="form"&&(o.formTag=v),i==="a"&&(o.aTagInScope=v),i==="button"&&(o.buttonTagInScope=v),i==="nobr"&&(o.nobrTagInScope=v),i==="p"&&(o.pTagInButtonScope=v),i==="li"&&(o.listItemTagAutoclosing=v),(i==="dd"||i==="dt")&&(o.dlItemTagAutoclosing=v),i==="#document"||i==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=v),a!==null||i!=="#document"&&i!=="html"&&i!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function _b(a,i,o){switch(i){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(o)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!o)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return x1.indexOf(i)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null;case"head":return o||i===null;case"html":return o&&i==="#document"||i===null;case"body":return o&&(i==="#document"||i==="html")||i===null}return!0}function lf(a,i){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null}function qS(a,i){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===i)return a}a=a.return}return null}function Kp(a,i){i=i||T1;var o=i.current;if(i=(o=_b(a,o&&o.tag,i.implicitRootScope)?null:o)?null:lf(a,i),i=o||i,!i)return!0;var v=i.tag;if(i=String(!!o)+"|"+a+"|"+v,nd[i])return!1;nd[i]=!0;var g=(i=vi)?qS(i.return,v):null,E=i!==null&&g!==null?qs(g,i,null):"",T="<"+a+">";return o?(o="",v==="table"&&a==="tr"&&(o+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
110
+ This will cause a hydration error.%s`,T,v,o,E)):console.error(`In HTML, %s cannot be a descendant of <%s>.
111
+ This will cause a hydration error.%s`,T,v,E),i&&(a=i.return,g===null||a===null||g===a&&a._debugOwner===i._debugOwner||et(g,function(){console.error(`<%s> cannot contain a nested %s.
112
+ See this log for the ancestor stack trace.`,v,T)})),!1}function ih(a,i,o){if(o||_b("#text",i,!1))return!0;if(o="#text|"+i,nd[o])return!1;nd[o]=!0;var v=(o=vi)?qS(o,i):null;return o=o!==null&&v!==null?qs(v,o,o.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
113
+ This will cause a hydration error.%s`,i,o):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
114
+ This will cause a hydration error.%s`,i,o),!1}function Us(a,i){if(i){var o=a.firstChild;if(o&&o===a.lastChild&&o.nodeType===3){o.nodeValue=i;return}}a.textContent=i}function rR(a){return a.replace(us,function(i,o){return o.toUpperCase()})}function US(a,i,o){var v=i.indexOf("--")===0;v||(-1<i.indexOf("-")?Oc.hasOwnProperty(i)&&Oc[i]||(Oc[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,rR(i.replace(vv,"ms-")))):hv.test(i)?Oc.hasOwnProperty(i)&&Oc[i]||(Oc[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!HC.test(o)||xc.hasOwnProperty(o)&&xc[o]||(xc[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,o.replace(HC,""))),typeof o=="number"&&(isNaN(o)?$C||($C=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(o)||B1||(B1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",i)))),o==null||typeof o=="boolean"||o===""?v?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":v?a.setProperty(i,o):typeof o!="number"||o===0||pv.has(i)?i==="float"?a.cssFloat=o:(me(o,i),a[i]=(""+o).trim()):a[i]=o+"px"}function lh(a,i,o){if(i!=null&&typeof i!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(i&&Object.freeze(i),a=a.style,o!=null){if(i){var v={};if(o){for(var g in o)if(o.hasOwnProperty(g)&&!i.hasOwnProperty(g))for(var E=cu[g]||[g],T=0;T<E.length;T++)v[E[T]]=g}for(var N in i)if(i.hasOwnProperty(N)&&(!o||o[N]!==i[N]))for(g=cu[N]||[N],E=0;E<g.length;E++)v[g[E]]=N;N={};for(var V in i)for(g=cu[V]||[V],E=0;E<g.length;E++)N[g[E]]=V;V={};for(var X in v)if(g=v[X],(E=N[X])&&g!==E&&(T=g+","+E,!V[T])){V[T]=!0,T=console;var Ee=i[g];T.error.call(T,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ee==null||typeof Ee=="boolean"||Ee===""?"Removing":"Updating",g,E)}}for(var Oe in o)!o.hasOwnProperty(Oe)||i!=null&&i.hasOwnProperty(Oe)||(Oe.indexOf("--")===0?a.setProperty(Oe,""):Oe==="float"?a.cssFloat="":a[Oe]="");for(var ge in i)X=i[ge],i.hasOwnProperty(ge)&&o[ge]!==X&&US(a,ge,X)}else for(v in i)i.hasOwnProperty(v)&&US(a,v,i[v])}function Hs(a){if(a.indexOf("-")===-1)return!1;switch(a){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}}function Xp(a){return Ng.get(a)||a}function uf(a,i){if(no.call(fu,i)&&fu[i])return!0;if(Mg.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=_1.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),fu[i]=!0;if(i!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,a),fu[i]=!0}if(R1.test(i)){if(a=i.toLowerCase(),a=_1.hasOwnProperty(a)?a:null,a==null)return fu[i]=!0,!1;i!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,a),fu[i]=!0)}return!0}function of(a,i){var o=[],v;for(v in i)uf(a,v)||o.push(v);i=o.map(function(g){return"`"+g+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a)}function HS(a,i,o,v){if(no.call(Sa,i)&&Sa[i])return!0;var g=i.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Sa[i]=!0;if(typeof o=="function"&&(a==="form"&&i==="action"||a==="input"&&i==="formAction"||a==="button"&&i==="formAction"))return!0;if(v!=null){if(a=v.possibleRegistrationNames,v.registrationNameDependencies.hasOwnProperty(i))return!0;if(v=a.hasOwnProperty(g)?a[g]:null,v!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",i,v),Sa[i]=!0;if(gv.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),Sa[i]=!0}else if(gv.test(i))return u.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Sa[i]=!0;if(c.test(i)||d.test(i))return!0;if(g==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Sa[i]=!0;if(g==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Sa[i]=!0;if(g==="is"&&o!==null&&o!==void 0&&typeof o!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Sa[i]=!0;if(typeof o=="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Sa[i]=!0;if(Tc.hasOwnProperty(g)){if(g=Tc[g],g!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,g),Sa[i]=!0}else if(i!==g)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",i,g),Sa[i]=!0;switch(i){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof o){case"boolean":switch(i){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return g=i.toLowerCase().slice(0,5),g==="data-"||g==="aria-"?!0:(o?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',o,i,i,o,i):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,i,i,o,i,i,i),Sa[i]=!0)}case"function":case"symbol":return Sa[i]=!0,!1;case"string":if(o==="false"||o==="true"){switch(i){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,i,o==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',i,o),Sa[i]=!0}}return!0}function Rb(a,i,o){var v=[],g;for(g in i)HS(a,g,i[g],o)||v.push(g);i=v.map(function(E){return"`"+E+"`"}).join(", "),v.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",i,a):1<v.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",i,a)}function sf(a){return m.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function $s(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function kl(a){var i=pa(a);if(i&&(a=i.stateNode)){var o=a[Ya]||null;e:switch(a=i.stateNode,i.type){case"input":if(Ao(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=a;o.parentNode;)o=o.parentNode;for(Re(i,"name"),o=o.querySelectorAll('input[name="'+ii(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var v=o[i];if(v!==a&&v.form===a.form){var g=v[Ya]||null;if(!g)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ao(v,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(i=0;i<o.length;i++)v=o[i],v.form===a.form&&Dr(v)}break e;case"textarea":Gp(a,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&ku(a,!!o.multiple,i,!1)}}}function Zp(a,i,o){if(q)return a(i,o);q=!0;try{var v=a(i);return v}finally{if(q=!1,(w!==null||M!==null)&&(vc(),w&&(i=w,a=M,M=w=null,kl(i),a)))for(i=0;i<a.length;i++)kl(a[i])}}function Pu(a,i){var o=a.stateNode;if(o===null)return null;var v=o[Ya]||null;if(v===null)return null;o=v[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(a=a.type,v=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!v;break e;default:a=!1}if(a)return null;if(o&&typeof o!="function")throw Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function ju(){if(De)return De;var a,i=be,o=i.length,v,g="value"in ze?ze.value:ze.textContent,E=g.length;for(a=0;a<o&&i[a]===g[a];a++);var T=o-a;for(v=1;v<=T&&i[o-v]===g[E-v];v++);return De=g.slice(a,1<v?1-v:void 0)}function cf(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function Vs(){return!0}function Nb(){return!1}function Vr(a){function i(o,v,g,E,T){this._reactName=o,this._targetInst=g,this.type=v,this.nativeEvent=E,this.target=T,this.currentTarget=null;for(var N in a)a.hasOwnProperty(N)&&(o=a[N],this[N]=o?o(E):E[N]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Vs:Nb,this.isPropagationStopped=Nb,this}return xt(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),i}function Qp(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=Tce[a])?!!i[a]:!1}function Wp(){return Qp}function ya(a,i){switch(a){case"keyup":return qce.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==r9;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function To(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function Jp(a,i){switch(a){case"compositionend":return To(i);case"keypress":return i.which!==i9?null:(u9=!0,l9);case"textInput":return a=i.data,a===l9&&u9?null:a;default:return null}}function uh(a,i){if(zg)return a==="compositionend"||!SR&&ya(a,i)?(a=ju(),De=be=ze=null,zg=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return a9&&i.locale!=="ko"?null:i.data;default:return null}}function $S(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!Hce[a.type]:i==="textarea"}function Mb(a){if(!ee)return!1;a="on"+a;var i=a in document;return i||(i=document.createElement("div"),i.setAttribute(a,"return;"),i=typeof i[a]=="function"),i}function em(a,i,o,v){w?M?M.push(v):M=[v]:w=v,i=Kh(i,"onChange"),0<i.length&&(o=new ht("onChange","change",null,o,v),a.push({event:o,listeners:i}))}function oh(a){nu(a,0)}function Gs(a){var i=Bi(a);if(Dr(i))return a}function zb(a,i){if(a==="change")return i}function VS(){z1&&(z1.detachEvent("onpropertychange",GS),k1=z1=null)}function GS(a){if(a.propertyName==="value"&&Gs(k1)){var i=[];em(i,k1,a,$s(a)),Zp(oh,i)}}function aR(a,i,o){a==="focusin"?(VS(),z1=i,k1=o,z1.attachEvent("onpropertychange",GS)):a==="focusout"&&VS()}function kb(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Gs(k1)}function iR(a,i){if(a==="click")return Gs(i)}function lR(a,i){if(a==="input"||a==="change")return Gs(i)}function uR(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function sh(a,i){if(pi(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var o=Object.keys(a),v=Object.keys(i);if(o.length!==v.length)return!1;for(v=0;v<o.length;v++){var g=o[v];if(!no.call(i,g)||!pi(a[g],i[g]))return!1}return!0}function IS(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Pb(a,i){var o=IS(a);a=0;for(var v;o;){if(o.nodeType===3){if(v=a+o.textContent.length,a<=i&&v>=i)return{node:o,offset:i-a};a=v}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=IS(o)}}function YS(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?YS(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function KS(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=th(a.document);i instanceof a.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)a=i.contentWindow;else break;i=th(a.document)}return i}function jb(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function XS(a,i,o){var v=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;wR||kg==null||kg!==th(v)||(v=kg,"selectionStart"in v&&jb(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),P1&&sh(P1,v)||(P1=v,v=Kh(CR,"onSelect"),0<v.length&&(i=new ht("onSelect","select",null,i,o),a.push({event:i,listeners:v}),i.target=kg)))}function Fu(a,i){var o={};return o[a.toLowerCase()]=i.toLowerCase(),o["Webkit"+a]="webkit"+i,o["Moz"+a]="moz"+i,o}function Is(a){if(AR[a])return AR[a];if(!Pg[a])return a;var i=Pg[a],o;for(o in i)if(i.hasOwnProperty(o)&&o in s9)return AR[a]=i[o];return a}function dl(a,i){v9.set(a,i),So(i,[a])}function li(a,i){if(typeof a=="object"&&a!==null){var o=xR.get(a);return o!==void 0?o:(i={value:a,source:i,stack:Hp(i)},xR.set(a,i),i)}return{value:a,source:i,stack:Hp(i)}}function ch(){for(var a=jg,i=TR=jg=0;i<a;){var o=du[i];du[i++]=null;var v=du[i];du[i++]=null;var g=du[i];du[i++]=null;var E=du[i];if(du[i++]=null,v!==null&&g!==null){var T=v.pending;T===null?g.next=g:(g.next=T.next,T.next=g),v.pending=g}E!==0&&ZS(o,g,E)}}function tm(a,i,o,v){du[jg++]=a,du[jg++]=i,du[jg++]=o,du[jg++]=v,TR|=v,a.lanes|=v,a=a.alternate,a!==null&&(a.lanes|=v)}function Fb(a,i,o,v){return tm(a,i,o,v),nm(a)}function ka(a,i){return tm(a,null,null,i),nm(a)}function ZS(a,i,o){a.lanes|=o;var v=a.alternate;v!==null&&(v.lanes|=o);for(var g=!1,E=a.return;E!==null;)E.childLanes|=o,v=E.alternate,v!==null&&(v.childLanes|=o),E.tag===22&&(a=E.stateNode,a===null||a._visibility&VC||(g=!0)),a=E,E=E.return;return a.tag===3?(E=a.stateNode,g&&i!==null&&(g=31-ua(o),a=E.hiddenUpdates,v=a[g],v===null?a[g]=[i]:v.push(i),i.lane=o|536870912),E):null}function nm(a){if(aE>ffe)throw _v=aE=0,iE=aN=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");_v>dfe&&(_v=0,iE=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&(a.flags&4098)!==0&&wl(a);for(var i=a,o=i.return;o!==null;)i.alternate===null&&(i.flags&4098)!==0&&wl(a),i=o,o=i.return;return i.tag===3?i.stateNode:null}function Ys(a){if(hu===null)return a;var i=hu(a);return i===void 0?a:i.current}function Lb(a){if(hu===null)return a;var i=hu(a);return i===void 0?a!=null&&typeof a.render=="function"&&(i=Ys(a.render),a.render!==i)?(i={$$typeof:eo,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function QS(a,i){if(hu===null)return!1;var o=a.elementType;i=i.type;var v=!1,g=typeof i=="object"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i=="function"&&(v=!0);break;case 0:(typeof i=="function"||g===hi)&&(v=!0);break;case 11:(g===eo||g===hi)&&(v=!0);break;case 14:case 15:(g===iv||g===hi)&&(v=!0);break;default:return!1}return!!(v&&(a=hu(o),a!==void 0&&a===hu(i)))}function WS(a){hu!==null&&typeof WeakSet=="function"&&(Fg===null&&(Fg=new WeakSet),Fg.add(a))}function fh(a,i,o){var v=a.alternate,g=a.child,E=a.sibling,T=a.tag,N=a.type,V=null;switch(T){case 0:case 15:case 1:V=N;break;case 11:V=N.render}if(hu===null)throw Error("Expected resolveFamily to be set during hot reload.");var X=!1;N=!1,V!==null&&(V=hu(V),V!==void 0&&(o.has(V)?N=!0:i.has(V)&&(T===1?N=!0:X=!0))),Fg!==null&&(Fg.has(a)||v!==null&&Fg.has(v))&&(N=!0),N&&(a._debugNeedsRemount=!0),(N||X)&&(v=ka(a,2),v!==null&&rr(v,a,2)),g===null||N||fh(g,i,o),E!==null&&fh(E,i,o)}function dh(a,i,o,v){this.tag=a,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,m9||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function qb(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Pl(a,i){var o=a.alternate;switch(o===null?(o=C(a.tag,i,a.key,a.mode),o.elementType=a.elementType,o.type=a.type,o.stateNode=a.stateNode,o._debugOwner=a._debugOwner,o._debugStack=a._debugStack,o._debugTask=a._debugTask,o._debugHookTypes=a._debugHookTypes,o.alternate=a,a.alternate=o):(o.pendingProps=i,o.type=a.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=a.flags&65011712,o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,i=a.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},o.sibling=a.sibling,o.index=a.index,o.ref=a.ref,o.refCleanup=a.refCleanup,o.selfBaseDuration=a.selfBaseDuration,o.treeBaseDuration=a.treeBaseDuration,o._debugInfo=a._debugInfo,o._debugNeedsRemount=a._debugNeedsRemount,o.tag){case 0:case 15:o.type=Ys(a.type);break;case 1:o.type=Ys(a.type);break;case 11:o.type=Lb(a.type)}return o}function Ub(a,i){a.flags&=65011714;var o=a.alternate;return o===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,i=o.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},a.selfBaseDuration=o.selfBaseDuration,a.treeBaseDuration=o.treeBaseDuration),a}function rm(a,i,o,v,g,E){var T=0,N=a;if(typeof a=="function")qb(a)&&(T=1),N=Ys(N);else if(typeof a=="string")T=U(),T=$f(a,o,T)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case v1:return i=C(31,o,i,g),i.elementType=v1,i.lanes=E,i;case Ct:return Bo(o.children,g,E,i);case Gf:T=8,g|=Xa,g|=uo;break;case If:return a=o,v=g,typeof a.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),i=C(12,a,i,v|Ca),i.elementType=If,i.lanes=E,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case Yf:return i=C(13,o,i,g),i.elementType=Yf,i.lanes=E,i;case ts:return i=C(19,o,i,g),i.elementType=ts,i.lanes=E,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case h1:case $i:T=10;break e;case yg:T=9;break e;case eo:T=11,N=Lb(N);break e;case iv:T=14;break e;case hi:T=16,N=null;break e}N="",(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a===null?o="null":bt(a)?o="array":a!==void 0&&a.$$typeof===es?(o="<"+(G(a.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):o=typeof a,(T=v?z(v):null)&&(N+=`
115
+
116
+ Check the render method of \``+T+"`."),T=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+N)),N=null}return i=C(T,o,i,g),i.elementType=a,i.type=N,i.lanes=E,i._debugOwner=v,i}function hh(a,i,o){return i=rm(a.type,a.key,a.props,a._owner,i,o),i._debugOwner=a._owner,i._debugStack=a._debugStack,i._debugTask=a._debugTask,i}function Bo(a,i,o,v){return a=C(7,a,v,i),a.lanes=o,a}function _o(a,i,o){return a=C(6,a,null,i),a.lanes=o,a}function Hb(a,i,o){return i=C(4,a.children!==null?a.children:[],a.key,i),i.lanes=o,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function Ks(a,i){hl(),Lg[qg++]=IC,Lg[qg++]=GC,GC=a,IC=i}function JS(a,i,o){hl(),vu[pu++]=_c,vu[pu++]=Rc,vu[pu++]=yv,yv=a;var v=_c;a=Rc;var g=32-ua(v)-1;v&=~(1<<g),o+=1;var E=32-ua(i)+g;if(30<E){var T=g-g%5;E=(v&(1<<T)-1).toString(32),v>>=T,g-=T,_c=1<<32-ua(i)+g|o<<g|v,Rc=E+a}else _c=1<<E|o<<g|v,Rc=a}function am(a){hl(),a.return!==null&&(Ks(a,1),JS(a,1,0))}function im(a){for(;a===GC;)GC=Lg[--qg],Lg[qg]=null,IC=Lg[--qg],Lg[qg]=null;for(;a===yv;)yv=vu[--pu],vu[pu]=null,Rc=vu[--pu],vu[pu]=null,_c=vu[--pu],vu[pu]=null}function hl(){rn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function vl(a,i){if(a.return===null){if(mu===null)mu={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(mu.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");mu.distanceFromLeaf>i&&(mu.distanceFromLeaf=i)}return mu}var o=vl(a.return,i+1).children;return 0<o.length&&o[o.length-1].fiber===a?(o=o[o.length-1],o.distanceFromLeaf>i&&(o.distanceFromLeaf=i),o):(i={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i},o.push(i),i)}function $b(a,i){Nc||(a=vl(a,0),a.serverProps=null,i!==null&&(i=og(i),a.serverTail.push(i)))}function jl(a){var i="",o=mu;throw o!==null&&(mu=null,i=ah(o)),ff(li(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
117
+
118
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
119
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
120
+ - Date formatting in a user's locale which doesn't match the server.
121
+ - External changing data without sending a snapshot of it along with the HTML.
122
+ - Invalid HTML tag nesting.
123
+
124
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
125
+
126
+ https://react.dev/link/hydration-mismatch`+i),a)),BR}function Vb(a){var i=a.stateNode,o=a.type,v=a.memoizedProps;switch(i[oa]=a,i[Ya]=v,ru(o,v),o){case"dialog":Rt("cancel",i),Rt("close",i);break;case"iframe":case"object":case"embed":Rt("load",i);break;case"video":case"audio":for(o=0;o<lE.length;o++)Rt(lE[o],i);break;case"source":Rt("error",i);break;case"img":case"image":case"link":Rt("error",i),Rt("load",i);break;case"details":Rt("toggle",i);break;case"input":Co("input",v),Rt("invalid",i),wo(i,v),FS(i,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),zu(i);break;case"option":Ab(i,v);break;case"select":Co("select",v),Rt("invalid",i),nh(i,v);break;case"textarea":Co("textarea",v),Rt("invalid",i),zl(i,v),Ob(i,v.value,v.defaultValue,v.children),zu(i)}o=v.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||v.suppressHydrationWarning===!0||I0(i.textContent,o)?(v.popover!=null&&(Rt("beforetoggle",i),Rt("toggle",i)),v.onScroll!=null&&Rt("scroll",i),v.onScrollEnd!=null&&Rt("scrollend",i),v.onClick!=null&&(i.onclick=Zu),i=!0):i=!1,i||jl(a)}function Gb(a){for(mi=a.return;mi;)switch(mi.tag){case 5:case 13:ss=!1;return;case 27:case 3:ss=!0;return;default:mi=mi.return}}function Xs(a){if(a!==mi)return!1;if(!rn)return Gb(a),rn=!0,!1;var i=a.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=a.type,o=!(o!=="form"&&o!=="button")||au(a.type,a.memoizedProps)),o=!o),o&&pr){for(o=pr;o;){var v=vl(a,0),g=og(o);v.serverTail.push(g),o=g.type==="Suspense"?e1(o):Xr(o.nextSibling)}jl(a)}if(Gb(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");pr=e1(a)}else i===27?(i=pr,iu(a.type)?(a=mN,mN=null,pr=a):pr=i):pr=mi?Xr(a.stateNode.nextSibling):null;return!0}function Zs(){pr=mi=null,Nc=rn=!1}function Ib(){var a=bv;return a!==null&&(bi===null?bi=a:bi.push.apply(bi,a),bv=null),a}function ff(a){bv===null?bv=[a]:bv.push(a)}function Yb(){var a=mu;if(a!==null){mu=null;for(var i=ah(a);0<a.children.length;)a=a.children[0];et(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
127
+
128
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
129
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
130
+ - Date formatting in a user's locale which doesn't match the server.
131
+ - External changing data without sending a snapshot of it along with the HTML.
132
+ - Invalid HTML tag nesting.
133
+
134
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
135
+
136
+ %s%s`,"https://react.dev/link/hydration-mismatch",i)})}}function lm(){Ug=YC=null,Hg=!1}function Ro(a,i,o){H(_R,i._currentValue,a),i._currentValue=o,H(RR,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==E9&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=E9}function Lu(a,i){a._currentValue=_R.current;var o=RR.current;I(RR,i),a._currentRenderer=o,I(_R,i)}function Kb(a,i,o){for(;a!==null;){var v=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,v!==null&&(v.childLanes|=i)):v!==null&&(v.childLanes&i)!==i&&(v.childLanes|=i),a===o)break;a=a.return}a!==o&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Xb(a,i,o,v){var g=a.child;for(g!==null&&(g.return=a);g!==null;){var E=g.dependencies;if(E!==null){var T=g.child;E=E.firstContext;e:for(;E!==null;){var N=E;E=g;for(var V=0;V<i.length;V++)if(N.context===i[V]){E.lanes|=o,N=E.alternate,N!==null&&(N.lanes|=o),Kb(E.return,o,a),v||(T=null);break e}E=N.next}}else if(g.tag===18){if(T=g.return,T===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");T.lanes|=o,E=T.alternate,E!==null&&(E.lanes|=o),Kb(T,o,a),T=null}else T=g.child;if(T!==null)T.return=g;else for(T=g;T!==null;){if(T===a){T=null;break}if(g=T.sibling,g!==null){g.return=T.return,T=g;break}T=T.return}g=T}}function Gr(a,i,o,v){a=null;for(var g=i,E=!1;g!==null;){if(!E){if((g.flags&524288)!==0)E=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var T=g.alternate;if(T===null)throw Error("Should have a current fiber. This is a bug in React.");if(T=T.memoizedProps,T!==null){var N=g.type;pi(g.pendingProps.value,T.value)||(a!==null?a.push(N):a=[N])}}else if(g===Xf.current){if(T=g.alternate,T===null)throw Error("Should have a current fiber. This is a bug in React.");T.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(a!==null?a.push(cE):a=[cE])}g=g.return}a!==null&&Xb(i,a,o,v),i.flags|=262144}function No(a){for(a=a.firstContext;a!==null;){if(!pi(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Mo(a){YC=a,Ug=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function On(a){return Hg&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Zb(YC,a)}function vh(a,i){return YC===null&&Mo(a),Zb(a,i)}function Zb(a,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Ug===null){if(a===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Ug=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else Ug=Ug.next=i;return o}function ph(){return{controller:new Zce,data:new Map,refCount:0}}function Qs(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function Fl(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&Qce(Wce,function(){a.controller.abort()})}function pl(){var a=Ev;return Ev=0,a}function zo(a){var i=Ev;return Ev=a,i}function Ws(a){var i=Ev;return Ev+=a,i}function um(a){Ii=$g(),0>a.actualStartTime&&(a.actualStartTime=Ii)}function qu(a){if(0<=Ii){var i=$g()-Ii;a.actualDuration+=i,a.selfBaseDuration=i,Ii=-1}}function Js(a){if(0<=Ii){var i=$g()-Ii;a.actualDuration+=i,Ii=-1}}function Ri(){if(0<=Ii){var a=$g()-Ii;Ii=-1,Ev+=a}}function ml(){Ii=$g()}function Ll(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function eC(a,i){if(j1===null){var o=j1=[];NR=0,Dv=U0(),Vg={status:"pending",value:void 0,then:function(v){o.push(v)}}}return NR++,i.then(Qb,Qb),i}function Qb(){if(--NR===0&&j1!==null){Vg!==null&&(Vg.status="fulfilled");var a=j1;j1=null,Dv=0,Vg=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function tC(a,i){var o=[],v={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return a.then(function(){v.status="fulfilled",v.value=i;for(var g=0;g<o.length;g++)(0,o[g])(i)},function(g){for(v.status="rejected",v.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),v}function Wb(){var a=Sv.current;return a!==null?a:xn.pooledCache}function om(a,i){i===null?H(Sv,Sv.current,a):H(Sv,i.pool,a)}function nC(){var a=Wb();return a===null?null:{parent:Wr._currentValue,pool:a}}function Jb(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function e0(a){return a=a.status,a==="fulfilled"||a==="rejected"}function df(){}function Ni(a,i,o){Ce.actQueue!==null&&(Ce.didUsePromise=!0);var v=a.thenables;switch(o=v[o],o===void 0?v.push(i):o!==i&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),i.then(df,df),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,ui(a),a;default:if(typeof i.status=="string")i.then(df,df);else{if(a=xn,a!==null&&100<a.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");a=i,a.status="pending",a.then(function(g){if(i.status==="pending"){var E=i;E.status="fulfilled",E.value=g}},function(g){if(i.status==="pending"){var E=i;E.status="rejected",E.reason=g}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,ui(a),a}throw G1=i,JC=!0,V1}}function t0(){if(G1===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G1;return G1=null,JC=!1,a}function ui(a){if(a===V1||a===WC)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Pa(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ko(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ql(a){return{lane:a,tag:A9,payload:null,callback:null,next:null}}function gl(a,i,o){var v=a.updateQueue;if(v===null)return null;if(v=v.shared,kR===v&&!T9){var g=$(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
137
+
138
+ Please update the following component: %s`,g),T9=!0}return(mn&yi)!==xl?(g=v.pending,g===null?i.next=i:(i.next=g.next,g.next=i),v.pending=i,i=nm(a),ZS(a,null,o),i):(tm(a,v,i,o),nm(a))}function Po(a,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var v=i.lanes;v&=a.pendingLanes,o|=v,i.lanes=o,va(a,o)}}function hf(a,i){var o=a.updateQueue,v=a.alternate;if(v!==null&&(v=v.updateQueue,o===v)){var g=null,E=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};E===null?g=E=T:E=E.next=T,o=o.next}while(o!==null);E===null?g=E=i:E=E.next=i}else g=E=i;o={baseState:v.baseState,firstBaseUpdate:g,lastBaseUpdate:E,shared:v.shared,callbacks:v.callbacks},a.updateQueue=o;return}a=o.lastBaseUpdate,a===null?o.firstBaseUpdate=i:a.next=i,o.lastBaseUpdate=i}function Ul(){if(PR){var a=Vg;if(a!==null)throw a}}function vf(a,i,o,v){PR=!1;var g=a.updateQueue;id=!1,kR=g.shared;var E=g.firstBaseUpdate,T=g.lastBaseUpdate,N=g.shared.pending;if(N!==null){g.shared.pending=null;var V=N,X=V.next;V.next=null,T===null?E=X:T.next=X,T=V;var Ee=a.alternate;Ee!==null&&(Ee=Ee.updateQueue,N=Ee.lastBaseUpdate,N!==T&&(N===null?Ee.firstBaseUpdate=X:N.next=X,Ee.lastBaseUpdate=V))}if(E!==null){var Oe=g.baseState;T=0,Ee=X=V=null,N=E;do{var ge=N.lane&-536870913,Te=ge!==N.lane;if(Te?(jt&ge)===ge:(v&ge)===ge){ge!==0&&ge===Dv&&(PR=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{ge=a;var tt=N,gt=i,Tn=o;switch(tt.tag){case O9:if(tt=tt.payload,typeof tt=="function"){Hg=!0;var Ut=tt.call(Tn,Oe,gt);if(ge.mode&Xa){Ye(!0);try{tt.call(Tn,Oe,gt)}finally{Ye(!1)}}Hg=!1,Oe=Ut;break e}Oe=tt;break e;case zR:ge.flags=ge.flags&-65537|128;case A9:if(Ut=tt.payload,typeof Ut=="function"){if(Hg=!0,tt=Ut.call(Tn,Oe,gt),ge.mode&Xa){Ye(!0);try{Ut.call(Tn,Oe,gt)}finally{Ye(!1)}}Hg=!1}else tt=Ut;if(tt==null)break e;Oe=xt({},Oe,tt);break e;case x9:id=!0}}ge=N.callback,ge!==null&&(a.flags|=64,Te&&(a.flags|=8192),Te=g.callbacks,Te===null?g.callbacks=[ge]:Te.push(ge))}else Te={lane:ge,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Ee===null?(X=Ee=Te,V=Oe):Ee=Ee.next=Te,T|=ge;if(N=N.next,N===null){if(N=g.shared.pending,N===null)break;Te=N,N=Te.next,Te.next=null,g.lastBaseUpdate=Te,g.shared.pending=null}}while(!0);Ee===null&&(V=Oe),g.baseState=V,g.firstBaseUpdate=X,g.lastBaseUpdate=Ee,E===null&&(g.shared.lanes=0),sd|=T,a.lanes=T,a.memoizedState=Oe}kR=null}function mh(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function pf(a,i){var o=a.shared.hiddenCallbacks;if(o!==null)for(a.shared.hiddenCallbacks=null,a=0;a<o.length;a++)mh(o[a],i)}function rC(a,i){var o=a.callbacks;if(o!==null)for(a.callbacks=null,a=0;a<o.length;a++)mh(o[a],i)}function ja(a,i){var o=ds;H(ew,o,a),H(Gg,i,a),ds=o|i.baseLanes}function gh(a){H(ew,ds,a),H(Gg,Gg.current,a)}function yl(a){ds=ew.current,I(Gg,a),I(ew,a)}function Tt(){var a=Ae;bu===null?bu=[a]:bu.push(a)}function Le(){var a=Ae;if(bu!==null&&(zc++,bu[zc]!==a)){var i=$(Et);if(!B9.has(i)&&(B9.add(i),bu!==null)){for(var o="",v=0;v<=zc;v++){var g=bu[v],E=v===zc?a:g;for(g=v+1+". "+g;30>g.length;)g+=" ";g+=E+`
139
+ `,o+=g}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
140
+
141
+ Previous render Next render
142
+ ------------------------------------------------------
143
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144
+ `,i,o)}}}function Mi(a){a==null||bt(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ae,typeof a)}function mf(){var a=$(Et);R9.has(a)||(R9.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function Hn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
145
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
146
+ 2. You might be breaking the Rules of Hooks
147
+ 3. You might have more than one copy of React in the same app
148
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function jo(a,i){if(Y1)return!1;if(i===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ae),!1;a.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
149
+
150
+ Previous: %s
151
+ Incoming: %s`,Ae,"["+i.join(", ")+"]","["+a.join(", ")+"]");for(var o=0;o<i.length&&o<a.length;o++)if(!pi(a[o],i[o]))return!1;return!0}function Fo(a,i,o,v,g,E){ld=E,Et=i,bu=a!==null?a._debugHookTypes:null,zc=-1,Y1=a!==null&&a.type!==i.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(E=$(Et),jR.has(E)||(jR.add(E),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",E===null?"An unknown Component":"<"+E+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ce.H=a!==null&&a.memoizedState!==null?LR:bu!==null?N9:FR,wv=E=(i.mode&Xa)!==Nn;var T=qR(o,v,g);if(wv=!1,Yg&&(T=gf(i,o,v,g)),E){Ye(!0);try{T=gf(i,o,v,g)}finally{Ye(!1)}}return yh(a,i),T}function yh(a,i){i._debugHookTypes=bu,i.dependencies===null?Mc!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Mc}):i.dependencies._debugThenableState=Mc,Ce.H=rw;var o=An!==null&&An.next!==null;if(ld=0,bu=Ae=qr=An=Et=null,zc=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),tw=!1,I1=0,Mc=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||sa||(a=a.dependencies,a!==null&&No(a)&&(sa=!0)),JC?(JC=!1,a=!0):a=!1,a&&(i=$(i)||"Unknown",_9.has(i)||jR.has(i)||(_9.add(i),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function gf(a,i,o,v){Et=a;var g=0;do{if(Yg&&(Mc=null),I1=0,Yg=!1,g>=efe)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g+=1,Y1=!1,qr=An=null,a.updateQueue!=null){var E=a.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}zc=-1,Ce.H=M9,E=qR(i,o,v)}while(Yg);return E}function zi(){var a=Ce.H,i=a.useState()[0];return i=typeof i.then=="function"?ec(i):i,a=a.useState()[0],(An!==null?An.memoizedState:null)!==a&&(Et.flags|=1024),i}function Fa(){var a=nw!==0;return nw=0,a}function Uu(a,i,o){i.updateQueue=a.updateQueue,i.flags=(i.mode&uo)!==Nn?i.flags&-402655237:i.flags&-2053,a.lanes&=~o}function bl(a){if(tw){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}tw=!1}ld=0,bu=qr=An=Et=null,zc=-1,Ae=null,Yg=!1,I1=nw=0,Mc=null}function tr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?Et.memoizedState=qr=a:qr=qr.next=a,qr}function qt(){if(An===null){var a=Et.alternate;a=a!==null?a.memoizedState:null}else a=An.next;var i=qr===null?Et.memoizedState:qr.next;if(i!==null)qr=i,An=a;else{if(a===null)throw Et.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");An=a,a={memoizedState:An.memoizedState,baseState:An.baseState,baseQueue:An.baseQueue,queue:An.queue,next:null},qr===null?Et.memoizedState=qr=a:qr=qr.next=a}return qr}function sm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ec(a){var i=I1;return I1+=1,Mc===null&&(Mc=Jb()),a=Ni(Mc,a,i),i=Et,(qr===null?i.memoizedState:qr.next)===null&&(i=i.alternate,Ce.H=i!==null&&i.memoizedState!==null?LR:FR),a}function Hl(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return ec(a);if(a.$$typeof===$i)return On(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function dr(a){var i=null,o=Et.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var v=Et.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(i={data:v.data.map(function(g){return g.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=sm(),Et.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0||Y1)for(o=i.data[i.index]=Array(a),v=0;v<a;v++)o[v]=NC;else o.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",o.length,a);return i.index++,o}function en(a,i){return typeof i=="function"?i(a):i}function Qt(a,i,o){var v=tr();if(o!==void 0){var g=o(i);if(wv){Ye(!0);try{o(i)}finally{Ye(!1)}}}else g=i;return v.memoizedState=v.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},v.queue=a,a=a.dispatch=c0.bind(null,Et,a),[v.memoizedState,a]}function ki(a){var i=qt();return Pi(i,An,a)}function Pi(a,i,o){var v=a.queue;if(v===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");v.lastRenderedReducer=o;var g=a.baseQueue,E=v.pending;if(E!==null){if(g!==null){var T=g.next;g.next=E.next,E.next=T}i.baseQueue!==g&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=g=E,v.pending=null}if(E=a.baseState,g===null)a.memoizedState=E;else{i=g.next;var N=T=null,V=null,X=i,Ee=!1;do{var Oe=X.lane&-536870913;if(Oe!==X.lane?(jt&Oe)===Oe:(ld&Oe)===Oe){var ge=X.revertLane;if(ge===0)V!==null&&(V=V.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),Oe===Dv&&(Ee=!0);else if((ld&ge)===ge){X=X.next,ge===Dv&&(Ee=!0);continue}else Oe={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},V===null?(N=V=Oe,T=E):V=V.next=Oe,Et.lanes|=ge,sd|=ge;Oe=X.action,wv&&o(E,Oe),E=X.hasEagerState?X.eagerState:o(E,Oe)}else ge={lane:Oe,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},V===null?(N=V=ge,T=E):V=V.next=ge,Et.lanes|=Oe,sd|=Oe;X=X.next}while(X!==null&&X!==i);if(V===null?T=E:V.next=N,!pi(E,a.memoizedState)&&(sa=!0,Ee&&(o=Vg,o!==null)))throw o;a.memoizedState=E,a.baseState=T,a.baseQueue=V,v.lastRenderedState=E}return g===null&&(v.lanes=0),[a.memoizedState,v.dispatch]}function tc(a){var i=qt(),o=i.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var v=o.dispatch,g=o.pending,E=i.memoizedState;if(g!==null){o.pending=null;var T=g=g.next;do E=a(E,T.action),T=T.next;while(T!==g);pi(E,i.memoizedState)||(sa=!0),i.memoizedState=E,i.baseQueue===null&&(i.baseState=E),o.lastRenderedState=E}return[E,v]}function Hu(a,i,o){var v=Et,g=tr();if(rn){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var E=o();Ig||E===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ig=!0)}else{if(E=i(),Ig||(o=i(),pi(E,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ig=!0)),xn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(jt&124)!==0||n0(v,i,E)}return g.memoizedState=E,o={value:E,getSnapshot:i},g.queue=o,dm(bf.bind(null,v,o,a),[a]),v.flags|=2048,Vl(yu|Jr,qo(),yf.bind(null,v,o,E,i),null),E}function bh(a,i,o){var v=Et,g=qt(),E=rn;if(E){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=i(),!Ig){var T=i();pi(o,T)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ig=!0)}(T=!pi((An||g).memoizedState,o))&&(g.memoizedState=o,sa=!0),g=g.queue;var N=bf.bind(null,v,g,a);if(Cr(2048,Jr,N,[a]),g.getSnapshot!==i||T||qr!==null&&qr.memoizedState.tag&yu){if(v.flags|=2048,Vl(yu|Jr,qo(),yf.bind(null,v,g,o,i),null),xn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");E||(ld&124)!==0||n0(v,i,o)}return o}function n0(a,i,o){a.flags|=16384,a={getSnapshot:i,value:o},i=Et.updateQueue,i===null?(i=sm(),Et.updateQueue=i,i.stores=[a]):(o=i.stores,o===null?i.stores=[a]:o.push(a))}function yf(a,i,o,v){i.value=o,i.getSnapshot=v,r0(i)&&Ef(a)}function bf(a,i,o){return o(function(){r0(i)&&Ef(a)})}function r0(a){var i=a.getSnapshot;a=a.value;try{var o=i();return!pi(a,o)}catch{return!0}}function Ef(a){var i=ka(a,2);i!==null&&rr(i,a,2)}function Eh(a){var i=tr();if(typeof a=="function"){var o=a;if(a=o(),wv){Ye(!0);try{o()}finally{Ye(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:a},i}function $u(a){a=Eh(a);var i=a.queue,o=wf.bind(null,Et,i);return i.dispatch=o,[a.memoizedState,o]}function El(a){var i=tr();i.memoizedState=i.baseState=a;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Dm.bind(null,Et,!0,o),o.dispatch=i,[a,i]}function Vu(a,i){var o=qt();return $l(o,An,a,i)}function $l(a,i,o,v){return a.baseState=o,Pi(a,An,typeof v=="function"?v:en)}function cm(a,i){var o=qt();return An!==null?$l(o,An,a,i):(o.baseState=a,[a,o.queue.dispatch])}function a0(a,i,o,v,g){if(xh(a))throw Error("Cannot update form state while rendering.");if(a=i.action,a!==null){var E={payload:g,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){E.listeners.push(T)}};Ce.T!==null?o(!0):E.isTransition=!1,v(E),o=i.pending,o===null?(E.next=i.pending=E,Df(i,E)):(E.next=o.next,i.pending=o.next=E)}}function Df(a,i){var o=i.action,v=i.payload,g=a.state;if(i.isTransition){var E=Ce.T,T={};Ce.T=T,Ce.T._updatedFibers=new Set;try{var N=o(g,v),V=Ce.S;V!==null&&V(T,N),Dh(a,i,N)}catch(X){kr(a,i,X)}finally{Ce.T=E,E===null&&T._updatedFibers&&(a=T._updatedFibers.size,T._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{T=o(g,v),Dh(a,i,T)}catch(X){kr(a,i,X)}}function Dh(a,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(o.then(function(v){Lo(a,i,v)},function(v){return kr(a,i,v)}),i.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Lo(a,i,o)}function Lo(a,i,o){i.status="fulfilled",i.value=o,Sh(i),a.state=o,i=a.pending,i!==null&&(o=i.next,o===i?a.pending=null:(o=o.next,i.next=o,Df(a,o)))}function kr(a,i,o){var v=a.pending;if(a.pending=null,v!==null){v=v.next;do i.status="rejected",i.reason=o,Sh(i),i=i.next;while(i!==v)}a.action=null}function Sh(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function i0(a,i){return i}function Sf(a,i){if(rn){var o=xn.formState;if(o!==null){e:{var v=Et;if(rn){if(pr){t:{for(var g=pr,E=ss;g.nodeType!==8;){if(!E){g=null;break t}if(g=Xr(g.nextSibling),g===null){g=null;break t}}E=g.data,g=E===dN||E===RU?g:null}if(g){pr=Xr(g.nextSibling),v=g.data===dN;break e}}jl(v)}v=!1}v&&(i=o[0])}}return o=tr(),o.memoizedState=o.baseState=i,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i0,lastRenderedState:i},o.queue=v,o=wf.bind(null,Et,v),v.dispatch=o,v=Eh(!1),E=Dm.bind(null,Et,!1,v.queue),v=tr(),g={state:i,dispatch:null,action:a,pending:null},v.queue=g,o=a0.bind(null,Et,g,E,o),g.dispatch=o,v.memoizedState=a,[i,o,!1]}function fm(a){var i=qt();return aC(i,An,a)}function aC(a,i,o){if(i=Pi(a,i,i0)[0],a=ki(en)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var v=ec(i)}catch(T){throw T===V1?WC:T}else v=i;i=qt();var g=i.queue,E=g.dispatch;return o!==i.memoizedState&&(Et.flags|=2048,Vl(yu|Jr,qo(),Sr.bind(null,g,o),null)),[v,E,a]}function Sr(a,i){a.action=i}function Cf(a){var i=qt(),o=An;if(o!==null)return aC(i,o,a);qt(),i=i.memoizedState,o=qt();var v=o.queue.dispatch;return o.memoizedState=a,[i,v,!1]}function Vl(a,i,o,v){return a={tag:a,create:o,deps:v,inst:i,next:null},i=Et.updateQueue,i===null&&(i=sm(),Et.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=a.next=a:(v=o.next,o.next=a,a.next=v,i.lastEffect=a),a}function qo(){return{destroy:void 0,resource:void 0}}function Ch(a){var i=tr();return a={current:a},i.memoizedState=a}function ji(a,i,o,v){var g=tr();v=v===void 0?null:v,Et.flags|=a,g.memoizedState=Vl(yu|i,qo(),o,v)}function Cr(a,i,o,v){var g=qt();v=v===void 0?null:v;var E=g.memoizedState.inst;An!==null&&v!==null&&jo(v,An.memoizedState.deps)?g.memoizedState=Vl(i,E,o,v):(Et.flags|=a,g.memoizedState=Vl(yu|i,E,o,v))}function dm(a,i){(Et.mode&uo)!==Nn&&(Et.mode&p9)===Nn?ji(276826112,Jr,a,i):ji(8390656,Jr,a,i)}function hm(a,i){var o=4194308;return(Et.mode&uo)!==Nn&&(o|=134217728),ji(o,wa,a,i)}function iC(a,i){if(typeof i=="function"){a=a();var o=i(a);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return i.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}"),a=a(),i.current=a,function(){i.current=null}}function vm(a,i,o){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),o=o!=null?o.concat([a]):null;var v=4194308;(Et.mode&uo)!==Nn&&(v|=134217728),ji(v,wa,iC.bind(null,i,a),o)}function Gl(a,i,o){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),o=o!=null?o.concat([a]):null,Cr(4,wa,iC.bind(null,i,a),o)}function wh(a,i){return tr().memoizedState=[a,i===void 0?null:i],a}function nc(a,i){var o=qt();i=i===void 0?null:i;var v=o.memoizedState;return i!==null&&jo(i,v[1])?v[0]:(o.memoizedState=[a,i],a)}function pm(a,i){var o=tr();i=i===void 0?null:i;var v=a();if(wv){Ye(!0);try{a()}finally{Ye(!1)}}return o.memoizedState=[v,i],v}function Uo(a,i){var o=qt();i=i===void 0?null:i;var v=o.memoizedState;if(i!==null&&jo(i,v[1]))return v[0];if(v=a(),wv){Ye(!0);try{a()}finally{Ye(!1)}}return o.memoizedState=[v,i],v}function mm(a,i){var o=tr();return ym(o,a,i)}function Ah(a,i){var o=qt();return Oh(o,An.memoizedState,a,i)}function gm(a,i){var o=qt();return An===null?ym(o,a,i):Oh(o,An.memoizedState,a,i)}function ym(a,i,o){return o===void 0||(ld&1073741824)!==0?a.memoizedState=i:(a.memoizedState=o,a=pC(),Et.lanes|=a,sd|=a,o)}function Oh(a,i,o,v){return pi(o,i)?o:Gg.current!==null?(a=ym(a,o,v),pi(a,i)||(sa=!0),a):(ld&42)===0?(sa=!0,a.memoizedState=o):(a=pC(),Et.lanes|=a,sd|=a,i)}function l0(a,i,o,v,g){var E=mt.p;mt.p=E!==0&&E<Ol?E:Ol;var T=Ce.T,N={};Ce.T=N,Dm(a,!1,i,o),N._updatedFibers=new Set;try{var V=g(),X=Ce.S;if(X!==null&&X(N,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var Ee=tC(V,v);Gu(a,i,Ee,Ha(a))}else Gu(a,i,v,Ha(a))}catch(Oe){Gu(a,i,{then:function(){},status:"rejected",reason:Oe},Ha(a))}finally{mt.p=E,Ce.T=T,T===null&&N._updatedFibers&&(a=N._updatedFibers.size,N._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function rc(a,i,o,v){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var g=u0(a).queue;l0(a,g,i,kv,o===null?b:function(){return o0(a),o(v)})}function u0(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:kv,baseState:kv,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:kv},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:en,lastRenderedState:o},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function o0(a){Ce.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=u0(a).next.queue;Gu(a,i,{},Ha(a))}function Il(){var a=Eh(!1);return a=l0.bind(null,Et,a.queue,!0,!1),tr().memoizedState=a,[!1,a]}function bm(){var a=ki(en)[0],i=qt().memoizedState;return[typeof a=="boolean"?a:ec(a),i]}function Em(){var a=tc(en)[0],i=qt().memoizedState;return[typeof a=="boolean"?a:ec(a),i]}function La(){return On(cE)}function Yl(){var a=tr(),i=xn.identifierPrefix;if(rn){var o=Rc,v=_c;o=(v&~(1<<32-ua(v)-1)).toString(32)+o,i="«"+i+"R"+o,o=nw++,0<o&&(i+="H"+o.toString(32)),i+="»"}else o=Jce++,i="«"+i+"r"+o.toString(32)+"»";return a.memoizedState=i}function ac(){return tr().memoizedState=s0.bind(null,Et)}function s0(a,i){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var v=Ha(o);a=ql(v);var g=gl(o,a,v);g!==null&&(rr(g,o,v),Po(g,o,v)),o=ph(),i!=null&&g!==null&&console.error("The seed argument is not enabled outside experimental channels."),a.payload={cache:o};return}o=o.return}}function c0(a,i,o){var v=arguments;typeof v[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),v=Ha(a);var g={lane:v,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};xh(a)?ic(i,g):(g=Fb(a,i,g,v),g!==null&&(rr(g,a,v),Th(g,i,v))),Ue(a,v)}function wf(a,i,o){var v=arguments;typeof v[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),v=Ha(a),Gu(a,i,o,v),Ue(a,v)}function Gu(a,i,o,v){var g={lane:v,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(xh(a))ic(i,g);else{var E=a.alternate;if(a.lanes===0&&(E===null||E.lanes===0)&&(E=i.lastRenderedReducer,E!==null)){var T=Ce.H;Ce.H=so;try{var N=i.lastRenderedState,V=E(N,o);if(g.hasEagerState=!0,g.eagerState=V,pi(V,N))return tm(a,i,g,0),xn===null&&ch(),!1}catch{}finally{Ce.H=T}}if(o=Fb(a,i,g,v),o!==null)return rr(o,a,v),Th(o,i,v),!0}return!1}function Dm(a,i,o,v){if(Ce.T===null&&Dv===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),v={lane:2,revertLane:U0(),action:v,hasEagerState:!1,eagerState:null,next:null},xh(a)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=Fb(a,o,v,2),i!==null&&rr(i,a,2);Ue(a,2)}function xh(a){var i=a.alternate;return a===Et||i!==null&&i===Et}function ic(a,i){Yg=tw=!0;var o=a.pending;o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i}function Th(a,i,o){if((o&4194048)!==0){var v=i.lanes;v&=a.pendingLanes,o|=v,i.lanes=o,va(a,o)}}function Pr(a){var i=_t;return a!=null&&(_t=i===null?a:i.concat(a)),i}function Af(a,i,o){for(var v=Object.keys(a.props),g=0;g<v.length;g++){var E=v[g];if(E!=="children"&&E!=="key"){i===null&&(i=hh(a,o.mode,0),i._debugInfo=_t,i.return=o),et(i,function(T){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T)},E);break}}}function Of(a){var i=K1;return K1+=1,Kg===null&&(Kg=Jb()),Ni(Kg,a,i)}function Fi(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function St(a,i){throw i.$$typeof===av?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
152
+ - Multiple copies of the "react" package is used.
153
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
154
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(a=Object.prototype.toString.call(i),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead."))}function ln(a,i){var o=$(a)||"Component";K9[o]||(K9[o]=!0,i=i.displayName||i.name||"Component",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
155
+ root.render(%s)`,i,i,i):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
156
+ <%s>{%s}</%s>`,i,i,o,i,o))}function $n(a,i){var o=$(a)||"Component";X9[o]||(X9[o]=!0,i=String(i),a.tag===3?console.error(`Symbols are not valid as a React child.
157
+ root.render(%s)`,i):console.error(`Symbols are not valid as a React child.
158
+ <%s>%s</%s>`,o,i,o))}function Bh(a){function i(te,re){if(a){var oe=te.deletions;oe===null?(te.deletions=[re],te.flags|=16):oe.push(re)}}function o(te,re){if(!a)return null;for(;re!==null;)i(te,re),re=re.sibling;return null}function v(te){for(var re=new Map;te!==null;)te.key!==null?re.set(te.key,te):re.set(te.index,te),te=te.sibling;return re}function g(te,re){return te=Pl(te,re),te.index=0,te.sibling=null,te}function E(te,re,oe){return te.index=oe,a?(oe=te.alternate,oe!==null?(oe=oe.index,oe<re?(te.flags|=67108866,re):oe):(te.flags|=67108866,re)):(te.flags|=1048576,re)}function T(te){return a&&te.alternate===null&&(te.flags|=67108866),te}function N(te,re,oe,Be){return re===null||re.tag!==6?(re=_o(oe,te.mode,Be),re.return=te,re._debugOwner=te,re._debugTask=te._debugTask,re._debugInfo=_t,re):(re=g(re,oe),re.return=te,re._debugInfo=_t,re)}function V(te,re,oe,Be){var Ge=oe.type;return Ge===Ct?(re=Ee(te,re,oe.props.children,Be,oe.key),Af(oe,re,te),re):re!==null&&(re.elementType===Ge||QS(re,oe)||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===hi&&ud(Ge)===re.type)?(re=g(re,oe.props),Fi(re,oe),re.return=te,re._debugOwner=oe._owner,re._debugInfo=_t,re):(re=hh(oe,te.mode,Be),Fi(re,oe),re.return=te,re._debugInfo=_t,re)}function X(te,re,oe,Be){return re===null||re.tag!==4||re.stateNode.containerInfo!==oe.containerInfo||re.stateNode.implementation!==oe.implementation?(re=Hb(oe,te.mode,Be),re.return=te,re._debugInfo=_t,re):(re=g(re,oe.children||[]),re.return=te,re._debugInfo=_t,re)}function Ee(te,re,oe,Be,Ge){return re===null||re.tag!==7?(re=Bo(oe,te.mode,Be,Ge),re.return=te,re._debugOwner=te,re._debugTask=te._debugTask,re._debugInfo=_t,re):(re=g(re,oe),re.return=te,re._debugInfo=_t,re)}function Oe(te,re,oe){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=_o(""+re,te.mode,oe),re.return=te,re._debugOwner=te,re._debugTask=te._debugTask,re._debugInfo=_t,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case es:return oe=hh(re,te.mode,oe),Fi(oe,re),oe.return=te,te=Pr(re._debugInfo),oe._debugInfo=_t,_t=te,oe;case wc:return re=Hb(re,te.mode,oe),re.return=te,re._debugInfo=_t,re;case hi:var Be=Pr(re._debugInfo);return re=ud(re),te=Oe(te,re,oe),_t=Be,te}if(bt(re)||Y(re))return oe=Bo(re,te.mode,oe,null),oe.return=te,oe._debugOwner=te,oe._debugTask=te._debugTask,te=Pr(re._debugInfo),oe._debugInfo=_t,_t=te,oe;if(typeof re.then=="function")return Be=Pr(re._debugInfo),te=Oe(te,Of(re),oe),_t=Be,te;if(re.$$typeof===$i)return Oe(te,vh(te,re),oe);St(te,re)}return typeof re=="function"&&ln(te,re),typeof re=="symbol"&&$n(te,re),null}function ge(te,re,oe,Be){var Ge=re!==null?re.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Ge!==null?null:N(te,re,""+oe,Be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case es:return oe.key===Ge?(Ge=Pr(oe._debugInfo),te=V(te,re,oe,Be),_t=Ge,te):null;case wc:return oe.key===Ge?X(te,re,oe,Be):null;case hi:return Ge=Pr(oe._debugInfo),oe=ud(oe),te=ge(te,re,oe,Be),_t=Ge,te}if(bt(oe)||Y(oe))return Ge!==null?null:(Ge=Pr(oe._debugInfo),te=Ee(te,re,oe,Be,null),_t=Ge,te);if(typeof oe.then=="function")return Ge=Pr(oe._debugInfo),te=ge(te,re,Of(oe),Be),_t=Ge,te;if(oe.$$typeof===$i)return ge(te,re,vh(te,oe),Be);St(te,oe)}return typeof oe=="function"&&ln(te,oe),typeof oe=="symbol"&&$n(te,oe),null}function Te(te,re,oe,Be,Ge){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return te=te.get(oe)||null,N(re,te,""+Be,Ge);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case es:return oe=te.get(Be.key===null?oe:Be.key)||null,te=Pr(Be._debugInfo),re=V(re,oe,Be,Ge),_t=te,re;case wc:return te=te.get(Be.key===null?oe:Be.key)||null,X(re,te,Be,Ge);case hi:var wt=Pr(Be._debugInfo);return Be=ud(Be),re=Te(te,re,oe,Be,Ge),_t=wt,re}if(bt(Be)||Y(Be))return oe=te.get(oe)||null,te=Pr(Be._debugInfo),re=Ee(re,oe,Be,Ge,null),_t=te,re;if(typeof Be.then=="function")return wt=Pr(Be._debugInfo),re=Te(te,re,oe,Of(Be),Ge),_t=wt,re;if(Be.$$typeof===$i)return Te(te,re,oe,vh(re,Be),Ge);St(re,Be)}return typeof Be=="function"&&ln(re,Be),typeof Be=="symbol"&&$n(re,Be),null}function tt(te,re,oe,Be){if(typeof oe!="object"||oe===null)return Be;switch(oe.$$typeof){case es:case wc:h(te,re,oe);var Ge=oe.key;if(typeof Ge!="string")break;if(Be===null){Be=new Set,Be.add(Ge);break}if(!Be.has(Ge)){Be.add(Ge);break}et(re,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ge)});break;case hi:oe=ud(oe),tt(te,re,oe,Be)}return Be}function gt(te,re,oe,Be){for(var Ge=null,wt=null,nt=null,At=re,Ot=re=0,Mn=null;At!==null&&Ot<oe.length;Ot++){At.index>Ot?(Mn=At,At=null):Mn=At.sibling;var xr=ge(te,At,oe[Ot],Be);if(xr===null){At===null&&(At=Mn);break}Ge=tt(te,xr,oe[Ot],Ge),a&&At&&xr.alternate===null&&i(te,At),re=E(xr,re,Ot),nt===null?wt=xr:nt.sibling=xr,nt=xr,At=Mn}if(Ot===oe.length)return o(te,At),rn&&Ks(te,Ot),wt;if(At===null){for(;Ot<oe.length;Ot++)At=Oe(te,oe[Ot],Be),At!==null&&(Ge=tt(te,At,oe[Ot],Ge),re=E(At,re,Ot),nt===null?wt=At:nt.sibling=At,nt=At);return rn&&Ks(te,Ot),wt}for(At=v(At);Ot<oe.length;Ot++)Mn=Te(At,te,Ot,oe[Ot],Be),Mn!==null&&(Ge=tt(te,Mn,oe[Ot],Ge),a&&Mn.alternate!==null&&At.delete(Mn.key===null?Ot:Mn.key),re=E(Mn,re,Ot),nt===null?wt=Mn:nt.sibling=Mn,nt=Mn);return a&&At.forEach(function(qc){return i(te,qc)}),rn&&Ks(te,Ot),wt}function Tn(te,re,oe,Be){if(oe==null)throw Error("An iterable object provided no iterator.");for(var Ge=null,wt=null,nt=re,At=re=0,Ot=null,Mn=null,xr=oe.next();nt!==null&&!xr.done;At++,xr=oe.next()){nt.index>At?(Ot=nt,nt=null):Ot=nt.sibling;var qc=ge(te,nt,xr.value,Be);if(qc===null){nt===null&&(nt=Ot);break}Mn=tt(te,qc,xr.value,Mn),a&&nt&&qc.alternate===null&&i(te,nt),re=E(qc,re,At),wt===null?Ge=qc:wt.sibling=qc,wt=qc,nt=Ot}if(xr.done)return o(te,nt),rn&&Ks(te,At),Ge;if(nt===null){for(;!xr.done;At++,xr=oe.next())nt=Oe(te,xr.value,Be),nt!==null&&(Mn=tt(te,nt,xr.value,Mn),re=E(nt,re,At),wt===null?Ge=nt:wt.sibling=nt,wt=nt);return rn&&Ks(te,At),Ge}for(nt=v(nt);!xr.done;At++,xr=oe.next())Ot=Te(nt,te,At,xr.value,Be),Ot!==null&&(Mn=tt(te,Ot,xr.value,Mn),a&&Ot.alternate!==null&&nt.delete(Ot.key===null?At:Ot.key),re=E(Ot,re,At),wt===null?Ge=Ot:wt.sibling=Ot,wt=Ot);return a&&nt.forEach(function(Ofe){return i(te,Ofe)}),rn&&Ks(te,At),Ge}function Ut(te,re,oe,Be){if(typeof oe=="object"&&oe!==null&&oe.type===Ct&&oe.key===null&&(Af(oe,null,te),oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case es:var Ge=Pr(oe._debugInfo);e:{for(var wt=oe.key;re!==null;){if(re.key===wt){if(wt=oe.type,wt===Ct){if(re.tag===7){o(te,re.sibling),Be=g(re,oe.props.children),Be.return=te,Be._debugOwner=oe._owner,Be._debugInfo=_t,Af(oe,Be,te),te=Be;break e}}else if(re.elementType===wt||QS(re,oe)||typeof wt=="object"&&wt!==null&&wt.$$typeof===hi&&ud(wt)===re.type){o(te,re.sibling),Be=g(re,oe.props),Fi(Be,oe),Be.return=te,Be._debugOwner=oe._owner,Be._debugInfo=_t,te=Be;break e}o(te,re);break}else i(te,re);re=re.sibling}oe.type===Ct?(Be=Bo(oe.props.children,te.mode,Be,oe.key),Be.return=te,Be._debugOwner=te,Be._debugTask=te._debugTask,Be._debugInfo=_t,Af(oe,Be,te),te=Be):(Be=hh(oe,te.mode,Be),Fi(Be,oe),Be.return=te,Be._debugInfo=_t,te=Be)}return te=T(te),_t=Ge,te;case wc:e:{for(Ge=oe,oe=Ge.key;re!==null;){if(re.key===oe)if(re.tag===4&&re.stateNode.containerInfo===Ge.containerInfo&&re.stateNode.implementation===Ge.implementation){o(te,re.sibling),Be=g(re,Ge.children||[]),Be.return=te,te=Be;break e}else{o(te,re);break}else i(te,re);re=re.sibling}Be=Hb(Ge,te.mode,Be),Be.return=te,te=Be}return T(te);case hi:return Ge=Pr(oe._debugInfo),oe=ud(oe),te=Ut(te,re,oe,Be),_t=Ge,te}if(bt(oe))return Ge=Pr(oe._debugInfo),te=gt(te,re,oe,Be),_t=Ge,te;if(Y(oe)){if(Ge=Pr(oe._debugInfo),wt=Y(oe),typeof wt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var nt=wt.call(oe);return nt===oe?(te.tag!==0||Object.prototype.toString.call(te.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(nt)!=="[object Generator]")&&(I9||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),I9=!0):oe.entries!==wt||HR||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),HR=!0),te=Tn(te,re,nt,Be),_t=Ge,te}if(typeof oe.then=="function")return Ge=Pr(oe._debugInfo),te=Ut(te,re,Of(oe),Be),_t=Ge,te;if(oe.$$typeof===$i)return Ut(te,re,vh(te,oe),Be);St(te,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(Ge=""+oe,re!==null&&re.tag===6?(o(te,re.sibling),Be=g(re,Ge),Be.return=te,te=Be):(o(te,re),Be=_o(Ge,te.mode,Be),Be.return=te,Be._debugOwner=te,Be._debugTask=te._debugTask,Be._debugInfo=_t,te=Be),T(te)):(typeof oe=="function"&&ln(te,oe),typeof oe=="symbol"&&$n(te,oe),o(te,re))}return function(te,re,oe,Be){var Ge=_t;_t=null;try{K1=0;var wt=Ut(te,re,oe,Be);return Kg=null,wt}catch(Mn){if(Mn===V1||Mn===WC)throw Mn;var nt=C(29,Mn,null,te.mode);nt.lanes=Be,nt.return=te;var At=nt._debugInfo=_t;if(nt._debugOwner=te._debugOwner,nt._debugTask=te._debugTask,At!=null){for(var Ot=At.length-1;0<=Ot;Ot--)if(typeof At[Ot].stack=="string"){nt._debugOwner=At[Ot],nt._debugTask=At[Ot].debugTask;break}}return nt}finally{_t=Ge}}}function oi(a){var i=a.alternate;H(ea,ea.current&Zg,a),H(Eu,a,a),fs===null&&(i===null||Gg.current!==null||i.memoizedState!==null)&&(fs=a)}function Ho(a){if(a.tag===22){if(H(ea,ea.current,a),H(Eu,a,a),fs===null){var i=a.alternate;i!==null&&i.memoizedState!==null&&(fs=a)}}else Dl(a)}function Dl(a){H(ea,ea.current,a),H(Eu,Eu.current,a)}function si(a){I(Eu,a),fs===a&&(fs=null),I(ea,a)}function Iu(a){for(var i=a;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data===jc||lu(o)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function f0(a){if(a!==null&&typeof a!="function"){var i=String(a);uU.has(i)||(uU.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function Vn(a,i,o,v){var g=a.memoizedState,E=o(v,g);if(a.mode&Xa){Ye(!0);try{E=o(v,g)}finally{Ye(!1)}}E===void 0&&(i=G(i)||"Component",rU.has(i)||(rU.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),g=E==null?g:xt({},g,E),a.memoizedState=g,a.lanes===0&&(a.updateQueue.baseState=g)}function Sm(a,i,o,v,g,E,T){var N=a.stateNode;if(typeof N.shouldComponentUpdate=="function"){if(o=N.shouldComponentUpdate(v,E,T),a.mode&Xa){Ye(!0);try{o=N.shouldComponentUpdate(v,E,T)}finally{Ye(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",G(i)||"Component"),o}return i.prototype&&i.prototype.isPureReactComponent?!sh(o,v)||!sh(g,E):!0}function Cm(a,i,o,v){var g=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,v),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,v),i.state!==g&&(a=$(a)||"Component",W9.has(a)||(W9.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),$R.enqueueReplaceState(i,i.state,null))}function $o(a,i){var o=i;if("ref"in i){o={};for(var v in i)v!=="ref"&&(o[v]=i[v])}if(a=a.defaultProps){o===i&&(o=xt({},o));for(var g in a)o[g]===void 0&&(o[g]=a[g])}return o}function d0(a){VR(a),console.warn(`%s
159
+
160
+ %s
161
+ `,Qg?"An error occurred in the <"+Qg+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
162
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function lC(a){var i=Qg?"The above error occurred in the <"+Qg+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((GR||"Anonymous")+".");if(typeof a=="object"&&a!==null&&typeof a.environmentName=="string"){var v=a.environmentName;a=[`%o
163
+
164
+ %s
165
+
166
+ %s
167
+ `,a,i,o].slice(0),typeof a[0]=="string"?a.splice(0,1,LU+a[0],qU,Sw+v+Sw,UU):a.splice(0,0,LU,qU,Sw+v+Sw,UU),a.unshift(console),v=wfe.apply(console.error,a),v()}else console.error(`%o
168
+
169
+ %s
170
+
171
+ %s
172
+ `,a,i,o)}function wm(a){VR(a)}function xf(a,i){try{Qg=i.source?$(i.source):null,GR=null;var o=i.value;if(Ce.actQueue!==null)Ce.thrownErrors.push(o);else{var v=a.onUncaughtError;v(o,{componentStack:i.stack})}}catch(g){setTimeout(function(){throw g})}}function Am(a,i,o){try{Qg=o.source?$(o.source):null,GR=$(i);var v=a.onCaughtError;v(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function aa(a,i,o){return o=ql(o),o.tag=zR,o.payload={element:null},o.callback=function(){et(i.source,xf,a,i)},o}function nr(a){return a=ql(a),a.tag=zR,a}function _h(a,i,o,v){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var E=v.value;a.payload=function(){return g(E)},a.callback=function(){WS(o),et(v.source,Am,i,o,v)}}var T=o.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(a.callback=function(){WS(o),et(v.source,Am,i,o,v),typeof g!="function"&&(fd===null?fd=new Set([this]):fd.add(this)),tfe(this,v),typeof g=="function"||(o.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",$(o)||"Unknown")})}function Rh(a,i,o,v,g){if(o.flags|=32768,or&&kf(a,g),v!==null&&typeof v=="object"&&typeof v.then=="function"){if(i=o.alternate,i!==null&&Gr(i,o,g,!0),rn&&(Nc=!0),o=Eu.current,o!==null){switch(o.tag){case 13:return fs===null?Gm():o.alternate===null&&mr===Pc&&(mr=XR),o.flags&=-257,o.flags|=65536,o.lanes=g,v===MR?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([v]):i.add(v),j0(a,v,g)),!1;case 22:return o.flags|=65536,v===MR?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([v])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([v]):o.add(v)),j0(a,v,g)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return j0(a,v,g),Gm(),!1}if(rn)return Nc=!0,i=Eu.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=g,v!==BR&&ff(li(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:v}),o))):(v!==BR&&ff(li(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:v}),o)),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,v=li(v,o),g=aa(a.stateNode,v,g),hf(a,g),mr!==Av&&(mr=ty)),!1;var E=li(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:v}),o);if(nE===null?nE=[E]:nE.push(E),mr!==Av&&(mr=ty),i===null)return!0;v=li(v,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,a=g&-g,o.lanes|=a,a=aa(o.stateNode,v,a),hf(o,a),!1;case 1:if(i=o.type,E=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(fd===null||!fd.has(E))))return o.flags|=65536,g&=-g,o.lanes|=g,g=nr(g),_h(g,a,o,v),hf(o,g),!1}o=o.return}while(o!==null);return!1}function vr(a,i,o,v){i.child=a===null?Z9(i,null,o,v):Xg(i,a.child,o,v)}function Om(a,i,o,v,g){o=o.render;var E=i.ref;if("ref"in v){var T={};for(var N in v)N!=="ref"&&(T[N]=v[N])}else T=v;return Mo(i),ce(i),v=Fo(a,i,o,T,E,g),N=Fa(),le(),a!==null&&!sa?(Uu(a,i,g),Xl(a,i,g)):(rn&&N&&am(i),i.flags|=1,vr(a,i,v,g),i.child)}function Kl(a,i,o,v,g){if(a===null){var E=o.type;return typeof E=="function"&&!qb(E)&&E.defaultProps===void 0&&o.compare===null?(o=Ys(E),i.tag=15,i.type=o,_m(i,E),Nh(a,i,o,v,g)):(a=rm(o.type,null,v,i,i.mode,g),a.ref=i.ref,a.return=i,i.child=a)}if(E=a.child,!Pm(a,g)){var T=E.memoizedProps;if(o=o.compare,o=o!==null?o:sh,o(T,v)&&a.ref===i.ref)return Xl(a,i,g)}return i.flags|=1,a=Pl(E,v),a.ref=i.ref,a.return=i,i.child=a}function Nh(a,i,o,v,g){if(a!==null){var E=a.memoizedProps;if(sh(E,v)&&a.ref===i.ref&&i.type===a.type)if(sa=!1,i.pendingProps=v=E,Pm(a,g))(a.flags&131072)!==0&&(sa=!0);else return i.lanes=a.lanes,Xl(a,i,g)}return Bm(a,i,o,v,g)}function xm(a,i,o){var v=i.pendingProps,g=v.children,E=a!==null?a.memoizedState:null;if(v.mode==="hidden"){if((i.flags&128)!==0){if(v=E!==null?E.baseLanes|o:o,a!==null){for(g=i.child=a.child,E=0;g!==null;)E=E|g.lanes|g.childLanes,g=g.sibling;i.childLanes=E&~v}else i.childLanes=0,i.child=null;return Tm(a,i,v,o)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&om(i,E!==null?E.cachePool:null),E!==null?ja(i,E):gh(i),Ho(i);else return i.lanes=i.childLanes=536870912,Tm(a,i,E!==null?E.baseLanes|o:o,o)}else E!==null?(om(i,E.cachePool),ja(i,E),Dl(i),i.memoizedState=null):(a!==null&&om(i,null),gh(i),Dl(i));return vr(a,i,g,o),i.child}function Tm(a,i,o,v){var g=Wb();return g=g===null?null:{parent:Wr._currentValue,pool:g},i.memoizedState={baseLanes:o,cachePool:g},a!==null&&om(i,null),gh(i),Ho(i),a!==null&&Gr(a,i,v,!0),null}function Mh(a,i){var o=i.ref;if(o===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(a===null||a.ref!==o)&&(i.flags|=4194816)}}function Bm(a,i,o,v,g){if(o.prototype&&typeof o.prototype.render=="function"){var E=G(o)||"Unknown";sU[E]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",E,E),sU[E]=!0)}return i.mode&Xa&&oo.recordLegacyContextWarning(i,null),a===null&&(_m(i,i.type),o.contextTypes&&(E=G(o)||"Unknown",fU[E]||(fU[E]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",E)))),Mo(i),ce(i),o=Fo(a,i,o,v,void 0,g),v=Fa(),le(),a!==null&&!sa?(Uu(a,i,g),Xl(a,i,g)):(rn&&v&&am(i),i.flags|=1,vr(a,i,o,g),i.child)}function h0(a,i,o,v,g,E){return Mo(i),ce(i),zc=-1,Y1=a!==null&&a.type!==i.type,i.updateQueue=null,o=gf(i,v,o,g),yh(a,i),v=Fa(),le(),a!==null&&!sa?(Uu(a,i,E),Xl(a,i,E)):(rn&&v&&am(i),i.flags|=1,vr(a,i,o,E),i.child)}function v0(a,i,o,v,g){switch(f(i)){case!1:var E=i.stateNode,T=new i.type(i.memoizedProps,E.context).state;E.updater.enqueueSetState(E,T,null);break;case!0:i.flags|=128,i.flags|=65536,E=Error("Simulated error coming from DevTools");var N=g&-g;if(i.lanes|=N,T=xn,T===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");N=nr(N),_h(N,T,i,li(E,i)),hf(i,N)}if(Mo(i),i.stateNode===null){if(T=ad,E=o.contextType,"contextType"in o&&E!==null&&(E===void 0||E.$$typeof!==$i)&&!lU.has(o)&&(lU.add(o),N=E===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?" However, it is set to a "+typeof E+".":E.$$typeof===yg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",G(o)||"Component",N)),typeof E=="object"&&E!==null&&(T=On(E)),E=new o(v,T),i.mode&Xa){Ye(!0);try{E=new o(v,T)}finally{Ye(!1)}}if(T=i.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=$R,i.stateNode=E,E._reactInternals=i,E._reactInternalInstance=Q9,typeof o.getDerivedStateFromProps=="function"&&T===null&&(T=G(o)||"Component",J9.has(T)||(J9.add(T),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",T,E.state===null?"null":"undefined",T))),typeof o.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"){var V=N=T=null;if(typeof E.componentWillMount=="function"&&E.componentWillMount.__suppressDeprecationWarning!==!0?T="componentWillMount":typeof E.UNSAFE_componentWillMount=="function"&&(T="UNSAFE_componentWillMount"),typeof E.componentWillReceiveProps=="function"&&E.componentWillReceiveProps.__suppressDeprecationWarning!==!0?N="componentWillReceiveProps":typeof E.UNSAFE_componentWillReceiveProps=="function"&&(N="UNSAFE_componentWillReceiveProps"),typeof E.componentWillUpdate=="function"&&E.componentWillUpdate.__suppressDeprecationWarning!==!0?V="componentWillUpdate":typeof E.UNSAFE_componentWillUpdate=="function"&&(V="UNSAFE_componentWillUpdate"),T!==null||N!==null||V!==null){E=G(o)||"Component";var X=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tU.has(E)||(tU.add(E),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
173
+
174
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
175
+
176
+ The above lifecycles should be removed. Learn more about this warning here:
177
+ https://react.dev/link/unsafe-component-lifecycles`,E,X,T!==null?`
178
+ `+T:"",N!==null?`
179
+ `+N:"",V!==null?`
180
+ `+V:""))}}E=i.stateNode,T=G(o)||"Component",E.render||(o.prototype&&typeof o.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",T):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",T)),!E.getInitialState||E.getInitialState.isReactClassApproved||E.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",T),E.getDefaultProps&&!E.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",T),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",T),o.childContextTypes&&!iU.has(o)&&(iU.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",T)),o.contextTypes&&!aU.has(o)&&(aU.add(o),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",T)),typeof E.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",T),o.prototype&&o.prototype.isPureReactComponent&&typeof E.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",G(o)||"A pure component"),typeof E.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",T),typeof E.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",T),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",T),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",T),N=E.props!==v,E.props!==void 0&&N&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",T),E.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",T,T),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||eU.has(o)||(eU.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",G(o))),typeof E.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",T),typeof E.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",T),typeof o.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",T),(N=E.state)&&(typeof N!="object"||bt(N))&&console.error("%s.state: must be set to an object or null",T),typeof E.getChildContext=="function"&&typeof o.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",T),E=i.stateNode,E.props=v,E.state=i.memoizedState,E.refs={},Pa(i),T=o.contextType,E.context=typeof T=="object"&&T!==null?On(T):ad,E.state===v&&(T=G(o)||"Component",nU.has(T)||(nU.add(T),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",T))),i.mode&Xa&&oo.recordLegacyContextWarning(i,E),oo.recordUnsafeLifecycleWarnings(i,E),E.state=i.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(Vn(i,o,T,v),E.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(T=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),T!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$(i)||"Component"),$R.enqueueReplaceState(E,E.state,null)),vf(i,v,E,g),Ul(),E.state=i.memoizedState),typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&uo)!==Nn&&(i.flags|=134217728),E=!0}else if(a===null){E=i.stateNode;var Ee=i.memoizedProps;N=$o(o,Ee),E.props=N;var Oe=E.context;V=o.contextType,T=ad,typeof V=="object"&&V!==null&&(T=On(V)),X=o.getDerivedStateFromProps,V=typeof X=="function"||typeof E.getSnapshotBeforeUpdate=="function",Ee=i.pendingProps!==Ee,V||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(Ee||Oe!==T)&&Cm(i,E,v,T),id=!1;var ge=i.memoizedState;E.state=ge,vf(i,v,E,g),Ul(),Oe=i.memoizedState,Ee||ge!==Oe||id?(typeof X=="function"&&(Vn(i,o,X,v),Oe=i.memoizedState),(N=id||Sm(i,o,N,v,ge,Oe,T))?(V||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&uo)!==Nn&&(i.flags|=134217728)):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&uo)!==Nn&&(i.flags|=134217728),i.memoizedProps=v,i.memoizedState=Oe),E.props=v,E.state=Oe,E.context=T,E=N):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&uo)!==Nn&&(i.flags|=134217728),E=!1)}else{E=i.stateNode,ko(a,i),T=i.memoizedProps,V=$o(o,T),E.props=V,X=i.pendingProps,ge=E.context,Oe=o.contextType,N=ad,typeof Oe=="object"&&Oe!==null&&(N=On(Oe)),Ee=o.getDerivedStateFromProps,(Oe=typeof Ee=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(T!==X||ge!==N)&&Cm(i,E,v,N),id=!1,ge=i.memoizedState,E.state=ge,vf(i,v,E,g),Ul();var Te=i.memoizedState;T!==X||ge!==Te||id||a!==null&&a.dependencies!==null&&No(a.dependencies)?(typeof Ee=="function"&&(Vn(i,o,Ee,v),Te=i.memoizedState),(V=id||Sm(i,o,V,v,ge,Te,N)||a!==null&&a.dependencies!==null&&No(a.dependencies))?(Oe||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(v,Te,N),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(v,Te,N)),typeof E.componentDidUpdate=="function"&&(i.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof E.componentDidUpdate!="function"||T===a.memoizedProps&&ge===a.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&ge===a.memoizedState||(i.flags|=1024),i.memoizedProps=v,i.memoizedState=Te),E.props=v,E.state=Te,E.context=N,E=V):(typeof E.componentDidUpdate!="function"||T===a.memoizedProps&&ge===a.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&ge===a.memoizedState||(i.flags|=1024),E=!1)}if(N=E,Mh(a,i),T=(i.flags&128)!==0,N||T){if(N=i.stateNode,Jd(i),T&&typeof o.getDerivedStateFromError!="function")o=null,Ii=-1;else{if(ce(i),o=P9(N),i.mode&Xa){Ye(!0);try{P9(N)}finally{Ye(!1)}}le()}i.flags|=1,a!==null&&T?(i.child=Xg(i,a.child,null,g),i.child=Xg(i,null,o,g)):vr(a,i,o,g),i.memoizedState=N.state,a=i.child}else a=Xl(a,i,g);return g=i.stateNode,E&&g.props!==v&&(Wg||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",$(i)||"a component"),Wg=!0),a}function p0(a,i,o,v){return Zs(),i.flags|=256,vr(a,i,o,v),i.child}function _m(a,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
181
+ %s.childContextTypes = ...`,i.displayName||i.name||"Component"),typeof i.getDerivedStateFromProps=="function"&&(a=G(i)||"Unknown",dU[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),dU[a]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=G(i)||"Unknown",cU[i]||(console.error("%s: Function components do not support contextType.",i),cU[i]=!0))}function zh(a){return{baseLanes:a,cachePool:nC()}}function Rm(a,i,o){return a=a!==null?a.childLanes&~o:0,i&&(a|=Bl),a}function uC(a,i,o){var v,g=i.pendingProps;s(i)&&(i.flags|=128);var E=!1,T=(i.flags&128)!==0;if((v=T)||(v=a!==null&&a.memoizedState===null?!1:(ea.current&X1)!==0),v&&(E=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,a===null){if(rn){if(E?oi(i):Dl(i),rn){var N=pr,V;if(!(V=!N)){e:{var X=N;for(V=ss;X.nodeType!==8;){if(!V){V=null;break e}if(X=Xr(X.nextSibling),X===null){V=null;break e}}V=X}V!==null?(hl(),i.memoizedState={dehydrated:V,treeContext:yv!==null?{id:_c,overflow:Rc}:null,retryLane:536870912,hydrationErrors:null},X=C(18,null,null,Nn),X.stateNode=V,X.return=i,i.child=X,mi=i,pr=null,V=!0):V=!1,V=!V}V&&($b(i,N),jl(i))}if(N=i.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return lu(N)?i.lanes=32:i.lanes=536870912,null;si(i)}return N=g.children,g=g.fallback,E?(Dl(i),E=i.mode,N=kh({mode:"hidden",children:N},E),g=Bo(g,E,o,null),N.return=i,g.return=i,N.sibling=g,i.child=N,E=i.child,E.memoizedState=zh(o),E.childLanes=Rm(a,v,o),i.memoizedState=YR,g):(oi(i),Nm(i,N))}var Ee=a.memoizedState;if(Ee!==null&&(N=Ee.dehydrated,N!==null)){if(T)i.flags&256?(oi(i),i.flags&=-257,i=Mm(a,i,o)):i.memoizedState!==null?(Dl(i),i.child=a.child,i.flags|=128,i=null):(Dl(i),E=g.fallback,N=i.mode,g=kh({mode:"visible",children:g.children},N),E=Bo(E,N,o,null),E.flags|=2,g.return=i,E.return=i,g.sibling=E,i.child=g,Xg(i,a.child,null,o),g=i.child,g.memoizedState=zh(o),g.childLanes=Rm(a,v,o),i.memoizedState=YR,i=E);else if(oi(i),rn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),lu(N)){if(v=N.nextSibling&&N.nextSibling.dataset,v){V=v.dgst;var Oe=v.msg;X=v.stck;var ge=v.cstck}N=Oe,v=V,g=X,V=E=ge,E=Error(N||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),E.stack=g||"",E.digest=v,v=V===void 0?null:V,g={value:E,source:null,stack:v},typeof v=="string"&&xR.set(E,g),ff(g),i=Mm(a,i,o)}else if(sa||Gr(a,i,o,!1),v=(o&a.childLanes)!==0,sa||v){if(v=xn,v!==null&&(g=o&-o,g=(g&42)!==0?1:Dn(g),g=(g&(v.suspendedLanes|o))!==0?0:g,g!==0&&g!==Ee.retryLane))throw Ee.retryLane=g,ka(a,g),rr(v,a,g),oU;N.data===jc||Gm(),i=Mm(a,i,o)}else N.data===jc?(i.flags|=192,i.child=a.child,i=null):(a=Ee.treeContext,pr=Xr(N.nextSibling),mi=i,rn=!0,bv=null,Nc=!1,mu=null,ss=!1,a!==null&&(hl(),vu[pu++]=_c,vu[pu++]=Rc,vu[pu++]=yv,_c=a.id,Rc=a.overflow,yv=i),i=Nm(i,g.children),i.flags|=4096);return i}return E?(Dl(i),E=g.fallback,N=i.mode,V=a.child,X=V.sibling,g=Pl(V,{mode:"hidden",children:g.children}),g.subtreeFlags=V.subtreeFlags&65011712,X!==null?E=Pl(X,E):(E=Bo(E,N,o,null),E.flags|=2),E.return=i,g.return=i,g.sibling=E,i.child=g,g=E,E=i.child,N=a.child.memoizedState,N===null?N=zh(o):(V=N.cachePool,V!==null?(X=Wr._currentValue,V=V.parent!==X?{parent:X,pool:X}:V):V=nC(),N={baseLanes:N.baseLanes|o,cachePool:V}),E.memoizedState=N,E.childLanes=Rm(a,v,o),i.memoizedState=YR,g):(oi(i),o=a.child,a=o.sibling,o=Pl(o,{mode:"visible",children:g.children}),o.return=i,o.sibling=null,a!==null&&(v=i.deletions,v===null?(i.deletions=[a],i.flags|=16):v.push(a)),i.child=o,i.memoizedState=null,o)}function Nm(a,i){return i=kh({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function kh(a,i){return a=C(22,a,null,i),a.lanes=0,a.stateNode={_visibility:VC,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function Mm(a,i,o){return Xg(i,a.child,null,o),a=Nm(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function zm(a,i,o){a.lanes|=i;var v=a.alternate;v!==null&&(v.lanes|=i),Kb(a.return,i,o)}function m0(a,i){var o=bt(a);return a=!o&&typeof Y(a)=="function",o||a?(o=o?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,i,o),!1):!0}function km(a,i,o,v,g){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:v,tail:o,tailMode:g}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=v,E.tail=o,E.tailMode=g)}function g0(a,i,o){var v=i.pendingProps,g=v.revealOrder,E=v.tail;if(v=v.children,g!==void 0&&g!=="forwards"&&g!=="backwards"&&g!=="together"&&!hU[g])if(hU[g]=!0,typeof g=="string")switch(g.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',g,g.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',g,g.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',g)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',g);E===void 0||IR[E]||(E!=="collapsed"&&E!=="hidden"?(IR[E]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',E)):g!=="forwards"&&g!=="backwards"&&(IR[E]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',E)));e:if((g==="forwards"||g==="backwards")&&v!==void 0&&v!==null&&v!==!1)if(bt(v)){for(var T=0;T<v.length;T++)if(!m0(v[T],T))break e}else if(T=Y(v),typeof T=="function"){if(T=T.call(v))for(var N=T.next(),V=0;!N.done;N=T.next()){if(!m0(N.value,V))break e;V++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',g);if(vr(a,i,v,o),v=ea.current,(v&X1)!==0)v=v&Zg|X1,i.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&zm(a,o,i);else if(a.tag===19)zm(a,o,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}v&=Zg}switch(H(ea,v,i),g){case"forwards":for(o=i.child,g=null;o!==null;)a=o.alternate,a!==null&&Iu(a)===null&&(g=o),o=o.sibling;o=g,o===null?(g=i.child,i.child=null):(g=o.sibling,o.sibling=null),km(i,!1,g,o,E);break;case"backwards":for(o=null,g=i.child,i.child=null;g!==null;){if(a=g.alternate,a!==null&&Iu(a)===null){i.child=g;break}a=g.sibling,g.sibling=o,o=g,g=a}km(i,!0,o,null,E);break;case"together":km(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Xl(a,i,o){if(a!==null&&(i.dependencies=a.dependencies),Ii=-1,sd|=i.lanes,(o&i.childLanes)===0)if(a!==null){if(Gr(a,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error("Resuming work not yet implemented.");if(i.child!==null){for(a=i.child,o=Pl(a,a.pendingProps),i.child=o,o.return=i;a.sibling!==null;)a=a.sibling,o=o.sibling=Pl(a,a.pendingProps),o.return=i;o.sibling=null}return i.child}function Pm(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&No(a)))}function oR(a,i,o){switch(i.tag){case 3:W(i,i.stateNode.containerInfo),Ro(i,Wr,a.memoizedState.cache),Zs();break;case 27:case 5:Z(i);break;case 4:W(i,i.stateNode.containerInfo);break;case 10:Ro(i,i.type,i.memoizedProps.value);break;case 12:(o&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var v=i.stateNode;v.effectDuration=-0,v.passiveEffectDuration=-0;break;case 13:if(v=i.memoizedState,v!==null)return v.dehydrated!==null?(oi(i),i.flags|=128,null):(o&i.child.childLanes)!==0?uC(a,i,o):(oi(i),a=Xl(a,i,o),a!==null?a.sibling:null);oi(i);break;case 19:var g=(a.flags&128)!==0;if(v=(o&i.childLanes)!==0,v||(Gr(a,i,o,!1),v=(o&i.childLanes)!==0),g){if(v)return g0(a,i,o);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),H(ea,ea.current,i),v)break;return null;case 22:case 23:return i.lanes=0,xm(a,i,o);case 24:Ro(i,Wr,a.memoizedState.cache)}return Xl(a,i,o)}function jm(a,i,o){if(i._debugNeedsRemount&&a!==null){o=rm(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),o._debugStack=i._debugStack,o._debugTask=i._debugTask;var v=i.return;if(v===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,i.alternate=null,o.index=i.index,o.sibling=i.sibling,o.return=i.return,o.ref=i.ref,o._debugInfo=i._debugInfo,i===v.child)v.child=o;else{var g=v.child;if(g===null)throw Error("Expected parent to have a child.");for(;g.sibling!==i;)if(g=g.sibling,g===null)throw Error("Expected to find the previous sibling.");g.sibling=o}return i=v.deletions,i===null?(v.deletions=[a],v.flags|=16):i.push(a),o.flags|=2,o}if(a!==null)if(a.memoizedProps!==i.pendingProps||i.type!==a.type)sa=!0;else{if(!Pm(a,o)&&(i.flags&128)===0)return sa=!1,oR(a,i,o);sa=(a.flags&131072)!==0}else sa=!1,(v=rn)&&(hl(),v=(i.flags&1048576)!==0),v&&(v=i.index,hl(),JS(i,IC,v));switch(i.lanes=0,i.tag){case 16:e:if(v=i.pendingProps,a=ud(i.elementType),i.type=a,typeof a=="function")qb(a)?(v=$o(a,v),i.tag=1,i.type=a=Ys(a),i=v0(null,i,a,v,o)):(i.tag=0,_m(i,a),i.type=a=Ys(a),i=Bm(null,i,a,v,o));else{if(a!=null){if(g=a.$$typeof,g===eo){i.tag=11,i.type=a=Lb(a),i=Om(null,i,a,v,o);break e}else if(g===iv){i.tag=14,i=Kl(null,i,a,v,o);break e}}throw i="",a!==null&&typeof a=="object"&&a.$$typeof===hi&&(i=" Did you wrap a component in React.lazy() more than once?"),a=G(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+i)}return i;case 0:return Bm(a,i,i.type,i.pendingProps,o);case 1:return v=i.type,g=$o(v,i.pendingProps),v0(a,i,v,g,o);case 3:e:{if(W(i,i.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");v=i.pendingProps;var E=i.memoizedState;g=E.element,ko(a,i),vf(i,v,null,o);var T=i.memoizedState;if(v=T.cache,Ro(i,Wr,v),v!==E.cache&&Xb(i,[Wr],o,!0),Ul(),v=T.element,E.isDehydrated)if(E={element:v,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=E,i.memoizedState=E,i.flags&256){i=p0(a,i,v,o);break e}else if(v!==g){g=li(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),ff(g),i=p0(a,i,v,o);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(pr=Xr(a.firstChild),mi=i,rn=!0,bv=null,Nc=!1,mu=null,ss=!0,a=Z9(i,null,v,o),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Zs(),v===g){i=Xl(a,i,o);break e}vr(a,i,v,o)}i=i.child}return i;case 26:return Mh(a,i),a===null?(a=Ju(i.type,null,i.pendingProps,null))?i.memoizedState=a:rn||(a=i.type,o=i.pendingProps,v=K(ou.current),v=kt(v).createElement(a),v[oa]=i,v[Ya]=o,ir(v,a,o),Mr(v),i.stateNode=v):i.memoizedState=Ju(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return Z(i),a===null&&rn&&(v=K(ou.current),g=U(),v=i.stateNode=n1(i.type,i.pendingProps,v,g,!1),Nc||(g=Sn(v,i.type,i.pendingProps,g),g!==null&&(vl(i,0).serverProps=g)),mi=i,ss=!0,g=pr,iu(i.type)?(mN=g,pr=Xr(v.firstChild)):pr=g),vr(a,i,i.pendingProps.children,o),Mh(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&rn&&(E=U(),v=Kp(i.type,E.ancestorInfo),g=pr,(T=!g)||(T=Zo(g,i.type,i.pendingProps,ss),T!==null?(i.stateNode=T,Nc||(E=Sn(T,i.type,i.pendingProps,E),E!==null&&(vl(i,0).serverProps=E)),mi=i,pr=Xr(T.firstChild),ss=!1,E=!0):E=!1,T=!E),T&&(v&&$b(i,g),jl(i))),Z(i),g=i.type,E=i.pendingProps,T=a!==null?a.memoizedProps:null,v=E.children,au(g,E)?v=null:T!==null&&au(g,T)&&(i.flags|=32),i.memoizedState!==null&&(g=Fo(a,i,zi,null,null,o),cE._currentValue=g),Mh(a,i),vr(a,i,v,o),i.child;case 6:return a===null&&rn&&(a=i.pendingProps,o=U(),v=o.ancestorInfo.current,a=v!=null?ih(a,v.tag,o.ancestorInfo.implicitRootScope):!0,o=pr,(v=!o)||(v=Kr(o,i.pendingProps,ss),v!==null?(i.stateNode=v,mi=i,pr=null,v=!0):v=!1,v=!v),v&&(a&&$b(i,o),jl(i))),null;case 13:return uC(a,i,o);case 4:return W(i,i.stateNode.containerInfo),v=i.pendingProps,a===null?i.child=Xg(i,null,v,o):vr(a,i,v,o),i.child;case 11:return Om(a,i,i.type,i.pendingProps,o);case 7:return vr(a,i,i.pendingProps,o),i.child;case 8:return vr(a,i,i.pendingProps.children,o),i.child;case 12:return i.flags|=4,i.flags|=2048,v=i.stateNode,v.effectDuration=-0,v.passiveEffectDuration=-0,vr(a,i,i.pendingProps.children,o),i.child;case 10:return v=i.type,g=i.pendingProps,E=g.value,"value"in g||vU||(vU=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ro(i,v,E),vr(a,i,g.children,o),i.child;case 9:return g=i.type._context,v=i.pendingProps.children,typeof v!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Mo(i),g=On(g),ce(i),v=qR(v,g,void 0),le(),i.flags|=1,vr(a,i,v,o),i.child;case 14:return Kl(a,i,i.type,i.pendingProps,o);case 15:return Nh(a,i,i.type,i.pendingProps,o);case 19:return g0(a,i,o);case 31:return v=i.pendingProps,o=i.mode,v={mode:v.mode,children:v.children},a===null?(a=kh(v,o),a.ref=i.ref,i.child=a,a.return=i,i=a):(a=Pl(a.child,v),a.ref=i.ref,i.child=a,a.return=i,i=a),i;case 22:return xm(a,i,o);case 24:return Mo(i),v=On(Wr),a===null?(g=Wb(),g===null&&(g=xn,E=ph(),g.pooledCache=E,Qs(E),E!==null&&(g.pooledCacheLanes|=o),g=E),i.memoizedState={parent:v,cache:g},Pa(i),Ro(i,Wr,g)):((a.lanes&o)!==0&&(ko(a,i),vf(i,null,null,o),Ul()),g=a.memoizedState,E=i.memoizedState,g.parent!==v?(g={parent:v,cache:v},i.memoizedState=g,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=g),Ro(i,Wr,v)):(v=E.cache,Ro(i,Wr,v),v!==g.cache&&Xb(i,[Wr],o,!0))),vr(a,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function qa(a){a.flags|=4}function Ph(a,i){if(i.type!=="stylesheet"||(i.state.loading&Du)!==zv)a.flags&=-16777217;else if(a.flags|=16777216,!Zh(i)){if(i=Eu.current,i!==null&&((jt&4194048)===jt?fs!==null:(jt&62914560)!==jt&&(jt&536870912)===0||i!==fs))throw G1=MR,w9;a.flags|=8192}}function jh(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Vt():536870912,a.lanes|=i,Tv|=i)}function Vo(a,i){if(!rn)switch(a.tailMode){case"hidden":i=a.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a.tail=null:o.sibling=null;break;case"collapsed":o=a.tail;for(var v=null;o!==null;)o.alternate!==null&&(v=o),o=o.sibling;v===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:v.sibling=null}}function yn(a){var i=a.alternate!==null&&a.alternate.child===a.child,o=0,v=0;if(i)if((a.mode&Ca)!==Nn){for(var g=a.selfBaseDuration,E=a.child;E!==null;)o|=E.lanes|E.childLanes,v|=E.subtreeFlags&65011712,v|=E.flags&65011712,g+=E.treeBaseDuration,E=E.sibling;a.treeBaseDuration=g}else for(g=a.child;g!==null;)o|=g.lanes|g.childLanes,v|=g.subtreeFlags&65011712,v|=g.flags&65011712,g.return=a,g=g.sibling;else if((a.mode&Ca)!==Nn){g=a.actualDuration,E=a.selfBaseDuration;for(var T=a.child;T!==null;)o|=T.lanes|T.childLanes,v|=T.subtreeFlags,v|=T.flags,g+=T.actualDuration,E+=T.treeBaseDuration,T=T.sibling;a.actualDuration=g,a.treeBaseDuration=E}else for(g=a.child;g!==null;)o|=g.lanes|g.childLanes,v|=g.subtreeFlags,v|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=v,a.childLanes=o,i}function oC(a,i,o){var v=i.pendingProps;switch(im(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yn(i),null;case 1:return yn(i),null;case 3:return o=i.stateNode,v=null,a!==null&&(v=a.memoizedState.cache),i.memoizedState.cache!==v&&(i.flags|=2048),Lu(Wr,i),ne(i),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(a===null||a.child===null)&&(Xs(i)?(Yb(),qa(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Ib())),yn(i),null;case 26:return o=i.memoizedState,a===null?(qa(i),o!==null?(yn(i),Ph(i,o)):(yn(i),i.flags&=-16777217)):o?o!==a.memoizedState?(qa(i),yn(i),Ph(i,o)):(yn(i),i.flags&=-16777217):(a.memoizedProps!==v&&qa(i),yn(i),i.flags&=-16777217),null;case 27:J(i),o=K(ou.current);var g=i.type;if(a!==null&&i.stateNode!=null)a.memoizedProps!==v&&qa(i);else{if(!v){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yn(i),null}a=U(),Xs(i)?Vb(i):(a=n1(g,v,o,a,!0),i.stateNode=a,qa(i))}return yn(i),null;case 5:if(J(i),o=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==v&&qa(i);else{if(!v){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yn(i),null}if(g=U(),Xs(i))Vb(i);else{switch(a=K(ou.current),Kp(o,g.ancestorInfo),g=g.context,a=kt(a),g){case uy:a=a.createElementNS(rd,o);break;case bw:a=a.createElementNS(mv,o);break;default:switch(o){case"svg":a=a.createElementNS(rd,o);break;case"math":a=a.createElementNS(mv,o);break;case"script":a=a.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof v.is=="string"?a.createElement("select",{is:v.is}):a.createElement("select"),v.multiple?a.multiple=!0:v.size&&(a.size=v.size);break;default:a=typeof v.is=="string"?a.createElement(o,{is:v.is}):a.createElement(o),o.indexOf("-")===-1&&(o!==o.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",o),Object.prototype.toString.call(a)!=="[object HTMLUnknownElement]"||no.call(MU,o)||(MU[o]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",o)))}}a[oa]=i,a[Ya]=v;e:for(g=i.child;g!==null;){if(g.tag===5||g.tag===6)a.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===i)break e;for(;g.sibling===null;){if(g.return===null||g.return===i)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}i.stateNode=a;e:switch(ir(a,o,v),o){case"button":case"input":case"select":case"textarea":a=!!v.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&qa(i)}}return yn(i),i.flags&=-16777217,null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==v&&qa(i);else{if(typeof v!="string"&&i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=K(ou.current),o=U(),Xs(i)){a=i.stateNode,o=i.memoizedProps,g=!Nc,v=null;var E=mi;if(E!==null)switch(E.tag){case 3:g&&(g=sg(a,o,v),g!==null&&(vl(i,0).serverProps=g));break;case 27:case 5:v=E.memoizedProps,g&&(g=sg(a,o,v),g!==null&&(vl(i,0).serverProps=g))}a[oa]=i,a=!!(a.nodeValue===o||v!==null&&v.suppressHydrationWarning===!0||I0(a.nodeValue,o)),a||jl(i)}else g=o.ancestorInfo.current,g!=null&&ih(v,g.tag,o.ancestorInfo.implicitRootScope),a=kt(a).createTextNode(v),a[oa]=i,i.stateNode=a}return yn(i),null;case 13:if(v=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(g=Xs(i),v!==null&&v.dehydrated!==null){if(a===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");g[oa]=i,yn(i),(i.mode&Ca)!==Nn&&v!==null&&(g=i.child,g!==null&&(i.treeBaseDuration-=g.treeBaseDuration))}else Yb(),Zs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4,yn(i),(i.mode&Ca)!==Nn&&v!==null&&(g=i.child,g!==null&&(i.treeBaseDuration-=g.treeBaseDuration));g=!1}else g=Ib(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),g=!0;if(!g)return i.flags&256?(si(i),i):(si(i),null)}return si(i),(i.flags&128)!==0?(i.lanes=o,(i.mode&Ca)!==Nn&&Ll(i),i):(o=v!==null,a=a!==null&&a.memoizedState!==null,o&&(v=i.child,g=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(g=v.alternate.memoizedState.cachePool.pool),E=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(E=v.memoizedState.cachePool.pool),E!==g&&(v.flags|=2048)),o!==a&&o&&(i.child.flags|=8192),jh(i,i.updateQueue),yn(i),(i.mode&Ca)!==Nn&&o&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return ne(i),a===null&&V0(i.stateNode.containerInfo),yn(i),null;case 10:return Lu(i.type,i),yn(i),null;case 19:if(I(ea,i),g=i.memoizedState,g===null)return yn(i),null;if(v=(i.flags&128)!==0,E=g.rendering,E===null)if(v)Vo(g,!1);else{if(mr!==Pc||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(E=Iu(a),E!==null){for(i.flags|=128,Vo(g,!1),a=E.updateQueue,i.updateQueue=a,jh(i,a),i.subtreeFlags=0,a=o,o=i.child;o!==null;)Ub(o,a),o=o.sibling;return H(ea,ea.current&Zg|X1,i),i.child}a=a.sibling}g.tail!==null&&su()>uw&&(i.flags|=128,v=!0,Vo(g,!1),i.lanes=4194304)}else{if(!v)if(a=Iu(E),a!==null){if(i.flags|=128,v=!0,a=a.updateQueue,i.updateQueue=a,jh(i,a),Vo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!rn)return yn(i),null}else 2*su()-g.renderingStartTime>uw&&o!==536870912&&(i.flags|=128,v=!0,Vo(g,!1),i.lanes=4194304);g.isBackwards?(E.sibling=i.child,i.child=E):(a=g.last,a!==null?a.sibling=E:i.child=E,g.last=E)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=su(),a.sibling=null,o=ea.current,o=v?o&Zg|X1:o&Zg,H(ea,o,i),a):(yn(i),null);case 22:case 23:return si(i),yl(i),v=i.memoizedState!==null,a!==null?a.memoizedState!==null!==v&&(i.flags|=8192):v&&(i.flags|=8192),v?(o&536870912)!==0&&(i.flags&128)===0&&(yn(i),i.subtreeFlags&6&&(i.flags|=8192)):yn(i),o=i.updateQueue,o!==null&&jh(i,o.retryQueue),o=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),v=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(v=i.memoizedState.cachePool.pool),v!==o&&(i.flags|=2048),a!==null&&I(Sv,i),null;case 24:return o=null,a!==null&&(o=a.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Lu(Wr,i),yn(i),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function sC(a,i){switch(im(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Ca)!==Nn&&Ll(i),i):null;case 3:return Lu(Wr,i),ne(i),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return J(i),null;case 13:if(si(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Zs()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Ca)!==Nn&&Ll(i),i):null;case 19:return I(ea,i),null;case 4:return ne(i),null;case 10:return Lu(i.type,i),null;case 22:case 23:return si(i),yl(i),a!==null&&I(Sv,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&Ca)!==Nn&&Ll(i),i):null;case 24:return Lu(Wr,i),null;case 25:return null;default:return null}}function y0(a,i){switch(im(i),i.tag){case 3:Lu(Wr,i),ne(i);break;case 26:case 27:case 5:J(i);break;case 4:ne(i);break;case 13:si(i);break;case 19:I(ea,i);break;case 10:Lu(i.type,i);break;case 22:case 23:si(i),yl(i),a!==null&&I(Sv,i);break;case 24:Lu(Wr,i)}}function Sl(a){return(a.mode&Ca)!==Nn}function b0(a,i){Sl(a)?(ml(),lc(i,a),Ri()):lc(i,a)}function Fm(a,i,o){Sl(a)?(ml(),uc(o,a,i),Ri()):uc(o,a,i)}function lc(a,i){try{var o=i.updateQueue,v=o!==null?o.lastEffect:null;if(v!==null){var g=v.next;o=g;do{if((o.tag&a)===a&&((a&Jr)!==gu?Ke!==null&&typeof Ke.markComponentPassiveEffectMountStarted=="function"&&Ke.markComponentPassiveEffectMountStarted(i):(a&wa)!==gu&&Ke!==null&&typeof Ke.markComponentLayoutEffectMountStarted=="function"&&Ke.markComponentLayoutEffectMountStarted(i),v=void 0,(a&gi)!==gu&&(iy=!0),v=et(i,nfe,o),(a&gi)!==gu&&(iy=!1),(a&Jr)!==gu?Ke!==null&&typeof Ke.markComponentPassiveEffectMountStopped=="function"&&Ke.markComponentPassiveEffectMountStopped():(a&wa)!==gu&&Ke!==null&&typeof Ke.markComponentLayoutEffectMountStopped=="function"&&Ke.markComponentLayoutEffectMountStopped(),v!==void 0&&typeof v!="function")){var E=void 0;E=(o.tag&wa)!==0?"useLayoutEffect":(o.tag&gi)!==0?"useInsertionEffect":"useEffect";var T=void 0;T=v===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof v.then=="function"?`
182
+
183
+ It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
184
+
185
+ `+E+`(() => {
186
+ async function fetchData() {
187
+ // You can await here
188
+ const response = await MyAPI.getData(someId);
189
+ // ...
190
+ }
191
+ fetchData();
192
+ }, [someId]); // Or [] if effect doesn't need props or state
193
+
194
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+v,et(i,function(N,V){console.error("%s must not return anything besides a function, which is used for clean-up.%s",N,V)},E,T)}o=o.next}while(o!==g)}}catch(N){vt(i,i.return,N)}}function uc(a,i,o){try{var v=i.updateQueue,g=v!==null?v.lastEffect:null;if(g!==null){var E=g.next;v=E;do{if((v.tag&a)===a){var T=v.inst,N=T.destroy;N!==void 0&&(T.destroy=void 0,(a&Jr)!==gu?Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStarted=="function"&&Ke.markComponentPassiveEffectUnmountStarted(i):(a&wa)!==gu&&Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStarted=="function"&&Ke.markComponentLayoutEffectUnmountStarted(i),(a&gi)!==gu&&(iy=!0),g=i,et(g,rfe,g,o,N),(a&gi)!==gu&&(iy=!1),(a&Jr)!==gu?Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStopped=="function"&&Ke.markComponentPassiveEffectUnmountStopped():(a&wa)!==gu&&Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStopped=="function"&&Ke.markComponentLayoutEffectUnmountStopped())}v=v.next}while(v!==E)}}catch(V){vt(i,i.return,V)}}function E0(a,i){Sl(a)?(ml(),lc(i,a),Ri()):lc(i,a)}function Fh(a,i,o){Sl(a)?(ml(),uc(o,a,i),Ri()):uc(o,a,i)}function D0(a){var i=a.updateQueue;if(i!==null){var o=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||Wg||(o.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",$(a)||"instance"),o.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",$(a)||"instance"));try{et(a,rC,i,o)}catch(v){vt(a,a.return,v)}}}function cC(a,i,o){return a.getSnapshotBeforeUpdate(i,o)}function sR(a,i){var o=i.memoizedProps,v=i.memoizedState;i=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||Wg||(i.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",$(a)||"instance"),i.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",$(a)||"instance"));try{var g=$o(a.type,o,a.elementType===a.type),E=et(a,cC,i,g,v);o=pU,E!==void 0||o.has(a.type)||(o.add(a.type),et(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",$(a))})),i.__reactInternalSnapshotBeforeUpdate=E}catch(T){vt(a,a.return,T)}}function Lm(a,i,o){o.props=$o(a.type,a.memoizedProps),o.state=a.memoizedState,Sl(a)?(ml(),et(a,H9,a,i,o),Ri()):et(a,H9,a,i,o)}function fC(a){var i=a.ref;if(i!==null){switch(a.tag){case 26:case 27:case 5:var o=a.stateNode;break;case 30:o=a.stateNode;break;default:o=a.stateNode}if(typeof i=="function")if(Sl(a))try{ml(),a.refCleanup=i(o)}finally{Ri()}else a.refCleanup=i(o);else typeof i=="string"?console.error("String refs are no longer supported."):i.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",$(a)),i.current=o}}function Tf(a,i){try{et(a,fC,a)}catch(o){vt(a,i,o)}}function Li(a,i){var o=a.ref,v=a.refCleanup;if(o!==null)if(typeof v=="function")try{if(Sl(a))try{ml(),et(a,v)}finally{Ri(a)}else et(a,v)}catch(g){vt(a,i,g)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof o=="function")try{if(Sl(a))try{ml(),et(a,o,null)}finally{Ri(a)}else et(a,o,null)}catch(g){vt(a,i,g)}else o.current=null}function S0(a,i,o,v){var g=a.memoizedProps,E=g.id,T=g.onCommit;g=g.onRender,i=i===null?"mount":"update",XC&&(i="nested-update"),typeof g=="function"&&g(E,i,a.actualDuration,a.treeBaseDuration,a.actualStartTime,o),typeof T=="function"&&T(a.memoizedProps.id,i,v,o)}function dC(a,i,o,v){var g=a.memoizedProps;a=g.id,g=g.onPostCommit,i=i===null?"mount":"update",XC&&(i="nested-update"),typeof g=="function"&&g(a,i,v,o)}function hC(a){var i=a.type,o=a.memoizedProps,v=a.stateNode;try{et(a,Qu,v,i,o,a)}catch(g){vt(a,a.return,g)}}function C0(a,i,o){try{et(a,lr,a.stateNode,a.type,o,i,a)}catch(v){vt(a,a.return,v)}}function w0(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&iu(a.type)||a.tag===4}function oc(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||w0(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&iu(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Lh(a,i,o){var v=a.tag;if(v===5||v===6)a=a.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(a,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(a),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Zu));else if(v!==4&&(v===27&&iu(a.type)&&(o=a.stateNode,i=null),a=a.child,a!==null))for(Lh(a,i,o),a=a.sibling;a!==null;)Lh(a,i,o),a=a.sibling}function sc(a,i,o){var v=a.tag;if(v===5||v===6)a=a.stateNode,i?o.insertBefore(a,i):o.appendChild(a);else if(v!==4&&(v===27&&iu(a.type)&&(o=a.stateNode),a=a.child,a!==null))for(sc(a,i,o),a=a.sibling;a!==null;)sc(a,i,o),a=a.sibling}function vC(a){for(var i,o=a.return;o!==null;){if(w0(o)){i=o;break}o=o.return}if(i==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(i.tag){case 27:i=i.stateNode,o=oc(a),sc(a,o,i);break;case 5:o=i.stateNode,i.flags&32&&(Wu(o),i.flags&=-33),i=oc(a),sc(a,i,o);break;case 3:case 4:i=i.stateNode.containerInfo,o=oc(a),Lh(a,o,i);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function A0(a){var i=a.stateNode,o=a.memoizedProps;try{et(a,di,a.type,o,i,a)}catch(v){vt(a,a.return,v)}}function qm(a,i){if(a=a.containerInfo,hN=Cw,a=KS(a),jb(a)){if("selectionStart"in a)var o={start:a.selectionStart,end:a.selectionEnd};else e:{o=(o=a.ownerDocument)&&o.defaultView||window;var v=o.getSelection&&o.getSelection();if(v&&v.rangeCount!==0){o=v.anchorNode;var g=v.anchorOffset,E=v.focusNode;v=v.focusOffset;try{o.nodeType,E.nodeType}catch{o=null;break e}var T=0,N=-1,V=-1,X=0,Ee=0,Oe=a,ge=null;t:for(;;){for(var Te;Oe!==o||g!==0&&Oe.nodeType!==3||(N=T+g),Oe!==E||v!==0&&Oe.nodeType!==3||(V=T+v),Oe.nodeType===3&&(T+=Oe.nodeValue.length),(Te=Oe.firstChild)!==null;)ge=Oe,Oe=Te;for(;;){if(Oe===a)break t;if(ge===o&&++X===g&&(N=T),ge===E&&++Ee===v&&(V=T),(Te=Oe.nextSibling)!==null)break;Oe=ge,ge=Oe.parentNode}Oe=Te}o=N===-1||V===-1?null:{start:N,end:V}}else o=null}o=o||{start:0,end:0}}else o=null;for(vN={focusedElem:a,selectionRange:o},Cw=!1,ca=i;ca!==null;)if(i=ca,a=i.child,(i.subtreeFlags&1024)!==0&&a!==null)a.return=i,ca=a;else for(;ca!==null;){switch(a=i=ca,o=a.alternate,g=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:(g&1024)!==0&&o!==null&&sR(a,o);break;case 3:if((g&1024)!==0){if(a=a.stateNode.containerInfo,o=a.nodeType,o===9)Lf(a);else if(o===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Lf(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((g&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(a=i.sibling,a!==null){a.return=i.return,ca=a;break}ca=i.return}}function O0(a,i,o){var v=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(a,o),v&4&&b0(o,wa|yu);break;case 1:if(Zl(a,o),v&4)if(a=o.stateNode,i===null)o.type.defaultProps||"ref"in o.memoizedProps||Wg||(a.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",$(o)||"instance"),a.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",$(o)||"instance")),Sl(o)?(ml(),et(o,UR,o,a),Ri()):et(o,UR,o,a);else{var g=$o(o.type,i.memoizedProps);i=i.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||Wg||(a.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",$(o)||"instance"),a.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",$(o)||"instance")),Sl(o)?(ml(),et(o,L9,o,a,g,i,a.__reactInternalSnapshotBeforeUpdate),Ri()):et(o,L9,o,a,g,i,a.__reactInternalSnapshotBeforeUpdate)}v&64&&D0(o),v&512&&Tf(o,o.return);break;case 3:if(i=pl(),Zl(a,o),v&64&&(v=o.updateQueue,v!==null)){if(g=null,o.child!==null)switch(o.child.tag){case 27:case 5:g=o.child.stateNode;break;case 1:g=o.child.stateNode}try{et(o,rC,v,g)}catch(T){vt(o,o.return,T)}}a.effectDuration+=zo(i);break;case 27:i===null&&v&4&&A0(o);case 26:case 5:Zl(a,o),i===null&&v&4&&hC(o),v&512&&Tf(o,o.return);break;case 12:if(v&4){v=pl(),Zl(a,o),a=o.stateNode,a.effectDuration+=Ws(v);try{et(o,S0,o,i,KC,a.effectDuration)}catch(T){vt(o,o.return,T)}}else Zl(a,o);break;case 13:Zl(a,o),v&4&&Bf(a,o),v&64&&(a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(o=Yh.bind(null,o),qf(a,o))));break;case 22:if(v=o.memoizedState!==null||kc,!v){i=i!==null&&i.memoizedState!==null||Or,g=kc;var E=Or;kc=v,(Or=i)&&!E?Ql(a,o,(o.subtreeFlags&8772)!==0):Zl(a,o),kc=g,Or=E}break;case 30:break;default:Zl(a,o)}}function x0(a){var i=a.alternate;i!==null&&(a.alternate=null,x0(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Nr(i)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Yu(a,i,o){for(o=o.child;o!==null;)cc(a,i,o),o=o.sibling}function cc(a,i,o){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(rs,o)}catch(E){Ia||(Ia=!0,console.error("React instrumentation encountered an error: %s",E))}switch(o.tag){case 26:Or||Li(o,i),Yu(a,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Or||Li(o,i);var v=Ur,g=Yi;iu(o.type)&&(Ur=o.stateNode,Yi=!1),Yu(a,i,o),et(o,Hf,o.stateNode),Ur=v,Yi=g;break;case 5:Or||Li(o,i);case 6:if(v=Ur,g=Yi,Ur=null,Yu(a,i,o),Ur=v,Yi=g,Ur!==null)if(Yi)try{et(o,jf,Ur,o.stateNode)}catch(E){vt(o,i,E)}else try{et(o,Hi,Ur,o.stateNode)}catch(E){vt(o,i,E)}break;case 18:Ur!==null&&(Yi?(a=Ur,Ff(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,o.stateNode),Cc(a)):Ff(Ur,o.stateNode));break;case 4:v=Ur,g=Yi,Ur=o.stateNode.containerInfo,Yi=!0,Yu(a,i,o),Ur=v,Yi=g;break;case 0:case 11:case 14:case 15:Or||uc(gi,o,i),Or||Fm(o,i,wa),Yu(a,i,o);break;case 1:Or||(Li(o,i),v=o.stateNode,typeof v.componentWillUnmount=="function"&&Lm(o,i,v)),Yu(a,i,o);break;case 21:Yu(a,i,o);break;case 22:Or=(v=Or)||o.memoizedState!==null,Yu(a,i,o),Or=v;break;default:Yu(a,i,o)}}function Bf(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{et(i,fi,a)}catch(o){vt(i,i.return,o)}}function Um(a){switch(a.tag){case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new mU),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new mU),i;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function fc(a,i){var o=Um(a);i.forEach(function(v){var g=Ko.bind(null,a,v);if(!o.has(v)){if(o.add(v),or)if(Jg!==null&&ey!==null)kf(ey,Jg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");v.then(g,g)}})}function ia(a,i){var o=i.deletions;if(o!==null)for(var v=0;v<o.length;v++){var g=a,E=i,T=o[v],N=E;e:for(;N!==null;){switch(N.tag){case 27:if(iu(N.type)){Ur=N.stateNode,Yi=!1;break e}break;case 5:Ur=N.stateNode,Yi=!1;break e;case 3:case 4:Ur=N.stateNode.containerInfo,Yi=!0;break e}N=N.return}if(Ur===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");cc(g,E,T),Ur=null,Yi=!1,g=T,E=g.alternate,E!==null&&(E.return=null),g.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)T0(i,a),i=i.sibling}function T0(a,i){var o=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ia(i,a),Ua(a),v&4&&(uc(gi|yu,a,a.return),lc(gi|yu,a),Fm(a,a.return,wa|yu));break;case 1:ia(i,a),Ua(a),v&512&&(Or||o===null||Li(o,o.return)),v&64&&kc&&(a=a.updateQueue,a!==null&&(v=a.callbacks,v!==null&&(o=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=o===null?v:o.concat(v))));break;case 26:var g=co;if(ia(i,a),Ua(a),v&512&&(Or||o===null||Li(o,o.return)),v&4)if(i=o!==null?o.memoizedState:null,v=a.memoizedState,o===null)if(v===null)if(a.stateNode===null){e:{v=a.type,o=a.memoizedProps,i=g.ownerDocument||g;t:switch(v){case"title":g=i.getElementsByTagName("title")[0],(!g||g[Jf]||g[oa]||g.namespaceURI===rd||g.hasAttribute("itemprop"))&&(g=i.createElement(v),i.head.insertBefore(g,i.querySelector("head > title"))),ir(g,v,o),g[oa]=a,Mr(g),v=g;break e;case"link":var E=l1("link","href",i).get(v+(o.href||""));if(E){for(var T=0;T<E.length;T++)if(g=E[T],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){E.splice(T,1);break t}}g=i.createElement(v),ir(g,v,o),i.head.appendChild(g);break;case"meta":if(E=l1("meta","content",i).get(v+(o.content||""))){for(T=0;T<E.length;T++)if(g=E[T],Re(o.content,"content"),g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){E.splice(T,1);break t}}g=i.createElement(v),ir(g,v,o),i.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+v+'". This is a bug in React.')}g[oa]=a,Mr(g),v=g}a.stateNode=v}else u1(g,a.type,a.stateNode);else a.stateNode=cg(g,v,a.memoizedProps);else i!==v?(i===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):i.count--,v===null?u1(g,a.type,a.stateNode):cg(g,v,a.memoizedProps)):v===null&&a.stateNode!==null&&C0(a,a.memoizedProps,o.memoizedProps);break;case 27:ia(i,a),Ua(a),v&512&&(Or||o===null||Li(o,o.return)),o!==null&&v&4&&C0(a,a.memoizedProps,o.memoizedProps);break;case 5:if(ia(i,a),Ua(a),v&512&&(Or||o===null||Li(o,o.return)),a.flags&32){i=a.stateNode;try{et(a,Wu,i)}catch(Ee){vt(a,a.return,Ee)}}v&4&&a.stateNode!=null&&(i=a.memoizedProps,C0(a,i,o!==null?o.memoizedProps:i)),v&1024&&(KR=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ia(i,a),Ua(a),v&4){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");v=a.memoizedProps,o=o!==null?o.memoizedProps:v,i=a.stateNode;try{et(a,bc,i,o,v)}catch(Ee){vt(a,a.return,Ee)}}break;case 3:if(g=pl(),Ew=null,E=co,co=Xh(i.containerInfo),ia(i,a),co=E,Ua(a),v&4&&o!==null&&o.memoizedState.isDehydrated)try{et(a,t1,i.containerInfo)}catch(Ee){vt(a,a.return,Ee)}KR&&(KR=!1,dc(a)),i.effectDuration+=zo(g);break;case 4:v=co,co=Xh(a.stateNode.containerInfo),ia(i,a),Ua(a),co=v;break;case 12:v=pl(),ia(i,a),Ua(a),a.stateNode.effectDuration+=Ws(v);break;case 13:ia(i,a),Ua(a),a.child.flags&8192&&a.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(eN=su()),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,fc(a,v)));break;case 22:g=a.memoizedState!==null;var N=o!==null&&o.memoizedState!==null,V=kc,X=Or;if(kc=V||g,Or=X||N,ia(i,a),Or=X,kc=V,Ua(a),v&8192)e:for(i=a.stateNode,i._visibility=g?i._visibility&~VC:i._visibility|VC,g&&(o===null||N||kc||Or||la(a)),o=null,i=a;;){if(i.tag===5||i.tag===26){if(o===null){N=o=i;try{E=N.stateNode,g?et(N,Va,E):et(N,J0,N.stateNode,N.memoizedProps)}catch(Ee){vt(N,N.return,Ee)}}}else if(i.tag===6){if(o===null){N=i;try{T=N.stateNode,g?et(N,W0,T):et(N,ug,T,N.memoizedProps)}catch(Ee){vt(N,N.return,Ee)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}v&4&&(v=a.updateQueue,v!==null&&(o=v.retryQueue,o!==null&&(v.retryQueue=null,fc(a,o))));break;case 19:ia(i,a),Ua(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,fc(a,v)));break;case 30:break;case 21:break;default:ia(i,a),Ua(a)}}function Ua(a){var i=a.flags;if(i&2){try{et(a,vC,a)}catch(o){vt(a,a.return,o)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function dc(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;dc(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Zl(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)O0(a,i.alternate,i),i=i.sibling}function ci(a){switch(a.tag){case 0:case 11:case 14:case 15:Fm(a,a.return,wa),la(a);break;case 1:Li(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Lm(a,a.return,i),la(a);break;case 27:et(a,Hf,a.stateNode);case 26:case 5:Li(a,a.return),la(a);break;case 22:a.memoizedState===null&&la(a);break;case 30:la(a);break;default:la(a)}}function la(a){for(a=a.child;a!==null;)ci(a),a=a.sibling}function Ku(a,i,o,v){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Ql(a,o,v),b0(o,wa);break;case 1:if(Ql(a,o,v),i=o.stateNode,typeof i.componentDidMount=="function"&&et(o,UR,o,i),i=o.updateQueue,i!==null){a=o.stateNode;try{et(o,pf,i,a)}catch(E){vt(o,o.return,E)}}v&&g&64&&D0(o),Tf(o,o.return);break;case 27:A0(o);case 26:case 5:Ql(a,o,v),v&&i===null&&g&4&&hC(o),Tf(o,o.return);break;case 12:if(v&&g&4){g=pl(),Ql(a,o,v),v=o.stateNode,v.effectDuration+=Ws(g);try{et(o,S0,o,i,KC,v.effectDuration)}catch(E){vt(o,o.return,E)}}else Ql(a,o,v);break;case 13:Ql(a,o,v),v&&g&4&&Bf(a,o);break;case 22:o.memoizedState===null&&Ql(a,o,v),Tf(o,o.return);break;case 30:break;default:Ql(a,o,v)}}function Ql(a,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)Ku(a,i.alternate,i,o),i=i.sibling}function Wl(a,i){var o=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==o&&(a!=null&&Qs(a),o!=null&&Fl(o))}function Cl(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Qs(i),a!=null&&Fl(a))}function bn(a,i,o,v){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)qh(a,i,o,v),i=i.sibling}function qh(a,i,o,v){var g=i.flags;switch(i.tag){case 0:case 11:case 15:bn(a,i,o,v),g&2048&&E0(i,Jr|yu);break;case 1:bn(a,i,o,v);break;case 3:var E=pl();bn(a,i,o,v),g&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(Qs(i),o!=null&&Fl(o))),a.passiveEffectDuration+=zo(E);break;case 12:if(g&2048){g=pl(),bn(a,i,o,v),a=i.stateNode,a.passiveEffectDuration+=Ws(g);try{et(i,dC,i,i.alternate,KC,a.passiveEffectDuration)}catch(N){vt(i,i.return,N)}}else bn(a,i,o,v);break;case 13:bn(a,i,o,v);break;case 23:break;case 22:E=i.stateNode;var T=i.alternate;i.memoizedState!==null?E._visibility&Bc?bn(a,i,o,v):_f(a,i):E._visibility&Bc?bn(a,i,o,v):(E._visibility|=Bc,Go(a,i,o,v,(i.subtreeFlags&10256)!==0)),g&2048&&Wl(T,i);break;case 24:bn(a,i,o,v),g&2048&&Cl(i.alternate,i);break;default:bn(a,i,o,v)}}function Go(a,i,o,v,g){for(g=g&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;)Hm(a,i,o,v,g),i=i.sibling}function Hm(a,i,o,v,g){var E=i.flags;switch(i.tag){case 0:case 11:case 15:Go(a,i,o,v,g),E0(i,Jr);break;case 23:break;case 22:var T=i.stateNode;i.memoizedState!==null?T._visibility&Bc?Go(a,i,o,v,g):_f(a,i):(T._visibility|=Bc,Go(a,i,o,v,g)),g&&E&2048&&Wl(i.alternate,i);break;case 24:Go(a,i,o,v,g),g&&E&2048&&Cl(i.alternate,i);break;default:Go(a,i,o,v,g)}}function _f(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=a,v=i,g=v.flags;switch(v.tag){case 22:_f(o,v),g&2048&&Wl(v.alternate,v);break;case 24:_f(o,v),g&2048&&Cl(v.alternate,v);break;default:_f(o,v)}i=i.sibling}}function hc(a){if(a.subtreeFlags&Z1)for(a=a.child;a!==null;)Io(a),a=a.sibling}function Io(a){switch(a.tag){case 26:hc(a),a.flags&Z1&&a.memoizedState!==null&&AC(co,a.memoizedState,a.memoizedProps);break;case 5:hc(a);break;case 3:case 4:var i=co;co=Xh(a.stateNode.containerInfo),hc(a),co=i;break;case 22:a.memoizedState===null&&(i=a.alternate,i!==null&&i.memoizedState!==null?(i=Z1,Z1=16777216,hc(a),Z1=i):hc(a));break;default:hc(a)}}function Uh(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function Rf(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var v=i[o];ca=v,_0(v,a)}Uh(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)B0(a),a=a.sibling}function B0(a){switch(a.tag){case 0:case 11:case 15:Rf(a),a.flags&2048&&Fh(a,a.return,Jr|yu);break;case 3:var i=pl();Rf(a),a.stateNode.passiveEffectDuration+=zo(i);break;case 12:i=pl(),Rf(a),a.stateNode.passiveEffectDuration+=Ws(i);break;case 22:i=a.stateNode,a.memoizedState!==null&&i._visibility&Bc&&(a.return===null||a.return.tag!==13)?(i._visibility&=~Bc,Hh(a)):Rf(a);break;default:Rf(a)}}function Hh(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var v=i[o];ca=v,_0(v,a)}Uh(a)}for(a=a.child;a!==null;)$h(a),a=a.sibling}function $h(a){switch(a.tag){case 0:case 11:case 15:Fh(a,a.return,Jr),Hh(a);break;case 22:var i=a.stateNode;i._visibility&Bc&&(i._visibility&=~Bc,Hh(a));break;default:Hh(a)}}function _0(a,i){for(;ca!==null;){var o=ca,v=o;switch(v.tag){case 0:case 11:case 15:Fh(v,i,Jr);break;case 23:case 22:v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(v=v.memoizedState.cachePool.pool,v!=null&&Qs(v));break;case 24:Fl(v.memoizedState.cache)}if(v=o.child,v!==null)v.return=o,ca=v;else e:for(o=a;ca!==null;){v=ca;var g=v.sibling,E=v.return;if(x0(v),v===o){ca=null;break e}if(g!==null){g.return=E,ca=g;break e}ca=E}}}function R0(){ife.forEach(function(a){return a()})}function N0(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||Ce.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function Ha(a){if((mn&yi)!==xl&&jt!==0)return jt&-jt;var i=Ce.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),a=Dv,a!==0?a:U0()):Ns()}function pC(){Bl===0&&(Bl=(jt&536870912)===0||rn?Bn():536870912);var a=Eu.current;return a!==null&&(a.flags|=32),Bl}function rr(a,i,o){if(iy&&console.error("useInsertionEffect must not schedule updates."),iN&&(ow=!0),(a===xn&&(En===Ov||En===xv)||a.cancelPendingCommit!==null)&&(pc(a,0),Xu(a,jt,Bl,!1)),Jt(a,o),(mn&yi)!==0&&a===xn){if(Ka)switch(i.tag){case 0:case 11:case 15:a=Pt&&$(Pt)||"Unknown",OU.has(a)||(OU.add(a),i=$(i)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",i,a,a));break;case 1:AU||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),AU=!0)}}else or&&Lt(a,i,o),bC(i),a===xn&&((mn&yi)===xl&&(cd|=o),mr===Av&&Xu(a,jt,Bl,!1)),qi(a)}function wr(a,i,o){if((mn&(yi|fo))!==xl)throw Error("Should not already be working.");var v=!o&&(i&124)===0&&(i&a.expiredLanes)===0||an(a,i),g=v?z0(a,i):Im(a,i,!0),E=v;do{if(g===Pc){ry&&!v&&Xu(a,i,0,!1);break}else{if(o=a.current.alternate,E&&!mC(o)){g=Im(a,i,!1),E=!1;continue}if(g===ty){if(E=i,a.errorRecoveryDisabledLanes&E)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{g=a;var N=T;T=nE;var V=g.current.memoizedState.isDehydrated;if(V&&(pc(g,N).flags|=256),N=Im(g,N,!1),N!==ty){if(WR&&!V){g.errorRecoveryDisabledLanes|=E,cd|=E,g=Av;break e}g=bi,bi=T,g!==null&&(bi===null?bi=g:bi.push.apply(bi,g))}g=N}if(E=!1,g!==ty)continue}}if(g===W1){pc(a,0),Xu(a,i,0,!0);break}e:{switch(v=a,g){case Pc:case W1:throw Error("Root did not complete. This is a bug in React.");case Av:if((i&4194048)!==i)break;case iw:Xu(v,i,Bl,!od);break e;case ty:bi=null;break;case XR:case gU:break;default:throw Error("Unknown root exit status.")}if(Ce.actQueue!==null)Qm(v,o,i,bi,rE,lw,Bl,cd,Tv);else{if((i&62914560)===i&&(E=eN+bU-su(),10<E)){if(Xu(v,i,Bl,!od),Ie(v,0,!0)!==0)break e;v.timeoutHandle=zU(jr.bind(null,v,o,bi,rE,lw,i,Bl,cd,Tv,od,g,sfe,D9,0),E);break e}jr(v,o,bi,rE,lw,i,Bl,cd,Tv,od,g,ufe,D9,0)}}}break}while(!0);qi(a)}function jr(a,i,o,v,g,E,T,N,V,X,Ee,Oe,ge,Te){if(a.timeoutHandle=Mv,Oe=i.subtreeFlags,(Oe&8192||(Oe&16785408)===16785408)&&(sE={stylesheets:null,count:0,unsuspend:wC},Io(i),Oe=OC(),Oe!==null)){a.cancelPendingCommit=Oe(Qm.bind(null,a,i,E,o,v,g,T,N,V,Ee,ofe,ge,Te)),Xu(a,E,T,!X);return}Qm(a,i,E,o,v,g,T,N,V)}function mC(a){for(var i=a;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var v=0;v<o.length;v++){var g=o[v],E=g.getSnapshot;g=g.value;try{if(!pi(E(),g))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Xu(a,i,o,v){i&=~JR,i&=~cd,a.suspendedLanes|=i,a.pingedLanes&=~i,v&&(a.warmLanes|=i),v=a.expirationTimes;for(var g=i;0<g;){var E=31-ua(g),T=1<<E;v[E]=-1,g&=~T}o!==0&&er(a,o,i)}function vc(){return(mn&(yi|fo))===xl?(mc(0),!1):!0}function $m(){if(Pt!==null){if(En===Ki)var a=Pt.return;else a=Pt,lm(),bl(a),Kg=null,K1=0,a=Pt;for(;a!==null;)y0(a.alternate,a),a=a.return;Pt=null}}function pc(a,i){var o=a.timeoutHandle;o!==Mv&&(a.timeoutHandle=Mv,Sfe(o)),o=a.cancelPendingCommit,o!==null&&(a.cancelPendingCommit=null,o()),$m(),xn=a,Pt=o=Pl(a.current,null),jt=i,En=Ki,Tl=null,od=!1,ry=an(a,i),WR=!1,mr=Pc,Tv=Bl=JR=cd=sd=0,bi=nE=null,lw=!1,(i&8)!==0&&(i|=i&32);var v=a.entangledLanes;if(v!==0)for(a=a.entanglements,v&=i;0<v;){var g=31-ua(v),E=1<<g;i|=a[g],v&=~E}return ds=i,ch(),i=b9(),1e3<i-y9&&(Ce.recentlyCreatedOwnerStacks=0,y9=i),oo.discardPendingWarnings(),o}function Vh(a,i){Et=null,Ce.H=rw,Ce.getCurrentStack=null,Ka=!1,vi=null,i===V1||i===WC?(i=t0(),En=eE):i===w9?(i=t0(),En=yU):En=i===oU?QR:i!==null&&typeof i=="object"&&typeof i.then=="function"?ny:J1,Tl=i;var o=Pt;if(o===null)mr=W1,xf(a,li(i,a.current));else switch(o.mode&Ca&&qu(o),le(),En){case J1:Ke!==null&&typeof Ke.markComponentErrored=="function"&&Ke.markComponentErrored(o,i,jt);break;case Ov:case xv:case eE:case ny:case tE:Ke!==null&&typeof Ke.markComponentSuspended=="function"&&Ke.markComponentSuspended(o,i,jt)}}function Vm(){var a=Ce.H;return Ce.H=rw,a===null?rw:a}function M0(){var a=Ce.A;return Ce.A=afe,a}function Gm(){mr=Av,od||(jt&4194048)!==jt&&Eu.current!==null||(ry=!0),(sd&134217727)===0&&(cd&134217727)===0||xn===null||Xu(xn,jt,Bl,!1)}function Im(a,i,o){var v=mn;mn|=yi;var g=Vm(),E=M0();if(xn!==a||jt!==i){if(or){var T=a.memoizedUpdaters;0<T.size&&(kf(a,jt),T.clear()),Mt(a,i)}rE=null,pc(a,i)}ue(i),i=!1,T=mr;e:do try{if(En!==Ki&&Pt!==null){var N=Pt,V=Tl;switch(En){case QR:$m(),T=iw;break e;case eE:case Ov:case xv:case ny:Eu.current===null&&(i=!0);var X=En;if(En=Ki,Tl=null,Yo(a,N,V,X),o&&ry){T=Pc;break e}break;default:X=En,En=Ki,Tl=null,Yo(a,N,V,X)}}Ym(),T=mr;break}catch(Ee){Vh(a,Ee)}while(!0);return i&&a.shellSuspendCounter++,lm(),mn=v,Ce.H=g,Ce.A=E,fe(),Pt===null&&(xn=null,jt=0,ch()),T}function Ym(){for(;Pt!==null;)P0(Pt)}function z0(a,i){var o=mn;mn|=yi;var v=Vm(),g=M0();if(xn!==a||jt!==i){if(or){var E=a.memoizedUpdaters;0<E.size&&(kf(a,jt),E.clear()),Mt(a,i)}rE=null,uw=su()+EU,pc(a,i)}else ry=an(a,i);ue(i);e:do try{if(En!==Ki&&Pt!==null)t:switch(i=Pt,E=Tl,En){case J1:En=Ki,Tl=null,Yo(a,i,E,J1);break;case Ov:case xv:if(e0(E)){En=Ki,Tl=null,Km(i);break}i=function(){En!==Ov&&En!==xv||xn!==a||(En=tE),qi(a)},E.then(i,i);break e;case eE:En=tE;break e;case yU:En=ZR;break e;case tE:e0(E)?(En=Ki,Tl=null,Km(i)):(En=Ki,Tl=null,Yo(a,i,E,tE));break;case ZR:var T=null;switch(Pt.tag){case 26:T=Pt.memoizedState;case 5:case 27:var N=Pt;if(!T||Zh(T)){En=Ki,Tl=null;var V=N.sibling;if(V!==null)Pt=V;else{var X=N.return;X!==null?(Pt=X,Gh(X)):Pt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}En=Ki,Tl=null,Yo(a,i,E,ZR);break;case ny:En=Ki,Tl=null,Yo(a,i,E,ny);break;case QR:$m(),mr=iw;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ce.actQueue!==null?Ym():k0();break}catch(Ee){Vh(a,Ee)}while(!0);return lm(),Ce.H=v,Ce.A=g,mn=o,Pt!==null?(Ke!==null&&typeof Ke.markRenderYielded=="function"&&Ke.markRenderYielded(),Pc):(fe(),xn=null,jt=0,ch(),mr)}function k0(){for(;Pt!==null&&!MC();)P0(Pt)}function P0(a){var i=a.alternate;(a.mode&Ca)!==Nn?(um(a),i=et(a,jm,i,a,ds),qu(a)):i=et(a,jm,i,a,ds),a.memoizedProps=a.pendingProps,i===null?Gh(a):Pt=i}function Km(a){var i=et(a,Xm,a);a.memoizedProps=a.pendingProps,i===null?Gh(a):Pt=i}function Xm(a){var i=a.alternate,o=(a.mode&Ca)!==Nn;switch(o&&um(a),a.tag){case 15:case 0:i=h0(i,a,a.pendingProps,a.type,void 0,jt);break;case 11:i=h0(i,a,a.pendingProps,a.type.render,a.ref,jt);break;case 5:bl(a);default:y0(i,a),a=Pt=Ub(a,ds),i=jm(i,a,ds)}return o&&qu(a),i}function Yo(a,i,o,v){lm(),bl(i),Kg=null,K1=0;var g=i.return;try{if(Rh(a,g,i,o,jt)){mr=W1,xf(a,li(o,a.current)),Pt=null;return}}catch(E){if(g!==null)throw Pt=g,E;mr=W1,xf(a,li(o,a.current)),Pt=null;return}i.flags&32768?(rn||v===J1?a=!0:ry||(jt&536870912)!==0?a=!1:(od=a=!0,(v===Ov||v===xv||v===eE||v===ny)&&(v=Eu.current,v!==null&&v.tag===13&&(v.flags|=16384))),Zm(i,a)):Gh(i)}function Gh(a){var i=a;do{if((i.flags&32768)!==0){Zm(i,od);return}var o=i.alternate;if(a=i.return,um(i),o=et(i,oC,o,i,ds),(i.mode&Ca)!==Nn&&Js(i),o!==null){Pt=o;return}if(i=i.sibling,i!==null){Pt=i;return}Pt=i=a}while(i!==null);mr===Pc&&(mr=gU)}function Zm(a,i){do{var o=sC(a.alternate,a);if(o!==null){o.flags&=32767,Pt=o;return}if((a.mode&Ca)!==Nn){Js(a),o=a.actualDuration;for(var v=a.child;v!==null;)o+=v.actualDuration,v=v.sibling;a.actualDuration=o}if(o=a.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(a=a.sibling,a!==null)){Pt=a;return}Pt=a=o}while(a!==null);mr=iw,Pt=null}function Qm(a,i,o,v,g,E,T,N,V){a.cancelPendingCommit=null;do Nf();while(Aa!==Bv);if(oo.flushLegacyContextWarning(),oo.flushPendingUnsafeLifecycleWarnings(),(mn&(yi|fo))!==xl)throw Error("Should not already be working.");if(Ke!==null&&typeof Ke.markCommitStarted=="function"&&Ke.markCommitStarted(o),i===null)ft();else{if(o===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(E=i.lanes|i.childLanes,E|=TR,ri(a,o,E,T,N,V),a===xn&&(Pt=xn=null,jt=0),ay=i,dd=a,hd=o,nN=E,rN=g,wU=v,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,q0(Zf,function(){return Ih(),null})):(a.callbackNode=null,a.callbackPriority=0),KC=$g(),v=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||v){v=Ce.T,Ce.T=null,g=mt.p,mt.p=Qr,T=mn,mn|=fo;try{qm(a,i,o)}finally{mn=T,mt.p=g,Ce.T=v}}Aa=DU,Jl(),Wm(),gC()}}function Jl(){if(Aa===DU){Aa=Bv;var a=dd,i=ay,o=hd,v=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||v){v=Ce.T,Ce.T=null;var g=mt.p;mt.p=Qr;var E=mn;mn|=fo;try{Jg=o,ey=a,T0(i,a),ey=Jg=null,o=vN;var T=KS(a.containerInfo),N=o.focusedElem,V=o.selectionRange;if(T!==N&&N&&N.ownerDocument&&YS(N.ownerDocument.documentElement,N)){if(V!==null&&jb(N)){var X=V.start,Ee=V.end;if(Ee===void 0&&(Ee=X),"selectionStart"in N)N.selectionStart=X,N.selectionEnd=Math.min(Ee,N.value.length);else{var Oe=N.ownerDocument||document,ge=Oe&&Oe.defaultView||window;if(ge.getSelection){var Te=ge.getSelection(),tt=N.textContent.length,gt=Math.min(V.start,tt),Tn=V.end===void 0?gt:Math.min(V.end,tt);!Te.extend&&gt>Tn&&(T=Tn,Tn=gt,gt=T);var Ut=Pb(N,gt),te=Pb(N,Tn);if(Ut&&te&&(Te.rangeCount!==1||Te.anchorNode!==Ut.node||Te.anchorOffset!==Ut.offset||Te.focusNode!==te.node||Te.focusOffset!==te.offset)){var re=Oe.createRange();re.setStart(Ut.node,Ut.offset),Te.removeAllRanges(),gt>Tn?(Te.addRange(re),Te.extend(te.node,te.offset)):(re.setEnd(te.node,te.offset),Te.addRange(re))}}}}for(Oe=[],Te=N;Te=Te.parentNode;)Te.nodeType===1&&Oe.push({element:Te,left:Te.scrollLeft,top:Te.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<Oe.length;N++){var oe=Oe[N];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Cw=!!hN,vN=hN=null}finally{mn=E,mt.p=g,Ce.T=v}}a.current=i,Aa=SU}}function Wm(){if(Aa===SU){Aa=Bv;var a=dd,i=ay,o=hd,v=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||v){v=Ce.T,Ce.T=null;var g=mt.p;mt.p=Qr;var E=mn;mn|=fo;try{Ke!==null&&typeof Ke.markLayoutEffectsStarted=="function"&&Ke.markLayoutEffectsStarted(o),Jg=o,ey=a,O0(a,i.alternate,i),ey=Jg=null,Ke!==null&&typeof Ke.markLayoutEffectsStopped=="function"&&Ke.markLayoutEffectsStopped()}finally{mn=E,mt.p=g,Ce.T=v}}Aa=CU}}function gC(){if(Aa===cfe||Aa===CU){Aa=Bv,gR();var a=dd,i=ay,o=hd,v=wU,g=(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;g?Aa=tN:(Aa=Bv,ay=dd=null,eu(a,a.pendingLanes),_v=0,iE=null);var E=a.pendingLanes;if(E===0&&(fd=null),g||zf(a),g=Ti(o),i=i.stateNode,Zr&&typeof Zr.onCommitFiberRoot=="function")try{var T=(i.current.flags&128)===128;switch(g){case Qr:var N=Dg;break;case Ol:N=ov;break;case ao:N=Zf;break;case Ag:N=sv;break;default:N=Zf}Zr.onCommitFiberRoot(rs,i,N,T)}catch(Oe){Ia||(Ia=!0,console.error("React instrumentation encountered an error: %s",Oe))}if(or&&a.memoizedUpdaters.clear(),R0(),v!==null){T=Ce.T,N=mt.p,mt.p=Qr,Ce.T=null;try{var V=a.onRecoverableError;for(i=0;i<v.length;i++){var X=v[i],Ee=yC(X.stack);et(X.source,V,X.value,Ee)}}finally{Ce.T=T,mt.p=N}}(hd&3)!==0&&Nf(),qi(a),E=a.pendingLanes,(o&4194090)!==0&&(E&42)!==0?(ZC=!0,a===aN?aE++:(aE=0,aN=a)):aE=0,mc(0),ft()}}function yC(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function eu(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Fl(i)))}function Nf(a){return Jl(),Wm(),gC(),Ih()}function Ih(){if(Aa!==tN)return!1;var a=dd,i=nN;nN=0;var o=Ti(hd),v=ao>o?ao:o;o=Ce.T;var g=mt.p;try{mt.p=v,Ce.T=null,v=rN,rN=null;var E=dd,T=hd;if(Aa=Bv,ay=dd=null,hd=0,(mn&(yi|fo))!==xl)throw Error("Cannot flush passive effects while already rendering.");iN=!0,ow=!1,Ke!==null&&typeof Ke.markPassiveEffectsStarted=="function"&&Ke.markPassiveEffectsStarted(T);var N=mn;if(mn|=fo,B0(E.current),qh(E,E.current,T,v),Ke!==null&&typeof Ke.markPassiveEffectsStopped=="function"&&Ke.markPassiveEffectsStopped(),zf(E),mn=N,mc(0,!1),ow?E===iE?_v++:(_v=0,iE=E):_v=0,ow=iN=!1,Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(rs,E)}catch(X){Ia||(Ia=!0,console.error("React instrumentation encountered an error: %s",X))}var V=E.current.stateNode;return V.effectDuration=0,V.passiveEffectDuration=0,!0}finally{mt.p=g,Ce.T=o,eu(a,i)}}function Mf(a,i,o){i=li(o,i),i=aa(a.stateNode,i,2),a=gl(a,i,2),a!==null&&(Jt(a,2),qi(a))}function vt(a,i,o){if(iy=!1,a.tag===3)Mf(a,a,o);else{for(;i!==null;){if(i.tag===3){Mf(i,a,o);return}if(i.tag===1){var v=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(fd===null||!fd.has(v))){a=li(o,a),o=nr(2),v=gl(i,o,2),v!==null&&(_h(o,v,i,a),Jt(v,2),qi(v));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
195
+
196
+ Error message:
197
+
198
+ %s`,o)}}function j0(a,i,o){var v=a.pingCache;if(v===null){v=a.pingCache=new lfe;var g=new Set;v.set(i,g)}else g=v.get(i),g===void 0&&(g=new Set,v.set(i,g));g.has(o)||(WR=!0,g.add(o),v=cR.bind(null,a,i,o),or&&kf(a,o),i.then(v,v))}function cR(a,i,o){var v=a.pingCache;v!==null&&v.delete(i),a.pingedLanes|=a.suspendedLanes&o,a.warmLanes&=~o,N0()&&Ce.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
199
+
200
+ When testing, code that resolves suspended data should be wrapped into act(...):
201
+
202
+ act(() => {
203
+ /* finish loading suspended data */
204
+ });
205
+ /* assert on the output */
206
+
207
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),xn===a&&(jt&o)===o&&(mr===Av||mr===XR&&(jt&62914560)===jt&&su()-eN<bU?(mn&yi)===xl&&pc(a,0):JR|=o,Tv===jt&&(Tv=0)),qi(a)}function F0(a,i){i===0&&(i=Vt()),a=ka(a,i),a!==null&&(Jt(a,i),qi(a))}function Yh(a){var i=a.memoizedState,o=0;i!==null&&(o=i.retryLane),F0(a,o)}function Ko(a,i){var o=0;switch(a.tag){case 13:var v=a.stateNode,g=a.memoizedState;g!==null&&(o=g.retryLane);break;case 19:v=a.stateNode;break;case 22:v=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}v!==null&&v.delete(i),F0(a,o)}function Jm(a,i,o){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var v=a,g=i,E=g.type===Gf;E=o||E,g.tag!==22?g.flags&67108864?E&&et(g,L0,v,g,(g.mode&p9)===Nn):Jm(v,g,E):g.memoizedState===null&&(E&&g.flags&8192?et(g,L0,v,g):g.subtreeFlags&67108864&&et(g,Jm,v,g,E)),i=i.sibling}}function L0(a,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Ye(!0);try{ci(i),o&&$h(i),Ku(a,i.alternate,i,!1),o&&Hm(a,i,0,null,!1,0)}finally{Ye(!1)}}function zf(a){var i=!0;a.current.mode&(Xa|uo)||(i=!1),Jm(a,a.current,i)}function wl(a){if((mn&yi)===xl){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=$(a)||"ReactComponent",sw!==null){if(sw.has(i))return;sw.add(i)}else sw=new Set([i]);et(a,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function kf(a,i){or&&a.memoizedUpdaters.forEach(function(o){Lt(a,o,i)})}function q0(a,i){var o=Ce.actQueue;return o!==null?(o.push(i),hfe):Eg(a,i)}function bC(a){N0()&&Ce.actQueue===null&&et(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
208
+
209
+ When testing, code that causes React state updates should be wrapped into act(...):
210
+
211
+ act(() => {
212
+ /* fire events that update state */
213
+ });
214
+ /* assert on the output */
215
+
216
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,$(a))})}function qi(a){a!==ly&&a.next===null&&(ly===null?cw=ly=a:ly=ly.next=a),fw=!0,Ce.actQueue!==null?uN||(uN=!0,Ar()):lN||(lN=!0,Ar())}function mc(a,i){if(!oN&&fw){oN=!0;do for(var o=!1,v=cw;v!==null;){if(a!==0){var g=v.pendingLanes;if(g===0)var E=0;else{var T=v.suspendedLanes,N=v.pingedLanes;E=(1<<31-ua(42|a)+1)-1,E&=g&~(T&~N),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(o=!0,ng(v,E))}else E=jt,E=Ie(v,v===xn?E:0,v.cancelPendingCommit!==null||v.timeoutHandle!==Mv),(E&3)===0||an(v,E)||(o=!0,ng(v,E));v=v.next}while(o);oN=!1}}function eg(){tg()}function tg(){fw=uN=lN=!1;var a=0;Rv!==0&&(Pf()&&(a=Rv),Rv=0);for(var i=su(),o=null,v=cw;v!==null;){var g=v.next,E=tu(v,i);E===0?(v.next=null,o===null?cw=g:o.next=g,g===null&&(ly=o)):(o=v,(a!==0||(E&3)!==0)&&(fw=!0)),v=g}mc(a)}function tu(a,i){for(var o=a.suspendedLanes,v=a.pingedLanes,g=a.expirationTimes,E=a.pendingLanes&-62914561;0<E;){var T=31-ua(E),N=1<<T,V=g[T];V===-1?((N&o)===0||(N&v)!==0)&&(g[T]=Wt(N,i)):V<=i&&(a.expiredLanes|=N),E&=~N}if(i=xn,o=jt,o=Ie(a,a===i?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Mv),v=a.callbackNode,o===0||a===i&&(En===Ov||En===xv)||a.cancelPendingCommit!==null)return v!==null&&rg(v),a.callbackNode=null,a.callbackPriority=0;if((o&3)===0||an(a,o)){if(i=o&-o,i!==a.callbackPriority||Ce.actQueue!==null&&v!==sN)rg(v);else return i;switch(Ti(o)){case Qr:case Ol:o=ov;break;case ao:o=Zf;break;case Ag:o=sv;break;default:o=Zf}return v=ar.bind(null,a),Ce.actQueue!==null?(Ce.actQueue.push(v),o=sN):o=Eg(o,v),a.callbackPriority=i,a.callbackNode=o,i}return v!==null&&rg(v),a.callbackPriority=2,a.callbackNode=null,2}function ar(a,i){if(ZC=XC=!1,Aa!==Bv&&Aa!==tN)return a.callbackNode=null,a.callbackPriority=0,null;var o=a.callbackNode;if(Nf()&&a.callbackNode!==o)return null;var v=jt;return v=Ie(a,a===xn?v:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Mv),v===0?null:(wr(a,v,i),tu(a,su()),a.callbackNode!=null&&a.callbackNode===o?ar.bind(null,a):null)}function ng(a,i){if(Nf())return null;XC=ZC,ZC=!1,wr(a,i,!0)}function rg(a){a!==sN&&a!==null&&mR(a)}function Ar(){Ce.actQueue!==null&&Ce.actQueue.push(function(){return tg(),null}),Cfe(function(){(mn&(yi|fo))!==xl?Eg(Dg,eg):tg()})}function U0(){return Rv===0&&(Rv=Bn()),Rv}function H0(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:(Re(a,"action"),sf(""+a))}function $0(a,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,a.id&&o.setAttribute("form",a.id),i.parentNode.insertBefore(o,i),a=new FormData(a),o.parentNode.removeChild(o),a}function _n(a,i,o,v,g){if(i==="submit"&&o&&o.stateNode===g){var E=H0((g[Ya]||null).action),T=v.submitter;T&&(i=(i=T[Ya]||null)?H0(i.formAction):T.getAttribute("formAction"),i!==null&&(E=i,T=null));var N=new ht("action","action",null,v,g);a.push({event:N,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Rv!==0){var V=T?$0(g,T):new FormData(g),X={pending:!0,data:V,method:g.method,action:E};Object.freeze(X),rc(o,X,null,V)}}else typeof E=="function"&&(N.preventDefault(),V=T?$0(g,T):new FormData(g),X={pending:!0,data:V,method:g.method,action:E},Object.freeze(X),rc(o,X,E,V))},currentTarget:g}]})}}function Ir(a,i,o){a.currentTarget=o;try{i(a)}catch(v){VR(v)}a.currentTarget=null}function nu(a,i){i=(i&4)!==0;for(var o=0;o<a.length;o++){var v=a[o];e:{var g=void 0,E=v.event;if(v=v.listeners,i)for(var T=v.length-1;0<=T;T--){var N=v[T],V=N.instance,X=N.currentTarget;if(N=N.listener,V!==g&&E.isPropagationStopped())break e;V!==null?et(V,Ir,E,N,X):Ir(E,N,X),g=V}else for(T=0;T<v.length;T++){if(N=v[T],V=N.instance,X=N.currentTarget,N=N.listener,V!==g&&E.isPropagationStopped())break e;V!==null?et(V,Ir,E,N,X):Ir(E,N,X),g=V}}}}function Rt(a,i){cN.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var o=i[m1];o===void 0&&(o=i[m1]=new Set);var v=a+"__bubble";o.has(v)||(ig(i,a,2,!1),o.add(v))}function ag(a,i,o){cN.has(a)&&!i&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var v=0;i&&(v|=4),ig(o,a,v,i)}function V0(a){if(!a[dw]){a[dw]=!0,kC.forEach(function(o){o!=="selectionchange"&&(cN.has(o)||ag(o,!1,a),ag(o,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[dw]||(i[dw]=!0,ag("selectionchange",!1,i))}}function ig(a,i,o,v){switch(mg(i)){case Qr:var g=hR;break;case Ol:g=pg;break;default:g=Wo}o=g.bind(null,i,o,a),g=void 0,!pe||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(g=!0),v?g!==void 0?a.addEventListener(i,o,{capture:!0,passive:g}):a.addEventListener(i,o,!0):g!==void 0?a.addEventListener(i,o,{passive:g}):a.addEventListener(i,o,!1)}function ba(a,i,o,v,g){var E=v;if((i&1)===0&&(i&2)===0&&v!==null)e:for(;;){if(v===null)return;var T=v.tag;if(T===3||T===4){var N=v.stateNode.containerInfo;if(N===g)break;if(T===4)for(T=v.return;T!==null;){var V=T.tag;if((V===3||V===4)&&T.stateNode.containerInfo===g)return;T=T.return}for(;N!==null;){if(T=hr(N),T===null)return;if(V=T.tag,V===5||V===6||V===26||V===27){v=E=T;continue e}N=N.parentNode}}v=v.return}Zp(function(){var X=E,Ee=$s(o),Oe=[];e:{var ge=v9.get(a);if(ge!==void 0){var Te=ht,tt=a;switch(a){case"keypress":if(cf(o)===0)break e;case"keydown":case"keyup":Te=_ce;break;case"focusin":tt="focus",Te=Gt;break;case"focusout":tt="blur",Te=Gt;break;case"beforeblur":case"afterblur":Te=Gt;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=Bt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=pt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=Mce;break;case c9:case f9:case d9:Te=DR;break;case h9:Te=kce;break;case"scroll":case"scrollend":Te=de;break;case"wheel":Te=jce;break;case"copy":case"cut":case"paste":Te=Cce;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=n9;break;case"toggle":case"beforetoggle":Te=Lce}var gt=(i&4)!==0,Tn=!gt&&(a==="scroll"||a==="scrollend"),Ut=gt?ge!==null?ge+"Capture":null:ge;gt=[];for(var te=X,re;te!==null;){var oe=te;if(re=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||re===null||Ut===null||(oe=Pu(te,Ut),oe!=null&&gt.push(Ea(te,oe,re))),Tn)break;te=te.return}0<gt.length&&(ge=new Te(ge,tt,null,o,Ee),Oe.push({event:ge,listeners:gt}))}}if((i&7)===0){e:{if(ge=a==="mouseover"||a==="pointerover",Te=a==="mouseout"||a==="pointerout",ge&&o!==D&&(tt=o.relatedTarget||o.fromElement)&&(hr(tt)||tt[is]))break e;if((Te||ge)&&(ge=Ee.window===Ee?Ee:(ge=Ee.ownerDocument)?ge.defaultView||ge.parentWindow:window,Te?(tt=o.relatedTarget||o.toElement,Te=X,tt=tt?hr(tt):null,tt!==null&&(Tn=R(tt),gt=tt.tag,tt!==Tn||gt!==5&&gt!==27&&gt!==6)&&(tt=null)):(Te=null,tt=X),Te!==tt)){if(gt=Bt,oe="onMouseLeave",Ut="onMouseEnter",te="mouse",(a==="pointerout"||a==="pointerover")&&(gt=n9,oe="onPointerLeave",Ut="onPointerEnter",te="pointer"),Tn=Te==null?ge:Bi(Te),re=tt==null?ge:Bi(tt),ge=new gt(oe,te+"leave",Te,o,Ee),ge.target=Tn,ge.relatedTarget=re,oe=null,hr(Ee)===X&&(gt=new gt(Ut,te+"enter",tt,o,Ee),gt.target=re,gt.relatedTarget=Tn,oe=gt),Tn=oe,Te&&tt)t:{for(gt=Te,Ut=tt,te=0,re=gt;re;re=Fr(re))te++;for(re=0,oe=Ut;oe;oe=Fr(oe))re++;for(;0<te-re;)gt=Fr(gt),te--;for(;0<re-te;)Ut=Fr(Ut),re--;for(;te--;){if(gt===Ut||Ut!==null&&gt===Ut.alternate)break t;gt=Fr(gt),Ut=Fr(Ut)}gt=null}else gt=null;Te!==null&&G0(Oe,ge,Te,gt,!1),tt!==null&&Tn!==null&&G0(Oe,Tn,tt,gt,!0)}}e:{if(ge=X?Bi(X):window,Te=ge.nodeName&&ge.nodeName.toLowerCase(),Te==="select"||Te==="input"&&ge.type==="file")var Be=zb;else if($S(ge))if(o9)Be=lR;else{Be=kb;var Ge=aR}else Te=ge.nodeName,!Te||Te.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?X&&Hs(X.elementType)&&(Be=zb):Be=iR;if(Be&&(Be=Be(a,X))){em(Oe,Be,o,Ee);break e}Ge&&Ge(a,ge,X),a==="focusout"&&X&&ge.type==="number"&&X.memoizedProps.value!=null&&Vp(ge,"number",ge.value)}switch(Ge=X?Bi(X):window,a){case"focusin":($S(Ge)||Ge.contentEditable==="true")&&(kg=Ge,CR=X,P1=null);break;case"focusout":P1=CR=kg=null;break;case"mousedown":wR=!0;break;case"contextmenu":case"mouseup":case"dragend":wR=!1,XS(Oe,o,Ee);break;case"selectionchange":if($ce)break;case"keydown":case"keyup":XS(Oe,o,Ee)}var wt;if(SR)e:{switch(a){case"compositionstart":var nt="onCompositionStart";break e;case"compositionend":nt="onCompositionEnd";break e;case"compositionupdate":nt="onCompositionUpdate";break e}nt=void 0}else zg?ya(a,o)&&(nt="onCompositionEnd"):a==="keydown"&&o.keyCode===r9&&(nt="onCompositionStart");nt&&(a9&&o.locale!=="ko"&&(zg||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&zg&&(wt=ju()):(ze=Ee,be="value"in ze?ze.value:ze.textContent,zg=!0)),Ge=Kh(X,nt),0<Ge.length&&(nt=new t9(nt,a,null,o,Ee),Oe.push({event:nt,listeners:Ge}),wt?nt.data=wt:(wt=To(o),wt!==null&&(nt.data=wt)))),(wt=Uce?Jp(a,o):uh(a,o))&&(nt=Kh(X,"onBeforeInput"),0<nt.length&&(Ge=new Ace("onBeforeInput","beforeinput",null,o,Ee),Oe.push({event:Ge,listeners:nt}),Ge.data=wt)),_n(Oe,a,X,o,Ee)}nu(Oe,i)})}function Ea(a,i,o){return{instance:a,listener:i,currentTarget:o}}function Kh(a,i){for(var o=i+"Capture",v=[];a!==null;){var g=a,E=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||E===null||(g=Pu(a,o),g!=null&&v.unshift(Ea(a,g,E)),g=Pu(a,i),g!=null&&v.push(Ea(a,g,E))),a.tag===3)return v;a=a.return}return[]}function Fr(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function G0(a,i,o,v,g){for(var E=i._reactName,T=[];o!==null&&o!==v;){var N=o,V=N.alternate,X=N.stateNode;if(N=N.tag,V!==null&&V===v)break;N!==5&&N!==26&&N!==27||X===null||(V=X,g?(X=Pu(o,E),X!=null&&T.unshift(Ea(o,X,V))):g||(X=Pu(o,E),X!=null&&T.push(Ea(o,X,V)))),o=o.return}T.length!==0&&a.push({event:i,listeners:T})}function ru(a,i){of(a,i),a!=="input"&&a!=="textarea"&&a!=="select"||i==null||i.value!==null||N1||(N1=!0,a==="select"&&i.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var o={registrationNameDependencies:Gi,possibleRegistrationNames:Ac};Hs(a)||typeof i.is=="string"||Rb(a,i,o),i.contentEditable&&!i.suppressContentEditableWarning&&i.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Rn(a,i,o,v){i!==o&&(o=Yr(o),Yr(i)!==o&&(v[a]=i))}function Xo(a,i,o){i.forEach(function(v){o[Y0(v)]=v==="style"?yc(a):a.getAttribute(v)})}function Ui(a,i){i===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof i)}function lg(a,i){return a=a.namespaceURI===mv||a.namespaceURI===rd?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=i,a.innerHTML}function Yr(a){return ie(a)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",he(a)),xe(a)),(typeof a=="string"?a:""+a).replace(vfe,`
217
+ `).replace(pfe,"")}function I0(a,i){return i=Yr(i),Yr(a)===i}function Zu(){}function tn(a,i,o,v,g,E){switch(o){case"children":typeof v=="string"?(ih(v,i,!1),i==="body"||i==="textarea"&&v===""||Us(a,v)):(typeof v=="number"||typeof v=="bigint")&&(ih(""+v,i,!1),i!=="body"&&Us(a,""+v));break;case"className":Wd(a,"class",v);break;case"tabIndex":Wd(a,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Wd(a,o,v);break;case"style":lh(a,v,E);break;case"data":if(i!=="object"){Wd(a,"data",v);break}case"src":case"href":if(v===""&&(i!=="a"||o!=="href")){console.error(o==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',o,o),a.removeAttribute(o);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(o);break}Re(v,o),v=sf(""+v),a.setAttribute(o,v);break;case"action":case"formAction":if(v!=null&&(i==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof v=="function"&&(g.encType==null&&g.method==null||pw||(pw=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),g.target==null||vw||(vw=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):i==="input"||i==="button"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):i!=="input"||g.type==="submit"||g.type==="image"||hw?i!=="button"||g.type==null||g.type==="submit"||hw?typeof v=="function"&&(g.name==null||BU||(BU=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),g.formEncType==null&&g.formMethod==null||pw||(pw=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),g.formTarget==null||vw||(vw=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(hw=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(hw=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(o==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof v=="function"){a.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(o==="formAction"?(i!=="input"&&tn(a,i,"name",g.name,g,null),tn(a,i,"formEncType",g.formEncType,g,null),tn(a,i,"formMethod",g.formMethod,g,null),tn(a,i,"formTarget",g.formTarget,g,null)):(tn(a,i,"encType",g.encType,g,null),tn(a,i,"method",g.method,g,null),tn(a,i,"target",g.target,g,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(o);break}Re(v,o),v=sf(""+v),a.setAttribute(o,v);break;case"onClick":v!=null&&(typeof v!="function"&&Ui(o,v),a.onclick=Zu);break;case"onScroll":v!=null&&(typeof v!="function"&&Ui(o,v),Rt("scroll",a));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&Ui(o,v),Rt("scrollend",a));break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=v.__html,o!=null){if(g.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=o}}break;case"multiple":a.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":a.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){a.removeAttribute("xlink:href");break}Re(v,o),o=sf(""+v),a.setAttributeNS(Nv,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?(Re(v,o),a.setAttribute(o,""+v)):a.removeAttribute(o);break;case"inert":v!==""||mw[o]||(mw[o]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",o));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(o,""):a.removeAttribute(o);break;case"capture":case"download":v===!0?a.setAttribute(o,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?(Re(v,o),a.setAttribute(o,v)):a.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?(Re(v,o),a.setAttribute(o,v)):a.removeAttribute(o);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?a.removeAttribute(o):(Re(v,o),a.setAttribute(o,v));break;case"popover":Rt("beforetoggle",a),Rt("toggle",a),Qd(a,"popover",v);break;case"xlinkActuate":fl(a,Nv,"xlink:actuate",v);break;case"xlinkArcrole":fl(a,Nv,"xlink:arcrole",v);break;case"xlinkRole":fl(a,Nv,"xlink:role",v);break;case"xlinkShow":fl(a,Nv,"xlink:show",v);break;case"xlinkTitle":fl(a,Nv,"xlink:title",v);break;case"xlinkType":fl(a,Nv,"xlink:type",v);break;case"xmlBase":fl(a,fN,"xml:base",v);break;case"xmlLang":fl(a,fN,"xml:lang",v);break;case"xmlSpace":fl(a,fN,"xml:space",v);break;case"is":E!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Qd(a,"is",v);break;case"innerText":case"textContent":break;case"popoverTarget":_U||v==null||typeof v!="object"||(_U=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",v));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=Xp(o),Qd(a,o,v)):Gi.hasOwnProperty(o)&&v!=null&&typeof v!="function"&&Ui(o,v)}}function gc(a,i,o,v,g,E){switch(o){case"style":lh(a,v,E);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=v.__html,o!=null){if(g.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=o}}break;case"children":typeof v=="string"?Us(a,v):(typeof v=="number"||typeof v=="bigint")&&Us(a,""+v);break;case"onScroll":v!=null&&(typeof v!="function"&&Ui(o,v),Rt("scroll",a));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&Ui(o,v),Rt("scrollend",a));break;case"onClick":v!=null&&(typeof v!="function"&&Ui(o,v),a.onclick=Zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Gi.hasOwnProperty(o))v!=null&&typeof v!="function"&&Ui(o,v);else e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),i=o.slice(2,g?o.length-7:void 0),E=a[Ya]||null,E=E!=null?E[o]:null,typeof E=="function"&&a.removeEventListener(i,E,g),typeof v=="function")){typeof E!="function"&&E!==null&&(o in a?a[o]=null:a.hasAttribute(o)&&a.removeAttribute(o)),a.addEventListener(i,v,g);break e}o in a?a[o]=v:v===!0?a.setAttribute(o,""):Qd(a,o,v)}}}function ir(a,i,o){switch(ru(i,o),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",a),Rt("load",a);var v=!1,g=!1,E;for(E in o)if(o.hasOwnProperty(E)){var T=o[E];if(T!=null)switch(E){case"src":v=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:tn(a,i,E,T,o,null)}}g&&tn(a,i,"srcSet",o.srcSet,o,null),v&&tn(a,i,"src",o.src,o,null);return;case"input":Co("input",o),Rt("invalid",a);var N=E=T=g=null,V=null,X=null;for(v in o)if(o.hasOwnProperty(v)){var Ee=o[v];if(Ee!=null)switch(v){case"name":g=Ee;break;case"type":T=Ee;break;case"checked":V=Ee;break;case"defaultChecked":X=Ee;break;case"value":E=Ee;break;case"defaultValue":N=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:tn(a,i,v,Ee,o,null)}}wo(a,o),FS(a,E,N,V,X,T,g,!1),zu(a);return;case"select":Co("select",o),Rt("invalid",a),v=T=E=null;for(g in o)if(o.hasOwnProperty(g)&&(N=o[g],N!=null))switch(g){case"value":E=N;break;case"defaultValue":T=N;break;case"multiple":v=N;default:tn(a,i,g,N,o,null)}nh(a,o),i=E,o=T,a.multiple=!!v,i!=null?ku(a,!!v,i,!1):o!=null&&ku(a,!!v,o,!0);return;case"textarea":Co("textarea",o),Rt("invalid",a),E=g=v=null;for(T in o)if(o.hasOwnProperty(T)&&(N=o[T],N!=null))switch(T){case"value":v=N;break;case"defaultValue":g=N;break;case"children":E=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:tn(a,i,T,N,o,null)}zl(a,o),Ob(a,v,g,E),zu(a);return;case"option":Ab(a,o);for(V in o)if(o.hasOwnProperty(V)&&(v=o[V],v!=null))switch(V){case"selected":a.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:tn(a,i,V,v,o,null)}return;case"dialog":Rt("beforetoggle",a),Rt("toggle",a),Rt("cancel",a),Rt("close",a);break;case"iframe":case"object":Rt("load",a);break;case"video":case"audio":for(v=0;v<lE.length;v++)Rt(lE[v],a);break;case"image":Rt("error",a),Rt("load",a);break;case"details":Rt("toggle",a);break;case"embed":case"source":case"link":Rt("error",a),Rt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in o)if(o.hasOwnProperty(X)&&(v=o[X],v!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:tn(a,i,X,v,o,null)}return;default:if(Hs(i)){for(Ee in o)o.hasOwnProperty(Ee)&&(v=o[Ee],v!==void 0&&gc(a,i,Ee,v,o,void 0));return}}for(N in o)o.hasOwnProperty(N)&&(v=o[N],v!=null&&tn(a,i,N,v,o,null))}function EC(a,i,o,v){switch(ru(i,v),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,E=null,T=null,N=null,V=null,X=null,Ee=null;for(Te in o){var Oe=o[Te];if(o.hasOwnProperty(Te)&&Oe!=null)switch(Te){case"checked":break;case"value":break;case"defaultValue":V=Oe;default:v.hasOwnProperty(Te)||tn(a,i,Te,null,v,Oe)}}for(var ge in v){var Te=v[ge];if(Oe=o[ge],v.hasOwnProperty(ge)&&(Te!=null||Oe!=null))switch(ge){case"type":E=Te;break;case"name":g=Te;break;case"checked":X=Te;break;case"defaultChecked":Ee=Te;break;case"value":T=Te;break;case"defaultValue":N=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Te!==Oe&&tn(a,i,ge,Te,v,Oe)}}i=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,v=v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null,i||!v||TU||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),TU=!0),!i||v||xU||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),xU=!0),Ao(a,T,N,V,X,Ee,E,g);return;case"select":Te=T=N=ge=null;for(E in o)if(V=o[E],o.hasOwnProperty(E)&&V!=null)switch(E){case"value":break;case"multiple":Te=V;default:v.hasOwnProperty(E)||tn(a,i,E,null,v,V)}for(g in v)if(E=v[g],V=o[g],v.hasOwnProperty(g)&&(E!=null||V!=null))switch(g){case"value":ge=E;break;case"defaultValue":N=E;break;case"multiple":T=E;default:E!==V&&tn(a,i,g,E,v,V)}v=N,i=T,o=Te,ge!=null?ku(a,!!i,ge,!1):!!o!=!!i&&(v!=null?ku(a,!!i,v,!0):ku(a,!!i,i?[]:"",!1));return;case"textarea":Te=ge=null;for(N in o)if(g=o[N],o.hasOwnProperty(N)&&g!=null&&!v.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:tn(a,i,N,null,v,g)}for(T in v)if(g=v[T],E=o[T],v.hasOwnProperty(T)&&(g!=null||E!=null))switch(T){case"value":ge=g;break;case"defaultValue":Te=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:g!==E&&tn(a,i,T,g,v,E)}Gp(a,ge,Te);return;case"option":for(var tt in o)if(ge=o[tt],o.hasOwnProperty(tt)&&ge!=null&&!v.hasOwnProperty(tt))switch(tt){case"selected":a.selected=!1;break;default:tn(a,i,tt,null,v,ge)}for(V in v)if(ge=v[V],Te=o[V],v.hasOwnProperty(V)&&ge!==Te&&(ge!=null||Te!=null))switch(V){case"selected":a.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:tn(a,i,V,ge,v,Te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var gt in o)ge=o[gt],o.hasOwnProperty(gt)&&ge!=null&&!v.hasOwnProperty(gt)&&tn(a,i,gt,null,v,ge);for(X in v)if(ge=v[X],Te=o[X],v.hasOwnProperty(X)&&ge!==Te&&(ge!=null||Te!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:tn(a,i,X,ge,v,Te)}return;default:if(Hs(i)){for(var Tn in o)ge=o[Tn],o.hasOwnProperty(Tn)&&ge!==void 0&&!v.hasOwnProperty(Tn)&&gc(a,i,Tn,void 0,v,ge);for(Ee in v)ge=v[Ee],Te=o[Ee],!v.hasOwnProperty(Ee)||ge===Te||ge===void 0&&Te===void 0||gc(a,i,Ee,ge,v,Te);return}}for(var Ut in o)ge=o[Ut],o.hasOwnProperty(Ut)&&ge!=null&&!v.hasOwnProperty(Ut)&&tn(a,i,Ut,null,v,ge);for(Oe in v)ge=v[Oe],Te=o[Oe],!v.hasOwnProperty(Oe)||ge===Te||ge==null&&Te==null||tn(a,i,Oe,ge,v,Te)}function Y0(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function yc(a){var i={};a=a.style;for(var o=0;o<a.length;o++){var v=a[o];i[v]=a.getPropertyValue(v)}return i}function K0(a,i,o){if(i!=null&&typeof i!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var v,g=v="",E;for(E in i)if(i.hasOwnProperty(E)){var T=i[E];T!=null&&typeof T!="boolean"&&T!==""&&(E.indexOf("--")===0?(me(T,E),v+=g+E+":"+(""+T).trim()):typeof T!="number"||T===0||pv.has(E)?(me(T,E),v+=g+E.replace(io,"-$1").toLowerCase().replace(lo,"-ms-")+":"+(""+T).trim()):v+=g+E.replace(io,"-$1").toLowerCase().replace(lo,"-ms-")+":"+T+"px",g=";")}v=v||null,i=a.getAttribute("style"),i!==v&&(v=Yr(v),Yr(i)!==v&&(o.style=yc(a)))}}function Da(a,i,o,v,g,E){if(g.delete(o),a=a.getAttribute(o),a===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(Re(v,i),a===""+v)return}Rn(i,a,v,E)}function X0(a,i,o,v,g,E){if(g.delete(o),a=a.getAttribute(o),a===null){switch(typeof v){case"function":case"symbol":return}if(!v)return}else switch(typeof v){case"function":case"symbol":break;default:if(v)return}Rn(i,a,v,E)}function Z0(a,i,o,v,g,E){if(g.delete(o),a=a.getAttribute(o),a===null)switch(typeof v){case"undefined":case"function":case"symbol":return}else if(v!=null)switch(typeof v){case"function":case"symbol":break;default:if(Re(v,o),a===""+v)return}Rn(i,a,v,E)}function DC(a,i,o,v,g,E){if(g.delete(o),a=a.getAttribute(o),a===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(v))return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!isNaN(v)&&(Re(v,i),a===""+v))return}Rn(i,a,v,E)}function un(a,i,o,v,g,E){if(g.delete(o),a=a.getAttribute(o),a===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(Re(v,i),o=sf(""+v),a===o)return}Rn(i,a,v,E)}function Sn(a,i,o,v){for(var g={},E=new Set,T=a.attributes,N=0;N<T.length;N++)switch(T[N].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:E.add(T[N].name)}if(Hs(i)){for(var V in o)if(o.hasOwnProperty(V)){var X=o[V];if(X!=null){if(Gi.hasOwnProperty(V))typeof X!="function"&&Ui(V,X);else if(o.suppressHydrationWarning!==!0)switch(V){case"children":typeof X!="string"&&typeof X!="number"||Rn("children",a.textContent,X,g);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":T=a.innerHTML,X=X?X.__html:void 0,X!=null&&(X=lg(a,X),Rn(V,T,X,g));continue;case"style":E.delete(V),K0(a,X,g);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":E.delete(V.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",V);continue;case"className":E.delete("class"),T=zS(a,"class",X),Rn("className",T,X,g);continue;default:v.context===Fc&&i!=="svg"&&i!=="math"?E.delete(V.toLowerCase()):E.delete(V),T=zS(a,V,X),Rn(V,T,X,g)}}}}else for(X in o)if(o.hasOwnProperty(X)&&(V=o[X],V!=null)){if(Gi.hasOwnProperty(X))typeof V!="function"&&Ui(X,V);else if(o.suppressHydrationWarning!==!0)switch(X){case"children":typeof V!="string"&&typeof V!="number"||Rn("children",a.textContent,V,g);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":T=a.innerHTML,V=V?V.__html:void 0,V!=null&&(V=lg(a,V),T!==V&&(g[X]={__html:T}));continue;case"className":Da(a,X,"class",V,E,g);continue;case"tabIndex":Da(a,X,"tabindex",V,E,g);continue;case"style":E.delete(X),K0(a,V,g);continue;case"multiple":E.delete(X),Rn(X,a.multiple,V,g);continue;case"muted":E.delete(X),Rn(X,a.muted,V,g);continue;case"autoFocus":E.delete("autofocus"),Rn(X,a.autofocus,V,g);continue;case"data":if(i!=="object"){E.delete(X),T=a.getAttribute("data"),Rn(X,T,V,g);continue}case"src":case"href":if(!(V!==""||i==="a"&&X==="href"||i==="object"&&X==="data")){console.error(X==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X);continue}un(a,X,X,V,E,g);continue;case"action":case"formAction":if(T=a.getAttribute(X),typeof V=="function"){E.delete(X.toLowerCase()),X==="formAction"?(E.delete("name"),E.delete("formenctype"),E.delete("formmethod"),E.delete("formtarget")):(E.delete("enctype"),E.delete("method"),E.delete("target"));continue}else if(T===mfe){E.delete(X.toLowerCase()),Rn(X,"function",V,g);continue}un(a,X,X.toLowerCase(),V,E,g);continue;case"xlinkHref":un(a,X,"xlink:href",V,E,g);continue;case"contentEditable":Z0(a,X,"contenteditable",V,E,g);continue;case"spellCheck":Z0(a,X,"spellcheck",V,E,g);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Z0(a,X,X,V,E,g);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":X0(a,X,X.toLowerCase(),V,E,g);continue;case"capture":case"download":e:{N=a;var Ee=T=X,Oe=g;if(E.delete(Ee),N=N.getAttribute(Ee),N===null)switch(typeof V){case"undefined":case"function":case"symbol":break e;default:if(V===!1)break e}else if(V!=null)switch(typeof V){case"function":case"symbol":break;case"boolean":if(V===!0&&N==="")break e;break;default:if(Re(V,T),N===""+V)break e}Rn(T,N,V,Oe)}continue;case"cols":case"rows":case"size":case"span":e:{if(N=a,Ee=T=X,Oe=g,E.delete(Ee),N=N.getAttribute(Ee),N===null)switch(typeof V){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(V)||1>V)break e}else if(V!=null)switch(typeof V){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(V)||1>V)&&(Re(V,T),N===""+V))break e}Rn(T,N,V,Oe)}continue;case"rowSpan":DC(a,X,"rowspan",V,E,g);continue;case"start":DC(a,X,X,V,E,g);continue;case"xHeight":Da(a,X,"x-height",V,E,g);continue;case"xlinkActuate":Da(a,X,"xlink:actuate",V,E,g);continue;case"xlinkArcrole":Da(a,X,"xlink:arcrole",V,E,g);continue;case"xlinkRole":Da(a,X,"xlink:role",V,E,g);continue;case"xlinkShow":Da(a,X,"xlink:show",V,E,g);continue;case"xlinkTitle":Da(a,X,"xlink:title",V,E,g);continue;case"xlinkType":Da(a,X,"xlink:type",V,E,g);continue;case"xmlBase":Da(a,X,"xml:base",V,E,g);continue;case"xmlLang":Da(a,X,"xml:lang",V,E,g);continue;case"xmlSpace":Da(a,X,"xml:space",V,E,g);continue;case"inert":V!==""||mw[X]||(mw[X]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",X)),X0(a,X,X,V,E,g);continue;default:if(!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"){N=Xp(X),T=!1,v.context===Fc&&i!=="svg"&&i!=="math"?E.delete(N.toLowerCase()):(Ee=X.toLowerCase(),Ee=Tc.hasOwnProperty(Ee)&&Tc[Ee]||null,Ee!==null&&Ee!==X&&(T=!0,E.delete(Ee)),E.delete(N));e:if(Ee=a,Oe=N,N=V,ks(Oe))if(Ee.hasAttribute(Oe))Ee=Ee.getAttribute(Oe),Re(N,Oe),N=Ee===""+N?N:Ee;else{switch(typeof N){case"function":case"symbol":break e;case"boolean":if(Ee=Oe.toLowerCase().slice(0,5),Ee!=="data-"&&Ee!=="aria-")break e}N=N===void 0?void 0:null}else N=void 0;T||Rn(X,N,V,g)}}}return 0<E.size&&o.suppressHydrationWarning!==!0&&Xo(a,E,g),Object.keys(g).length===0?null:g}function zt(a,i){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+i+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+i+" "+a[a.length-1]}}function kt(a){return a.nodeType===9?a:a.ownerDocument}function hn(a){switch(a){case rd:return uy;case mv:return bw;default:return Fc}}function $a(a,i){if(a===Fc)switch(i){case"svg":return uy;case"math":return bw;default:return Fc}return a===uy&&i==="foreignObject"?Fc:a}function au(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function Pf(){var a=window.event;return a&&a.type==="popstate"?a===pN?!1:(pN=a,!0):(pN=null,!1)}function Q0(a){setTimeout(function(){throw a})}function Qu(a,i,o){switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&a.focus();break;case"img":o.src?a.src=o.src:o.srcSet&&(a.srcset=o.srcSet)}}function lr(a,i,o,v){EC(a,i,o,v),a[Ya]=v}function Wu(a){Us(a,"")}function bc(a,i,o){a.nodeValue=o}function iu(a){return a==="head"}function Hi(a,i){a.removeChild(i)}function jf(a,i){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(i)}function Ff(a,i){var o=i,v=0,g=0;do{var E=o.nextSibling;if(a.removeChild(o),E&&E.nodeType===8)if(o=E.data,o===yw){if(0<v&&8>v){o=v;var T=a.ownerDocument;if(o&yfe&&Hf(T.documentElement),o&bfe&&Hf(T.body),o&Efe)for(o=T.head,Hf(o),T=o.firstChild;T;){var N=T.nextSibling,V=T.nodeName;T[Jf]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&T.rel.toLowerCase()==="stylesheet"||o.removeChild(T),T=N}}if(g===0){a.removeChild(E),Cc(i);return}g--}else o===gw||o===jc||o===uE?g++:v=o.charCodeAt(0)-48;else v=0;o=E}while(o);Cc(i)}function Va(a){a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function W0(a){a.nodeValue=""}function J0(a,i){i=i[Dfe],i=i!=null&&i.hasOwnProperty("display")?i.display:null,a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function ug(a,i){a.nodeValue=i}function Lf(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Lf(o),Nr(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}a.removeChild(o)}}function Zo(a,i,o,v){for(;a.nodeType===1;){var g=o;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!v&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(v){if(!a[Jf])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(E=a.getAttribute("rel"),E==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(E!==g.rel||a.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||a.getAttribute("title")!==(g.title==null?null:g.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(E=a.getAttribute("src"),(E!==(g.src==null?null:g.src)||a.getAttribute("type")!==(g.type==null?null:g.type)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&E&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){Re(g.name,"name");var E=g.name==null?null:""+g.name;if(g.type==="hidden"&&a.getAttribute("name")===E)return a}else return a;if(a=Xr(a.nextSibling),a===null)break}return null}function Kr(a,i,o){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=Xr(a.nextSibling),a===null))return null;return a}function lu(a){return a.data===uE||a.data===jc&&a.ownerDocument.readyState===NU}function qf(a,i){var o=a.ownerDocument;if(a.data!==jc||o.readyState===NU)i();else{var v=function(){i(),o.removeEventListener("DOMContentLoaded",v)};o.addEventListener("DOMContentLoaded",v),a._reactRetry=v}}function Xr(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i===gw||i===uE||i===jc||i===dN||i===RU)break;if(i===yw)return null}}return a}function og(a){if(a.nodeType===1){for(var i=a.nodeName.toLowerCase(),o={},v=a.attributes,g=0;g<v.length;g++){var E=v[g];o[Y0(E.name)]=E.name.toLowerCase()==="style"?yc(a):E.value}return{type:i,props:o}}return a.nodeType===8?{type:"Suspense",props:{}}:a.nodeValue}function sg(a,i,o){return o===null||o[gfe]!==!0?(a.nodeValue===i?a=null:(i=Yr(i),a=Yr(a.nodeValue)===i?null:a.nodeValue),a):null}function e1(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var o=a.data;if(o===yw){if(i===0)return Xr(a.nextSibling);i--}else o!==gw&&o!==uE&&o!==jc||i++}a=a.nextSibling}return null}function Uf(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var o=a.data;if(o===gw||o===uE||o===jc){if(i===0)return a;i--}else o===yw&&i++}a=a.previousSibling}return null}function t1(a){Cc(a)}function fi(a){Cc(a)}function n1(a,i,o,v,g){switch(g&&Kp(a,v.ancestorInfo),i=kt(o),a){case"html":if(a=i.documentElement,!a)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"head":if(a=i.head,!a)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"body":if(a=i.body,!a)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function di(a,i,o,v){if(!o[is]&&pa(o)){var g=o.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",g,g,g)}switch(a){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(g=o.attributes;g.length;)o.removeAttributeNode(g[0]);ir(o,a,i),o[oa]=v,o[Ya]=i}function Hf(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Nr(a)}function Xh(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function SC(a,i,o){var v=oy;if(v&&typeof i=="string"&&i){var g=ii(i);g='link[rel="'+a+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),FU.has(g)||(FU.add(g),a={rel:a,crossOrigin:o,href:i},v.querySelector(g)===null&&(i=v.createElement("link"),ir(i,"link",a),Mr(i),v.head.appendChild(i)))}}function Ju(a,i,o,v){var g=(g=ou.current)?Xh(g):null;if(!g)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=Qo(o.href),i=ai(g).hoistableStyles,v=i.get(o),v||(v={type:"style",instance:null,count:0,state:null},i.set(o,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){a=Qo(o.href);var E=ai(g).hoistableStyles,T=E.get(a);if(!T&&(g=g.ownerDocument||g,T={type:"stylesheet",instance:null,count:0,state:{loading:zv,preload:null}},E.set(a,T),(E=g.querySelector(uu(a)))&&!E._p&&(T.instance=E,T.state.loading=oE|Du),!Su.has(a))){var N={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Su.set(a,N),E||CC(g,a,N,T.state)}if(i&&v===null)throw o=`
218
+
219
+ - `+Ec(i)+`
220
+ + `+Ec(o),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return T}if(i&&v!==null)throw o=`
221
+
222
+ - `+Ec(i)+`
223
+ + `+Ec(o),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(o=Dc(o),i=ai(g).hoistableScripts,v=i.get(o),v||(v={type:"script",instance:null,count:0,state:null},i.set(o,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function Ec(a){var i=0,o="<link";return typeof a.rel=="string"?(i++,o+=' rel="'+a.rel+'"'):no.call(a,"rel")&&(i++,o+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href=="string"?(i++,o+=' href="'+a.href+'"'):no.call(a,"href")&&(i++,o+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence=="string"?(i++,o+=' precedence="'+a.precedence+'"'):no.call(a,"precedence")&&(i++,o+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>i&&(o+=" ..."),o+" />"}function Qo(a){return'href="'+ii(a)+'"'}function uu(a){return'link[rel="stylesheet"]['+a+"]"}function r1(a){return xt({},a,{"data-precedence":a.precedence,precedence:null})}function CC(a,i,o,v){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?v.loading=oE:(i=a.createElement("link"),v.preload=i,i.addEventListener("load",function(){return v.loading|=oE}),i.addEventListener("error",function(){return v.loading|=PU}),ir(i,"link",o),Mr(i),a.head.appendChild(i))}function Dc(a){return'[src="'+ii(a)+'"]'}function Sc(a){return"script[async]"+a}function cg(a,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var v=a.querySelector('style[data-href~="'+ii(o.href)+'"]');if(v)return i.instance=v,Mr(v),v;var g=xt({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return v=(a.ownerDocument||a).createElement("style"),Mr(v),ir(v,"style",g),fg(v,o.precedence,a),i.instance=v;case"stylesheet":g=Qo(o.href);var E=a.querySelector(uu(g));if(E)return i.state.loading|=Du,i.instance=E,Mr(E),E;v=r1(o),(g=Su.get(g))&&a1(v,g),E=(a.ownerDocument||a).createElement("link"),Mr(E);var T=E;return T._p=new Promise(function(N,V){T.onload=N,T.onerror=V}),ir(E,"link",v),i.state.loading|=Du,fg(E,o.precedence,a),i.instance=E;case"script":return E=Dc(o.src),(g=a.querySelector(Sc(E)))?(i.instance=g,Mr(g),g):(v=o,(g=Su.get(E))&&(v=xt({},o),i1(v,g)),a=a.ownerDocument||a,g=a.createElement("script"),Mr(g),ir(g,"link",v),a.head.appendChild(g),i.instance=g);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+i.type+'". this is a bug in React.')}else i.type==="stylesheet"&&(i.state.loading&Du)===zv&&(v=i.instance,i.state.loading|=Du,fg(v,o.precedence,a));return i.instance}function fg(a,i,o){for(var v=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=v.length?v[v.length-1]:null,E=g,T=0;T<v.length;T++){var N=v[T];if(N.dataset.precedence===i)E=N;else if(E!==g)break}E?E.parentNode.insertBefore(a,E.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(a,i.firstChild))}function a1(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function i1(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function l1(a,i,o){if(Ew===null){var v=new Map,g=Ew=new Map;g.set(o,v)}else g=Ew,v=g.get(o),v||(v=new Map,g.set(o,v));if(v.has(a))return v;for(v.set(a,null),o=o.getElementsByTagName(a),g=0;g<o.length;g++){var E=o[g];if(!(E[Jf]||E[oa]||a==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!==rd){var T=E.getAttribute(i)||"";T=a+T;var N=v.get(T);N?N.push(E):v.set(T,[E])}}return v}function u1(a,i,o){a=a.ownerDocument||a,a.head.insertBefore(o,i==="title"?a.querySelector("head > title"):null)}function $f(a,i,o){var v=!o.ancestorInfo.containerTagInScope;if(o.context===uy||i.itemProp!=null)return!v||i.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href===""){v&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError){if(i.rel==="stylesheet"&&typeof i.precedence=="string"){a=i.href;var g=i.onError,E=i.disabled;o=[],i.onLoad&&o.push("`onLoad`"),g&&o.push("`onError`"),E!=null&&o.push("`disabled`"),g=zt(o,"and"),g+=o.length===1?" prop":" props",E=o.length===1?"an "+g:"the "+g,o.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',a,E,g)}v&&(typeof i.rel!="string"||typeof i.href!="string"||i.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(i.onError||i.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(i.rel){case"stylesheet":return a=i.precedence,i=i.disabled,typeof a!="string"&&v&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof a=="string"&&i==null;default:return!0}case"script":if(a=i.async&&typeof i.async!="function"&&typeof i.async!="symbol",!a||i.onLoad||i.onError||!i.src||typeof i.src!="string"){v&&(a?i.onLoad||i.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":v&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function Zh(a){return!(a.type==="stylesheet"&&(a.state.loading&jU)===zv)}function wC(){}function AC(a,i,o){if(sE===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var v=sE;if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&Du)===zv){if(i.instance===null){var g=Qo(o.href),E=a.querySelector(uu(g));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(v.count++,v=Qh.bind(v),a.then(v,v)),i.state.loading|=Du,i.instance=E,Mr(E);return}E=a.ownerDocument||a,o=r1(o),(g=Su.get(g))&&a1(o,g),E=E.createElement("link"),Mr(E);var T=E;T._p=new Promise(function(N,V){T.onload=N,T.onerror=V}),ir(E,"link",o),i.instance=E}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&jU)===zv&&(v.count++,i=Qh.bind(v),a.addEventListener("load",i),a.addEventListener("error",i))}}function OC(){if(sE===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var a=sE;return a.stylesheets&&a.count===0&&dg(a,a.stylesheets),0<a.count?function(i){var o=setTimeout(function(){if(a.stylesheets&&dg(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},6e4);return a.unsuspend=i,function(){a.unsuspend=null,clearTimeout(o)}}:null}function Qh(){if(this.count--,this.count===0){if(this.stylesheets)dg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function dg(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Dw=new Map,i.forEach(xC,a),Dw=null,Qh.call(a))}function xC(a,i){if(!(i.state.loading&Du)){var o=Dw.get(a);if(o)var v=o.get(gN);else{o=new Map,Dw.set(a,o);for(var g=a.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<g.length;E++){var T=g[E];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(o.set(T.dataset.precedence,T),v=T)}v&&o.set(gN,v)}g=i.instance,T=g.getAttribute("data-precedence"),E=o.get(T)||v,E===v&&o.set(gN,g),o.set(T,g),this.count++,v=Qh.bind(this),g.addEventListener("load",v),g.addEventListener("error",v),E?E.parentNode.insertBefore(g,E.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(g,a.firstChild)),i.state.loading|=Du}}function hg(a,i,o,v,g,E,T,N){for(this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Mv,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ft(0),this.hiddenUpdates=Ft(null),this.identifierPrefix=v,this.onUncaughtError=g,this.onCaughtError=E,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[],i=0;31>i;i++)a.push(new Set);this._debugRootType=o?"hydrateRoot()":"createRoot()"}function o1(a,i,o,v,g,E,T,N,V,X,Ee,Oe){return a=new hg(a,i,o,T,N,V,X,Oe),i=Yce,E===!0&&(i|=Xa|uo),or&&(i|=Ca),E=C(3,null,null,i),a.current=E,E.stateNode=a,i=ph(),Qs(i),a.pooledCache=i,Qs(i),E.memoizedState={element:v,isDehydrated:o,cache:i},Pa(E),a}function s1(a){return a?(a=ad,a):ad}function pn(a,i,o,v,g,E){if(Zr&&typeof Zr.onScheduleFiberRoot=="function")try{Zr.onScheduleFiberRoot(rs,v,o)}catch(T){Ia||(Ia=!0,console.error("React instrumentation encountered an error: %s",T))}Ke!==null&&typeof Ke.markRenderScheduled=="function"&&Ke.markRenderScheduled(i),g=s1(g),v.context===null?v.context=g:v.pendingContext=g,Ka&&vi!==null&&!HU&&(HU=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
224
+
225
+ Check the render method of %s.`,$(vi)||"Unknown")),v=ql(i),v.payload={element:o},E=E===void 0?null:E,E!==null&&(typeof E!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",E),v.callback=E),o=gl(a,v,i),o!==null&&(rr(o,a,i),Po(o,a,i))}function vg(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var o=a.retryLane;a.retryLane=o!==0&&o<i?o:i}}function c1(a,i){vg(a,i),(a=a.alternate)&&vg(a,i)}function f1(a){if(a.tag===13){var i=ka(a,67108864);i!==null&&rr(i,a,67108864),c1(a,67108864)}}function fR(){return vi}function dR(){for(var a=new Map,i=1,o=0;31>o;o++){var v=ut(i);a.set(i,v),i*=2}return a}function hR(a,i,o,v){var g=Ce.T;Ce.T=null;var E=mt.p;try{mt.p=Qr,Wo(a,i,o,v)}finally{mt.p=E,Ce.T=g}}function pg(a,i,o,v){var g=Ce.T;Ce.T=null;var E=mt.p;try{mt.p=Ol,Wo(a,i,o,v)}finally{mt.p=E,Ce.T=g}}function Wo(a,i,o,v){if(Cw){var g=Wh(v);if(g===null)ba(a,i,v,ww,o),Jo(a,v);else if(Jh(g,a,i,o,v))v.stopPropagation();else if(Jo(a,v),i&4&&-1<Afe.indexOf(a)){for(;g!==null;){var E=pa(g);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var T=yt(E.pendingLanes);if(T!==0){var N=E;for(N.pendingLanes|=2,N.entangledLanes|=2;T;){var V=1<<31-ua(T);N.entanglements[1]|=V,T&=~V}qi(E),(mn&(yi|fo))===xl&&(uw=su()+EU,mc(0))}}break;case 13:N=ka(E,2),N!==null&&rr(N,E,2),vc(),c1(E,2)}if(E=Wh(v),E===null&&ba(a,i,v,ww,o),E===g)break;g=E}g!==null&&v.stopPropagation()}else ba(a,i,v,null,o)}}function Wh(a){return a=$s(a),Vf(a)}function Vf(a){if(ww=null,a=hr(a),a!==null){var i=R(a);if(i===null)a=null;else{var o=i.tag;if(o===13){if(a=O(i),a!==null)return a;a=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return ww=a,null}function mg(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Qr;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ol;case"message":switch(ns()){case Dg:return Qr;case ov:return Ol;case Zf:case yR:return ao;case sv:return Ag;default:return ao}default:return ao}}function Jo(a,i){switch(a){case"focusin":case"focusout":vd=null;break;case"dragenter":case"dragleave":pd=null;break;case"mouseover":case"mouseout":md=null;break;case"pointerover":case"pointerout":fE.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":dE.delete(i.pointerId)}}function Ga(a,i,o,v,g,E){return a===null||a.nativeEvent!==E?(a={blockedOn:i,domEventName:o,eventSystemFlags:v,nativeEvent:E,targetContainers:[g]},i!==null&&(i=pa(i),i!==null&&f1(i)),a):(a.eventSystemFlags|=v,i=a.targetContainers,g!==null&&i.indexOf(g)===-1&&i.push(g),a)}function Jh(a,i,o,v,g){switch(i){case"focusin":return vd=Ga(vd,a,i,o,v,g),!0;case"dragenter":return pd=Ga(pd,a,i,o,v,g),!0;case"mouseover":return md=Ga(md,a,i,o,v,g),!0;case"pointerover":var E=g.pointerId;return fE.set(E,Ga(fE.get(E)||null,a,i,o,v,g)),!0;case"gotpointercapture":return E=g.pointerId,dE.set(E,Ga(dE.get(E)||null,a,i,o,v,g)),!0}return!1}function TC(a){var i=hr(a.target);if(i!==null){var o=R(i);if(o!==null){if(i=o.tag,i===13){if(i=O(o),i!==null){a.blockedOn=i,Ms(a.priority,function(){if(o.tag===13){var v=Ha(o);v=Dn(v);var g=ka(o,v);g!==null&&rr(g,o,v),c1(o,v)}});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){a.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}a.blockedOn=null}function ev(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var o=Wh(a.nativeEvent);if(o===null){o=a.nativeEvent;var v=new o.constructor(o.type,o),g=v;D!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),D=g,o.target.dispatchEvent(v),D===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),D=null}else return i=pa(o),i!==null&&f1(i),a.blockedOn=o,!1;i.shift()}return!0}function d1(a,i,o){ev(a)&&o.delete(i)}function BC(){yN=!1,vd!==null&&ev(vd)&&(vd=null),pd!==null&&ev(pd)&&(pd=null),md!==null&&ev(md)&&(md=null),fE.forEach(d1),dE.forEach(d1)}function tv(a,i){a.blockedOn===i&&(a.blockedOn=null,yN||(yN=!0,ur.unstable_scheduleCallback(ur.unstable_NormalPriority,BC)))}function _C(a){Aw!==a&&(Aw=a,ur.unstable_scheduleCallback(ur.unstable_NormalPriority,function(){Aw===a&&(Aw=null);for(var i=0;i<a.length;i+=3){var o=a[i],v=a[i+1],g=a[i+2];if(typeof v!="function"){if(Vf(v||o)===null)continue;break}var E=pa(o);E!==null&&(a.splice(i,3),i-=3,o={pending:!0,data:g,method:o.method,action:v},Object.freeze(o),rc(E,o,v,g))}}))}function Cc(a){function i(V){return tv(V,a)}vd!==null&&tv(vd,a),pd!==null&&tv(pd,a),md!==null&&tv(md,a),fE.forEach(i),dE.forEach(i);for(var o=0;o<gd.length;o++){var v=gd[o];v.blockedOn===a&&(v.blockedOn=null)}for(;0<gd.length&&(o=gd[0],o.blockedOn===null);)TC(o),o.blockedOn===null&&gd.shift();if(o=(a.ownerDocument||a).$$reactFormReplay,o!=null)for(v=0;v<o.length;v+=3){var g=o[v],E=o[v+1],T=g[Ya]||null;if(typeof E=="function")T||_C(o);else if(T){var N=null;if(E&&E.hasAttribute("formAction")){if(g=E,T=E[Ya]||null)N=T.formAction;else if(Vf(g)!==null)continue}else N=T.action;typeof N=="function"?o[v+1]=N:(o.splice(v,3),v-=3),_C(o)}}}function gg(a){this._internalRoot=a}function nv(a){this._internalRoot=a}function RC(a){a[is]&&(a._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ur=xN(),rv=k,vR=hs,xt=Object.assign,av=Symbol.for("react.element"),es=Symbol.for("react.transitional.element"),wc=Symbol.for("react.portal"),Ct=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),If=Symbol.for("react.profiler"),h1=Symbol.for("react.provider"),yg=Symbol.for("react.consumer"),$i=Symbol.for("react.context"),eo=Symbol.for("react.forward_ref"),Yf=Symbol.for("react.suspense"),ts=Symbol.for("react.suspense_list"),iv=Symbol.for("react.memo"),hi=Symbol.for("react.lazy"),v1=Symbol.for("react.activity"),NC=Symbol.for("react.memo_cache_sentinel"),p1=Symbol.iterator,bg=Symbol.for("react.client.reference"),bt=Array.isArray,Ce=rv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt=vR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pR=Object.freeze({pending:!1,data:null,method:null,action:null}),lv=[],uv=[],Vi=-1,to=Q(null),Kf=Q(null),ou=Q(null),Xf=Q(null),no=Object.prototype.hasOwnProperty,Eg=ur.unstable_scheduleCallback,mR=ur.unstable_cancelCallback,MC=ur.unstable_shouldYield,gR=ur.unstable_requestPaint,su=ur.unstable_now,ns=ur.unstable_getCurrentPriorityLevel,Dg=ur.unstable_ImmediatePriority,ov=ur.unstable_UserBlockingPriority,Zf=ur.unstable_NormalPriority,yR=ur.unstable_LowPriority,sv=ur.unstable_IdlePriority,bR=ur.log,Al=ur.unstable_setDisableYieldValue,rs=null,Zr=null,Ke=null,Ia=!1,or=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ua=Math.clz32?Math.clz32:He,Sg=Math.log,ro=Math.LN2,Cg=256,wg=4194304,Qr=2,Ol=8,ao=32,Ag=268435456,as=Math.random().toString(36).slice(2),oa="__reactFiber$"+as,Ya="__reactProps$"+as,is="__reactContainer$"+as,m1="__reactEvents$"+as,zC="__reactListeners$"+as,Qf="__reactHandles$"+as,Wf="__reactResources$"+as,Jf="__reactMarker$"+as,kC=new Set,Gi={},Ac={},PC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Og=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xg={},Tg={},ls=0,g1,y1,jC,b1,ed,FC,LC;Up.__reactDisabledLog=!0;var E1,cv,td=!1,fv=new(typeof WeakMap=="function"?WeakMap:Map),vi=null,Ka=!1,ER=/[\n"\\]/g,D1=!1,S1=!1,C1=!1,w1=!1,Bg=!1,A1=!1,dv=["value","defaultValue"],qC=!1,UC=/["'&<>\n\t]|^\s|\s$/,O1="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),_g="applet caption html table td th marquee object template foreignObject desc title".split(" "),Rg=_g.concat(["button"]),x1="dd dt li option optgroup p rp rt".split(" "),T1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},nd={},cu={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},io=/([A-Z])/g,lo=/^ms-/,hv=/^(?:webkit|moz|o)[A-Z]/,vv=/^-ms-/,us=/-(.)/g,HC=/;\s*$/,Oc={},xc={},$C=!1,B1=!1,pv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),mv="http://www.w3.org/1998/Math/MathML",rd="http://www.w3.org/2000/svg",Ng=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},_1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},fu={},R1=RegExp("^(aria)-[: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]*$"),Mg=RegExp("^(aria)[A-Z][: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]*$"),N1=!1,Sa={},gv=/^on./,u=/^on[^A-Z]/,c=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),d=RegExp("^(aria)[A-Z][: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]*$"),m=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,D=null,w=null,M=null,q=!1,ee=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pe=!1;if(ee)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){pe=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch{pe=!1}var ze=null,be=null,De=null,dt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ht=Vr(dt),nn=xt({},dt,{view:0,detail:0}),de=Vr(nn),se,ve,Ne,We=xt({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wp,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ne&&(Ne&&a.type==="mousemove"?(se=a.screenX-Ne.screenX,ve=a.screenY-Ne.screenY):ve=se=0,Ne=a),se)},movementY:function(a){return"movementY"in a?a.movementY:ve}}),Bt=Vr(We),st=xt({},We,{dataTransfer:0}),pt=Vr(st),Lr=xt({},nn,{relatedTarget:0}),Gt=Vr(Lr),os=xt({},dt,{animationName:0,elapsedTime:0,pseudoElement:0}),DR=Vr(os),Sce=xt({},dt,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Cce=Vr(Sce),wce=xt({},dt,{data:0}),t9=Vr(wce),Ace=t9,Oce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xce={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"},Tce={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Bce=xt({},nn,{key:function(a){if(a.key){var i=Oce[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=cf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?xce[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wp,charCode:function(a){return a.type==="keypress"?cf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?cf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),_ce=Vr(Bce),Rce=xt({},We,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n9=Vr(Rce),Nce=xt({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wp}),Mce=Vr(Nce),zce=xt({},dt,{propertyName:0,elapsedTime:0,pseudoElement:0}),kce=Vr(zce),Pce=xt({},We,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),jce=Vr(Pce),Fce=xt({},dt,{newState:0,oldState:0}),Lce=Vr(Fce),qce=[9,13,27,32],r9=229,SR=ee&&"CompositionEvent"in window,M1=null;ee&&"documentMode"in document&&(M1=document.documentMode);var Uce=ee&&"TextEvent"in window&&!M1,a9=ee&&(!SR||M1&&8<M1&&11>=M1),i9=32,l9=String.fromCharCode(i9),u9=!1,zg=!1,Hce={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},z1=null,k1=null,o9=!1;ee&&(o9=Mb("input")&&(!document.documentMode||9<document.documentMode));var pi=typeof Object.is=="function"?Object.is:uR,$ce=ee&&"documentMode"in document&&11>=document.documentMode,kg=null,CR=null,P1=null,wR=!1,Pg={animationend:Fu("Animation","AnimationEnd"),animationiteration:Fu("Animation","AnimationIteration"),animationstart:Fu("Animation","AnimationStart"),transitionrun:Fu("Transition","TransitionRun"),transitionstart:Fu("Transition","TransitionStart"),transitioncancel:Fu("Transition","TransitionCancel"),transitionend:Fu("Transition","TransitionEnd")},AR={},s9={};ee&&(s9=document.createElement("div").style,"AnimationEvent"in window||(delete Pg.animationend.animation,delete Pg.animationiteration.animation,delete Pg.animationstart.animation),"TransitionEvent"in window||delete Pg.transitionend.transition);var c9=Is("animationend"),f9=Is("animationiteration"),d9=Is("animationstart"),Vce=Is("transitionrun"),Gce=Is("transitionstart"),Ice=Is("transitioncancel"),h9=Is("transitionend"),v9=new Map,OR="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");OR.push("scrollEnd");var xR=new WeakMap,VC=1,Bc=2,du=[],jg=0,TR=0,ad={};Object.freeze(ad);var hu=null,Fg=null,Nn=0,Yce=1,Ca=2,Xa=8,uo=16,p9=64,m9=!1;try{var g9=Object.preventExtensions({})}catch{m9=!0}var Lg=[],qg=0,GC=null,IC=0,vu=[],pu=0,yv=null,_c=1,Rc="",mi=null,pr=null,rn=!1,Nc=!1,mu=null,bv=null,ss=!1,BR=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),y9=0;if(typeof performance=="object"&&typeof performance.now=="function")var Kce=performance,b9=function(){return Kce.now()};else{var Xce=Date;b9=function(){return Xce.now()}}var _R=Q(null),RR=Q(null),E9={},YC=null,Ug=null,Hg=!1,Zce=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(o,v){a.push(v)}};this.abort=function(){i.aborted=!0,a.forEach(function(o){return o()})}},Qce=ur.unstable_scheduleCallback,Wce=ur.unstable_NormalPriority,Wr={$$typeof:$i,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$g=ur.unstable_now,D9=-0,KC=-0,Ii=-1.1,Ev=-0,XC=!1,ZC=!1,j1=null,NR=0,Dv=0,Vg=null,S9=Ce.S;Ce.S=function(a,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&eC(a,i),S9!==null&&S9(a,i)};var Sv=Q(null),oo={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},F1=[],L1=[],q1=[],U1=[],H1=[],$1=[],Cv=new Set;oo.recordUnsafeLifecycleWarnings=function(a,i){Cv.has(a.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&F1.push(a),a.mode&Xa&&typeof i.UNSAFE_componentWillMount=="function"&&L1.push(a),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&q1.push(a),a.mode&Xa&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&U1.push(a),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&H1.push(a),a.mode&Xa&&typeof i.UNSAFE_componentWillUpdate=="function"&&$1.push(a))},oo.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<F1.length&&(F1.forEach(function(N){a.add($(N)||"Component"),Cv.add(N.type)}),F1=[]);var i=new Set;0<L1.length&&(L1.forEach(function(N){i.add($(N)||"Component"),Cv.add(N.type)}),L1=[]);var o=new Set;0<q1.length&&(q1.forEach(function(N){o.add($(N)||"Component"),Cv.add(N.type)}),q1=[]);var v=new Set;0<U1.length&&(U1.forEach(function(N){v.add($(N)||"Component"),Cv.add(N.type)}),U1=[]);var g=new Set;0<H1.length&&(H1.forEach(function(N){g.add($(N)||"Component"),Cv.add(N.type)}),H1=[]);var E=new Set;if(0<$1.length&&($1.forEach(function(N){E.add($(N)||"Component"),Cv.add(N.type)}),$1=[]),0<i.size){var T=S(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
226
+
227
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
228
+
229
+ Please update the following components: %s`,T)}0<v.size&&(T=S(v),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
230
+
231
+ * Move data fetching code or side effects to componentDidUpdate.
232
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
233
+
234
+ Please update the following components: %s`,T)),0<E.size&&(T=S(E),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
235
+
236
+ * Move data fetching code or side effects to componentDidUpdate.
237
+
238
+ Please update the following components: %s`,T)),0<a.size&&(T=S(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
239
+
240
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
241
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
242
+
243
+ Please update the following components: %s`,T)),0<o.size&&(T=S(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
244
+
245
+ * Move data fetching code or side effects to componentDidUpdate.
246
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
247
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
248
+
249
+ Please update the following components: %s`,T)),0<g.size&&(T=S(g),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
250
+
251
+ * Move data fetching code or side effects to componentDidUpdate.
252
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
253
+
254
+ Please update the following components: %s`,T))};var QC=new Map,C9=new Set;oo.recordLegacyContextWarning=function(a,i){for(var o=null,v=a;v!==null;)v.mode&Xa&&(o=v),v=v.return;o===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!C9.has(a.type)&&(v=QC.get(o),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(v===void 0&&(v=[],QC.set(o,v)),v.push(a))},oo.flushLegacyContextWarning=function(){QC.forEach(function(a){if(a.length!==0){var i=a[0],o=new Set;a.forEach(function(g){o.add($(g)||"Component"),C9.add(g.type)});var v=S(o);et(i,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
255
+
256
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
257
+
258
+ Please update the following components: %s
259
+
260
+ Learn more about this warning here: https://react.dev/link/legacy-context`,v)})}})},oo.discardPendingWarnings=function(){F1=[],L1=[],q1=[],U1=[],H1=[],$1=[],QC=new Map};var V1=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),w9=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),WC=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),MR={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},G1=null,JC=!1,gu=0,yu=1,gi=2,wa=4,Jr=8,A9=0,O9=1,x9=2,zR=3,id=!1,T9=!1,kR=null,PR=!1,Gg=Q(null),ew=Q(0),Ig,B9=new Set,_9=new Set,jR=new Set,R9=new Set,ld=0,Et=null,An=null,qr=null,tw=!1,Yg=!1,wv=!1,nw=0,I1=0,Mc=null,Jce=0,efe=25,Ae=null,bu=null,zc=-1,Y1=!1,rw={readContext:On,use:Hl,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useLayoutEffect:Hn,useInsertionEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useSyncExternalStore:Hn,useId:Hn,useHostTransitionStatus:Hn,useFormState:Hn,useActionState:Hn,useOptimistic:Hn,useMemoCache:Hn,useCacheRefresh:Hn},FR=null,N9=null,LR=null,M9=null,cs=null,so=null,aw=null;FR={readContext:function(a){return On(a)},use:Hl,useCallback:function(a,i){return Ae="useCallback",Tt(),Mi(i),wh(a,i)},useContext:function(a){return Ae="useContext",Tt(),On(a)},useEffect:function(a,i){return Ae="useEffect",Tt(),Mi(i),dm(a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",Tt(),Mi(o),vm(a,i,o)},useInsertionEffect:function(a,i){Ae="useInsertionEffect",Tt(),Mi(i),ji(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",Tt(),Mi(i),hm(a,i)},useMemo:function(a,i){Ae="useMemo",Tt(),Mi(i);var o=Ce.H;Ce.H=cs;try{return pm(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",Tt();var v=Ce.H;Ce.H=cs;try{return Qt(a,i,o)}finally{Ce.H=v}},useRef:function(a){return Ae="useRef",Tt(),Ch(a)},useState:function(a){Ae="useState",Tt();var i=Ce.H;Ce.H=cs;try{return $u(a)}finally{Ce.H=i}},useDebugValue:function(){Ae="useDebugValue",Tt()},useDeferredValue:function(a,i){return Ae="useDeferredValue",Tt(),mm(a,i)},useTransition:function(){return Ae="useTransition",Tt(),Il()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",Tt(),Hu(a,i,o)},useId:function(){return Ae="useId",Tt(),Yl()},useFormState:function(a,i){return Ae="useFormState",Tt(),mf(),Sf(a,i)},useActionState:function(a,i){return Ae="useActionState",Tt(),Sf(a,i)},useOptimistic:function(a){return Ae="useOptimistic",Tt(),El(a)},useHostTransitionStatus:La,useMemoCache:dr,useCacheRefresh:function(){return Ae="useCacheRefresh",Tt(),ac()}},N9={readContext:function(a){return On(a)},use:Hl,useCallback:function(a,i){return Ae="useCallback",Le(),wh(a,i)},useContext:function(a){return Ae="useContext",Le(),On(a)},useEffect:function(a,i){return Ae="useEffect",Le(),dm(a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",Le(),vm(a,i,o)},useInsertionEffect:function(a,i){Ae="useInsertionEffect",Le(),ji(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",Le(),hm(a,i)},useMemo:function(a,i){Ae="useMemo",Le();var o=Ce.H;Ce.H=cs;try{return pm(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",Le();var v=Ce.H;Ce.H=cs;try{return Qt(a,i,o)}finally{Ce.H=v}},useRef:function(a){return Ae="useRef",Le(),Ch(a)},useState:function(a){Ae="useState",Le();var i=Ce.H;Ce.H=cs;try{return $u(a)}finally{Ce.H=i}},useDebugValue:function(){Ae="useDebugValue",Le()},useDeferredValue:function(a,i){return Ae="useDeferredValue",Le(),mm(a,i)},useTransition:function(){return Ae="useTransition",Le(),Il()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",Le(),Hu(a,i,o)},useId:function(){return Ae="useId",Le(),Yl()},useActionState:function(a,i){return Ae="useActionState",Le(),Sf(a,i)},useFormState:function(a,i){return Ae="useFormState",Le(),mf(),Sf(a,i)},useOptimistic:function(a){return Ae="useOptimistic",Le(),El(a)},useHostTransitionStatus:La,useMemoCache:dr,useCacheRefresh:function(){return Ae="useCacheRefresh",Le(),ac()}},LR={readContext:function(a){return On(a)},use:Hl,useCallback:function(a,i){return Ae="useCallback",Le(),nc(a,i)},useContext:function(a){return Ae="useContext",Le(),On(a)},useEffect:function(a,i){Ae="useEffect",Le(),Cr(2048,Jr,a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",Le(),Gl(a,i,o)},useInsertionEffect:function(a,i){return Ae="useInsertionEffect",Le(),Cr(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",Le(),Cr(4,wa,a,i)},useMemo:function(a,i){Ae="useMemo",Le();var o=Ce.H;Ce.H=so;try{return Uo(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",Le();var v=Ce.H;Ce.H=so;try{return ki(a,i,o)}finally{Ce.H=v}},useRef:function(){return Ae="useRef",Le(),qt().memoizedState},useState:function(){Ae="useState",Le();var a=Ce.H;Ce.H=so;try{return ki(en)}finally{Ce.H=a}},useDebugValue:function(){Ae="useDebugValue",Le()},useDeferredValue:function(a,i){return Ae="useDeferredValue",Le(),Ah(a,i)},useTransition:function(){return Ae="useTransition",Le(),bm()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",Le(),bh(a,i,o)},useId:function(){return Ae="useId",Le(),qt().memoizedState},useFormState:function(a){return Ae="useFormState",Le(),mf(),fm(a)},useActionState:function(a){return Ae="useActionState",Le(),fm(a)},useOptimistic:function(a,i){return Ae="useOptimistic",Le(),Vu(a,i)},useHostTransitionStatus:La,useMemoCache:dr,useCacheRefresh:function(){return Ae="useCacheRefresh",Le(),qt().memoizedState}},M9={readContext:function(a){return On(a)},use:Hl,useCallback:function(a,i){return Ae="useCallback",Le(),nc(a,i)},useContext:function(a){return Ae="useContext",Le(),On(a)},useEffect:function(a,i){Ae="useEffect",Le(),Cr(2048,Jr,a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",Le(),Gl(a,i,o)},useInsertionEffect:function(a,i){return Ae="useInsertionEffect",Le(),Cr(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",Le(),Cr(4,wa,a,i)},useMemo:function(a,i){Ae="useMemo",Le();var o=Ce.H;Ce.H=aw;try{return Uo(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",Le();var v=Ce.H;Ce.H=aw;try{return tc(a,i,o)}finally{Ce.H=v}},useRef:function(){return Ae="useRef",Le(),qt().memoizedState},useState:function(){Ae="useState",Le();var a=Ce.H;Ce.H=aw;try{return tc(en)}finally{Ce.H=a}},useDebugValue:function(){Ae="useDebugValue",Le()},useDeferredValue:function(a,i){return Ae="useDeferredValue",Le(),gm(a,i)},useTransition:function(){return Ae="useTransition",Le(),Em()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",Le(),bh(a,i,o)},useId:function(){return Ae="useId",Le(),qt().memoizedState},useFormState:function(a){return Ae="useFormState",Le(),mf(),Cf(a)},useActionState:function(a){return Ae="useActionState",Le(),Cf(a)},useOptimistic:function(a,i){return Ae="useOptimistic",Le(),cm(a,i)},useHostTransitionStatus:La,useMemoCache:dr,useCacheRefresh:function(){return Ae="useCacheRefresh",Le(),qt().memoizedState}},cs={readContext:function(a){return y(),On(a)},use:function(a){return p(),Hl(a)},useCallback:function(a,i){return Ae="useCallback",p(),Tt(),wh(a,i)},useContext:function(a){return Ae="useContext",p(),Tt(),On(a)},useEffect:function(a,i){return Ae="useEffect",p(),Tt(),dm(a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",p(),Tt(),vm(a,i,o)},useInsertionEffect:function(a,i){Ae="useInsertionEffect",p(),Tt(),ji(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",p(),Tt(),hm(a,i)},useMemo:function(a,i){Ae="useMemo",p(),Tt();var o=Ce.H;Ce.H=cs;try{return pm(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",p(),Tt();var v=Ce.H;Ce.H=cs;try{return Qt(a,i,o)}finally{Ce.H=v}},useRef:function(a){return Ae="useRef",p(),Tt(),Ch(a)},useState:function(a){Ae="useState",p(),Tt();var i=Ce.H;Ce.H=cs;try{return $u(a)}finally{Ce.H=i}},useDebugValue:function(){Ae="useDebugValue",p(),Tt()},useDeferredValue:function(a,i){return Ae="useDeferredValue",p(),Tt(),mm(a,i)},useTransition:function(){return Ae="useTransition",p(),Tt(),Il()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",p(),Tt(),Hu(a,i,o)},useId:function(){return Ae="useId",p(),Tt(),Yl()},useFormState:function(a,i){return Ae="useFormState",p(),Tt(),Sf(a,i)},useActionState:function(a,i){return Ae="useActionState",p(),Tt(),Sf(a,i)},useOptimistic:function(a){return Ae="useOptimistic",p(),Tt(),El(a)},useMemoCache:function(a){return p(),dr(a)},useHostTransitionStatus:La,useCacheRefresh:function(){return Ae="useCacheRefresh",Tt(),ac()}},so={readContext:function(a){return y(),On(a)},use:function(a){return p(),Hl(a)},useCallback:function(a,i){return Ae="useCallback",p(),Le(),nc(a,i)},useContext:function(a){return Ae="useContext",p(),Le(),On(a)},useEffect:function(a,i){Ae="useEffect",p(),Le(),Cr(2048,Jr,a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",p(),Le(),Gl(a,i,o)},useInsertionEffect:function(a,i){return Ae="useInsertionEffect",p(),Le(),Cr(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",p(),Le(),Cr(4,wa,a,i)},useMemo:function(a,i){Ae="useMemo",p(),Le();var o=Ce.H;Ce.H=so;try{return Uo(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",p(),Le();var v=Ce.H;Ce.H=so;try{return ki(a,i,o)}finally{Ce.H=v}},useRef:function(){return Ae="useRef",p(),Le(),qt().memoizedState},useState:function(){Ae="useState",p(),Le();var a=Ce.H;Ce.H=so;try{return ki(en)}finally{Ce.H=a}},useDebugValue:function(){Ae="useDebugValue",p(),Le()},useDeferredValue:function(a,i){return Ae="useDeferredValue",p(),Le(),Ah(a,i)},useTransition:function(){return Ae="useTransition",p(),Le(),bm()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",p(),Le(),bh(a,i,o)},useId:function(){return Ae="useId",p(),Le(),qt().memoizedState},useFormState:function(a){return Ae="useFormState",p(),Le(),fm(a)},useActionState:function(a){return Ae="useActionState",p(),Le(),fm(a)},useOptimistic:function(a,i){return Ae="useOptimistic",p(),Le(),Vu(a,i)},useMemoCache:function(a){return p(),dr(a)},useHostTransitionStatus:La,useCacheRefresh:function(){return Ae="useCacheRefresh",Le(),qt().memoizedState}},aw={readContext:function(a){return y(),On(a)},use:function(a){return p(),Hl(a)},useCallback:function(a,i){return Ae="useCallback",p(),Le(),nc(a,i)},useContext:function(a){return Ae="useContext",p(),Le(),On(a)},useEffect:function(a,i){Ae="useEffect",p(),Le(),Cr(2048,Jr,a,i)},useImperativeHandle:function(a,i,o){return Ae="useImperativeHandle",p(),Le(),Gl(a,i,o)},useInsertionEffect:function(a,i){return Ae="useInsertionEffect",p(),Le(),Cr(4,gi,a,i)},useLayoutEffect:function(a,i){return Ae="useLayoutEffect",p(),Le(),Cr(4,wa,a,i)},useMemo:function(a,i){Ae="useMemo",p(),Le();var o=Ce.H;Ce.H=so;try{return Uo(a,i)}finally{Ce.H=o}},useReducer:function(a,i,o){Ae="useReducer",p(),Le();var v=Ce.H;Ce.H=so;try{return tc(a,i,o)}finally{Ce.H=v}},useRef:function(){return Ae="useRef",p(),Le(),qt().memoizedState},useState:function(){Ae="useState",p(),Le();var a=Ce.H;Ce.H=so;try{return tc(en)}finally{Ce.H=a}},useDebugValue:function(){Ae="useDebugValue",p(),Le()},useDeferredValue:function(a,i){return Ae="useDeferredValue",p(),Le(),gm(a,i)},useTransition:function(){return Ae="useTransition",p(),Le(),Em()},useSyncExternalStore:function(a,i,o){return Ae="useSyncExternalStore",p(),Le(),bh(a,i,o)},useId:function(){return Ae="useId",p(),Le(),qt().memoizedState},useFormState:function(a){return Ae="useFormState",p(),Le(),Cf(a)},useActionState:function(a){return Ae="useActionState",p(),Le(),Cf(a)},useOptimistic:function(a,i){return Ae="useOptimistic",p(),Le(),cm(a,i)},useMemoCache:function(a){return p(),dr(a)},useHostTransitionStatus:La,useCacheRefresh:function(){return Ae="useCacheRefresh",Le(),qt().memoizedState}};var z9={react_stack_bottom_frame:function(a,i,o){var v=Ka;Ka=!0;try{return a(i,o)}finally{Ka=v}}},qR=z9.react_stack_bottom_frame.bind(z9),k9={react_stack_bottom_frame:function(a){var i=Ka;Ka=!0;try{return a.render()}finally{Ka=i}}},P9=k9.react_stack_bottom_frame.bind(k9),j9={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(o){vt(a,a.return,o)}}},UR=j9.react_stack_bottom_frame.bind(j9),F9={react_stack_bottom_frame:function(a,i,o,v,g){try{i.componentDidUpdate(o,v,g)}catch(E){vt(a,a.return,E)}}},L9=F9.react_stack_bottom_frame.bind(F9),q9={react_stack_bottom_frame:function(a,i){var o=i.stack;a.componentDidCatch(i.value,{componentStack:o!==null?o:""})}},tfe=q9.react_stack_bottom_frame.bind(q9),U9={react_stack_bottom_frame:function(a,i,o){try{o.componentWillUnmount()}catch(v){vt(a,i,v)}}},H9=U9.react_stack_bottom_frame.bind(U9),$9={react_stack_bottom_frame:function(a){a.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",a.resourceKind);var i=a.create;return a=a.inst,i=i(),a.destroy=i}},nfe=$9.react_stack_bottom_frame.bind($9),V9={react_stack_bottom_frame:function(a,i,o){try{o()}catch(v){vt(a,i,v)}}},rfe=V9.react_stack_bottom_frame.bind(V9),G9={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},ud=G9.react_stack_bottom_frame.bind(G9),Kg=null,K1=0,_t=null,HR,I9=HR=!1,Y9={},K9={},X9={};h=function(a,i,o){if(o!==null&&typeof o=="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");o._store.validated=1;var v=$(a),g=v||"null";if(!Y9[g]){Y9[g]=!0,o=o._owner,a=a._debugOwner;var E="";a&&typeof a.tag=="number"&&(g=$(a))&&(E=`
261
+
262
+ Check the render method of \``+g+"`."),E||v&&(E=`
263
+
264
+ Check the top-level render call using <`+v+">.");var T="";o!=null&&a!==o&&(v=null,typeof o.tag=="number"?v=$(o):typeof o.name=="string"&&(v=o.name),v&&(T=" It was passed a child from "+v+".")),et(i,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',E,T)})}}};var Xg=Bh(!0),Z9=Bh(!1),Eu=Q(null),fs=null,Zg=1,X1=2,ea=Q(0),Q9={},W9=new Set,J9=new Set,eU=new Set,tU=new Set,nU=new Set,rU=new Set,aU=new Set,iU=new Set,lU=new Set,uU=new Set;Object.freeze(Q9);var $R={enqueueSetState:function(a,i,o){a=a._reactInternals;var v=Ha(a),g=ql(v);g.payload=i,o!=null&&(f0(o),g.callback=o),i=gl(a,g,v),i!==null&&(rr(i,a,v),Po(i,a,v)),Ue(a,v)},enqueueReplaceState:function(a,i,o){a=a._reactInternals;var v=Ha(a),g=ql(v);g.tag=O9,g.payload=i,o!=null&&(f0(o),g.callback=o),i=gl(a,g,v),i!==null&&(rr(i,a,v),Po(i,a,v)),Ue(a,v)},enqueueForceUpdate:function(a,i){a=a._reactInternals;var o=Ha(a),v=ql(o);v.tag=x9,i!=null&&(f0(i),v.callback=i),i=gl(a,v,o),i!==null&&(rr(i,a,o),Po(i,a,o)),Ke!==null&&typeof Ke.markForceUpdateScheduled=="function"&&Ke.markForceUpdateScheduled(a,o)}},VR=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Qg=null,GR=null,oU=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),sa=!1,sU={},cU={},fU={},dU={},Wg=!1,hU={},IR={},YR={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},vU=!1,pU=null;pU=new Set;var kc=!1,Or=!1,KR=!1,mU=typeof WeakSet=="function"?WeakSet:Set,ca=null,Jg=null,ey=null,Ur=null,Yi=!1,co=null,Z1=8192,afe={getCacheForType:function(a){var i=On(Wr),o=i.data.get(a);return o===void 0&&(o=a(),i.data.set(a,o)),o},getOwner:function(){return vi}};if(typeof Symbol=="function"&&Symbol.for){var Q1=Symbol.for;Q1("selector.component"),Q1("selector.has_pseudo_class"),Q1("selector.role"),Q1("selector.test_id"),Q1("selector.text")}var ife=[],lfe=typeof WeakMap=="function"?WeakMap:Map,xl=0,yi=2,fo=4,Pc=0,W1=1,ty=2,XR=3,Av=4,iw=6,gU=5,mn=xl,xn=null,Pt=null,jt=0,Ki=0,J1=1,Ov=2,eE=3,yU=4,ZR=5,ny=6,tE=7,QR=8,xv=9,En=Ki,Tl=null,od=!1,ry=!1,WR=!1,ds=0,mr=Pc,sd=0,cd=0,JR=0,Bl=0,Tv=0,nE=null,bi=null,lw=!1,eN=0,bU=300,uw=1/0,EU=500,rE=null,fd=null,ufe=0,ofe=1,sfe=2,Bv=0,DU=1,SU=2,CU=3,cfe=4,tN=5,Aa=0,dd=null,ay=null,hd=0,nN=0,rN=null,wU=null,ffe=50,aE=0,aN=null,iN=!1,ow=!1,dfe=50,_v=0,iE=null,iy=!1,sw=null,AU=!1,OU=new Set,hfe={},cw=null,ly=null,lN=!1,uN=!1,fw=!1,oN=!1,Rv=0,sN={};(function(){for(var a=0;a<OR.length;a++){var i=OR[a],o=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),dl(o,"on"+i)}dl(c9,"onAnimationEnd"),dl(f9,"onAnimationIteration"),dl(d9,"onAnimationStart"),dl("dblclick","onDoubleClick"),dl("focusin","onFocus"),dl("focusout","onBlur"),dl(Vce,"onTransitionRun"),dl(Gce,"onTransitionStart"),dl(Ice,"onTransitionCancel"),dl(h9,"onTransitionEnd")})(),zs("onMouseEnter",["mouseout","mouseover"]),zs("onMouseLeave",["mouseout","mouseover"]),zs("onPointerEnter",["pointerout","pointerover"]),zs("onPointerLeave",["pointerout","pointerover"]),So("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),So("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),So("onBeforeInput",["compositionend","keypress","textInput","paste"]),So("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),So("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),So("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lE="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(" "),cN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lE)),dw="_reactListening"+Math.random().toString(36).slice(2),xU=!1,TU=!1,hw=!1,BU=!1,vw=!1,pw=!1,_U=!1,mw={},vfe=/\r\n?/g,pfe=/\u0000|\uFFFD/g,Nv="http://www.w3.org/1999/xlink",fN="http://www.w3.org/XML/1998/namespace",mfe="javascript:throw new Error('React form unexpectedly submitted.')",gfe="suppressHydrationWarning",gw="$",yw="/$",jc="$?",uE="$!",yfe=1,bfe=2,Efe=4,dN="F!",RU="F",NU="complete",Dfe="style",Fc=0,uy=1,bw=2,hN=null,vN=null,MU={dialog:!0,webview:!0},pN=null,zU=typeof setTimeout=="function"?setTimeout:void 0,Sfe=typeof clearTimeout=="function"?clearTimeout:void 0,Mv=-1,kU=typeof Promise=="function"?Promise:void 0,Cfe=typeof queueMicrotask=="function"?queueMicrotask:typeof kU<"u"?function(a){return kU.resolve(null).then(a).catch(Q0)}:zU,mN=null,zv=0,oE=1,PU=2,jU=3,Du=4,Su=new Map,FU=new Set,Lc=mt.d;mt.d={f:function(){var a=Lc.f(),i=vc();return a||i},r:function(a){var i=pa(a);i!==null&&i.tag===5&&i.type==="form"?o0(i):Lc.r(a)},D:function(a){Lc.D(a),SC("dns-prefetch",a,null)},C:function(a,i){Lc.C(a,i),SC("preconnect",a,i)},L:function(a,i,o){Lc.L(a,i,o);var v=oy;if(v&&a&&i){var g='link[rel="preload"][as="'+ii(i)+'"]';i==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+ii(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+ii(o.imageSizes)+'"]')):g+='[href="'+ii(a)+'"]';var E=g;switch(i){case"style":E=Qo(a);break;case"script":E=Dc(a)}Su.has(E)||(a=xt({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:a,as:i},o),Su.set(E,a),v.querySelector(g)!==null||i==="style"&&v.querySelector(uu(E))||i==="script"&&v.querySelector(Sc(E))||(i=v.createElement("link"),ir(i,"link",a),Mr(i),v.head.appendChild(i)))}},m:function(a,i){Lc.m(a,i);var o=oy;if(o&&a){var v=i&&typeof i.as=="string"?i.as:"script",g='link[rel="modulepreload"][as="'+ii(v)+'"][href="'+ii(a)+'"]',E=g;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Dc(a)}if(!Su.has(E)&&(a=xt({rel:"modulepreload",href:a},i),Su.set(E,a),o.querySelector(g)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Sc(E)))return}v=o.createElement("link"),ir(v,"link",a),Mr(v),o.head.appendChild(v)}}},X:function(a,i){Lc.X(a,i);var o=oy;if(o&&a){var v=ai(o).hoistableScripts,g=Dc(a),E=v.get(g);E||(E=o.querySelector(Sc(g)),E||(a=xt({src:a,async:!0},i),(i=Su.get(g))&&i1(a,i),E=o.createElement("script"),Mr(E),ir(E,"link",a),o.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},v.set(g,E))}},S:function(a,i,o){Lc.S(a,i,o);var v=oy;if(v&&a){var g=ai(v).hoistableStyles,E=Qo(a);i=i||"default";var T=g.get(E);if(!T){var N={loading:zv,preload:null};if(T=v.querySelector(uu(E)))N.loading=oE|Du;else{a=xt({rel:"stylesheet",href:a,"data-precedence":i},o),(o=Su.get(E))&&a1(a,o);var V=T=v.createElement("link");Mr(V),ir(V,"link",a),V._p=new Promise(function(X,Ee){V.onload=X,V.onerror=Ee}),V.addEventListener("load",function(){N.loading|=oE}),V.addEventListener("error",function(){N.loading|=PU}),N.loading|=Du,fg(T,i,v)}T={type:"stylesheet",instance:T,count:1,state:N},g.set(E,T)}}},M:function(a,i){Lc.M(a,i);var o=oy;if(o&&a){var v=ai(o).hoistableScripts,g=Dc(a),E=v.get(g);E||(E=o.querySelector(Sc(g)),E||(a=xt({src:a,async:!0,type:"module"},i),(i=Su.get(g))&&i1(a,i),E=o.createElement("script"),Mr(E),ir(E,"link",a),o.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},v.set(g,E))}}};var oy=typeof document>"u"?null:document,Ew=null,sE=null,gN=null,Dw=null,kv=pR,cE={$$typeof:$i,Provider:null,Consumer:null,_currentValue:kv,_currentValue2:kv,_threadCount:0},LU="%c%s%c ",qU="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",UU="",Sw=" ",wfe=Function.prototype.bind,HU=!1,$U=null,VU=null,GU=null,IU=null,YU=null,KU=null,XU=null,ZU=null,QU=null;$U=function(a,i,o,v){i=e(a,i),i!==null&&(o=t(i.memoizedState,o,0,v),i.memoizedState=o,i.baseState=o,a.memoizedProps=xt({},a.memoizedProps),o=ka(a,2),o!==null&&rr(o,a,2))},VU=function(a,i,o){i=e(a,i),i!==null&&(o=l(i.memoizedState,o,0),i.memoizedState=o,i.baseState=o,a.memoizedProps=xt({},a.memoizedProps),o=ka(a,2),o!==null&&rr(o,a,2))},GU=function(a,i,o,v){i=e(a,i),i!==null&&(o=n(i.memoizedState,o,v),i.memoizedState=o,i.baseState=o,a.memoizedProps=xt({},a.memoizedProps),o=ka(a,2),o!==null&&rr(o,a,2))},IU=function(a,i,o){a.pendingProps=t(a.memoizedProps,i,0,o),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=ka(a,2),i!==null&&rr(i,a,2)},YU=function(a,i){a.pendingProps=l(a.memoizedProps,i,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=ka(a,2),i!==null&&rr(i,a,2)},KU=function(a,i,o){a.pendingProps=n(a.memoizedProps,i,o),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=ka(a,2),i!==null&&rr(i,a,2)},XU=function(a){var i=ka(a,2);i!==null&&rr(i,a,2)},ZU=function(a){f=a},QU=function(a){s=a};var Cw=!0,ww=null,yN=!1,vd=null,pd=null,md=null,fE=new Map,dE=new Map,gd=[],Afe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Aw=null;if(nv.prototype.render=gg.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):B(o[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=a;var v=i.current,g=Ha(v);pn(v,g,o,i,null,null)},nv.prototype.unmount=gg.prototype.unmount=function(){var a=arguments;if(typeof a[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),a=this._internalRoot,a!==null){this._internalRoot=null;var i=a.containerInfo;(mn&(yi|fo))!==xl&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),pn(a.current,2,null,a,null,null),vc(),i[is]=null}},nv.prototype.unstable_scheduleHydration=function(a){if(a){var i=Ns();a={blockedOn:null,target:a,priority:i};for(var o=0;o<gd.length&&i!==0&&i<gd[o].priority;o++);gd.splice(o,0,a),o===0&&TC(a)}},(function(){var a=rv.version;if(a!=="19.1.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
265
+ - react: `+(a+`
266
+ - react-dom: 19.1.1
267
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),mt.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));return a=P(i),a=a!==null?L(a):null,a=a===null?null:a.stateNode,a},!(function(){var a={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Ce,reconcilerVersion:"19.1.1"};return a.overrideHookState=$U,a.overrideHookStateDeletePath=VU,a.overrideHookStateRenamePath=GU,a.overrideProps=IU,a.overridePropsDeletePath=YU,a.overridePropsRenamePath=KU,a.scheduleUpdate=XU,a.setErrorHandler=ZU,a.setSuspenseHandler=QU,a.scheduleRefresh=x,a.scheduleRoot=A,a.setRefreshHandler=_,a.getCurrentFiber=fR,a.getLaneLabelMap=dR,a.injectProfilingHooks=Qe,Xe(a)})()&&ee&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var WU=window.location.protocol;/^(https?|file):$/.test(WU)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(WU==="file:"?`
268
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}dy.createRoot=function(a,i){if(!B(a))throw Error("Target container is not a DOM element.");RC(a);var o=!1,v="",g=d0,E=lC,T=wm,N=null;return i!=null&&(i.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===es&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
269
+
270
+ let root = createRoot(domContainer);
271
+ root.render(<App />);`),i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(v=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(N=i.unstable_transitionCallbacks)),i=o1(a,1,!1,null,null,o,v,g,E,T,N,null),a[is]=i.current,V0(a),new gg(i)},dy.hydrateRoot=function(a,i,o){if(!B(a))throw Error("Target container is not a DOM element.");RC(a),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var v=!1,g="",E=d0,T=lC,N=wm,V=null,X=null;return o!=null&&(o.unstable_strictMode===!0&&(v=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(E=o.onUncaughtError),o.onCaughtError!==void 0&&(T=o.onCaughtError),o.onRecoverableError!==void 0&&(N=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(V=o.unstable_transitionCallbacks),o.formState!==void 0&&(X=o.formState)),i=o1(a,1,!0,i,o??null,v,g,E,T,N,V,X),i.context=s1(null),o=i.current,v=Ha(o),v=Dn(v),g=ql(v),g.callback=null,gl(o,g,v),o=v,i.current.lanes=o,Jt(i,o),qi(i),a[is]=i.current,V0(a),new nv(i)},dy.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),dy}var _N;function lH(){if(_N)return pE.exports;_N=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),pE.exports=aH()):pE.exports=iH(),pE.exports}var uH=lH(),Tw,RN;function oH(){if(RN)return Tw;RN=1,Tw=l;var e="֑-߿יִ-﷽ﹰ-ﻼ",t="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",n=new RegExp("^[^"+t+"]*["+e+"]"),r=new RegExp("^[^"+e+"]*["+t+"]");function l(s){return s=String(s||""),n.test(s)?"rtl":r.test(s)?"ltr":"neutral"}return Tw}var sH=oH();const NN=fa(sH);var Bw,MN;function Ei(){if(MN)return Bw;MN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Bw=e,Bw}var _w,zN;function kN(){if(zN)return _w;zN=1;var e=typeof hE=="object"&&hE&&hE.Object===Object&&hE;return _w=e,_w}var Rw,PN;function Cu(){if(PN)return Rw;PN=1;var e=kN(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Rw=n,Rw}var Nw,jN;function cH(){if(jN)return Nw;jN=1;var e=Cu(),t=function(){return e.Date.now()};return Nw=t,Nw}var Mw,FN;function fH(){if(FN)return Mw;FN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Mw=t,Mw}var zw,LN;function dH(){if(LN)return zw;LN=1;var e=fH(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return zw=n,zw}var kw,qN;function Pv(){if(qN)return kw;qN=1;var e=Cu(),t=e.Symbol;return kw=t,kw}var Pw,UN;function hH(){if(UN)return Pw;UN=1;var e=Pv(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,l=e?e.toStringTag:void 0;function s(f){var h=n.call(f,l),p=f[l];try{f[l]=void 0;var y=!0}catch{}var b=r.call(f);return y&&(h?f[l]=p:delete f[l]),b}return Pw=s,Pw}var jw,HN;function vH(){if(HN)return jw;HN=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return jw=n,jw}var Fw,$N;function jv(){if($N)return Fw;$N=1;var e=Pv(),t=hH(),n=vH(),r="[object Null]",l="[object Undefined]",s=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?l:r:s&&s in Object(h)?t(h):n(h)}return Fw=f,Fw}var Lw,VN;function vs(){if(VN)return Lw;VN=1;function e(t){return t!=null&&typeof t=="object"}return Lw=e,Lw}var qw,GN;function gE(){if(GN)return qw;GN=1;var e=jv(),t=vs(),n="[object Symbol]";function r(l){return typeof l=="symbol"||t(l)&&e(l)==n}return qw=r,qw}var Uw,IN;function pH(){if(IN)return Uw;IN=1;var e=dH(),t=Ei(),n=gE(),r=NaN,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function p(y){if(typeof y=="number")return y;if(n(y))return r;if(t(y)){var b=typeof y.valueOf=="function"?y.valueOf():y;y=t(b)?b+"":b}if(typeof y!="string")return y===0?y:+y;y=e(y);var S=s.test(y);return S||f.test(y)?h(y.slice(2),S?2:8):l.test(y)?r:+y}return Uw=p,Uw}var Hw,YN;function KN(){if(YN)return Hw;YN=1;var e=Ei(),t=cH(),n=pH(),r="Expected a function",l=Math.max,s=Math.min;function f(h,p,y){var b,S,C,A,x,_,B=0,R=!1,O=!1,j=!0;if(typeof h!="function")throw new TypeError(r);p=n(p)||0,e(y)&&(R=!!y.leading,O="maxWait"in y,C=O?l(n(y.maxWait)||0,p):C,j="trailing"in y?!!y.trailing:j);function P(K){var W=b,ne=S;return b=S=void 0,B=K,A=h.apply(ne,W),A}function L(K){return B=K,x=setTimeout(z,p),R?P(K):A}function Y(K){var W=K-_,ne=K-B,U=p-W;return O?s(U,C-ne):U}function G(K){var W=K-_,ne=K-B;return _===void 0||W>=p||W<0||O&&ne>=C}function z(){var K=t();if(G(K))return $(K);x=setTimeout(z,Y(K))}function $(K){return x=void 0,j&&b?P(K):(b=S=void 0,A)}function Q(){x!==void 0&&clearTimeout(x),B=0,b=_=S=x=void 0}function I(){return x===void 0?A:$(t())}function H(){var K=t(),W=G(K);if(b=arguments,S=this,_=K,W){if(x===void 0)return L(_);if(O)return clearTimeout(x),x=setTimeout(z,p),P(_)}return x===void 0&&(x=setTimeout(z,p)),A}return H.cancel=Q,H.flush=I,H}return Hw=f,Hw}var mH=KN();const gH=fa(mH);var $w,XN;function yH(){if(XN)return $w;XN=1;var e=KN(),t=Ei(),n="Expected a function";function r(l,s,f){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(n);return t(f)&&(h="leading"in f?!!f.leading:h,p="trailing"in f?!!f.trailing:p),e(l,s,{leading:h,maxWait:s,trailing:p})}return $w=r,$w}var bH=yH();const EH=fa(bH),ZN=e=>typeof e=="object"&&e!=null&&e.nodeType===1,QN=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",yE=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return QN(n.overflowY,t)||QN(n.overflowX,t)||(r=>{const l=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!l&&(l.clientHeight<r.scrollHeight||l.clientWidth<r.scrollWidth)})(e)}return!1},bE=(e,t,n,r,l,s,f,h)=>s<e&&f>t||s>e&&f<t?0:s<=e&&h<=n||f>=t&&h>=n?s-e-r:f>t&&h<n||s<e&&h>n?f-t+l:0,DH=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},WN=(e,t)=>{var n,r,l,s;if(typeof document>"u")return[];const{scrollMode:f,block:h,inline:p,boundary:y,skipOverflowHiddenElements:b}=t,S=typeof y=="function"?y:U=>U!==y;if(!ZN(e))throw new TypeError("Invalid target");const C=document.scrollingElement||document.documentElement,A=[];let x=e;for(;ZN(x)&&S(x);){if(x=DH(x),x===C){A.push(x);break}x!=null&&x===document.body&&yE(x)&&!yE(document.documentElement)||x!=null&&yE(x,b)&&A.push(x)}const _=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,B=(s=(l=window.visualViewport)==null?void 0:l.height)!=null?s:innerHeight,{scrollX:R,scrollY:O}=window,{height:j,width:P,top:L,right:Y,bottom:G,left:z}=e.getBoundingClientRect(),{top:$,right:Q,bottom:I,left:H}=(U=>{const Z=window.getComputedStyle(U);return{top:parseFloat(Z.scrollMarginTop)||0,right:parseFloat(Z.scrollMarginRight)||0,bottom:parseFloat(Z.scrollMarginBottom)||0,left:parseFloat(Z.scrollMarginLeft)||0}})(e);let K=h==="start"||h==="nearest"?L-$:h==="end"?G+I:L+j/2-$+I,W=p==="center"?z+P/2-H+Q:p==="end"?Y+Q:z-H;const ne=[];for(let U=0;U<A.length;U++){const Z=A[U],{height:J,width:he,top:ie,right:xe,bottom:Re,left:me}=Z.getBoundingClientRect();if(f==="if-needed"&&L>=0&&z>=0&&G<=B&&Y<=_&&(Z===C&&!yE(Z)||L>=ie&&G<=Re&&z>=me&&Y<=xe))return ne;const ke=getComputedStyle(Z),Xe=parseInt(ke.borderLeftWidth,10),Ye=parseInt(ke.borderTopWidth,10),Qe=parseInt(ke.borderRightWidth,10),ft=parseInt(ke.borderBottomWidth,10);let ce=0,le=0;const ue="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-Xe-Qe:0,fe="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-Ye-ft:0,Ue="offsetWidth"in Z?Z.offsetWidth===0?0:he/Z.offsetWidth:0,He="offsetHeight"in Z?Z.offsetHeight===0?0:J/Z.offsetHeight:0;if(C===Z)ce=h==="start"?K:h==="end"?K-B:h==="nearest"?bE(O,O+B,B,Ye,ft,O+K,O+K+j,j):K-B/2,le=p==="start"?W:p==="center"?W-_/2:p==="end"?W-_:bE(R,R+_,_,Xe,Qe,R+W,R+W+P,P),ce=Math.max(0,ce+O),le=Math.max(0,le+R);else{ce=h==="start"?K-ie-Ye:h==="end"?K-Re+ft+fe:h==="nearest"?bE(ie,Re,J,Ye,ft+fe,K,K+j,j):K-(ie+J/2)+fe/2,le=p==="start"?W-me-Xe:p==="center"?W-(me+he/2)+ue/2:p==="end"?W-xe+Qe+ue:bE(me,xe,he,Xe,Qe+ue,W,W+P,P);const{scrollLeft:ut,scrollTop:yt}=Z;ce=He===0?0:Math.max(0,Math.min(yt+ce/He,Z.scrollHeight-J/He+fe)),le=Ue===0?0:Math.max(0,Math.min(ut+le/Ue,Z.scrollWidth-he/Ue+ue)),K+=yt-ce,W+=ut-le}ne.push({el:Z,top:ce,left:le})}return ne},SH=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function CH(e,t){if(!e.isConnected||!(l=>{let s=l;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;const n=(l=>{const s=window.getComputedStyle(l);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((l=>typeof l=="object"&&typeof l.behavior=="function")(t))return t.behavior(WN(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:l,top:s,left:f}of WN(e,SH(t))){const h=s-n.top+n.bottom,p=f-n.left+n.right;l.scroll({top:h,left:p,behavior:r})}}var JN=Symbol.for("immer-nothing"),eM=Symbol.for("immer-draftable"),Xi=Symbol.for("immer-state"),wH=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Di(e,...t){if(process.env.NODE_ENV!=="production"){const n=wH[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fv=Object.getPrototypeOf;function Lv(e){return!!e&&!!e[Xi]}function yd(e){return e?tM(e)||Array.isArray(e)||!!e[eM]||!!e.constructor?.[eM]||SE(e)||CE(e):!1}var AH=Object.prototype.constructor.toString();function tM(e){if(!e||typeof e!="object")return!1;const t=Fv(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)===AH}function EE(e,t){DE(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function DE(e){const t=e[Xi];return t?t.type_:Array.isArray(e)?1:SE(e)?2:CE(e)?3:0}function Vw(e,t){return DE(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nM(e,t,n){const r=DE(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function OH(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function SE(e){return e instanceof Map}function CE(e){return e instanceof Set}function bd(e){return e.copy_||e.base_}function Gw(e,t){if(SE(e))return new Map(e);if(CE(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=tM(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Xi];let l=Reflect.ownKeys(r);for(let s=0;s<l.length;s++){const f=l[s],h=r[f];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(r[f]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[f]})}return Object.create(Fv(e),r)}else{const r=Fv(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function Iw(e,t=!1){return wE(e)||Lv(e)||!yd(e)||(DE(e)>1&&(e.set=e.add=e.clear=e.delete=xH),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Iw(r,!0))),e}function xH(){Di(2)}function wE(e){return Object.isFrozen(e)}var TH={};function Ed(e){const t=TH[e];return t||Di(0,e),t}var hy;function rM(){return hy}function BH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function aM(e,t){t&&(Ed("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yw(e){Kw(e),e.drafts_.forEach(_H),e.drafts_=null}function Kw(e){e===hy&&(hy=e.parent_)}function iM(e){return hy=BH(hy,e)}function _H(e){const t=e[Xi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lM(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Xi].modified_&&(Yw(t),Di(4)),yd(e)&&(e=AE(t,e),t.parent_||OE(t,e)),t.patches_&&Ed("Patches").generateReplacementPatches_(n[Xi].base_,e,t.patches_,t.inversePatches_)):e=AE(t,n,[]),Yw(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==JN?e:void 0}function AE(e,t,n){if(wE(t))return t;const r=t[Xi];if(!r)return EE(t,(l,s)=>uM(e,r,t,l,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return OE(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const l=r.copy_;let s=l,f=!1;r.type_===3&&(s=new Set(l),l.clear(),f=!0),EE(s,(h,p)=>uM(e,r,l,h,p,n,f)),OE(e,l,!1),n&&e.patches_&&Ed("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function uM(e,t,n,r,l,s,f){if(process.env.NODE_ENV!=="production"&&l===n&&Di(5),Lv(l)){const h=s&&t&&t.type_!==3&&!Vw(t.assigned_,r)?s.concat(r):void 0,p=AE(e,l,h);if(nM(n,r,p),Lv(p))e.canAutoFreeze_=!1;else return}else f&&n.add(l);if(yd(l)&&!wE(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;AE(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&OE(e,l)}}function OE(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Iw(t,n)}function RH(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:rM(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,s=Xw;n&&(l=[r],s=vy);const{revoke:f,proxy:h}=Proxy.revocable(l,s);return r.draft_=h,r.revoke_=f,h}var Xw={get(e,t){if(t===Xi)return e;const n=bd(e);if(!Vw(n,t))return NH(e,n,t);const r=n[t];return e.finalized_||!yd(r)?r:r===Zw(e.base_,t)?(Ww(e),e.copy_[t]=Jw(r,e)):r},has(e,t){return t in bd(e)},ownKeys(e){return Reflect.ownKeys(bd(e))},set(e,t,n){const r=oM(bd(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Zw(bd(e),t),s=l?.[Xi];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(OH(n,l)&&(n!==void 0||Vw(e.base_,t)))return!0;Ww(e),Qw(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 Zw(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ww(e),Qw(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=bd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Di(11)},getPrototypeOf(e){return Fv(e.base_)},setPrototypeOf(){Di(12)}},vy={};EE(Xw,(e,t)=>{vy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),vy.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Di(13),vy.set.call(this,e,t,void 0)},vy.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Di(14),Xw.set.call(this,e[0],t,n,e[0])};function Zw(e,t){const n=e[Xi];return(n?bd(n):e)[t]}function NH(e,t,n){const r=oM(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function oM(e,t){if(!(t in e))return;let n=Fv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fv(n)}}function Qw(e){e.modified_||(e.modified_=!0,e.parent_&&Qw(e.parent_))}function Ww(e){e.copy_||(e.copy_=Gw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var MH=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,l)=>{if(typeof n=="function"&&typeof r!="function"){const f=r;r=n;const h=this;return function(y=f,...b){return h.produce(y,S=>r.call(this,S,...b))}}typeof r!="function"&&Di(6),l!==void 0&&typeof l!="function"&&Di(7);let s;if(yd(n)){const f=iM(this),h=Jw(n,void 0);let p=!0;try{s=r(h),p=!1}finally{p?Yw(f):Kw(f)}return aM(f,l),lM(s,f)}else if(!n||typeof n!="object"){if(s=r(n),s===void 0&&(s=n),s===JN&&(s=void 0),this.autoFreeze_&&Iw(s,!0),l){const f=[],h=[];Ed("Patches").generateReplacementPatches_(n,s,f,h),l(f,h)}return s}else Di(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(h,...p)=>this.produceWithPatches(h,y=>n(y,...p));let l,s;return[this.produce(n,r,(h,p)=>{l=h,s=p}),l,s]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){yd(t)||Di(8),Lv(t)&&(t=zH(t));const n=iM(this),r=Jw(t,void 0);return r[Xi].isManual_=!0,Kw(n),r}finishDraft(t,n){const r=t&&t[Xi];(!r||!r.isManual_)&&Di(9);const{scope_:l}=r;return aM(l,n),lM(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const s=n[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(n=n.slice(r+1));const l=Ed("Patches").applyPatches_;return Lv(t)?l(t,n):this.produce(t,s=>l(s,n))}};function Jw(e,t){const n=SE(e)?Ed("MapSet").proxyMap_(e,t):CE(e)?Ed("MapSet").proxySet_(e,t):RH(e,t);return(t?t.scope_:rM()).drafts_.push(n),n}function zH(e){return Lv(e)||Di(10,e),sM(e)}function sM(e){if(!yd(e)||wE(e))return e;const t=e[Xi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Gw(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Gw(e,!0);return EE(n,(r,l)=>{nM(n,r,sM(l))}),t&&(t.finalized_=!1),n}var Zi=new MH,cM=Zi.produce;Zi.produceWithPatches.bind(Zi),Zi.setAutoFreeze.bind(Zi),Zi.setUseStrictShallowCopy.bind(Zi),Zi.applyPatches.bind(Zi),Zi.createDraft.bind(Zi),Zi.finishDraft.bind(Zi);var kH={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var l=ae.transform(n,t,{affinity:r});e.current=l,l==null&&e.unref()}}},PH={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var l=Ht.transform(n,t,{affinity:r});e.current=l,l==null&&e.unref()}}},jH={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var l=Se.transform(n,t,{affinity:r});e.current=l,l==null&&e.unref()}}},xE=new WeakMap,TE=new WeakMap,py=new WeakMap,fM=new WeakMap,dM=new WeakMap,hM=new WeakMap,vM=new WeakMap,ae={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=ae.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 l=e[r],s=t[r];if(l!==s)break;n.push(l)}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),l=t.slice(0,n),s=e[n],f=t[n];return ae.equals(r,l)&&s>f},endsAt(e,t){var n=e.length,r=e.slice(0,n),l=t.slice(0,n);return ae.equals(r,l)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),l=t.slice(0,n),s=e[n],f=t[n];return ae.equals(r,l)&&s<f},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 ae.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&ae.compare(e,t)===0},isBefore(e,t){return ae.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&ae.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&ae.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&ae.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&ae.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),l=e[e.length-1],s=t[t.length-1];return l!==s&&ae.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],l=0;l<=e.length;l++)r.push(e.slice(0,l));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(!ae.isAncestor(t,e)&&!ae.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:l="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:s}=t;(ae.equals(s,r)||ae.endsBefore(s,r)||ae.isAncestor(s,r))&&(r[s.length-1]+=1);break}case"remove_node":{var{path:f}=t;if(ae.equals(f,r)||ae.isAncestor(f,r))return null;ae.endsBefore(f,r)&&(r[f.length-1]-=1);break}case"merge_node":{var{path:h,position:p}=t;ae.equals(h,r)||ae.endsBefore(h,r)?r[h.length-1]-=1:ae.isAncestor(h,r)&&(r[h.length-1]-=1,r[h.length]+=p);break}case"split_node":{var{path:y,position:b}=t;if(ae.equals(y,r)){if(l==="forward")r[r.length-1]+=1;else if(l!=="backward")return null}else ae.endsBefore(y,r)?r[y.length-1]+=1:ae.isAncestor(y,r)&&e[y.length]>=b&&(r[y.length-1]+=1,r[y.length]-=b);break}case"move_node":{var{path:S,newPath:C}=t;if(ae.equals(S,C))return r;if(ae.isAncestor(S,r)||ae.equals(S,r)){var A=C.slice();return ae.endsBefore(S,C)&&S.length<C.length&&(A[S.length-1]-=1),A.concat(r.slice(S.length))}else ae.isSibling(S,C)&&(ae.isAncestor(C,r)||ae.equals(C,r))?ae.endsBefore(S,r)?r[S.length-1]-=1:r[S.length-1]+=1:ae.endsBefore(C,r)||ae.equals(C,r)||ae.isAncestor(C,r)?(ae.endsBefore(S,r)&&(r[S.length-1]-=1),r[C.length-1]+=1):ae.endsBefore(S,r)&&(ae.equals(C,r)&&(r[C.length-1]+=1),r[S.length-1]-=1);break}}return r}};function my(e){"@babel/helpers - typeof";return my=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},my(e)}function FH(e,t){if(my(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(my(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LH(e){var t=FH(e,"string");return my(t)==="symbol"?t:String(t)}function Za(e,t,n){return t=LH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mM=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),s=2;s<r;s++)l[s-2]=arguments[s];return[...t.slice(0,n),...l,...t.slice(n)]},gy=function(t,n,r){for(var l=arguments.length,s=new Array(l>3?l-3:0),f=3;f<l;f++)s[f-3]=arguments[f];return[...t.slice(0,n),...s,...t.slice(n+r)]},gM=gy,eA=(e,t,n)=>{if(t.length===0)throw new Error("Cannot modify the editor");for(var r=$e.get(e,t),l=t.slice(),s=n(r);l.length>1;){var f=l.pop(),h=$e.get(e,l);s=zn(zn({},h),{},{children:gy(h.children,f,1,s)})}var p=l.pop();e.children=gy(e.children,p,1,s)},qv=(e,t,n)=>{t.length===0?e.children=n(e.children):eA(e,t,r=>{if(Ze.isText(r))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(Tr.stringify(r)));return zn(zn({},r),{},{children:n(r.children)})})},yM=(e,t,n)=>eA(e,t,r=>{if(!Ze.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Tr.stringify(r)));return n(r)}),qH={transform(e,t){var n=!1;switch(t.type){case"insert_node":{var{path:r,node:l}=t;qv(e,ae.parent(r),le=>{var ue=r[r.length-1];if(ue>le.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return mM(le,ue,l)}),n=!0;break}case"insert_text":{var{path:s,offset:f,text:h}=t;if(h.length===0)break;yM(e,s,le=>{var ue=le.text.slice(0,f),fe=le.text.slice(f);return zn(zn({},le),{},{text:ue+h+fe})}),n=!0;break}case"merge_node":{var{path:p}=t,y=p[p.length-1],b=ae.previous(p),S=b[b.length-1];qv(e,ae.parent(p),le=>{var ue=le[y],fe=le[S],Ue;if(Ze.isText(ue)&&Ze.isText(fe))Ue=zn(zn({},fe),{},{text:fe.text+ue.text});else if(!Ze.isText(ue)&&!Ze.isText(fe))Ue=zn(zn({},fe),{},{children:fe.children.concat(ue.children)});else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(p,"] to nodes of different interfaces: ").concat(Tr.stringify(ue)," ").concat(Tr.stringify(fe)));return gy(le,S,2,Ue)}),n=!0;break}case"move_node":{var{path:C,newPath:A}=t,x=C[C.length-1];if(ae.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var _=$e.get(e,C);qv(e,ae.parent(C),le=>gM(le,x,1));var B=ae.transform(C,t),R=B[B.length-1];qv(e,ae.parent(B),le=>mM(le,R,_)),n=!0;break}case"remove_node":{var{path:O}=t,j=O[O.length-1];if(qv(e,ae.parent(O),le=>gM(le,j,1)),e.selection){var P=zn({},e.selection);for(var[L,Y]of Se.points(P)){var G=Ht.transform(L,t);if(P!=null&&G!=null)P[Y]=G;else{var z=void 0,$=void 0;for(var[Q,I]of $e.texts(e))if(ae.compare(I,O)===-1)z=[Q,I];else{$=[Q,I];break}var H=!1;z&&$&&(ae.isSibling(z[1],O)?H=!1:ae.equals($[1],O)?H=!0:H=ae.common(z[1],O).length<ae.common($[1],O).length),z&&!H?P[Y]={path:z[1],offset:z[0].text.length}:$?P[Y]={path:$[1],offset:0}:P=null}}(!P||!Se.equals(P,e.selection))&&(e.selection=P)}break}case"remove_text":{var{path:K,offset:W,text:ne}=t;if(ne.length===0)break;yM(e,K,le=>{var ue=le.text.slice(0,W),fe=le.text.slice(W+ne.length);return zn(zn({},le),{},{text:ue+fe})}),n=!0;break}case"set_node":{var{path:U,properties:Z,newProperties:J}=t;if(U.length===0)throw new Error("Cannot set properties on the root node!");eA(e,U,le=>{var ue=zn({},le);for(var fe in J){if(fe==="children"||fe==="text")throw new Error('Cannot set the "'.concat(fe,'" property of nodes!'));var Ue=J[fe];Ue==null?delete ue[fe]:ue[fe]=Ue}for(var He in Z)J.hasOwnProperty(He)||delete ue[He];return ue});break}case"set_selection":{var{newProperties:he}=t;if(he==null){e.selection=null;break}if(e.selection==null){if(!Se.isRange(he))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Tr.stringify(he)," when there is no current selection."));e.selection=zn({},he);break}var ie=zn({},e.selection);for(var xe in he){var Re=he[xe];if(Re==null){if(xe==="anchor"||xe==="focus")throw new Error('Cannot remove the "'.concat(xe,'" selection property'));delete ie[xe]}else ie[xe]=Re}e.selection=ie;break}case"split_node":{var{path:me,position:ke,properties:Xe}=t,Ye=me[me.length-1];if(me.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(me,"] because the root node cannot be split."));qv(e,ae.parent(me),le=>{var ue=le[Ye],fe,Ue;if(Ze.isText(ue)){var He=ue.text.slice(0,ke),ut=ue.text.slice(ke);fe=zn(zn({},ue),{},{text:He}),Ue=zn(zn({},Xe),{},{text:ut})}else{var yt=ue.children.slice(0,ke),Ie=ue.children.slice(ke);fe=zn(zn({},ue),{},{children:yt}),Ue=zn(zn({},Xe),{},{children:Ie})}return gy(le,Ye,1,fe,Ue)}),n=!0;break}}if(n&&e.selection){var Qe=zn({},e.selection);for(var[ft,ce]of Se.points(Qe))Qe[ce]=Ht.transform(ft,t);Se.equals(Qe,e.selection)||(e.selection=Qe)}}},UH={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)}},HH={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)}},Oa=e=>typeof e=="object"&&e!==null,bM=(e,t)=>{for(var n in e){var r=e[n],l=t[n];if(Array.isArray(r)&&Array.isArray(l)){if(r.length!==l.length)return!1;for(var s=0;s<r.length;s++)if(r[s]!==l[s])return!1}else if(Oa(r)&&Oa(l)){if(!bM(r,l))return!1}else if(r!==l)return!1}for(var f in t)if(e[f]===void 0&&t[f]!==void 0)return!1;return!0};function $H(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function ps(e,t){if(e==null)return{};var n=$H(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var VH=["anchor","focus"];function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function GH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Se={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:l}=e;return Se.isBackward(e)===n?[r,l]:[l,r]},end(e){var[,t]=Se.edges(e);return t},equals(e,t){return Ht.equals(e.anchor,t.anchor)&&Ht.equals(e.focus,t.focus)},surrounds(e,t){var n=Se.intersection(e,t);return n?Se.equals(n,t):!1},includes(e,t){if(Se.isRange(t)){if(Se.includes(e,t.anchor)||Se.includes(e,t.focus))return!0;var[n,r]=Se.edges(e),[l,s]=Se.edges(t);return Ht.isBefore(n,l)&&Ht.isAfter(r,s)}var[f,h]=Se.edges(e),p=!1,y=!1;return Ht.isPoint(t)?(p=Ht.compare(t,f)>=0,y=Ht.compare(t,h)<=0):(p=ae.compare(t,f.path)>=0,y=ae.compare(t,h.path)<=0),p&&y},intersection(e,t){var n=ps(e,VH),[r,l]=Se.edges(e),[s,f]=Se.edges(t),h=Ht.isBefore(r,s)?s:r,p=Ht.isBefore(l,f)?l:f;return Ht.isBefore(p,h)?null:GH({anchor:h,focus:p},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ht.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ht.equals(t,n)},isExpanded(e){return!Se.isCollapsed(e)},isForward(e){return!Se.isBackward(e)},isRange(e){return Oa(e)&&Ht.isPoint(e.anchor)&&Ht.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Se.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="inward"}=n,l,s;if(r==="inward"){var f=Se.isCollapsed(e);Se.isForward(e)?(l="forward",s=f?l:"backward"):(l="backward",s=f?l:"forward")}else r==="outward"?Se.isForward(e)?(l="backward",s="forward"):(l="forward",s="backward"):(l=r,s=r);var h=Ht.transform(e.anchor,t,{affinity:l}),p=Ht.transform(e.focus,t,{affinity:s});return!h||!p?null:{anchor:h,focus:p}}},DM=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Oa(t))return!1;var r=typeof t.apply=="function";if(r)return!1;var l=n?$e.isNodeList(t.children):Array.isArray(t.children);return l},rt={isAncestor(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Oa(e)&&$e.isNodeList(e.children,{deep:t})},isElement:DM,isElementList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>rt.isElement(n,{deep: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 DM(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},IH=["children"],YH=["text"],$e={ancestor(e,t){var n=$e.get(e,t);if(Ze.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Tr.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of ae.ancestors(t,n)){var l=$e.ancestor(e,r),s=[l,r];yield s}})()},child(e,t){if(Ze.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Tr.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Tr.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,l=$e.ancestor(e,t),{children:s}=l,f=r?s.length-1:0;r?f>=0:f<s.length;){var h=$e.child(l,f),p=t.concat(f);yield[h,p],f=r?f-1:f+1}})()},common(e,t,n){var r=ae.common(t,n),l=$e.get(e,r);return[l,r]},descendant(e,t){var n=$e.get(e,t);if(F.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Tr.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of $e.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 $e.nodes(e,t))rt.isElement(n)&&(yield[n,r])})()},extractProps(e){if(rt.isAncestor(e)){var t=ps(e,IH);return t}else{var t=ps(e,YH);return t}},first(e,t){for(var n=t.slice(),r=$e.get(e,n);r&&!(Ze.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Ze.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Tr.stringify(e)));var n=cM({children:e.children},r=>{var[l,s]=Se.edges(t),f=$e.nodes(r,{reverse:!0,pass:C=>{var[,A]=C;return!Se.includes(t,A)}});for(var[,h]of f){if(!Se.includes(t,h)){var p=$e.parent(r,h),y=h[h.length-1];p.children.splice(y,1)}if(ae.equals(h,s.path)){var b=$e.leaf(r,h);b.text=b.text.slice(0,s.offset)}if(ae.equals(h,l.path)){var S=$e.leaf(r,h);S.text=S.text.slice(l.offset)}}F.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){var n=$e.getIf(e,t);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Tr.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(Ze.isText(n)||!n.children[l])return;n=n.children[l]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(Ze.isText(n)||!n.children[l])return!1;n=n.children[l]}return!0},isNode(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ze.isText(e)||rt.isElement(e,{deep:t})||F.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>$e.isNode(n,{deep:t}))},last(e,t){for(var n=t.slice(),r=$e.get(e,n);r&&!(Ze.isText(r)||r.children.length===0);){var l=r.children.length-1;r=r.children[l],n.push(l)}return[r,n]},leaf(e,t){var n=$e.get(e,t);if(!Ze.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Tr.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of ae.levels(t,n)){var l=$e.get(e,r);yield[l,r]}})()},matches(e,t){return rt.isElement(e)&&rt.isElementProps(t)&&rt.matches(e,t)||Ze.isText(e)&&Ze.isTextProps(t)&&Ze.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:l=[],to:s}=t,f=new Set,h=[],p=e;!(s&&(r?ae.isBefore(h,s):ae.isAfter(h,s)));){if(f.has(p)||(yield[p,h]),!f.has(p)&&!Ze.isText(p)&&p.children.length!==0&&(n==null||n([p,h])===!1)){f.add(p);var y=r?p.children.length-1:0;ae.isAncestor(h,l)&&(y=l[h.length]),h=h.concat(y),p=$e.get(e,h);continue}if(h.length===0)break;if(!r){var b=ae.next(h);if($e.has(e,b)){h=b,p=$e.get(e,h);continue}}if(r&&h[h.length-1]!==0){var S=ae.previous(h);h=S,p=$e.get(e,h);continue}h=ae.parent(h),p=$e.get(e,h),f.add(p)}})()},parent(e,t){var n=ae.parent(t),r=$e.get(e,n);if(Ze.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 Ze.isText(e)?e.text:e.children.map($e.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of $e.nodes(e,t))Ze.isText(n)&&(yield[n,r])})()}};function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Uv={isNodeOperation(e){return Uv.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Oa(e))return!1;switch(e.type){case"insert_node":return ae.isPath(e.path)&&$e.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&ae.isPath(e.path);case"merge_node":return typeof e.position=="number"&&ae.isPath(e.path)&&Oa(e.properties);case"move_node":return ae.isPath(e.path)&&ae.isPath(e.newPath);case"remove_node":return ae.isPath(e.path)&&$e.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&ae.isPath(e.path);case"set_node":return ae.isPath(e.path)&&Oa(e.properties)&&Oa(e.newProperties);case"set_selection":return e.properties===null&&Se.isRange(e.newProperties)||e.newProperties===null&&Se.isRange(e.properties)||Oa(e.properties)&&Oa(e.newProperties);case"split_node":return ae.isPath(e.path)&&typeof e.position=="number"&&Oa(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Uv.isOperation(t))},isSelectionOperation(e){return Uv.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Uv.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Gn(Gn({},e),{},{type:"remove_node"});case"insert_text":return Gn(Gn({},e),{},{type:"remove_text"});case"merge_node":return Gn(Gn({},e),{},{type:"split_node",path:ae.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(ae.equals(t,n))return e;if(ae.isSibling(n,t))return Gn(Gn({},e),{},{path:t,newPath:n});var r=ae.transform(n,e),l=ae.transform(ae.next(n),e);return Gn(Gn({},e),{},{path:r,newPath:l})}case"remove_node":return Gn(Gn({},e),{},{type:"insert_node"});case"remove_text":return Gn(Gn({},e),{},{type:"insert_text"});case"set_node":{var{properties:s,newProperties:f}=e;return Gn(Gn({},e),{},{properties:f,newProperties:s})}case"set_selection":{var{properties:h,newProperties:p}=e;return h==null?Gn(Gn({},e),{},{properties:p,newProperties:null}):p==null?Gn(Gn({},e),{},{properties:null,newProperties:h}):Gn(Gn({},e),{},{properties:p,newProperties:h})}case"split_node":return Gn(Gn({},e),{},{type:"merge_node",path:ae.next(e.path)})}}},CM=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Oa(t))return!1;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||Oa(t.marks))&&(t.selection===null||Se.isRange(t.selection))&&(!n||$e.isNodeList(t.children))&&Uv.isOperationList(t.operations);return r},F={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 CM(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},KH={isLocation(e){return ae.isPath(e)||Ht.isPoint(e)||Se.isRange(e)}},wM={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(ae.isPath)}};function AM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function OM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ht={compare(e,t){var n=ae.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Ht.compare(e,t)===1},isBefore(e,t){return Ht.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&ae.equals(e.path,t.path)},isPoint(e){return Oa(e)&&typeof e.offset=="number"&&ae.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="forward"}=n,{path:l,offset:s}=e;switch(t.type){case"insert_node":case"move_node":{l=ae.transform(l,t,n);break}case"insert_text":{ae.equals(t.path,l)&&(t.offset<s||t.offset===s&&r==="forward")&&(s+=t.text.length);break}case"merge_node":{ae.equals(t.path,l)&&(s+=t.position),l=ae.transform(l,t,n);break}case"remove_text":{ae.equals(t.path,l)&&t.offset<=s&&(s-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(ae.equals(t.path,l)||ae.isAncestor(t.path,l))return null;l=ae.transform(l,t,n);break}case"split_node":{if(ae.equals(t.path,l)){if(t.position===s&&r==null)return null;(t.position<s||t.position===s&&r==="forward")&&(s-=t.position,l=ae.transform(l,t,OM(OM({},n),{},{affinity:"forward"})))}else l=ae.transform(l,t,n);break}default:return e}return{path:l,offset:s}}},xM=void 0,Tr={setScrubber(e){xM=e},stringify(e){return JSON.stringify(e,xM)}},XH=["text"],ZH=["anchor","focus","merge"];function TM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ze={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function l(s){var f=ps(s,XH);return f}return bM(r?l(e):e,r?l(t):t)},isText(e){return Oa(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Ze.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=[{leaf:ms({},e)}];for(var r of t){var{anchor:l,focus:s,merge:f}=r,h=ps(r,ZH),[p,y]=Se.edges(r),b=[],S=0,C=p.offset,A=y.offset,x=f??Object.assign;for(var{leaf:_}of n){var{length:B}=_.text,R=S;if(S+=B,C<=R&&S<=A){x(_,h),b.push({leaf:_});continue}if(C!==A&&(C===S||A===R)||C>S||A<R||A===R&&R!==0){b.push({leaf:_});continue}var O=_,j=void 0,P=void 0;if(A<S){var L=A-R;P={leaf:ms(ms({},O),{},{text:O.text.slice(L)})},O=ms(ms({},O),{},{text:O.text.slice(0,L)})}if(C>R){var Y=C-R;j={leaf:ms(ms({},O),{},{text:O.text.slice(0,Y)})},O=ms(ms({},O),{},{text:O.text.slice(Y)})}x(O,h),j&&b.push(j),b.push({leaf:O}),P&&b.push(P)}n=b}if(n.length>1){var G=0;for(var[z,$]of n.entries()){var Q=G,I=Q+$.leaf.text.length,H={start:Q,end:I};z===0&&(H.isFirst=!0),z===n.length-1&&(H.isLast=!0),$.position=H,G=I}}return n}},tA=e=>e.selection?e.selection:e.children.length>0?F.end(e,[]):[0],Hv=(e,t)=>{var[n]=F.node(e,t);return r=>r===n},nA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,l=n?n$(t):t,s=Dt.None,f=Dt.None,h=0,p=null,y=null;for(var b of l){var S=b.codePointAt(0);if(!S)break;var C=v$(b,S);if([s,f]=r?[f,C]:[C,s],$v(s,Dt.ZWJ)&&$v(f,Dt.ExtPict)&&(r?p=BM(t.substring(0,h)):p=BM(t.substring(0,t.length-h)),!p)||$v(s,Dt.RI)&&$v(f,Dt.RI)&&(y!==null?y=!y:r?y=!0:y=b$(t.substring(0,t.length-h)),!y)||s!==Dt.None&&f!==Dt.None&&m$(s,f))break;h+=b.length}return h||1},QH=/\s/,WH=/[\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]/,JH=/['\u2018\u2019]/,e$=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,l=!1;t.length>0;){var s=nA(t,n),[f,h]=rA(t,s,n);if(t$(f,h,n))l=!0,r+=s;else if(!l)r+=s;else break;t=h}return r},rA=(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)]},t$=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(QH.test(t))return!1;if(JH.test(t)){var l=nA(n,r),[s,f]=rA(n,l,r);if(e(s,f,r))return!0}return!WH.test(t)},n$=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var l=t.charAt(n-r);if(a$(l.charCodeAt(0))){var s=t.charAt(n-r-1);if(r$(s.charCodeAt(0))){yield s+l,r++;continue}}yield l}},r$=e=>e>=55296&&e<=56319,a$=e=>e>=56320&&e<=57343,Dt;(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"})(Dt||(Dt={}));var i$=/^(?:[\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])$/,l$=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,u$=/^(?:[\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])$/,o$=/^[\u1100-\u115F\uA960-\uA97C]$/,s$=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,c$=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,f$=/^[\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]$/,d$=/^[\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]$/,h$=/^(?:[\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])$/,v$=(e,t)=>{var n=Dt.Any;return e.search(i$)!==-1&&(n|=Dt.Extend),t===8205&&(n|=Dt.ZWJ),t>=127462&&t<=127487&&(n|=Dt.RI),e.search(l$)!==-1&&(n|=Dt.Prepend),e.search(u$)!==-1&&(n|=Dt.SpacingMark),e.search(o$)!==-1&&(n|=Dt.L),e.search(s$)!==-1&&(n|=Dt.V),e.search(c$)!==-1&&(n|=Dt.T),e.search(f$)!==-1&&(n|=Dt.LV),e.search(d$)!==-1&&(n|=Dt.LVT),e.search(h$)!==-1&&(n|=Dt.ExtPict),n};function $v(e,t){return(e&t)!==0}var p$=[[Dt.L,Dt.L|Dt.V|Dt.LV|Dt.LVT],[Dt.LV|Dt.V,Dt.V|Dt.T],[Dt.LVT|Dt.T,Dt.T],[Dt.Any,Dt.Extend|Dt.ZWJ],[Dt.Any,Dt.SpacingMark],[Dt.Prepend,Dt.Any],[Dt.ZWJ,Dt.ExtPict],[Dt.RI,Dt.RI]];function m$(e,t){return p$.findIndex(n=>$v(e,n[0])&&$v(t,n[1]))===-1}var g$=/(?:[\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$/,BM=e=>e.search(g$)!==-1,y$=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,b$=e=>{var t=e.match(y$);if(t===null)return!1;var n=t[0].length/2;return n%2===1},E$={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]:{};F.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:l=tA(e)}=n;if(ae.isPath(l)&&(l=F.range(e,l)),Se.isRange(l))if(Se.isCollapsed(l))l=l.anchor;else{var s=Se.end(l);if(!r&&F.void(e,{at:s}))return;var f=Se.start(l),h=F.pointRef(e,f),p=F.pointRef(e,s);Pe.delete(e,{at:l,voids:r});var y=h.unref(),b=p.unref();l=y||b,Pe.setSelection(e,{anchor:l,focus:l})}if(!(!r&&F.void(e,{at:l})||F.elementReadOnly(e,{at:l}))){var{path:S,offset:C}=l;t.length>0&&e.apply({type:"insert_text",path:S,offset:C,text:t})}})}};function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?_M(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pe=BE(BE(BE(BE({},qH),UH),HH),E$),_E=new WeakMap,D$=e=>_E.get(e)||!1,S$=(e,t,n)=>{var r=_E.get(e)||!1;_E.set(e,!0);try{t(),n()}finally{_E.set(e,r)}};function RM(e,t,n){var r=xE.get(e)||[],l=TE.get(e)||new Set,s,f,h=S=>{if(S){var C=S.join(",");f.has(C)||(f.add(C),s.push(S))}};if(n){s=[],f=new Set;for(var p of r){var y=n(p);h(y)}}else s=r,f=l;for(var b of t)h(b);xE.set(e,s),TE.set(e,f)}var NM=(e,t)=>{for(var n of F.pathRefs(e))kH.transform(n,t);for(var r of F.pointRefs(e))PH.transform(r,t);for(var l of F.rangeRefs(e))jH.transform(l,t);if(!D$(e)){var s=ae.operationCanTransformPath(t)?f=>ae.transform(f,t):void 0;RM(e,e.getDirtyPaths(t),s)}Pe.transform(e,t),e.operations.push(t),F.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),py.get(e)||(py.set(e,!0),Promise.resolve().then(()=>{py.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},MM=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return ae.levels(n)}case"insert_node":{var{node:r,path:l}=t,s=ae.levels(l),f=Ze.isText(r)?[]:Array.from($e.nodes(r),Q=>{var[,I]=Q;return l.concat(I)});return[...s,...f]}case"merge_node":{var{path:h}=t,p=ae.ancestors(h),y=ae.previous(h);return[...p,y]}case"move_node":{var{path:b,newPath:S}=t;if(ae.equals(b,S))return[];var C=[],A=[];for(var x of ae.ancestors(b)){var _=ae.transform(x,t);C.push(_)}for(var B of ae.ancestors(S)){var R=ae.transform(B,t);A.push(R)}var O=A[A.length-1],j=S[S.length-1],P=O.concat(j);return[...C,...A,P]}case"remove_node":{var{path:L}=t,Y=ae.ancestors(L);return[...Y]}case"split_node":{var{path:G}=t,z=ae.levels(G),$=ae.next(G);return[...z,$]}default:return[]}},zM=e=>{var{selection:t}=e;return t?$e.fragment(e,t):[]},kM=(e,t,n)=>{var[r,l]=t;if(!Ze.isText(r)){if(rt.isElement(r)&&r.children.length===0){var s={text:""};Pe.insertNodes(e,s,{at:l.concat(0),voids:!0});return}for(var f=F.isEditor(r)?!1:rt.isElement(r)&&(e.isInline(r)||r.children.length===0||Ze.isText(r.children[0])||e.isInline(r.children[0])),h=0,p=0;p<r.children.length;p++,h++){var y=$e.get(e,l);if(!Ze.isText(y)){var b=y.children[h],S=y.children[h-1],C=p===r.children.length-1,A=Ze.isText(b)||rt.isElement(b)&&e.isInline(b);if(A!==f)A?n!=null&&n.fallbackElement?Pe.wrapNodes(e,n.fallbackElement(),{at:l.concat(h),voids:!0}):Pe.removeNodes(e,{at:l.concat(h),voids:!0}):Pe.unwrapNodes(e,{at:l.concat(h),voids:!0}),h--;else if(rt.isElement(b)){if(e.isInline(b)){if(S==null||!Ze.isText(S)){var x={text:""};Pe.insertNodes(e,x,{at:l.concat(h),voids:!0}),h++}else if(C){var _={text:""};Pe.insertNodes(e,_,{at:l.concat(h+1),voids:!0}),h++}}}else{if(!Ze.isText(b)&&!("children"in b)){var B=b;B.children=[]}S!=null&&Ze.isText(S)&&(Ze.equals(b,S,{loose:!0})?(Pe.mergeNodes(e,{at:l.concat(h),voids:!0}),h--):S.text===""?(Pe.removeNodes(e,{at:l.concat(h-1),voids:!0}),h--):b.text===""&&(Pe.removeNodes(e,{at:l.concat(h),voids:!0}),h--))}}}}},PM=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,l=r*42;if(n>l)throw new Error("Could not completely normalize the editor after ".concat(l," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},jM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:l="lowest",at:s=t.selection,match:f}=n;if(s){var h=F.path(t,s);if(!Se.isRange(s)||ae.equals(s.focus.path,s.anchor.path)){if(h.length===0)return;h=ae.parent(h)}var p=l==="lowest",[y]=F.levels(t,{at:h,voids:r,match:f,reverse:p});return y}};function FM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function LM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qM=(e,t,n)=>{var{selection:r}=e;if(r){var l=(S,C)=>{if(!Ze.isText(S))return!1;var[A,x]=F.parent(e,C);return!e.isVoid(A)||e.markableVoid(A)},s=Se.isExpanded(r),f=!1;if(!s){var[h,p]=F.node(e,r);if(h&&l(h,p)){var[y]=F.parent(e,p);f=y&&e.markableVoid(y)}}if(s||f)Pe.setNodes(e,{[t]:n},{match:l,split:!0,voids:!0});else{var b=LM(LM({},F.marks(e)||{}),{},{[t]:n});e.marks=b,py.get(e)||e.onChange()}}};function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $M=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=F.point(t,n,{edge:"end"}),s=F.end(t,[]),f={anchor:l,focus:s},{distance:h=1}=r,p=0,y;for(var b of F.positions(t,HM(HM({},r),{},{at:f}))){if(p>h)break;p!==0&&(y=b),p++}return y};function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function GM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=F.start(t,[]),s=F.point(t,n,{edge:"start"}),f={anchor:l,focus:s},{distance:h=1}=r,p=0,y;for(var b of F.positions(t,GM(GM({},r),{},{at:f,reverse:!0}))){if(p>h)break;p!==0&&(y=b),p++}return y},IM=(e,t)=>{var{selection:n}=e;n&&Se.isCollapsed(n)&&Pe.delete(e,{unit:t,reverse:!0})},YM=(e,t)=>{var{selection:n}=e;n&&Se.isCollapsed(n)&&Pe.delete(e,{unit:t})},KM=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&Se.isExpanded(r)&&Pe.delete(t,{reverse:n==="backward"})},XM=(e,t)=>[F.start(e,t),F.end(e,t)];function ZM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function QM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZM(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F.above(t,QM(QM({},n),{},{match:r=>rt.isElement(r)&&F.isElementReadOnly(t,r)}))},iA=(e,t)=>F.point(e,t,{edge:"end"}),JM=(e,t)=>{var n=F.path(e,t,{edge:"start"});return F.node(e,n)},e3=(e,t)=>{var n=F.range(e,t);return $e.fragment(e,n)};function t3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function n3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t3(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var r3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F.above(t,n3(n3({},n),{},{match:r=>rt.isElement(r)&&F.isVoid(t,r)}))},a3=(e,t)=>t.children.some(n=>rt.isElement(n)&&F.isBlock(e,n)),i3=(e,t)=>t.children.some(n=>Ze.isText(n)||F.isInline(e,n)),l3=(e,t)=>$e.has(e,t),u3=(e,t)=>t.children.every(n=>Ze.isText(n)),o3=e=>{Pe.splitNodes(e,{always:!0})},C$=(e,t,n)=>{Pe.insertNodes(e,t,n)},w$=e=>{Pe.splitNodes(e,{always:!0})};function s3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?s3(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var O$=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:l,marks:s}=t;if(l){if(s){var f=A$({text:n},s);Pe.insertNodes(t,f,{at:r.at,voids:r.voids})}else Pe.insertText(t,n,r);t.marks=null}},c3=(e,t)=>!e.isInline(t),f3=(e,t,n)=>F.isStart(e,t,n)||F.isEnd(e,t,n),yy=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Ze.isText(r)&&r.text===""&&!e.isVoid(t)},d3=(e,t,n)=>{var r=F.end(e,n);return Ht.equals(t,r)},h3=e=>{var t=fM.get(e);return t===void 0?!0:t},v3=(e,t,n)=>{if(t.offset!==0)return!1;var r=F.start(e,n);return Ht.equals(t,r)},p3=(e,t)=>{var n=F.path(e,t,{edge:"end"});return F.node(e,n)},m3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=F.path(t,n,r),s=$e.leaf(t,l);return[s,l]};function g3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=e.selection,reverse:r=!1,voids:l=!1}=t,{match:s}=t;if(s==null&&(s=()=>!0),!!n){var f=[],h=F.path(e,n);for(var[p,y]of $e.levels(e,h))if(s(p,y)&&(f.push([p,y]),!l&&rt.isElement(p)&&F.isVoid(e,p)))break;r&&f.reverse(),yield*f}})()}var x$=["text"],T$=["text"],y3=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:l,focus:s}=r;if(n)return n;if(Se.isExpanded(r)){var f=Se.isBackward(r);f&&([s,l]=[l,s]);var h=F.isEnd(t,l,l.path);if(h){var p=F.after(t,l);p&&(l=p)}var[y]=F.nodes(t,{match:Ze.isText,at:{anchor:l,focus:s}});if(y){var[b]=y,S=ps(b,x$);return S}else return{}}var{path:C}=l,[A]=F.leaf(t,C);if(l.offset===0){var x=F.previous(t,{at:C,match:Ze.isText}),_=F.above(t,{match:L=>rt.isElement(L)&&F.isVoid(t,L)&&t.markableVoid(L)});if(!_){var B=F.above(t,{match:L=>rt.isElement(L)&&F.isBlock(t,L)});if(x&&B){var[R,O]=x,[,j]=B;ae.isAncestor(j,O)&&(A=R)}}}var P=ps(A,T$);return P},B$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:l=!1}=n,{match:s,at:f=t.selection}=n;if(f){var h=F.after(t,f,{voids:l});if(h){var[,p]=F.last(t,[]),y=[h.path,p];if(ae.isPath(f)&&f.length===0)throw new Error("Cannot get the next node from the root node!");if(s==null)if(ae.isPath(f)){var[b]=F.parent(t,f);s=C=>b.children.includes(C)}else s=()=>!0;var[S]=F.nodes(t,{at:y,match:s,mode:r,voids:l});return S}}},b3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=F.path(t,n,r),s=$e.get(t,l);return[s,l]};function _$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=e.selection,mode:r="all",universal:l=!1,reverse:s=!1,voids:f=!1,pass:h}=t,{match:p}=t;if(p||(p=()=>!0),!!n){var y,b;if(wM.isSpan(n))y=n[0],b=n[1];else{var S=F.path(e,n,{edge:"start"}),C=F.path(e,n,{edge:"end"});y=s?C:S,b=s?S:C}var A=$e.nodes(e,{reverse:s,from:y,to:b,pass:P=>{var[L,Y]=P;return h&&h([L,Y])?!0:rt.isElement(L)?!!(!f&&(F.isVoid(e,L)||F.isElementReadOnly(e,L))):!1}}),x=[],_;for(var[B,R]of A){var O=_&&ae.compare(R,_[1])===0;if(!(r==="highest"&&O)){if(!p(B,R)){if(l&&!O&&Ze.isText(B))return;continue}if(r==="lowest"&&O){_=[B,R];continue}var j=r==="lowest"?_:[B,R];j&&(l?x.push(j):yield j),_=[B,R]}}r==="lowest"&&_&&(l?x.push(_):yield _),l&&(yield*x)}})()}var E3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:l}=n,s=b=>xE.get(b)||[],f=b=>TE.get(b)||new Set,h=b=>{var S=s(b).pop(),C=S.join(",");return f(b).delete(C),S};if(F.isNormalizing(t)){if(r){var p=Array.from($e.nodes(t),b=>{var[,S]=b;return S}),y=new Set(p.map(b=>b.join(",")));xE.set(t,p),TE.set(t,y)}s(t).length!==0&&F.withoutNormalizing(t,()=>{for(var b of s(t))if($e.has(t,b)){var S=F.node(t,b),[C,A]=S;rt.isElement(C)&&C.children.length===0&&t.normalizeNode(S,{operation:l})}for(var x=s(t),_=x.length,B=0;x.length!==0;){if(!t.shouldNormalize({dirtyPaths:x,iteration:B,initialDirtyPathsLength:_,operation:l}))return;var R=h(t);if($e.has(t,R)){var O=F.node(t,R);t.normalizeNode(O,{operation:l})}B++,x=s(t)}})}},D3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=F.path(t,n,r),s=ae.parent(l),f=F.node(t,s);return f},S3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:l="forward"}=r,s={current:n,affinity:l,unref(){var{current:h}=s,p=F.pathRefs(t);return p.delete(s),s.current=null,h}},f=F.pathRefs(t);return f.add(s),s},C3=e=>{var t=dM.get(e);return t||(t=new Set,dM.set(e,t)),t},w3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:l,edge:s}=r;if(ae.isPath(n)){if(s==="start"){var[,f]=$e.first(t,n);n=f}else if(s==="end"){var[,h]=$e.last(t,n);n=h}}return Se.isRange(n)&&(s==="start"?n=Se.start(n):s==="end"?n=Se.end(n):n=ae.common(n.anchor.path,n.focus.path)),Ht.isPoint(n)&&(n=n.path),l!=null&&(n=n.slice(0,l)),n},A3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:l="forward"}=r,s={current:n,affinity:l,unref(){var{current:h}=s,p=F.pointRefs(t);return p.delete(s),s.current=null,h}},f=F.pointRefs(t);return f.add(s),s},O3=e=>{var t=hM.get(e);return t||(t=new Set,hM.set(e,t)),t},x3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:l="start"}=r;if(ae.isPath(n)){var s;if(l==="end"){var[,f]=$e.last(t,n);s=f}else{var[,h]=$e.first(t,n);s=h}var p=$e.get(t,s);if(!Ze.isText(p))throw new Error("Cannot get the ".concat(l," point in the node at path [").concat(n,"] because it has no ").concat(l," text node."));return{path:s,offset:l==="end"?p.text.length:0}}if(Se.isRange(n)){var[y,b]=Se.edges(n);return l==="start"?y:b}return n};function T3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=e.selection,unit:r="offset",reverse:l=!1,voids:s=!1}=t;if(!n)return;var f=F.range(e,n),[h,p]=Se.edges(f),y=l?p:h,b=!1,S="",C=0,A=0,x=0;for(var[_,B]of F.nodes(e,{at:n,reverse:l,voids:s})){if(rt.isElement(_)){if(!e.isSelectable(_))if(l){yield F.end(e,ae.previous(B));continue}else{yield F.start(e,ae.next(B));continue}if(!s&&(e.isVoid(_)||e.isElementReadOnly(_))){yield F.start(e,B);continue}if(e.isInline(_))continue;if(F.hasInlines(e,_)){var R=ae.isAncestor(B,p.path)?p:F.end(e,B),O=ae.isAncestor(B,h.path)?h:F.start(e,B);S=F.string(e,{anchor:O,focus:R},{voids:s}),b=!0}}if(Ze.isText(_)){var j=ae.equals(B,y.path);for(j?(A=l?y.offset:_.text.length-y.offset,x=y.offset):(A=_.text.length,x=l?A:0),(j||b||r==="offset")&&(yield{path:B,offset:x},b=!1);;){if(C===0){if(S==="")break;C=P(S,r,l),S=rA(S,C,l)[1]}if(x=l?x-C:x+C,A=A-C,A<0){C=-A;break}C=0,yield{path:B,offset:x}}}}function P(L,Y,G){return Y==="character"?nA(L,G):Y==="word"?e$(L,G):Y==="line"||Y==="block"?L.length:1}})()}var R$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:l=!1}=n,{match:s,at:f=t.selection}=n;if(f){var h=F.before(t,f,{voids:l});if(h){var[,p]=F.first(t,[]),y=[h.path,p];if(ae.isPath(f)&&f.length===0)throw new Error("Cannot get the previous node from the root node!");if(s==null)if(ae.isPath(f)){var[b]=F.parent(t,f);s=C=>b.children.includes(C)}else s=()=>!0;var[S]=F.nodes(t,{reverse:!0,at:y,match:s,mode:r,voids:l});return S}}},B3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:l="forward"}=r,s={current:n,affinity:l,unref(){var{current:h}=s,p=F.rangeRefs(t);return p.delete(s),s.current=null,h}},f=F.rangeRefs(t);return f.add(s),s},_3=e=>{var t=vM.get(e);return t||(t=new Set,vM.set(e,t)),t},R3=(e,t,n)=>{if(Se.isRange(t)&&!n)return t;var r=F.start(e,t),l=F.end(e,n||t);return{anchor:r,focus:l}};function N3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function N$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N3(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var M3=(e,t)=>{var{selection:n}=e;if(n){var r=(b,S)=>{if(!Ze.isText(b))return!1;var[C,A]=F.parent(e,S);return!e.isVoid(C)||e.markableVoid(C)},l=Se.isExpanded(n),s=!1;if(!l){var[f,h]=F.node(e,n);if(f&&r(f,h)){var[p]=F.parent(e,h);s=p&&e.markableVoid(p)}}if(l||s)Pe.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var y=N$({},F.marks(e)||{});delete y[t],e.marks=y,py.get(e)||e.onChange()}}},z3=(e,t)=>{fM.set(e,t)},lA=(e,t)=>F.point(e,t,{edge:"start"}),k3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:l=!1}=r,s=F.range(t,n),[f,h]=Se.edges(s),p="";for(var[y,b]of F.nodes(t,{at:s,match:Ze.isText,voids:l})){var S=y.text;ae.equals(b,h.path)&&(S=S.slice(0,h.offset)),ae.equals(b,f.path)&&(S=S.slice(f.offset)),p+=S}return p},P3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:l=!1}=r,[s,f]=Se.edges(n);if(s.offset!==0||f.offset!==0||Se.isCollapsed(n)||ae.hasPrevious(f.path))return n;var h=F.above(t,{at:f,match:x=>rt.isElement(x)&&F.isBlock(t,x),voids:l}),p=h?h[1]:[],y=F.start(t,s),b={anchor:y,focus:f},S=!0;for(var[C,A]of F.nodes(t,{at:b,match:Ze.isText,reverse:!0,voids:l})){if(S){S=!1;continue}if(C.text!==""||ae.isBefore(A,p)){f={path:A,offset:C.text.length};break}}return{anchor:s,focus:f}},j3=(e,t)=>{var n=F.isNormalizing(e);F.setNormalizing(e,!1);try{t()}finally{F.setNormalizing(e,n)}F.normalize(e)},M$=(e,t,n)=>{var[r,l]=t;return rt.isElement(r)&&F.isEmpty(e,r)||Ze.isText(r)&&r.text===""&&l[l.length-1]!==0},z$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(t,()=>{var r,l,{reverse:s=!1,unit:f="character",distance:h=1,voids:p=!1}=n,{at:y=t.selection,hanging:b=!1}=n;if(y){var S=!1;if(Se.isRange(y)&&Se.isCollapsed(y)&&(S=!0,y=y.anchor),Ht.isPoint(y)){var C=F.void(t,{at:y,mode:"highest"});if(!p&&C){var[,A]=C;y=A}else{var x={unit:f,distance:h},_=s?F.before(t,y,x)||F.start(t,[]):F.after(t,y,x)||F.end(t,[]);y={anchor:y,focus:_},b=!0}}if(ae.isPath(y)){Pe.removeNodes(t,{at:y,voids:p});return}if(!Se.isCollapsed(y)){if(!b){var[,B]=Se.edges(y),R=F.end(t,[]);Ht.equals(B,R)||(y=F.unhangRange(t,y,{voids:p}))}var[O,j]=Se.edges(y),P=F.above(t,{match:He=>rt.isElement(He)&&F.isBlock(t,He),at:O,voids:p}),L=F.above(t,{match:He=>rt.isElement(He)&&F.isBlock(t,He),at:j,voids:p}),Y=P&&L&&!ae.equals(P[1],L[1]),G=ae.equals(O.path,j.path),z=p?null:(r=F.void(t,{at:O,mode:"highest"}))!==null&&r!==void 0?r:F.elementReadOnly(t,{at:O,mode:"highest"}),$=p?null:(l=F.void(t,{at:j,mode:"highest"}))!==null&&l!==void 0?l:F.elementReadOnly(t,{at:j,mode:"highest"});if(z){var Q=F.before(t,O);Q&&P&&ae.isAncestor(P[1],Q.path)&&(O=Q)}if($){var I=F.after(t,j);I&&L&&ae.isAncestor(L[1],I.path)&&(j=I)}var H=[],K;for(var W of F.nodes(t,{at:y,voids:p})){var[ne,U]=W;K&&ae.compare(U,K)===0||(!p&&rt.isElement(ne)&&(F.isVoid(t,ne)||F.isElementReadOnly(t,ne))||!ae.isCommon(U,O.path)&&!ae.isCommon(U,j.path))&&(H.push(W),K=U)}var Z=Array.from(H,He=>{var[,ut]=He;return F.pathRef(t,ut)}),J=F.pointRef(t,O),he=F.pointRef(t,j),ie="";if(!G&&!z){var xe=J.current,[Re]=F.leaf(t,xe),{path:me}=xe,{offset:ke}=O,Xe=Re.text.slice(ke);Xe.length>0&&(t.apply({type:"remove_text",path:me,offset:ke,text:Xe}),ie=Xe)}if(Z.reverse().map(He=>He.unref()).filter(He=>He!==null).forEach(He=>Pe.removeNodes(t,{at:He,voids:p})),!$){var Ye=he.current,[Qe]=F.leaf(t,Ye),{path:ft}=Ye,ce=G?O.offset:0,le=Qe.text.slice(ce,j.offset);le.length>0&&(t.apply({type:"remove_text",path:ft,offset:ce,text:le}),ie=le)}!G&&Y&&he.current&&J.current&&Pe.mergeNodes(t,{at:he.current,hanging:!0,voids:p}),S&&s&&f==="character"&&ie.length>1&&ie.match(/[\u0980-\u09FF\u0E00-\u0E7F\u1000-\u109F\u0900-\u097F\u1780-\u17FF\u0D00-\u0D7F\u0B00-\u0B7F\u0A00-\u0A7F\u0B80-\u0BFF\u0C00-\u0C7F]+/)&&Pe.insertText(t,ie.slice(0,ie.length-h));var ue=J.unref(),fe=he.unref(),Ue=s?ue||fe:fe||ue;n.at==null&&Ue&&Pe.select(t,Ue)}}})},F3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(t,()=>{var{hanging:l=!1,voids:s=!1}=r,{at:f=tA(t),batchDirty:h=!0}=r;if(n.length){if(Se.isRange(f))if(l||(f=F.unhangRange(t,f,{voids:s})),Se.isCollapsed(f))f=f.anchor;else{var[,p]=Se.edges(f);if(!s&&F.void(t,{at:p}))return;var y=F.pointRef(t,p);Pe.delete(t,{at:f}),f=y.unref()}else ae.isPath(f)&&(f=F.start(t,f));if(!(!s&&F.void(t,{at:f}))){var b=F.above(t,{at:f,match:me=>rt.isElement(me)&&F.isInline(t,me),mode:"highest",voids:s});if(b){var[,S]=b;if(F.isEnd(t,f,S)){var C=F.after(t,S);f=C}else if(F.isStart(t,f,S)){var A=F.before(t,S);f=A}}var x=F.above(t,{match:me=>rt.isElement(me)&&F.isBlock(t,me),at:f,voids:s}),[,_]=x,B=F.isStart(t,f,_),R=F.isEnd(t,f,_),O=B&&R,[,j]=$e.first({children:n},[]),[,P]=$e.last({children:n},[]),L=me=>{var[ke,Xe]=me,Ye=Xe.length===0;return Ye?!1:O?!0:!(!B&&ae.isAncestor(Xe,j)&&rt.isElement(ke)&&!t.isVoid(ke)&&!t.isInline(ke)||!R&&ae.isAncestor(Xe,P)&&rt.isElement(ke)&&!t.isVoid(ke)&&!t.isInline(ke))},Y=!0,G=[],z=[],$=[];for(var Q of $e.nodes({children:n},{pass:L})){var[I,H]=Q;Y&&rt.isElement(I)&&!t.isInline(I)&&!ae.isAncestor(H,j)&&(Y=!1),L(Q)&&(rt.isElement(I)&&!t.isInline(I)?(Y=!1,z.push(I)):Y?G.push(I):$.push(I))}var[K]=F.nodes(t,{at:f,match:me=>Ze.isText(me)||F.isInline(t,me),mode:"highest",voids:s}),[,W]=K,ne=F.isStart(t,f,W),U=F.isEnd(t,f,W),Z=F.pathRef(t,R&&!$.length?ae.next(_):_),J=F.pathRef(t,U?ae.next(W):W),he=$.length>0;Pe.splitNodes(t,{at:f,match:me=>he?rt.isElement(me)&&F.isBlock(t,me):Ze.isText(me)||F.isInline(t,me),mode:he?"lowest":"highest",always:he&&(!B||G.length>0)&&(!R||$.length>0),voids:s});var ie=F.pathRef(t,!ne||ne&&U?ae.next(W):W);if(Pe.insertNodes(t,G,{at:ie.current,match:me=>Ze.isText(me)||F.isInline(t,me),mode:"highest",voids:s,batchDirty:h}),O&&!G.length&&z.length&&!$.length&&Pe.delete(t,{at:_,voids:s}),Pe.insertNodes(t,z,{at:Z.current,match:me=>rt.isElement(me)&&F.isBlock(t,me),mode:"lowest",voids:s,batchDirty:h}),Pe.insertNodes(t,$,{at:J.current,match:me=>Ze.isText(me)||F.isInline(t,me),mode:"highest",voids:s,batchDirty:h}),!r.at){var xe;if($.length>0&&J.current?xe=ae.previous(J.current):z.length>0&&Z.current?xe=ae.previous(Z.current):ie.current&&(xe=ae.previous(ie.current)),xe){var Re=F.end(t,xe);Pe.select(t,Re)}}ie.unref(),Z.unref(),J.unref()}}})},L3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:l}=t;if(l){if(r==="anchor")Pe.select(t,l.anchor);else if(r==="focus")Pe.select(t,l.focus);else if(r==="start"){var[s]=Se.edges(l);Pe.select(t,s)}else if(r==="end"){var[,f]=Se.edges(l);Pe.select(t,f)}}else return},q3=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},U3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:l=1,unit:s="character",reverse:f=!1}=n,{edge:h=null}=n;if(r){h==="start"&&(h=Se.isBackward(r)?"focus":"anchor"),h==="end"&&(h=Se.isBackward(r)?"anchor":"focus");var{anchor:p,focus:y}=r,b={distance:l,unit:s},S={};if(h==null||h==="anchor"){var C=f?F.before(t,p,b):F.after(t,p,b);C&&(S.anchor=C)}if(h==null||h==="focus"){var A=f?F.before(t,y,b):F.after(t,y,b);A&&(S.focus=A)}Pe.setSelection(t,S)}},RE=(e,t)=>{var{selection:n}=e;if(t=F.range(e,t),n){Pe.setSelection(e,t);return}if(!Se.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(Tr.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function H3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function $3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H3(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var V3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:l}=t,{edge:s="both"}=r;if(l){s==="start"&&(s=Se.isBackward(l)?"focus":"anchor"),s==="end"&&(s=Se.isBackward(l)?"anchor":"focus");var{anchor:f,focus:h}=l,p=s==="anchor"?f:h;Pe.setSelection(t,{[s==="anchor"?"anchor":"focus"]:$3($3({},p),n)})}},G3=(e,t)=>{var{selection:n}=e,r={},l={};if(n){for(var s in t)(s==="anchor"&&t.anchor!=null&&!Ht.equals(t.anchor,n.anchor)||s==="focus"&&t.focus!=null&&!Ht.equals(t.focus,n.focus)||s!=="anchor"&&s!=="focus"&&t[s]!==n[s])&&(r[s]=n[s],l[s]=t[s]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:l})}},I3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(t,()=>{var{hanging:l=!1,voids:s=!1,mode:f="lowest",batchDirty:h=!0}=r,{at:p,match:y,select:b}=r;if($e.isNode(n)&&(n=[n]),n.length!==0){var[S]=n;if(p||(p=tA(t),b!==!1&&(b=!0)),b==null&&(b=!1),Se.isRange(p))if(l||(p=F.unhangRange(t,p,{voids:s})),Se.isCollapsed(p))p=p.anchor;else{var[,C]=Se.edges(p),A=F.pointRef(t,C);Pe.delete(t,{at:p}),p=A.unref()}if(Ht.isPoint(p)){y==null&&(Ze.isText(S)?y=Q=>Ze.isText(Q):t.isInline(S)?y=Q=>Ze.isText(Q)||F.isInline(t,Q):y=Q=>rt.isElement(Q)&&F.isBlock(t,Q));var[x]=F.nodes(t,{at:p.path,match:y,mode:f,voids:s});if(x){var[,_]=x,B=F.pathRef(t,_),R=F.isEnd(t,p,_);Pe.splitNodes(t,{at:p,match:y,mode:f,voids:s});var O=B.unref();p=R?ae.next(O):O}else return}var j=ae.parent(p),P=p[p.length-1];if(!(!s&&F.void(t,{at:j}))){if(h){var L=[],Y=ae.levels(j);S$(t,()=>{var Q=function(){var K=j.concat(P);P++;var W={type:"insert_node",path:K,node:I};t.apply(W),p=ae.next(p),L.push(W),Ze.isText(I)?Y.push(K):Y.push(...Array.from($e.nodes(I),ne=>{var[,U]=ne;return K.concat(U)}))};for(var I of n)Q()},()=>{RM(t,Y,Q=>{var I=Q;for(var H of L)if(ae.operationCanTransformPath(H)&&(I=ae.transform(I,H),!I))return null;return I})})}else for(var G of n){var z=j.concat(P);P++,t.apply({type:"insert_node",path:z,node:G}),p=ae.next(p)}if(p=ae.previous(p),b){var $=F.end(t,p);$&&Pe.select(t,$)}}}})},Y3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:l="lowest",voids:s=!1}=n,{match:f}=n;if(f==null&&(f=ae.isPath(r)?Hv(t,r):P=>rt.isElement(P)&&F.isBlock(t,P)),!!r){var h=F.nodes(t,{at:r,match:f,mode:l,voids:s}),p=Array.from(h,P=>{var[,L]=P;return F.pathRef(t,L)});for(var y of p){var b=y.unref();if(b.length<2)throw new Error("Cannot lift node at a path [".concat(b,"] because it has a depth of less than `2`."));var S=F.node(t,ae.parent(b)),[C,A]=S,x=b[b.length-1],{length:_}=C.children;if(_===1){var B=ae.next(A);Pe.moveNodes(t,{at:b,to:B,voids:s}),Pe.removeNodes(t,{at:A,voids:s})}else if(x===0)Pe.moveNodes(t,{at:b,to:A,voids:s});else if(x===_-1){var R=ae.next(A);Pe.moveNodes(t,{at:b,to:R,voids:s})}else{var O=ae.next(b),j=ae.next(A);Pe.splitNodes(t,{at:O,voids:s}),Pe.moveNodes(t,{at:b,to:j,voids:s})}}}})},k$=["text"],P$=["children"],K3=(e,t)=>{if(rt.isElement(t)){var n=t;return F.isVoid(e,t)?!0:n.children.length===1?K3(e,n.children[0]):!1}else return!F.isEditor(t)},j$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(t,()=>{var{match:r,at:l=t.selection}=n,{hanging:s=!1,voids:f=!1,mode:h="lowest"}=n;if(l){if(r==null)if(ae.isPath(l)){var[p]=F.parent(t,l);r=Q=>p.children.includes(Q)}else r=Q=>rt.isElement(Q)&&F.isBlock(t,Q);if(!s&&Se.isRange(l)&&(l=F.unhangRange(t,l,{voids:f})),Se.isRange(l))if(Se.isCollapsed(l))l=l.anchor;else{var[,y]=Se.edges(l),b=F.pointRef(t,y);Pe.delete(t,{at:l}),l=b.unref(),n.at==null&&Pe.select(t,l)}var[S]=F.nodes(t,{at:l,match:r,voids:f,mode:h}),C=F.previous(t,{at:l,match:r,voids:f,mode:h});if(!(!S||!C)){var[A,x]=S,[_,B]=C;if(!(x.length===0||B.length===0)){var R=ae.next(B),O=ae.common(x,B),j=ae.isSibling(x,B),P=Array.from(F.levels(t,{at:x}),Q=>{var[I]=Q;return I}).slice(O.length).slice(0,-1),L=F.above(t,{at:x,mode:"highest",match:Q=>P.includes(Q)&&K3(t,Q)}),Y=L&&F.pathRef(t,L[1]),G,z;if(Ze.isText(A)&&Ze.isText(_)){var $=ps(A,k$);z=_.text.length,G=$}else if(rt.isElement(A)&&rt.isElement(_)){var $=ps(A,P$);z=_.children.length,G=$}else throw new Error("Cannot merge the node at path [".concat(x,"] with the previous sibling because it is not the same kind: ").concat(Tr.stringify(A)," ").concat(Tr.stringify(_)));j||Pe.moveNodes(t,{at:x,to:R,voids:f}),Y&&Pe.removeNodes(t,{at:Y.current,voids:f}),F.shouldMergeNodesRemovePrevNode(t,C,S)?Pe.removeNodes(t,{at:B,voids:f}):t.apply({type:"merge_node",path:R,position:z,properties:G}),Y&&Y.unref()}}}})},uA=(e,t)=>{F.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:l="lowest",voids:s=!1}=t,{match:f}=t;if(r){f==null&&(f=ae.isPath(r)?Hv(e,r):A=>rt.isElement(A)&&F.isBlock(e,A));var h=F.pathRef(e,n),p=F.nodes(e,{at:r,match:f,mode:l,voids:s}),y=Array.from(p,A=>{var[,x]=A;return F.pathRef(e,x)});for(var b of y){var S=b.unref(),C=h.current;S.length!==0&&e.apply({type:"move_node",path:S,newPath:C}),h.current&&ae.isSibling(C,S)&&ae.isAfter(C,S)&&(h.current=ae.next(h.current))}h.unref()}})},X3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:l=!1,mode:s="lowest"}=n,{at:f=t.selection,match:h}=n;if(f){h==null&&(h=ae.isPath(f)?Hv(t,f):A=>rt.isElement(A)&&F.isBlock(t,A)),!r&&Se.isRange(f)&&(f=F.unhangRange(t,f,{voids:l}));var p=F.nodes(t,{at:f,match:h,mode:s,voids:l}),y=Array.from(p,A=>{var[,x]=A;return F.pathRef(t,x)});for(var b of y){var S=b.unref();if(S){var[C]=F.node(t,S);t.apply({type:"remove_node",path:S,node:C})}}}})},oA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(t,()=>{var{match:l,at:s=t.selection,compare:f,merge:h}=r,{hanging:p=!1,mode:y="lowest",split:b=!1,voids:S=!1}=r;if(s){if(l==null&&(l=ae.isPath(s)?Hv(t,s):z=>rt.isElement(z)&&F.isBlock(t,z)),!p&&Se.isRange(s)&&(s=F.unhangRange(t,s,{voids:S})),b&&Se.isRange(s)){if(Se.isCollapsed(s)&&F.leaf(t,s.anchor)[0].text.length>0)return;var C=F.rangeRef(t,s,{affinity:"inward"}),[A,x]=Se.edges(s),_=y==="lowest"?"lowest":"highest",B=F.isEnd(t,x,x.path);Pe.splitNodes(t,{at:x,match:l,mode:_,voids:S,always:!B});var R=F.isStart(t,A,A.path);Pe.splitNodes(t,{at:A,match:l,mode:_,voids:S,always:!R}),s=C.unref(),r.at==null&&Pe.select(t,s)}f||(f=(z,$)=>z!==$);for(var[O,j]of F.nodes(t,{at:s,match:l,mode:y,voids:S})){var P={},L={};if(j.length!==0){var Y=!1;for(var G in n)G==="children"||G==="text"||f(n[G],O[G])&&(Y=!0,O.hasOwnProperty(G)&&(P[G]=O[G]),h?n[G]!=null&&(L[G]=h(O[G],n[G])):n[G]!=null&&(L[G]=n[G]));Y&&t.apply({type:"set_node",path:j,properties:P,newProperties:L})}}}})},F$=(e,t)=>{if(Se.isCollapsed(t))return t.anchor;var[,n]=Se.edges(t),r=F.pointRef(e,n);return Pe.delete(e,{at:t}),r.unref()},Z3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:l=!1}=n,{match:s,at:f=t.selection,height:h=0,always:p=!1}=n;if(s==null&&(s=he=>rt.isElement(he)&&F.isBlock(t,he)),Se.isRange(f)&&(f=F$(t,f)),ae.isPath(f)){var y=f,b=F.point(t,y),[S]=F.parent(t,y);s=he=>he===S,h=b.path.length-y.length+1,f=b,p=!0}if(f){var C=F.pointRef(t,f,{affinity:"backward"}),A;try{var[x]=F.nodes(t,{at:f,match:s,mode:r,voids:l});if(!x)return;var _=F.void(t,{at:f,mode:"highest"}),B=0;if(!l&&_){var[R,O]=_;if(rt.isElement(R)&&t.isInline(R)){var j=F.after(t,O);if(!j){var P={text:""},L=ae.next(O);Pe.insertNodes(t,P,{at:L,voids:l}),j=F.point(t,L)}f=j,p=!0}var Y=f.path.length-O.length;h=Y+1,p=!0}A=F.pointRef(t,f);var G=f.path.length-h,[,z]=x,$=f.path.slice(0,G),Q=h===0?f.offset:f.path[G]+B;for(var[I,H]of F.levels(t,{at:$,reverse:!0,voids:l})){var K=!1;if(H.length<z.length||H.length===0||!l&&rt.isElement(I)&&F.isVoid(t,I))break;var W=C.current,ne=F.isEnd(t,W,H);if(p||!C||!F.isEdge(t,W,H)){K=!0;var U=$e.extractProps(I);t.apply({type:"split_node",path:H,position:Q,properties:U})}Q=H[H.length-1]+(K||ne?1:0)}if(n.at==null){var Z=A.current||F.end(t,[]);Pe.select(t,Z)}}finally{var J;C.unref(),(J=A)===null||J===void 0||J.unref()}}})},Q3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var l={};for(var s of n)l[s]=null;Pe.setNodes(t,l,r)},W3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(t,()=>{var{mode:r="lowest",split:l=!1,voids:s=!1}=n,{at:f=t.selection,match:h}=n;if(f){h==null&&(h=ae.isPath(f)?Hv(t,f):A=>rt.isElement(A)&&F.isBlock(t,A)),ae.isPath(f)&&(f=F.range(t,f));var p=Se.isRange(f)?F.rangeRef(t,f):null,y=F.nodes(t,{at:f,match:h,mode:r,voids:s}),b=Array.from(y,A=>{var[,x]=A;return F.pathRef(t,x)}).reverse(),S=function(){var x=C.unref(),[_]=F.node(t,x),B=F.range(t,x);l&&p&&(B=Se.intersection(p.current,B)),Pe.liftNodes(t,{at:B,match:R=>rt.isAncestor(_)&&_.children.includes(R),voids:s})};for(var C of b)S();p&&p.unref()}})};function J3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ez(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J3(Object(n),!0).forEach(function(r){Za(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(t,()=>{var{mode:l="lowest",split:s=!1,voids:f=!1}=r,{match:h,at:p=t.selection}=r;if(p){if(h==null&&(ae.isPath(p)?h=Hv(t,p):t.isInline(n)?h=B=>rt.isElement(B)&&F.isInline(t,B)||Ze.isText(B):h=B=>rt.isElement(B)&&F.isBlock(t,B)),s&&Se.isRange(p)){var[y,b]=Se.edges(p),S=F.rangeRef(t,p,{affinity:"inward"});Pe.splitNodes(t,{at:b,match:h,voids:f}),Pe.splitNodes(t,{at:y,match:h,voids:f}),p=S.unref(),r.at==null&&Pe.select(t,p)}var C=Array.from(F.nodes(t,{at:p,match:t.isInline(n)?B=>rt.isElement(B)&&F.isBlock(t,B):B=>F.isEditor(B),mode:"lowest",voids:f})),A=function(){var R=Se.isRange(p)?Se.intersection(p,F.range(t,_)):p;if(!R)return 0;var O=Array.from(F.nodes(t,{at:R,match:h,mode:l,voids:f}));if(O.length>0){var[j]=O,P=O[O.length-1],[,L]=j,[,Y]=P;if(L.length===0&&Y.length===0)return 0;var G=ae.equals(L,Y)?ae.parent(L):ae.common(L,Y),z=F.range(t,L,Y),$=F.node(t,G),[Q]=$,I=G.length+1,H=ae.next(Y.slice(0,I)),K=ez(ez({},n),{},{children:[]});Pe.insertNodes(t,K,{at:H,voids:f}),Pe.moveNodes(t,{at:z,match:W=>rt.isAncestor(Q)&&Q.children.includes(W),to:H.concat(0),voids:f})}},x;for(var[,_]of C)x=A()}})},tz=()=>{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),l=0;l<n;l++)r[l]=arguments[l];return NM(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return qM(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return IM(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return YM(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return KM(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return zM(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return o3(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return w$(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return F3(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return C$(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return O$(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return kM(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return M3(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return MM(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return PM(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return jM(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return $M(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return aA(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return L3(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return z$(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return q3(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return XM(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return WM(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return iA(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return JM(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return e3(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return y3(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return a3(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return i3(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return l3(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return u3(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return I3(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return c3(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return f3(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return yy(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return d3(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return h3(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return v3(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return p3(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return m3(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return g3(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return Y3(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return j$(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return U3(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return uA(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return B$(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return b3(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return _$(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return E3(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return D3(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return w3(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return S3(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return C3(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return x3(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return A3(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return O3(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return T3(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return R$(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return R3(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return B3(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return _3(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return X3(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return RE(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return oA(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return z3(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return V3(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return G3(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return Z3(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return lA(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return k3(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return P3(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return Q3(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return W3(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return r3(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return j3(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return sA(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return M$(e,...r)}};return e},wu={},nz;function L$(){if(nz)return wu;nz=1,Object.defineProperty(wu,"__esModule",{value:!0});for(var e=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},r={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},l=1;l<20;l++)r["f"+l]=111+l;function s(C,A,x){A&&!("byKey"in A)&&(x=A,A=null),Array.isArray(C)||(C=[C]);var _=C.map(function(O){return p(O,A)}),B=function(j){return _.some(function(P){return y(P,j)})},R=x==null?B:B(x);return R}function f(C,A){return s(C,A)}function h(C,A){return s(C,{byKey:!0},A)}function p(C,A){var x=A&&A.byKey,_={};C=C.replace("++","+add");var B=C.split("+"),R=B.length;for(var O in t)_[t[O]]=!1;var j=!0,P=!1,L=void 0;try{for(var Y=B[Symbol.iterator](),G;!(j=(G=Y.next()).done);j=!0){var z=G.value,$=z.endsWith("?")&&z.length>1;$&&(z=z.slice(0,-1));var Q=S(z),I=t[Q];if(z.length>1&&!I&&!n[z]&&!r[Q])throw new TypeError('Unknown modifier: "'+z+'"');(R===1||!I)&&(x?_.key=Q:_.which=b(z)),I&&(_[I]=$?null:!0)}}catch(H){P=!0,L=H}finally{try{!j&&Y.return&&Y.return()}finally{if(P)throw L}}return _}function y(C,A){for(var x in C){var _=C[x],B=void 0;if(_!=null&&(x==="key"&&A.key!=null?B=A.key.toLowerCase():x==="which"?B=_===91&&A.which===93?91:A.which:B=A[x],!(B==null&&_===!1)&&B!==_))return!1}return!0}function b(C){C=S(C);var A=r[C]||C.toUpperCase().charCodeAt(0);return A}function S(C){return C=C.toLowerCase(),C=n[C]||C,C}return wu.default=s,wu.isHotkey=s,wu.isCodeHotkey=f,wu.isKeyHotkey=h,wu.parseHotkey=p,wu.compareHotkey=y,wu.toKeyCode=b,wu.toKeyName=S,wu}var gs=L$(),rz=globalThis.Node,q$=globalThis.Text,cA=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,U$=e=>Uc(e)&&e.nodeType===8,_l=e=>Uc(e)&&e.nodeType===1,Uc=e=>{var t=cA(e);return!!t&&e instanceof t.Node},fA=e=>{var t=e&&e.anchorNode&&cA(e.anchorNode);return!!t&&e instanceof t.Selection},az=e=>Uc(e)&&e.nodeType===3,H$=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,$$=e=>{var[t,n]=e;if(_l(t)&&t.childNodes.length){var r=n===t.childNodes.length,l=r?n-1:n;for([t,l]=iz(t,l,r?"backward":"forward"),r=l<n;_l(t)&&t.childNodes.length;){var s=r?t.childNodes.length-1:0;t=G$(t,s,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},V$=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},iz=(e,t,n)=>{for(var{childNodes:r}=e,l=r[t],s=t,f=!1,h=!1;(U$(l)||_l(l)&&l.childNodes.length===0||_l(l)&&l.getAttribute("contenteditable")==="false")&&!(f&&h);){if(s>=r.length){f=!0,s=t-1,n="backward";continue}if(s<0){h=!0,s=t+1,n="forward";continue}l=r[s],t=s,s+=n==="forward"?1:-1}return[l,t]},G$=(e,t,n)=>{var[r]=iz(e,t,n);return r},lz=e=>{var t="";if(az(e)&&e.nodeValue)return e.nodeValue;if(_l(e)){for(var n of Array.from(e.childNodes))t+=lz(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
272
+ `)}return t},I$=/data-slate-fragment="(.+?)"/m,Y$=e=>{var t=e.getData("text/html"),[,n]=t.match(I$)||[];return n},by=e=>e.getSelection!=null?e.getSelection():document.getSelection(),dA=(e,t,n)=>{var{target:r}=t;if(_l(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:l}=Je.getWindow(e);if(l.contains(r))return Je.hasDOMNode(e,r,{editable:!0});var s=n.find(f=>{var{addedNodes:h,removedNodes:p}=f;for(var y of h)if(y===r||y.contains(r))return!0;for(var b of p)if(b===r||b.contains(r))return!0});return!s||s===t?!1:dA(e,s,n)},K$=()=>{for(var e=document.activeElement;(t=e)!==null&&t!==void 0&&t.shadowRoot&&(n=e.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var t,n,r;e=(r=e)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return e},uz=(e,t)=>!!(e.compareDocumentPosition(t)&rz.DOCUMENT_POSITION_PRECEDING),X$=(e,t)=>!!(e.compareDocumentPosition(t)&rz.DOCUMENT_POSITION_FOLLOWING),hA,vA,Z$=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,oz=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Qa=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Hc=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Dd=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),Q$=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),pA=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),sz=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),W$=Qa&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),J$=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),eV=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),tV=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent)&&(!pA||sz),NE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((hA=navigator.userAgent.match(/Version\/(\d+)/))!==null&&hA!==void 0&&hA[1]&&parseInt((vA=navigator.userAgent.match(/Version\/(\d+)/))===null||vA===void 0?void 0:vA[1],10)<17);var $c=(!sz||!W$)&&!Q$&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function";function Ey(e){"@babel/helpers - typeof";return Ey=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},Ey(e)}function nV(e,t){if(Ey(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ey(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rV(e){var t=nV(e,"string");return Ey(t)==="symbol"?t:String(t)}function mA(e,t,n){return t=rV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aV=0;let cz=class{constructor(){mA(this,"id",void 0),this.id="".concat(aV++)}};var Vv=new WeakMap,Gv=new WeakMap,Dy=new WeakMap,fz=new WeakMap,Sy=new WeakMap,gA=new WeakMap,Cy=new WeakMap,Sd=new WeakMap,ME=new WeakMap,zE=new WeakMap,yA=new WeakMap,Vc=new WeakMap,Cd=new WeakMap,wy=new WeakMap,bA=new WeakMap,EA=new WeakMap,Au=new WeakMap,ys=new WeakMap,Si=new WeakMap,Gc=new WeakMap,Ic=new WeakMap,dz=new WeakMap,Iv=Symbol("placeholder"),hz=Symbol("mark-placeholder"),Je={androidPendingDiffs:e=>Si.get(e),androidScheduleFlush:e=>{var t;(t=EA.get(e))===null||t===void 0||t()},blur:e=>{var t=Je.toDOMNode(e,e),n=Je.findDocumentOrShadowRoot(e);Vc.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=Je.findDocumentOrShadowRoot(e),r=by(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&Pe.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Je.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:l}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var s=Je.toSlateNode(e,t.target),f=Je.findPath(e,s);if(rt.isElement(s)&&F.isVoid(e,s)){var h=l.getBoundingClientRect(),p=e.isInline(s)?n-h.left<h.left+h.width-n:r-h.top<h.top+h.height-r,y=F.point(e,f,{edge:p?"start":"end"}),b=p?F.before(e,y):F.after(e,y);if(b){var S=F.range(e,b);return S}}var C,{document:A}=Je.getWindow(e);if(A.caretRangeFromPoint)C=A.caretRangeFromPoint(n,r);else{var x=A.caretPositionFromPoint(n,r);x&&(C=A.createRange(),C.setStart(x.offsetNode,x.offset),C.setEnd(x.offsetNode,x.offset))}if(!C)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var _=Je.toSlateRange(e,C,{exactMatch:!1,suppressThrow:!1});return _},findKey:(e,t)=>{var n=ME.get(t);return n||(n=new cz,ME.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var l=Dy.get(r);if(l==null){if(F.isEditor(r))return n;break}var s=Gv.get(r);if(s==null)break;n.unshift(s),r=l}throw new Error("Unable to find the path for Slate node: ".concat(Tr.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!Vc.get(t)&&Sy.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(()=>{Je.focus(t,{retries:n.retries-1})},10);return}var r=Je.toDOMNode(t,t),l=Je.findDocumentOrShadowRoot(t);if(l.activeElement!==r){if(t.selection&&l instanceof Document){var s=by(l),f=Je.toDOMRange(t,t.selection);s?.removeAllRanges(),s?.addRange(f)}t.selection||Pe.select(t,F.start(t,[])),Vc.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=fz.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:l=!1}=r,s=Je.toDOMNode(t,t),f;try{f=_l(n)?n:n.parentElement}catch(h){if(h instanceof Error&&!h.message.includes('Permission denied to access property "nodeType"'))throw h}return f?f.closest("[data-slate-editor]")===s&&(!l||f.isContentEditable?!0:typeof f.isContentEditable=="boolean"&&f.closest('[contenteditable="false"]')===s||!!f.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>Uc(t)&&Je.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return F.hasPath(e,n.path)&&F.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>Je.hasEditableTarget(e,t)||Je.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>Uc(t)&&Je.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Cd.get(e),isFocused:e=>!!Vc.get(e),isReadOnly:e=>!!yA.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(yA.get(e))return!1;var n=Je.hasTarget(e,t)&&Je.toSlateNode(e,t);return rt.isElement(n)&&F.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=zE.get(e),r=F.isEditor(t)?Sy.get(e):n?.get(Je.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Tr.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=F.node(e,t.path),r=Je.toDOMNode(e,n),l;F.void(e,{at:t})&&(t={path:t.path,offset:0});for(var s="[data-slate-string], [data-slate-zero-width]",f=Array.from(r.querySelectorAll(s)),h=0,p=0;p<f.length;p++){var y=f[p],b=y.childNodes[0];if(!(b==null||b.textContent==null)){var{length:S}=b.textContent,C=y.getAttribute("data-slate-length"),A=C==null?S:parseInt(C,10),x=h+A,_=f[p+1];if(t.offset===x&&_!==null&&_!==void 0&&_.hasAttribute("data-slate-mark-placeholder")){var B,R=_.childNodes[0];l=[R instanceof q$?R:_,(B=_.textContent)!==null&&B!==void 0&&B.startsWith("\uFEFF")?1:0];break}if(t.offset<=x){var O=Math.min(S,Math.max(0,t.offset-h));l=[b,O];break}h=x}}if(!l)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Tr.stringify(t)));return l},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,l=Se.isBackward(t),s=Je.toDOMPoint(e,n),f=Se.isCollapsed(t)?s:Je.toDOMPoint(e,r),h=Je.getWindow(e),p=h.document.createRange(),[y,b]=l?f:s,[S,C]=l?s:f,A=_l(y)?y:y.parentElement,x=!!A.getAttribute("data-slate-zero-width"),_=_l(S)?S:S.parentElement,B=!!_.getAttribute("data-slate-zero-width");return p.setStart(y,x?1:b),p.setEnd(S,B?1:C),p},toSlateNode:(e,t)=>{var n=_l(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Cy.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:l,searchDirection:s="backward"}=n,[f,h]=r?t:$$(t),p=f.parentNode,y=null,b=0;if(p){var S,C,A=Je.toDOMNode(e,e),x=p.closest('[data-slate-void="true"]'),_=x&&A.contains(x)?x:null,B=p.closest('[contenteditable="false"]'),R=B&&A.contains(B)?B:null,O=p.closest("[data-slate-leaf]"),j=null;if(O){if(y=O.closest('[data-slate-node="text"]'),y){var P=Je.getWindow(e),L=P.document.createRange();L.setStart(y,0),L.setEnd(f,h);var Y=L.cloneContents(),G=[...Array.prototype.slice.call(Y.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(Y.querySelectorAll("[contenteditable=false]"))];G.forEach(me=>{if(Qa&&!r&&me.hasAttribute("data-slate-zero-width")&&me.textContent.length>0&&me.textContext!=="\uFEFF"){me.textContent.startsWith("\uFEFF")&&(me.textContent=me.textContent.slice(1));return}me.parentNode.removeChild(me)}),b=Y.textContent.length,j=y}}else if(_){for(var z=_.querySelectorAll("[data-slate-leaf]"),$=0;$<z.length;$++){var Q=z[$];if(Je.hasDOMNode(e,Q)){O=Q;break}}O?(y=O.closest('[data-slate-node="text"]'),j=O,b=j.textContent.length,j.querySelectorAll("[data-slate-zero-width]").forEach(me=>{b-=me.textContent.length})):b=1}else if(R){var I=me=>me?me.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],H=R.closest('[data-slate-node="element"]');if(s==="forward"){var K,W=[...I(H),...I(H?.nextElementSibling)];O=(K=W.find(me=>X$(R,me)))!==null&&K!==void 0?K:null}else{var ne,U=[...I(H?.previousElementSibling),...I(H)];O=(ne=U.findLast(me=>uz(R,me)))!==null&&ne!==void 0?ne:null}O&&(y=O.closest('[data-slate-node="text"]'),j=O,s==="forward"?b=0:(b=j.textContent.length,j.querySelectorAll("[data-slate-zero-width]").forEach(me=>{b-=me.textContent.length})))}j&&b===j.textContent.length&&Qa&&j.getAttribute("data-slate-zero-width")==="z"&&(S=j.textContent)!==null&&S!==void 0&&S.startsWith("\uFEFF")&&(p.hasAttribute("data-slate-zero-width")||Hc&&(C=j.textContent)!==null&&C!==void 0&&C.endsWith(`
273
+
274
+ `))&&b--}if(Qa&&!y&&!r){var Z=p.hasAttribute("data-slate-node")?p:p.closest("[data-slate-node]");if(Z&&Je.hasDOMNode(e,Z,{editable:!0})){var J=Je.toSlateNode(e,Z),{path:he,offset:ie}=F.start(e,Je.findPath(e,J));return Z.querySelector("[data-slate-leaf]")||(ie=h),{path:he,offset:ie}}}if(!y){if(l)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var xe=Je.toSlateNode(e,y),Re=Je.findPath(e,xe);return{path:Re,offset:b}},toSlateRange:(e,t,n)=>{var r,{exactMatch:l,suppressThrow:s}=n,f=fA(t)?t.anchorNode:t.startContainer,h,p,y,b,S;if(f)if(fA(t)){if(Hc&&t.rangeCount>1){y=t.focusNode;var C=t.getRangeAt(0),A=t.getRangeAt(t.rangeCount-1);if(y instanceof HTMLTableRowElement&&C.startContainer instanceof HTMLTableRowElement&&A.startContainer instanceof HTMLTableRowElement){let Y=function(G){return G.childElementCount>0?Y(G.children[0]):G};var x=C.startContainer,_=A.startContainer,B=Y(x.children[C.startOffset]),R=Y(_.children[A.startOffset]);b=0,R.childNodes.length>0?h=R.childNodes[0]:h=R,B.childNodes.length>0?y=B.childNodes[0]:y=B,R instanceof HTMLElement?p=R.innerHTML.length:p=0}else C.startContainer===y?(h=A.endContainer,p=A.endOffset,b=C.startOffset):(h=C.startContainer,p=C.endOffset,b=A.startOffset)}else h=t.anchorNode,p=t.anchorOffset,y=t.focusNode,b=t.focusOffset;pA&&V$(h)||Hc?S=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:S=t.isCollapsed}else h=t.startContainer,p=t.startOffset,y=t.endContainer,b=t.endOffset,S=t.collapsed;if(h==null||y==null||p==null||b==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));Hc&&(r=y.textContent)!==null&&r!==void 0&&r.endsWith(`
275
+
276
+ `)&&b===y.textContent.length&&b--;var O=Je.toSlatePoint(e,[h,p],{exactMatch:l,suppressThrow:s});if(!O)return null;var j=uz(h,y)||h===y&&b<p,P=S?O:Je.toSlatePoint(e,[y,b],{exactMatch:l,suppressThrow:s,searchDirection:j?"forward":"backward"});if(!P)return null;var L={anchor:O,focus:P};return Se.isExpanded(L)&&Se.isForward(L)&&_l(y)&&F.void(e,{at:L.focus,mode:"highest"})&&(L=F.unhangRange(e,L,{voids:!0})),L}};function iV(e,t){var{path:n,diff:r}=t;if(!F.hasPath(e,n))return!1;var l=$e.get(e,n);if(!Ze.isText(l))return!1;if(r.start!==l.text.length||r.text.length===0)return l.text.slice(r.start,r.start+r.text.length)===r.text;var s=ae.next(n);if(!F.hasPath(e,s))return!1;var f=$e.get(e,s);return Ze.isText(f)&&f.text.startsWith(r.text)}function vz(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((l,s)=>l.slice(0,s.start)+s.text+l.slice(s.end),e)}function lV(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 uV(e,t,n){for(var r=Math.min(e.length,t.length,n),l=0;l<r;l++)if(e.charAt(e.length-l-1)!==t.charAt(t.length-l-1))return l;return r}function pz(e,t){var{start:n,end:r,text:l}=t,s=e.slice(n,r),f=lV(s,l),h=Math.min(s.length-f,l.length-f),p=uV(s,l,h),y={start:n+f,end:r-p,text:l.slice(f,l.length-p)};return y.start===y.end&&y.text.length===0?null:y}function oV(e,t,n){var r=Math.min(t.start,n.start),l=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),s=vz(e,t,n),f=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-l),h=s.slice(r,f),p=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return pz(e,{start:r,end:p,text:h})}function sV(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function DA(e,t){var{path:n,offset:r}=t;if(!F.hasPath(e,n))return null;var l=$e.get(e,n);if(!Ze.isText(l))return null;var s=F.above(e,{match:h=>rt.isElement(h)&&F.isBlock(e,h),at:n});if(!s)return null;for(;r>l.text.length;){var f=F.next(e,{at:n,match:Ze.isText});if(!f||!ae.isDescendant(f[1],s[1]))return null;r-=l.text.length,l=f[0],n=f[1]}return{path:n,offset:r}}function mz(e,t){var n=DA(e,t.anchor);if(!n)return null;if(Se.isCollapsed(t))return{anchor:n,focus:n};var r=DA(e,t.focus);return r?{anchor:n,focus:r}:null}function SA(e,t,n){var r=Si.get(e),l=r?.find(b=>{var{path:S}=b;return ae.equals(S,t.path)});if(!l||t.offset<=l.diff.start)return Ht.transform(t,n,{affinity:"backward"});var{diff:s}=l;if(t.offset<=s.start+s.text.length){var f={path:t.path,offset:s.start},h=Ht.transform(f,n,{affinity:"backward"});return h?{path:h.path,offset:h.offset+t.offset-s.start}:null}var p={path:t.path,offset:t.offset-s.text.length+s.end-s.start},y=Ht.transform(p,n,{affinity:"backward"});return y?n.type==="split_node"&&ae.equals(n.path,t.path)&&p.offset<n.position&&s.start<n.position?y:{path:y.path,offset:y.offset+s.text.length-s.end+s.start}:null}function gz(e,t,n){var r=SA(e,t.anchor,n);if(!r)return null;if(Se.isCollapsed(t))return{anchor:r,focus:r};var l=SA(e,t.focus,n);return l?{anchor:r,focus:l}:null}function cV(e,t){var{path:n,diff:r,id:l}=e;switch(t.type){case"insert_text":return!ae.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:l,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:l,path:n};case"remove_text":return!ae.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:l,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:l,path:n};case"split_node":return!ae.equals(t.path,n)||t.position>=r.end?{diff:r,id:l,path:ae.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:l,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:l,path:ae.transform(n,t,{affinity:"forward"})};case"merge_node":return ae.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:l,path:ae.transform(n,t)}:{diff:r,id:l,path:ae.transform(n,t)}}var s=ae.transform(n,t);return s?{diff:r,path:s,id:l}:null}var yz=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},bz=(e,t,n)=>{var r=Je.toDOMRange(e,t).getBoundingClientRect(),l=Je.toDOMRange(e,n).getBoundingClientRect();return yz(r,l)&&yz(l,r)},fV=(e,t)=>{var n=F.range(e,Se.end(t)),r=Array.from(F.positions(e,{at:t})),l=0,s=r.length,f=Math.floor(s/2);if(bz(e,F.range(e,r[l]),n))return F.range(e,r[l],n);if(r.length<2)return F.range(e,r[r.length-1],n);for(;f!==r.length&&f!==l;)bz(e,F.range(e,r[f]),n)?s=f:l=f,f=Math.floor((l+s)/2);return F.range(e,r[l],n)};function Ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Dz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ez(Object(n),!0).forEach(function(r){mA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ez(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var dV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:l,onChange:s,deleteBackward:f,addMark:h,removeMark:p}=r;return zE.set(r,new WeakMap),r.addMark=(y,b)=>{var S,C;(S=EA.get(r))===null||S===void 0||S(),!Au.get(r)&&(C=Si.get(r))!==null&&C!==void 0&&C.length&&Au.set(r,null),ys.delete(r),h(y,b)},r.removeMark=y=>{var b;!Au.get(r)&&(b=Si.get(r))!==null&&b!==void 0&&b.length&&Au.set(r,null),ys.delete(r),p(y)},r.deleteBackward=y=>{if(y!=="line")return f(y);if(r.selection&&Se.isCollapsed(r.selection)){var b=F.above(r,{match:x=>rt.isElement(x)&&F.isBlock(r,x),at:r.selection});if(b){var[,S]=b,C=F.range(r,S,r.selection.anchor),A=fV(r,C);Se.isCollapsed(A)||Pe.delete(r,{at:A})}}},r.apply=y=>{var b=[],S=[],C=Si.get(r);if(C!=null&&C.length){var A=C.map(W=>cV(W,y)).filter(Boolean);Si.set(r,A)}var x=Ic.get(r);x&&Ic.set(r,gz(r,x,y));var _=Gc.get(r);if(_!=null&&_.at){var B=Ht.isPoint(_?.at)?SA(r,_.at,y):gz(r,_.at,y);Gc.set(r,B?Dz(Dz({},_),{},{at:B}):null)}switch(y.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{b.push(...Yv(r,y.path));break}case"set_selection":{var R;(R=wy.get(r))===null||R===void 0||R.unref(),wy.delete(r);break}case"insert_node":case"remove_node":{b.push(...Yv(r,ae.parent(y.path)));break}case"merge_node":{var O=ae.previous(y.path);b.push(...Yv(r,O));break}case"move_node":{var j=ae.common(ae.parent(y.path),ae.parent(y.newPath));b.push(...Yv(r,j));var P;ae.isBefore(y.path,y.newPath)?(b.push(...Yv(r,ae.parent(y.path))),P=y.newPath):(b.push(...Yv(r,ae.parent(y.newPath))),P=y.path);var L=$e.get(t,ae.parent(P)),Y=Je.findKey(r,L),G=F.pathRef(r,ae.parent(P));S.push([G,Y]);break}}switch(l(y),y.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":Vv.set(r,!0)}for(var[z,$]of b){var[Q]=F.node(r,z);ME.set(Q,$)}for(var[I,H]of S){if(I.current){var[K]=F.node(r,I.current);ME.set(K,H)}I.unref()}},r.setFragmentData=y=>{var{selection:b}=r;if(b){var[S,C]=Se.edges(b),A=F.void(r,{at:S.path}),x=F.void(r,{at:C.path});if(!(Se.isCollapsed(b)&&!A)){var _=Je.toDOMRange(r,b),B=_.cloneContents(),R=B.childNodes[0];if(B.childNodes.forEach(Q=>{Q.textContent&&Q.textContent.trim()!==""&&(R=Q)}),x){var[O]=x,j=_.cloneRange(),P=Je.toDOMNode(r,O);j.setEndAfter(P),B=j.cloneContents()}if(A&&(R=B.querySelector("[data-slate-spacer]")),Array.from(B.querySelectorAll("[data-slate-zero-width]")).forEach(Q=>{var I=Q.getAttribute("data-slate-zero-width")==="n";Q.textContent=I?`
277
+ `:""}),az(R)){var L=R.ownerDocument.createElement("span");L.style.whiteSpace="pre",L.appendChild(R),B.appendChild(L),R=L}var Y=r.getFragment(),G=JSON.stringify(Y),z=window.btoa(encodeURIComponent(G));R.setAttribute("data-slate-fragment",z),y.setData("application/".concat(n),z);var $=B.ownerDocument.createElement("div");return $.appendChild(B),$.setAttribute("hidden","true"),B.ownerDocument.body.appendChild($),y.setData("text/html",$.innerHTML),y.setData("text/plain",lz($)),B.ownerDocument.body.removeChild($),y}}},r.insertData=y=>{r.insertFragmentData(y)||r.insertTextData(y)},r.insertFragmentData=y=>{var b=y.getData("application/".concat(n))||Y$(y);if(b){var S=decodeURIComponent(window.atob(b)),C=JSON.parse(S);return r.insertFragment(C),!0}return!1},r.insertTextData=y=>{var b=y.getData("text/plain");if(b){var S=b.split(/\r\n|\r|\n/),C=!1;for(var A of S)C&&Pe.splitNodes(r,{always:!0}),r.insertText(A),C=!0;return!0}return!1},r.onChange=y=>{var b=bA.get(r);b&&b(y),s(y)},r},Yv=(e,t)=>{var n=[];for(var[r,l]of F.levels(e,{at:t})){var s=Je.findKey(e,r);n.push([l,s])}return n},hV=3,vV={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"},pV={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"},mV={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},In=e=>{var t=vV[e],n=pV[e],r=mV[e],l=t&&gs.isHotkey(t),s=n&&gs.isHotkey(n),f=r&&gs.isHotkey(r);return h=>!!(l&&l(h)||oz&&s&&s(h)||!oz&&f&&f(h))},sr={isBold:In("bold"),isCompose:In("compose"),isMoveBackward:In("moveBackward"),isMoveForward:In("moveForward"),isDeleteBackward:In("deleteBackward"),isDeleteForward:In("deleteForward"),isDeleteLineBackward:In("deleteLineBackward"),isDeleteLineForward:In("deleteLineForward"),isDeleteWordBackward:In("deleteWordBackward"),isDeleteWordForward:In("deleteWordForward"),isExtendBackward:In("extendBackward"),isExtendForward:In("extendForward"),isExtendLineBackward:In("extendLineBackward"),isExtendLineForward:In("extendLineForward"),isItalic:In("italic"),isMoveLineBackward:In("moveLineBackward"),isMoveLineForward:In("moveLineForward"),isMoveWordBackward:In("moveWordBackward"),isMoveWordForward:In("moveWordForward"),isRedo:In("redo"),isSoftBreak:In("insertSoftBreak"),isSplitBlock:In("splitBlock"),isTransposeCharacter:In("transposeCharacter"),isUndo:In("undo")};function gV(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function Sz(e,t){if(e==null)return{};var n=gV(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var yV=["anchor","focus"],bV=["anchor","focus"];function Cz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function wz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cz(Object(n),!0).forEach(function(r){mA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var EV=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),Az=(e,t)=>{var n=Sz(e,yV),r=Sz(t,bV);return e[Iv]===t[Iv]&&EV(n,r)},Ay=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],l=t[n];if(!Se.equals(r,l)||!Az(r,l))return!1}return!0},kE=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],l=t[n];if(r.anchor.offset!==l.anchor.offset||r.focus.offset!==l.focus.offset||!Az(r,l))return!1}return!0},DV=(e,t,n)=>{var r=Array.from(t.children,()=>[]);if(n.length===0)return r;var l=Je.findPath(e,t),s=l.length,f=F.range(e,l),h=new Array(t.children.length),p=j=>{var P=h[j];if(P)return P;var L=F.range(e,[...l,j]);return h[j]=L,L};for(var y of n){var b=Se.intersection(f,y);if(b)for(var[S,C]=Se.edges(b),A=S.path[s],x=C.path[s],_=A;_<=x;_++){var B=r[_];if(B){var R=p(_),O=Se.intersection(R,y);O&&B.push(wz(wz({},y),O))}}}return r},wd=[],SV=function(){return wd.some(function(e){return e.activeTargets.length>0})},CV=function(){return wd.some(function(e){return e.skippedTargets.length>0})},Oz="ResizeObserver loop completed with undelivered notifications.",wV=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Oz}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Oz),window.dispatchEvent(e)},Oy;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Oy||(Oy={}));var Ad=function(e){return Object.freeze(e)},AV=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ad(this)}return e})(),xz=(function(){function e(t,n,r,l){return this.x=t,this.y=n,this.width=r,this.height=l,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ad(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,l=t.top,s=t.right,f=t.bottom,h=t.left,p=t.width,y=t.height;return{x:n,y:r,top:l,right:s,bottom:f,left:h,width:p,height:y}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),CA=function(e){return e instanceof SVGElement&&"getBBox"in e},Tz=function(e){if(CA(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var l=e,s=l.offsetWidth,f=l.offsetHeight;return!(s||f||e.getClientRects().length)},Bz=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},OV=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},xy=typeof window<"u"?window:{},PE=new WeakMap,_z=/auto|scroll/,xV=/^tb|vertical/,TV=/msie|trident/i.test(xy.navigator&&xy.navigator.userAgent),ho=function(e){return parseFloat(e||"0")},Kv=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new AV((n?t:e)||0,(n?e:t)||0)},Rz=Ad({devicePixelContentBoxSize:Kv(),borderBoxSize:Kv(),contentBoxSize:Kv(),contentRect:new xz(0,0,0,0)}),Nz=function(e,t){if(t===void 0&&(t=!1),PE.has(e)&&!t)return PE.get(e);if(Tz(e))return PE.set(e,Rz),Rz;var n=getComputedStyle(e),r=CA(e)&&e.ownerSVGElement&&e.getBBox(),l=!TV&&n.boxSizing==="border-box",s=xV.test(n.writingMode||""),f=!r&&_z.test(n.overflowY||""),h=!r&&_z.test(n.overflowX||""),p=r?0:ho(n.paddingTop),y=r?0:ho(n.paddingRight),b=r?0:ho(n.paddingBottom),S=r?0:ho(n.paddingLeft),C=r?0:ho(n.borderTopWidth),A=r?0:ho(n.borderRightWidth),x=r?0:ho(n.borderBottomWidth),_=r?0:ho(n.borderLeftWidth),B=S+y,R=p+b,O=_+A,j=C+x,P=h?e.offsetHeight-j-e.clientHeight:0,L=f?e.offsetWidth-O-e.clientWidth:0,Y=l?B+O:0,G=l?R+j:0,z=r?r.width:ho(n.width)-Y-L,$=r?r.height:ho(n.height)-G-P,Q=z+B+L+O,I=$+R+P+j,H=Ad({devicePixelContentBoxSize:Kv(Math.round(z*devicePixelRatio),Math.round($*devicePixelRatio),s),borderBoxSize:Kv(Q,I,s),contentBoxSize:Kv(z,$,s),contentRect:new xz(S,p,z,$)});return PE.set(e,H),H},Mz=function(e,t,n){var r=Nz(e,n),l=r.borderBoxSize,s=r.contentBoxSize,f=r.devicePixelContentBoxSize;switch(t){case Oy.DEVICE_PIXEL_CONTENT_BOX:return f;case Oy.BORDER_BOX:return l;default:return s}},BV=(function(){function e(t){var n=Nz(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ad([n.borderBoxSize]),this.contentBoxSize=Ad([n.contentBoxSize]),this.devicePixelContentBoxSize=Ad([n.devicePixelContentBoxSize])}return e})(),zz=function(e){if(Tz(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_V=function(){var e=1/0,t=[];wd.forEach(function(f){if(f.activeTargets.length!==0){var h=[];f.activeTargets.forEach(function(y){var b=new BV(y.target),S=zz(y.target);h.push(b),y.lastReportedSize=Mz(y.target,y.observedBox),S<e&&(e=S)}),t.push(function(){f.callback.call(f.observer,h,f.observer)}),f.activeTargets.splice(0,f.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var l=r[n];l()}return e},kz=function(e){wd.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(l){l.isActive()&&(zz(l.target)>e?n.activeTargets.push(l):n.skippedTargets.push(l))})})},RV=function(){var e=0;for(kz(e);SV();)e=_V(),kz(e);return CV()&&wV(),e>0},wA,Pz=[],NV=function(){return Pz.splice(0).forEach(function(e){return e()})},MV=function(e){if(!wA){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return NV()}).observe(n,r),wA=function(){n.textContent="".concat(t?t--:t++)}}Pz.push(e),wA()},zV=function(e){MV(function(){requestAnimationFrame(e)})},jE=0,kV=function(){return!!jE},PV=250,jV={attributes:!0,characterData:!0,childList:!0,subtree:!0},jz=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fz=function(e){return e===void 0&&(e=0),Date.now()+e},AA=!1,FV=(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=PV),!AA){AA=!0;var r=Fz(t);zV(function(){var l=!1;try{l=RV()}finally{if(AA=!1,t=r-Fz(),!kV())return;l?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,jV)};document.body?n():xy.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),jz.forEach(function(n){return xy.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),jz.forEach(function(n){return xy.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),OA=new FV,Lz=function(e){!jE&&e>0&&OA.start(),jE+=e,!jE&&OA.stop()},LV=function(e){return!CA(e)&&!OV(e)&&getComputedStyle(e).display==="inline"},qV=(function(){function e(t,n){this.target=t,this.observedBox=n||Oy.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Mz(this.target,this.observedBox,!0);return LV(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),UV=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),FE=new WeakMap,qz=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},LE=(function(){function e(){}return e.connect=function(t,n){var r=new UV(t,n);FE.set(t,r)},e.observe=function(t,n,r){var l=FE.get(t),s=l.observationTargets.length===0;qz(l.observationTargets,n)<0&&(s&&wd.push(l),l.observationTargets.push(new qV(n,r&&r.box)),Lz(1),OA.schedule())},e.unobserve=function(t,n){var r=FE.get(t),l=qz(r.observationTargets,n),s=r.observationTargets.length===1;l>=0&&(s&&wd.splice(wd.indexOf(r),1),r.observationTargets.splice(l,1),Lz(-1))},e.disconnect=function(t){var n=this,r=FE.get(t);r.observationTargets.slice().forEach(function(l){return n.unobserve(t,l.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),HV=(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.");LE.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(!Bz(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");LE.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(!Bz(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");LE.unobserve(this,t)},e.prototype.disconnect=function(){LE.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();function $V(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function qE(e,t){if(e==null)return{};var n=$V(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ty(e){"@babel/helpers - typeof";return Ty=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},Ty(e)}function VV(e,t){if(Ty(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ty(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GV(e){var t=VV(e,"string");return Ty(t)==="symbol"?t:String(t)}function Yn(e,t,n){return t=GV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xA=k.createContext(null),vo=()=>{var e=k.useContext(xA);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Ve=Je;function Uz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function UE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uz(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var IV=25,YV=200,KV=function(){},XV=e=>e?.constructor.name==="DataTransfer";function ZV(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,l=!1,s=null,f=null,h=null,p=0,y=!1,b=()=>{var H=Ic.get(t);if(Ic.delete(t),H){var{selection:K}=t,W=mz(t,H);W&&(!K||!Se.equals(W,K))&&Pe.select(t,W)}},S=()=>{var H=Gc.get(t);if(Gc.delete(t),!!H){if(H.at){var K=Ht.isPoint(H.at)?DA(t,H.at):mz(t,H.at);if(!K)return;var W=F.range(t,K);(!t.selection||!Se.equals(t.selection,W))&&Pe.select(t,K)}H.run()}},C=()=>{if(f&&(clearTimeout(f),f=null),h&&(clearTimeout(h),h=null),!P()&&!j()){b();return}l||(l=!0,setTimeout(()=>l=!1)),j()&&(l="action");var H=t.selection&&F.rangeRef(t,t.selection,{affinity:"forward"});ys.set(t,t.marks),KV("flush",Gc.get(t),Si.get(t));for(var K=P(),W;W=(ne=Si.get(t))===null||ne===void 0?void 0:ne[0];){var ne,U,Z=Au.get(t);Z!==void 0&&(Au.delete(t),t.marks=Z),Z&&y===!1&&(y=null);var J=sV(W);(!t.selection||!Se.equals(t.selection,J))&&Pe.select(t,J),W.diff.text?F.insertText(t,W.diff.text):F.deleteFragment(t),Si.set(t,(U=Si.get(t))===null||U===void 0?void 0:U.filter(xe=>{var{id:Re}=xe;return Re!==W.id})),iV(t,W)||(K=!1,Gc.delete(t),ys.delete(t),l="action",Ic.delete(t),n.cancel(),r.cancel(),H?.unref())}var he=H?.unref();if(he&&!Ic.get(t)&&(!t.selection||!Se.equals(he,t.selection))&&Pe.select(t,he),j()){S();return}K&&n(),n.flush(),r.flush(),b();var ie=ys.get(t);ys.delete(t),ie!==void 0&&(t.marks=ie,t.onChange())},A=H=>{s&&clearTimeout(s),s=setTimeout(()=>{Cd.set(t,!1),C()},IV)},x=H=>{Cd.set(t,!0),s&&(clearTimeout(s),s=null)},_=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=gA.get(t);if(W){if(P()||K){W.style.display="none";return}W.style.removeProperty("display")}},B=(H,K)=>{var W,ne=(W=Si.get(t))!==null&&W!==void 0?W:[];Si.set(t,ne);var U=$e.leaf(t,H),Z=ne.findIndex(ie=>ae.equals(ie.path,H));if(Z<0){var J=pz(U.text,K);J&&ne.push({path:H,diff:K,id:p++}),_();return}var he=oV(U.text,ne[Z].diff,K);if(!he){ne.splice(Z,1),_();return}ne[Z]=UE(UE({},ne[Z]),{},{diff:he})},R=function(K){var{at:W}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y=!1,Ic.delete(t),n.cancel(),r.cancel(),j()&&C(),Gc.set(t,{at:W,run:K}),h=setTimeout(C)},O=H=>{var K;if(f&&(clearTimeout(f),f=null),!Vv.get(t)){var{inputType:W}=H,ne=null,U=H.dataTransfer||H.data||void 0;y!==!1&&W!=="insertText"&&W!=="insertCompositionText"&&(y=!1);var[Z]=H.getTargetRanges();Z&&(ne=Ve.toSlateRange(t,Z,{exactMatch:!1,suppressThrow:!0}));var J=Ve.getWindow(t),he=J.getSelection();if(!ne&&he&&(Z=he,ne=Ve.toSlateRange(t,he,{exactMatch:!1,suppressThrow:!0})),ne=(K=ne)!==null&&K!==void 0?K:t.selection,!!ne){var ie=!0;if(W.startsWith("delete")){if(Se.isExpanded(ne)){var[xe,Re]=Se.edges(ne),me=$e.leaf(t,xe.path);if(me.text.length===xe.offset&&Re.offset===0){var ke=F.next(t,{at:xe.path,match:Ze.isText});ke&&ae.equals(ke[1],Re.path)&&(ne={anchor:Re,focus:Re})}}var Xe=W.endsWith("Backward")?"backward":"forward",[Ye,Qe]=Se.edges(ne),[ft,ce]=F.leaf(t,Ye.path),le={text:"",start:Ye.offset,end:Qe.offset},ue=Si.get(t),fe=ue?.find(Lt=>ae.equals(Lt.path,ce)),Ue=fe?[fe.diff,le]:[le],He=vz(ft.text,...Ue);if(He.length===0&&(ie=!1),Se.isExpanded(ne)){if(ie&&ae.equals(ne.anchor.path,ne.focus.path)){var ut={path:ne.anchor.path,offset:Ye.offset},yt=F.range(t,ut,ut);return G(yt),B(ne.anchor.path,{text:"",end:Qe.offset,start:Ye.offset})}return R(()=>F.deleteFragment(t,{direction:Xe}),{at:ne})}}switch(W){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return R(()=>F.deleteFragment(t),{at:ne});case"deleteContent":case"deleteContentForward":{var{anchor:Ie}=ne;if(ie&&Se.isCollapsed(ne)){var an=$e.leaf(t,Ie.path);if(Ie.offset<an.text.length)return B(Ie.path,{text:"",start:Ie.offset,end:Ie.offset+1})}return R(()=>F.deleteForward(t),{at:ne})}case"deleteContentBackward":{var Wt,{anchor:Bn}=ne,Vt=fA(Z)?Z.isCollapsed:!!((Wt=Z)!==null&&Wt!==void 0&&Wt.collapsed);return ie&&Vt&&Se.isCollapsed(ne)&&Bn.offset>0?B(Bn.path,{text:"",start:Bn.offset-1,end:Bn.offset}):R(()=>F.deleteBackward(t),{at:ne})}case"deleteEntireSoftLine":return R(()=>{F.deleteBackward(t,{unit:"line"}),F.deleteForward(t,{unit:"line"})},{at:ne});case"deleteHardLineBackward":return R(()=>F.deleteBackward(t,{unit:"block"}),{at:ne});case"deleteSoftLineBackward":return R(()=>F.deleteBackward(t,{unit:"line"}),{at:ne});case"deleteHardLineForward":return R(()=>F.deleteForward(t,{unit:"block"}),{at:ne});case"deleteSoftLineForward":return R(()=>F.deleteForward(t,{unit:"line"}),{at:ne});case"deleteWordBackward":return R(()=>F.deleteBackward(t,{unit:"word"}),{at:ne});case"deleteWordForward":return R(()=>F.deleteForward(t,{unit:"word"}),{at:ne});case"insertLineBreak":return R(()=>F.insertSoftBreak(t),{at:ne});case"insertParagraph":return R(()=>F.insertBreak(t),{at:ne});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(XV(U))return R(()=>Ve.insertData(t,U),{at:ne});var Ft=U??"";if(Au.get(t)&&(Ft=Ft.replace("\uFEFF","")),W==="insertText"&&/.*\n.*\n$/.test(Ft)&&(Ft=Ft.slice(0,-1)),Ft.includes(`
278
+ `))return R(()=>{var Lt=Ft.split(`
279
+ `);Lt.forEach((Mt,Ti)=>{Mt&&F.insertText(t,Mt),Ti!==Lt.length-1&&F.insertSoftBreak(t)})},{at:ne});if(ae.equals(ne.anchor.path,ne.focus.path)){var[Jt,ri]=Se.edges(ne),er={start:Jt.offset,end:ri.offset,text:Ft};if(Ft&&y&&W==="insertCompositionText"){var va=y.start+y.text.search(/\S|$/),Dn=er.start+er.text.search(/\S|$/);Dn===va+1&&er.end===y.start+y.text.length?(er.start-=1,y=null,Q()):y=!1}else W==="insertText"?y===null?y=er:y&&Se.isCollapsed(ne)&&y.end+y.text.length===Jt.offset?y=UE(UE({},y),{},{text:y.text+Ft}):y=!1:y=!1;if(ie){B(Jt.path,er);return}}return R(()=>F.insertText(t,Ft),{at:ne})}}}}},j=()=>!!Gc.get(t),P=()=>{var H;return!!((H=Si.get(t))!==null&&H!==void 0&&H.length)},L=()=>j()||P(),Y=()=>l,G=H=>{Ic.set(t,H),f&&(clearTimeout(f),f=null);var{selection:K}=t;if(H){var W=!K||!ae.equals(K.anchor.path,H.anchor.path),ne=!K||!ae.equals(K.anchor.path.slice(0,-1),H.anchor.path.slice(0,-1));(W&&y||ne)&&(y=!1),(W||P())&&(f=setTimeout(C,YV))}},z=()=>{(j()||!P())&&C()},$=H=>{P()||(_(!0),setTimeout(_))},Q=()=>{j()||(h=setTimeout(C))},I=H=>{if(!(P()||j())&&H.some(W=>dA(t,W,H))){var K;(K=dz.get(t))===null||K===void 0||K()}};return{flush:C,scheduleFlush:Q,hasPendingDiffs:P,hasPendingAction:j,hasPendingChanges:L,isFlushing:Y,handleUserSelect:G,handleCompositionEnd:A,handleCompositionStart:x,handleDOMBeforeInput:O,handleKeyDown:$,handleDomMutations:I,handleInput:z}}function QV(){var e=k.useRef(!1);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var bs=NE?k.useLayoutEffect:k.useEffect;function WV(e,t,n){var[r]=k.useState(()=>new MutationObserver(t));bs(()=>{r.takeRecords()}),k.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 JV=["node"];function Hz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function eG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hz(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tG={subtree:!0,childList:!0,characterData:!0},nG=Qa?e=>{var{node:t}=e,n=qE(e,JV);if(!Qa)return null;var r=vo(),l=QV(),[s]=k.useState(()=>ZV(eG({editor:r},n)));return WV(t,s.handleDomMutations,tG),EA.set(r,s.scheduleFlush),l&&s.flush(),s}:()=>null;function $z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function rG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$z(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$z(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aG=e=>{var{isLast:t,leaf:n,parent:r,text:l}=e,s=vo(),f=Ve.findPath(s,l),h=ae.parent(f),p=!!n[hz];return s.isVoid(r)?k.createElement(TA,{length:$e.string(r).length}):n.text===""&&r.children[r.children.length-1]===l&&!s.isInline(r)&&F.string(s,h)===""?k.createElement(TA,{isLineBreak:!0,isMarkPlaceholder:p}):n.text===""?k.createElement(TA,{isMarkPlaceholder:p}):t&&n.text.slice(-1)===`
280
+ `?k.createElement(Vz,{isTrailing:!0,text:n.text}):k.createElement(Vz,{text:n.text})},Vz=e=>{var{text:t,isTrailing:n=!1}=e,r=k.useRef(null),l=()=>"".concat(t??"").concat(n?`
281
+ `:""),[s]=k.useState(l);return bs(()=>{var f=l();r.current&&r.current.textContent!==f&&(r.current.textContent=f)}),k.createElement(iG,{ref:r},s)},iG=k.memo(k.forwardRef((e,t)=>k.createElement("span",{"data-slate-string":!0,ref:t},e.children))),TA=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,l={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(l["data-slate-mark-placeholder"]=!0),k.createElement("span",rG({},l),!Qa||!n?"\uFEFF":null,n?k.createElement("br",null):null)};function Gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Iz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gz(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lG=Qa?300:0;function uG(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function Yz(e){e.current&&(clearTimeout(e.current),e.current=null)}var oG=e=>k.createElement(fG,Iz({},e)),sG=e=>{var{leaf:t,isLast:n,text:r,parent:l,renderPlaceholder:s,renderLeaf:f=oG,leafPosition:h}=e,p=vo(),y=k.useRef(null),b=k.useRef(null),[S,C]=k.useState(!1),A=k.useRef(null),x=k.useCallback(j=>{if(uG(y,j==null),j==null){var P;gA.delete(p),(P=t.onPlaceholderResize)===null||P===void 0||P.call(t,null)}else{if(gA.set(p,j),!y.current){var L=window.ResizeObserver||HV;y.current=new L(()=>{var Y;(Y=t.onPlaceholderResize)===null||Y===void 0||Y.call(t,j)})}y.current.observe(j),b.current=j}},[b,t,p]),_=k.createElement(aG,{isLast:n,leaf:t,parent:l,text:r}),B=!!t[Iv];if(k.useEffect(()=>(B?A.current||(A.current=setTimeout(()=>{C(!0),A.current=null},lG)):(Yz(A),C(!1)),()=>Yz(A)),[B,C]),B&&S){var R={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:Dd?"inherit":void 0},contentEditable:!1,ref:x}};_=k.createElement(k.Fragment,null,_,s(R))}var O={"data-slate-leaf":!0};return f({attributes:O,children:_,leaf:t,text:r,leafPosition:h})},cG=k.memo(sG,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Ze.equals(t.leaf,e.leaf)&&t.leaf[Iv]===e.leaf[Iv]),fG=e=>{var{attributes:t,children:n}=e;return k.createElement("span",Iz({},t),n)};function dG(e,t){var[,n]=k.useReducer(y=>y+1,0),r=k.useRef(),l=k.useRef(()=>null),s=k.useRef(null),f;try{if(e!==l.current||r.current){var h=e();t(s.current,h)?f=s.current:f=h}else f=s.current}catch(y){throw r.current&&hG(y)&&(y.message+=`
282
+ The error may be correlated with this previous error:
283
+ `.concat(r.current.stack,`
284
+
285
+ `)),y}l.current=e,s.current=f,r.current=void 0;var p=k.useCallback(()=>{try{var y=l.current();if(t(s.current,y))return;s.current=y}catch(b){b instanceof Error?r.current=b:r.current=new Error(String(b))}n()},[]);return[f,p]}function hG(e){return e instanceof Error}var Kz=k.createContext({}),Xz=(e,t)=>{var n=vo(),{decorate:r,addEventListener:l}=k.useContext(Kz),s=()=>{var y=Ve.findPath(n,e);return r([e,y])},f=Ze.isText(e)?kE:Ay,[h,p]=dG(s,f);return bs(()=>{var y=l(p);return p(),y},[l,p]),k.useMemo(()=>[...h,...t],[h,t])},vG=e=>{var t=k.useRef(new Set),n=k.useRef(e);bs(()=>{n.current=e,t.current.forEach(s=>s())},[e]);var r=k.useCallback(s=>n.current(s),[]),l=k.useCallback(s=>(t.current.add(s),()=>{t.current.delete(s)}),[]);return k.useMemo(()=>({decorate:r,addEventListener:l}),[r,l])};function Zz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Qz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zz(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pG=e=>k.createElement(gG,Qz({},e)),mG=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:l,renderLeaf:s,renderText:f=pG,text:h}=e,p=vo(),y=k.useRef(null),b=Xz(h,t),S=Ze.decorations(h,b),C=Ve.findKey(p,h),A=[],x=0;x<S.length;x++){var{leaf:_,position:B}=S[x];A.push(k.createElement(cG,{isLast:n&&x===S.length-1,key:"".concat(C.id,"-").concat(x),renderPlaceholder:l,leaf:_,leafPosition:B,text:h,parent:r,renderLeaf:s}))}var R=k.useCallback(j=>{var P=zE.get(p);j?(P?.set(C,j),Sd.set(h,j),Cy.set(j,h)):(P?.delete(C),Sd.delete(h),y.current&&Cy.delete(y.current)),y.current=j},[y,p,C,h]),O={"data-slate-node":"text",ref:R};return f({text:h,children:A,attributes:O})},Wz=k.memo(mG,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderText===e.renderText&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&kE(t.decorations,e.decorations)),gG=e=>{var{attributes:t,children:n}=e;return k.createElement("span",Qz({},t),n)};function Jz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function BA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jz(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yG=e=>k.createElement(DG,BA({},e)),bG=e=>{var{decorations:t,element:n,renderElement:r=yG,renderChunk:l,renderPlaceholder:s,renderLeaf:f,renderText:h}=e,p=vo(),y=Es(),b=p.isInline(n),S=Xz(n,t),C=Ve.findKey(p,n),A=k.useCallback(P=>{var L=zE.get(p);P?(L?.set(C,P),Sd.set(n,P),Cy.set(P,n)):(L?.delete(C),Sd.delete(n))},[p,C,n]),x=ak({decorations:S,node:n,renderElement:r,renderChunk:l,renderPlaceholder:s,renderLeaf:f,renderText:h}),_={"data-slate-node":"element",ref:A};if(b&&(_["data-slate-inline"]=!0),!b&&F.hasInlines(p,n)){var B=$e.string(n),R=NN(B);R==="rtl"&&(_.dir=R)}if(F.isVoid(p,n)){_["data-slate-void"]=!0,!y&&b&&(_.contentEditable=!1);var O=b?"span":"div",[[j]]=$e.texts(n);x=k.createElement(O,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},k.createElement(Wz,{renderPlaceholder:s,decorations:[],isLast:!1,parent:n,text:j})),Gv.set(j,0),Dy.set(j,n)}return r({attributes:_,children:x,element:n})},EG=k.memo(bG,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderChunk===t.renderChunk&&e.renderText===t.renderText&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&Ay(e.decorations,t.decorations)),DG=e=>{var{attributes:t,children:n,element:r}=e,l=vo(),s=l.isInline(r)?"span":"div";return k.createElement(s,BA(BA({},t),{},{style:{position:"relative"}}),n)};class SG{constructor(t,n){var{chunkSize:r,debug:l}=n;Yn(this,"root",void 0),Yn(this,"chunkSize",void 0),Yn(this,"debug",void 0),Yn(this,"reachedEnd",void 0),Yn(this,"pointerChunk",void 0),Yn(this,"pointerIndex",void 0),Yn(this,"pointerIndexStack",void 0),Yn(this,"cachedPointerNode",void 0),this.root=t,this.chunkSize=r,this.debug=l??!1,this.pointerChunk=t,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.validateState()}readLeaf(){if(this.reachedEnd)return null;for(;;)if(this.pointerIndex+1<this.pointerSiblings.length){this.pointerIndex++,this.cachedPointerNode=void 0;break}else{if(this.pointerChunk.type==="root")return this.reachedEnd=!0,null;this.exitChunk()}return this.validateState(),this.enterChunkUntilLeaf(!1),this.pointerNode}returnToPreviousLeaf(){if(this.reachedEnd){this.reachedEnd=!1,this.enterChunkUntilLeaf(!0);return}for(;;)if(this.pointerIndex>=1){this.pointerIndex--,this.cachedPointerNode=void 0;break}else if(this.pointerChunk.type==="root"){this.pointerIndex=-1;return}else this.exitChunk();this.validateState(),this.enterChunkUntilLeaf(!0)}insertBefore(t){this.returnToPreviousLeaf(),this.insertAfter(t),this.readLeaf()}insertAfter(t){if(t.length!==0){for(var n=0,r=0;this.pointerChunk.type==="chunk"&&this.pointerIndex===this.pointerSiblings.length-1;){var l=this.chunkSize-this.pointerSiblings.length,s=Math.min(l,t.length);if(s>0){var f=t.splice(0,s);this.rawInsertAfter(f,n)}this.exitChunk(),n++}if(t.length!==0){var h=this.savePointer(),p=null;if(this.readLeaf())for(;this.pointerChunk.type==="chunk"&&this.pointerIndex===0;){var y=this.chunkSize-this.pointerSiblings.length,b=Math.min(y,t.length);if(b>0){var S=t.splice(-b,b);this.pointerIndex=-1,this.cachedPointerNode=void 0,this.rawInsertAfter(S,r),p||(p=this.savePointer())}this.exitChunk(),r++}this.restorePointer(h);var C=Math.max(n,r);this.rawInsertAfter(t,C),p&&this.restorePointer(p),this.validateState()}}}remove(){this.pointerSiblings.splice(this.pointerIndex--,1),this.cachedPointerNode=void 0,this.pointerSiblings.length===0&&this.pointerChunk.type==="chunk"?(this.exitChunk(),this.remove()):this.invalidateChunk(),this.validateState()}invalidateChunk(){for(var t=this.pointerChunk;t.type==="chunk";t=t.parent)this.root.modifiedChunks.add(t)}get atStart(){return this.pointerChunk.type==="root"&&this.pointerIndex===-1}get pointerSiblings(){return this.pointerChunk.children}getPointerNode(){return this.reachedEnd||this.pointerIndex===-1?null:this.pointerSiblings[this.pointerIndex]}get pointerNode(){if(this.cachedPointerNode!==void 0)return this.cachedPointerNode;var t=this.getPointerNode();return this.cachedPointerNode=t,t}getChunkPath(t){for(var n=[],r=t;r.type==="chunk";r=r.parent){var l=r.parent.children.indexOf(r);if(l===-1)return null;n.unshift(l)}return n}savePointer(){if(this.atStart)return"start";if(!this.pointerNode)throw new Error("Cannot save pointer when pointerNode is null");return{chunk:this.pointerChunk,node:this.pointerNode}}restorePointer(t){if(t==="start"){this.pointerChunk=this.root,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.cachedPointerNode=void 0;return}var{chunk:n,node:r}=t,l=n.children.indexOf(r);if(l===-1)throw new Error("Cannot restore point because saved node is no longer in saved chunk");var s=this.getChunkPath(n);if(!s)throw new Error("Cannot restore point because saved chunk is no longer connected to root");this.pointerChunk=n,this.pointerIndex=l,this.pointerIndexStack=s,this.reachedEnd=!1,this.cachedPointerNode=r,this.validateState()}enterChunk(t){var n;if(((n=this.pointerNode)===null||n===void 0?void 0:n.type)!=="chunk")throw new Error("Cannot enter non-chunk");if(this.pointerIndexStack.push(this.pointerIndex),this.pointerChunk=this.pointerNode,this.pointerIndex=t?this.pointerSiblings.length-1:0,this.cachedPointerNode=void 0,this.validateState(),this.pointerChunk.children.length===0)throw new Error("Cannot enter empty chunk")}enterChunkUntilLeaf(t){for(;((n=this.pointerNode)===null||n===void 0?void 0:n.type)==="chunk";){var n;this.enterChunk(t)}}exitChunk(){if(this.pointerChunk.type==="root")throw new Error("Cannot exit root");var t=this.pointerChunk;this.pointerChunk=t.parent,this.pointerIndex=this.pointerIndexStack.pop(),this.cachedPointerNode=void 0,this.validateState()}rawInsertAfter(t,n){if(t.length!==0){for(var r=(b,S,C)=>{if(C===1)return b;for(var A=[],x=0;x<this.chunkSize;x++){var _=b.slice(x*C,(x+1)*C);if(_.length===0)break;var B={type:"chunk",key:new cz,parent:S,children:[]};B.children=r(_,B,C/this.chunkSize),A.push(B)}return A},l=this.pointerSiblings.length+t.length,s=0,f=this.chunkSize;f<l;f*=this.chunkSize)s++;var h=Math.max(s,n),p=Math.pow(this.chunkSize,h),y=r(t,this.pointerChunk,p);this.pointerSiblings.splice(this.pointerIndex+1,0,...y),this.pointerIndex+=y.length,this.cachedPointerNode=void 0,this.invalidateChunk(),this.validateState()}}validateState(){if(this.debug){var t=r=>{if(r.type==="chunk"){var{parent:l,children:s}=r;if(!l.children.includes(r))throw new Error("Debug: Chunk ".concat(r.key.id," has an incorrect parent property"));s.forEach(t)}};if(this.root.children.forEach(t),this.cachedPointerNode!==void 0&&this.cachedPointerNode!==this.getPointerNode())throw new Error("Debug: The cached pointer is incorrect and has not been invalidated");var n=this.getChunkPath(this.pointerChunk);if(!n)throw new Error("Debug: The pointer chunk is not connected to the root");if(!ae.equals(this.pointerIndexStack,n))throw new Error("Debug: The cached index stack [".concat(this.pointerIndexStack.join(", "),"] does not match the path of the pointer chunk [").concat(n.join(", "),"]"))}}}class CG{constructor(t,n){Yn(this,"editor",void 0),Yn(this,"children",void 0),Yn(this,"cachedKeys",void 0),Yn(this,"pointerIndex",void 0),this.editor=t,this.children=n,this.cachedKeys=new Array(n.length),this.pointerIndex=0}read(t){if(t===1)return[this.children[this.pointerIndex++]];var n=this.remaining(t);return this.pointerIndex+=t,n}remaining(t){return t===void 0?this.children.slice(this.pointerIndex):this.children.slice(this.pointerIndex,this.pointerIndex+t)}get reachedEnd(){return this.pointerIndex>=this.children.length}lookAhead(t,n){var r=this.children.indexOf(t,this.pointerIndex);if(r>-1)return r-this.pointerIndex;for(var l=this.pointerIndex;l<this.children.length;l++){var s=this.children[l],f=this.findKey(s,l);if(f===n)return l-this.pointerIndex}return-1}toChunkLeaves(t,n){return t.map((r,l)=>({type:"leaf",node:r,key:this.findKey(r,n+l),index:n+l}))}findKey(t,n){var r=this.cachedKeys[n];if(r)return r;var l=Ve.findKey(this.editor,t);return this.cachedKeys[n]=l,l}}var wG=(e,t)=>{var{chunkTree:n,children:r,chunkSize:l,rerenderChildren:s=[],onInsert:f,onUpdate:h,onIndexChange:p,debug:y}=t;n.modifiedChunks.clear();for(var b=new SG(n,{chunkSize:l,debug:y}),S=new CG(e,r),C,A=function(){var R=S.lookAhead(C.node,C.key),O=R>0&&n.movedNodeKeys.has(C.key);if(R===-1||O)return b.remove(),1;var j=S.pointerIndex,P=S.read(R+1),L=P.pop();if(P.length){var Y=S.toChunkLeaves(P,j);b.insertBefore(Y),P.forEach((z,$)=>{f?.(z,j+$)})}var G=S.pointerIndex-1;C.node!==L&&(C.node=L,b.invalidateChunk(),h?.(L,G)),C.index!==G&&(C.index=G,p?.(L,G)),s.includes(G)&&b.invalidateChunk()};C=b.readLeaf();)A();if(!S.reachedEnd){var x=S.remaining(),_=S.toChunkLeaves(x,S.pointerIndex);b.returnToPreviousLeaf(),b.insertAfter(_),x.forEach((B,R)=>{f?.(B,S.pointerIndex+R)})}n.movedNodeKeys.clear()};function ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function AG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tk=new WeakMap,nk=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=Ve.findKey(t,n),s=tk.get(l);return s||(s={type:"root",movedNodeKeys:new Set,modifiedChunks:new Set,children:[]},tk.set(l,s)),r.reconcile&&wG(t,AG({chunkTree:s,children:n.children},r.reconcile)),s},OG=e=>{var{children:t}=e;return t},rk=e=>{var{root:t,ancestor:n,renderElement:r,renderChunk:l=OG}=e;return n.children.map(s=>{if(s.type==="chunk"){var f=s.key.id,h=l({highest:n===t,lowest:s.children.some(y=>y.type==="leaf"),attributes:{"data-slate-chunk":!0},children:k.createElement(TG,{root:t,ancestor:s,renderElement:r,renderChunk:l})});return k.createElement(k.Fragment,{key:f},h)}var p=s.node;return r(p,s.index,s.key)})},xG=rk,TG=k.memo(rk,(e,t)=>e.root===t.root&&e.renderElement===t.renderElement&&e.renderChunk===t.renderChunk&&!t.root.modifiedChunks.has(t.ancestor)),BG=k.createContext(null),ak=e=>{var{decorations:t,node:n,renderElement:r,renderChunk:l,renderPlaceholder:s,renderText:f,renderLeaf:h}=e,p=vo();Vv.set(p,!1);var y=F.isEditor(n),b=!y&&rt.isElement(n)&&!p.isInline(n),S=b&&F.hasInlines(p,n),C=S?null:p.getChunkSize(n),A=!!C,{decorationsByChild:x,childrenToRedecorate:_}=_G(p,n,t);A||n.children.forEach((j,P)=>{Gv.set(j,P),Dy.set(j,n)});var B=k.useCallback((j,P,L)=>{var Y=L??Ve.findKey(p,j);return k.createElement(BG.Provider,{key:"provider-".concat(Y.id),value:j},k.createElement(EG,{decorations:x[P],element:j,key:Y.id,renderElement:r,renderChunk:l,renderPlaceholder:s,renderLeaf:h,renderText:f}))},[p,x,r,l,s,h,f]),R=(j,P)=>{var L=Ve.findKey(p,j);return k.createElement(Wz,{decorations:x[P],key:L.id,isLast:P===n.children.length-1,parent:n,renderPlaceholder:s,renderLeaf:h,renderText:f,text:j})};if(!A)return n.children.map((j,P)=>Ze.isText(j)?R(j,P):B(j,P));var O=nk(p,n,{reconcile:{chunkSize:C,rerenderChildren:_,onInsert:(j,P)=>{Gv.set(j,P),Dy.set(j,n)},onUpdate:(j,P)=>{Gv.set(j,P),Dy.set(j,n)},onIndexChange:(j,P)=>{Gv.set(j,P)}}});return k.createElement(xG,{root:O,ancestor:O,renderElement:B,renderChunk:l})},_G=(e,t,n)=>{var r=DV(e,t,n),l=k.useRef(r).current,s=[];l.length=r.length;for(var f=0;f<r.length;f++){var h,p=r[f],y=(h=l[f])!==null&&h!==void 0?h:null;Ay(y,p)||(l[f]=p,s.push(f))}return{decorationsByChild:l,childrenToRedecorate:s}},ik=k.createContext(!1),Es=()=>k.useContext(ik),_A=k.createContext({});function RG(){var e=k.useRef(new Set),t=k.useRef(new Set),n=k.useCallback(()=>{e.current.forEach(f=>f())},[]),r=k.useCallback(()=>{t.current.forEach(f=>f()),t.current.clear()},[]),l=k.useCallback(function(f){var{deferred:h=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=h?()=>t.current.add(f):f;return e.current.add(p),()=>{e.current.delete(p)}},[]),s=k.useMemo(()=>({addEventListener:l,flushDeferred:r}),[l,r]);return{selectorContext:s,onChange:n}}function NG(){var{flushDeferred:e}=k.useContext(_A);bs(e)}var MG=()=>{var{addEventListener:e}=k.useContext(_A),[,t]=k.useReducer(n=>n+1,0);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return bs(()=>e(t),[e]),vo()};function zG(){var e=vo(),t=k.useRef(!1),n=k.useRef(0),r=k.useCallback(()=>{if(!t.current){t.current=!0;var l=Ve.getWindow(e);l.cancelAnimationFrame(n.current),n.current=l.requestAnimationFrame(()=>{t.current=!1})}},[e]);return k.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var kG=(e,t)=>{var n=[],r=()=>{n=[]},l=f=>{if(t.current){var h=f.filter(p=>dA(e,p,f));n.push(...h)}};function s(){n.length>0&&(n.reverse().forEach(f=>{f.type!=="characterData"&&(f.removedNodes.forEach(h=>{f.target.insertBefore(h,f.nextSibling)}),f.addedNodes.forEach(h=>{f.target.removeChild(h)}))}),r())}return{registerMutations:l,restoreDOM:s,clear:r}},PG={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class lk extends k.Component{constructor(){super(...arguments),Yn(this,"context",null),Yn(this,"manager",null),Yn(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,PG)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=kG(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,l=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(l!=null&&l.length){var s;(s=this.manager)===null||s===void 0||s.registerMutations(l)}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}}Yn(lk,"contextType",xA);var jG=Qa?lk:e=>{var{children:t}=e;return k.createElement(k.Fragment,null,t)},uk=k.createContext(!1),FG=()=>k.useContext(uk),LG=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderChunk","renderLeaf","renderText","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],qG=["text"];function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){Yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UG=e=>k.createElement(k.Fragment,null,ak(e)),HG=k.forwardRef((e,t)=>{var n=k.useCallback(ce=>k.createElement($G,po({},ce)),[]),{autoFocus:r,decorate:l=VG,onDOMBeforeInput:s,placeholder:f,readOnly:h=!1,renderElement:p,renderChunk:y,renderLeaf:b,renderText:S,renderPlaceholder:C=n,scrollSelectionIntoView:A=GG,style:x={},as:_="div",disableDefaultStyles:B=!1}=e,R=qE(e,LG),O=MG(),[j,P]=k.useState(!1),L=k.useRef(null),Y=k.useRef([]),[G,z]=k.useState(),$=k.useRef(!1),{onUserInput:Q,receivedUserInput:I}=zG(),[,H]=k.useReducer(ce=>ce+1,0);dz.set(O,H),yA.set(O,h);var K=k.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);k.useEffect(()=>{L.current&&r&&L.current.focus()},[r]);var W=k.useRef(),ne=k.useMemo(()=>EH(()=>{if(Vv.get(O)){ne();return}var ce=Ve.toDOMNode(O,O),le=ce.getRootNode();if(!$.current&&Dd&&le instanceof ShadowRoot){$.current=!0;var ue=K$();ue?document.execCommand("indent"):Pe.deselect(O),$.current=!1;return}var fe=W.current;if((Qa||!Ve.isComposing(O))&&(!K.isUpdatingSelection||fe!=null&&fe.isFlushing())&&!K.isDraggingInternally){var Ue=Ve.findDocumentOrShadowRoot(O),{activeElement:He}=Ue,ut=Ve.toDOMNode(O,O),yt=by(Ue);if(He===ut?(K.latestElement=He,Vc.set(O,!0)):Vc.delete(O),!yt)return Pe.deselect(O);var{anchorNode:Ie,focusNode:an}=yt,Wt=Ve.hasEditableTarget(O,Ie)||Ve.isTargetInsideNonReadonlyVoid(O,Ie),Bn=Ve.hasTarget(O,an);if(Wt&&Bn){var Vt=Ve.toSlateRange(O,yt,{exactMatch:!1,suppressThrow:!0});Vt&&(!Ve.isComposing(O)&&!(fe!=null&&fe.hasPendingChanges())&&!(fe!=null&&fe.isFlushing())?Pe.select(O,Vt):fe?.handleUserSelect(Vt))}h&&(!Wt||!Bn)&&Pe.deselect(O)}},100),[O,h,K]),U=k.useMemo(()=>gH(ne,0),[ne]);W.current=nG({node:L,onDOMSelectionChange:ne,scheduleOnDOMSelectionChange:U}),bs(()=>{var ce,le,ue;L.current&&(ue=cA(L.current))?(fz.set(O,ue),Sy.set(O,L.current),Sd.set(O,L.current),Cy.set(L.current,O)):Sd.delete(O);var{selection:fe}=O,Ue=Ve.findDocumentOrShadowRoot(O),He=by(Ue);if(!(!He||!Ve.isFocused(O)||(ce=W.current)!==null&&ce!==void 0&&ce.hasPendingAction())){var ut=Wt=>{var Bn=He.type!=="None";if(!(!fe&&!Bn)){var Vt=He.focusNode,Ft;if(Hc&&He.rangeCount>1){var Jt=He.getRangeAt(0),ri=He.getRangeAt(He.rangeCount-1);Jt.startContainer===Vt?Ft=ri.endContainer:Ft=Jt.startContainer}else Ft=He.anchorNode;var er=Sy.get(O),va=!1;if(er.contains(Ft)&&er.contains(Vt)&&(va=!0),Bn&&va&&fe&&!Wt){var Dn=Ve.toSlateRange(O,He,{exactMatch:!0,suppressThrow:!0});if(Dn&&Se.equals(Dn,fe)){var Lt;if(!K.hasMarkPlaceholder||(Lt=Ft)!==null&&Lt!==void 0&&(Lt=Lt.parentElement)!==null&&Lt!==void 0&&Lt.hasAttribute("data-slate-mark-placeholder"))return}}if(fe&&!Ve.hasRange(O,fe)){O.selection=Ve.toSlateRange(O,He,{exactMatch:!1,suppressThrow:!0});return}K.isUpdatingSelection=!0;var Mt=null;try{Mt=fe&&Ve.toDOMRange(O,fe)}catch{}return Mt?(Ve.isComposing(O)&&!Qa?He.collapseToEnd():Se.isBackward(fe)?He.setBaseAndExtent(Mt.endContainer,Mt.endOffset,Mt.startContainer,Mt.startOffset):He.setBaseAndExtent(Mt.startContainer,Mt.startOffset,Mt.endContainer,Mt.endOffset),A(O,Mt)):He.removeAllRanges(),Mt}};He.rangeCount<=1&&ut();var yt=((le=W.current)===null||le===void 0?void 0:le.isFlushing())==="action";if(!Qa||!yt){setTimeout(()=>{K.isUpdatingSelection=!1});return}var Ie=null,an=requestAnimationFrame(()=>{if(yt){var Wt=Bn=>{try{var Vt=Ve.toDOMNode(O,O);Vt.focus(),ut(Bn)}catch{}};Wt(),Ie=setTimeout(()=>{Wt(!0),K.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(an),Ie&&clearTimeout(Ie)}}});var Z=k.useCallback(ce=>{ck(O,ce);var le=Ve.toDOMNode(O,O),ue=le.getRootNode();if($!=null&&$.current&&Dd&&ue instanceof ShadowRoot){var fe=ce.getTargetRanges(),Ue=fe[0],He=new window.Range;He.setStart(Ue.startContainer,Ue.startOffset),He.setEnd(Ue.endContainer,Ue.endOffset);var ut=Ve.toSlateRange(O,He,{exactMatch:!1,suppressThrow:!1});Pe.select(O,ut),ce.preventDefault(),ce.stopImmediatePropagation();return}if(Q(),!h&&Ve.hasEditableTarget(O,ce.target)&&!IG(ce,s)){var yt;if(W.current)return W.current.handleDOMBeforeInput(ce);U.flush(),ne.flush();var{selection:Ie}=O,{inputType:an}=ce,Wt=ce.dataTransfer||ce.data||void 0,Bn=an==="insertCompositionText"||an==="deleteCompositionText";if(Bn&&Ve.isComposing(O))return;var Vt=!1;if(an==="insertText"&&Ie&&Se.isCollapsed(Ie)&&ce.data&&ce.data.length===1&&/[a-z ]/i.test(ce.data)&&Ie.anchor.offset!==0&&(Vt=!0,O.marks&&(Vt=!1),!Vv.get(O))){var Ft,Jt,{anchor:ri}=Ie,[er,va]=Ve.toDOMPoint(O,ri),Dn=(Ft=er.parentElement)===null||Ft===void 0?void 0:Ft.closest("a"),Lt=Ve.getWindow(O);if(Vt&&Dn&&Ve.hasDOMNode(O,Dn)){var Mt,Ti=Lt?.document.createTreeWalker(Dn,NodeFilter.SHOW_TEXT).lastChild();Ti===er&&((Mt=Ti.textContent)===null||Mt===void 0?void 0:Mt.length)===va&&(Vt=!1)}if(Vt&&er.parentElement&&(Lt==null||(Jt=Lt.getComputedStyle(er.parentElement))===null||Jt===void 0?void 0:Jt.whiteSpace)==="pre"){var Ns=F.above(O,{at:ri.path,match:ai=>rt.isElement(ai)&&F.isBlock(O,ai)});Ns&&$e.string(Ns[0]).includes(" ")&&(Vt=!1)}}if((!an.startsWith("delete")||an.startsWith("deleteBy"))&&!Vv.get(O)){var[Ms]=ce.getTargetRanges();if(Ms){var Nr=Ve.toSlateRange(O,Ms,{exactMatch:!1,suppressThrow:!1});if(!Ie||!Se.equals(Ie,Nr)){Vt=!1;var hr=!Bn&&O.selection&&F.rangeRef(O,O.selection);Pe.select(O,Nr),hr&&wy.set(O,hr)}}}if(Bn)return;if(Vt||ce.preventDefault(),Ie&&Se.isExpanded(Ie)&&an.startsWith("delete")){var pa=an.endsWith("Backward")?"backward":"forward";F.deleteFragment(O,{direction:pa});return}switch(an){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{F.deleteFragment(O);break}case"deleteContent":case"deleteContentForward":{F.deleteForward(O);break}case"deleteContentBackward":{F.deleteBackward(O);break}case"deleteEntireSoftLine":{F.deleteBackward(O,{unit:"line"}),F.deleteForward(O,{unit:"line"});break}case"deleteHardLineBackward":{F.deleteBackward(O,{unit:"block"});break}case"deleteSoftLineBackward":{F.deleteBackward(O,{unit:"line"});break}case"deleteHardLineForward":{F.deleteForward(O,{unit:"block"});break}case"deleteSoftLineForward":{F.deleteForward(O,{unit:"line"});break}case"deleteWordBackward":{F.deleteBackward(O,{unit:"word"});break}case"deleteWordForward":{F.deleteForward(O,{unit:"word"});break}case"insertLineBreak":F.insertSoftBreak(O);break;case"insertParagraph":{F.insertBreak(O);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{an==="insertFromComposition"&&Ve.isComposing(O)&&(P(!1),Cd.set(O,!1)),Wt?.constructor.name==="DataTransfer"?Ve.insertData(O,Wt):typeof Wt=="string"&&(Vt?Y.current.push(()=>F.insertText(O,Wt)):F.insertText(O,Wt));break}}var Bi=(yt=wy.get(O))===null||yt===void 0?void 0:yt.unref();wy.delete(O),Bi&&(!O.selection||!Se.equals(O.selection,Bi))&&Pe.select(O,Bi)}},[O,ne,Q,s,h,U]),J=k.useCallback(ce=>{ce==null?(ne.cancel(),U.cancel(),Sy.delete(O),Sd.delete(O),L.current&&$c&&L.current.removeEventListener("beforeinput",Z)):$c&&ce.addEventListener("beforeinput",Z),L.current=ce,typeof t=="function"?t(ce):t&&(t.current=ce)},[ne,U,O,Z,t]);bs(()=>{var ce=Ve.getWindow(O),le=fe=>{var{target:Ue}=fe,He=Ue instanceof HTMLElement?Ue:null,ut=He?.tagName;ut==="INPUT"||ut==="TEXTAREA"||U()};ce.document.addEventListener("selectionchange",le);var ue=()=>{K.isDraggingInternally=!1};return ce.document.addEventListener("dragend",ue),ce.document.addEventListener("drop",ue),()=>{ce.document.removeEventListener("selectionchange",le),ce.document.removeEventListener("dragend",ue),ce.document.removeEventListener("drop",ue)}},[U,K]);var he=l([O,[]]),ie=vG(l),xe=f&&O.children.length===1&&Array.from($e.texts(O)).length===1&&$e.string(O)===""&&!j,Re=k.useCallback(ce=>{if(ce&&xe){var le;z((le=ce.getBoundingClientRect())===null||le===void 0?void 0:le.height)}else z(void 0)},[xe]);if(xe){var me=F.start(O,[]);he.push({[Iv]:!0,placeholder:f,onPlaceholderResize:Re,anchor:me,focus:me})}var{marks:ke}=O;if(K.hasMarkPlaceholder=!1,O.selection&&Se.isCollapsed(O.selection)&&ke){var{anchor:Xe}=O.selection,Ye=$e.leaf(O,Xe.path),Qe=qE(Ye,qG);if(!Ze.equals(Ye,ke,{loose:!0})){K.hasMarkPlaceholder=!0;var ft=Object.fromEntries(Object.keys(Qe).map(ce=>[ce,null]));he.push(po(po(po({[hz]:!0},ft),ke),{},{anchor:Xe,focus:Xe}))}}return k.useEffect(()=>{setTimeout(()=>{var{selection:ce}=O;if(ce){var{anchor:le}=ce,ue=$e.leaf(O,le.path);if(ke&&!Ze.equals(ue,ke,{loose:!0})){Au.set(O,ke);return}}Au.delete(O)})}),NG(),k.createElement(ik.Provider,{value:h},k.createElement(uk.Provider,{value:j},k.createElement(Kz.Provider,{value:ie},k.createElement(jG,{node:L,receivedUserInput:I},k.createElement(_,po(po({role:h?void 0:"textbox","aria-multiline":h?void 0:!0},R),{},{spellCheck:$c||!NE?R.spellCheck:!1,autoCorrect:$c||!NE?R.autoCorrect:"false",autoCapitalize:$c||!NE?R.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!h,zindex:-1,suppressContentEditableWarning:!0,ref:J,style:po(po({},B?{}:po({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},G?{minHeight:G}:{})),x),onBeforeInput:k.useCallback(ce=>{if(!$c&&!h&&!Wa(ce,R.onBeforeInput)&&Ve.hasSelectableTarget(O,ce.target)&&(ce.preventDefault(),!Ve.isComposing(O))){var le=ce.data;F.insertText(O,le)}},[R.onBeforeInput,O,h]),onInput:k.useCallback(ce=>{if(!Wa(ce,R.onInput)){if(W.current){W.current.handleInput();return}for(var le of Y.current)le();Y.current=[],Ve.isFocused(O)||ck(O,ce.nativeEvent)}},[R.onInput,O]),onBlur:k.useCallback(ce=>{if(!(h||K.isUpdatingSelection||!Ve.hasSelectableTarget(O,ce.target)||Wa(ce,R.onBlur))){var le=Ve.findDocumentOrShadowRoot(O);if(K.latestElement!==le.activeElement){var{relatedTarget:ue}=ce,fe=Ve.toDOMNode(O,O);if(ue!==fe&&!(_l(ue)&&ue.hasAttribute("data-slate-spacer"))){if(ue!=null&&Uc(ue)&&Ve.hasDOMNode(O,ue)){var Ue=Ve.toSlateNode(O,ue);if(rt.isElement(Ue)&&!O.isVoid(Ue))return}if(Dd){var He=by(le);He?.removeAllRanges()}Vc.delete(O)}}}},[h,K.isUpdatingSelection,K.latestElement,O,R.onBlur]),onClick:k.useCallback(ce=>{if(Ve.hasTarget(O,ce.target)&&!Wa(ce,R.onClick)&&Uc(ce.target)){var le=Ve.toSlateNode(O,ce.target),ue=Ve.findPath(O,le);if(!F.hasPath(O,ue)||$e.get(O,ue)!==le)return;if(ce.detail===hV&&ue.length>=1){var fe=ue;if(!(rt.isElement(le)&&F.isBlock(O,le))){var Ue,He=F.above(O,{match:Vt=>rt.isElement(Vt)&&F.isBlock(O,Vt),at:ue});fe=(Ue=He?.[1])!==null&&Ue!==void 0?Ue:ue.slice(0,1)}var ut=F.range(O,fe);Pe.select(O,ut);return}if(h)return;var yt=F.start(O,ue),Ie=F.end(O,ue),an=F.void(O,{at:yt}),Wt=F.void(O,{at:Ie});if(an&&Wt&&ae.equals(an[1],Wt[1])){var Bn=F.range(O,yt);Pe.select(O,Bn)}}},[O,R.onClick,h]),onCompositionEnd:k.useCallback(ce=>{if(Ve.hasSelectableTarget(O,ce.target)){var le;if(Ve.isComposing(O)&&Promise.resolve().then(()=>{P(!1),Cd.set(O,!1)}),(le=W.current)===null||le===void 0||le.handleCompositionEnd(ce),Wa(ce,R.onCompositionEnd)||Qa)return;if(!Dd&&!J$&&!Z$&&!tV&&!eV&&ce.data){var ue=Au.get(O);Au.delete(O),ue!==void 0&&(ys.set(O,O.marks),O.marks=ue),F.insertText(O,ce.data);var fe=ys.get(O);ys.delete(O),fe!==void 0&&(O.marks=fe)}}},[R.onCompositionEnd,O]),onCompositionUpdate:k.useCallback(ce=>{Ve.hasSelectableTarget(O,ce.target)&&!Wa(ce,R.onCompositionUpdate)&&(Ve.isComposing(O)||(P(!0),Cd.set(O,!0)))},[R.onCompositionUpdate,O]),onCompositionStart:k.useCallback(ce=>{if(Ve.hasSelectableTarget(O,ce.target)){var le;if((le=W.current)===null||le===void 0||le.handleCompositionStart(ce),Wa(ce,R.onCompositionStart)||Qa)return;P(!0);var{selection:ue}=O;if(ue&&Se.isExpanded(ue)){F.deleteFragment(O);return}}},[R.onCompositionStart,O]),onCopy:k.useCallback(ce=>{Ve.hasSelectableTarget(O,ce.target)&&!Wa(ce,R.onCopy)&&!sk(ce)&&(ce.preventDefault(),Ve.setFragmentData(O,ce.clipboardData,"copy"))},[R.onCopy,O]),onCut:k.useCallback(ce=>{if(!h&&Ve.hasSelectableTarget(O,ce.target)&&!Wa(ce,R.onCut)&&!sk(ce)){ce.preventDefault(),Ve.setFragmentData(O,ce.clipboardData,"cut");var{selection:le}=O;if(le)if(Se.isExpanded(le))F.deleteFragment(O);else{var ue=$e.parent(O,le.anchor.path);F.isVoid(O,ue)&&Pe.delete(O)}}},[h,O,R.onCut]),onDragOver:k.useCallback(ce=>{if(Ve.hasTarget(O,ce.target)&&!Wa(ce,R.onDragOver)){var le=Ve.toSlateNode(O,ce.target);rt.isElement(le)&&F.isVoid(O,le)&&ce.preventDefault()}},[R.onDragOver,O]),onDragStart:k.useCallback(ce=>{if(!h&&Ve.hasTarget(O,ce.target)&&!Wa(ce,R.onDragStart)){var le=Ve.toSlateNode(O,ce.target),ue=Ve.findPath(O,le),fe=rt.isElement(le)&&F.isVoid(O,le)||F.void(O,{at:ue,voids:!0});if(fe){var Ue=F.range(O,ue);Pe.select(O,Ue)}K.isDraggingInternally=!0,Ve.setFragmentData(O,ce.dataTransfer,"drag")}},[h,O,R.onDragStart,K]),onDrop:k.useCallback(ce=>{if(!h&&Ve.hasTarget(O,ce.target)&&!Wa(ce,R.onDrop)){ce.preventDefault();var le=O.selection,ue=Ve.findEventRange(O,ce),fe=ce.dataTransfer;Pe.select(O,ue),K.isDraggingInternally&&le&&!Se.equals(le,ue)&&!F.void(O,{at:ue,voids:!0})&&Pe.delete(O,{at:le}),Ve.insertData(O,fe),Ve.isFocused(O)||Ve.focus(O)}},[h,O,R.onDrop,K]),onDragEnd:k.useCallback(ce=>{!h&&K.isDraggingInternally&&R.onDragEnd&&Ve.hasTarget(O,ce.target)&&R.onDragEnd(ce)},[h,K,R,O]),onFocus:k.useCallback(ce=>{if(!h&&!K.isUpdatingSelection&&Ve.hasEditableTarget(O,ce.target)&&!Wa(ce,R.onFocus)){var le=Ve.toDOMNode(O,O),ue=Ve.findDocumentOrShadowRoot(O);if(K.latestElement=ue.activeElement,Hc&&ce.target!==le){le.focus();return}Vc.set(O,!0)}},[h,K,O,R.onFocus]),onKeyDown:k.useCallback(ce=>{if(!h&&Ve.hasEditableTarget(O,ce.target)){var le;(le=W.current)===null||le===void 0||le.handleKeyDown(ce);var{nativeEvent:ue}=ce;if(Ve.isComposing(O)&&ue.isComposing===!1&&(Cd.set(O,!1),P(!1)),Wa(ce,R.onKeyDown)||Ve.isComposing(O))return;var{selection:fe}=O,Ue=O.children[fe!==null?fe.focus.path[0]:0],He=NN($e.string(Ue))==="rtl";if(sr.isRedo(ue)){ce.preventDefault();var ut=O;typeof ut.redo=="function"&&ut.redo();return}if(sr.isUndo(ue)){ce.preventDefault();var yt=O;typeof yt.undo=="function"&&yt.undo();return}if(sr.isMoveLineBackward(ue)){ce.preventDefault(),Pe.move(O,{unit:"line",reverse:!0});return}if(sr.isMoveLineForward(ue)){ce.preventDefault(),Pe.move(O,{unit:"line"});return}if(sr.isExtendLineBackward(ue)){ce.preventDefault(),Pe.move(O,{unit:"line",edge:"focus",reverse:!0});return}if(sr.isExtendLineForward(ue)){ce.preventDefault(),Pe.move(O,{unit:"line",edge:"focus"});return}if(sr.isMoveBackward(ue)){ce.preventDefault(),fe&&Se.isCollapsed(fe)?Pe.move(O,{reverse:!He}):Pe.collapse(O,{edge:He?"end":"start"});return}if(sr.isMoveForward(ue)){ce.preventDefault(),fe&&Se.isCollapsed(fe)?Pe.move(O,{reverse:He}):Pe.collapse(O,{edge:He?"start":"end"});return}if(sr.isMoveWordBackward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)&&Pe.collapse(O,{edge:"focus"}),Pe.move(O,{unit:"word",reverse:!He});return}if(sr.isMoveWordForward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)&&Pe.collapse(O,{edge:"focus"}),Pe.move(O,{unit:"word",reverse:He});return}if($c){if((pA||Dd)&&fe&&(sr.isDeleteBackward(ue)||sr.isDeleteForward(ue))&&Se.isCollapsed(fe)){var Ie=$e.parent(O,fe.anchor.path);if(rt.isElement(Ie)&&F.isVoid(O,Ie)&&(F.isInline(O,Ie)||F.isBlock(O,Ie))){ce.preventDefault(),F.deleteBackward(O,{unit:"block"});return}}}else{if(sr.isBold(ue)||sr.isItalic(ue)||sr.isTransposeCharacter(ue)){ce.preventDefault();return}if(sr.isSoftBreak(ue)){ce.preventDefault(),F.insertSoftBreak(O);return}if(sr.isSplitBlock(ue)){ce.preventDefault(),F.insertBreak(O);return}if(sr.isDeleteBackward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)?F.deleteFragment(O,{direction:"backward"}):F.deleteBackward(O);return}if(sr.isDeleteForward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)?F.deleteFragment(O,{direction:"forward"}):F.deleteForward(O);return}if(sr.isDeleteLineBackward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)?F.deleteFragment(O,{direction:"backward"}):F.deleteBackward(O,{unit:"line"});return}if(sr.isDeleteLineForward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)?F.deleteFragment(O,{direction:"forward"}):F.deleteForward(O,{unit:"line"});return}if(sr.isDeleteWordBackward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)?F.deleteFragment(O,{direction:"backward"}):F.deleteBackward(O,{unit:"word"});return}if(sr.isDeleteWordForward(ue)){ce.preventDefault(),fe&&Se.isExpanded(fe)?F.deleteFragment(O,{direction:"forward"}):F.deleteForward(O,{unit:"word"});return}}}},[h,O,R.onKeyDown]),onPaste:k.useCallback(ce=>{!h&&Ve.hasEditableTarget(O,ce.target)&&!Wa(ce,R.onPaste)&&(!$c||H$(ce.nativeEvent)||Dd)&&(ce.preventDefault(),Ve.insertData(O,ce.clipboardData))},[h,O,R.onPaste])}),k.createElement(UG,{decorations:he,node:O,renderElement:p,renderChunk:y,renderPlaceholder:C,renderLeaf:b,renderText:S}))))))}),$G=e=>{var{attributes:t,children:n}=e;return k.createElement("span",po({},t),n,Qa&&k.createElement("br",null))},VG=()=>[],GG=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&Se.isCollapsed(e.selection))){var n=t.startContainer.parentElement,r=t.getBoundingClientRect(),l=r.width===0&&r.height===0&&r.x===0&&r.y===0;if(l){var s=n.getBoundingClientRect(),f=s.width>0||s.height>0;if(f)return}n.getBoundingClientRect=t.getBoundingClientRect.bind(t),CH(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Wa=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},sk=e=>Uc(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),IG=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},ck=(e,t)=>{var n=e;if(t.inputType==="historyUndo"&&typeof n.undo=="function"){n.undo();return}if(t.inputType==="historyRedo"&&typeof n.redo=="function"){n.redo();return}},fk=k.createContext(!1),dk=()=>k.useContext(fk),hk=parseInt(k.version.split(".")[0],10),YG=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],KG=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:l,onValueChange:s,initialValue:f}=e,h=qE(e,YG);k.useState(()=>{if(!$e.isNodeList(f))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Tr.stringify(f)));if(!F.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Tr.stringify(t)));t.children=f,Object.assign(t,h)});var{selectorContext:p,onChange:y}=RG(),b=k.useCallback(A=>{var x;switch(r&&r(t.children),A==null||(x=A.operation)===null||x===void 0?void 0:x.type){case"set_selection":l?.(t.selection);break;default:s?.(t.children)}y()},[t,y,r,l,s]);k.useEffect(()=>(bA.set(t,b),()=>{bA.set(t,()=>{})}),[t,b]);var[S,C]=k.useState(Ve.isFocused(t));return k.useEffect(()=>{C(Ve.isFocused(t))},[t]),bs(()=>{var A=()=>C(Ve.isFocused(t));return hk>=17?(document.addEventListener("focusin",A),document.addEventListener("focusout",A),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",A)}):(document.addEventListener("focus",A,!0),document.addEventListener("blur",A,!0),()=>{document.removeEventListener("focus",A,!0),document.removeEventListener("blur",A,!0)})},[]),k.createElement(_A.Provider,{value:p},k.createElement(xA.Provider,{value:t},k.createElement(fk.Provider,{value:S},n)))},XG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t;r=dV(r,n);var{onChange:l,apply:s}=r;return r.getChunkSize=()=>null,r.onChange=f=>{var h=hk<18?hs.unstable_batchedUpdates:p=>p();h(()=>{l(f)})},r.apply=f=>{if(f.type==="move_node"){var h=$e.parent(r,f.path),p=!!r.getChunkSize(h);if(p){var y=$e.get(r,f.path),b=nk(r,h),S=Ve.findKey(r,y);b.movedNodeKeys.add(S)}}s(f)},r},ZG=Object.defineProperty,QG=Object.defineProperties,WG=Object.getOwnPropertyDescriptors,vk=Object.getOwnPropertySymbols,JG=Object.prototype.hasOwnProperty,eI=Object.prototype.propertyIsEnumerable,pk=(e,t,n)=>t in e?ZG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tI=(e,t)=>{for(var n in t||(t={}))JG.call(t,n)&&pk(e,n,t[n]);if(vk)for(var n of vk(t))eI.call(t,n)&&pk(e,n,t[n]);return e},nI=(e,t)=>QG(e,WG(t)),rI=k.createContext(void 0),aI=()=>k.useContext(rI);function mk(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((n,r)=>n&&mk(e[r],t[r]),!0):e===t}var iI=k.createContext({activeScopes:[],disableScope:()=>{},enableScope:()=>{},hotkeys:[],toggleScope:()=>{}}),lI=()=>k.useContext(iI),gk=new Set(["shift","alt","meta","mod","ctrl","control"]),uI={AltLeft:"alt",AltRight:"alt",ControlLeft:"ctrl",ControlRight:"ctrl",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ShiftLeft:"shift",ShiftRight:"shift",down:"arrowdown",esc:"escape",left:"arrowleft",return:"enter",right:"arrowright",up:"arrowup"};function Xv(e){return(uI[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function oI(e){return gk.has(e)}function RA(e,t=","){return e.toLowerCase().split(t)}function NA(e,t="+",n=!1,r){const l=e.toLocaleLowerCase().split(t).map(h=>Xv(h)),s={alt:l.includes("alt"),ctrl:l.includes("ctrl")||l.includes("control"),meta:l.includes("meta"),mod:l.includes("mod"),shift:l.includes("shift"),useKey:n},f=l.filter(h=>!gk.has(h));return nI(tI({},s),{description:r,keys:f})}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&bk([Xv(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Ek([Xv(e.code)])})),typeof window<"u"&&window.addEventListener("blur",()=>{Yc.clear()});var Yc=new Set;function yk(e){return Array.isArray(e)}function sI(e,t=","){return(yk(e)?e:e.split(t)).every(r=>Yc.has(r.trim().toLowerCase()))}function bk(e){const t=Array.isArray(e)?e:[e];Yc.has("meta")&&Yc.forEach(n=>!oI(n)&&Yc.delete(n.toLowerCase())),t.forEach(n=>Yc.add(n.toLowerCase()))}function Ek(e){const t=Array.isArray(e)?e:[e];e==="meta"?Yc.clear():t.forEach(n=>Yc.delete(n.toLowerCase()))}var Od={Alt:"Alt",Mod:"Mod",Shift:"Shift"};function cI(e){const t=k.useRef();return mk(t.current,e)||(t.current=e),t.current}function fI(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function dI(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function hI(e){return Dk(e,["input","textarea","select"])}function Dk({target:e},t=!1){const n=e&&e.tagName;return yk(t)?!!(n&&t?.some(r=>r.toLowerCase()===n.toLowerCase())):!!(n&&t&&t)}function vI(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(n=>t.includes(n))||e.includes("*"):!0}var pI=(e,t,n=!1)=>{const{alt:r,ctrl:l,keys:s,meta:f,mod:h,shift:p,useKey:y}=t,{altKey:b,code:S,ctrlKey:C,key:A,metaKey:x,shiftKey:_}=e,B=Xv(S);if(y&&s?.length===1&&s.includes(A))return!0;if(!s?.includes(B)&&!["alt","control","ctrl","meta","os","shift","unknown"].includes(B))return!1;if(!n){if(r!==b&&B!=="alt"||p!==_&&B!=="shift")return!1;if(h){if(!x&&!C)return!1}else if(f!==x&&B!=="meta"&&B!=="os"||l!==C&&B!=="ctrl"&&B!=="control")return!1}return s&&s.length===1&&s.includes(B)?!0:s?sI(s):!s},Sk=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},mI=typeof window>"u"?k.useEffect:k.useLayoutEffect;function gI(e,t,n,r){const[l,s]=k.useState(null),f=k.useRef(!1),h=Array.isArray(n)?Array.isArray(r)?void 0:r:n,p=k.useMemo(()=>Array.isArray(e)&&e.length>0&&Array.isArray(e[0])?e.map(_=>_.map(B=>B.toString()).join(h?.splitKey||"+")).join(h?.delimiter||","):Array.isArray(e)?e.join(h?.delimiter||","):e,[e,h?.splitKey,h?.delimiter]),y=Array.isArray(n)?n:Array.isArray(r)?r:void 0,b=k.useCallback(t,y??[]),S=k.useRef(b);S.current=y?b:t;const C=cI(h),{activeScopes:A}=lI(),x=aI();return mI(()=>{if(C?.enabled===!1||!vI(A,C?.scopes))return;const _=(j,P=!1)=>{var L;if(!(hI(j)&&!Dk(j,C?.enableOnFormTags))){if(l!==null){const Y=l.getRootNode();if((Y instanceof Document||Y instanceof ShadowRoot)&&Y.activeElement!==l&&!l.contains(Y.activeElement)){Sk(j);return}}(L=j.target)!=null&&L.isContentEditable&&!C?.enableOnContentEditable||RA(p,C?.delimiter).forEach(Y=>{var G,z,$;const Q=NA(Y,C?.splitKey,C?.useKey);if(pI(j,Q,C?.ignoreModifiers)||(G=Q.keys)!=null&&G.includes("*")){if(((z=C?.ignoreEventWhenPrevented)==null||z)&&j.defaultPrevented||($=C?.ignoreEventWhen)!=null&&$.call(C,j)||P&&f.current)return;if(!dI(j,Q,C?.enabled)){Sk(j);return}S.current(j,Q),fI(j,Q,C?.preventDefault),P||(f.current=!0)}})}},B=j=>{j.code!==void 0&&(bk(Xv(j.code)),(C?.keydown===void 0&&C?.keyup!==!0||C?.keydown)&&_(j))},R=j=>{j.code!==void 0&&(Ek(Xv(j.code)),f.current=!1,C?.keyup&&_(j,!0))},O=l||h?.document||document;return O.addEventListener("keyup",R),O.addEventListener("keydown",B),x&&RA(p,C?.delimiter).forEach(j=>x.addHotkey(NA(j,C?.splitKey,C?.useKey,C?.description))),()=>{O.removeEventListener("keyup",R),O.removeEventListener("keydown",B),x&&RA(p,C?.delimiter).forEach(j=>x.removeHotkey(NA(j,C?.splitKey,C?.useKey,C?.description)))}},[l,p,C,A]),s}var HE=typeof navigator<"u"&&navigator.userAgent.includes("Mac OS X"),MA=(e,t)=>!e||e.nodeName===t?e:MA(e.parentElement,t),yI=e=>e===void 0,bI=e=>e===null,EI=e=>yI(e)||bI(e),Qi=e=>!EI(e);function we(e,t){return(...n)=>e(t,...n)}const ta={};let DI=0;function Ou(e,t){const n=`atom${++DI}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=SI,r.write=CI),t&&(r.write=t),r}function SI(e){return e(this)}function CI(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const zA=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,kA=e=>"init"in e,PA=e=>!!e.write,$E=new WeakMap,wI=(e,t)=>{$E.set(e,t),e.catch(()=>{}).finally(()=>$E.delete(e))},Ck=(e,t)=>{const n=$E.get(e);n&&($E.delete(e),n(t))},wk=(e,t)=>{e.status="fulfilled",e.value=t},Ak=(e,t)=>{e.status="rejected",e.reason=t},AI=e=>typeof e?.then=="function",By=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),Ok=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),Zv=e=>!!e&&"v"in e&&e.v instanceof Promise,OI=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,VE=e=>{if("e"in e)throw e.e;return e.v},xk=()=>{const e=new WeakMap,t=new WeakMap,n=[],r=new WeakMap;let l,s;(ta?"production":void 0)!=="production"&&(l=new Set,s=new Set);const f=z=>e.get(z),h=(z,$)=>{$.d.forEach((Q,I)=>{if(!r.has(I)){const H=f(I);r.set(I,[H,new Set]),H&&h(I,H)}r.get(I)[1].add(z)})},p=(z,$)=>{var Q;(ta?"production":void 0)!=="production"&&Object.freeze($);const I=f(z);if(e.set(z,$),(Q=n[n.length-1])==null||Q.add(z),r.has(z)||(r.set(z,[I,new Set]),h(z,$)),Zv(I)){const H="v"in $?$.v instanceof Promise?$.v:Promise.resolve($.v):Promise.reject($.e);I.v!==H&&Ck(I.v,H)}},y=(z,$,Q,I)=>{const H=new Map(I?$.d:null);let K=!1;Q.forEach((W,ne)=>{!W&&zA(z,ne)&&(W=$),W?(H.set(ne,W),$.d.get(ne)!==W&&(K=!0)):(ta?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(K||$.d.size!==H.size)&&($.d=H)},b=(z,$,Q,I)=>{const H=f(z),K={d:H?.d||new Map,v:$};if(Q&&y(z,K,Q,I),By(H,K)&&H.d===K.d)return H;if(Zv(H)&&Zv(K)&&OI(H,K)){if(H.d===K.d)return H;K.v=H.v}return p(z,K),K},S=(z,$,Q,I)=>{if(AI($)){let H;const K=()=>{const ne=f(z);if(!Zv(ne)||ne.v!==W)return;const U=b(z,W,Q);t.has(z)&&ne.d!==U.d&&L(z,U,ne.d)},W=new Promise((ne,U)=>{let Z=!1;$.then(J=>{Z||(Z=!0,wk(W,J),ne(J),K())},J=>{Z||(Z=!0,Ak(W,J),U(J),K())}),H=J=>{Z||(Z=!0,J.then(he=>wk(W,he),he=>Ak(W,he)),ne(J))}});return W.orig=$,W.status="pending",wI(W,ne=>{ne&&(H(ne),I?.())}),b(z,W,Q,!0)}return b(z,$,Q)},C=(z,$,Q)=>{const I=f(z),H={d:I?.d||new Map,e:$};return Q&&y(z,H,Q),Ok(I,H)&&I.d===H.d?I:(p(z,H),H)},A=(z,$)=>{const Q=f(z);if(!$?.(z)&&Q&&(t.has(z)||Array.from(Q.d).every(([Z,J])=>{if(Z===z)return!0;const he=A(Z,$);return he===J||By(he,J)})))return Q;const I=new Map;let H=!0;const K=Z=>{if(zA(z,Z)){const he=f(Z);if(he)return I.set(Z,he),VE(he);if(kA(Z))return I.set(Z,void 0),Z.init;throw new Error("no atom init")}const J=A(Z,$);return I.set(Z,J),VE(J)};let W,ne;const U={get signal(){return W||(W=new AbortController),W.signal},get setSelf(){return(ta?"production":void 0)!=="production"&&!PA(z)&&console.warn("setSelf function cannot be used with read-only atom"),!ne&&PA(z)&&(ne=(...Z)=>{if((ta?"production":void 0)!=="production"&&H&&console.warn("setSelf function cannot be called in sync"),!H)return R(z,...Z)}),ne}};try{const Z=z.read(K,U);return S(z,Z,I,()=>W?.abort())}catch(Z){return C(z,Z,I)}finally{H=!1}},x=z=>VE(A(z)),_=z=>{const $=ne=>{var U,Z;const J=new Set((U=t.get(ne))==null?void 0:U.t);return(Z=r.get(ne))==null||Z[1].forEach(he=>{J.add(he)}),J},Q=new Array,I=new Set,H=ne=>{if(!I.has(ne)){I.add(ne);for(const U of $(ne))ne!==U&&H(U);Q.push(ne)}};H(z);const K=new Set([z]),W=ne=>I.has(ne);for(let ne=Q.length-1;ne>=0;--ne){const U=Q[ne],Z=f(U);if(!Z)continue;let J=!1;for(const he of Z.d.keys())if(he!==U&&K.has(he)){J=!0;break}if(J){const he=A(U,W);h(U,he),By(Z,he)||K.add(U)}I.delete(U)}},B=(z,...$)=>{const Q=K=>VE(A(K)),I=(K,...W)=>{const ne=n.length>0;ne||n.push(new Set([K]));let U;if(zA(z,K)){if(!kA(K))throw new Error("atom not writable");const Z=f(K),J=S(K,W[0]);By(Z,J)||_(K)}else U=B(K,...W);if(!ne){const Z=Y(n.pop());(ta?"production":void 0)!=="production"&&l.forEach(J=>J({type:"async-write",flushed:Z}))}return U};return z.write(Q,I,...$)},R=(z,...$)=>{n.push(new Set([z]));const Q=B(z,...$),I=Y(n.pop());return(ta?"production":void 0)!=="production"&&l.forEach(H=>H({type:"write",flushed:I})),Q},O=(z,$,Q)=>{var I;const H=t.get(z);if(H)return $&&H.t.add($),H;const K=Q||[];(I=f(z))==null||I.d.forEach((ne,U)=>{U!==z&&O(U,z,K)}),A(z);const W={t:new Set($&&[$]),l:new Set};if(t.set(z,W),(ta?"production":void 0)!=="production"&&s.add(z),PA(z)&&z.onMount){const{onMount:ne}=z;K.push(()=>{const U=ne((...Z)=>R(z,...Z));U&&(W.u=U)})}return Q||K.forEach(ne=>ne()),W},j=(z,$)=>!$.l.size&&(!$.t.size||$.t.size===1&&$.t.has(z)),P=(z,$)=>{if(!j(z,$))return;const Q=$.u;Q&&Q(),t.delete(z),(ta?"production":void 0)!=="production"&&s.delete(z);const I=f(z);I?(Zv(I)&&Ck(I.v),I.d.forEach((H,K)=>{if(K!==z){const W=t.get(K);W&&(W.t.delete(z),P(K,W))}})):(ta?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",z)},L=(z,$,Q)=>{const I=new Set($.d.keys()),H=new Set;Q?.forEach((K,W)=>{if(I.has(W)){I.delete(W);return}H.add(W);const ne=t.get(W);ne&&ne.t.delete(z)}),I.forEach(K=>{O(K,z)}),H.forEach(K=>{const W=t.get(K);W&&P(K,W)})},Y=z=>{let $;(ta?"production":void 0)!=="production"&&($=new Set);const Q=[],I=H=>{var K;if(!r.has(H))return;const[W,ne]=r.get(H);r.delete(H),Q.push([H,W]),ne.forEach(I),(K=f(H))==null||K.d.forEach((U,Z)=>I(Z))};if(z.forEach(I),Q.forEach(([H,K])=>{const W=f(H);if(!W){(ta?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush");return}if(W!==K){const ne=t.get(H);ne&&W.d!==K?.d&&L(H,W,K?.d),ne&&!(!Zv(K)&&(By(K,W)||Ok(K,W)))&&(ne.l.forEach(U=>U()),(ta?"production":void 0)!=="production"&&$.add(H))}}),(ta?"production":void 0)!=="production")return $},G=(z,$)=>{const Q=O(z),I=Y([z]),H=Q.l;return H.add($),(ta?"production":void 0)!=="production"&&l.forEach(K=>K({type:"sub",flushed:I})),()=>{H.delete($),P(z,Q),(ta?"production":void 0)!=="production"&&l.forEach(K=>K({type:"unsub"}))}};return(ta?"production":void 0)!=="production"?{get:x,set:R,sub:G,dev_subscribe_store:z=>(l.add(z),()=>{l.delete(z)}),dev_get_mounted_atoms:()=>s.values(),dev_get_atom_state:z=>e.get(z),dev_get_mounted:z=>t.get(z),dev_restore_atoms:z=>{n.push(new Set);for(const[Q,I]of z)kA(Q)&&(S(Q,I),_(Q));const $=Y(n.pop());l.forEach(Q=>Q({type:"restore",flushed:$}))}}:{get:x,set:R,sub:G}};let _y;const xI=()=>(_y||(_y=xk(),(ta?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=_y),globalThis.__JOTAI_DEFAULT_STORE__!==_y&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),_y),Tk=xk,xd=xI,TI={},BI=k.createContext(void 0),jA=e=>{const t=k.useContext(BI);return e?.store||t||xd()},_I=e=>typeof e?.then=="function",RI=k.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Bk(e,t){const n=jA(t),[[r,l,s],f]=k.useReducer(y=>{const b=n.get(e);return Object.is(y[0],b)&&y[1]===n&&y[2]===e?y:[b,n,e]},void 0,()=>[n.get(e),n,e]);let h=r;(l!==n||s!==e)&&(f(),h=n.get(e));const p=t?.delay;return k.useEffect(()=>{const y=n.sub(e,()=>{if(typeof p=="number"){setTimeout(f,p);return}f()});return f(),y},[n,e,p]),k.useDebugValue(h),_I(h)?RI(h):h}function FA(e,t){const n=jA(t);return k.useCallback((...l)=>{if((TI?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...l)},[n,e])}function NI(e,t){return[Bk(e,t),FA(e,t)]}const MI={},LA=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),zI=new WeakMap,kI=(e,t,n,r)=>{const l=LA(()=>new WeakMap,zI,t),s=LA(()=>new WeakMap,l,n);return LA(e,s,r)};function _k(e,t,n=Object.is){return kI(()=>{const r=Symbol(),l=([f,h])=>{if(h===r)return t(f);const p=t(f,h);return n(h,p)?h:p},s=Ou(f=>{const h=f(s),p=f(e);return l([p,h])});return s.init=r,s},e,t,n)}const PI=e=>typeof e?.then=="function";function jI(e=()=>{try{return window.localStorage}catch(n){(MI?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(n);return}},t){var n;let r,l;const s={getItem:(p,y)=>{var b,S;const C=x=>{if(x=x||"",r!==x){try{l=JSON.parse(x,t?.reviver)}catch{return y}r=x}return l},A=(S=(b=e())==null?void 0:b.getItem(p))!=null?S:null;return PI(A)?A.then(C):C(A)},setItem:(p,y)=>{var b;return(b=e())==null?void 0:b.setItem(p,JSON.stringify(y,void 0))},removeItem:p=>{var y;return(y=e())==null?void 0:y.removeItem(p)}},f=p=>(y,b,S)=>p(y,C=>{let A;try{A=JSON.parse(C||"")}catch{A=S}b(A)});let h;try{h=(n=e())==null?void 0:n.subscribe}catch{}return!h&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(h=(p,y)=>{if(!(e()instanceof window.Storage))return()=>{};const b=S=>{S.storageArea===e()&&S.key===p&&y(S.newValue)};return window.addEventListener("storage",b),()=>{window.removeEventListener("storage",b)}}),h&&(s.subscribe=f(h)),s}jI();const Rk=new WeakMap;function FI(e,t){const n=jA(t),r=LI(n);for(const[l,s]of e)(!r.has(l)||t?.dangerouslyForceHydrate)&&(r.add(l),n.set(l,s))}const LI=e=>{let t=Rk.get(e);return t||(t=new WeakSet,Rk.set(e,t)),t};var qI=Object.defineProperty,GE=Object.getOwnPropertySymbols,Nk=Object.prototype.hasOwnProperty,Mk=Object.prototype.propertyIsEnumerable,zk=(e,t,n)=>t in e?qI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IE=(e,t)=>{for(var n in t||(t={}))Nk.call(t,n)&&zk(e,n,t[n]);if(GE)for(var n of GE(t))Mk.call(t,n)&&zk(e,n,t[n]);return e},qA=(e,t)=>{var n={};for(var r in e)Nk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&GE)for(var r of GE(e))t.indexOf(r)<0&&Mk.call(e,r)&&(n[r]=e[r]);return n},kk=e=>typeof e=="function"?{__fn:e}:e,UI=e=>e&&typeof e=="object"&&"__fn"in e?e.__fn:e,HI=e=>{const t=Ou(kk(e));return Ou(n=>UI(n(t)),(n,r,l)=>r(t,kk(l)))},$I=(e,t,n={})=>{const r=[];for(const l of Object.keys(e)){const s=t[l];s!==void 0&&r.push([e[l],s])}FI(r,n)},VI=(e,t,{store:n}={})=>{for(const r of Object.keys(e)){const l=t[r],s=e[r],f=FA(s,{store:n});k.useEffect(()=>{l!=null&&f(l)},[f,l])}},YE=(e,t)=>`${e}:${t}`,UA="provider",HA=k.createContext(new Map),GI=(e,t=UA,n=!0)=>{var r;const l=k.useContext(HA),s=(r=l.get(YE(e,t)))!=null?r:l.get(YE(e,UA));return!s&&n&&console.warn(`Tried to access jotai store '${e}' outside of a matching provider.`),s},II=e=>{var t=e,{initialValues:n,children:r,store:l,atoms:s}=t,f=qA(t,["initialValues","children","store","atoms"]);return $I(s,IE(IE({},n),f),{store:l}),VI(s,f,{store:l}),k.createElement(k.Fragment,null,r)},YI=(e,t,n={})=>{const r=n.effect;return l=>{var s=l,{store:f,scope:h,children:p,resetKey:y}=s,b=qA(s,["store","scope","children","resetKey"]);const[S,C]=k.useState(Tk());k.useEffect(()=>{y&&C(Tk())},[y]);const A=k.useContext(HA),x=k.useMemo(()=>{const _=new Map(A);return h&&_.set(YE(e,h),S),_.set(YE(e,UA),S),_},[A,h,S]);return k.createElement(HA.Provider,{value:x},k.createElement(II,IE({store:S,atoms:t},b),!!r&&k.createElement(r,null),p))}},Pk=(e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"",KI=e=>!!e&&typeof e=="object"&&"read"in e&&typeof e.read=="function",KE=(e={})=>typeof e=="string"?{scope:e}:e,XI=e=>{const t=KE(e);return k.useMemo(()=>t,Object.values(t))},ZI=e=>e,$A=(e,{name:t,delay:n,effect:r,extend:l,suppressWarnings:s})=>{const f={},h={},p={};function y(I,H){this.options=I,this.store=H}for(const[I,H]of Object.entries(e)){const K=KI(H)?H:HI(H);f[I]=K;const W="write"in K;p[I]=W,W&&(h[I]=K)}const b=IE({},f);if(l){const I=l(f);for(const[H,K]of Object.entries(I))b[H]=K,p[H]="write"in K}const S=(I={})=>{const{scope:H,store:K,warnIfNoStore:W=!s}=KE(I),ne=GI(t,H,!K&&W);return K??ne},C=(I,H,K,W=ZI,ne,U)=>{var Z,J;const he=KE(K),ie=typeof ne=="function"?ne:void 0;U=(Z=typeof ne=="function"?U:ne)!=null?Z:[W,ie];const[xe,Re]=k.useMemo(()=>[W,ie],U),me=_k(I,xe,Re);return Bk(me,{store:H,delay:(J=he.delay)!=null?J:n})},A=(I,H,K)=>(H??xd()).get(I),x=(I,H,K)=>FA(I,{store:H}),_=(I,H,K)=>(...W)=>(H??xd()).set(I,...W),B=(I,H,K)=>{const{delay:W=n}=KE(K);return NI(I,{store:H,delay:W})},R=(I,H,K)=>W=>{H??(H=xd());const ne=H.sub(I,()=>{W(H.get(I))});return()=>ne()};for(const I of Object.keys(b)){const H=b[I],K=p[I],W=Pk(I);y.prototype[`use${W}Value`]=function(ne,U,Z){return C(H,this.store,this.options,ne,U,Z)},y.prototype[`get${W}`]=function(){return A(H,this.store,this.options)},y.prototype[`subscribe${W}`]=function(ne){return R(H,this.store,this.options)(ne)},K&&(y.prototype[`useSet${W}`]=function(){return x(H,this.store,this.options)},y.prototype[`set${W}`]=function(...ne){return _(H,this.store,this.options)(...ne)},y.prototype[`use${W}State`]=function(){return B(H,this.store,this.options)})}const O=(I,H,K,W=K)=>{y.prototype[I]=function(ne,...U){const Z=b[ne];return K(Z,this.store,this.options,...U)},y.prototype[H]=function(ne,...U){return W(ne,this.store,this.options,...U)}};O("useValue","useAtomValue",C),O("get","getAtom",A),O("useSet","useSetAtom",x),O("set","setAtom",(I,H,K,...W)=>_(I,H)(...W),_),O("useState","useAtomState",B),O("subscribe","subscribeAtom",(I,H,K,W)=>R(I,H)(W),R);const j=YI(t,h,{effect:r}),P={atom:b,name:t},L=(I={})=>{const H=XI(I),K=S(H);return k.useMemo(()=>new y(H,K),[K,H])},Y=(I,H)=>{var K;const W=(K=S(H))!=null?K:xd();return B(b[I],W,H)},G=(I,H={},K)=>{var W=H,{equalityFn:ne,selector:U}=W,Z=qA(W,["equalityFn","selector"]),J;const he=(J=S(Z))!=null?J:xd();return C(b[I],he,Z,U,ne??K,ne&&K)},z=(I,H)=>{var K;const W=(K=S(H))!=null?K:xd();return x(b[I],W)},$=Pk(t),Q=t.length===0?"store":`${t}Store`;return{[`${$}Provider`]:j,[Q]:P,[`use${$}Store`]:L,[`use${$}State`]:Y,[`use${$}Value`]:G,[`use${$}Set`]:z,name:t}};function gr(e,t,n,r,l){return e.useValue(t,n,r,l)}function Td(e,t){return e.useSet(t)}function jk(e,t,n,r,l){return e.useAtomValue(t,n,r,l)}const QI=Symbol(),Fk=Symbol(),Ry="a",Ny="w";let WI=(e,t)=>new Proxy(e,t);const VA=Object.getPrototypeOf,Lk=new WeakMap,JI=e=>e&&(Lk.has(e)?Lk.get(e):VA(e)===Object.prototype||VA(e)===Array.prototype),XE=e=>typeof e=="object"&&e!==null,eY=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(VA(e),t)},GA=e=>e[Fk]||e,qk=(e,t,n,r)=>{if(!JI(e))return e;let l=r&&r.get(e);if(!l){const p=GA(e);l=(y=>Object.values(Object.getOwnPropertyDescriptors(y)).some(b=>!b.configurable&&!b.writable))(p)?[p,eY(p)]:[p],r?.set(e,l)}const[s,f]=l;let h=n&&n.get(s);return h&&h[1].f===!!f||(h=((p,y)=>{const b={f:y};let S=!1;const C=(x,_)=>{if(!S){let B=b[Ry].get(p);if(B||(B={},b[Ry].set(p,B)),x===Ny)B[Ny]=!0;else{let R=B[x];R||(R=new Set,B[x]=R),R.add(_)}}},A={get:(x,_)=>_===Fk?p:(C("k",_),qk(Reflect.get(x,_),b[Ry],b.c,b.t)),has:(x,_)=>_===QI?(S=!0,b[Ry].delete(p),!0):(C("h",_),Reflect.has(x,_)),getOwnPropertyDescriptor:(x,_)=>(C("o",_),Reflect.getOwnPropertyDescriptor(x,_)),ownKeys:x=>(C(Ny),Reflect.ownKeys(x))};return y&&(A.set=A.deleteProperty=()=>!1),[A,b]})(s,!!f),h[1].p=WI(f||s,h[0]),n&&n.set(s,h)),h[1][Ry]=t,h[1].c=n,h[1].t=r,h[1].p},IA=(e,t,n,r,l=Object.is)=>{if(l(e,t))return!1;if(!XE(e)||!XE(t))return!0;const s=n.get(GA(e));if(!s)return!0;if(r){const h=r.get(e);if(h&&h.n===t)return h.g;r.set(e,{n:t,g:!1})}let f=null;try{for(const h of s.h||[])if(f=Reflect.has(e,h)!==Reflect.has(t,h),f)return f;if(s[Ny]===!0){if(f=((h,p)=>{const y=Reflect.ownKeys(h),b=Reflect.ownKeys(p);return y.length!==b.length||y.some((S,C)=>S!==b[C])})(e,t),f)return f}else for(const h of s.o||[])if(f=!!Reflect.getOwnPropertyDescriptor(e,h)!=!!Reflect.getOwnPropertyDescriptor(t,h),f)return f;for(const h of s.k||[])if(f=IA(e[h],t[h],n,r,l),f)return f;return f===null&&(f=!0),f}finally{r&&r.set(e,{n:t,g:f})}},tY=(e,t,n)=>{const r=[],l=new WeakSet,s=(f,h)=>{if(l.has(f))return;XE(f)&&l.add(f);const p=XE(f)&&t.get(GA(f));if(p){var y,b;if((y=p.h)==null||y.forEach(C=>{const A=`:has(${String(C)})`;r.push(h?[...h,A]:[A])}),p[Ny]===!0){const C=":ownKeys";r.push(h?[...h,C]:[C])}else{var S;(S=p.o)==null||S.forEach(C=>{const A=`:hasOwn(${String(C)})`;r.push(h?[...h,A]:[A])})}(b=p.k)==null||b.forEach(C=>{s(f[C],h?[...h,C]:[C])})}else h&&r.push(h)};return s(e),r},nY=(e,t)=>{const n=k.useRef();k.useEffect(()=>{n.current=tY(e,t)}),k.useDebugValue(e)},rY=e=>()=>{const[,n]=k.useReducer(b=>b+1,0),r=new WeakMap,l=k.useRef(),s=k.useRef(),f=k.useRef();k.useEffect(()=>{l.current=r,s.current!==f.current&&IA(s.current,f.current,r,new WeakMap)&&(s.current=f.current,n())});const h=k.useCallback(b=>(f.current=b,s.current&&s.current!==b&&l.current&&!IA(s.current,b,l.current,new WeakMap)?s.current:(s.current=b,b)),[]),p=e(h);typeof process=="object"&&process.env.NODE_ENV!=="production"&&nY(p,r);const y=k.useMemo(()=>new WeakMap,[]);return qk(p,r,y)},Uk={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},My=new Map,ZE=e=>{const t=My.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},aY=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=My.get(n.name);if(r)return{type:"tracked",store:e,...r};const l={connection:t.connect(n),stores:{}};return My.set(n.name,l),{type:"tracked",store:e,...l}},iY=(e,t)=>{if(t===void 0)return;const n=My.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&My.delete(e))},lY=e=>{var t,n;if(!e)return;const r=e.split(`
286
+ `),l=r.findIndex(f=>f.includes("api.setState"));if(l<0)return;const s=((t=r[l+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(s))==null?void 0:n[1]},uY=(e,t={})=>(n,r,l)=>{const{enabled:s,anonymousActionType:f,store:h,...p}=t;let y;try{y=(s??(Uk?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!y)return e(n,r,l);const{connection:b,...S}=aY(h,y,p);let C=!0;l.setState=((_,B,R)=>{const O=n(_,B);if(!C)return O;const j=R===void 0?{type:f||lY(new Error().stack)||"anonymous"}:typeof R=="string"?{type:R}:R;return h===void 0?(b?.send(j,r()),O):(b?.send({...j,type:`${h}/${j.type}`},{...ZE(p.name),[h]:l.getState()}),O)}),l.devtools={cleanup:()=>{b&&typeof b.unsubscribe=="function"&&b.unsubscribe(),iY(p.name,h)}};const A=(..._)=>{const B=C;C=!1,n(..._),C=B},x=e(l.setState,r,l);if(S.type==="untracked"?b?.init(x):(S.stores[S.store]=l,b?.init(Object.fromEntries(Object.entries(S.stores).map(([_,B])=>[_,_===S.store?x:B.getState()])))),l.dispatchFromDevtools&&typeof l.dispatch=="function"){let _=!1;const B=l.dispatch;l.dispatch=(...R)=>{(Uk?"production":void 0)!=="production"&&R[0].type==="__setState"&&!_&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),_=!0),B(...R)}}return b.subscribe(_=>{var B;switch(_.type){case"ACTION":if(typeof _.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return YA(_.payload,R=>{if(R.type==="__setState"){if(h===void 0){A(R.state);return}Object.keys(R.state).length!==1&&console.error(`
287
+ [zustand devtools middleware] Unsupported __setState action format.
288
+ When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
289
+ and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
290
+ `);const O=R.state[h];if(O==null)return;JSON.stringify(l.getState())!==JSON.stringify(O)&&A(O);return}l.dispatchFromDevtools&&typeof l.dispatch=="function"&&l.dispatch(R)});case"DISPATCH":switch(_.payload.type){case"RESET":return A(x),h===void 0?b?.init(l.getState()):b?.init(ZE(p.name));case"COMMIT":if(h===void 0){b?.init(l.getState());return}return b?.init(ZE(p.name));case"ROLLBACK":return YA(_.state,R=>{if(h===void 0){A(R),b?.init(l.getState());return}A(R[h]),b?.init(ZE(p.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return YA(_.state,R=>{if(h===void 0){A(R);return}JSON.stringify(l.getState())!==JSON.stringify(R[h])&&A(R[h])});case"IMPORT_STATE":{const{nextLiftedState:R}=_.payload,O=(B=R.computedStates.slice(-1)[0])==null?void 0:B.state;if(!O)return;A(h===void 0?O:O[h]),b?.send(null,R);return}case"PAUSE_RECORDING":return C=!C}return}}),x},YA=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},oY=e=>(t,n,r)=>{const l=r.subscribe;return r.subscribe=((f,h,p)=>{let y=f;if(h){const b=p?.equalityFn||Object.is;let S=f(r.getState());y=C=>{const A=f(C);if(!b(S,A)){const x=S;h(S=A,x)}},p?.fireImmediately&&h(S,S)}return l(y)}),e(t,n,r)};function sY(e,t){let n;try{n=e()}catch{return}return{getItem:l=>{var s;const f=p=>p===null?null:JSON.parse(p,void 0),h=(s=n.getItem(l))!=null?s:null;return h instanceof Promise?h.then(f):f(h)},setItem:(l,s)=>n.setItem(l,JSON.stringify(s,void 0)),removeItem:l=>n.removeItem(l)}}const KA=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return KA(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return KA(r)(n)}}}},cY=(e,t)=>(n,r,l)=>{let s={storage:sY(()=>localStorage),partialize:_=>_,version:0,merge:(_,B)=>({...B,..._}),...t},f=!1;const h=new Set,p=new Set;let y=s.storage;if(!y)return e((..._)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(..._)},r,l);const b=()=>{const _=s.partialize({...r()});return y.setItem(s.name,{state:_,version:s.version})},S=l.setState;l.setState=(_,B)=>(S(_,B),b());const C=e((..._)=>(n(..._),b()),r,l);l.getInitialState=()=>C;let A;const x=()=>{var _,B;if(!y)return;f=!1,h.forEach(O=>{var j;return O((j=r())!=null?j:C)});const R=((B=s.onRehydrateStorage)==null?void 0:B.call(s,(_=r())!=null?_:C))||void 0;return KA(y.getItem.bind(y))(s.name).then(O=>{if(O)if(typeof O.version=="number"&&O.version!==s.version){if(s.migrate){const j=s.migrate(O.state,O.version);return j instanceof Promise?j.then(P=>[!0,P]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,O.state];return[!1,void 0]}).then(O=>{var j;const[P,L]=O;if(A=s.merge(L,(j=r())!=null?j:C),n(A,!0),P)return b()}).then(()=>{R?.(A,void 0),A=r(),f=!0,p.forEach(O=>O(A))}).catch(O=>{R?.(void 0,O)})};return l.persist={setOptions:_=>{s={...s,..._},_.storage&&(y=_.storage)},clearStorage:()=>{y?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>x(),hasHydrated:()=>f,onHydrate:_=>(h.add(_),()=>{h.delete(_)}),onFinishHydration:_=>(p.add(_),()=>{p.delete(_)})},s.skipHydration||x(),A||C};var QE={exports:{}},XA={},WE={exports:{}},ZA={};/**
291
+ * @license React
292
+ * use-sync-external-store-shim.production.js
293
+ *
294
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
295
+ *
296
+ * This source code is licensed under the MIT license found in the
297
+ * LICENSE file in the root directory of this source tree.
298
+ */var Hk;function fY(){if(Hk)return ZA;Hk=1;var e=k;function t(S,C){return S===C&&(S!==0||1/S===1/C)||S!==S&&C!==C}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,s=e.useLayoutEffect,f=e.useDebugValue;function h(S,C){var A=C(),x=r({inst:{value:A,getSnapshot:C}}),_=x[0].inst,B=x[1];return s(function(){_.value=A,_.getSnapshot=C,p(_)&&B({inst:_})},[S,A,C]),l(function(){return p(_)&&B({inst:_}),S(function(){p(_)&&B({inst:_})})},[S]),f(A),A}function p(S){var C=S.getSnapshot;S=S.value;try{var A=C();return!n(S,A)}catch{return!0}}function y(S,C){return C()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:h;return ZA.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,ZA}var QA={};/**
299
+ * @license React
300
+ * use-sync-external-store-shim.development.js
301
+ *
302
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
303
+ *
304
+ * This source code is licensed under the MIT license found in the
305
+ * LICENSE file in the root directory of this source tree.
306
+ */var $k;function dY(){return $k||($k=1,process.env.NODE_ENV!=="production"&&(function(){function e(A,x){return A===x&&(A!==0||1/A===1/x)||A!==A&&x!==x}function t(A,x){b||l.startTransition===void 0||(b=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var _=x();if(!S){var B=x();s(_,B)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),S=!0)}B=f({inst:{value:_,getSnapshot:x}});var R=B[0].inst,O=B[1];return p(function(){R.value=_,R.getSnapshot=x,n(R)&&O({inst:R})},[A,_,x]),h(function(){return n(R)&&O({inst:R}),A(function(){n(R)&&O({inst:R})})},[A]),y(_),_}function n(A){var x=A.getSnapshot;A=A.value;try{var _=x();return!s(A,_)}catch{return!0}}function r(A,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=k,s=typeof Object.is=="function"?Object.is:e,f=l.useState,h=l.useEffect,p=l.useLayoutEffect,y=l.useDebugValue,b=!1,S=!1,C=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;QA.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),QA}var Vk;function Gk(){return Vk||(Vk=1,process.env.NODE_ENV==="production"?WE.exports=fY():WE.exports=dY()),WE.exports}/**
307
+ * @license React
308
+ * use-sync-external-store-shim/with-selector.production.js
309
+ *
310
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
311
+ *
312
+ * This source code is licensed under the MIT license found in the
313
+ * LICENSE file in the root directory of this source tree.
314
+ */var Ik;function hY(){if(Ik)return XA;Ik=1;var e=k,t=Gk();function n(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var r=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,s=e.useRef,f=e.useEffect,h=e.useMemo,p=e.useDebugValue;return XA.useSyncExternalStoreWithSelector=function(y,b,S,C,A){var x=s(null);if(x.current===null){var _={hasValue:!1,value:null};x.current=_}else _=x.current;x=h(function(){function R(Y){if(!O){if(O=!0,j=Y,Y=C(Y),A!==void 0&&_.hasValue){var G=_.value;if(A(G,Y))return P=G}return P=Y}if(G=P,r(j,Y))return G;var z=C(Y);return A!==void 0&&A(G,z)?(j=Y,G):(j=Y,P=z)}var O=!1,j,P,L=S===void 0?null:S;return[function(){return R(b())},L===null?void 0:function(){return R(L())}]},[b,S,C,A]);var B=l(y,x[0],x[1]);return f(function(){_.hasValue=!0,_.value=B},[B]),p(B),B},XA}var WA={};/**
315
+ * @license React
316
+ * use-sync-external-store-shim/with-selector.development.js
317
+ *
318
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
319
+ *
320
+ * This source code is licensed under the MIT license found in the
321
+ * LICENSE file in the root directory of this source tree.
322
+ */var Yk;function vY(){return Yk||(Yk=1,process.env.NODE_ENV!=="production"&&(function(){function e(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n=Gk(),r=typeof Object.is=="function"?Object.is:e,l=n.useSyncExternalStore,s=t.useRef,f=t.useEffect,h=t.useMemo,p=t.useDebugValue;WA.useSyncExternalStoreWithSelector=function(y,b,S,C,A){var x=s(null);if(x.current===null){var _={hasValue:!1,value:null};x.current=_}else _=x.current;x=h(function(){function R(Y){if(!O){if(O=!0,j=Y,Y=C(Y),A!==void 0&&_.hasValue){var G=_.value;if(A(G,Y))return P=G}return P=Y}if(G=P,r(j,Y))return G;var z=C(Y);return A!==void 0&&A(G,z)?(j=Y,G):(j=Y,P=z)}var O=!1,j,P,L=S===void 0?null:S;return[function(){return R(b())},L===null?void 0:function(){return R(L())}]},[b,S,C,A]);var B=l(y,x[0],x[1]);return f(function(){_.hasValue=!0,_.value=B},[B]),p(B),B},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),WA}var Kk;function pY(){return Kk||(Kk=1,process.env.NODE_ENV==="production"?QE.exports=hY():QE.exports=vY()),QE.exports}var mY=pY();const gY=fa(mY),Xk=e=>{let t;const n=new Set,r=(y,b)=>{const S=typeof y=="function"?y(t):y;if(!Object.is(S,t)){const C=t;t=b??(typeof S!="object"||S===null)?S:Object.assign({},t,S),n.forEach(A=>A(t,C))}},l=()=>t,h={setState:r,getState:l,getInitialState:()=>p,subscribe:y=>(n.add(y),()=>n.delete(y))},p=t=e(r,l,h);return h},yY=(e=>e?Xk(e):Xk),{useSyncExternalStoreWithSelector:bY}=gY,EY=e=>e;function DY(e,t=EY,n){const r=bY(e.subscribe,e.getState,e.getInitialState,t,n);return k.useDebugValue(r),r}const Zk=(e,t)=>{const n=yY(e),r=(l,s=t)=>DY(n,l,s);return Object.assign(r,n),r},SY=((e,t)=>e?Zk(e,t):Zk),yr={Remove:"remove",Replace:"replace",Add:"add"},Qk=Symbol.for("__MUTATIVE_PROXY_DRAFT__"),CY=Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"),JE=Symbol.iterator,Wi={mutable:"mutable",immutable:"immutable"},JA={};function zy(e,t){return e instanceof Map?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Wk(e,t){if(t in e){let n=Reflect.getPrototypeOf(e);for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Reflect.getPrototypeOf(n)}}}function eO(e){return Object.getPrototypeOf(e)===Set.prototype}function tO(e){return Object.getPrototypeOf(e)===Map.prototype}function Ji(e){var t;return(t=e.copy)!==null&&t!==void 0?t:e.original}function Bd(e){return!!$t(e)}function $t(e){return typeof e!="object"?null:e?.[Qk]}function nO(e){var t;const n=$t(e);return n?(t=n.copy)!==null&&t!==void 0?t:n.original:e}function xu(e,t){if(!e||typeof e!="object")return!1;let n;return Object.getPrototypeOf(e)===Object.prototype||Array.isArray(e)||e instanceof Map||e instanceof Set||!!t?.mark&&((n=t.mark(e,Wi))===Wi.immutable||typeof n=="function")}function Jk(e,t=[]){if(Object.hasOwnProperty.call(e,"key")){const n=e.parent.copy,r=$t(Ds(n,e.key));if(r!==null&&r?.original!==e.original)return null;const l=e.parent.type===3,s=l?Array.from(e.parent.setMap.keys()).indexOf(e.key):e.key;if(!(l&&n.size>s||zy(n,s)))return null;t.push(s)}if(e.parent)return Jk(e.parent,t);t.reverse();try{wY(e.copy,t)}catch{return null}return t}function _d(e){return Array.isArray(e)?1:e instanceof Map?2:e instanceof Set?3:0}function Ds(e,t){return _d(e)===2?e.get(t):e[t]}function ky(e,t,n){_d(e)===2?e.set(t,n):e[t]=n}function rO(e,t){const n=$t(e);return(n?Ji(n):e)[t]}function Ss(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function aO(e){if(e)for(;e.finalities.revoke.length>0;)e.finalities.revoke.pop()()}function Rd(e,t){return t?e:[""].concat(e).map(n=>{const r=`${n}`;return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")}function wY(e,t){for(let n=0;n<t.length-1;n+=1){const r=t[n];if(e=Ds(_d(e)===3?Array.from(e):e,r),typeof e!="object")throw new Error(`Cannot resolve patch at '${t.join("/")}'.`)}return e}function AY(e){const t=Object.create(Object.getPrototypeOf(e));return Reflect.ownKeys(e).forEach(n=>{let r=Reflect.getOwnPropertyDescriptor(e,n);if(r.enumerable&&r.configurable&&r.writable){t[n]=e[n];return}r.writable||(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(r={configurable:!0,writable:!0,enumerable:r.enumerable,value:e[n]}),Reflect.defineProperty(t,n,r)}),t}const OY=Object.prototype.propertyIsEnumerable;function eP(e,t){let n;if(Array.isArray(e))return Array.prototype.concat.call(e);if(e instanceof Set){if(!eO(e)){const r=Object.getPrototypeOf(e).constructor;return new r(e.values())}return Set.prototype.difference?Set.prototype.difference.call(e,new Set):new Set(e.values())}else if(e instanceof Map){if(!tO(e)){const r=Object.getPrototypeOf(e).constructor;return new r(e)}return new Map(e)}else if(t?.mark&&(n=t.mark(e,Wi),n!==void 0)&&n!==Wi.mutable){if(n===Wi.immutable)return AY(e);if(typeof n=="function"){if(t.enablePatches||t.enableAutoFreeze)throw new Error("You can't use mark and patches or auto freeze together.");return n()}throw new Error(`Unsupported mark result: ${n}`)}else if(typeof e=="object"&&Object.getPrototypeOf(e)===Object.prototype){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l]}),Object.getOwnPropertySymbols(e).forEach(l=>{OY.call(e,l)&&(r[l]=e[l])}),r}else throw new Error("Please check mark() to ensure that it is a stable marker draftable function.")}function Ja(e){e.copy||(e.copy=eP(e.original,e.options))}function Py(e){if(!xu(e))return nO(e);if(Array.isArray(e))return e.map(Py);if(e instanceof Map){const n=Array.from(e.entries()).map(([r,l])=>[r,Py(l)]);if(!tO(e)){const r=Object.getPrototypeOf(e).constructor;return new r(n)}return new Map(n)}if(e instanceof Set){const n=Array.from(e).map(Py);if(!eO(e)){const r=Object.getPrototypeOf(e).constructor;return new r(n)}return new Set(n)}const t=Object.create(Object.getPrototypeOf(e));for(const n in e)t[n]=Py(e[n]);return t}function eD(e){return Bd(e)?Py(e):e}function mo(e){var t;e.assignedMap=(t=e.assignedMap)!==null&&t!==void 0?t:new Map,e.operated||(e.operated=!0,e.parent&&mo(e.parent))}function tP(){throw new Error("Cannot modify frozen object")}function Qv(e,t,n,r,l){{n=n??new WeakMap,r=r??[],l=l??[];const f=n.has(e)?n.get(e):e;if(r.length>0){const h=r.indexOf(f);if(f&&typeof f=="object"&&h!==-1)throw r[0]===f?new Error("Forbids circular reference"):new Error(`Forbids circular reference: ~/${l.slice(0,h).map((p,y)=>{if(typeof p=="symbol")return`[${p.toString()}]`;const b=r[y];return typeof p=="object"&&(b instanceof Map||b instanceof Set)?Array.from(b.keys()).indexOf(p):p}).join("/")}`);r.push(f),l.push(t)}else r.push(f)}if(Object.isFrozen(e)||Bd(e)){r.pop(),l.pop();return}switch(_d(e)){case 2:for(const[h,p]of e)Qv(h,h,n,r,l),Qv(p,h,n,r,l);e.set=e.clear=e.delete=tP;break;case 3:for(const h of e)Qv(h,h,n,r,l);e.add=e.clear=e.delete=tP;break;case 1:Object.freeze(e);let f=0;for(const h of e)Qv(h,f,n,r,l),f+=1;break;default:Object.freeze(e),Object.keys(e).forEach(h=>{const p=e[h];Qv(p,h,n,r,l)})}r.pop(),l.pop()}function iO(e,t){const n=_d(e);if(n===0)Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)});else if(n===1){let r=0;for(const l of e)t(r,l,e),r+=1}else e.forEach((r,l)=>t(l,r,e))}function nP(e,t,n){if(Bd(e)||!xu(e,n)||t.has(e)||Object.isFrozen(e))return;const r=e instanceof Set,l=r?new Map:void 0;if(t.add(e),iO(e,(s,f)=>{var h;if(Bd(f)){const p=$t(f);Ja(p);const y=!((h=p.assignedMap)===null||h===void 0)&&h.size||p.operated?p.copy:p.original;ky(r?l:e,s,y)}else nP(f,t,n)}),l){const s=e,f=Array.from(s);s.clear(),f.forEach(h=>{s.add(l.has(h)?l.get(h):h)})}}function xY(e,t){const n=e.type===3?e.setMap:e.copy;e.finalities.revoke.length>1&&e.assignedMap.get(t)&&n&&nP(Ds(n,t),e.finalities.handledSet,e.options)}function lO(e){e.type===3&&e.copy&&(e.copy.clear(),e.setMap.forEach(t=>{e.copy.add(nO(t))}))}function uO(e,t,n,r){if(e.operated&&e.assignedMap&&e.assignedMap.size>0&&!e.finalized){if(n&&r){const s=Jk(e);s&&t(e,s,n,r)}e.finalized=!0}}function oO(e,t,n,r){const l=$t(n);l&&(l.callbacks||(l.callbacks=[]),l.callbacks.push((s,f)=>{var h;const p=e.type===3?e.setMap:e.copy;if(Ss(Ds(p,t),n)){let y=l.original;l.copy&&(y=l.copy),lO(e),uO(e,r,s,f),e.options.enableAutoFreeze&&(e.options.updatedValues=(h=e.options.updatedValues)!==null&&h!==void 0?h:new WeakMap,e.options.updatedValues.set(y,l.original)),ky(p,t,y)}}),e.options.enableAutoFreeze&&l.finalities!==e.finalities&&(e.options.enableAutoFreeze=!1)),xu(n,e.options)&&e.finalities.draft.push(()=>{const s=e.type===3?e.setMap:e.copy;Ss(Ds(s,t),n)&&xY(e,t)})}function TY(e,t,n,r,l){let{original:s,assignedMap:f,options:h}=e,p=e.copy;p.length<s.length&&([s,p]=[p,s],[n,r]=[r,n]);for(let y=0;y<s.length;y+=1)if(f.get(y.toString())&&p[y]!==s[y]){const b=t.concat([y]),S=Rd(b,l);n.push({op:yr.Replace,path:S,value:eD(p[y])}),r.push({op:yr.Replace,path:S,value:eD(s[y])})}for(let y=s.length;y<p.length;y+=1){const b=t.concat([y]),S=Rd(b,l);n.push({op:yr.Add,path:S,value:eD(p[y])})}if(s.length<p.length){const{arrayLengthAssignment:y=!0}=h.enablePatches;if(y){const b=t.concat(["length"]),S=Rd(b,l);r.push({op:yr.Replace,path:S,value:s.length})}else for(let b=p.length;s.length<b;b-=1){const S=t.concat([b-1]),C=Rd(S,l);r.push({op:yr.Remove,path:C})}}}function BY({original:e,copy:t,assignedMap:n},r,l,s,f){n.forEach((h,p)=>{const y=Ds(e,p),b=eD(Ds(t,p)),S=h?zy(e,p)?yr.Replace:yr.Add:yr.Remove;if(Ss(y,b)&&S===yr.Replace)return;const C=r.concat(p),A=Rd(C,f);l.push(S===yr.Remove?{op:S,path:A}:{op:S,path:A,value:b}),s.push(S===yr.Add?{op:yr.Remove,path:A}:S===yr.Remove?{op:yr.Add,path:A,value:y}:{op:yr.Replace,path:A,value:y})})}function _Y({original:e,copy:t},n,r,l,s){let f=0;e.forEach(h=>{if(!t.has(h)){const p=n.concat([f]),y=Rd(p,s);r.push({op:yr.Remove,path:y,value:h}),l.unshift({op:yr.Add,path:y,value:h})}f+=1}),f=0,t.forEach(h=>{if(!e.has(h)){const p=n.concat([f]),y=Rd(p,s);r.push({op:yr.Add,path:y,value:h}),l.unshift({op:yr.Remove,path:y,value:h})}f+=1})}function jy(e,t,n,r){const{pathAsArray:l=!0}=e.options.enablePatches;switch(e.type){case 0:case 2:return BY(e,t,n,r,l);case 1:return TY(e,t,n,r,l);case 3:return _Y(e,t,n,r,l)}}const tD=(e,t,n=!1)=>{if(typeof e=="object"&&e!==null&&(!xu(e,t)||n))throw new Error("Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.")},sO={get size(){return Ji($t(this)).size},has(e){return Ji($t(this)).has(e)},set(e,t){const n=$t(this),r=Ji(n);return(!r.has(e)||!Ss(r.get(e),t))&&(Ja(n),mo(n),n.assignedMap.set(e,!0),n.copy.set(e,t),oO(n,e,t,jy)),this},delete(e){if(!this.has(e))return!1;const t=$t(this);return Ja(t),mo(t),t.original.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.copy.delete(e),!0},clear(){const e=$t(this);if(this.size){Ja(e),mo(e),e.assignedMap=new Map;for(const[t]of e.original)e.assignedMap.set(t,!1);e.copy.clear()}},forEach(e,t){const n=$t(this);Ji(n).forEach((r,l)=>{e.call(t,this.get(l),l,this)})},get(e){var t,n;const r=$t(this),l=Ji(r).get(e),s=((n=(t=r.options).mark)===null||n===void 0?void 0:n.call(t,l,Wi))===Wi.mutable;if(r.options.strict&&tD(l,r.options,s),s||r.finalized||!xu(l,r.options)||l!==r.original.get(e))return l;const f=JA.createDraft({original:l,parentDraft:r,key:e,finalities:r.finalities,options:r.options});return Ja(r),r.copy.set(e,f),f},keys(){return Ji($t(this)).keys()},values(){const e=this.keys();return{[JE]:()=>this.values(),next:()=>{const t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}},entries(){const e=this.keys();return{[JE]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}},[JE](){return this.entries()}},RY=Reflect.ownKeys(sO),rP=(e,t,{isValuesIterator:n})=>()=>{var r,l;const s=t.next();if(s.done)return s;const f=s.value;let h=e.setMap.get(f);const p=$t(h),y=((l=(r=e.options).mark)===null||l===void 0?void 0:l.call(r,h,Wi))===Wi.mutable;if(e.options.strict&&tD(f,e.options,y),!y&&!p&&xu(f,e.options)&&!e.finalized&&e.original.has(f)){const b=JA.createDraft({original:f,parentDraft:e,key:f,finalities:e.finalities,options:e.options});e.setMap.set(f,b),h=b}else p&&(h=p.proxy);return{done:!1,value:n?h:[h,h]}},nD={get size(){return $t(this).setMap.size},has(e){const t=$t(this);if(t.setMap.has(e))return!0;Ja(t);const n=$t(e);return!!(n&&t.setMap.has(n.original))},add(e){const t=$t(this);return this.has(e)||(Ja(t),mo(t),t.assignedMap.set(e,!0),t.setMap.set(e,e),oO(t,e,e,jy)),this},delete(e){if(!this.has(e))return!1;const t=$t(this);Ja(t),mo(t);const n=$t(e);return n&&t.setMap.has(n.original)?(t.assignedMap.set(n.original,!1),t.setMap.delete(n.original)):(!n&&t.setMap.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.setMap.delete(e))},clear(){if(!this.size)return;const e=$t(this);Ja(e),mo(e);for(const t of e.original)e.assignedMap.set(t,!1);e.setMap.clear()},values(){const e=$t(this);Ja(e);const t=e.setMap.keys();return{[Symbol.iterator]:()=>this.values(),next:rP(e,t,{isValuesIterator:!0})}},entries(){const e=$t(this);Ja(e);const t=e.setMap.keys();return{[Symbol.iterator]:()=>this.entries(),next:rP(e,t,{isValuesIterator:!1})}},keys(){return this.values()},[JE](){return this.values()},forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}};Set.prototype.difference&&Object.assign(nD,{intersection(e){return Set.prototype.intersection.call(new Set(this.values()),e)},union(e){return Set.prototype.union.call(new Set(this.values()),e)},difference(e){return Set.prototype.difference.call(new Set(this.values()),e)},symmetricDifference(e){return Set.prototype.symmetricDifference.call(new Set(this.values()),e)},isSubsetOf(e){return Set.prototype.isSubsetOf.call(new Set(this.values()),e)},isSupersetOf(e){return Set.prototype.isSupersetOf.call(new Set(this.values()),e)},isDisjointFrom(e){return Set.prototype.isDisjointFrom.call(new Set(this.values()),e)}});const NY=Reflect.ownKeys(nD),aP=new WeakSet,iP={get(e,t,n){var r,l;const s=(r=e.copy)===null||r===void 0?void 0:r[t];if(s&&aP.has(s))return s;if(t===Qk)return e;let f;if(e.options.mark){const y=t==="size"&&(e.original instanceof Map||e.original instanceof Set)?Reflect.get(e.original,t):Reflect.get(e.original,t,n);if(f=e.options.mark(y,Wi),f===Wi.mutable)return e.options.strict&&tD(y,e.options,!0),y}const h=Ji(e);if(h instanceof Map&&RY.includes(t)){if(t==="size")return Object.getOwnPropertyDescriptor(sO,"size").get.call(e.proxy);const y=sO[t];if(y)return y.bind(e.proxy)}if(h instanceof Set&&NY.includes(t)){if(t==="size")return Object.getOwnPropertyDescriptor(nD,"size").get.call(e.proxy);const y=nD[t];if(y)return y.bind(e.proxy)}if(!zy(h,t)){const y=Wk(h,t);return y?"value"in y?y.value:(l=y.get)===null||l===void 0?void 0:l.call(e.proxy):void 0}const p=h[t];if(e.options.strict&&tD(p,e.options),e.finalized||!xu(p,e.options))return p;if(p===rO(e.original,t)){if(Ja(e),e.copy[t]=cO({original:e.original[t],parentDraft:e,key:e.type===1?Number(t):t,finalities:e.finalities,options:e.options}),typeof f=="function"){const y=$t(e.copy[t]);return Ja(y),mo(y),y.copy}return e.copy[t]}return p},set(e,t,n){var r;if(e.type===3||e.type===2)throw new Error("Map/Set draft does not support any property assignment.");let l;if(e.type===1&&t!=="length"&&!(Number.isInteger(l=Number(t))&&l>=0&&(t===0||l===0||String(l)===String(t))))throw new Error("Only supports setting array indices and the 'length' property.");const s=Wk(Ji(e),t);if(s?.set)return s.set.call(e.proxy,n),!0;const f=rO(Ji(e),t),h=$t(f);return h&&Ss(h.original,n)?(e.copy[t]=n,e.assignedMap=(r=e.assignedMap)!==null&&r!==void 0?r:new Map,e.assignedMap.set(t,!1),!0):(Ss(n,f)&&(n!==void 0||zy(e.original,t))||(Ja(e),mo(e),zy(e.original,t)&&Ss(n,e.original[t])?e.assignedMap.delete(t):e.assignedMap.set(t,!0),e.copy[t]=n,oO(e,t,n,jy)),!0)},has(e,t){return t in Ji(e)},ownKeys(e){return Reflect.ownKeys(Ji(e))},getOwnPropertyDescriptor(e,t){const n=Ji(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},getPrototypeOf(e){return Reflect.getPrototypeOf(e.original)},setPrototypeOf(){throw new Error("Cannot call 'setPrototypeOf()' on drafts")},defineProperty(){throw new Error("Cannot call 'defineProperty()' on drafts")},deleteProperty(e,t){var n;return e.type===1?iP.set.call(this,e,t,void 0,e.proxy):(rO(e.original,t)!==void 0||t in e.original?(Ja(e),mo(e),e.assignedMap.set(t,!1)):(e.assignedMap=(n=e.assignedMap)!==null&&n!==void 0?n:new Map,e.assignedMap.delete(t)),e.copy&&delete e.copy[t],!0)}};function cO(e){const{original:t,parentDraft:n,key:r,finalities:l,options:s}=e,f=_d(t),h={type:f,finalized:!1,parent:n,original:t,copy:null,proxy:null,finalities:l,options:s,setMap:f===3?new Map(t.entries()):void 0};(r||"key"in e)&&(h.key=r);const{proxy:p,revoke:y}=Proxy.revocable(f===1?Object.assign([],h):h,iP);if(l.revoke.push(y),aP.add(p),h.proxy=p,n){const b=n;b.finalities.draft.push((S,C)=>{var A,x;const _=$t(p);let B=b.type===3?b.setMap:b.copy;const R=Ds(B,r),O=$t(R);if(O){let j=O.original;O.operated&&(j=nO(R)),lO(O),uO(O,jy,S,C),b.options.enableAutoFreeze&&(b.options.updatedValues=(A=b.options.updatedValues)!==null&&A!==void 0?A:new WeakMap,b.options.updatedValues.set(j,O.original)),ky(B,r,j)}(x=_.callbacks)===null||x===void 0||x.forEach(j=>{j(S,C)})})}else{const b=$t(p);b.finalities.draft.push((S,C)=>{lO(b),uO(b,jy,S,C)})}return p}JA.createDraft=cO;function MY(e,t,n,r,l){var s;const f=$t(e),h=(s=f?.original)!==null&&s!==void 0?s:e,p=!!t.length;if(f?.operated)for(;f.finalities.draft.length>0;)f.finalities.draft.pop()(n,r);const y=p?t[0]:f?f.operated?f.copy:f.original:e;return f&&aO(f),l&&Qv(y,y,f?.options.updatedValues),[y,n&&p?[{op:yr.Replace,path:[],value:t[0]}]:n,r&&p?[{op:yr.Replace,path:[],value:h}]:r]}function zY(e,t){var n;const r={draft:[],revoke:[],handledSet:new WeakSet};let l,s;t.enablePatches&&(l=[],s=[]);const h=((n=t.mark)===null||n===void 0?void 0:n.call(t,e,Wi))===Wi.mutable||!xu(e,t)?e:cO({original:e,parentDraft:null,finalities:r,options:t});return[h,(p=[])=>{const[y,b,S]=MY(h,p,l,s,t.enableAutoFreeze);return t.enablePatches?[y,b,S]:y}]}function fO(e){const{rootDraft:t,value:n,useRawReturn:r=!1,isRoot:l=!0}=e;iO(n,(s,f,h)=>{const p=$t(f);if(p&&t&&p.finalities===t.finalities){e.isContainDraft=!0;const y=p.original;if(h instanceof Set){const b=Array.from(h);h.clear(),b.forEach(S=>h.add(s===S?y:S))}else ky(h,s,y)}else typeof f=="object"&&f!==null&&(e.value=f,e.isRoot=!1,fO(e))}),l&&(e.isContainDraft||console.warn("The return value does not contain any draft, please use 'rawReturn()' to wrap the return value to improve performance."),r&&console.warn("The return value contains drafts, please don't use 'rawReturn()' to wrap the return value."))}function lP(e){var t;const n=$t(e);if(!xu(e,n?.options))return e;const r=_d(e);if(n&&!n.operated)return n.original;let l;function s(){l=r===2?tO(e)?new Map(e):new(Object.getPrototypeOf(e)).constructor(e):r===3?Array.from(n.setMap.values()):eP(e,n?.options)}if(n){n.finalized=!0;try{s()}finally{n.finalized=!1}}else l=e;if(iO(l,(f,h)=>{if(n&&Ss(Ds(n.original,f),h))return;const p=lP(h);p!==h&&(l===e&&s(),ky(l,f,p))}),r===3){const f=(t=n?.original)!==null&&t!==void 0?t:l;return eO(f)?new Set(l):new(Object.getPrototypeOf(f)).constructor(l)}return l}function uP(e){if(!Bd(e))throw new Error(`current() is only used for Draft, parameter: ${e}`);return lP(e)}const kY=(e=>function t(n,r,l){var s,f,h;if(typeof n=="function"&&typeof r!="function")return function(L,...Y){return t(L,G=>n.call(this,G,...Y),r)};const p=n,y=r;let b=l;if(typeof r!="function"&&(b=r),b!==void 0&&Object.prototype.toString.call(b)!=="[object Object]")throw new Error(`Invalid options: ${b}, 'options' should be an object.`);b=Object.assign(Object.assign({},e),b);const S=Bd(p)?uP(p):p,C=Array.isArray(b.mark)?((L,Y)=>{for(const G of b.mark){if(typeof G!="function")throw new Error(`Invalid mark: ${G}, 'mark' should be a function.`);const z=G(L,Y);if(z)return z}}):b.mark,A=(s=b.enablePatches)!==null&&s!==void 0?s:!1,x=(f=b.strict)!==null&&f!==void 0?f:!1,B={enableAutoFreeze:(h=b.enableAutoFreeze)!==null&&h!==void 0?h:!1,mark:C,strict:x,enablePatches:A};if(!xu(S,B)&&typeof S=="object"&&S!==null)throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");const[R,O]=zY(S,B);if(typeof r!="function"){if(!xu(S,B))throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");return[R,O]}let j;try{j=y(R)}catch(L){throw aO($t(R)),L}const P=L=>{const Y=$t(R);if(!Bd(L)){if(L!==void 0&&!Ss(L,R)&&Y?.operated)throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");const z=L?.[CY];if(z){const $=z[0];return B.strict&&typeof L=="object"&&L!==null&&fO({rootDraft:Y,value:L,useRawReturn:!0}),O([$])}if(L!==void 0)return typeof L=="object"&&L!==null&&fO({rootDraft:Y,value:L}),O([L])}if(L===R||L===void 0)return O([]);const G=$t(L);if(B===G.options){if(G.operated)throw new Error("Cannot return a modified child draft.");return O([uP(L)])}return O([L])};return j instanceof Promise?j.then(P,L=>{throw aO($t(R)),L}):P(j)})();Object.prototype.constructor.toString();var PY=Object.defineProperty,jY=Object.defineProperties,FY=Object.getOwnPropertyDescriptors,rD=Object.getOwnPropertySymbols,oP=Object.prototype.hasOwnProperty,sP=Object.prototype.propertyIsEnumerable,cP=(e,t,n)=>t in e?PY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tu=(e,t)=>{for(var n in t||(t={}))oP.call(t,n)&&cP(e,n,t[n]);if(rD)for(var n of rD(t))sP.call(t,n)&&cP(e,n,t[n]);return e},Wv=(e,t)=>jY(e,FY(t)),LY=(e,t)=>{var n={};for(var r in e)oP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&rD)for(var r of rD(e))t.indexOf(r)<0&&sP.call(e,r)&&(n[r]=e[r]);return n},qY=e=>(t,n,r)=>(r.setState=(l,s,...f)=>{const h=typeof l=="function"?cM(l):l;return t(h,typeof s=="boolean"?s:!0,...f)},e(r.setState,n,r)),UY=qY,HY=(e,t)=>(n,r,l)=>(l.setState=(s,f,...h)=>{const p=typeof s=="function"?kY(s,t&&Wv(Tu({},t),{enablePatches:!1})):s;return n(p,typeof f=="boolean"?f:!0,...h)},e(l.setState,r,l)),$Y=HY,aD=(e,t=!1)=>{const n=typeof e=="boolean",r=n?{}:e||{},{enabled:l}=r,s=LY(r,["enabled"]),f=n?e:l;return Tu({enabled:f??t},s)},VY=(e,t)=>{const n=e(t),r=Tu(Tu({},t.actions),n);return Wv(Tu({},t),{actions:r,set:(l,...s)=>{if(l in r){const f=r[l];return f(...s)}return t.set(l,s[0])}})},GY=e=>e,IY=(e,t)=>{const n=e(t),r=Tu(Tu({},t.selectors),n);return Wv(Tu({},t),{get:(l,...s)=>{if(l in r){const f=r[l];return f(...s)}return t.get(l)},subscribe:(l,...s)=>{if(l in r){let f,h,p;const y=s.at(-1),b=s.at(-2),S=s.at(-3);let C=-1;return typeof y=="function"?(p=y,h=typeof b=="function"?b:GY,C=typeof b=="function"?-2:-1):(f=y,p=b,h=S,C=-3),t.subscribe("state",()=>h(r[l](...s.slice(0,C))),p,f)}return t.subscribe(l,...s)},selectors:r,useValue:(l,...s)=>{if(l in r){const f=r[l],h=s.at(-1),p=typeof h=="function"?h:void 0,y=p?s.slice(0,-1):s;return t.useStore(()=>f(...y),p)}return t.useValue(l,s[0])}})},dO=e=>Wv(Tu({},e),{actions:e.actions||{},extendSelectors:t=>dO(IY(t,e)),extendActions:t=>dO(VY(t,e))}),YY=(e,t)=>{const{name:n,devtools:r,immer:l,mutative:s,persist:f,isMutativeState:h}=t,p=[],y=aD(r);y.enabled&&p.push(z=>{var $;return uY(z,Wv(Tu({},y),{name:($=y?.name)!=null?$:n}))});const b=aD(f);b.enabled&&p.push(z=>{var $;return cY(z,Wv(Tu({},b),{name:($=b.name)!=null?$:n}))});const S=aD(l);S.enabled&&p.push(z=>UY(z));const C=aD(s);C.enabled&&p.push(z=>$Y(z,C));const A=p.reverse().reduce((z,$)=>$(z),typeof e=="function"?e:()=>e),x=SY(oY(A)),_=rY(x),B=z=>_()[z],R=z=>z==="state"?x.getState():x.getState()[z],O=(z,$,Q,I)=>{if(z==="state")return x.subscribe($,Q,I);let H;return Q?H=K=>$(K[z]):(Q=$,H=K=>K[z]),x.subscribe(H,Q,I)},j=h||S.enabled||C.enabled,P=(z,$)=>{var Q;if(z==="state")return x.setState($);const I=z;if(x.getState()[I]===$)return;const K=z.replace(/^\S/,ne=>ne.toUpperCase()),W=n?`@@${n}/set${K}`:void 0;(Q=x.setState)==null||Q.call(x,j?ne=>{ne[I]=$}:{[I]:$},void 0,W)},L=(z,$)=>x(Q=>Q[z],$);return dO({get:R,name:n,set:P,subscribe:O,store:x,useStore:x,useValue:L,useState:(z,$)=>[L(z,$),I=>P(z,I)],useTracked:B,useTrackedStore:_,actions:{},selectors:{}})},fP=YY;function KY(e,t,...n){return e.useValue(t,...n)}var hO,dP;function hP(){if(dP)return hO;dP=1;function e(t,n){return function(r){return t(n(r))}}return hO=e,hO}var vO,vP;function pO(){if(vP)return vO;vP=1;var e=hP(),t=e(Object.getPrototypeOf,Object);return vO=t,vO}var mO,pP;function gO(){if(pP)return mO;pP=1;var e=jv(),t=pO(),n=vs(),r="[object Object]",l=Function.prototype,s=Object.prototype,f=l.toString,h=s.hasOwnProperty,p=f.call(Object);function y(b){if(!n(b)||e(b)!=r)return!1;var S=t(b);if(S===null)return!0;var C=h.call(S,"constructor")&&S.constructor;return typeof C=="function"&&C instanceof C&&f.call(C)==p}return mO=y,mO}var XY=gO();const ZY=fa(XY);var yO,mP;function el(){if(mP)return yO;mP=1;var e=Array.isArray;return yO=e,yO}var bO,gP;function QY(){if(gP)return bO;gP=1;var e=el();function t(){if(!arguments.length)return[];var n=arguments[0];return e(n)?n:[n]}return bO=t,bO}var WY=QY();const tl=fa(WY);var EO,yP;function iD(){if(yP)return EO;yP=1;function e(t,n){for(var r=-1,l=t==null?0:t.length,s=Array(l);++r<l;)s[r]=n(t[r],r,t);return s}return EO=e,EO}var DO,bP;function JY(){if(bP)return DO;bP=1;function e(){this.__data__=[],this.size=0}return DO=e,DO}var SO,EP;function Jv(){if(EP)return SO;EP=1;function e(t,n){return t===n||t!==t&&n!==n}return SO=e,SO}var CO,DP;function lD(){if(DP)return CO;DP=1;var e=Jv();function t(n,r){for(var l=n.length;l--;)if(e(n[l][0],r))return l;return-1}return CO=t,CO}var wO,SP;function eK(){if(SP)return wO;SP=1;var e=lD(),t=Array.prototype,n=t.splice;function r(l){var s=this.__data__,f=e(s,l);if(f<0)return!1;var h=s.length-1;return f==h?s.pop():n.call(s,f,1),--this.size,!0}return wO=r,wO}var AO,CP;function tK(){if(CP)return AO;CP=1;var e=lD();function t(n){var r=this.__data__,l=e(r,n);return l<0?void 0:r[l][1]}return AO=t,AO}var OO,wP;function nK(){if(wP)return OO;wP=1;var e=lD();function t(n){return e(this.__data__,n)>-1}return OO=t,OO}var xO,AP;function rK(){if(AP)return xO;AP=1;var e=lD();function t(n,r){var l=this.__data__,s=e(l,n);return s<0?(++this.size,l.push([n,r])):l[s][1]=r,this}return xO=t,xO}var TO,OP;function uD(){if(OP)return TO;OP=1;var e=JY(),t=eK(),n=tK(),r=nK(),l=rK();function s(f){var h=-1,p=f==null?0:f.length;for(this.clear();++h<p;){var y=f[h];this.set(y[0],y[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=l,TO=s,TO}var BO,xP;function aK(){if(xP)return BO;xP=1;var e=uD();function t(){this.__data__=new e,this.size=0}return BO=t,BO}var _O,TP;function iK(){if(TP)return _O;TP=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return _O=e,_O}var RO,BP;function lK(){if(BP)return RO;BP=1;function e(t){return this.__data__.get(t)}return RO=e,RO}var NO,_P;function uK(){if(_P)return NO;_P=1;function e(t){return this.__data__.has(t)}return NO=e,NO}var MO,RP;function zO(){if(RP)return MO;RP=1;var e=jv(),t=Ei(),n="[object AsyncFunction]",r="[object Function]",l="[object GeneratorFunction]",s="[object Proxy]";function f(h){if(!t(h))return!1;var p=e(h);return p==r||p==l||p==n||p==s}return MO=f,MO}var kO,NP;function oK(){if(NP)return kO;NP=1;var e=Cu(),t=e["__core-js_shared__"];return kO=t,kO}var PO,MP;function sK(){if(MP)return PO;MP=1;var e=oK(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return PO=n,PO}var jO,zP;function kP(){if(zP)return jO;zP=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return jO=n,jO}var FO,PP;function cK(){if(PP)return FO;PP=1;var e=zO(),t=sK(),n=Ei(),r=kP(),l=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,f=Function.prototype,h=Object.prototype,p=f.toString,y=h.hasOwnProperty,b=RegExp("^"+p.call(y).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S(C){if(!n(C)||t(C))return!1;var A=e(C)?b:s;return A.test(r(C))}return FO=S,FO}var LO,jP;function fK(){if(jP)return LO;jP=1;function e(t,n){return t?.[n]}return LO=e,LO}var qO,FP;function Nd(){if(FP)return qO;FP=1;var e=cK(),t=fK();function n(r,l){var s=t(r,l);return e(s)?s:void 0}return qO=n,qO}var UO,LP;function HO(){if(LP)return UO;LP=1;var e=Nd(),t=Cu(),n=e(t,"Map");return UO=n,UO}var $O,qP;function oD(){if(qP)return $O;qP=1;var e=Nd(),t=e(Object,"create");return $O=t,$O}var VO,UP;function dK(){if(UP)return VO;UP=1;var e=oD();function t(){this.__data__=e?e(null):{},this.size=0}return VO=t,VO}var GO,HP;function hK(){if(HP)return GO;HP=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return GO=e,GO}var IO,$P;function vK(){if($P)return IO;$P=1;var e=oD(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function l(s){var f=this.__data__;if(e){var h=f[s];return h===t?void 0:h}return r.call(f,s)?f[s]:void 0}return IO=l,IO}var YO,VP;function pK(){if(VP)return YO;VP=1;var e=oD(),t=Object.prototype,n=t.hasOwnProperty;function r(l){var s=this.__data__;return e?s[l]!==void 0:n.call(s,l)}return YO=r,YO}var KO,GP;function mK(){if(GP)return KO;GP=1;var e=oD(),t="__lodash_hash_undefined__";function n(r,l){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&l===void 0?t:l,this}return KO=n,KO}var XO,IP;function gK(){if(IP)return XO;IP=1;var e=dK(),t=hK(),n=vK(),r=pK(),l=mK();function s(f){var h=-1,p=f==null?0:f.length;for(this.clear();++h<p;){var y=f[h];this.set(y[0],y[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=l,XO=s,XO}var ZO,YP;function yK(){if(YP)return ZO;YP=1;var e=gK(),t=uD(),n=HO();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ZO=r,ZO}var QO,KP;function bK(){if(KP)return QO;KP=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return QO=e,QO}var WO,XP;function sD(){if(XP)return WO;XP=1;var e=bK();function t(n,r){var l=n.__data__;return e(r)?l[typeof r=="string"?"string":"hash"]:l.map}return WO=t,WO}var JO,ZP;function EK(){if(ZP)return JO;ZP=1;var e=sD();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return JO=t,JO}var ex,QP;function DK(){if(QP)return ex;QP=1;var e=sD();function t(n){return e(this,n).get(n)}return ex=t,ex}var tx,WP;function SK(){if(WP)return tx;WP=1;var e=sD();function t(n){return e(this,n).has(n)}return tx=t,tx}var nx,JP;function CK(){if(JP)return nx;JP=1;var e=sD();function t(n,r){var l=e(this,n),s=l.size;return l.set(n,r),this.size+=l.size==s?0:1,this}return nx=t,nx}var rx,ej;function ax(){if(ej)return rx;ej=1;var e=yK(),t=EK(),n=DK(),r=SK(),l=CK();function s(f){var h=-1,p=f==null?0:f.length;for(this.clear();++h<p;){var y=f[h];this.set(y[0],y[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=l,rx=s,rx}var ix,tj;function wK(){if(tj)return ix;tj=1;var e=uD(),t=HO(),n=ax(),r=200;function l(s,f){var h=this.__data__;if(h instanceof e){var p=h.__data__;if(!t||p.length<r-1)return p.push([s,f]),this.size=++h.size,this;h=this.__data__=new n(p)}return h.set(s,f),this.size=h.size,this}return ix=l,ix}var lx,nj;function cD(){if(nj)return lx;nj=1;var e=uD(),t=aK(),n=iK(),r=lK(),l=uK(),s=wK();function f(h){var p=this.__data__=new e(h);this.size=p.size}return f.prototype.clear=t,f.prototype.delete=n,f.prototype.get=r,f.prototype.has=l,f.prototype.set=s,lx=f,lx}var ux,rj;function AK(){if(rj)return ux;rj=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return ux=t,ux}var ox,aj;function OK(){if(aj)return ox;aj=1;function e(t){return this.__data__.has(t)}return ox=e,ox}var sx,ij;function xK(){if(ij)return sx;ij=1;var e=ax(),t=AK(),n=OK();function r(l){var s=-1,f=l==null?0:l.length;for(this.__data__=new e;++s<f;)this.add(l[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,sx=r,sx}var cx,lj;function TK(){if(lj)return cx;lj=1;function e(t,n){for(var r=-1,l=t==null?0:t.length;++r<l;)if(n(t[r],r,t))return!0;return!1}return cx=e,cx}var fx,uj;function BK(){if(uj)return fx;uj=1;function e(t,n){return t.has(n)}return fx=e,fx}var dx,oj;function sj(){if(oj)return dx;oj=1;var e=xK(),t=TK(),n=BK(),r=1,l=2;function s(f,h,p,y,b,S){var C=p&r,A=f.length,x=h.length;if(A!=x&&!(C&&x>A))return!1;var _=S.get(f),B=S.get(h);if(_&&B)return _==h&&B==f;var R=-1,O=!0,j=p&l?new e:void 0;for(S.set(f,h),S.set(h,f);++R<A;){var P=f[R],L=h[R];if(y)var Y=C?y(L,P,R,h,f,S):y(P,L,R,f,h,S);if(Y!==void 0){if(Y)continue;O=!1;break}if(j){if(!t(h,function(G,z){if(!n(j,z)&&(P===G||b(P,G,p,y,S)))return j.push(z)})){O=!1;break}}else if(!(P===L||b(P,L,p,y,S))){O=!1;break}}return S.delete(f),S.delete(h),O}return dx=s,dx}var hx,cj;function fj(){if(cj)return hx;cj=1;var e=Cu(),t=e.Uint8Array;return hx=t,hx}var vx,dj;function _K(){if(dj)return vx;dj=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(l,s){r[++n]=[s,l]}),r}return vx=e,vx}var px,hj;function RK(){if(hj)return px;hj=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(l){r[++n]=l}),r}return px=e,px}var mx,vj;function NK(){if(vj)return mx;vj=1;var e=Pv(),t=fj(),n=Jv(),r=sj(),l=_K(),s=RK(),f=1,h=2,p="[object Boolean]",y="[object Date]",b="[object Error]",S="[object Map]",C="[object Number]",A="[object RegExp]",x="[object Set]",_="[object String]",B="[object Symbol]",R="[object ArrayBuffer]",O="[object DataView]",j=e?e.prototype:void 0,P=j?j.valueOf:void 0;function L(Y,G,z,$,Q,I,H){switch(z){case O:if(Y.byteLength!=G.byteLength||Y.byteOffset!=G.byteOffset)return!1;Y=Y.buffer,G=G.buffer;case R:return!(Y.byteLength!=G.byteLength||!I(new t(Y),new t(G)));case p:case y:case C:return n(+Y,+G);case b:return Y.name==G.name&&Y.message==G.message;case A:case _:return Y==G+"";case S:var K=l;case x:var W=$&f;if(K||(K=s),Y.size!=G.size&&!W)return!1;var ne=H.get(Y);if(ne)return ne==G;$|=h,H.set(Y,G);var U=r(K(Y),K(G),$,Q,I,H);return H.delete(Y),U;case B:if(P)return P.call(Y)==P.call(G)}return!1}return mx=L,mx}var gx,pj;function yx(){if(pj)return gx;pj=1;function e(t,n){for(var r=-1,l=n.length,s=t.length;++r<l;)t[s+r]=n[r];return t}return gx=e,gx}var bx,mj;function gj(){if(mj)return bx;mj=1;var e=yx(),t=el();function n(r,l,s){var f=l(r);return t(r)?f:e(f,s(r))}return bx=n,bx}var Ex,yj;function MK(){if(yj)return Ex;yj=1;function e(t,n){for(var r=-1,l=t==null?0:t.length,s=0,f=[];++r<l;){var h=t[r];n(h,r,t)&&(f[s++]=h)}return f}return Ex=e,Ex}var Dx,bj;function Ej(){if(bj)return Dx;bj=1;function e(){return[]}return Dx=e,Dx}var Sx,Dj;function Cx(){if(Dj)return Sx;Dj=1;var e=MK(),t=Ej(),n=Object.prototype,r=n.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(f){return f==null?[]:(f=Object(f),e(l(f),function(h){return r.call(f,h)}))}:t;return Sx=s,Sx}var wx,Sj;function zK(){if(Sj)return wx;Sj=1;function e(t,n){for(var r=-1,l=Array(t);++r<t;)l[r]=n(r);return l}return wx=e,wx}var Ax,Cj;function kK(){if(Cj)return Ax;Cj=1;var e=jv(),t=vs(),n="[object Arguments]";function r(l){return t(l)&&e(l)==n}return Ax=r,Ax}var Ox,wj;function fD(){if(wj)return Ox;wj=1;var e=kK(),t=vs(),n=Object.prototype,r=n.hasOwnProperty,l=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(f){return t(f)&&r.call(f,"callee")&&!l.call(f,"callee")};return Ox=s,Ox}var Fy={exports:{}},xx,Aj;function PK(){if(Aj)return xx;Aj=1;function e(){return!1}return xx=e,xx}Fy.exports;var Oj;function dD(){return Oj||(Oj=1,(function(e,t){var n=Cu(),r=PK(),l=t&&!t.nodeType&&t,s=l&&!0&&e&&!e.nodeType&&e,f=s&&s.exports===l,h=f?n.Buffer:void 0,p=h?h.isBuffer:void 0,y=p||r;e.exports=y})(Fy,Fy.exports)),Fy.exports}var Tx,xj;function hD(){if(xj)return Tx;xj=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,l){var s=typeof r;return l=l??e,!!l&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<l}return Tx=n,Tx}var Bx,Tj;function _x(){if(Tj)return Bx;Tj=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Bx=t,Bx}var Rx,Bj;function jK(){if(Bj)return Rx;Bj=1;var e=jv(),t=_x(),n=vs(),r="[object Arguments]",l="[object Array]",s="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Function]",y="[object Map]",b="[object Number]",S="[object Object]",C="[object RegExp]",A="[object Set]",x="[object String]",_="[object WeakMap]",B="[object ArrayBuffer]",R="[object DataView]",O="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",L="[object Int16Array]",Y="[object Int32Array]",G="[object Uint8Array]",z="[object Uint8ClampedArray]",$="[object Uint16Array]",Q="[object Uint32Array]",I={};I[O]=I[j]=I[P]=I[L]=I[Y]=I[G]=I[z]=I[$]=I[Q]=!0,I[r]=I[l]=I[B]=I[s]=I[R]=I[f]=I[h]=I[p]=I[y]=I[b]=I[S]=I[C]=I[A]=I[x]=I[_]=!1;function H(K){return n(K)&&t(K.length)&&!!I[e(K)]}return Rx=H,Rx}var Nx,_j;function Mx(){if(_j)return Nx;_j=1;function e(t){return function(n){return t(n)}}return Nx=e,Nx}var Ly={exports:{}};Ly.exports;var Rj;function zx(){return Rj||(Rj=1,(function(e,t){var n=kN(),r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===r,f=s&&n.process,h=(function(){try{var p=l&&l.require&&l.require("util").types;return p||f&&f.binding&&f.binding("util")}catch{}})();e.exports=h})(Ly,Ly.exports)),Ly.exports}var kx,Nj;function Px(){if(Nj)return kx;Nj=1;var e=jK(),t=Mx(),n=zx(),r=n&&n.isTypedArray,l=r?t(r):e;return kx=l,kx}var jx,Mj;function zj(){if(Mj)return jx;Mj=1;var e=zK(),t=fD(),n=el(),r=dD(),l=hD(),s=Px(),f=Object.prototype,h=f.hasOwnProperty;function p(y,b){var S=n(y),C=!S&&t(y),A=!S&&!C&&r(y),x=!S&&!C&&!A&&s(y),_=S||C||A||x,B=_?e(y.length,String):[],R=B.length;for(var O in y)(b||h.call(y,O))&&!(_&&(O=="length"||A&&(O=="offset"||O=="parent")||x&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||l(O,R)))&&B.push(O);return B}return jx=p,jx}var Fx,kj;function Lx(){if(kj)return Fx;kj=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,l=typeof r=="function"&&r.prototype||e;return n===l}return Fx=t,Fx}var qx,Pj;function FK(){if(Pj)return qx;Pj=1;var e=hP(),t=e(Object.keys,Object);return qx=t,qx}var Ux,jj;function LK(){if(jj)return Ux;jj=1;var e=Lx(),t=FK(),n=Object.prototype,r=n.hasOwnProperty;function l(s){if(!e(s))return t(s);var f=[];for(var h in Object(s))r.call(s,h)&&h!="constructor"&&f.push(h);return f}return Ux=l,Ux}var Hx,Fj;function ep(){if(Fj)return Hx;Fj=1;var e=zO(),t=_x();function n(r){return r!=null&&t(r.length)&&!e(r)}return Hx=n,Hx}var $x,Lj;function qy(){if(Lj)return $x;Lj=1;var e=zj(),t=LK(),n=ep();function r(l){return n(l)?e(l):t(l)}return $x=r,$x}var Vx,qj;function Uj(){if(qj)return Vx;qj=1;var e=gj(),t=Cx(),n=qy();function r(l){return e(l,n,t)}return Vx=r,Vx}var Gx,Hj;function qK(){if(Hj)return Gx;Hj=1;var e=Uj(),t=1,n=Object.prototype,r=n.hasOwnProperty;function l(s,f,h,p,y,b){var S=h&t,C=e(s),A=C.length,x=e(f),_=x.length;if(A!=_&&!S)return!1;for(var B=A;B--;){var R=C[B];if(!(S?R in f:r.call(f,R)))return!1}var O=b.get(s),j=b.get(f);if(O&&j)return O==f&&j==s;var P=!0;b.set(s,f),b.set(f,s);for(var L=S;++B<A;){R=C[B];var Y=s[R],G=f[R];if(p)var z=S?p(G,Y,R,f,s,b):p(Y,G,R,s,f,b);if(!(z===void 0?Y===G||y(Y,G,h,p,b):z)){P=!1;break}L||(L=R=="constructor")}if(P&&!L){var $=s.constructor,Q=f.constructor;$!=Q&&"constructor"in s&&"constructor"in f&&!(typeof $=="function"&&$ instanceof $&&typeof Q=="function"&&Q instanceof Q)&&(P=!1)}return b.delete(s),b.delete(f),P}return Gx=l,Gx}var Ix,$j;function UK(){if($j)return Ix;$j=1;var e=Nd(),t=Cu(),n=e(t,"DataView");return Ix=n,Ix}var Yx,Vj;function HK(){if(Vj)return Yx;Vj=1;var e=Nd(),t=Cu(),n=e(t,"Promise");return Yx=n,Yx}var Kx,Gj;function $K(){if(Gj)return Kx;Gj=1;var e=Nd(),t=Cu(),n=e(t,"Set");return Kx=n,Kx}var Xx,Ij;function VK(){if(Ij)return Xx;Ij=1;var e=Nd(),t=Cu(),n=e(t,"WeakMap");return Xx=n,Xx}var Zx,Yj;function vD(){if(Yj)return Zx;Yj=1;var e=UK(),t=HO(),n=HK(),r=$K(),l=VK(),s=jv(),f=kP(),h="[object Map]",p="[object Object]",y="[object Promise]",b="[object Set]",S="[object WeakMap]",C="[object DataView]",A=f(e),x=f(t),_=f(n),B=f(r),R=f(l),O=s;return(e&&O(new e(new ArrayBuffer(1)))!=C||t&&O(new t)!=h||n&&O(n.resolve())!=y||r&&O(new r)!=b||l&&O(new l)!=S)&&(O=function(j){var P=s(j),L=P==p?j.constructor:void 0,Y=L?f(L):"";if(Y)switch(Y){case A:return C;case x:return h;case _:return y;case B:return b;case R:return S}return P}),Zx=O,Zx}var Qx,Kj;function GK(){if(Kj)return Qx;Kj=1;var e=cD(),t=sj(),n=NK(),r=qK(),l=vD(),s=el(),f=dD(),h=Px(),p=1,y="[object Arguments]",b="[object Array]",S="[object Object]",C=Object.prototype,A=C.hasOwnProperty;function x(_,B,R,O,j,P){var L=s(_),Y=s(B),G=L?b:l(_),z=Y?b:l(B);G=G==y?S:G,z=z==y?S:z;var $=G==S,Q=z==S,I=G==z;if(I&&f(_)){if(!f(B))return!1;L=!0,$=!1}if(I&&!$)return P||(P=new e),L||h(_)?t(_,B,R,O,j,P):n(_,B,G,R,O,j,P);if(!(R&p)){var H=$&&A.call(_,"__wrapped__"),K=Q&&A.call(B,"__wrapped__");if(H||K){var W=H?_.value():_,ne=K?B.value():B;return P||(P=new e),j(W,ne,R,O,P)}}return I?(P||(P=new e),r(_,B,R,O,j,P)):!1}return Qx=x,Qx}var Wx,Xj;function Jx(){if(Xj)return Wx;Xj=1;var e=GK(),t=vs();function n(r,l,s,f,h){return r===l?!0:r==null||l==null||!t(r)&&!t(l)?r!==r&&l!==l:e(r,l,s,f,n,h)}return Wx=n,Wx}var eT,Zj;function IK(){if(Zj)return eT;Zj=1;var e=cD(),t=Jx(),n=1,r=2;function l(s,f,h,p){var y=h.length,b=y,S=!p;if(s==null)return!b;for(s=Object(s);y--;){var C=h[y];if(S&&C[2]?C[1]!==s[C[0]]:!(C[0]in s))return!1}for(;++y<b;){C=h[y];var A=C[0],x=s[A],_=C[1];if(S&&C[2]){if(x===void 0&&!(A in s))return!1}else{var B=new e;if(p)var R=p(x,_,A,s,f,B);if(!(R===void 0?t(_,x,n|r,p,B):R))return!1}}return!0}return eT=l,eT}var tT,Qj;function Wj(){if(Qj)return tT;Qj=1;var e=Ei();function t(n){return n===n&&!e(n)}return tT=t,tT}var nT,Jj;function YK(){if(Jj)return nT;Jj=1;var e=Wj(),t=qy();function n(r){for(var l=t(r),s=l.length;s--;){var f=l[s],h=r[f];l[s]=[f,h,e(h)]}return l}return nT=n,nT}var rT,e4;function t4(){if(e4)return rT;e4=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return rT=e,rT}var aT,n4;function KK(){if(n4)return aT;n4=1;var e=IK(),t=YK(),n=t4();function r(l){var s=t(l);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(f){return f===l||e(f,l,s)}}return aT=r,aT}var iT,r4;function lT(){if(r4)return iT;r4=1;var e=el(),t=gE(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function l(s,f){if(e(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||f!=null&&s in Object(f)}return iT=l,iT}var uT,a4;function XK(){if(a4)return uT;a4=1;var e=ax(),t="Expected a function";function n(r,l){if(typeof r!="function"||l!=null&&typeof l!="function")throw new TypeError(t);var s=function(){var f=arguments,h=l?l.apply(this,f):f[0],p=s.cache;if(p.has(h))return p.get(h);var y=r.apply(this,f);return s.cache=p.set(h,y)||p,y};return s.cache=new(n.Cache||e),s}return n.Cache=e,uT=n,uT}var oT,i4;function ZK(){if(i4)return oT;i4=1;var e=XK(),t=500;function n(r){var l=e(r,function(f){return s.size===t&&s.clear(),f}),s=l.cache;return l}return oT=n,oT}var sT,l4;function QK(){if(l4)return sT;l4=1;var e=ZK(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(l){var s=[];return l.charCodeAt(0)===46&&s.push(""),l.replace(t,function(f,h,p,y){s.push(p?y.replace(n,"$1"):h||f)}),s});return sT=r,sT}var cT,u4;function WK(){if(u4)return cT;u4=1;var e=Pv(),t=iD(),n=el(),r=gE(),l=e?e.prototype:void 0,s=l?l.toString:void 0;function f(h){if(typeof h=="string")return h;if(n(h))return t(h,f)+"";if(r(h))return s?s.call(h):"";var p=h+"";return p=="0"&&1/h==-1/0?"-0":p}return cT=f,cT}var fT,o4;function dT(){if(o4)return fT;o4=1;var e=WK();function t(n){return n==null?"":e(n)}return fT=t,fT}var hT,s4;function tp(){if(s4)return hT;s4=1;var e=el(),t=lT(),n=QK(),r=dT();function l(s,f){return e(s)?s:t(s,f)?[s]:n(r(s))}return hT=l,hT}var vT,c4;function np(){if(c4)return vT;c4=1;var e=gE();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return vT=t,vT}var pT,f4;function pD(){if(f4)return pT;f4=1;var e=tp(),t=np();function n(r,l){l=e(l,r);for(var s=0,f=l.length;r!=null&&s<f;)r=r[t(l[s++])];return s&&s==f?r:void 0}return pT=n,pT}var mT,d4;function JK(){if(d4)return mT;d4=1;var e=pD();function t(n,r,l){var s=n==null?void 0:e(n,r);return s===void 0?l:s}return mT=t,mT}var gT,h4;function eX(){if(h4)return gT;h4=1;function e(t,n){return t!=null&&n in Object(t)}return gT=e,gT}var yT,v4;function tX(){if(v4)return yT;v4=1;var e=tp(),t=fD(),n=el(),r=hD(),l=_x(),s=np();function f(h,p,y){p=e(p,h);for(var b=-1,S=p.length,C=!1;++b<S;){var A=s(p[b]);if(!(C=h!=null&&y(h,A)))break;h=h[A]}return C||++b!=S?C:(S=h==null?0:h.length,!!S&&l(S)&&r(A,S)&&(n(h)||t(h)))}return yT=f,yT}var bT,p4;function m4(){if(p4)return bT;p4=1;var e=eX(),t=tX();function n(r,l){return r!=null&&t(r,l,e)}return bT=n,bT}var ET,g4;function nX(){if(g4)return ET;g4=1;var e=Jx(),t=JK(),n=m4(),r=lT(),l=Wj(),s=t4(),f=np(),h=1,p=2;function y(b,S){return r(b)&&l(S)?s(f(b),S):function(C){var A=t(C,b);return A===void 0&&A===S?n(C,b):e(S,A,h|p)}}return ET=y,ET}var DT,y4;function ST(){if(y4)return DT;y4=1;function e(t){return t}return DT=e,DT}var CT,b4;function rX(){if(b4)return CT;b4=1;function e(t){return function(n){return n?.[t]}}return CT=e,CT}var wT,E4;function aX(){if(E4)return wT;E4=1;var e=pD();function t(n){return function(r){return e(r,n)}}return wT=t,wT}var AT,D4;function iX(){if(D4)return AT;D4=1;var e=rX(),t=aX(),n=lT(),r=np();function l(s){return n(s)?e(r(s)):t(s)}return AT=l,AT}var OT,S4;function xT(){if(S4)return OT;S4=1;var e=KK(),t=nX(),n=ST(),r=el(),l=iX();function s(f){return typeof f=="function"?f:f==null?n:typeof f=="object"?r(f)?t(f[0],f[1]):e(f):l(f)}return OT=s,OT}var TT,C4;function lX(){if(C4)return TT;C4=1;function e(t){return function(n,r,l){for(var s=-1,f=Object(n),h=l(n),p=h.length;p--;){var y=h[t?p:++s];if(r(f[y],y,f)===!1)break}return n}}return TT=e,TT}var BT,w4;function A4(){if(w4)return BT;w4=1;var e=lX(),t=e();return BT=t,BT}var _T,O4;function uX(){if(O4)return _T;O4=1;var e=A4(),t=qy();function n(r,l){return r&&e(r,l,t)}return _T=n,_T}var RT,x4;function oX(){if(x4)return RT;x4=1;var e=ep();function t(n,r){return function(l,s){if(l==null)return l;if(!e(l))return n(l,s);for(var f=l.length,h=r?f:-1,p=Object(l);(r?h--:++h<f)&&s(p[h],h,p)!==!1;);return l}}return RT=t,RT}var NT,T4;function sX(){if(T4)return NT;T4=1;var e=uX(),t=oX(),n=t(e);return NT=n,NT}var MT,B4;function cX(){if(B4)return MT;B4=1;var e=sX(),t=ep();function n(r,l){var s=-1,f=t(r)?Array(r.length):[];return e(r,function(h,p,y){f[++s]=l(h,p,y)}),f}return MT=n,MT}var zT,_4;function fX(){if(_4)return zT;_4=1;var e=iD(),t=xT(),n=cX(),r=el();function l(s,f){var h=r(s)?e:n;return h(s,t(f,3))}return zT=l,zT}var dX=fX();const hX=fa(dX);/*!
323
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
324
+ *
325
+ * Copyright (c) 2014-2017, Jon Schlinkert.
326
+ * Released under the MIT License.
327
+ */function R4(e){return Object.prototype.toString.call(e)==="[object Object]"}function vX(e){var t,n;return R4(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(R4(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var ct={...rt},ot={...ae,child:(e,t)=>e.concat([t]),firstChild:e=>ot.child(e,0),lastIndex:e=>e.at(-1)??-1,next:e=>{try{return ae.next(e)}catch{return e}},parent:e=>{try{return ae.parent(e)}catch{return e}},previous:e=>{if(e.length===0)return;const t=e.at(-1);if(!(t<=0))return e.slice(0,-1).concat(t-1)}},pX={*children(e,t,n={}){const{from:r,reverse:l=!1,to:s}=n,f=at.ancestor(e,t);if(!f)return;const{children:h}=f;let p=l?h.length-1:0;const y=s??(l?0:h.length);for(r!==void 0&&(p=r);l?p>=y:p<y;){const b=at.child(f,p),S=t.concat(p);yield[b,S],p=l?p-1:p+1}},firstChild(e,t){return at.children(e,t).next().value},firstText(e,t){return at.texts(e,t).next().value},isEditor:e=>CM(e),isLastChild(e,t){if(t.length===0)return!1;const n=at.parent(e,t);return n?t.at(-1)===n.children.length-1:!1},lastChild(e,t){return at.children(e,t,{reverse:!0}).next().value}},Cn=Ze,at={...$e,isAncestor:ct.isAncestor,ancestor:(...e)=>{try{return $e.ancestor(...e)}catch{}},common:(...e)=>{try{return $e.common(...e)}catch{}},descendant:(...e)=>{try{return $e.descendant(...e)}catch{}},first:(...e)=>{try{return $e.first(...e)}catch{}},fragment:(...e)=>{try{return $e.fragment(...e)}catch{return[]}},get:(...e)=>{try{return $e.get(...e)}catch{}},hasSingleChild:e=>Cn.isText(e)?!0:e.children.length===1&&at.hasSingleChild(e.children[0]),isDescendant:e=>ct.isElement(e)||Cn.isText(e),last:(...e)=>{try{return $e.last(...e)}catch{}},leaf:(...e)=>{try{return $e.leaf(...e)}catch{}},parent:(...e)=>{try{return $e.parent(...e)}catch{}},...pX},N4={...KH,isAt:e=>N4.isLocation(e)||at.isNode(e)},M4=wM,Cs=Uv,on={...Se,contains:(e,t)=>{const[n,r]=on.edges(t);return on.includes(e,n)&&on.includes(e,r)},isCollapsed:e=>!!e&&Se.isCollapsed(e),isExpanded:e=>!!e&&Se.isExpanded(e)},Kc={...Ht,get:(e,{focus:t}={})=>{let n;return on.isRange(e)&&(n=t?e.focus:e.anchor),Kc.isPoint(e)&&(n=e),ot.isPath(e)&&(n={offset:0,path:e}),n}},mX=e=>Je.blur(e),z4=e=>Je.deselect(e),gX=e=>{try{return Je.findDocumentOrShadowRoot(e)}catch{}},yX=(e,t)=>{try{return Je.findEventRange(e,t)}catch{}},bX=(e,t)=>{try{return Je.findKey(e,t)}catch{}},EX=(e,t,n)=>{const r=()=>e.api.node({...n,at:[],match:s=>s===t})?.[1];if(n)return r();try{return Je.findPath(e,t)}catch{return r()}},DX=(e,{at:t,edge:n,retries:r=5}={})=>{const l=s=>{e.tf.withoutNormalizing(()=>{e.tf.deselect(),e.tf.select(s)})};if(n){const s=n==="startEditor"||n==="endEditor"?[]:t??e.selection;s&&l(n==="start"?e.api.start(s):e.api.end(s))}else t&&l(t);try{Je.focus(e,{retries:r})}catch(s){console.error(s)}},SX=e=>{try{return Je.getWindow(e)}catch{}},CX=(e,t,n)=>{try{return Je.hasDOMNode(e,t,n)}catch{}return!1},wX=(e,t)=>{try{return Je.hasEditableTarget(e,t)}catch{}return!1},AX=(e,t)=>{try{return Je.hasRange(e,t)}catch{}return!1},OX=(e,t)=>{try{return Je.hasSelectableTarget(e,t)}catch{}return!1},xX=(e,t)=>{try{return Je.hasTarget(e,t)}catch{}return!1},TX=e=>Je.isComposing(e),BX=e=>Je.isFocused(e),_X=e=>Je.isReadOnly(e),RX=(e,t)=>{try{return Je.isTargetInsideNonReadonlyVoid(e,t)}catch{}return!1},NX=(e,t)=>{try{return Je.toDOMNode(e,t)}catch{}},MX=(e,t)=>{try{return Je.toDOMPoint(e,t)}catch{}},zX=(e,t)=>{try{return Je.toDOMRange(e,t)}catch{}},kX=(e,t)=>{try{return Je.toSlateNode(e,t)}catch{}},PX=(e,t,n)=>{try{return Je.toSlatePoint(e,t,n)}catch{}},jX=(e,t,n)=>{try{return Je.toSlateRange(e,t,n)}catch{}},FX=(e,{at:t,...n}={})=>{const r=t??e.selection;if(!r)return null;const[l,s]=e.api.edges(r??e.selection),f=e.api.block({at:l,...n});if(!f)return null;const h=e.api.block({at:s,...n});return h?[f,h]:null},LX=(e,{above:t,highest:n,...r}={})=>{if(n){const l=r.at??e.selection;if(!l)return;const s=e.api.path(l)?.[0];return s===void 0?void 0:e.api.node([s])}return t?e.api.above({...r,block:!0}):e.api.node({...r,block:!0,mode:"lowest"})},qX=(e,t)=>[...e.api.nodes({...t,block:!0})],k4=new Set(["addMark","apply","blur","collapse","delete","deleteBackward","deleteForward","deleteFragment","deselect","deselectDOM","focus","insertBreak","insertData","insertFragment","insertFragmentData","insertNode","insertNodes","insertSoftBreak","insertText","insertTextData","liftNodes","mergeNodes","move","moveNodes","normalize","normalizeNode","redo","removeMark","removeNodes","select","setFragmentData","setNodes","setPoint","setSelection","setSplittingOnce","splitNodes","undo","unsetNodes","unwrapNodes","withMerging","withNewBatch","withoutMerging","withoutNormalizing","withoutSaving","wrapNodes","writeHistory"]),P4=new Set(["above","after","before","edges","elementReadOnly","end","findDocumentOrShadowRoot","findEventRange","findKey","findPath","first","fragment","getDirtyPaths","getFragment","getMarks","getWindow","hasBlocks","hasDOMNode","hasEditableTarget","hasInlines","hasPath","hasRange","hasSelectableTarget","hasTarget","hasTexts","highestBlock","isBlock","isComposing","isEdge","isElementReadOnly","isEmpty","isEnd","isFocused","isInline","isMerging","isNormalizing","isReadOnly","isSaving","isSelectable","isSplittingOnce","isStart","isTargetInsideNonReadonlyVoid","isVoid","last","leaf","levels","markableVoid","next","node","nodes","normalize","onChange","operations","parent","path","pathRef","pathRefs","point","pointRef","pointRefs","positions","previous","range","rangeRef","rangeRefs","selection","setNormalizing","shouldMergeNodes","shouldNormalize","start","string","toDOMNode","toDOMPoint","toDOMRange","toSlateNode","toSlatePoint","toSlateRange","unhangRange","void"]),j4=(e,t)=>{if(!t)return;const n=e,r=Object.entries(t).reduce((l,[s,f])=>(k4.has(s)&&(l[s]=f),l),{});Object.assign(n,r)},F4=(e,t)=>{if(!t)return;const n=e,r=Object.entries(t).reduce((l,[s,f])=>(P4.has(s)&&(l[s]=f),l),{});Object.assign(n,r),t.marks&&(n.getMarks=t.marks)},L4=e=>{const t=e;P4.forEach(n=>{t[n]&&(n==="getMarks"?t.api.marks=t.getMarks:t.api[n]=t[n])}),k4.forEach(n=>{t[n]&&(t.tf[n]=t[n])})},UX=(e,t,n)=>S3(e,t,n),HX=(e,t,n)=>A3(e,t,n),It=(e,t)=>t&&ZY(t)&&at.isNode(t)?e.api.findPath(t):t??void 0,$X=(e,t,n={})=>{try{if(n.previous){const r=e.api.previous({at:It(e,t)});return r?iA(e,r[1]):void 0}return iA(e,It(e,t))}catch{}},VX=(e,t,n)=>{try{return m3(e,It(e,t),n)}catch{}},GX=(e,t,n)=>{try{return $M(e,It(e,t),n)}catch{}},IX=(e,t,n)=>{if(!n||!n.match&&!n.matchString){try{return aA(e,It(e,t),n)}catch{}return}const r=!n.unit||n.unit==="offset",l=n.matchString?tl(n.matchString):[""],s=n.matchByRegex??!1;let f;return l.some(h=>{let p=t,y=e.api.point(t,{edge:"end"});const b=h.length+1,S=Array.from({length:b});let C=0;for(;;){const A=aA(e,It(e,p),n);if(!A){n.matchBlockStart&&(f=y);return}if(e.api.isAt({at:{anchor:A,focus:y},blocks:!0})){n.matchBlockStart&&(f=y);return}const x=e.api.string({anchor:A,focus:y});let _=x;if(r&&b&&(S.unshift({point:A,text:x}),S.pop(),_=hX(S.slice(0,-1),"text").join("")),(s?!!h.match(_):_===h)||n.match?.({at:t,beforePoint:A,beforeString:_}))return n.afterMatch?b&&r?(f=S.at(-1)?.point,!!f):(f=y,!0):(f=A,!0);if(y=A,p=A,C+=1,!n.skipInvalid&&(!h||C>=h.length))return}}),f},YX=(e,t,n={})=>{try{if(n.next){const r=e.api.next({at:It(e,t)});return r?lA(e,r[1]):void 0}return lA(e,It(e,t))}catch{}},KX=(e,t)=>r3(e,{...t,at:It(e,t?.at)}),XX=(e,t)=>ct.isElement(t)&&c3(e,t);function ZX(e){return Array.isArray(e)?e:[e]}var q4=(e,t,n)=>n?typeof n=="object"?Object.entries(n).every(([r,l])=>ZX(l).includes(e[r])):n(e,t):!0,Uy=(e,{id:t,block:n,empty:r,match:l,text:s}={})=>{let f=!1,h=()=>!0;return s!==void 0&&(f=!0,h=Xc(h,p=>Cn.isText(p)===s)),r!==void 0&&(f=!0,h=Xc(h,p=>Cn.isText(p)?p.text.length>0==!r:e.api.isEmpty(p)===r)),n!==void 0&&(f=!0,h=Xc(h,p=>e.api.isBlock(p)===n)),t!==void 0&&(f=!0,h=Xc(h,p=>t===!0&&!!p.id||p.id===t)),typeof l=="object"?(f=!0,h=Xc(h,(p,y)=>q4(p,y,l))):typeof l=="function"&&(f=!0,h=Xc(h,l)),f?h:void 0},xa=(e,{id:t,empty:n,match:r,text:l,...s}={})=>{const{at:f,block:h}=s;return{...s,at:It(e,f),match:Uy(e,{id:t,block:h,empty:n,match:r,text:l})}},Xc=(e,t)=>(n,r)=>e(n,r)&&(!t||t(n,r)),U4=(e,t,n)=>(r,l)=>{const s=Uy(e,n);return(!t||t(r,l))&&(!s||s(r,l))};function*QX(e,t={}){t=xa(e,t);const{ignoreNonSelectable:n=!1,mode:r="all",reverse:l=!1,universal:s=!1,voids:f=!1}=t,h=It(e,t.at)??e.selection;let p=Uy(e,t);if(p||(p=()=>!0),!h)return;let y,b;if(M4.isSpan(h))y=h[0],b=h[1];else{const x=e.api.path(h,{edge:"start"}),_=e.api.path(h,{edge:"end"});if(y=l?_:x,b=l?x:_,!x||!_)return}const S=at.nodes(e,{from:y,reverse:l,to:b,pass:([x])=>ct.isElement(x)?!!(!f&&(e.api.isVoid(x)||e.api.isElementReadOnly(x))||n&&!e.api.isSelectable(x)):!1}),C=[];let A;for(const[x,_]of S){if(n&&ct.isElement(x)&&!e.api.isSelectable(x))continue;const B=A&&ot.compare(_,A[1])===0;if(r==="highest"&&B)continue;if(!p(x,_)){if(s&&!B&&Cn.isText(x))return;continue}if(r==="lowest"&&B){A=[x,_];continue}const R=r==="lowest"?A:[x,_];R&&(s?C.push(R):yield R),A=[x,_]}r==="lowest"&&A&&(s?C.push(A):yield A),s&&(yield*C)}var WX=(e,t)=>{let n=!1;return j3(e,()=>{n=!!t()}),n},JX=(e,t,n={})=>{const{edge:r,focus:l,next:s,previous:f}=n;if(l&&e.tf.focus(),s||f){const p=It(e,t)??e.selection;if(!p)return;const y=e.api.path(p);if(!y)return;const b=f?e.api.end(y,{previous:!0}):e.api.start(y,{next:!0});if(!b)return;RE(e,b);return}if(r){const p=It(e,t)??e.selection;if(!p)return;const y=ot.isPath(p)?p:e.api.node({at:p,block:!0})?.[1];if(!y)return;const b=r==="end"?e.api.end(y):e.api.start(y);if(!b)return;RE(e,b);return}const h=It(e,t);h&&RE(e,h)};function kT(e){return Array.isArray(e)?e:[e]}var Zc=(e,{allow:t,exclude:n,filter:r,level:l,maxLevel:s}={})=>{if(!e)return!1;const[f,h]=e;if(l&&!kT(l).includes(h.length)||s&&h.length>s||r&&!r(e))return!1;if(t){const p=kT(t);if(p.length>0&&!p.includes(f.type))return!1}if(n){const p=kT(n);if(p.length>0&&p.includes(f.type))return!1}return!0},eZ=(e,t)=>{try{const{at:n=e.selection,match:r,reverse:l=!1,voids:s=!1}=t;if(!n)return;let f,h;if(M4.isSpan(n))[f,h]=n;else if(on.isRange(n)){const b=e.api.path(n,{edge:"start"}),S=e.api.path(n,{edge:"end"});f=l?S:b,h=l?b:S}let p=[e,[]];ot.isPath(n)&&(p=e.api.node(n));const y=at.descendants(p[0],{from:f,reverse:l,to:h,pass:([b])=>s?!1:e.api.isVoid(b)});for(const[b,S]of y)if(q4(b,S,r))return[b,n.concat(S)]}catch{return}},tZ=(e,t)=>e.api.marks()?.[t],nZ=(e,t)=>!!e.api.mark(t),rZ=(e,t,n={})=>{const{contains:r=!1}=n;if(!e.selection)return!1;const l=on.isRange(t)?t:e.api.range(t);return l?r?on.contains(e.selection,l):!!on.intersection(e.selection,l):!1},aZ=(e,{at:t=e.selection,block:n,blocks:r,end:l,start:s,text:f,word:h,...p}={})=>{if(!t)return!1;if(Kc.isPoint(t)){if(h&&l){const y=e.api.after(t);if(!y)return!0;const b=e.api.range(t,y),S=e.api.string(b);return/^(?:\s|$)/.test(S)}return!1}if(on.isRange(t)){const[y,b]=on.edges(t);if(f)return ot.equals(y.path,b.path);const S=e.api.block({at:y,...p}),C=e.api.block({at:b,...p});if(r)return!S&&!C?!1:!S||!C?!0:!ot.equals(S[1],C[1]);if(!S||!C)return!1;if(n)return ot.equals(S[1],C[1]);if(s)return e.api.isStart(y,S[1])||on.isExpanded(t)&&e.api.isStart(b,S[1]);if(l)return e.api.isEnd(b,C[1])}return!1},iZ=e=>{if(e.selection){const t=e.selection.focus,n=e.api.end([]);return n.offset===0&&e.api.isEnd(t,t)&&ot.equals(ot.next(ot.parent(t.path)),n.path)}return!1},lZ=(e,t)=>{const n=e.api.node(t)?.[0];return Cn.isText(n)},uZ=(e,t)=>{if(t.length===0)return;const n=t[0][1],r=t.at(-1)[1];return e.api.range(n,r)};function oZ({key:e,defaultValue:t,getProp:n,mode:r="block",nodes:l}){if(l.length===0)return t;const s=n??(h=>h[e]);let f;for(const h of l){if(r==="block"||r==="all"){const p=s(h);if(p!==void 0){if(f===void 0)f=p;else if(f!==p)return;if(r==="block")continue}else if(r==="block")return t}if(r==="text"||r==="all"){const p=Array.from(at.texts(h));for(const[y]of p){const b=s(y);if(b!==void 0){if(f===void 0)f=b;else if(f!==b)return}else if(r==="text")return t}}}return f}var H4=e=>typeof e=="object"&&e!=null&&e.nodeType===1,$4=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",mD=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return $4(n.overflowY,t)||$4(n.overflowX,t)||(r=>{const l=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!l&&(l.clientHeight<r.scrollHeight||l.clientWidth<r.scrollWidth)})(e)}return!1},gD=(e,t,n,r,l,s,f,h)=>s<e&&f>t||s>e&&f<t?0:s<=e&&h<=n||f>=t&&h>=n?s-e-r:f>t&&h<n||s<e&&h>n?f-t+l:0,sZ=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},V4=(e,t)=>{var n,r,l,s;if(typeof document>"u")return[];const{scrollMode:f,block:h,inline:p,boundary:y,skipOverflowHiddenElements:b}=t,S=typeof y=="function"?y:U=>U!==y;if(!H4(e))throw new TypeError("Invalid target");const C=document.scrollingElement||document.documentElement,A=[];let x=e;for(;H4(x)&&S(x);){if(x=sZ(x),x===C){A.push(x);break}x!=null&&x===document.body&&mD(x)&&!mD(document.documentElement)||x!=null&&mD(x,b)&&A.push(x)}const _=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,B=(s=(l=window.visualViewport)==null?void 0:l.height)!=null?s:innerHeight,{scrollX:R,scrollY:O}=window,{height:j,width:P,top:L,right:Y,bottom:G,left:z}=e.getBoundingClientRect(),{top:$,right:Q,bottom:I,left:H}=(U=>{const Z=window.getComputedStyle(U);return{top:parseFloat(Z.scrollMarginTop)||0,right:parseFloat(Z.scrollMarginRight)||0,bottom:parseFloat(Z.scrollMarginBottom)||0,left:parseFloat(Z.scrollMarginLeft)||0}})(e);let K=h==="start"||h==="nearest"?L-$:h==="end"?G+I:L+j/2-$+I,W=p==="center"?z+P/2-H+Q:p==="end"?Y+Q:z-H;const ne=[];for(let U=0;U<A.length;U++){const Z=A[U],{height:J,width:he,top:ie,right:xe,bottom:Re,left:me}=Z.getBoundingClientRect();if(f==="if-needed"&&L>=0&&z>=0&&G<=B&&Y<=_&&(Z===C&&!mD(Z)||L>=ie&&G<=Re&&z>=me&&Y<=xe))return ne;const ke=getComputedStyle(Z),Xe=parseInt(ke.borderLeftWidth,10),Ye=parseInt(ke.borderTopWidth,10),Qe=parseInt(ke.borderRightWidth,10),ft=parseInt(ke.borderBottomWidth,10);let ce=0,le=0;const ue="offsetWidth"in Z?Z.offsetWidth-Z.clientWidth-Xe-Qe:0,fe="offsetHeight"in Z?Z.offsetHeight-Z.clientHeight-Ye-ft:0,Ue="offsetWidth"in Z?Z.offsetWidth===0?0:he/Z.offsetWidth:0,He="offsetHeight"in Z?Z.offsetHeight===0?0:J/Z.offsetHeight:0;if(C===Z)ce=h==="start"?K:h==="end"?K-B:h==="nearest"?gD(O,O+B,B,Ye,ft,O+K,O+K+j,j):K-B/2,le=p==="start"?W:p==="center"?W-_/2:p==="end"?W-_:gD(R,R+_,_,Xe,Qe,R+W,R+W+P,P),ce=Math.max(0,ce+O),le=Math.max(0,le+R);else{ce=h==="start"?K-ie-Ye:h==="end"?K-Re+ft+fe:h==="nearest"?gD(ie,Re,J,Ye,ft+fe,K,K+j,j):K-(ie+J/2)+fe/2,le=p==="start"?W-me-Xe:p==="center"?W-(me+he/2)+ue/2:p==="end"?W-xe+Qe+ue:gD(me,xe,he,Xe,Qe+ue,W,W+P,P);const{scrollLeft:ut,scrollTop:yt}=Z;ce=He===0?0:Math.max(0,Math.min(yt+ce/He,Z.scrollHeight-J/He+fe)),le=Ue===0?0:Math.max(0,Math.min(ut+le/Ue,Z.scrollWidth-he/Ue+ue)),K+=yt-ce,W+=ut-le}ne.push({el:Z,top:ce,left:le})}return ne},cZ=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function fZ(e,t){if(!e.isConnected||!(l=>{let s=l;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;const n=(l=>{const s=window.getComputedStyle(l);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((l=>typeof l=="object"&&typeof l.behavior=="function")(t))return t.behavior(V4(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:l,top:s,left:f}of V4(e,cZ(t))){const h=s-n.top+n.bottom,p=f-n.left+n.right;l.scroll({top:h,left:p,behavior:r})}}var dZ={scrollMode:"if-needed"};function hZ(e,t,n=dZ){requestAnimationFrame(()=>{let r;if(Kc.isPoint(t)){const{offset:s=0,path:f}=t;r=e.api.toDOMRange({anchor:{offset:s,path:f},focus:{offset:s,path:f}})}else r=t;if(!r)return;const l=r.startContainer.parentElement;l.getBoundingClientRect=r.getBoundingClientRect.bind(r),fZ(l,n),setTimeout(()=>delete l.getBoundingClientRect,0)})}var vZ=(e,t)=>!!e.api.node(t),pZ=(e,t)=>{try{return jM(e,xa(e,t))}catch{return}},mZ=(e,t,n)=>qM(e,t,n),gZ=(e,t,n)=>B3(e,t,n),yZ=(e,t="character")=>{IM(e,t)},bZ=(e,t="character")=>{YM(e,t)},EZ=(e,t)=>KM(e,t),DZ=(e,t,n)=>{try{if(N4.isAt(t)){const s=It(e,t);return b3(e,s,n)}const r=t;return e.api.nodes(r).next().value}catch{return}},SZ=(e,t,n)=>{try{return w3(e,It(e,t),n)}catch{}},CZ=(e,t)=>{try{return XM(e,It(e,t))}catch{}},wZ=(e,t=e.selection,n)=>{if(!t)return"";try{return k3(e,It(e,t),n)}catch{return""}},AZ=(e,t)=>{try{return JM(e,It(e,t))}catch{}},OZ=(e,t)=>{const n=(r,l=[])=>(r.forEach(s=>{if(t?.includes(s.type))return n(s.children,l);l.push(s)}),l);return n(e)},G4=(e,t,n)=>{if(t===null)return[];try{const r=t===void 0?zM(e):e3(e,It(e,t));return r.length>0&&n?.unwrap&&n.unwrap.length>0?OZ(r,n.unwrap):r}catch{return[]}},xZ=(e,t)=>g3(e,xa(e,t)),TZ=e=>y3(e),BZ=e=>C3(e),_Z=(e,t,n)=>{try{return x3(e,It(e,t),n)}catch{}},RZ=e=>O3(e),NZ=(e,t)=>T3(e,{...t,at:It(e,t?.at)}),MZ=e=>_3(e),zZ=(e,t)=>a3(e,t),kZ=(e,t)=>i3(e,t),PZ=(e,t)=>u3(e,t),jZ=e=>o3(e),FZ=(e,t,n)=>e.tf.insertNodes(t,n),LZ=(e,t,n)=>f3(e,t,n),qZ=e=>h3(e),UZ=(e,t)=>WM(e,t),HZ=(e,t=[],n)=>{if(t===null)return!0;if(ot.isPath(t)&&t.length===0||at.isEditor(t))return e.children.length===1&&yy(e,e.children[0]);if(n?.after){const r=e.api.block({above:!0,at:t});if(!r)return!1;const l=e.api.point(t),s=e.api.parent(t);if(!s)return!1;const[,f]=s;if(!e.api.isEnd(l,f))return!1;const h=Array.from(at.children(e,r[1],{from:ot.lastIndex(l.path)+1})).map(([p])=>p);if(h.length>0){for(const p of h)if(Cn.isText(p)&&p.text)return!1}else return e.api.isEnd(l,r[1]);return!0}if(ot.isPath(t))return yy(e,e.api.node(t)?.[0]);if(n?.block){const r=e.api.block({at:t});if(!r)return!1;t=r[0]}if(!at.isNode(t)){const r=e.api.nodes({at:t,...n});for(const l of r)if(!yy(e,l[0]))return!1;return!0}return yy(e,t)},$Z=(e,t,n)=>!!t&&d3(e,t,n),VZ=(e,t,n)=>!!t&&v3(e,t,n),GZ=(e,[t,n],r)=>{const l=n.slice(0,r+1),s=e.api.node(l);return s||[t,n]},IZ=(e,t,n={})=>{try{const{level:r}=n,l=p3(e,It(e,t));return l&&typeof r=="number"?e.children.length===0?void 0:GZ(e,l,r):l}catch{}},YZ=(e,t={})=>{const{from:n="after",mode:r=n==="child"?"all":"lowest",voids:l=!1}=t;let s=Uy(e,t);const f=It(e,t.at)??e.selection;if(!f)return;let h;if(n==="child"&&ot.isPath(f)){const S=ot.firstChild(f);e.api.node(S)&&(h=S,s=Xc((A,x)=>!ot.isAncestor(x,f)&&!ot.equals(x,f),s))}if(!h){const S=e.api.after(f,{voids:l});if(!S)return;h=S.path}const[,p]=e.api.last([]),y=[h,p];if(ot.isPath(f)&&f.length===0)return;if(s==null)if(ot.isPath(f)){const[S]=e.api.parent(f);s=C=>S.children.includes(C)}else s=()=>!0;const[b]=e.api.nodes({at:y,match:s,mode:r,voids:l});return b},KZ=(e,t)=>E3(e,t),XZ=(e,t,n)=>{const r=e.meta.isNormalizing;e.meta.isNormalizing=!0,kM(e,t,n),e.meta.isNormalizing=r},ZZ=(e,t,n)=>{try{return D3(e,It(e,t),n)}catch{}},QZ=(e,t)=>{const{from:n="after",mode:r="lowest",voids:l=!1}=t;let s=Uy(e,t);const f=It(e,t.at)??e.selection;if(!f)return;let h;if(n==="parent"&&ot.isPath(f)&&f.length>1&&(h=f,s=Xc((S,C)=>!ot.isAfter(C,f)&&!ot.equals(C,f),s)),!h){const S=e.api.before(f,{voids:l});if(!S)return;h=S.path}const[,p]=e.api.first([]),y=[h,p];if(ot.isPath(f)&&f.length===0)return;if(s==null)if(ot.isPath(f)){const[S]=e.api.parent(f);s=C=>S.children.includes(C)}else s=()=>!0;const[b]=e.api.nodes({at:y,match:s,mode:r,reverse:!0,voids:l});return b},WZ=(e,t)=>{const n=l=>{try{return QZ(e,l)}catch{}};if(t?.sibling){const l=xa(e,t).at;if(!l)return;const s=ot.previous(l);return s?e.api.node(s):void 0}if(!(t?.id&&t?.block))return n(t);const r=e.api.node({id:t.id,at:[]});if(r)return n({at:r[1],block:!0})},JZ=(e,t,n,r)=>{let l=It(e,t);if(on.isRange(l)&&!n)return l;if(l==="start"){const s=e.api.block({at:n})?.[1];if(!s)return;const f=e.api.start(s);if(!f)return;const h=Kc.get(n);return h?{anchor:f,focus:h}:void 0}return n&&l==="before"&&(l=e.api.before(n,r?.before)??It(e,n)),R3(e,l,It(e,n))},eQ=(e,t)=>M3(e,t),tQ=(e,t,n)=>{const[r,l]=t;return ct.isElement(r)&&e.api.isEmpty(r)||Cn.isText(r)&&r.text===""&&l.at(-1)!==0?(e.tf.removeNodes({at:l}),!1):!0},nQ=(e,t,n={})=>{const{character:r,unhang:l=!0,voids:s}=n;if(!on.isRange(t))return t;if(r){let[f,h]=on.edges(t);if(!ot.equals(f.path,h.path))if(h.offset===0){const p=e.api.after(f);p&&(h=p)}else{const p=e.api.before(h);p&&(f=p)}return{anchor:f,focus:h}}return l?P3(e,t,{voids:s}):t},rQ=(e,t,{remove:n}={})=>{e.selection&&e.tf.withoutNormalizing(()=>{e.tf.removeMarks([...tl(n),...Object.keys(t)]),Object.entries(t).forEach(([r,l])=>{e.tf.addMark(r,l)})})},aQ=(e,{block:t,nodes:n,...r}={})=>{const l=It(e,r.at)??e.selection;if(!n)return;const s=n??(l?t?e.api.blocks({at:l}):[]:[]);if(s.length===0)return;const f=s.at(-1),h=ot.next(f[1]),p=s.map(([y])=>y);e.tf.insertNodes(p,{at:h,...r})},iQ=(e,t,{at:n,shouldChange:r=!0,...l}={})=>{const s=n??e.selection;if(!s)return;const f=(y,b)=>{if(!Cn.isText(y))return!1;const[S]=e.api.parent(b);return!e.api.isVoid(S)||e.api.markableVoid(S)},h=on.isExpanded(s);let p=!1;if(!h){const[y,b]=e.api.node(s);if(y&&f(y,b)){const[S]=e.api.parent(b);p=S&&e.api.markableVoid(S)}}if(t&&(h||p)){const y=tl(t);e.tf.unsetNodes(y,{at:s,match:f,split:!0,voids:!0,...l})}else if(!n){const y={...e.api.marks()};t?(tl(t).forEach(b=>{delete y[b]}),e.marks=y):e.marks={},r&&e.api.onChange()}},lQ=(e,t,{at:n,children:r,removeNodes:l,...s})=>{e.tf.withoutNormalizing(()=>{if(r){if(!n)return;n=It(e,n);const f=e.api.path(n);if(!f)return;e.tf.removeNodes({...l,at:f,children:!0}),e.tf.insertNodes(t,{...s,at:f.concat([0])})}else e.tf.removeNodes({...l,at:n}),e.tf.insertNodes(t,{...s,at:n})})},uQ=(e,t={})=>{e.tf.replaceNodes(e.api.create.value(),{at:[],children:!0,...t}),t.children||(e.operations=[],e.marks=null,e.history?.undos&&(e.history.undos=[],e.history.redos=[]))},oQ=(e,t,{defaultType:n,someOptions:r,wrap:l,...s}={})=>{const f=s.at??e.selection;if(!f)return;const h=e.api.some({at:f,...r,match:{type:t}});if(l){h?e.tf.unwrapNodes({at:f,match:{type:t}}):e.tf.wrapNodes({children:[],type:t},{at:f});return}const p=n??e.api.create.block().type??"p";h&&t===p||e.tf.setNodes({type:h?p:t},{at:f,...s})},sQ=(e,t,{remove:n}={})=>{e.selection&&e.tf.withoutNormalizing(()=>{if(e.api.hasMark(t)){e.tf.removeMark(t);return}e.tf.removeMarks([...tl(n),t]),e.tf.addMark(t,!0)})},cQ=(e,t)=>{L3(e,t)},fQ=(e,t={})=>{let n=It(e,t?.at)??e.selection;e.tf.withoutNormalizing(()=>{const{distance:r=1,reverse:l=!1,unit:s="character",voids:f=!1}=t;let{hanging:h=!1}=t;if(!n)return;let p=!1;if(on.isRange(n)&&on.isCollapsed(n)&&(p=!0,n=n.anchor),Kc.isPoint(n)){const Q=e.api.void({at:n,mode:"highest"});if(!f&&Q){const[,I]=Q;n=I}else{const I={distance:r,unit:s},H=l?e.api.before(n,I)||e.api.start([]):e.api.after(n,I)||e.api.end([]);n={anchor:n,focus:H},h=!0}}if(ot.isPath(n)){e.tf.removeNodes({at:n,voids:f});return}if(on.isCollapsed(n))return;if(!h){const[,Q]=on.edges(n),I=e.api.end([]);Kc.equals(Q,I)||(n=e.api.unhangRange(n,{voids:f}))}let[y,b]=on.edges(n);const S=e.api.above({at:y,voids:f,match:Q=>ct.isElement(Q)&&e.api.isBlock(Q)}),C=e.api.above({at:b,voids:f,match:Q=>ct.isElement(Q)&&e.api.isBlock(Q)}),A=S&&C&&!ot.equals(S[1],C[1]),x=ot.equals(y.path,b.path),_=f?null:e.api.void({at:y,mode:"highest"})??e.api.elementReadOnly({at:y,mode:"highest"}),B=f?null:e.api.void({at:b,mode:"highest"})??e.api.elementReadOnly({at:b,mode:"highest"});if(_){const Q=e.api.before(y);Q&&S&&ot.isAncestor(S[1],Q.path)&&(y=Q)}if(B){const Q=e.api.after(b);Q&&C&&ot.isAncestor(C[1],Q.path)&&(b=Q)}const R=[];let O;for(const Q of e.api.nodes({at:n,voids:f})){const[I,H]=Q;O&&ot.compare(H,O)===0||(!f&&ct.isElement(I)&&e.api.isElementReadOnly(I)||!ot.isCommon(H,y.path)&&!ot.isCommon(H,b.path))&&(R.push(Q),O=H)}const j=Array.from(R,([,Q])=>e.api.pathRef(Q)),P=e.api.pointRef(y),L=e.api.pointRef(b);let Y="";if(!x&&!_){const Q=P.current,[I]=e.api.leaf(Q),{path:H}=Q,{offset:K}=y,W=I.text.slice(K);W.length>0&&(e.tf.apply({offset:K,path:H,text:W,type:"remove_text"}),Y=W)}if(j.reverse().map(Q=>Q.unref()).filter(Q=>Q!==null).forEach(Q=>e.tf.removeNodes({at:Q,voids:f})),!B){const Q=L.current,[I]=e.api.leaf(Q),{path:H}=Q,K=x?y.offset:0,W=I.text.slice(K,b.offset);W.length>0&&(e.tf.apply({offset:K,path:H,text:W,type:"remove_text"}),Y=W)}!x&&A&&L.current&&P.current&&e.tf.mergeNodes({at:L.current,hanging:!0,reverse:!l,voids:f}),p&&l&&s==="character"&&Y.length>1&&/[\u0E00-\u0E7F]+/.exec(Y)&&e.tf.insertText(Y.slice(0,Y.length-r));const G=P.unref(),z=L.unref(),$=l?G||z:z||G;t?.at==null&&$&&e.tf.select($)})},dQ=e=>{q3(e)},hQ=(e,t,n)=>{F3(e,t,{...n,at:It(e,n?.at)})},vQ=(e,t,{nextBlock:n,removeEmpty:r,...l}={})=>{l=xa(e,l),e.tf.withoutNormalizing(()=>{if(r){const s=e.api.above({at:l.at});if(s){const f=r===!0?{allow:["p"]}:r,{filter:h}=f;f.filter=([p,y])=>at.string(p)||p.children.some(S=>e.api.isInline(S))?!1:!h||h([p,y]),Zc(s,f)&&(e.tf.removeNodes({at:s[1]}),n=!1)}}if(n){const{at:s=e.selection}=l;if(s){const f=e.api.end(s),h=e.api.above({at:f,block:!0});h&&(l.at=ot.next(h[1]))}}I3(e,t,l)})},pQ=e=>{e.tf.withoutNormalizing(()=>{e.api.isExpanded()&&e.tf.delete(),e.tf.insertText(`
328
+ `)})},mQ=(e,t,{marks:n=!0,...r}={})=>{const l=It(e,r.at);if(l){Pe.insertText(e,t,{...r,at:l});return}if(e.selection)if(n&&e.marks){const s={text:t,...e.marks};e.tf.insertNodes(s,{voids:r.voids}),e.marks=null}else Pe.insertText(e,t,r)},gQ=(e,t)=>Y3(e,xa(e,t)),I4=(e,t)=>{if(ct.isElement(t)){const n=t;return e.api.isVoid(t)?!0:n.children.length===1?I4(e,n.children[0]):!1}else return!at.isEditor(t)},yQ=(e,t={})=>{t=xa(e,t),e.tf.withoutNormalizing(()=>{let{at:n=e.selection,match:r}=t;const{hanging:l=!1,mode:s="lowest",voids:f=!1}=t;if(!n)return;if(r==null)if(ot.isPath(n)){const[G]=e.api.parent(n);r=z=>G.children.includes(z)}else r=G=>ct.isElement(G)&&e.api.isBlock(G);if(!l&&on.isRange(n)&&(n=e.api.unhangRange(n)),on.isRange(n))if(on.isCollapsed(n))n=n.anchor;else{const[,G]=on.edges(n),z=e.api.pointRef(G);e.tf.delete({at:n}),n=z.unref(),t.at==null&&e.tf.select(n)}const h=e.api.nodes({at:n,match:r,mode:s,voids:f}),[p]=Array.from(h),y=e.api.previous({at:n,match:r,mode:s,voids:f});if(!p||!y)return;const[b,S]=p,[C,A]=y;if(S.length===0||A.length===0)return;const x=ot.next(A),_=ot.common(S,A),B=ot.isSibling(S,A),R=e.api.levels({at:S}),O=new Set(Array.from(R,([G])=>G).slice(_.length).slice(0,-1)),j=e.api.above({at:S,mode:"highest",match:G=>O.has(G)&&I4(e,G)}),P=j&&e.api.pathRef(j[1]);let L,Y;if(Cn.isText(b)&&Cn.isText(C)){const{text:G,...z}=b;Y=C.text.length,L=z}else if(ct.isElement(b)&&ct.isElement(C)){const{children:G,...z}=b;Y=C.children.length,L=z}else throw new TypeError(`Cannot merge the node at path [${S}] with the previous sibling because it is not the same kind: ${JSON.stringify(b)} ${JSON.stringify(C)}`);e.api.shouldMergeNodes(y,p,{reverse:t.reverse})&&(B||e.tf.moveNodes({at:S,to:x,voids:f}),P&&e.tf.removeNodes({at:P.current,event:{type:"mergeNodes"},voids:f}),P&&P.unref(),e.tf.apply({path:x,position:Y,properties:L,type:"merge_node"}))})},bQ=(e,{children:t,fromIndex:n=0,...r})=>{const l=xa(e,r);let s=!1;if(t){if(!l.at)return s;const f=e.api.node(l.at);if(!f)return s;const[h,p]=f;if(!e.api.isBlock(h))return s;for(let y=h.children.length-1;y>=n;y--){const b=[...p,y],S=at.get(e,b);(!l.match||S&&l.match(S,b))&&(uA(e,{...l,at:b}),s=!0)}return s}return uA(e,l)},EQ=(e,t)=>{U3(e,t)},DQ=(e,{children:t,previousEmptyBlock:n,...r}={})=>{const l=xa(e,r);e.tf.withoutNormalizing(()=>{if(n){const s=e.api.block({at:l.at});if(!s)return;const f=e.api.previous({at:s[1],sibling:!0});if(!f)return;const[h,p]=f;e.api.isEmpty(h)&&e.tf.removeNodes({at:p});return}if(t&&l.at){for(const[,s]of at.children(e,l.at,{reverse:!0}))e.tf.removeNodes({...l,at:s});return}return X3(e,xa(e,l))})},SQ=(e,t,{marks:n,...r}={})=>{if(n){let l=It(e,r.at)??e.selection;if(!l||(ot.isPath(l)&&(l=e.api.range(l)),!on.isRange(l)))return;const s=(p,y)=>{if(!Cn.isText(p))return!1;const b=e.api.parent(y);if(!b)return!1;const[S]=b;return!e.api.isVoid(S)||e.api.markableVoid(S)},f=on.isExpanded(l);let h=!1;if(!f){const p=e.api.node(l);if(!p)return;const[y,b]=p;if(y&&s(y,b)){const S=e.api.parent(b);if(!S)return;const[C]=S;h=C&&e.api.markableVoid(C)}}if(f||h)return oA(e,t,xa(e,{...r,at:l,match:s,split:!0,voids:!0}))}return oA(e,t,xa(e,r))},CQ=(e,t,n)=>{V3(e,t,n)},wQ=(e,t)=>{G3(e,t)},AQ=(e,t)=>Z3(e,xa(e,t)),OQ=(e,t,n)=>Q3(e,t,xa(e,n)),xQ=(e,t)=>{W3(e,xa(e,t))},TQ=(e,t,{children:n,...r}={})=>{const l=xa(e,r);if(l.at&&(l.at=e.api.unhangRange(l.at,l)),n){const s=e.api.path(l.at);if(!s)return;const f=at.get(e,s);if(!f?.children)return;e.tf.withoutNormalizing(()=>{const h=ot.firstChild(s);sA(e,t,{...l,at:h}),f.children.length>1&&e.tf.moveNodes({at:s,children:!0,fromIndex:1,to:ot.child(h,1)})});return}sA(e,t,l)},PT=new WeakMap,Md=new WeakMap,yD=new WeakMap,Qc={isMerging(e){return Md.get(e)},isSaving(e){return PT.get(e)},isSplittingOnce(e){return yD.get(e)},setSplittingOnce(e,t){yD.set(e,t)},withMerging(e,t){const n=e.api.isMerging();Md.set(e,!0),t(),Md.set(e,n)},withNewBatch(e,t){const n=e.api.isMerging();Md.set(e,!0),yD.set(e,!0),t(),Md.set(e,n),yD.delete(e)},withoutMerging(e,t){const n=e.api.isMerging();Md.set(e,!1),t(),Md.set(e,n)},withoutSaving(e,t){const n=e.api.isSaving();PT.set(e,!1),t(),PT.set(e,n)}},zd=(e,t)=>()=>(console.warn(`[OVERRIDE_MISSING] The method editor.${e}() has not been implemented or overridden. This may cause unexpected behavior. Please ensure that all required editor methods are properly defined.`),t),BQ=({children:e,selection:t}={})=>{const n=tz();e&&(n.children=e),t&&(n.selection=t),Object.assign(n,{apply:we(NM,n),isElementReadOnly:n.isElementReadOnly,isInline:n.isInline,isSelectable:n.isSelectable,isVoid:n.isVoid,markableVoid:n.markableVoid,onChange:n.onChange}),Object.assign(n,{addMark:we(mZ,n),deleteBackward:we(yZ,n),deleteForward:we(bZ,n),deleteFragment:we(EZ,n),getDirtyPaths:we(MM,n),getFragment:we(G4,n),insertBreak:we(jZ,n),insertFragment:we(hQ,n),insertNode:we(FZ,n),insertSoftBreak:we(pQ,n),insertText:we(mQ,n),normalizeNode:we(XZ,n),removeMark:we(eQ,n),shouldNormalize:we(PM,n)}),Object.assign(n,{above:we(pZ,n),after:we(GX,n),before:we(IX,n),collapse:we(cQ,n),delete:we(fQ,n),deselect:we(dQ,n),deselectDOM:we(z4,n),edges:we(CZ,n),elementReadOnly:we(UZ,n),end:we($X,n),first:we(AZ,n),fragment:we(G4,n),getMarks:we(TZ,n),hasBlocks:we(zZ,n),hasInlines:we(kZ,n),hasPath:we(l3,n),hasTexts:we(PZ,n),insertNodes:we(vQ,n),isBlock:we(XX,n),isEdge:we(LZ,n),isEmpty:we(HZ,n),isEnd:we($Z,n),isNormalizing:we(qZ,n),isStart:we(VZ,n),last:we(IZ,n),leaf:we(VX,n),levels:we(xZ,n),liftNodes:we(gQ,n),mergeNodes:we(yQ,n),move:we(EQ,n),moveNodes:we(bQ,n),next:we(YZ,n),node:we(DZ,n),nodes:we(QX,n),normalize:we(KZ,n),parent:we(ZZ,n),path:we(SZ,n),pathRef:we(UX,n),pathRefs:we(BZ,n),point:we(_Z,n),pointRef:we(HX,n),pointRefs:we(RZ,n),positions:we(NZ,n),previous:we(WZ,n),range:we(JZ,n),rangeRef:we(gZ,n),rangeRefs:we(MZ,n),removeNodes:we(DQ,n),select:we(JX,n),setNodes:we(SQ,n),setNormalizing:we(z3,n),setPoint:we(CQ,n),setSelection:we(wQ,n),shouldMergeNodes:we(tQ,n),splitNodes:we(AQ,n),start:we(YX,n),string:we(wZ,n),unhangRange:we(nQ,n),unsetNodes:we(OQ,n),unwrapNodes:we(xQ,n),void:we(KX,n),withoutNormalizing:we(WX,n),wrapNodes:we(TQ,n)}),Object.assign(n,{history:{redos:[],undos:[]},meta:{isNormalizing:!1},redo:zd("redo"),undo:zd("undo"),writeHistory:zd("writeHistory")}),Object.assign(n,{insertData:zd("insertData"),insertFragmentData:zd("insertFragmentData",!1),insertTextData:zd("insertTextData",!1),setFragmentData:zd("setFragmentData")});const r={block:we(LX,n),blocks:we(qX,n),create:{block:s=>({children:[{text:""}],type:"p",...s}),value:()=>[r.create.block()]},descendant:we(eZ,n),edgeBlocks:we(FX,n),findDocumentOrShadowRoot:we(gX,n),findEventRange:we(yX,n),findKey:we(bX,n),findPath:we(EX,n),getWindow:we(SX,n),hasDOMNode:we(CX,n),hasEditableTarget:we(wX,n),hasMark:we(nZ,n),hasRange:we(AX,n),hasSelectableTarget:we(OX,n),hasTarget:we(xX,n),isAt:we(aZ,n),isComposing:we(TX,n),isEditorEnd:we(iZ,n),isFocused:we(BX,n),isMerging:we(Qc.isMerging,n),isReadOnly:we(_X,n),isSaving:we(Qc.isSaving,n),isSelected:we(rZ,n),isSplittingOnce:we(Qc.isSplittingOnce,n),isTargetInsideNonReadonlyVoid:we(RX,n),isText:we(lZ,n),mark:we(tZ,n),nodesRange:we(uZ,n),prop:oZ,scrollIntoView:we(hZ,n),some:we(vZ,n),toDOMNode:we(NX,n),toDOMPoint:we(MX,n),toDOMRange:we(zX,n),toSlateNode:we(kX,n),toSlatePoint:we(PX,n),toSlateRange:we(jX,n),isCollapsed:()=>on.isCollapsed(n.selection),isExpanded:()=>on.isExpanded(n.selection),shouldNormalizeNode:()=>!0},l={addMarks:we(rQ,n),blur:we(mX,n),deselectDOM:we(z4,n),duplicateNodes:we(aQ,n),focus:we(DX,n),removeMarks:we(iQ,n),replaceNodes:we(lQ,n),reset:we(uQ,n),setSplittingOnce:we(Qc.setSplittingOnce,n),toggleBlock:we(oQ,n),toggleMark:we(sQ,n),withMerging:we(Qc.withMerging,n),withNewBatch:we(Qc.withNewBatch,n),withoutMerging:we(Qc.withoutMerging,n),withoutSaving:we(Qc.withoutSaving,n),escape:()=>!1,moveLine:()=>!1,selectAll:()=>!1,tab:()=>!1};return n.api=r,n.tf=l,n.transforms=l,L4(n),n},Y4=e=>{const t=e,{apply:n}=t;return t.history={redos:[],undos:[]},t.redo=()=>{const{history:r}=t,{redos:l}=r;if(l.length>0){const s=l.at(-1);s.selectionBefore&&t.tf.setSelection(s.selectionBefore),t.tf.withoutSaving(()=>{t.tf.withoutNormalizing(()=>{for(const f of s.operations)t.apply(f)})}),r.redos.pop(),t.writeHistory("undos",s)}},t.undo=()=>{const{history:r}=t,{undos:l}=r;if(l.length>0){const s=l.at(-1);t.tf.withoutSaving(()=>{t.tf.withoutNormalizing(()=>{const f=s.operations.map(Cs.inverse).reverse();for(const h of f)t.apply(h);s.selectionBefore&&t.tf.setSelection(s.selectionBefore)})}),t.writeHistory("redos",s),r.undos.pop()}},t.apply=r=>{const{history:l,operations:s}=t,{undos:f}=l,h=f.at(-1),p=h?.operations.at(-1);let y=t.api.isSaving(),b=t.api.isMerging();if(y==null&&(y=RQ(r)),y){if(b==null&&(h==null?b=!1:s.length>0?b=!0:b=_Q(r,p)),t.api.isSplittingOnce()&&(b=!1,t.tf.setSplittingOnce(void 0)),h&&b)h.operations.push(r);else{const S={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",S)}for(;f.length>100;)f.shift();l.redos=[]}n(r)},t.writeHistory=(r,l)=>{t.history[r].push(l)},t},_Q=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&ot.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&ot.equals(e.path,t.path)),RQ=(e,t)=>e.type!=="set_selection";const NQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let bD=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=NQ[n[e]&63];return t};var jT,K4;function X4(){if(K4)return jT;K4=1;var e=Nd(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return jT=t,jT}var FT,Z4;function LT(){if(Z4)return FT;Z4=1;var e=X4();function t(n,r,l){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[r]=l}return FT=t,FT}var qT,Q4;function W4(){if(Q4)return qT;Q4=1;var e=LT(),t=Jv();function n(r,l,s){(s!==void 0&&!t(r[l],s)||s===void 0&&!(l in r))&&e(r,l,s)}return qT=n,qT}var Hy={exports:{}};Hy.exports;var J4;function e8(){return J4||(J4=1,(function(e,t){var n=Cu(),r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===r,f=s?n.Buffer:void 0,h=f?f.allocUnsafe:void 0;function p(y,b){if(b)return y.slice();var S=y.length,C=h?h(S):new y.constructor(S);return y.copy(C),C}e.exports=p})(Hy,Hy.exports)),Hy.exports}var UT,t8;function HT(){if(t8)return UT;t8=1;var e=fj();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return UT=t,UT}var $T,n8;function r8(){if(n8)return $T;n8=1;var e=HT();function t(n,r){var l=r?e(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}return $T=t,$T}var VT,a8;function i8(){if(a8)return VT;a8=1;function e(t,n){var r=-1,l=t.length;for(n||(n=Array(l));++r<l;)n[r]=t[r];return n}return VT=e,VT}var GT,l8;function MQ(){if(l8)return GT;l8=1;var e=Ei(),t=Object.create,n=(function(){function r(){}return function(l){if(!e(l))return{};if(t)return t(l);r.prototype=l;var s=new r;return r.prototype=void 0,s}})();return GT=n,GT}var IT,u8;function o8(){if(u8)return IT;u8=1;var e=MQ(),t=pO(),n=Lx();function r(l){return typeof l.constructor=="function"&&!n(l)?e(t(l)):{}}return IT=r,IT}var YT,s8;function zQ(){if(s8)return YT;s8=1;var e=ep(),t=vs();function n(r){return t(r)&&e(r)}return YT=n,YT}var KT,c8;function f8(){if(c8)return KT;c8=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return KT=e,KT}var XT,d8;function ZT(){if(d8)return XT;d8=1;var e=LT(),t=Jv(),n=Object.prototype,r=n.hasOwnProperty;function l(s,f,h){var p=s[f];(!(r.call(s,f)&&t(p,h))||h===void 0&&!(f in s))&&e(s,f,h)}return XT=l,XT}var QT,h8;function rp(){if(h8)return QT;h8=1;var e=ZT(),t=LT();function n(r,l,s,f){var h=!s;s||(s={});for(var p=-1,y=l.length;++p<y;){var b=l[p],S=f?f(s[b],r[b],b,s,r):void 0;S===void 0&&(S=r[b]),h?t(s,b,S):e(s,b,S)}return s}return QT=n,QT}var WT,v8;function kQ(){if(v8)return WT;v8=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return WT=e,WT}var JT,p8;function PQ(){if(p8)return JT;p8=1;var e=Ei(),t=Lx(),n=kQ(),r=Object.prototype,l=r.hasOwnProperty;function s(f){if(!e(f))return n(f);var h=t(f),p=[];for(var y in f)y=="constructor"&&(h||!l.call(f,y))||p.push(y);return p}return JT=s,JT}var eB,m8;function ap(){if(m8)return eB;m8=1;var e=zj(),t=PQ(),n=ep();function r(l){return n(l)?e(l,!0):t(l)}return eB=r,eB}var tB,g8;function jQ(){if(g8)return tB;g8=1;var e=rp(),t=ap();function n(r){return e(r,t(r))}return tB=n,tB}var nB,y8;function FQ(){if(y8)return nB;y8=1;var e=W4(),t=e8(),n=r8(),r=i8(),l=o8(),s=fD(),f=el(),h=zQ(),p=dD(),y=zO(),b=Ei(),S=gO(),C=Px(),A=f8(),x=jQ();function _(B,R,O,j,P,L,Y){var G=A(B,O),z=A(R,O),$=Y.get(z);if($){e(B,O,$);return}var Q=L?L(G,z,O+"",B,R,Y):void 0,I=Q===void 0;if(I){var H=f(z),K=!H&&p(z),W=!H&&!K&&C(z);Q=z,H||K||W?f(G)?Q=G:h(G)?Q=r(G):K?(I=!1,Q=t(z,!0)):W?(I=!1,Q=n(z,!0)):Q=[]:S(z)||s(z)?(Q=G,s(G)?Q=x(G):(!b(G)||y(G))&&(Q=l(z))):I=!1}I&&(Y.set(z,Q),P(Q,z,j,L,Y),Y.delete(z)),e(B,O,Q)}return nB=_,nB}var rB,b8;function aB(){if(b8)return rB;b8=1;var e=cD(),t=W4(),n=A4(),r=FQ(),l=Ei(),s=ap(),f=f8();function h(p,y,b,S,C){p!==y&&n(y,function(A,x){if(C||(C=new e),l(A))r(p,y,x,b,h,S,C);else{var _=S?S(f(p,x),A,x+"",p,y,C):void 0;_===void 0&&(_=A),t(p,x,_)}},s)}return rB=h,rB}var iB,E8;function D8(){if(E8)return iB;E8=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return iB=e,iB}var lB,S8;function C8(){if(S8)return lB;S8=1;var e=D8(),t=Math.max;function n(r,l,s){return l=t(l===void 0?r.length-1:l,0),function(){for(var f=arguments,h=-1,p=t(f.length-l,0),y=Array(p);++h<p;)y[h]=f[l+h];h=-1;for(var b=Array(l+1);++h<l;)b[h]=f[h];return b[l]=s(y),e(r,this,b)}}return lB=n,lB}var uB,w8;function LQ(){if(w8)return uB;w8=1;function e(t){return function(){return t}}return uB=e,uB}var oB,A8;function qQ(){if(A8)return oB;A8=1;var e=LQ(),t=X4(),n=ST(),r=t?function(l,s){return t(l,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return oB=r,oB}var sB,O8;function UQ(){if(O8)return sB;O8=1;var e=800,t=16,n=Date.now;function r(l){var s=0,f=0;return function(){var h=n(),p=t-(h-f);if(f=h,p>0){if(++s>=e)return arguments[0]}else s=0;return l.apply(void 0,arguments)}}return sB=r,sB}var cB,x8;function T8(){if(x8)return cB;x8=1;var e=qQ(),t=UQ(),n=t(e);return cB=n,cB}var fB,B8;function dB(){if(B8)return fB;B8=1;var e=ST(),t=C8(),n=T8();function r(l,s){return n(t(l,s,e),l+"")}return fB=r,fB}var hB,_8;function R8(){if(_8)return hB;_8=1;var e=Jv(),t=ep(),n=hD(),r=Ei();function l(s,f,h){if(!r(h))return!1;var p=typeof f;return(p=="number"?t(h)&&n(f,h.length):p=="string"&&f in h)?e(h[f],s):!1}return hB=l,hB}var vB,N8;function M8(){if(N8)return vB;N8=1;var e=dB(),t=R8();function n(r){return e(function(l,s){var f=-1,h=s.length,p=h>1?s[h-1]:void 0,y=h>2?s[2]:void 0;for(p=r.length>3&&typeof p=="function"?(h--,p):void 0,y&&t(s[0],s[1],y)&&(p=h<3?void 0:p,h=1),l=Object(l);++f<h;){var b=s[f];b&&r(l,b,f,p)}return l})}return vB=n,vB}var pB,z8;function HQ(){if(z8)return pB;z8=1;var e=aB(),t=M8(),n=t(function(r,l,s){e(r,l,s)});return pB=n,pB}var $Q=HQ();const ei=fa($Q);var mB,k8;function P8(){if(k8)return mB;k8=1;var e=aB(),t=M8(),n=t(function(r,l,s,f){e(r,l,s,f)});return mB=n,mB}var VQ=P8();const j8=fa(VQ);var gB,F8;function GQ(){if(F8)return gB;F8=1;var e=dB(),t=Jv(),n=R8(),r=ap(),l=Object.prototype,s=l.hasOwnProperty,f=e(function(h,p){h=Object(h);var y=-1,b=p.length,S=b>2?p[2]:void 0;for(S&&n(p[0],p[1],S)&&(b=1);++y<b;)for(var C=p[y],A=r(C),x=-1,_=A.length;++x<_;){var B=A[x],R=h[B];(R===void 0||t(R,l[B])&&!s.call(h,B))&&(h[B]=C[B])}return h});return gB=f,gB}var IQ=GQ();const L8=fa(IQ);var yB,q8;function YQ(){if(q8)return yB;q8=1;var e=ZT(),t=tp(),n=hD(),r=Ei(),l=np();function s(f,h,p,y){if(!r(f))return f;h=t(h,f);for(var b=-1,S=h.length,C=S-1,A=f;A!=null&&++b<S;){var x=l(h[b]),_=p;if(x==="__proto__"||x==="constructor"||x==="prototype")return f;if(b!=C){var B=A[x];_=y?y(B,x,A):void 0,_===void 0&&(_=r(B)?B:n(h[b+1])?[]:{})}e(A,x,_),A=A[x]}return f}return yB=s,yB}var bB,U8;function H8(){if(U8)return bB;U8=1;var e=pD(),t=YQ(),n=tp();function r(l,s,f){for(var h=-1,p=s.length,y={};++h<p;){var b=s[h],S=e(l,b);f(S,b)&&t(y,n(b,l),S)}return y}return bB=r,bB}var EB,$8;function KQ(){if($8)return EB;$8=1;var e=H8(),t=m4();function n(r,l){return e(r,l,function(s,f){return t(r,f)})}return EB=n,EB}var DB,V8;function XQ(){if(V8)return DB;V8=1;var e=Pv(),t=fD(),n=el(),r=e?e.isConcatSpreadable:void 0;function l(s){return n(s)||t(s)||!!(r&&s&&s[r])}return DB=l,DB}var SB,G8;function ZQ(){if(G8)return SB;G8=1;var e=yx(),t=XQ();function n(r,l,s,f,h){var p=-1,y=r.length;for(s||(s=t),h||(h=[]);++p<y;){var b=r[p];l>0&&s(b)?l>1?n(b,l-1,s,f,h):e(h,b):f||(h[h.length]=b)}return h}return SB=n,SB}var CB,I8;function QQ(){if(I8)return CB;I8=1;var e=ZQ();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return CB=t,CB}var wB,Y8;function K8(){if(Y8)return wB;Y8=1;var e=QQ(),t=C8(),n=T8();function r(l){return n(t(l,void 0,e),l+"")}return wB=r,wB}var AB,X8;function WQ(){if(X8)return AB;X8=1;var e=KQ(),t=K8(),n=t(function(r,l){return r==null?{}:e(r,l)});return AB=n,AB}var JQ=WQ();const Z8=fa(JQ);function Q8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=Q8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function na(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=Q8(e))&&(r&&(r+=" "),r+=t);return r}var OB,W8;function eW(){if(W8)return OB;W8=1;function e(t,n,r,l){var s=-1,f=t==null?0:t.length;for(l&&f&&(r=t[++s]);++s<f;)r=n(r,t[s],s,t);return r}return OB=e,OB}var xB,J8;function tW(){if(J8)return xB;J8=1;function e(t){return function(n){return t?.[n]}}return xB=e,xB}var TB,e6;function nW(){if(e6)return TB;e6=1;var e=tW(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},n=e(t);return TB=n,TB}var BB,t6;function rW(){if(t6)return BB;t6=1;var e=nW(),t=dT(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",f=r+l+s,h="["+f+"]",p=RegExp(h,"g");function y(b){return b=t(b),b&&b.replace(n,e).replace(p,"")}return BB=y,BB}var _B,n6;function aW(){if(n6)return _B;n6=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(n){return n.match(e)||[]}return _B=t,_B}var RB,r6;function iW(){if(r6)return RB;r6=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(n){return e.test(n)}return RB=t,RB}var NB,a6;function lW(){if(a6)return NB;a6=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",l=t+n+r,s="\\u2700-\\u27bf",f="a-z\\xdf-\\xf6\\xf8-\\xff",h="\\xac\\xb1\\xd7\\xf7",p="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",y="\\u2000-\\u206f",b=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",S="A-Z\\xc0-\\xd6\\xd8-\\xde",C="\\ufe0e\\ufe0f",A=h+p+y+b,x="['’]",_="["+A+"]",B="["+l+"]",R="\\d+",O="["+s+"]",j="["+f+"]",P="[^"+e+A+R+s+f+S+"]",L="\\ud83c[\\udffb-\\udfff]",Y="(?:"+B+"|"+L+")",G="[^"+e+"]",z="(?:\\ud83c[\\udde6-\\uddff]){2}",$="[\\ud800-\\udbff][\\udc00-\\udfff]",Q="["+S+"]",I="\\u200d",H="(?:"+j+"|"+P+")",K="(?:"+Q+"|"+P+")",W="(?:"+x+"(?:d|ll|m|re|s|t|ve))?",ne="(?:"+x+"(?:D|LL|M|RE|S|T|VE))?",U=Y+"?",Z="["+C+"]?",J="(?:"+I+"(?:"+[G,z,$].join("|")+")"+Z+U+")*",he="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ie="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xe=Z+U+J,Re="(?:"+[O,z,$].join("|")+")"+xe,me=RegExp([Q+"?"+j+"+"+W+"(?="+[_,Q,"$"].join("|")+")",K+"+"+ne+"(?="+[_,Q+H,"$"].join("|")+")",Q+"?"+H+"+"+W,Q+"+"+ne,ie,he,R,Re].join("|"),"g");function ke(Xe){return Xe.match(me)||[]}return NB=ke,NB}var MB,i6;function uW(){if(i6)return MB;i6=1;var e=aW(),t=iW(),n=dT(),r=lW();function l(s,f,h){return s=n(s),f=h?void 0:f,f===void 0?t(s)?r(s):e(s):s.match(f)||[]}return MB=l,MB}var zB,l6;function oW(){if(l6)return zB;l6=1;var e=eW(),t=rW(),n=uW(),r="['’]",l=RegExp(r,"g");function s(f){return function(h){return e(n(t(h).replace(l,"")),f,"")}}return zB=s,zB}var kB,u6;function sW(){if(u6)return kB;u6=1;var e=oW(),t=e(function(n,r,l){return n+(l?"-":"")+r.toLowerCase()});return kB=t,kB}var cW=sW();const o6=fa(cW);var PB,s6;function fW(){if(s6)return PB;s6=1;var e=Jx();function t(n,r){return e(n,r)}return PB=t,PB}var dW=fW();const c6=fa(dW);var jB,f6;function hW(){if(f6)return jB;f6=1;function e(t){return t===void 0}return jB=e,jB}var vW=hW();const d6=fa(vW);var FB,h6;function pW(){if(h6)return FB;h6=1;var e="Expected a function";function t(n){if(typeof n!="function")throw new TypeError(e);return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}return FB=t,FB}var LB,v6;function p6(){if(v6)return LB;v6=1;var e=yx(),t=pO(),n=Cx(),r=Ej(),l=Object.getOwnPropertySymbols,s=l?function(f){for(var h=[];f;)e(h,n(f)),f=t(f);return h}:r;return LB=s,LB}var qB,m6;function UB(){if(m6)return qB;m6=1;var e=gj(),t=p6(),n=ap();function r(l){return e(l,n,t)}return qB=r,qB}var HB,g6;function mW(){if(g6)return HB;g6=1;var e=iD(),t=xT(),n=H8(),r=UB();function l(s,f){if(s==null)return{};var h=e(r(s),function(p){return[p]});return f=t(f),n(s,h,function(p,y){return f(p,y[0])})}return HB=l,HB}var $B,y6;function gW(){if(y6)return $B;y6=1;var e=xT(),t=pW(),n=mW();function r(l,s){return n(l,t(e(s)))}return $B=r,$B}var yW=gW();const b6=fa(yW);function $y(e){"@babel/helpers - typeof";return $y=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},$y(e)}function bW(e,t){if($y(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($y(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EW(e){var t=bW(e,"string");return $y(t)==="symbol"?t:String(t)}function ip(e,t,n){return t=EW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E6=new WeakMap,D6=new WeakMap;class VB{}class ED extends VB{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),ip(this,"offset",void 0),ip(this,"path",void 0);var{offset:n,path:r}=t;this.offset=n,this.path=r}}class DD extends VB{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),ip(this,"offset",void 0),ip(this,"path",void 0);var{offset:n,path:r}=t;this.offset=n,this.path=r}}var DW=(e,t)=>{var n=e.text.length;E6.set(e,[n,t])},SW=e=>E6.get(e),CW=(e,t)=>{var n=e.text.length;D6.set(e,[n,t])},wW=e=>D6.get(e);function S6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function GB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(n),!0).forEach(function(r){ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var SD=new WeakSet,CD=e=>{var t=[],n=l=>{if(l!=null){var s=t[t.length-1];if(typeof l=="string"){var f={text:l};SD.add(f),l=f}if(Ze.isText(l)){var h=l;Ze.isText(s)&&SD.has(s)&&SD.has(h)&&Ze.equals(s,h,{loose:!0})?s.text+=h.text:t.push(h)}else if(rt.isElement(l))t.push(l);else if(l instanceof VB){var p=t[t.length-1];Ze.isText(p)||(n(""),p=t[t.length-1]),l instanceof ED?DW(p,l):l instanceof DD&&CW(p,l)}else throw new Error("Unexpected hyperscript child object: ".concat(l))}};for(var r of e.flat(1/0))n(r);return t};function AW(e,t,n){return new ED(t)}function OW(e,t,n){return[new ED(t),new DD(t)]}function C6(e,t,n){return GB(GB({},t),{},{children:CD(n)})}function xW(e,t,n){return new DD(t)}function TW(e,t,n){return CD(n)}function BW(e,t,n){var r=n.find(s=>s instanceof ED),l=n.find(s=>s instanceof DD);if(!r||r.offset==null||r.path==null)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!l||l.offset==null||l.path==null)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return GB({anchor:{offset:r.offset,path:r.path},focus:{offset:l.offset,path:l.path}},t)}function _W(e,t,n){var r=CD(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[l]=r;if(l==null&&(l={text:""}),!Ze.isText(l))throw new Error(`
329
+ The <text> hyperscript tag can only contain text content as children.`);return SD.delete(l),Object.assign(l,t),l}var RW=e=>(t,n,r)=>{var l=[],s;for(var f of r)Se.isRange(f)?s=f:l.push(f);var h=CD(l),p={},y=e();Object.assign(y,n),y.children=h;for(var[b,S]of $e.texts(y)){var C=SW(b),A=wW(b);if(C!=null){var[x]=C;p.anchor={path:S,offset:x}}if(A!=null){var[_]=A;p.focus={path:S,offset:_}}}if(p.anchor&&!p.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!p.anchor&&p.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return s!=null?y.selection=s:Se.isRange(p)&&(y.selection=p),y};function w6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w6(Object(n),!0).forEach(function(r){ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var NW={anchor:AW,cursor:OW,editor:RW(tz),element:C6,focus:xW,fragment:TW,selection:BW,text:_W},MW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{elements:n={}}=t,r=kW(n),l=Vy(Vy(Vy({},NW),r),t.creators),s=zW(l);return s},zW=e=>{var t=function(r,l){for(var s=arguments.length,f=new Array(s>2?s-2:0),h=2;h<s;h++)f[h-2]=arguments[h];var p=e[r];if(!p)throw new Error("No hyperscript creator found for tag: <".concat(r,">"));l==null&&(l={}),vX(l)||(f=[l].concat(f),l={}),f=f.filter(b=>!!b).flat();var y=p(r,l,f);return y};return t},kW=e=>{var t={},n=function(){var s=e[r];if(typeof s!="object")throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(s));t[r]=(f,h,p)=>C6("element",Vy(Vy({},s),h),p)};for(var r in e)n();return t},lp=MW(),IB,A6;function PW(){if(A6)return IB;A6=1;function e(t,n){for(var r=-1,l=t==null?0:t.length;++r<l&&n(t[r],r,t)!==!1;);return t}return IB=e,IB}var YB,O6;function jW(){if(O6)return YB;O6=1;var e=rp(),t=qy();function n(r,l){return r&&e(l,t(l),r)}return YB=n,YB}var KB,x6;function FW(){if(x6)return KB;x6=1;var e=rp(),t=ap();function n(r,l){return r&&e(l,t(l),r)}return KB=n,KB}var XB,T6;function LW(){if(T6)return XB;T6=1;var e=rp(),t=Cx();function n(r,l){return e(r,t(r),l)}return XB=n,XB}var ZB,B6;function qW(){if(B6)return ZB;B6=1;var e=rp(),t=p6();function n(r,l){return e(r,t(r),l)}return ZB=n,ZB}var QB,_6;function UW(){if(_6)return QB;_6=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var l=r.length,s=new r.constructor(l);return l&&typeof r[0]=="string"&&t.call(r,"index")&&(s.index=r.index,s.input=r.input),s}return QB=n,QB}var WB,R6;function HW(){if(R6)return WB;R6=1;var e=HT();function t(n,r){var l=r?e(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}return WB=t,WB}var JB,N6;function $W(){if(N6)return JB;N6=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return JB=t,JB}var e2,M6;function VW(){if(M6)return e2;M6=1;var e=Pv(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(l){return n?Object(n.call(l)):{}}return e2=r,e2}var t2,z6;function GW(){if(z6)return t2;z6=1;var e=HT(),t=HW(),n=$W(),r=VW(),l=r8(),s="[object Boolean]",f="[object Date]",h="[object Map]",p="[object Number]",y="[object RegExp]",b="[object Set]",S="[object String]",C="[object Symbol]",A="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",B="[object Float64Array]",R="[object Int8Array]",O="[object Int16Array]",j="[object Int32Array]",P="[object Uint8Array]",L="[object Uint8ClampedArray]",Y="[object Uint16Array]",G="[object Uint32Array]";function z($,Q,I){var H=$.constructor;switch(Q){case A:return e($);case s:case f:return new H(+$);case x:return t($,I);case _:case B:case R:case O:case j:case P:case L:case Y:case G:return l($,I);case h:return new H;case p:case S:return new H($);case y:return n($);case b:return new H;case C:return r($)}}return t2=z,t2}var n2,k6;function IW(){if(k6)return n2;k6=1;var e=vD(),t=vs(),n="[object Map]";function r(l){return t(l)&&e(l)==n}return n2=r,n2}var r2,P6;function YW(){if(P6)return r2;P6=1;var e=IW(),t=Mx(),n=zx(),r=n&&n.isMap,l=r?t(r):e;return r2=l,r2}var a2,j6;function KW(){if(j6)return a2;j6=1;var e=vD(),t=vs(),n="[object Set]";function r(l){return t(l)&&e(l)==n}return a2=r,a2}var i2,F6;function XW(){if(F6)return i2;F6=1;var e=KW(),t=Mx(),n=zx(),r=n&&n.isSet,l=r?t(r):e;return i2=l,i2}var l2,L6;function q6(){if(L6)return l2;L6=1;var e=cD(),t=PW(),n=ZT(),r=jW(),l=FW(),s=e8(),f=i8(),h=LW(),p=qW(),y=Uj(),b=UB(),S=vD(),C=UW(),A=GW(),x=o8(),_=el(),B=dD(),R=YW(),O=Ei(),j=XW(),P=qy(),L=ap(),Y=1,G=2,z=4,$="[object Arguments]",Q="[object Array]",I="[object Boolean]",H="[object Date]",K="[object Error]",W="[object Function]",ne="[object GeneratorFunction]",U="[object Map]",Z="[object Number]",J="[object Object]",he="[object RegExp]",ie="[object Set]",xe="[object String]",Re="[object Symbol]",me="[object WeakMap]",ke="[object ArrayBuffer]",Xe="[object DataView]",Ye="[object Float32Array]",Qe="[object Float64Array]",ft="[object Int8Array]",ce="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",fe="[object Uint8ClampedArray]",Ue="[object Uint16Array]",He="[object Uint32Array]",ut={};ut[$]=ut[Q]=ut[ke]=ut[Xe]=ut[I]=ut[H]=ut[Ye]=ut[Qe]=ut[ft]=ut[ce]=ut[le]=ut[U]=ut[Z]=ut[J]=ut[he]=ut[ie]=ut[xe]=ut[Re]=ut[ue]=ut[fe]=ut[Ue]=ut[He]=!0,ut[K]=ut[W]=ut[me]=!1;function yt(Ie,an,Wt,Bn,Vt,Ft){var Jt,ri=an&Y,er=an&G,va=an&z;if(Wt&&(Jt=Vt?Wt(Ie,Bn,Vt,Ft):Wt(Ie)),Jt!==void 0)return Jt;if(!O(Ie))return Ie;var Dn=_(Ie);if(Dn){if(Jt=C(Ie),!ri)return f(Ie,Jt)}else{var Lt=S(Ie),Mt=Lt==W||Lt==ne;if(B(Ie))return s(Ie,ri);if(Lt==J||Lt==$||Mt&&!Vt){if(Jt=er||Mt?{}:x(Ie),!ri)return er?p(Ie,l(Jt,Ie)):h(Ie,r(Jt,Ie))}else{if(!ut[Lt])return Vt?Ie:{};Jt=A(Ie,Lt,ri)}}Ft||(Ft=new e);var Ti=Ft.get(Ie);if(Ti)return Ti;Ft.set(Ie,Jt),j(Ie)?Ie.forEach(function(Nr){Jt.add(yt(Nr,an,Wt,Nr,Ie,Ft))}):R(Ie)&&Ie.forEach(function(Nr,hr){Jt.set(hr,yt(Nr,an,Wt,hr,Ie,Ft))});var Ns=va?er?b:y:er?L:P,Ms=Dn?void 0:Ns(Ie);return t(Ms||Ie,function(Nr,hr){Ms&&(hr=Nr,Nr=Ie[hr]),n(Jt,hr,yt(Nr,an,Wt,hr,Ie,Ft))}),Jt}return l2=yt,l2}var u2,U6;function ZW(){if(U6)return u2;U6=1;var e=q6(),t=1,n=4;function r(l){return e(l,t|n)}return u2=r,u2}var QW=ZW();const up=fa(QW);var o2,H6;function WW(){if(H6)return o2;H6=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return o2=e,o2}var s2,$6;function JW(){if($6)return s2;$6=1;function e(t,n,r){var l=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var f=Array(s);++l<s;)f[l]=t[l+n];return f}return s2=e,s2}var c2,V6;function eJ(){if(V6)return c2;V6=1;var e=pD(),t=JW();function n(r,l){return l.length<2?r:e(r,t(l,0,-1))}return c2=n,c2}var f2,G6;function tJ(){if(G6)return f2;G6=1;var e=tp(),t=WW(),n=eJ(),r=np();function l(s,f){return f=e(f,s),s=n(s,f),s==null||delete s[r(t(f))]}return f2=l,f2}var d2,I6;function nJ(){if(I6)return d2;I6=1;var e=gO();function t(n){return e(n)?void 0:n}return d2=t,d2}var h2,Y6;function rJ(){if(Y6)return h2;Y6=1;var e=iD(),t=q6(),n=tJ(),r=tp(),l=rp(),s=nJ(),f=K8(),h=UB(),p=1,y=2,b=4,S=f(function(C,A){var x={};if(C==null)return x;var _=!1;A=e(A,function(R){return R=r(R,C),_||(_=R.length>1),R}),l(C,h(C),x),_&&(x=t(x,p|y|b,s));for(var B=A.length;B--;)n(x,A[B]);return x});return h2=S,h2}var aJ=rJ();const iJ=fa(aJ);var K6=Object.prototype.hasOwnProperty;function X6(e,t,n){for(n of e.keys())if(Gy(n,t))return n}function Gy(e,t){var n,r,l;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Gy(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(l=r,l&&typeof l=="object"&&(l=X6(t,l),!l)||!t.has(l))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(l=r[0],l&&typeof l=="object"&&(l=X6(t,l),!l)||!Gy(r[1],t.get(l)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(K6.call(e,n)&&++r&&!K6.call(t,n)||!(n in t)||!Gy(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function lJ(e){const t=k.useRef(e),n=k.useRef(0);return Gy(e,t.current)||(t.current=e,n.current+=1),k.useMemo(()=>t.current,[n.current])}function Z6(e,t){return k.useMemo(e,lJ(t))}function Q6(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function W6(...e){return t=>{let n=!1;const r=e.map(l=>{const s=Q6(l,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let l=0;l<r.length;l++){const s=r[l];typeof s=="function"?s():Q6(e[l],null)}}}}function go(...e){return ye.useCallback(W6(...e),e)}function wD(e){const t=oJ(e),n=ye.forwardRef((r,l)=>{const{children:s,...f}=r,h=ye.Children.toArray(s),p=h.find(cJ);if(p){const y=p.props.children,b=h.map(S=>S===p?ye.Children.count(y)>1?ye.Children.only(null):ye.isValidElement(y)?y.props.children:null:S);return Me.jsx(t,{...f,ref:l,children:ye.isValidElement(y)?ye.cloneElement(y,void 0,b):null})}return Me.jsx(t,{...f,ref:l,children:s})});return n.displayName=`${e}.Slot`,n}var uJ=wD("Slot");function oJ(e){const t=ye.forwardRef((n,r)=>{const{children:l,...s}=n;if(ye.isValidElement(l)){const f=dJ(l),h=fJ(s,l.props);return l.type!==ye.Fragment&&(h.ref=r?W6(r,f):f),ye.cloneElement(l,h)}return ye.Children.count(l)>1?ye.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J6=Symbol("radix.slottable");function sJ(e){const t=({children:n})=>Me.jsx(Me.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=J6,t}function cJ(e){return ye.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J6}function fJ(e,t){const n={...t};for(const r in t){const l=e[r],s=t[r];/^on[A-Z]/.test(r)?l&&s?n[r]=(...h)=>{const p=s(...h);return l(...h),p}:l&&(n[r]=l):r==="style"?n[r]={...l,...s}:r==="className"&&(n[r]=[l,s].filter(Boolean).join(" "))}return{...e,...n}}function dJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eF=e=>k.forwardRef(({as:t,asChild:n=!1,...r},l)=>{const s=n?uJ:t||e;return k.createElement(s,{ref:l,...r})});eF("div"),k.memo(({children:e})=>k.createElement(k.Fragment,null,e)),eF("span");var hJ=(e,t)=>{if(typeof e=="function")return e(t);e!=null&&(e.current=t)},vJ=(...e)=>t=>{const n=[];if(e.forEach(r=>{const l=hJ(r,t);typeof l=="function"&&n.push(l)}),n.length>0)return()=>{n.forEach(r=>r?.())}},tF=(...e)=>k.useCallback(vJ(...e),e),pJ=typeof window<"u"&&window.document?.createElement!==void 0;pJ?k.useLayoutEffect:k.useEffect;function mJ(e,t,n=(r,l)=>r===l){const[r,l]=k.useState(()=>e()),s=k.useRef(r);return k.useEffect(()=>{const f=e();n(s.current,f)||(l(f),s.current=f)},t),r}var v2=(e,t=[])=>{const n=k.useRef(e);return n.current=e,k.useCallback((...r)=>n.current(...r),t)};const ws=e=>e,p2=e=>({_tag:"Left",value:e}),AD=e=>({_tag:"Right",value:e}),gJ=(e,t,n)=>n._tag==="Left"?e(n.value):t(n.value),nF={dimap:(e,t,n)=>r=>t(n(e(r))),first:e=>([t,n])=>[e(t),n],right:e=>t=>t._tag==="Left"?t:AD(e(t.value)),wander:e=>t=>t.map(e)},yJ={empty:()=>{},foldMap:(e,t)=>{for(let n=0;n<t.length;n++){const r=e(t[n]);if(r!=null)return r}}},bJ={empty:()=>[],foldMap:(e,t)=>{let n=[];return t.forEach(r=>{n=n.concat(e(r))}),n}},m2=e=>({dimap:(t,n,r)=>l=>r(t(l)),first:t=>([n,r])=>t(n),right:t=>n=>n._tag==="Left"?e.empty():t(n.value),wander:t=>n=>e.foldMap(t,n)}),g2={Equivalence:{Equivalence:"Equivalence",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Iso:{Equivalence:"Iso",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Lens:{Equivalence:"Lens",Iso:"Lens",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Prism:{Equivalence:"Prism",Iso:"Prism",Lens:"Prism",Prism:"Prism",Traversal:"Traversal",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Traversal:{Equivalence:"Traversal",Iso:"Traversal",Lens:"Traversal",Prism:"Traversal",Traversal:"Traversal",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:"Setter"},Getter:{Equivalence:"Getter",Iso:"Getter",Lens:"Getter",Prism:"AffineFold",Traversal:"Fold",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},AffineFold:{Equivalence:"AffineFold",Iso:"AffineFold",Lens:"AffineFold",Prism:"AffineFold",Traversal:"Fold",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},Fold:{Equivalence:"Fold",Iso:"Fold",Lens:"Fold",Prism:"Fold",Traversal:"Fold",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},op=(e,t)=>{const n=t;return n._tag=e,n},rF=e=>(e._removable=!0,e);function sn(e,t,n){switch(arguments.length){case 2:{const r=(l,s)=>e(l,t(l,s));return r._tag=g2[e._tag][t._tag],r._removable=t._removable||!1,r}default:{const r=g2[e._tag][t._tag],l=(s,f)=>e(s,t(s,n(s,f)));return l._tag=g2[r][n._tag],l._removable=n._removable||!1,l}}}const EJ=op("Equivalence",(e,t)=>t),OD=(e,t)=>op("Iso",(n,r)=>n.dimap(e,t,r)),nl=(e,t)=>op("Lens",(n,r)=>n.dimap(l=>[e(l),l],t,n.first(r))),y2=(e,t)=>op("Prism",(n,r)=>n.dimap(e,l=>gJ(ws,t,l),n.right(r))),b2=op("Traversal",(e,t)=>e.dimap(ws,ws,e.wander(t))),DJ=e=>op("Getter",(t,n)=>t.dimap(e,ws,n)),aF=(e,t,n)=>e(nF,t)(n),SJ=(e,t,n)=>e(nF,()=>t)(n),CJ=(e,t)=>e(m2({}),ws)(t),wJ=(e,t)=>e(m2(yJ),ws)(t),iF=(e,t)=>e(m2(bJ),n=>[n])(t),AJ=OD(e=>e.map((t,n)=>[n,t]),e=>{const t=[...e].sort((r,l)=>r[0]-l[0]),n=[];for(let r=0;r<t.length;++r)(r===t.length-1||t[r][0]!==t[r+1][0])&&n.push(t[r][1]);return n}),lF=e=>nl(t=>t[e],([t,n])=>Object.assign(Object.assign({},n),{[e]:t})),OJ=e=>nl(t=>{const n={};for(const r of e)n[r]=t[r];return n},([t,n])=>{const r=Object.assign({},n);for(const l of e)delete r[l];return Object.assign(r,t)}),uF=e=>nl(t=>t[e],([t,n])=>{const r=n.slice();return r[e]=t,r}),E2=uF(0),D2=e=>y2(t=>e(t)?AD(t):p2(t),ws),Iy=Symbol("__no_match__"),oF=D2(e=>e!==Iy),sF=Symbol("__remove_me__"),S2=e=>rF(sn(nl(t=>0<=e&&e<t.length?t[e]:Iy,([t,n])=>{if(t===Iy)return n;if(t===sF)return typeof n=="string"?n.substring(0,e)+n.substring(e+1):[...n.slice(0,e),...n.slice(e+1)];if(typeof n=="string")return e===0?t+n.substring(1):e===n.length?n.substring(0,e-1)+t:n.substring(0,e)+t+n.substring(e+1);{const r=n.slice();return r[e]=t,r}}),oF)),xJ=y2(e=>e===void 0?p2(void 0):AD(e),ws),TJ=e=>y2(t=>e(t)?AD(t):p2(t),ws),BJ=e=>rF(sn(nl(t=>{const n=t.findIndex(e);return n===-1?[Iy,-1]:[t[n],n]},([[t,n],r])=>{if(t===Iy)return r;if(t===sF)return[...r.slice(0,n),...r.slice(n+1)];const l=r.slice();return l[n]=t,l}),E2,oF)),_J=e=>sn(nl(t=>{const n=t.map((r,l)=>e(r)?l:null).filter(r=>r!=null);return[n.map(r=>t[r]),n]},([[t,n],r])=>{const l=r.length,s=t.length;let f=0,h=0,p=0;const y=[];for(;f<l;)n[h]===f?(++h,p<s&&(y.push(t[p]),++p)):y.push(r[f]),++f;for(;p<s;)y.push(t[p++]);return y}),E2),RJ=e=>nl(t=>t===void 0?e:t,([t,n])=>t),NJ=e=>sn(nl(t=>{const n=iF(e,t);return[n,n.length]},([[t,n],r])=>{if(t.length!==n)throw new Error("cannot add/remove elements through partsOf");let l=0;return aF(e,()=>t[l++],r)}),E2),MJ=e=>nl(t=>e(t),([t,n])=>t),zJ=e=>nl(t=>t,([t,n])=>e(t)),kJ=nl(e=>{},([e,t])=>e===void 0?t:[e,...t]),PJ=nl(e=>{},([e,t])=>e===void 0?t:[...t,e]),jJ=sn(OD(e=>e.split(""),e=>e.join("")),b2),FJ=sn(OD(e=>e.split(/\b/),e=>e.join("")),b2,D2(e=>!/\s+/.test(e)));class wn{constructor(t){this._ref=t}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(t){return new wn(sn(this._ref,t._ref))}iso(t,n){return new wn(sn(this._ref,OD(t,n)))}lens(t,n){return new wn(sn(this._ref,nl(t,([r,l])=>n(l,r))))}indexed(){return new wn(sn(this._ref,AJ))}prop(t){return new wn(sn(this._ref,lF(t)))}path(...t){return t.length===1&&(t=t[0].split(".")),new wn(t.reduce((n,r)=>sn(n,lF(r)),this._ref))}pick(t){return new wn(sn(this._ref,OJ(t)))}nth(t){return new wn(sn(this._ref,uF(t)))}filter(t){return new wn(sn(this._ref,_J(t)))}valueOr(t){return new wn(sn(this._ref,RJ(t)))}partsOf(t){const n=typeof t=="function"?t(cF):t;return new wn(sn(this._ref,NJ(n._ref)))}reread(t){return new wn(sn(this._ref,MJ(t)))}rewrite(t){return new wn(sn(this._ref,zJ(t)))}optional(){return new wn(sn(this._ref,xJ))}guard_(){return t=>this.guard(t)}guard(t){return new wn(sn(this._ref,TJ(t)))}at(t){return new wn(sn(this._ref,S2(t)))}head(){return new wn(sn(this._ref,S2(0)))}index(t){return new wn(sn(this._ref,S2(t)))}find(t){return new wn(sn(this._ref,BJ(t)))}elems(){return new wn(sn(this._ref,b2))}to(t){return new wn(sn(this._ref,DJ(t)))}when(t){return new wn(sn(this._ref,D2(t)))}chars(){return new wn(sn(this._ref,jJ))}words(){return new wn(sn(this._ref,FJ))}prependTo(){return new wn(sn(this._ref,kJ))}appendTo(){return new wn(sn(this._ref,PJ))}}const cF=new wn(EJ);function LJ(){return cF}function qJ(e){return t=>CJ(e._ref,t)}function UJ(e){return t=>wJ(e._ref,t)}function HJ(e){return t=>iF(e._ref,t)}function $J(e){return t=>n=>aF(e._ref,t,n)}function VJ(e){return t=>n=>SJ(e._ref,t,n)}const fF=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),GJ=new WeakMap,IJ=(e,t,n)=>{const r=fF(()=>new WeakMap,GJ,t);return fF(e,r,n)},YJ=e=>typeof e=="function";function KJ(e,t){return IJ(()=>{const n=t(LJ());return Ou(l=>{const s=l(e);return s instanceof Promise?s.then(f=>dF(n,f)):dF(n,s)},(l,s,f)=>{const h=YJ(f)?$J(n)(f):VJ(n)(f),p=l(e);return s(e,p instanceof Promise?p.then(h):h(p))})},e,t)}const dF=(e,t)=>e._tag==="Traversal"?HJ(e)(t):e._tag==="Prism"?UJ(e)(t):qJ(e)(t);var XJ=({attributes:e,children:t,lowest:n})=>n?k.createElement("div",{...e,style:{contentVisibility:"auto"}},t):t;function sp(e){return typeof e=="function"}function As(e,...t){return j8({},e,...t,(n,r,l)=>{if(Array.isArray(r))return r;if(l==="options")return{...n,...r}})}function cr(e={}){let t,n;sp(e)?(t={key:""},n=s=>e(s)):t=e;const r=t.key??"",l=As({key:r,__apiExtensions:[],__configuration:null,__extensions:n?[n]:[],__selectorExtensions:[],api:{},dependencies:[],editor:{},handlers:{},inject:{},node:{type:r},options:{},override:{},parser:{},parsers:{},plugins:[],priority:100,render:{},rules:{},shortcuts:{},transforms:{}},e);return l.node.isLeaf&&!Qi(l.node.isDecoration)&&(l.node.isDecoration=!0),l.configure=s=>{const f={...l};return f.__configuration=h=>sp(s)?s(h):s,cr(f)},l.configurePlugin=(s,f)=>{const h={...l},p=b=>{let S=!1;const C=b.map(A=>{if(A.key===s.key)return S=!0,cr({...A,__configuration:x=>sp(f)?f(x):f});if(A.plugins&&A.plugins.length>0){const x=p(A.plugins);if(x.found)return S=!0,{...A,plugins:x.plugins}}return A});return{found:S,plugins:C}},y=p(h.plugins);return h.plugins=y.plugins,cr(h)},l.extendEditorApi=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!1}],cr(f)},l.extendSelectors=s=>{const f={...l};return f.__selectorExtensions=[...f.__selectorExtensions,s],cr(f)},l.extendApi=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!0}],cr(f)},l.extendEditorTransforms=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!1,isTransform:!0}],cr(f)},l.extendTransforms=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!0,isTransform:!0}],cr(f)},l.overrideEditor=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isOverride:!0,isPluginSpecific:!1,isTransform:!0}],cr(f)},l.extend=s=>{let f={...l};return sp(s)?f.__extensions=[...f.__extensions,s]:f=As(f,s),cr(f)},l.clone=()=>As(l),l.extendPlugin=(s,f)=>{const h={...l},p=b=>{let S=!1;const C=b.map(A=>{if(A.key===s.key)return S=!0,cr({...A,__extensions:[...A.__extensions,x=>sp(f)?f(x):f]});if(A.plugins&&A.plugins.length>0){const x=p(A.plugins);if(x.found)return S=!0,{...A,plugins:x.plugins}}return A});return{found:S,plugins:C}},y=p(h.plugins);return h.plugins=y.plugins,y.found||h.plugins.push(cr({key:s.key,__extensions:[b=>sp(f)?f(b):f]})),cr(h)},l.withComponent=s=>l.extend({node:{component:s},render:{node:s}}),l}function kd(e={}){return cr(e)}function fr(e,t){const n=e.getPlugin(t);return{api:e.api,editor:e,plugin:n,setOption:(r,l)=>e.setOption(n,r,l),setOptions:r=>e.setOptions(n,r),tf:e.transforms,type:n.node.type,getOption:(r,...l)=>e.getOption(n,r,...l),getOptions:()=>e.getOptions(n)}}var hF=(e,t)=>{let n=As({},t);if(n.__resolved=!0,n.__configuration){const s=n.__configuration(fr(e,n));n=As(n,s),delete n.__configuration}n.__extensions&&n.__extensions.length>0&&(n.__extensions.forEach(s=>{n=As(n,s(fr(e,n)))}),n.__extensions=[]);const r=n.inject?.targetPluginToInject,l=n.inject?.targetPlugins;return r&&l&&l.length>0&&(n.inject=n.inject||{},n.inject.plugins=ei({},n.inject.plugins,Object.fromEntries(l.map(s=>{const f=r({...fr(e,n),targetPlugin:s});return[s,f]})))),n.node?.component&&(n.render.node=n.node.component),n.render?.node&&(n.node.component=n.render.node),ZJ(e,n),n},ZJ=(e,t)=>{t.__extensions||e.api.debug.error(`Invalid plugin '${t.key}', you should use createSlatePlugin.`,"USE_CREATE_PLUGIN"),t.node.isElement&&t.node.isLeaf&&e.api.debug.error(`Plugin ${t.key} cannot be both an element and a leaf.`,"PLUGIN_NODE_TYPE")};function QJ(e,t){let n=t;const r=e.plugins[t.key];return r||(n.node||(n=cr(n)),n.__resolved?n:hF(e,n))}function WJ(e,t){const n=e.getPlugin({key:t});return n.node.type??n.key??""}var xD=(e,t)=>e.meta.pluginCache.node.types[t],JJ=(e,t)=>t.map(n=>xD(e,n)??n).filter(Boolean),ti=(e,t)=>{const n=xD(e,t);return n?e.getPlugin({key:n}):null},eee=(e,t=[])=>{e.plugins={},e.meta.pluginList=[],e.meta.shortcuts={},e.meta.components={},e.meta.pluginCache={decorate:[],handlers:{onChange:[],onNodeChange:[],onTextChange:[]},inject:{nodeProps:[]},node:{isContainer:[],isLeaf:[],isText:[],leafProps:[],textProps:[],types:{}},normalizeInitialValue:[],render:{aboveEditable:[],aboveNodes:[],aboveSlate:[],afterContainer:[],afterEditable:[],beforeContainer:[],beforeEditable:[],belowNodes:[],belowRootNodes:[]},rules:{match:[]},useHooks:[]};const n=iee(e,t);return lee(e,n),uee(e),tee(e),e.meta.pluginList.forEach(r=>{r.extendEditor&&(e=r.extendEditor(fr(e,r)),L4(e)),nee(e,r),r.node?.isContainer&&e.meta.pluginCache.node.isContainer.push(r.key),e.meta.pluginCache.node.types[r.node.type]=r.key,r.inject?.nodeProps&&e.meta.pluginCache.inject.nodeProps.push(r.key),r.render?.node&&(e.meta.components[r.key]=r.render.node),r.node?.isLeaf&&(r.node?.isDecoration===!0||r.render.leaf)&&e.meta.pluginCache.node.isLeaf.push(r.key),r.node.isLeaf&&r.node.isDecoration===!1&&e.meta.pluginCache.node.isText.push(r.key),r.node?.leafProps&&e.meta.pluginCache.node.leafProps.push(r.key),r.node.textProps&&e.meta.pluginCache.node.textProps.push(r.key),r.render.aboveEditable&&e.meta.pluginCache.render.aboveEditable.push(r.key),r.render.aboveSlate&&e.meta.pluginCache.render.aboveSlate.push(r.key),r.render.afterEditable&&e.meta.pluginCache.render.afterEditable.push(r.key),r.render.beforeEditable&&e.meta.pluginCache.render.beforeEditable.push(r.key),r.rules?.match&&e.meta.pluginCache.rules.match.push(r.key),r.render.afterContainer&&e.meta.pluginCache.render.afterContainer.push(r.key),r.render.beforeContainer&&e.meta.pluginCache.render.beforeContainer.push(r.key),r.render.belowRootNodes&&e.meta.pluginCache.render.belowRootNodes.push(r.key),r.normalizeInitialValue&&e.meta.pluginCache.normalizeInitialValue.push(r.key),r.decorate&&e.meta.pluginCache.decorate.push(r.key),r.render.aboveNodes&&e.meta.pluginCache.render.aboveNodes.push(r.key),r.render.belowNodes&&e.meta.pluginCache.render.belowNodes.push(r.key),r.useHooks&&e.meta.pluginCache.useHooks.push(r.key),r.handlers?.onChange&&e.meta.pluginCache.handlers.onChange.push(r.key),r.handlers?.onNodeChange&&e.meta.pluginCache.handlers.onNodeChange.push(r.key),r.handlers?.onTextChange&&e.meta.pluginCache.handlers.onTextChange.push(r.key)}),ree(e),e},tee=e=>{e.meta.pluginList.forEach(t=>{let n=fP(t.options,{mutative:!0,name:t.key});t.__selectorExtensions&&t.__selectorExtensions.length>0&&t.__selectorExtensions.forEach(r=>{const l=r(fr(e,t));n=n.extendSelectors(()=>l)}),t.optionsStore=n})},nee=(e,t)=>{Object.entries(t.api).forEach(([n,r])=>{e.api[n]=r}),t.__apiExtensions&&t.__apiExtensions.length>0&&(t.__apiExtensions.forEach(({extension:n,isOverride:r,isPluginSpecific:l,isTransform:s})=>{const f=n(fr(e,t));r?(f.api&&(ei(e.api,f.api),ei(t.api,f.api),F4(e,e.api)),f.transforms&&(ei(e.transforms,f.transforms),ei(t.transforms,f.transforms),j4(e,f.transforms))):s?l?(e.transforms[t.key]||(e.transforms[t.key]={}),t.transforms[t.key]||(t.transforms[t.key]={}),ei(e.transforms[t.key],f),ei(t.transforms[t.key],f)):(ei(e.transforms,f),ei(t.transforms,f),j4(e,f)):l?(e.api[t.key]||(e.api[t.key]={}),t.api[t.key]||(t.api[t.key]={}),ei(e.api[t.key],f),ei(t.api[t.key],f)):(ei(e.api,f),ei(t.api,f),F4(e,e.api))}),delete t.__apiExtensions)},ree=e=>{e.meta.shortcuts={},e.meta.pluginList.forEach(t=>{Object.entries(t.shortcuts).forEach(([n,r])=>{const l=`${t.key}.${n}`;if(r===null)delete e.meta.shortcuts[l];else if(r&&typeof r=="object"){const s={...r};if(!s.handler){const f=t.transforms?.[t.key],h=t.api?.[t.key];f?.[n]?s.handler=()=>f[n]():h?.[n]&&(s.handler=()=>h[n]())}s.priority=s.priority??t.priority,e.meta.shortcuts[l]=s}})})},aee=(e,t)=>{const n=new Map,r=l=>{const s=hF(e,l);if(s.key){const f=n.get(s.key);f?n.set(s.key,As(f,s)):n.set(s.key,s)}s.plugins&&s.plugins.length>0&&s.plugins.forEach(r)};return t.forEach(r),n},iee=(e,t)=>{const n=aee(e,t),r=Array.from(n.values()).filter(h=>h.enabled!==!1);r.sort((h,p)=>p.priority-h.priority);const l=[],s=new Set,f=h=>{s.has(h.key)||(s.add(h.key),h.dependencies?.forEach(p=>{const y=n.get(p);y?f(y):e.api.debug.warn(`Plugin "${h.key}" depends on missing plugin "${p}"`,"PLUGIN_DEPENDENCY_MISSING")}),l.push(h))};return r.forEach(f),l},lee=(e,t)=>{e.meta.pluginList=t,e.plugins=Object.fromEntries(t.map(n=>[n.key,n]))},uee=e=>{const t=n=>{let r=[...n];const l={},s={},f={};for(const h of n)h.override.enabled&&Object.assign(l,h.override.enabled),h.override.components&&Object.entries(h.override.components).forEach(([p,y])=>{(!s[p]||h.priority>s[p].priority)&&(s[p]={component:y,priority:h.priority})}),h.override.plugins&&Object.entries(h.override.plugins).forEach(([p,y])=>{f[p]=As(f[p],y),y.enabled!==void 0&&(l[p]=y.enabled)});return r=r.map(h=>{let p={...h};f[h.key]&&(p=As(p,f[h.key])),s[h.key]&&(!h.render.node&&!h.node.component||s[h.key].priority>h.priority)&&(p.render.node=s[h.key].component,p.node.component=s[h.key].component);const y=l[h.key]??p.enabled;return Qi(y)&&(p.enabled=y),p}),r.filter(h=>h.enabled!==!1).map(h=>({...h,plugins:t(h.plugins||[])}))};e.meta.pluginList=t(e.meta.pluginList),e.plugins=Object.fromEntries(e.meta.pluginList.map(n=>[n.key,n]))},oee=cr({key:"ast",parser:{format:"application/x-slate-fragment",deserialize:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch{}return n}}}),see=({editor:e})=>Y4(e),cee=cr({key:"history",extendEditor:see}),Yy=cr({key:"p",node:{isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"P"}],query:({element:e})=>e.style.fontFamily!=="Consolas"}}},rules:{merge:{removeEmpty:!0}}}),fee=e=>{const{editor:t,tf:{insertBreak:n}}=e,r=(s,f,h)=>{const p=t.meta.pluginCache.rules.match;for(const y of p){const b=t.getPlugin({key:y});if(b.rules?.break&&b.rules?.match?.({...e,node:f,path:h,rule:s}))return b.rules.break}return null},l=(s,f)=>s==="reset"?(t.tf.resetBlock({at:f}),!0):s==="exit"?(t.tf.insertExitBreak(),!0):s==="deleteExit"?(t.tf.deleteBackward("character"),t.tf.insertExitBreak(),!0):s==="lineBreak"?(t.tf.insertSoftBreak(),!0):!1;return{transforms:{insertBreak(){if(t.selection&&t.api.isCollapsed()){const s=t.api.block();if(s){const[f,h]=s,y=ti(t,f.type)?.rules.break;if(t.api.isEmpty(t.selection,{block:!0})){const B=(r("break.empty",f,h)||y)?.empty;if(l(B,h))return}if(!t.api.isEmpty(t.selection,{block:!0})&&t.api.isAt({end:!0})){const x=t.api.range("before",t.selection);if(x&&t.api.string(x)===`
330
+ `){const O=(r("break.emptyLineEnd",f,h)||y)?.emptyLineEnd;if(l(O,h))return}}const S=(r("break.default",f,h)||y)?.default;if(l(S,h))return;if(r("break.splitReset",f,h)?.splitReset??y?.splitReset){const x=t.api.isAt({start:!0});n(),t.tf.resetBlock({at:x?h:ot.next(h)});return}}}n()}}}},dee=e=>{const{editor:t,tf:{deleteBackward:n,deleteForward:r,deleteFragment:l}}=e,s=()=>{t.api.isAt({start:!0})&&t.tf.removeMarks()},f=(p,y,b)=>{const S=t.meta.pluginCache.rules.match;for(const C of S){const A=t.getPlugin({key:C});if(A.rules?.delete&&A.rules?.match?.({...e,node:y,path:b,rule:p}))return A.rules.delete}return null},h=(p,y)=>p==="reset"?(t.tf.resetBlock({at:y}),!0):!1;return{transforms:{deleteBackward(p){if(t.selection&&t.api.isCollapsed()){const y=t.api.block();if(y){const[b,S]=y,A=ti(t,b.type)?.rules.delete;if(t.api.isAt({start:!0})){const B=(f("delete.start",b,S)||A)?.start;if(h(B,S))return}if(t.api.isEmpty(t.selection,{block:!0})){const B=(f("delete.empty",b,S)||A)?.empty;if(h(B,S))return}}if(Kc.equals(t.selection.anchor,t.api.start([]))){t.tf.resetBlock({at:[0]});return}}n(p),s()},deleteForward(p){r(p),s()},deleteFragment(p){if(t.selection&&on.equals(t.selection,t.api.range([]))){t.tf.reset({children:!0,select:!0});return}l(p),s()}}}},hee=e=>{const{editor:t,tf:{removeNodes:n}}=e,r=(l,s,f)=>{const h=t.meta.pluginCache.rules.match;for(const p of h){const y=t.getPlugin({key:p});if(y.rules.merge&&y.rules?.match?.({...e,node:s,path:f,rule:l}))return y.rules.merge}return null};return{api:{shouldMergeNodes(l,s,{reverse:f}={}){const[h,p]=l,[,y]=s,[b,S]=f?l:s,[C,A]=f?s:l;if(Cn.isText(h)&&h.text===""&&p.at(-1)!==0)return t.tf.removeNodes({at:p}),!1;const x=(_,B)=>{const R=ti(t,_.type);return R?!(!R.rules.merge?.removeEmpty||r("merge.removeEmpty",_,B)?.removeEmpty===!1):!0};return ct.isElement(C)&&t.api.isVoid(C)?(x(C,A)?t.tf.removeNodes({at:p}):ct.isElement(b)&&t.api.isEmpty(b)&&t.tf.removeNodes({at:S}),!1):ct.isElement(h)&&t.api.isEmpty(h)&&ot.isSibling(p,y)&&x(h,p)?(t.tf.removeNodes({at:p}),!1):!0}},transforms:{removeNodes(l={}){if(l.event?.type==="mergeNodes"&&l.at){const s=t.api.node(l.at);if(s){const[f,h]=s;if(ct.isElement(f)){const p=ti(t,f.type);if(p){const y=p.rules.merge;if(r("merge.removeEmpty",f,h)?.removeEmpty===!1||y?.removeEmpty===!1)return}}}}n(l)}}}},vee=e=>{const{editor:t,tf:{normalizeNode:n}}=e,r=(l,s,f)=>{const h=t.meta.pluginCache.rules.match;for(const p of h){const y=t.getPlugin({key:p});if(y.rules?.normalize&&y.rules?.match?.({...e,node:s,path:f,rule:l}))return y.rules.normalize}return null};return{transforms:{normalizeNode([l,s]){if(ct.isElement(l)&&l.type){const h=ti(t,l.type)?.rules.normalize;if((r("normalize.removeEmpty",l,s)||h)?.removeEmpty&&t.api.isEmpty(l)){t.tf.removeNodes({at:s});return}}n([l,s])}}}},pee=({api:{isInline:e,isSelectable:t,isVoid:n,markableVoid:r},editor:l})=>({api:{create:{block:s=>({children:[{text:""}],type:l.getType(Yy.key),...s})},isInline(s){return ti(l,s.type)?.node.isInline?!0:e(s)},isSelectable(s){return ti(l,s.type)?.node.isSelectable===!1?!1:t(s)},isVoid(s){return ti(l,s.type)?.node.isVoid?!0:n(s)},markableVoid(s){return ti(l,s.type)?.node.isMarkableVoid?!0:r(s)}}}),mee=cr({key:"override"}).overrideEditor(pee).overrideEditor(fee).overrideEditor(dee).overrideEditor(hee).overrideEditor(vee),gee=(e,t,{fragment:n,...r})=>{e.tf.withoutNormalizing(()=>{t.some(l=>l.parser?.preInsert?.({...fr(e,l),fragment:n,...r})===!0),e.tf.insertFragment(n)})},yee=(e,t,{data:n,...r})=>(t.forEach(l=>{const s=l.parser?.transformData;s&&(n=s({...fr(e,l),data:n,...r}))}),n),bee=(e,t,{fragment:n,...r})=>(t.forEach(l=>{const s=l.parser?.transformFragment;s&&(n=s({fragment:n,...r,...fr(e,l)}))}),n),Ky=({apply:e,node:t,path:n=[],query:r,source:l})=>{Zc([t,n],r)&&(typeof l=="function"?e(t,l()):e(t,l)),at.isAncestor(t)&&t.children.forEach((f,h)=>{Ky({apply:e,node:f,path:n.concat([h]),query:r,source:l})})},Eee=e=>{Ky({...e,apply:L8})},Dee=(e,t)=>(n,r)=>{const{inject:{excludeBelowPlugins:l,excludePlugins:s,isBlock:f,isElement:h,isLeaf:p,maxLevel:y,targetPlugins:b}}=t,S=ct.isElement(n)?n:void 0;if(h&&!S||f&&(!S||!e.api.isBlock(S))||p&&S||S?.type&&(s?.includes(xD(e,S.type))||b&&!b.includes(xD(e,S.type))))return!1;if(l||y){if(y&&r.length>y)return!1;if(l){const C=JJ(e,l);if(e.api.above({at:r,match:x=>ct.isElement(x)&&C.includes(x.type)}))return!1}}return!0},vF=(e,t)=>{const n=[];return[...e.meta.pluginList].reverse().forEach(r=>{const l=r.inject.plugins?.[t.key];l&&n.push(l)}),[t,...n]},C2=(e,t)=>({...e.attributes,className:na(e.attributes.className,e.className)||void 0,ref:t,style:{...e.attributes.style,...e.style}}),pF=k.forwardRef(function({as:t="div",children:n,...r},l){const s=C2(r,l),f=!!r.element.id&&!!r.editor.api.isBlock(r.element);return k.createElement(t,{"data-slate-node":"element","data-slate-inline":s["data-slate-inline"],"data-block-id":f?r.element.id:void 0,...s,style:{position:"relative",...s?.style}},n)}),mF=k.forwardRef(({as:e="span",children:t,...n},r)=>{const l=C2(n,r);return k.createElement(e,{...l},t)}),gF=()=>k.createElement("span",{style:{fontSize:0,lineHeight:0},contentEditable:!1},String.fromCodePoint(160)),yF=k.forwardRef(({as:e="span",children:t,inset:n,...r},l)=>{const s=C2(r,l);return n?k.createElement(k.Fragment,null,k.createElement(gF,null),k.createElement(e,{...s},t,k.createElement(gF,null))):k.createElement(e,{...s},t)}),w2=(e,t,{isElement:n,isLeaf:r,isText:l})=>Object.keys(t).reduce((f,h)=>{if(typeof t[h]=="object"||n&&h==="children"||(r||l)&&h==="text")return f;const p=e.getPlugin({key:h});if(r&&p?.node.isLeaf&&p?.node.isDecoration!==!0||l&&p?.node.isLeaf&&p?.node.isDecoration!==!1)return f;const y=bF(h);return{...f,[y]:t[h]}},{}),See=(e,t,n)=>{const r=t.node.isElement,l=t.node.isLeaf&&t.node.isDecoration===!0,s=t.node.isLeaf&&t.node.isDecoration===!1,f=w2(e,n,{isElement:r,isLeaf:l,isText:s}),h=t.node.toDataAttributes?.({...t?fr(e,t):{},node:n})??{};return{...f,...h}},Cee=e=>Object.keys(e).filter(t=>typeof e[t]!="object"&&(!Cn.isText(e)||t!=="text")).map(t=>bF(t)),bF=e=>`data-slate-${o6(e)}`,EF={handlers:!0,inject:!0,normalizeInitialValue:!1,render:!0},ni=(e,t,n)=>e?t.editOnly===!0?EF[n]:typeof t.editOnly=="object"?t.editOnly[n]??EF[n]:!1:!1,wee=(e,t,n,r)=>{const{key:l,inject:{nodeProps:s}}=t,{element:f,text:h}=n,p=f??h;if(!p||!s)return;const{classNames:y,defaultNodeValue:b,nodeKey:S=e.getType(l),query:C,styleKey:A=S,transformClassName:x,transformNodeValue:_,transformProps:B,transformStyle:R,validNodeValues:O}=s;if(!Dee(e,t)(p,r(p)))return;const P=C?.({...s,...fr(e,t),nodeProps:n});if(C&&!P)return;const L=p[S];if(!B&&(!Qi(L)||O&&!O.includes(L)||L===b))return;const Y={...n,...fr(e,t),nodeValue:L},G=_?.(Y)??L;Y.value=G;let z={};return f&&S&&L&&(z.className=`slate-${S}-${L}`),(y?.[L]||x)&&(z.className=x?.(Y)??y?.[G]),A&&(z.style=R?.(Y)??{[A]:G}),B&&(z=B({...Y,props:z})??z),z},DF=(e,t,n,r=!1)=>(e.meta.pluginCache.inject.nodeProps.forEach(l=>{const s=e.getPlugin({key:l}),f=wee(e,s,t,n);if(ni(r,s,"inject")||!f)return;const h=t.attributes;t.attributes={...h,...f,className:na(h?.className,f.className)||void 0,style:{...h?.style,...f.style}}}),t),cp=({attributes:e,editor:t,node:n,plugin:r,props:l})=>{let s={...l,...r?fr(t,r):{api:t.api,editor:t,tf:t.transforms}};const{className:f}=l,h=d7({attributes:e,node:n,plugin:r,props:s});return s={...h,attributes:{...h.attributes,className:na(h7(r?.node.type),f)||void 0}},s=DF(t,s,p=>t.api.findPath(p)),s.style&&Object.keys(s.style).length===0&&delete s.style,s},SF=e=>{const t=window.getSelection();if(!t||t.rangeCount===0)return[];const l=t.getRangeAt(0).cloneContents().querySelectorAll('[data-slate-node="element"][data-slate-id]'),s=Array.from(l);if(s.length===0)return[];const f=[];return s.forEach((h,p)=>{const y=h.dataset.slateId,b=e.api.node({id:y,at:[]});if(!(!b||b[1].length!==1))if((p===0||p===s.length-1)&&h.textContent?.trim()!==at.string(b[0])&&ct.isElement(b[0])&&!e.api.isVoid(b[0])){const S=document.createElement("div");S.append(h);const C=e.api.html.deserialize({element:S});f.push(C[0])}else f.push(b[0])}),f},CF=()=>{const e=window.getSelection();if(!e||e.rangeCount===0)return;const n=e.getRangeAt(0).cloneContents(),r=document.createElement("div");return r.append(n),r},Aee=e=>{const t=e??CF();return t?!!t?.querySelector('[data-slate-editor="true"'):!1},Oee=(e,t)=>{if(!(e.meta.pluginCache.decorate.length===0&&!t))return n=>{let r=[];const l=s=>{s?.length&&(r=[...r,...s])};return e.meta.pluginCache.decorate.forEach(s=>{const f=e.getPlugin({key:s});l(f.decorate({...fr(e,f),entry:n}))}),t&&l(t({editor:e,entry:n})),r}},xee=(e,t)=>function(r){const l=r.element,s=e.meta.components?.[t.key],f=s??pF;let{children:h}=r;const p=See(e,t,l);r=cp({attributes:{...l.attributes,...p},editor:e,node:l,plugin:t,props:r}),e.meta.pluginCache.render.belowNodes.forEach(S=>{const C=e.getPlugin({key:S}).render.belowNodes({...r,key:S});C&&(h=C({...r,children:h}))});const y=s?{}:{as:t.render?.as};let b=k.createElement(f,{...y,...r},h,e.meta.pluginCache.render.belowRootNodes.map(S=>{const A=e.getPlugin({key:S}).render.belowRootNodes;return k.createElement(A,{key:S,...y,...r})}));return e.meta.pluginCache.render.aboveNodes.forEach(S=>{const C=e.getPlugin({key:S}).render.aboveNodes({...r,key:S});C&&(b=C({...r,children:b}))}),b},Tee=(e,{renderElement:t}={})=>function(r){const l=ti(e,r.element.type);if(l?.node.isElement)return xee(e,l)(r);if(t)return t(r);const s=cp({editor:e,props:{...r}});return k.createElement(pF,{...s},r.children,e.meta.pluginCache.render.belowRootNodes.map(f=>{const p=e.getPlugin({key:f}).render.belowRootNodes;return k.createElement(p,{key:f,...s})}))},Bee=(e,t)=>function(r){const{children:l,text:s}=r;if(s[t.node.type??t.key]){const f=e.meta.components?.[t.key],h=f??mF,p=cp({attributes:{...s.attributes},editor:e,node:s,plugin:t,props:r}),y=f?{}:{as:t.render?.as};return k.createElement(h,{...y,...p},l)}return l},_ee=(e,{renderText:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isText.forEach(l=>{const s=e.getPlugin({key:l});s&&n.push(Bee(e,s))}),e.meta.pluginCache.node.textProps.forEach(l=>{const s=e.getPlugin({key:l});s&&r.push(s)}),function({attributes:s,...f}){if(n.forEach(b=>{const S=b(f);S!==void 0&&(f.children=S)}),r.forEach(b=>{if(f.text[b.node.type??b.key]){const S=typeof b.node.textProps=="function"?b.node.textProps(f):b.node.textProps??{};S.className&&(S.className=na(f.className,S.className)),s={...s,...S}}}),t)return t({attributes:s,...f});const h=cp({editor:e,props:{attributes:s,...f}}),p=h.text,y=w2(e,p,{isText:!0});return k.createElement(mF,{...h,attributes:{...h.attributes,...y}})}};function Ree({decorate:e,decorations:t,editor:n,element:r={children:[],type:""}}){const l=Tee(n),s={"data-slate-node":"element",ref:null};let f=k.createElement(wF,{decorate:e,decorations:t,editor:n},r.children);return n.api.isVoid(r)&&(s["data-slate-void"]=!0,f=k.createElement("span",{style:{color:"transparent",height:"0",outline:"none",position:"absolute"},"data-slate-spacer":!0},k.createElement(wF,{decorate:e,decorations:t,editor:n},r.children))),n.api.isInline(r)&&(s["data-slate-inline"]=!0),k.createElement(k.Fragment,null,l?.({attributes:s,children:f,element:r}))}var Nee=k.memo(Ree,(e,t)=>(e.element===t.element||e.element._memo!==void 0&&e.element._memo===t.element._memo)&&Ay(e.decorations,t.decorations));function Mee({decorations:e,editor:t,text:n={text:""}}){const r=jee(t),l=_ee(t),f=Cn.decorations(n,e).map(({leaf:h,position:p},y)=>{const b=r({attributes:{"data-slate-leaf":!0},children:k.createElement("span",{"data-slate-string":!0},h.text===""?"\uFEFF":h.text),leaf:h,leafPosition:p,text:h});return k.createElement(k.Fragment,{key:y},b)});return l({attributes:{"data-slate-node":"text",ref:null},children:f,text:n})}var zee=k.memo(Mee,(e,t)=>Cn.equals(t.text,e.text)&&kE(t.decorations,e.decorations)),kee=()=>[];function wF({children:e=[],decorate:t=kee,decorations:n=[],editor:r}){return k.createElement(k.Fragment,null,e.map((l,s)=>{const f=r.api.findPath(l);let h=[];if(f){const p=r.api.range(f);h=t([l,f]);for(const y of n){const b=on.intersection(y,p);b&&h.push(b)}}return ct.isElement(l)?k.createElement(Nee,{key:s,decorate:t,decorations:h,editor:r,element:l}):k.createElement(zee,{key:s,decorations:h,editor:r,text:l})}))}var Pee=(e,t)=>function(r){const{children:l,leaf:s}=r;if(s[t.node.type]){const f=t.render.leaf??e.meta.components?.[t.key],h=f??yF,p=cp({attributes:{...s.attributes},editor:e,node:s,plugin:t,props:r}),y=f?{}:{as:t.render?.as};return k.createElement(h,{...y,...p},l)}return l},jee=(e,{renderLeaf:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isLeaf.forEach(l=>{const s=e.getPlugin({key:l});s&&n.push(Pee(e,s))}),e.meta.pluginCache.node.leafProps.forEach(l=>{const s=e.getPlugin({key:l});s&&r.push(s)}),function({attributes:s,...f}){if(n.forEach(b=>{const S=b(f);S!==void 0&&(f.children=S)}),r.forEach(b=>{if(f.leaf[b.node.type]){const S=typeof b.node.leafProps=="function"?b.node.leafProps(f):b.node.leafProps??{};S.className&&(S.className=na(f.className,S.className)),s={...s,...S}}}),t)return t({attributes:s,...f});const h=cp({editor:e,props:{attributes:s,...f}}),p=h.leaf,y=w2(e,p,{isLeaf:!0});return k.createElement(yF,{...h,attributes:{...h.attributes,...y}})}},AF=e=>e.dataset.slateVoid==="true",Fee=e=>e.dataset.slateNode==="element",Lee=e=>e.dataset.slateNode==="text",qee=e=>e.dataset.slateString==="true",OF=e=>e.dataset.slateLeaf==="true",TD=e=>OF(e)||Fee(e)||AF(e)||qee(e)||Lee(e),Uee=(e,t)=>e.classList.contains(`slate-${t}`),xF=Symbol.for("immer-nothing"),TF=Symbol.for("immer-draftable"),rl=Symbol.for("immer-state"),Hee=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Ci(e,...t){if(process.env.NODE_ENV!=="production"){const n=Hee[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fp=Object.getPrototypeOf;function dp(e){return!!e&&!!e[rl]}function Pd(e){return e?BF(e)||Array.isArray(e)||!!e[TF]||!!e.constructor?.[TF]||RD(e)||ND(e):!1}var $ee=Object.prototype.constructor.toString();function BF(e){if(!e||typeof e!="object")return!1;const t=fp(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)===$ee}function BD(e,t){_D(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function _D(e){const t=e[rl];return t?t.type_:Array.isArray(e)?1:RD(e)?2:ND(e)?3:0}function A2(e,t){return _D(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _F(e,t,n){const r=_D(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Vee(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function RD(e){return e instanceof Map}function ND(e){return e instanceof Set}function jd(e){return e.copy_||e.base_}function O2(e,t){if(RD(e))return new Map(e);if(ND(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=BF(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[rl];let l=Reflect.ownKeys(r);for(let s=0;s<l.length;s++){const f=l[s],h=r[f];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(r[f]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[f]})}return Object.create(fp(e),r)}else{const r=fp(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function x2(e,t=!1){return MD(e)||dp(e)||!Pd(e)||(_D(e)>1&&(e.set=e.add=e.clear=e.delete=Gee),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>x2(r,!0))),e}function Gee(){Ci(2)}function MD(e){return Object.isFrozen(e)}var Iee={};function Fd(e){const t=Iee[e];return t||Ci(0,e),t}var Xy;function RF(){return Xy}function Yee(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function NF(e,t){t&&(Fd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function T2(e){B2(e),e.drafts_.forEach(Kee),e.drafts_=null}function B2(e){e===Xy&&(Xy=e.parent_)}function MF(e){return Xy=Yee(Xy,e)}function Kee(e){const t=e[rl];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[rl].modified_&&(T2(t),Ci(4)),Pd(e)&&(e=zD(t,e),t.parent_||kD(t,e)),t.patches_&&Fd("Patches").generateReplacementPatches_(n[rl].base_,e,t.patches_,t.inversePatches_)):e=zD(t,n,[]),T2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xF?e:void 0}function zD(e,t,n){if(MD(t))return t;const r=t[rl];if(!r)return BD(t,(l,s)=>kF(e,r,t,l,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return kD(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const l=r.copy_;let s=l,f=!1;r.type_===3&&(s=new Set(l),l.clear(),f=!0),BD(s,(h,p)=>kF(e,r,l,h,p,n,f)),kD(e,l,!1),n&&e.patches_&&Fd("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function kF(e,t,n,r,l,s,f){if(process.env.NODE_ENV!=="production"&&l===n&&Ci(5),dp(l)){const h=s&&t&&t.type_!==3&&!A2(t.assigned_,r)?s.concat(r):void 0,p=zD(e,l,h);if(_F(n,r,p),dp(p))e.canAutoFreeze_=!1;else return}else f&&n.add(l);if(Pd(l)&&!MD(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;zD(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&kD(e,l)}}function kD(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x2(t,n)}function Xee(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:RF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,s=_2;n&&(l=[r],s=Zy);const{revoke:f,proxy:h}=Proxy.revocable(l,s);return r.draft_=h,r.revoke_=f,h}var _2={get(e,t){if(t===rl)return e;const n=jd(e);if(!A2(n,t))return Zee(e,n,t);const r=n[t];return e.finalized_||!Pd(r)?r:r===R2(e.base_,t)?(M2(e),e.copy_[t]=z2(r,e)):r},has(e,t){return t in jd(e)},ownKeys(e){return Reflect.ownKeys(jd(e))},set(e,t,n){const r=PF(jd(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=R2(jd(e),t),s=l?.[rl];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Vee(n,l)&&(n!==void 0||A2(e.base_,t)))return!0;M2(e),N2(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 R2(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,M2(e),N2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=jd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ci(11)},getPrototypeOf(e){return fp(e.base_)},setPrototypeOf(){Ci(12)}},Zy={};BD(_2,(e,t)=>{Zy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Zy.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ci(13),Zy.set.call(this,e,t,void 0)},Zy.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ci(14),_2.set.call(this,e[0],t,n,e[0])};function R2(e,t){const n=e[rl];return(n?jd(n):e)[t]}function Zee(e,t,n){const r=PF(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function PF(e,t){if(!(t in e))return;let n=fp(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=fp(n)}}function N2(e){e.modified_||(e.modified_=!0,e.parent_&&N2(e.parent_))}function M2(e){e.copy_||(e.copy_=O2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qee=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,l)=>{if(typeof n=="function"&&typeof r!="function"){const f=r;r=n;const h=this;return function(y=f,...b){return h.produce(y,S=>r.call(this,S,...b))}}typeof r!="function"&&Ci(6),l!==void 0&&typeof l!="function"&&Ci(7);let s;if(Pd(n)){const f=MF(this),h=z2(n,void 0);let p=!0;try{s=r(h),p=!1}finally{p?T2(f):B2(f)}return NF(f,l),zF(s,f)}else if(!n||typeof n!="object"){if(s=r(n),s===void 0&&(s=n),s===xF&&(s=void 0),this.autoFreeze_&&x2(s,!0),l){const f=[],h=[];Fd("Patches").generateReplacementPatches_(n,s,f,h),l(f,h)}return s}else Ci(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(h,...p)=>this.produceWithPatches(h,y=>n(y,...p));let l,s;return[this.produce(n,r,(h,p)=>{l=h,s=p}),l,s]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Pd(t)||Ci(8),dp(t)&&(t=Wee(t));const n=MF(this),r=z2(t,void 0);return r[rl].isManual_=!0,B2(n),r}finishDraft(t,n){const r=t&&t[rl];(!r||!r.isManual_)&&Ci(9);const{scope_:l}=r;return NF(l,n),zF(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const s=n[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(n=n.slice(r+1));const l=Fd("Patches").applyPatches_;return dp(t)?l(t,n):this.produce(t,s=>l(s,n))}};function z2(e,t){const n=RD(e)?Fd("MapSet").proxyMap_(e,t):ND(e)?Fd("MapSet").proxySet_(e,t):Xee(e,t);return(t?t.scope_:RF()).drafts_.push(n),n}function Wee(e){return dp(e)||Ci(10,e),jF(e)}function jF(e){if(!Pd(e)||MD(e))return e;const t=e[rl];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=O2(e,t.scope_.immer_.useStrictShallowCopy_)}else n=O2(e,!0);return BD(n,(r,l)=>{_F(n,r,jF(l))}),t&&(t.finalized_=!1),n}var al=new Qee,Jee=al.produce;al.produceWithPatches.bind(al),al.setAutoFreeze.bind(al),al.setUseStrictShallowCopy.bind(al),al.applyPatches.bind(al),al.createDraft.bind(al),al.finishDraft.bind(al);var je={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=je.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 l=e[r],s=t[r];if(l!==s)break;n.push(l)}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),l=t.slice(0,n),s=e[n],f=t[n];return je.equals(r,l)&&s>f},endsAt(e,t){var n=e.length,r=e.slice(0,n),l=t.slice(0,n);return je.equals(r,l)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),l=t.slice(0,n),s=e[n],f=t[n];return je.equals(r,l)&&s<f},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 je.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&je.compare(e,t)===0},isBefore(e,t){return je.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&je.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&je.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&je.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&je.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),l=e[e.length-1],s=t[t.length-1];return l!==s&&je.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],l=0;l<=e.length;l++)r.push(e.slice(0,l));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(!je.isAncestor(t,e)&&!je.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:l="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:s}=t;(je.equals(s,r)||je.endsBefore(s,r)||je.isAncestor(s,r))&&(r[s.length-1]+=1);break}case"remove_node":{var{path:f}=t;if(je.equals(f,r)||je.isAncestor(f,r))return null;je.endsBefore(f,r)&&(r[f.length-1]-=1);break}case"merge_node":{var{path:h,position:p}=t;je.equals(h,r)||je.endsBefore(h,r)?r[h.length-1]-=1:je.isAncestor(h,r)&&(r[h.length-1]-=1,r[h.length]+=p);break}case"split_node":{var{path:y,position:b}=t;if(je.equals(y,r)){if(l==="forward")r[r.length-1]+=1;else if(l!=="backward")return null}else je.endsBefore(y,r)?r[y.length-1]+=1:je.isAncestor(y,r)&&e[y.length]>=b&&(r[y.length-1]+=1,r[y.length]-=b);break}case"move_node":{var{path:S,newPath:C}=t;if(je.equals(S,C))return r;if(je.isAncestor(S,r)||je.equals(S,r)){var A=C.slice();return je.endsBefore(S,C)&&S.length<C.length&&(A[S.length-1]-=1),A.concat(r.slice(S.length))}else je.isSibling(S,C)&&(je.isAncestor(C,r)||je.equals(C,r))?je.endsBefore(S,r)?r[S.length-1]-=1:r[S.length-1]+=1:je.endsBefore(C,r)||je.equals(C,r)||je.isAncestor(C,r)?(je.endsBefore(S,r)&&(r[S.length-1]-=1),r[C.length-1]+=1):je.endsBefore(S,r)&&(je.equals(C,r)&&(r[C.length-1]+=1),r[S.length-1]-=1);break}}return r}};function Qy(e){"@babel/helpers - typeof";return Qy=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},Qy(e)}function ete(e,t){if(Qy(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qy(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tte(e){var t=ete(e,"string");return Qy(t)==="symbol"?t:String(t)}function hp(e,t,n){return t=tte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FF(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var LF=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),s=2;s<r;s++)l[s-2]=arguments[s];return[...t.slice(0,n),...l,...t.slice(n)]},Wy=function(t,n,r){for(var l=arguments.length,s=new Array(l>3?l-3:0),f=3;f<l;f++)s[f-3]=arguments[f];return[...t.slice(0,n),...s,...t.slice(n+r)]},qF=Wy,k2=(e,t,n)=>{if(t.length===0)throw new Error("Cannot modify the editor");for(var r=Yt.get(e,t),l=t.slice(),s=n(r);l.length>1;){var f=l.pop(),h=Yt.get(e,l);s=kn(kn({},h),{},{children:Wy(h.children,f,1,s)})}var p=l.pop();e.children=Wy(e.children,p,1,s)},vp=(e,t,n)=>{t.length===0?e.children=n(e.children):k2(e,t,r=>{if(Xn.isText(r))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(Rl.stringify(r)));return kn(kn({},r),{},{children:n(r.children)})})},UF=(e,t,n)=>k2(e,t,r=>{if(!Xn.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Rl.stringify(r)));return n(r)}),nte={transform(e,t){var n=!1;switch(t.type){case"insert_node":{var{path:r,node:l}=t;vp(e,je.parent(r),le=>{var ue=r[r.length-1];if(ue>le.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return LF(le,ue,l)}),n=!0;break}case"insert_text":{var{path:s,offset:f,text:h}=t;if(h.length===0)break;UF(e,s,le=>{var ue=le.text.slice(0,f),fe=le.text.slice(f);return kn(kn({},le),{},{text:ue+h+fe})}),n=!0;break}case"merge_node":{var{path:p}=t,y=p[p.length-1],b=je.previous(p),S=b[b.length-1];vp(e,je.parent(p),le=>{var ue=le[y],fe=le[S],Ue;if(Xn.isText(ue)&&Xn.isText(fe))Ue=kn(kn({},fe),{},{text:fe.text+ue.text});else if(!Xn.isText(ue)&&!Xn.isText(fe))Ue=kn(kn({},fe),{},{children:fe.children.concat(ue.children)});else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(p,"] to nodes of different interfaces: ").concat(Rl.stringify(ue)," ").concat(Rl.stringify(fe)));return Wy(le,S,2,Ue)}),n=!0;break}case"move_node":{var{path:C,newPath:A}=t,x=C[C.length-1];if(je.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var _=Yt.get(e,C);vp(e,je.parent(C),le=>qF(le,x,1));var B=je.transform(C,t),R=B[B.length-1];vp(e,je.parent(B),le=>LF(le,R,_)),n=!0;break}case"remove_node":{var{path:O}=t,j=O[O.length-1];if(vp(e,je.parent(O),le=>qF(le,j,1)),e.selection){var P=kn({},e.selection);for(var[L,Y]of cn.points(P)){var G=Br.transform(L,t);if(P!=null&&G!=null)P[Y]=G;else{var z=void 0,$=void 0;for(var[Q,I]of Yt.texts(e))if(je.compare(I,O)===-1)z=[Q,I];else{$=[Q,I];break}var H=!1;z&&$&&(je.equals($[1],O)?H=!je.hasPrevious($[1]):H=je.common(z[1],O).length<je.common($[1],O).length),z&&!H?P[Y]={path:z[1],offset:z[0].text.length}:$?P[Y]={path:$[1],offset:0}:P=null}}e.selection=P}break}case"remove_text":{var{path:K,offset:W,text:ne}=t;if(ne.length===0)break;UF(e,K,le=>{var ue=le.text.slice(0,W),fe=le.text.slice(W+ne.length);return kn(kn({},le),{},{text:ue+fe})}),n=!0;break}case"set_node":{var{path:U,properties:Z,newProperties:J}=t;if(U.length===0)throw new Error("Cannot set properties on the root node!");k2(e,U,le=>{var ue=kn({},le);for(var fe in J){if(fe==="children"||fe==="text")throw new Error('Cannot set the "'.concat(fe,'" property of nodes!'));var Ue=J[fe];Ue==null?delete ue[fe]:ue[fe]=Ue}for(var He in Z)J.hasOwnProperty(He)||delete ue[He];return ue});break}case"set_selection":{var{newProperties:he}=t;if(he==null){e.selection=null;break}if(e.selection==null){if(!cn.isRange(he))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Rl.stringify(he)," when there is no current selection."));e.selection=kn({},he);break}var ie=kn({},e.selection);for(var xe in he){var Re=he[xe];if(Re==null){if(xe==="anchor"||xe==="focus")throw new Error('Cannot remove the "'.concat(xe,'" selection property'));delete ie[xe]}else ie[xe]=Re}e.selection=ie;break}case"split_node":{var{path:me,position:ke,properties:Xe}=t,Ye=me[me.length-1];if(me.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(me,"] because the root node cannot be split."));vp(e,je.parent(me),le=>{var ue=le[Ye],fe,Ue;if(Xn.isText(ue)){var He=ue.text.slice(0,ke),ut=ue.text.slice(ke);fe=kn(kn({},ue),{},{text:He}),Ue=kn(kn({},Xe),{},{text:ut})}else{var yt=ue.children.slice(0,ke),Ie=ue.children.slice(ke);fe=kn(kn({},ue),{},{children:yt}),Ue=kn(kn({},Xe),{},{children:Ie})}return Wy(le,Ye,1,fe,Ue)}),n=!0;break}}if(n&&e.selection){var Qe=kn({},e.selection);for(var[ft,ce]of cn.points(Qe))Qe[ce]=Br.transform(ft,t);e.selection=Qe}}},rte={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)}},ate={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)}},Ta=e=>typeof e=="object"&&e!==null,HF=(e,t)=>{for(var n in e){var r=e[n],l=t[n];if(Array.isArray(r)&&Array.isArray(l)){if(r.length!==l.length)return!1;for(var s=0;s<r.length;s++)if(r[s]!==l[s])return!1}else if(Ta(r)&&Ta(l)){if(!HF(r,l))return!1}else if(r!==l)return!1}for(var f in t)if(e[f]===void 0&&t[f]!==void 0)return!1;return!0};function ite(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function Jy(e,t){if(e==null)return{};var n=ite(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var lte=["anchor","focus"];function $F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ute(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$F(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$F(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cn={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:l}=e;return cn.isBackward(e)===n?[r,l]:[l,r]},end(e){var[,t]=cn.edges(e);return t},equals(e,t){return Br.equals(e.anchor,t.anchor)&&Br.equals(e.focus,t.focus)},surrounds(e,t){var n=cn.intersection(e,t);return n?cn.equals(n,t):!1},includes(e,t){if(cn.isRange(t)){if(cn.includes(e,t.anchor)||cn.includes(e,t.focus))return!0;var[n,r]=cn.edges(e),[l,s]=cn.edges(t);return Br.isBefore(n,l)&&Br.isAfter(r,s)}var[f,h]=cn.edges(e),p=!1,y=!1;return Br.isPoint(t)?(p=Br.compare(t,f)>=0,y=Br.compare(t,h)<=0):(p=je.compare(t,f.path)>=0,y=je.compare(t,h.path)<=0),p&&y},intersection(e,t){var n=Jy(e,lte),[r,l]=cn.edges(e),[s,f]=cn.edges(t),h=Br.isBefore(r,s)?s:r,p=Br.isBefore(l,f)?l:f;return Br.isBefore(p,h)?null:ute({anchor:h,focus:p},n)},isBackward(e){var{anchor:t,focus:n}=e;return Br.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Br.equals(t,n)},isExpanded(e){return!cn.isCollapsed(e)},isForward(e){return!cn.isBackward(e)},isRange(e){return Ta(e)&&Br.isPoint(e.anchor)&&Br.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=cn.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="inward"}=n,l,s;if(r==="inward"){var f=cn.isCollapsed(e);cn.isForward(e)?(l="forward",s=f?l:"backward"):(l="backward",s=f?l:"forward")}else r==="outward"?cn.isForward(e)?(l="backward",s="forward"):(l="forward",s="backward"):(l=r,s=r);var h=Br.transform(e.anchor,t,{affinity:l}),p=Br.transform(e.focus,t,{affinity:s});return!h||!p?null:{anchor:h,focus:p}}},VF=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ta(t))return!1;var r=typeof t.apply=="function";if(r)return!1;var l=n?Yt.isNodeList(t.children):Array.isArray(t.children);return l},Ld={isAncestor(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ta(e)&&Yt.isNodeList(e.children,{deep:t})},isElement:VF,isElementList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>Ld.isElement(n,{deep: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 VF(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},ote=["children"],ste=["text"],Yt={ancestor(e,t){var n=Yt.get(e,t);if(Xn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Rl.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of je.ancestors(t,n)){var l=Yt.ancestor(e,r),s=[l,r];yield s}})()},child(e,t){if(Xn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Rl.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Rl.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,l=Yt.ancestor(e,t),{children:s}=l,f=r?s.length-1:0;r?f>=0:f<s.length;){var h=Yt.child(l,f),p=t.concat(f);yield[h,p],f=r?f-1:f+1}})()},common(e,t,n){var r=je.common(t,n),l=Yt.get(e,r);return[l,r]},descendant(e,t){var n=Yt.get(e,t);if(Bu.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Rl.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Yt.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 Yt.nodes(e,t))Ld.isElement(n)&&(yield[n,r])})()},extractProps(e){if(Ld.isAncestor(e)){var t=Jy(e,ote);return t}else{var t=Jy(e,ste);return t}},first(e,t){for(var n=t.slice(),r=Yt.get(e,n);r&&!(Xn.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Xn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Rl.stringify(e)));var n=Jee({children:e.children},r=>{var[l,s]=cn.edges(t),f=Yt.nodes(r,{reverse:!0,pass:C=>{var[,A]=C;return!cn.includes(t,A)}});for(var[,h]of f){if(!cn.includes(t,h)){var p=Yt.parent(r,h),y=h[h.length-1];p.children.splice(y,1)}if(je.equals(h,s.path)){var b=Yt.leaf(r,h);b.text=b.text.slice(0,s.offset)}if(je.equals(h,l.path)){var S=Yt.leaf(r,h);S.text=S.text.slice(l.offset)}}Bu.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){var n=Yt.getIf(e,t);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Rl.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(Xn.isText(n)||!n.children[l])return;n=n.children[l]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(Xn.isText(n)||!n.children[l])return!1;n=n.children[l]}return!0},isNode(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xn.isText(e)||Ld.isElement(e,{deep:t})||Bu.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>Yt.isNode(n,{deep:t}))},last(e,t){for(var n=t.slice(),r=Yt.get(e,n);r&&!(Xn.isText(r)||r.children.length===0);){var l=r.children.length-1;r=r.children[l],n.push(l)}return[r,n]},leaf(e,t){var n=Yt.get(e,t);if(!Xn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Rl.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of je.levels(t,n)){var l=Yt.get(e,r);yield[l,r]}})()},matches(e,t){return Ld.isElement(e)&&Ld.isElementProps(t)&&Ld.matches(e,t)||Xn.isText(e)&&Xn.isTextProps(t)&&Xn.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:l=[],to:s}=t,f=new Set,h=[],p=e;!(s&&(r?je.isBefore(h,s):je.isAfter(h,s)));){if(f.has(p)||(yield[p,h]),!f.has(p)&&!Xn.isText(p)&&p.children.length!==0&&(n==null||n([p,h])===!1)){f.add(p);var y=r?p.children.length-1:0;je.isAncestor(h,l)&&(y=l[h.length]),h=h.concat(y),p=Yt.get(e,h);continue}if(h.length===0)break;if(!r){var b=je.next(h);if(Yt.has(e,b)){h=b,p=Yt.get(e,h);continue}}if(r&&h[h.length-1]!==0){var S=je.previous(h);h=S,p=Yt.get(e,h);continue}h=je.parent(h),p=Yt.get(e,h),f.add(p)}})()},parent(e,t){var n=je.parent(t),r=Yt.get(e,n);if(Xn.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 Xn.isText(e)?e.text:e.children.map(Yt.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Yt.nodes(e,t))Xn.isText(n)&&(yield[n,r])})()}};function GF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GF(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var eb={isNodeOperation(e){return eb.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ta(e))return!1;switch(e.type){case"insert_node":return je.isPath(e.path)&&Yt.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&je.isPath(e.path);case"merge_node":return typeof e.position=="number"&&je.isPath(e.path)&&Ta(e.properties);case"move_node":return je.isPath(e.path)&&je.isPath(e.newPath);case"remove_node":return je.isPath(e.path)&&Yt.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&je.isPath(e.path);case"set_node":return je.isPath(e.path)&&Ta(e.properties)&&Ta(e.newProperties);case"set_selection":return e.properties===null&&cn.isRange(e.newProperties)||e.newProperties===null&&cn.isRange(e.properties)||Ta(e.properties)&&Ta(e.newProperties);case"split_node":return je.isPath(e.path)&&typeof e.position=="number"&&Ta(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>eb.isOperation(t))},isSelectionOperation(e){return eb.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return eb.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Kn(Kn({},e),{},{type:"remove_node"});case"insert_text":return Kn(Kn({},e),{},{type:"remove_text"});case"merge_node":return Kn(Kn({},e),{},{type:"split_node",path:je.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(je.equals(t,n))return e;if(je.isSibling(n,t))return Kn(Kn({},e),{},{path:t,newPath:n});var r=je.transform(n,e),l=je.transform(je.next(n),e);return Kn(Kn({},e),{},{path:r,newPath:l})}case"remove_node":return Kn(Kn({},e),{},{type:"insert_node"});case"remove_text":return Kn(Kn({},e),{},{type:"insert_text"});case"set_node":{var{properties:s,newProperties:f}=e;return Kn(Kn({},e),{},{properties:f,newProperties:s})}case"set_selection":{var{properties:h,newProperties:p}=e;return h==null?Kn(Kn({},e),{},{properties:p,newProperties:null}):p==null?Kn(Kn({},e),{},{properties:null,newProperties:h}):Kn(Kn({},e),{},{properties:p,newProperties:h})}case"split_node":return Kn(Kn({},e),{},{type:"merge_node",path:je.next(e.path)})}}},cte=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ta(t))return!1;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||Ta(t.marks))&&(t.selection===null||cn.isRange(t.selection))&&(!n||Yt.isNodeList(t.children))&&eb.isOperationList(t.operations);return r},Bu={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 cte(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function IF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function YF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IF(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Br={compare(e,t){var n=je.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Br.compare(e,t)===1},isBefore(e,t){return Br.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&je.equals(e.path,t.path)},isPoint(e){return Ta(e)&&typeof e.offset=="number"&&je.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="forward"}=n,{path:l,offset:s}=e;switch(t.type){case"insert_node":case"move_node":{l=je.transform(l,t,n);break}case"insert_text":{je.equals(t.path,l)&&(t.offset<s||t.offset===s&&r==="forward")&&(s+=t.text.length);break}case"merge_node":{je.equals(t.path,l)&&(s+=t.position),l=je.transform(l,t,n);break}case"remove_text":{je.equals(t.path,l)&&t.offset<=s&&(s-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(je.equals(t.path,l)||je.isAncestor(t.path,l))return null;l=je.transform(l,t,n);break}case"split_node":{if(je.equals(t.path,l)){if(t.position===s&&r==null)return null;(t.position<s||t.position===s&&r==="forward")&&(s-=t.position,l=je.transform(l,t,YF(YF({},n),{},{affinity:"forward"})))}else l=je.transform(l,t,n);break}default:return e}return{path:l,offset:s}}},KF=void 0,Rl={setScrubber(e){KF=e},stringify(e){return JSON.stringify(e,KF)}},fte=["text"],dte=["anchor","focus","merge"];function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XF(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Xn={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function l(s){var f=Jy(s,fte);return f}return HF(r?l(e):e,r?l(t):t)},isText(e){return Ta(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Xn.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=[{leaf:Os({},e)}];for(var r of t){var{anchor:l,focus:s,merge:f}=r,h=Jy(r,dte),[p,y]=cn.edges(r),b=[],S=0,C=p.offset,A=y.offset,x=f??Object.assign;for(var{leaf:_}of n){var{length:B}=_.text,R=S;if(S+=B,C<=R&&S<=A){x(_,h),b.push({leaf:_});continue}if(C!==A&&(C===S||A===R)||C>S||A<R||A===R&&R!==0){b.push({leaf:_});continue}var O=_,j=void 0,P=void 0;if(A<S){var L=A-R;P={leaf:Os(Os({},O),{},{text:O.text.slice(L)})},O=Os(Os({},O),{},{text:O.text.slice(0,L)})}if(C>R){var Y=C-R;j={leaf:Os(Os({},O),{},{text:O.text.slice(0,Y)})},O=Os(Os({},O),{},{text:O.text.slice(Y)})}x(O,h),j&&b.push(j),b.push({leaf:O}),P&&b.push(P)}n=b}if(n.length>1){var G=0;for(var[z,$]of n.entries()){var Q=G,I=Q+$.leaf.text.length,H={start:Q,end:I};z===0&&(H.isFirst=!0),z===n.length-1&&(H.isLast=!0),$.position=H,G=I}}return n}},hte=e=>e.selection?e.selection:e.children.length>0?Bu.end(e,[]):[0],Pn;(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"})(Pn||(Pn={})),Pn.L,Pn.L|Pn.V|Pn.LV|Pn.LVT,Pn.LV|Pn.V,Pn.V|Pn.T,Pn.LVT|Pn.T,Pn.T,Pn.Any,Pn.Extend|Pn.ZWJ,Pn.Any,Pn.SpacingMark,Pn.Prepend,Pn.Any,Pn.ZWJ,Pn.ExtPict,Pn.RI,Pn.RI;var vte={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]:{};Bu.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:l=hte(e)}=n;if(je.isPath(l)&&(l=Bu.range(e,l)),cn.isRange(l))if(cn.isCollapsed(l))l=l.anchor;else{var s=cn.end(l);if(!r&&Bu.void(e,{at:s}))return;var f=cn.start(l),h=Bu.pointRef(e,f),p=Bu.pointRef(e,s);QF.delete(e,{at:l,voids:r});var y=h.unref(),b=p.unref();l=y||b,QF.setSelection(e,{anchor:l,focus:l})}if(!(!r&&Bu.void(e,{at:l})||Bu.elementReadOnly(e,{at:l}))){var{path:S,offset:C}=l;t.length>0&&e.apply({type:"insert_text",path:S,offset:C,text:t})}})}};function ZF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function PD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZF(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var QF=PD(PD(PD(PD({},nte),rte),ate),vte),jD=e=>{if(!e.api.isCollapsed())return null;const t=e.selection.anchor,n=e.api.range(t.path);if(!n)return null;const r=e.api.isStart(t,n)?"start":e.api.isEnd(t,n)?"end":null;if(!r)return null;const l=at.parent(e,t.path)??null,s=(()=>{if(!l||!ct.isElement(l))return!1;const b=ti(e,l.type)?.rules.selection?.affinity;return b==="hard"||b==="directional"})(),f=s?[l,ot.parent(t.path)]:[at.get(e,t.path),t.path];if(r==="start"&&t.path.at(-1)===0&&!s)return[null,f];const h=r==="end"?je.next(f[1]):je.previous(f[1]),p=at.get(e,h),y=p?[p,h]:null;return r==="end"?[f,y]:[y,f]},pte=(e,t)=>{const{marks:n,selection:r}=e;if(!r)return;const l=y=>n&&c6(at.extractProps(y),n)&&Object.keys(n).length>1,[s,f]=t;if(!s||!f){const y=s||f;return!n||l(y[0])?y===s?"backward":"forward":void 0}const h=n&&(s&&l(s[0])?"backward":f&&l(f[0])?"forward":null),p=r.anchor.offset===0?"forward":"backward";return p==="backward"&&h==="forward"||Hc&&p==="forward"&&h!=="backward"?"forward":"backward"},WF=(e,t,n)=>{const r=Object.keys(at.extractProps(t));return(ct.isElement(t)?[t.type]:r).some(s=>ti(e,s)?.rules.selection?.affinity===n)},P2=(e,t,n)=>{const[r,l]=t;return r&&WF(e,r[0],n)||l&&WF(e,l[0],n)},j2=(e,t,n)=>{const r=p=>{e.marks=p,e.api.onChange()},l=p=>{e.tf.setSelection({anchor:p,focus:p})},[s,f]=t;if(n==="backward"){if(s===null){r({});return}const p=e.api.end(s[1]);if(p&&l(p),ct.isElement(s[0]))return;r(null);return}if(s===null){r(null);return}if(f===null){r({});return}const h=e.api.end(s[1]);l(h),!ct.isElement(f[0])&&r(at.extractProps(f[0]))},mte=kd({key:"affinity"}).overrideEditor(({editor:e,tf:{deleteBackward:t,insertText:n,move:r}})=>({transforms:{deleteBackward:l=>{(()=>{if(l==="character"&&e.api.isCollapsed()){const[f]=jD(e)??[null],h=f&&(Cn.isText(f[0])?f[0].text:at.string(f[0]));t(l);const p=jD(e);if(p&&P2(e,p,"directional")&&!JF(p)){const y=h&&h.length>1?"backward":"forward";j2(e,p,y)}return!0}})()||t(l)},insertText(l,s){return(()=>{if(!e.selection||e.api.isExpanded())return;const h=e.selection.focus.path,p=at.get(e,h);if(!p)return;const b=Object.keys(at.extractProps(p)).filter(x=>ti(e,x)?.rules.selection?.affinity==="outward");if(!b.length||!e.api.isEnd(e.selection.focus,h))return;const S=e.api.start(h,{next:!0}),C=[];let A=null;if(S){const x=S.path;A=at.get(e,x)||null}for(const x of b){if(!p[x])continue;A?.[x]||C.push(x)}C.length>0&&e.tf.removeMarks(C)})(),n(l,s)},move:l=>{(()=>{const{distance:f=1,reverse:h=!1,unit:p="character"}=l||{};if(p==="character"&&f===1&&e.api.isCollapsed()){const y=jD(e);if(y&&P2(e,y,"hard"))return y&&y[h?0:1]===null&&pte(e,y)===(h?"forward":"backward")?(j2(e,y,h?"backward":"forward"),!0):(r({...l,unit:"offset"}),!0);r(l);const b=jD(e);return b&&P2(e,b,"directional")&&!JF(b)&&j2(e,b,h?"forward":"backward"),!0}})()||r(l)}}})),JF=e=>{const[t,n]=e;return t&&ct.isElement(t[0])||n&&ct.isElement(n[0])},gte=({editor:e,getOptions:t})=>{const{chunkSize:n,query:r}=t();return e.getChunkSize=l=>r(l)?n:null,{}},e7=kd({key:"chunking",options:{chunkSize:1e3,contentVisibilityAuto:!0,query:at.isEditor}}).overrideEditor(gte),yte=class extends Error{constructor(t,n="DEFAULT"){super(`[${n}] ${t}`),this.type=n,this.name="PlateError"}},bte=kd({key:"debug",options:{isProduction:process.env.NODE_ENV==="production",logger:{error:(e,t,n)=>console.error(`${t?`[${t}] `:""}${e}`,n),info:(e,t,n)=>console.info(`${t?`[${t}] `:""}${e}`,n),log:(e,t,n)=>console.log(`${t?`[${t}] `:""}${e}`,n),warn:(e,t,n)=>console.warn(`${t?`[${t}] `:""}${e}`,n)},logLevel:process.env.NODE_ENV==="production"?"error":"log",throwErrors:!0}}).extendEditorApi(({getOptions:e})=>{const t=["error","warn","info","log"],n=(r,l,s,f)=>{if(process.env.NODE_ENV==="production")return;const h=e();if(!(h.isProduction&&r==="log")&&t.indexOf(r)<=t.indexOf(h.logLevel)){if(r==="error"&&h.throwErrors)throw new yte(l,s);h.logger[r]?.(l,s,f)}};return{debug:{error:(r,l,s)=>n("error",r,l,s),info:(r,l,s)=>n("info",r,l,s),log:(r,l,s)=>n("log",r,l,s),warn:(r,l,s)=>n("warn",r,l,s)}}}),Ete=(e,t,n)=>{const r=e.getOptions(pp),l=FD.get(e)??!1;if(n){const s={...r,...b6(n,d6)};e.setOptions(pp,s)}FD.set(e,!0),t(),FD.set(e,l),e.setOptions(pp,r)},FD=new WeakMap,pp=kd({key:"dom",options:{scrollMode:"last",scrollOperations:{insert_node:!0,insert_text:!0},scrollOptions:{scrollMode:"if-needed"}}}).extendEditorApi(({editor:e})=>({isScrolling:()=>FD.get(e)??!1})).extendEditorTransforms(({editor:e})=>({withScrolling:we(Ete,e)})).overrideEditor(({api:e,editor:t,getOption:n,tf:{apply:r}})=>({transforms:{apply(l){if(e.isScrolling()){r(l);const s=n("scrollOperations");if(!s[l.type])return;const f=t.operations.filter(A=>!!s[A.type]);if(f.length===0)return;const p=n("scrollMode")==="first"?f[0]:f.at(-1);if(!p)return;const{offset:y,path:b}=p.path?p:{};if(!b)return;const S=n("scrollOptions"),C={offset:y??0,path:b};e.scrollIntoView(C,S);return}return r(l)}}})).overrideEditor(({editor:e,tf:{apply:t}})=>({transforms:{apply(n){if(n.type==="set_selection"){const{properties:r}=n;e.dom.prevSelection=r,t(n),e.dom.currentKeyboardEvent=null;return}t(n)}}})),LD=e=>e.nodeType===Node.ELEMENT_NODE,t7=e=>e.nodeType===Node.TEXT_NODE,Dte=new Set(["A","ABBR","ACRONYM","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","CONTENT","DATA","DEL","DFN","EM","EMBED","FONT","I","IFRAME","IMG","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","MARQUEE","math","MENUITEM","METER","NOBR","OBJECT","OUTPUT","PICTURE","PORTAL","PROGRESS","Q","S","SAMP","SELECT","SHADOW","SMALL","SOURCE","SPAN","STRIKE","STRONG","SUB","SUP","svg","TEXTAREA","TIME","TRACK","TT","U","VAR","VIDEO","WBR"]),F2=e=>{if(!LD(e))return!1;const t=e,n=Dte.has(t.tagName),r=t.style.display.split(" ")[0];return r===""?n:r.startsWith("inline")?!0:r==="inherit"&&t.parentElement?F2(t.parentElement):["contents","initial","none","revert","revert-layer","unset"].includes(r)?n:!1},n7=e=>LD(e)?!F2(e):!1,Ste=e=>t=>Cn.isText(t)||ct.isElement(t)&&e.api.isInline(t),Cte=e=>()=>({children:[],type:e}),wte=(e,t)=>e.some((n,r,l)=>{const s=l[r-1];return r!==0?t(n)!==t(s):!1}),Ate=(e,t,n)=>{const r=wte(e,t),{fragment:l}=e.reduce((s,f)=>{if(r&&t(f)){let h=s.precedingBlock;h||(h=n(),s.precedingBlock=h,s.fragment.push(h)),h.children.push(f)}else s.fragment.push(f),s.precedingBlock=null;return s},{fragment:[],precedingBlock:null});return l},Ote=e=>e.length===0?[{text:""}]:e,r7=(e,t,n)=>(e=Ote(e),e=Ate(e,t,n),e=e.map(r=>ct.isElement(r)?{...r,children:r7(r.children,t,n)}:r),e),xte=(e,{defaultElementPlugin:t=Yy,descendants:n})=>{const r=Ste(e),l=e.getType(t.key),s=Cte(l);return r7(n,r,s)},Tte=(e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:l=!0}={})=>(r==="all"&&(e=e.replace(/^\s+/,"")),n==="single-newline"&&(e=e.replace(/\n$/,"")),t&&(l?e=e.replaceAll(/\s+/g," "):(e=e.replaceAll(/[^\S\n\r]+/g," "),e=e.replaceAll(/^[^\S\n\r]+/gm,""),e=e.replaceAll(/[^\S\n\r]+$/gm,""))),e),Bte=e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&n7(t))return!0;t=t?.nextSibling||null}if(!t||n7(t))return!0;if((t.textContent||"").length>0)return!1}},_te=e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}},a7=e=>{e.inlineFormattingContext=null},Rte=(e,t)=>{const n=e.textContent||"",r=n.trim()==="";(t.inlineFormattingContext||!r)&&_te(t);const{whiteSpaceRule:l}=t,s=l!=="normal"?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",f=l==="normal"?"collapse":Bte(e)?"single-newline":"collapse",h={normal:!0,pre:!1,"pre-line":!0}[l],y=Tte(n||"",{shouldCollapseWhiteSpace:h,trimEnd:f,trimStart:s,whiteSpaceIncludesNewlines:l!=="pre-line"});t.inlineFormattingContext&&h&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=y.endsWith(" ")),e.textContent=y},Nte=(e,t)=>{if(LD(e)){l7(e,t);return}if(t7(e)){Rte(e,t);return}i7(e,t)},i7=(e,t)=>{const n=Array.from(e.childNodes);for(const r of n)Nte(r,t)},Mte=e=>{const t=e.style.whiteSpace;switch(t){case"break-spaces":case"pre":case"pre-wrap":return"pre";case"normal":case"nowrap":return"normal";case"pre-line":return"pre-line"}return e.tagName==="PRE"?"pre":t==="initial"?"normal":null},l7=(e,t)=>{const n=F2(e),r=t.whiteSpaceRule,l=Mte(e);l&&(t.whiteSpaceRule=l),n||a7(t),i7(e,t),n||a7(t),t.whiteSpaceRule=r},zte=e=>{const t=e.cloneNode(!0);return l7(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t},qD=(e,t,n=!1)=>Array.from(t.childNodes).flatMap(r=>r.nodeType===1&&!TD(r)&&n?qD(e,r,n):o7(e)(r)),kte=(e,t)=>{if(t.nodeName==="BODY")return lp("fragment",{},qD(e,t))},Pte=e=>{if(e.nodeName==="BR")return`
331
+ `},jte=({element:e,type:t})=>{if(!Uee(e,t)&&!OF(e))return;const n={};if(Object.entries(e.dataset).forEach(([r,l])=>{if(r.startsWith("slate")&&l&&!["slateInline","slateLeaf","slateNode","slateVoid"].includes(r)){const s=r.slice(5).charAt(0).toLowerCase()+r.slice(6);if(l===void 0)return;let f=l;l==="true"?f=!0:l==="false"?f=!1:Number.isNaN(Number(l))||(f=Number(l)),n[s]=f}}),Object.keys(n).length>0)return n},Fte=({editor:e,element:t,plugin:n})=>{const r=n.parsers.html?.deserializer?.toNodeProps,s=n.parsers.html?.deserializer?.disableDefaultNodeProps??!1?{}:jte({...fr(e,n),element:t});if(!r)return s;const f=r({...fr(e,n),element:t})??{};return{...s,...f}},Lte=e=>{let t=e.parsers?.html?.deserializer;const n=t?.rules??[],l=n.some(s=>s.validClassName?.includes(`slate-${e.key}`))?n:[{validClassName:`slate-${e.key}`,validNodeName:"*"},...n];return t||(t={rules:l}),t.rules=l,t},u7=(e,t,{deserializeLeaf:n,element:r})=>{const{node:{isElement:l,isLeaf:s}}=t,f=Lte(t);if(!f)return;const{attributeNames:h,isElement:p,isLeaf:y,query:b,rules:S}=f;let{parse:C}=f;const A=p||l,x=y||s;if(!n&&!A||n&&!x||S&&!S.some(({validAttribute:P,validClassName:L,validNodeName:Y="*",validStyle:G})=>{if(Y){const z=tl(Y);if(z.length>0&&!z.includes(r.nodeName)&&Y!=="*")return!1}if(L&&!r.classList.contains(L))return!1;if(G)for(const[z,$]of Object.entries(G)){if(!tl($).includes(r.style[z])&&$!=="*"||$==="*"&&!r.style[z])return;const I=t.inject.nodeProps?.defaultNodeValue;if(I&&I===r.style[z])return!1}if(P)if(typeof P=="string"){if(!r.getAttributeNames().includes(P))return!1}else for(const[z,$]of Object.entries(P)){const Q=tl($),I=r.getAttribute(z);if(!Qi(I)||!Q.includes(I))return!1}return!0})||b&&!b({...fr(e,t),element:r}))return;if(!C)if(A)C=({type:j})=>({type:j});else if(x)C=({type:j})=>({[j]:!0});else return;const _=TD(r)?{}:C({...fr(e,t),element:r,node:{}})??{},B=Fte({editor:e,element:r,plugin:t});let R={..._,...B};if(Object.keys(R).length===0)return;if(vF(e,t).forEach(j=>{const P=j.parsers?.html?.deserializer?.parse?.({...fr(e,t),element:r,node:R});P&&!TD(r)&&(R={...R,...P})}),h){const j={},P=r.getAttributeNames();for(const L of P)h.includes(L)&&(j[L]=r.getAttribute(L));Object.keys(j).length>0&&(R.attributes=j)}return{...f,node:R}},qte=(e,t)=>{let n;return[...e.meta.pluginList].reverse().some(r=>(n=u7(e,r,{element:t}),!!n)),n},Ute=(e,t,n=!1)=>{const r=qte(e,t);if(r){const{node:l,withoutChildren:s}=r;let f=l.children??qD(e,t,n);return(f.length===0||s||AF(t))&&(f=[{text:""}]),lp("element",l,f)}},Hte=(e,t)=>{let n={};return[...e.meta.pluginList].reverse().forEach(r=>{const l=u7(e,r,{deserializeLeaf:!0,element:t});l&&(n={...n,...l.node})}),n},$te=(e,t)=>{const n=Hte(e,t);return qD(e,t).reduce((r,l)=>{if(!l)return r;if(ct.isElement(l))Object.keys(n).length>0&&dne({node:l,query:{filter:([s])=>Cn.isText(s)},source:n}),r.push(l);else{const s={...n};Cn.isText(l)&&l.text&&Object.keys(s).forEach(f=>{s[f]&&l[f]&&(s[f]=l[f])}),r.push(lp("text",s,l))}return r},[])},Vte=e=>{if(t7(e))return e.parentElement?.dataset.platePreventDeserialization?"":e.textContent||""},Gte=e=>{if(e.nodeName!=="BR"||e.className==="Apple-interchange-newline")return!1;const t=e.parentElement;return!(!t||t.tagName==="P"||t.tagName==="SPAN"||(()=>{let r=e.previousSibling;for(;r;){if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return!0;r=r.previousSibling}for(r=e.nextSibling;r;){if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return!0;r=r.nextSibling}return!1})())},o7=e=>t=>{const n=Vte(t);if(n)return n;if(!LD(t))return null;if(Gte(t))return{children:[{text:""}],type:e.getType("p")};if(t.nodeName==="BR"&&t.className==="Apple-interchange-newline")return null;const r=Pte(t);if(r)return r;const l=kte(e,t);if(l)return l;const s=Ute(e,t,TD(t));return s||$te(e,t)},Ite=(e,t)=>o7(e)(t),Yte=e=>{const t=document.createElement("body");return t.innerHTML=e,t},Kte=(e,{collapseWhiteSpace:t=!0,defaultElementPlugin:n,element:r})=>{typeof r=="string"&&(r=Yte(r)),t&&(r=zte(r));const l=Ite(e,r);return xte(e,{defaultElementPlugin:n,descendants:l})},Xte=e=>new DOMParser().parseFromString(e,"text/html"),Zte=cr({key:"html"}).extendApi(({editor:e})=>({deserialize:we(Kte,e)})).extend({parser:{format:"text/html",deserialize:({api:e,data:t})=>{const n=Xte(t);return e.html.deserialize({element:n.body})}}}),s7=kd({key:"length"}).overrideEditor(({editor:e,getOptions:t,tf:{apply:n}})=>({transforms:{apply(r){e.tf.withoutNormalizing(()=>{n(r);const l=t();if(l.maxLength){const s=e.api.string([]).length;if(s>l.maxLength){const f=s-l.maxLength;e.tf.delete({distance:f,reverse:!0,unit:"character"})}}})}}})),Qte=({editor:e,getOptions:t,tf:{apply:n,insertNode:r,insertNodes:l}})=>{const s=()=>({[t().idKey??""]:t().idCreator()}),f=y=>{const{filter:b,filterText:S}=t();return b(y)&&(!S||y[0]?.type!==void 0)},h=y=>{const{idKey:b="",reuseId:S}=t();!S&&e.api.some({at:[],match:{[b]:y[b]}})&&delete y[b]},p=y=>{const{idKey:b=""}=t();if(Qi(y._id)){const S=y._id;delete y._id,e.api.some({at:[],match:{[b]:S}})||(y[b]=S)}};return{transforms:{apply(y){const{allow:b,disableInsertOverrides:S,exclude:C,idCreator:A,idKey:x="",reuseId:_}=t(),B={allow:b,exclude:C,filter:f};if(y.type==="insert_node"){const R=up(y.node);return Ky({apply:h,node:R,query:B,source:{}}),Eee({node:R,path:y.path,query:B,source:s}),S||Ky({apply:p,node:R,query:B,source:{}}),n({...y,node:R})}if(y.type==="split_node"){const R=y.properties;let O=y.properties[x];if(Zc([R,y.path],B))return(!_||O===void 0||e.api.some({at:[],match:{[x]:O}}))&&(O=A()),n({...y,properties:{...y.properties,[x]:O}});O&&delete y.properties[x]}return n(y)},insertNode(y){const{disableInsertOverrides:b,idKey:S=""}=t();!b&&y[S]&&(Object.isExtensible(y)||(y=up(y)),y._id=y[S]),r(y)},insertNodes(y,b){const S=tl(y).filter(x=>!!x);if(S.length===0)return;const{disableInsertOverrides:C,idKey:A=""}=t();l(S.map(x=>(!C&&x[A]&&(Object.isExtensible(x)||(x=up(x)),x._id=x[A]),x)),b)}}}},Wte=kd({key:"nodeId",options:{filterInline:!0,filterText:!0,idKey:"id",normalizeInitialValue:!1,filter:()=>!0,idCreator:()=>bD(10)}}).extendTransforms(({editor:e,getOptions:t})=>({normalize(){const{allow:n,exclude:r,filter:l,filterInline:s,filterText:f,idKey:h}=t(),p=y=>{const[b,S]=y;if(!b[h]&&Zc([b,S],{allow:n,exclude:r,filter:C=>{const[A]=C;return f&&!ct.isElement(A)||s&&ct.isElement(A)&&!e.api.isBlock(A)?!1:l(C)}})){if(!e.api.node(S))return;e.tf.withoutSaving(()=>{e.tf.setNodes({[h]:t().idCreator()},{at:S})})}ct.isElement(b)&&b.children.forEach((C,A)=>{p([C,[...S,A]])})};e.children.forEach((y,b)=>{p([y,[b]])})}})).extend({normalizeInitialValue:({editor:e,getOptions:t,tf:n})=>{const{normalizeInitialValue:r}=t();if(!r){const l=e.children[0],s=e.children.at(-1);if(l?.id&&s?.id)return}n.nodeId.normalize()}}).overrideEditor(Qte),Jte=(e,t,n,r)=>e.meta.pluginCache.handlers.onNodeChange.some(l=>{const s=e.getPlugin({key:l});if(!s||e.dom?.readOnly)return!1;const f=s.handlers?.onNodeChange;if(!f)return!1;const h=f({editor:e,node:t,operation:r,plugin:s,prevNode:n});return h??!1}),ene=(e,t,n,r,l)=>e.meta.pluginCache.handlers.onTextChange.some(s=>{const f=e.getPlugin({key:s});if(!f||e.dom?.readOnly)return!1;const h=f.handlers?.onTextChange;if(!h)return!1;const p=h({editor:e,node:t,operation:l,plugin:f,prevText:r,text:n});return p??!1}),tne=e=>{const t=e.meta.isNormalizing;e.meta.isNormalizing=!0,e.meta.pluginCache.normalizeInitialValue.forEach(n=>{const r=e.getPlugin({key:n});ni(e.dom.readOnly,r,"normalizeInitialValue")||r.normalizeInitialValue?.({...fr(e,r),value:e.children})}),e.meta.isNormalizing=t},nne=(e,{autoSelect:t,selection:n,shouldNormalizeEditor:r,value:l,onReady:s})=>{const f=(h=!1)=>{if((!e.children||e.children?.length===0)&&(e.children=e.api.create.value()),n)e.selection=n;else if(t){const y=(t==="start"?"start":"end")==="start"?e.api.start([]):e.api.end([]);e.tf.select(y)}e.children.length>0&&tne(e),r&&e.tf.normalize({force:!0}),s&&s({editor:e,isAsync:h,value:e.children})};if(l===null)f();else if(typeof l=="string")e.children=e.api.html.deserialize({element:l}),f();else if(typeof l=="function"){const h=l(e);h&&typeof h.then=="function"?h.then(p=>{e.children=p,f(!0)}):(e.children=h,f())}else l&&(e.children=l),f()},rne=(e,{match:t,reverse:n}={})=>{if(!e.selection||!e.api.isCollapsed())return;const r=e.api.block();if(!r)return;const s=e.api.above({at:r[1],match:U4(e,(h,p)=>p.length===1||p.length>1&&!!h.type&&!ti(e,h.type)?.node.isStrictSiblings,{match:t})})?.[1]??r[1],f=n?s:ot.next(s);if(f)return e.tf.insertNodes(e.api.create.block(),{at:f,select:!0}),!0},ane=(e,{at:t}={})=>{const n=e.api.block({at:t});if(!n?.[0])return;const[r,l]=n;return e.tf.withoutNormalizing(()=>{const{id:s,type:f,...h}=at.extractProps(r);Object.keys(h).forEach(y=>{e.tf.unsetNodes(y,{at:l})});const p=e.getType(Yy.key);r.type!==p&&e.tf.setNodes({type:p},{at:l})}),!0},ine=(e,t)=>{let n=t;typeof t=="string"?n=e.api.html.deserialize({element:t}):(!t||t.length===0)&&(n=e.api.create.value()),e.tf.replaceNodes(n,{at:[],children:!0})},UD=kd({key:"slateExtension",options:{onNodeChange:()=>{},onTextChange:()=>{}}}).extendEditorTransforms(({editor:e,getOption:t,tf:{apply:n}})=>({init:we(nne,e),insertExitBreak:we(rne,e),resetBlock:we(ane,e),setValue:we(ine,e),apply(r){const l=()=>{},s=e.meta.pluginCache.handlers.onNodeChange.length>0||t("onNodeChange")!==l,f=e.meta.pluginCache.handlers.onTextChange.length>0||t("onTextChange")!==l;if(!s&&!f){n(r);return}let h,p,y,b,S;if(Cs.isNodeOperation(r)&&s)switch(r.type){case"insert_node":{h=r.node,p=r.node;break}case"merge_node":case"move_node":case"set_node":case"split_node":{h=at.get(e,r.path);break}case"remove_node":{h=r.node,p=r.node;break}}else if(Cs.isTextOperation(r)&&f){const C=ot.parent(r.path);S=at.get(e,C),y=at.get(e,r.path).text}if(n(r),Cs.isNodeOperation(r)&&s){switch(r.type){case"insert_node":case"remove_node":break;case"merge_node":{const A=ot.previous(r.path);A&&(p=at.get(e,A));break}case"move_node":{p=at.get(e,r.newPath);break}case"set_node":{p=at.get(e,r.path);break}case"split_node":{p=at.get(e,r.path);break}}p||(p=h),Jte(e,p,h,r)||t("onNodeChange")({editor:e,node:p,operation:r,prevNode:h})}if(Cs.isTextOperation(r)&&f){const C=at.get(e,r.path);C&&(b=C.text),ene(e,S,b,y,r)||t("onTextChange")({editor:e,node:S,operation:r,prevText:y,text:b})}}})),lne=e=>e?.ownerDocument?.defaultView||null,une=e=>c7(e)&&e.nodeType===1,c7=e=>{const t=lne(e);return!!t&&e instanceof t.Node},one=e=>c7(e)&&e.nodeType===3,f7=e=>{let t="";if(one(e)&&e.nodeValue)return e.nodeValue;if(une(e)){for(const r of Array.from(e.childNodes))t+=f7(r);const n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
332
+ `)}return t};pp.extendEditorApi(({editor:e})=>({getFragment(){return SF(e)}})).overrideEditor(({editor:e,tf:{setFragmentData:t}})=>({transforms:{setFragmentData(n,r){if(r!=="copy")return t(n,r);const l=SF(e),s=CF();if(!(!s||!l||Aee(s))&&l.length>0){const h=JSON.stringify(l),p=window.btoa(encodeURIComponent(h));n.setData("application/x-slate-fragment",p),n.setData("text/html",s.innerHTML),n.setData("text/plain",f7(s))}}}}));var d7=({attributes:e,node:t,plugin:n,props:r})=>{const l={...r,attributes:{...r.attributes}};if(n?.node.props){const s=(typeof n.node.props=="function"?n.node.props(l):n.node.props)??{};l.attributes={...l.attributes,...s}}return e&&n&&(l.attributes={...l.attributes,...Z8(e,...n.node.dangerouslyAllowAttributes??[],[...t?Cee(t):[]])}),Object.keys(l.attributes).forEach(s=>{l.attributes?.[s]===void 0&&delete l.attributes?.[s]}),l},h7=e=>e?`slate-${e}`:"",sne={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",escape:"escape",extendBackward:"shift+left",extendDownward:"shift+down",extendForward:"shift+right",extendUpward:"shift+up",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveDownward:"down",moveForward:"right",moveUpward:"up",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",selectAll:"mod+a",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},cne={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",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},fne={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},vn=e=>{const t=sne[e],n=cne[e],r=fne[e],l=t&&gs.isKeyHotkey(t),s=n&&gs.isKeyHotkey(n),f=r&&gs.isKeyHotkey(r);return h=>!!(l?.(h)||HE&&s?.(h)||!HE&&f?.(h))},v7=e=>(t,n,{composing:r}={})=>!(!vn(e)(n)||!!r!==t.api.isComposing()),qd={isBold:vn("bold"),isCompose:vn("compose"),isDeleteBackward:vn("deleteBackward"),isDeleteForward:vn("deleteForward"),isDeleteLineBackward:vn("deleteLineBackward"),isDeleteLineForward:vn("deleteLineForward"),isDeleteWordBackward:vn("deleteWordBackward"),isDeleteWordForward:vn("deleteWordForward"),isEscape:vn("escape"),isExtendBackward:vn("extendBackward"),isExtendDownward:vn("extendDownward"),isExtendForward:vn("extendForward"),isExtendLineBackward:vn("extendLineBackward"),isExtendLineForward:vn("extendLineForward"),isExtendUpward:vn("extendUpward"),isItalic:vn("italic"),isMoveBackward:vn("moveBackward"),isMoveDownward:vn("moveDownward"),isMoveForward:vn("moveForward"),isMoveLineBackward:vn("moveLineBackward"),isMoveLineForward:vn("moveLineForward"),isMoveUpward:vn("moveUpward"),isMoveWordBackward:vn("moveWordBackward"),isMoveWordForward:vn("moveWordForward"),isRedo:vn("redo"),isSelectAll:vn("selectAll"),isSoftBreak:vn("insertSoftBreak"),isSplitBlock:vn("splitBlock"),isTab:v7("tab"),isTransposeCharacter:vn("transposeCharacter"),isUndo:vn("undo"),isUntab:v7("untab")},dne=e=>{Ky({...e,apply:ei})},hne=(e,t,n)=>t.every(r=>{const l=r.parser?.query;return!l||l({...fr(e,r),...n})}),vne=cr({key:"parser"}).overrideEditor(({editor:e,tf:{insertData:t}})=>({transforms:{insertData(n){[...e.meta.pluginList].reverse().some(l=>{const s=l.parser;if(!s)return!1;const f=vF(e,l),{deserialize:h,format:p,mimeTypes:y}=s;if(!p&&!y)return!1;const b=Array.isArray(p)?p:p?[p]:[],S=y||b.map(C=>C.includes("/")?C:`text/${C}`);for(const C of S){let A=n.getData(C);if(C!=="Files"&&!A||C==="Files"&&n.files.length===0||!hne(e,f,{data:A,dataTransfer:n,mimeType:C}))continue;A=yee(e,f,{data:A,dataTransfer:n,mimeType:C});let x=h?.({...fr(e,l),data:A,dataTransfer:n,mimeType:C});if(x?.length&&(x=bee(e,f,{data:A,dataTransfer:n,fragment:x,mimeType:C}),x.length!==0))return gee(e,f,{data:A,dataTransfer:n,fragment:x,mimeType:C}),!0}return!1})||t(n)}}})),pne=({affinity:e,chunking:t,maxLength:n,nodeId:r,plugins:l=[]})=>{let s=r;process.env.NODE_ENV==="test"&&r===void 0&&(s=!1);let f=[bte,UD,pp,cee,mee,vne,n?s7.configure({options:{maxLength:n}}):s7,Zte,oee,Wte.configure({enabled:s!==!1,options:s===!1?void 0:s}),mte.configure({enabled:e}),Yy,e7.configure({enabled:t!==!1,options:typeof t=="boolean"?void 0:t})];const h=new Map(l.map(p=>[p.key,p]));return f=f.map(p=>{const y=h.get(p.key);if(y){const b=l.findIndex(S=>S.key===p.key);return b!==-1&&l.splice(b,1),y}return p}),f},mne=(e,{id:t,affinity:n=!0,autoSelect:r,chunking:l=!0,maxLength:s,nodeId:f,plugins:h=[],readOnly:p=!1,rootPlugin:y,selection:b,shouldNormalizeEditor:S,skipInitialization:C,value:A,onReady:x,..._}={})=>{const B=e;B.id=t??B.id??bD(),B.meta.key=B.meta.key??bD(),B.meta.isFallback=!1,B.dom={composing:!1,currentKeyboardEvent:null,focused:!1,prevSelection:null,readOnly:p},B.getApi=()=>B.api,B.getTransforms=()=>B.transforms,B.getPlugin=P=>QJ(B,P),B.getType=P=>WJ(B,P),B.getInjectProps=P=>{const L=B.getPlugin(P).inject?.nodeProps??{};return L.nodeKey=L.nodeKey??B.getType(P.key),L.styleKey=L.styleKey??L.nodeKey,L},B.getOptionsStore=P=>B.getPlugin(P).optionsStore,B.getOptions=P=>B.getOptionsStore(P)?B.getOptionsStore(P).get("state"):B.getPlugin(P).options,B.getOption=(P,L,...Y)=>{const G=B.getOptionsStore(P);if(!G)return B.getPlugin(P).options[L];if(!(L in G.get("state"))&&!(L in G.selectors)){B.api.debug.error(`editor.getOption: ${L} option is not defined in plugin ${P.key}.`,"OPTION_UNDEFINED");return}return G.get(L,...Y)},B.setOption=(P,L,...Y)=>{const G=B.getOptionsStore(P);if(G){if(!(L in G.get("state"))){B.api.debug.error(`editor.setOption: ${L} option is not defined in plugin ${P.key}.`,"OPTION_UNDEFINED");return}G.set(L,...Y)}},B.setOptions=(P,L)=>{const Y=B.getOptionsStore(P);Y&&(typeof L=="object"?Y.set("state",G=>{Object.assign(G,L)}):typeof L=="function"&&Y.set("state",L))};const R=pne({affinity:n,chunking:l,maxLength:s,nodeId:f,plugins:h});let O=cr({key:"root",priority:1e4,..._,override:{..._.override,components:{..._.components,..._.override?.components}},plugins:[...R,...h]});y&&(O=y(O)),eee(B,[O]);const j=B.tf.normalizeNode;return B.tf.normalizeNode=(...P)=>{if(B.api.shouldNormalizeNode(P[0]))return j(...P)},B.normalizeNode=B.tf.normalizeNode,C||B.tf.init({autoSelect:r,selection:b,shouldNormalizeEditor:S,value:A,onReady:x}),B},gne=["configure","configurePlugin","extendEditorApi","extendSelectors","extendApi","extendEditorTransforms","extendTransforms","overrideEditor","extend","extendPlugin"];function Zn(e,t){const n={...e};return gne.forEach(l=>{const s=n[l];n[l]=(...f)=>{const h=s(...f);return Zn(h)}}),t?n.extend(t):n}var HD=(e={})=>{const t=cr(e);return Zn(t)};function yne(e={}){return HD(e)}function $D(e,t){return fr(e,t)}function p7(e,t){return e.plugins[t.key]??HD({key:t.key})}var bne=Zn(UD,{handlers:{onKeyDown:({editor:e,event:t})=>{t.persist(),e.dom.currentKeyboardEvent=t,qd.isMoveUpward(t)?e.tf.moveLine({reverse:!0})&&(t.preventDefault(),t.stopPropagation()):qd.isMoveDownward(t)?e.tf.moveLine({reverse:!1})&&(t.preventDefault(),t.stopPropagation()):qd.isTab(e,t)||qd.isUntab(e,t)?e.tf.tab({reverse:qd.isUntab(e,t)})&&(t.preventDefault(),t.stopPropagation()):qd.isSelectAll(t)?e.tf.selectAll()&&(t.preventDefault(),t.stopPropagation()):qd.isEscape(t)&&e.tf.escape()&&(t.preventDefault(),t.stopPropagation())}}}).extendEditorApi(({editor:e})=>({redecorate:()=>{e.api.debug.warn("The method editor.api.redecorate() has not been overridden. This may cause unexpected behavior. Please ensure that all required editor methods are properly defined.","OVERRIDE_MISSING")}})).extendEditorTransforms(({editor:e,tf:{reset:t}})=>({reset(n){const r=e.api.isFocused();t(n),r&&e.tf.focus({edge:"startEditor"})}})).overrideEditor(({editor:e,tf:{normalizeNode:t}})=>({transforms:{normalizeNode(n,r){if(Qi(n[0]._memo)){e.tf.unsetNodes("_memo",{at:n[1]});return}t(n,r)}}})),mp=fP({blur:null,focus:null,last:null},{mutative:!0,name:"event-editor"}),{useValue:Rfe}=mp,Ene="focus-editor-event",Dne="blur-editor-event",Sne=HD({key:"eventEditor",handlers:{onBlur:({editor:e})=>{mp.get("focus")===e.id&&mp.set("focus",null),mp.set("blur",e.id),document.dispatchEvent(new CustomEvent(Dne,{detail:{id:e.id}}))},onFocus:({editor:e})=>{mp.set("focus",e.id),mp.set("last",e.id),document.dispatchEvent(new CustomEvent(Ene,{detail:{id:e.id}}))}}}),Cne=Zn(Yy,({editor:e,type:t})=>({shortcuts:{toggleParagraph:{keys:[[Od.Mod,Od.Alt,"0"],[Od.Mod,Od.Shift,"0"]],preventDefault:!0,handler:()=>{e.tf.toggleBlock(t)}}}})),wne=({editor:e})=>XG(e),Ane=Zn(pp,{key:"dom",extendEditor:wne}),One=()=>[bne,Ane,Sne,Cne],xne=(e,{plugins:t=[],...n}={})=>mne(e,{...n,plugins:[...One(),...t]}),m7=({editor:e=BQ(),...t}={})=>xne(e,t),Tne=(e={})=>{const t=m7(e);return t.meta.isFallback=!0,t.apply=()=>{throw new Error("Cannot apply operations on the fallback editor. The fallback editor is used when a hook that depends on the Plate store was unable to locate a valid store. If you are using PlateController, use `useEditorMounted(id?: string)` or `!editor.meta.isFallback` to ensure that a valid Plate store is available before attempting to call operations on the editor.")},t},g7=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],gp=({attributes:e,disableInjectNodeProps:t,editor:n,plugin:r,props:l,readOnly:s})=>{let f={...l,...r?$D(n,r):{api:n.api,editor:n,tf:n.transforms}};const{className:h}=l,p=d7({attributes:e,plugin:r,props:f});return f={...p,attributes:{...p.attributes,className:na(h7(r?.node.type),p.attributes?.className,h)||void 0}},t||(f=DF(n,f,y=>n.api.findPath(y),s)),f.attributes?.style&&Object.keys(f.attributes.style).length===0&&delete f.attributes.style,f},Bne=e=>{let t=!1;return{...e,bubbles:e.bubbles,cancelable:e.cancelable,currentTarget:e.currentTarget,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,nativeEvent:e,target:e.target,timeStamp:e.timeStamp,type:e.type,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>t,persist:()=>{throw new Error("persist is not implemented for synthetic events created using convertDomEventToSyntheticEvent")},preventDefault:()=>e.preventDefault(),stopPropagation:()=>{t=!0,e.stopPropagation()}}},_ne=(e,t)=>{if(!t)return!1;const n=t(e);return n??e.isPropagationStopped()},Rne=(e,{editableProps:t,handlerKey:n})=>{const r=t?.[n],l=e.meta.pluginList.filter(s=>s.handlers?.[n]);if(!(l.length===0&&!r))return s=>{const h=s instanceof Event?Bne(s):s;return l.some(y=>{if(ni(e.dom.readOnly,y,"handlers"))return!1;const b=y.handlers[n],S=b({...$D(e,y),event:h});return S??!1})?!0:_ne(h,r)}},Nne=(e,t)=>e.meta.pluginCache.handlers.onChange.some(n=>{const r=p7(e,{key:n});if(ni(e.dom.readOnly,r,"handlers"))return!1;const l=r.handlers.onChange,s=l({...$D(e,r),value:t});return s??!1}),L2=(e,t)=>({...e.attributes,className:na(e.attributes.className,e.className)||void 0,ref:tF(t,e.attributes.ref),style:{...e.attributes.style,...e.style}}),VD=k.forwardRef(function({as:t="div",children:n,insetProp:r,...l},s){const f=L2(l,s),h=rre(),p=k.useMemo(()=>h&&!!l.element.id&&!!l.editor.api.isBlock(l.element),[l.element,l.editor,h]),y=r??l.plugin?.rules.selection?.affinity==="directional";return k.createElement(k.Fragment,null,y&&k.createElement(GD,null),k.createElement(t,{"data-slate-node":"element","data-slate-inline":f["data-slate-inline"],"data-block-id":p?l.element.id:void 0,...f,style:{position:"relative",...f?.style}},n,y&&k.createElement(GD,null)))}),y7=k.forwardRef(({as:e="span",children:t,...n},r)=>{const l=L2(n,r);return k.createElement(e,{...l},t)}),GD=()=>k.createElement("span",{style:{fontSize:0,lineHeight:0},contentEditable:!1},String.fromCodePoint(160)),b7=k.forwardRef(({as:e="span",children:t,inset:n,...r},l)=>{const s=L2(r,l);return n??r.plugin?.rules.selection?.affinity==="hard"?k.createElement(k.Fragment,null,k.createElement(GD,null),k.createElement(e,{...s},t,k.createElement(GD,null))):k.createElement(e,{...s},t)}),Mne=(e,t)=>function(r){const{render:{leaf:l,node:s}}=t,{children:f,leaf:h}=r,p=Es();if(ni(p,t,"render"))return f;if(h[t.node.type]){const y=l??s,b=y??b7,S=gp({attributes:h.attributes,editor:e,plugin:t,props:r,readOnly:p}),C=y?{}:{as:t.render?.as};return k.createElement(b,{...C,...S},f)}return f},zne=(e,t)=>{const n=[],r=[];return e.meta.pluginCache.node.isLeaf.forEach(l=>{const s=e.getPlugin({key:l});s&&n.push(Mne(e,s))}),e.meta.pluginCache.node.leafProps.forEach(l=>{const s=e.getPlugin({key:l});s&&r.push(s)}),function({attributes:s,...f}){const h=Es();if(n.forEach(y=>{const b=y(f);b!==void 0&&(f.children=b)}),r.forEach(y=>{if(f.leaf[y.node.type]){const b=typeof y.node.leafProps=="function"?y.node.leafProps(f):y.node.leafProps??{};b.className&&(b.className=na(f.className,b.className)),s={...s,...b}}}),t)return t({attributes:s,...f});const p=gp({editor:e,props:{attributes:s,...f},readOnly:h});return k.createElement(b7,{...p},f.children)}},kne=(e,t)=>function(r){const{render:{node:l}}=t,{children:s,text:f}=r,h=Es();if(ni(h,t,"render"))return s;if(f[t.node.type??t.key]){const p=l??y7,y=gp({attributes:r.attributes,editor:e,plugin:t,props:r,readOnly:h}),b=l?{}:{as:t.render?.as};return k.createElement(p,{...b,...y},s)}return s},Pne=(e,t)=>{const n=[],r=[];return e.meta.pluginList.forEach(l=>{l.node.isLeaf&&l.node.isDecoration===!1&&n.push(kne(e,l)),l.node.textProps&&r.push(l)}),function({attributes:s,...f}){const h=Es();if(n.forEach(y=>{const b=y(f);b!==void 0&&(f.children=b)}),r.forEach(y=>{if(f.text[y.node.type??y.key]){const b=typeof y.node.textProps=="function"?y.node.textProps(f):y.node.textProps??{};b.className&&(b.className=na(f.className,b.className)),s={...s,...b}}}),t)return t({attributes:s,...f});const p=gp({editor:e,props:{attributes:s,...f},readOnly:h});return k.createElement(y7,{...p},f.children)}},jne=({disabled:e,readOnly:t,...n}={})=>{const{id:r}=n,l=Ba(r),s=wi(r),f=gr(s,"versionDecorate"),h=gr(s,"decorate"),p=gr(s,"renderChunk"),y=gr(s,"renderElement"),b=gr(s,"renderLeaf"),S=gr(s,"renderText"),C=k.useMemo(()=>Oee(l,h??n?.decorate),[n?.decorate,l,h]),A=k.useMemo(()=>{if(!(!f||!C))return P=>C(P)},[C,f]),x=A7(e7,"contentVisibilityAuto")?XJ:void 0,_=p??n?.renderChunk??x,B=k.useMemo(()=>Yne(l,y??n?.renderElement),[n?.renderElement,l,y]),R=k.useMemo(()=>zne(l,b??n?.renderLeaf),[n?.renderLeaf,l,b]),O=k.useMemo(()=>Pne(l,S??n?.renderText),[n?.renderText,l,S]),j=Z6(()=>{const P={decorate:A,renderChunk:_,renderElement:B,renderLeaf:R,renderText:O};return g7.forEach(L=>{const Y=Rne(l,{editableProps:n,handlerKey:L});Y&&(P[L]=Y)}),P},[A,n,_,B,R,O]);return Z6(()=>({...iJ(n,[...g7,"renderChunk","renderElement","renderLeaf","renderText","decorate"]),...j,"aria-disabled":e,className:na("slate-editor","ignore-click-outside/toolbar",n.className),"data-readonly":t?"true":void 0,readOnly:t}),[n,j,t])},Fne=e=>{const t=Ba();return mJ(()=>t.api.findPath(e),[t,e],(n,r)=>!!n&&!!r&&ot.equals(n,r))},Lne=({id:e})=>{const t=Ba(e),n=wi(e),r=gr(n,"onChange"),l=gr(n,"onValueChange"),s=gr(n,"onSelectionChange"),f=YD("versionEditor",e),h=YD("versionSelection",e),p=YD("versionValue",e),y=k.useCallback(C=>{f(),Nne(t,C)||r?.({editor:t,value:C})},[t,r,f]),b=k.useMemo(()=>C=>{p(),l?.({editor:t,value:C})},[t,l,p]),S=k.useMemo(()=>C=>{h(),s?.({editor:t,selection:C})},[t,s,h]);return k.useMemo(()=>({key:t.meta.key,editor:t,initialValue:t.children,value:t.children,onChange:y,onSelectionChange:S,onValueChange:b}),[t,y,S,b])},qne=e=>{const t=Ba(),n=gr(D7(e),"path");if(!n){t.api.debug.warn(`usePath(${e}) hook must be used inside the node component's context`,"USE_ELEMENT_CONTEXT");return}return n},Une="element",Hne={element:null,entry:null,path:null},{ElementProvider:E7,useElementStore:D7}=$A(Hne,{effect:$ne,name:"element",suppressWarnings:!0});function $ne(){const e=qne();return e&&ot.equals(e,[0])?k.createElement(Vne,null):null}function Vne(){const e=Ba(),t=wi(),n=FG(),r=Es();return e.dom.readOnly=r,e.dom.composing=n,k.useLayoutEffect(()=>{t.set("composing",n)},[n,t]),null}function Gne({editor:e,plugin:t,...n}){const r=ure(),l=Es();if(ni(l,t,"render"))return null;const{children:s}=n,f=t.render?.node,h=f??VD;n=gp({attributes:r.attributes,editor:e,plugin:t,props:n,readOnly:l});let p=s;e.meta.pluginCache.render.belowNodes.forEach(S=>{const C=e.getPlugin({key:S}),A=C.render.belowNodes,x=A({...n,key:S});x&&!ni(l,C,"render")&&(p=x({...n,children:p}))});const y=f?{}:{as:t.render?.as};let b=k.createElement(h,{...y,...n},p,k.createElement(S7,{...y,...n}));return e.meta.pluginCache.render.aboveNodes.forEach(S=>{const C=e.getPlugin({key:S}),A=C.render.aboveNodes,x=A({...n,key:S});x&&!ni(l,C,"render")&&(b=x({...n,children:b}))}),b}function S7(e){const t=Ba(),n=Es();return k.createElement(k.Fragment,null,t.meta.pluginCache.render.belowRootNodes.map(r=>{const l=t.getPlugin({key:r});if(ni(n,l,"render"))return null;const s=l.render.belowRootNodes;return k.createElement(s,{key:r,...e})}))}var Ine=(e,t)=>function(r){const{element:l,path:s}=r;return k.createElement(E7,{element:l,entry:[l,s],path:s,scope:t.key},k.createElement(Gne,{editor:e,plugin:t,...r}))},Yne=(e,t)=>function(r){const l=Es(),s=Fne(r.element),f=ti(e,r.element.type);if(f?.node.isElement)return Ine(e,f)({...r,path:s});if(t)return t({...r,path:s});const h=gp({disableInjectNodeProps:!0,editor:e,props:{...r,path:s},readOnly:l});return k.createElement(E7,{element:h.element,entry:[h.element,s],path:s,scope:h.element.type??"default"},k.createElement(VD,{...h},r.children,k.createElement(S7,{...h})))},{plateControllerStore:ID,usePlateControllerStore:Kne}=$A({activeId:Ou(null),editorStores:Ou({}),primaryEditorIds:Ou([])},{name:"plateController"}),tb=e=>Kne({scope:void 0,warnIfNoStore:!1}),Xne=()=>!!tb().store,Zne=e=>{const t=k.useMemo(()=>Ou(n=>{const r=n(ID.atom.editorStores),l=f=>f?r[f]??null:null;if(e)return l(e);const s=[n(ID.atom.activeId),...n(ID.atom.primaryEditorIds)];for(const f of s){const h=l(f);if(h)return h}return null}),[e]);return jk(tb(),t)},C7=({id:e,composing:t=!1,containerRef:n={current:null},decorate:r=null,editor:l,isMounted:s=!1,primary:f=!0,readOnly:h=null,renderChunk:p=null,renderElement:y=null,renderLeaf:b=null,renderText:S=null,scrollRef:C={current:null},versionDecorate:A=1,versionEditor:x=1,versionSelection:_=1,versionValue:B=1,onChange:R=null,onNodeChange:O=null,onSelectionChange:j=null,onTextChange:P=null,onValueChange:L=null,...Y}={})=>$A({composing:t,containerRef:n,decorate:r,editor:l,isMounted:s,primary:f,readOnly:h,renderChunk:p,renderElement:y,renderLeaf:b,renderText:S,scrollRef:C,versionDecorate:A,versionEditor:x,versionSelection:_,versionValue:B,onChange:R,onNodeChange:O,onSelectionChange:j,onTextChange:P,onValueChange:L,...Y},{name:"plate",suppressWarnings:!0,extend:G=>({trackedEditor:Ou(z=>({editor:z(G.editor),version:z(G.versionEditor)})),trackedSelection:Ou(z=>({selection:z(G.editor).selection,version:z(G.versionSelection)})),trackedValue:Ou(z=>({value:z(G.editor).children,version:z(G.versionValue)}))})}),{PlateProvider:Qne,plateStore:Wne,usePlateStore:Jne}=C7(),{usePlateStore:ere}=C7(),wi=e=>{const t=Jne({scope:e,warnIfNoStore:!1})??null,[n]=k.useState(!!t.store),r=n?t:Zne(e),l=Xne(),s=ere();if(!r){if(l)return s;throw new Error("Plate hooks must be used inside a Plate or PlateController")}return r},tre=()=>gr(wi(),"editor").id,nre=e=>gr(wi(e),"containerRef"),rre=e=>!!gr(wi(e),"isMounted"),q2=e=>!!gr(wi(e),"readOnly"),are=e=>!!gr(wi(e),"composing"),Ba=e=>{const t=wi(e),n=gr(t,"editor")??Tne();return n.store=t,n},YD=(e,t)=>{const n=k.useRef(1),r=wi(t),l=Td(r,"versionDecorate"),s=Td(r,"versionSelection"),f=Td(r,"versionValue"),h=Td(r,"versionEditor");return k.useCallback(()=>{const p=n.current+1;switch(e){case"versionDecorate":{l(p);break}case"versionEditor":{h(p);break}case"versionSelection":{s(p);break}case"versionValue":{f(p);break}}n.current=p},[e,l,h,s,f])},ire=e=>{const t=YD("versionDecorate",e);return k.useCallback(()=>{t()},[t])},w7=(e,t,{id:n,equalityFn:r=(l,s)=>l===s}={})=>{const l=k.useMemo(()=>_k(Wne.atom.trackedEditor,({editor:s},f)=>e(s,f),r),t);return jk(wi(n),l)};function A7(e,t,...n){const r=Ba();return lre(r,e,t,...n)}function lre(e,t,n,...r){const l=e.getOptionsStore(t);if(l){if(!(n in l.get("state"))&&!(n in l.selectors)){e.api.debug.error(`usePluginOption: ${n} option is not defined in plugin ${t.key}`,"OPTION_UNDEFINED");return}return KY(l,n,...r)}}var ure=(e=Une)=>{const t=Ba(),n=gr(D7(e),"element");return n||(t.api.debug.warn(`useElement(${e}) hook must be used inside the node component's context`,"USE_ELEMENT_CONTEXT"),{})};function ore({id:e,editableRef:t}){const n=Ba(e);return k.createElement(k.Fragment,null,Object.entries(n.meta.shortcuts).map(([r,l])=>!l||!Qi(l.keys)||!l.handler?null:k.createElement(sre,{id:e,key:r,editableRef:t,hotkeyConfig:l})))}function sre({id:e,editableRef:t,hotkeyConfig:n}){const r=Ba(e),{keys:l,handler:s,...f}=n,h=gI(l,(p,y)=>{s({editor:r,event:p,eventDetails:y})!==!1&&!Qi(f.preventDefault)&&(p.preventDefault(),p.stopPropagation?.())},{enableOnContentEditable:!0,...f},[]);return k.useEffect(()=>{t.current&&h(t.current)},[h,t]),null}var cre=({id:e})=>{const t=Ba(e),n=ire(e);return k.useEffect(()=>{t.api.redecorate=n},[t,n]),null};function fre({id:e,plugin:t}){const n=Ba(e);return t.useHooks?.($D(n,t)),null}function dre({id:e}){const t=wi(e),n=gr(t,"editor"),r=Td(t,"isMounted");return k.useEffect(()=>(r(!0),()=>{r(!1)}),[r]),k.createElement(k.Fragment,null,n.meta.pluginCache.useHooks.map(l=>k.createElement(fre,{id:e,key:l,plugin:p7(n,{key:l})})))}function hre(){globalThis.__PLATE_INSTANCES__=(globalThis.__PLATE_INSTANCES__||0)+1}hre();function vre(e){k.useEffect(()=>{!e&&globalThis.__PLATE_INSTANCES__&&globalThis.__PLATE_INSTANCES__>1&&console.warn("Detected multiple @platejs/core instances!")},[e])}function pre({children:e,containerRef:t,decorate:n,editor:r,primary:l,readOnly:s,renderElement:f,renderLeaf:h,scrollRef:p,onChange:y,onNodeChange:b,onSelectionChange:S,onTextChange:C,onValueChange:A}){return k.createElement(Qne,{readOnly:s??r?.dom.readOnly,onChange:y,onNodeChange:b,onSelectionChange:S,onTextChange:C,onValueChange:A,containerRef:t,decorate:n,editor:r,primary:l,renderElement:f,renderLeaf:h,scope:r.id,scrollRef:p},e)}function mre(e){const t=k.useId(),n=k.useRef(null),r=k.useRef(null);return vre(e.suppressInstanceWarning),e.editor?(e.editor.meta.uid="e-"+t.replaceAll(":",""),k.createElement(pre,{key:e.editor.meta.key,containerRef:n,scrollRef:r,...e})):null}var O7=({children:e,...t})=>{const n=Ba(),r=q2(),l=nre();let s=null,f=null;const h=k.createElement("div",{id:n.meta.uid,ref:l,...t},e);return n.meta.pluginCache.render.beforeContainer.forEach(p=>{const y=n.getPlugin({key:p});if(ni(r,y,"render"))return;const b=y.render.beforeContainer;f=k.createElement(k.Fragment,null,f,k.createElement(b,{...t}))}),n.meta.pluginCache.render.afterContainer.forEach(p=>{const y=n.getPlugin({key:p});if(ni(r,y,"render"))return;const b=y.render.afterContainer;s=k.createElement(k.Fragment,null,s,k.createElement(b,{...t}))}),k.createElement(k.Fragment,null,f,h,s)};O7.displayName="PlateContainer";var gre=({id:e})=>{const t=tre(),n=e??t,r=k.useMemo(()=>KJ(ID.atom.editorStores,b=>b.prop(n)),[n]),l=v2(tb().setAtom(r),[r]),s=v2(Td(tb(),"primaryEditorIds")),f=v2(Td(tb(),"activeId")),h=wi(n),p=gr(h,"primary"),y=dk();return k.useEffect(()=>(l(h??null),()=>{l(null),f(b=>b===n?null:b)}),[h,l,f,n]),k.useEffect(()=>{if(p)return s(b=>[...b,n]),()=>{s(b=>b.filter(S=>S!==n))}},[n,p,s]),k.useEffect(()=>{n&&y&&f(n)},[n,y,f]),null};function yre({id:e,children:t}){const n=Lne({id:e}),r=Ba(e);let l=k.createElement(KG,{...n},t);return r.meta.pluginCache.render.aboveSlate.forEach(s=>{const h=r.getPlugin({key:s}).render.aboveSlate;l=k.createElement(h,null,l)}),l}var x7=k.forwardRef(({autoFocusOnEditable:e,readOnly:t,renderEditable:n,...r},l)=>{const{id:s}=r,f=Ba(s),h=q2(),p=r.disabled?!0:t??h;if(f.dom.readOnly=p,!f)throw new Error("Editor not found. Please ensure that PlateContent is rendered below Plate.");const y=jne({...r,readOnly:p}),b=k.useRef(null),S=tF(l,b);if(!f.children||f.children.length===0)return null;const C=k.createElement(HG,{ref:S,...y});let A=null,x=null;f.meta.pluginCache.render.beforeEditable.forEach(B=>{const R=f.getPlugin({key:B});if(ni(p,R,"render"))return;const O=R.render.beforeEditable;x=k.createElement(k.Fragment,null,x,k.createElement(O,{...y}))}),f.meta.pluginCache.render.afterEditable.forEach(B=>{const R=f.getPlugin({key:B});if(ni(p,R,"render"))return;const O=R.render.afterEditable;A=k.createElement(k.Fragment,null,A,k.createElement(O,{...y}))});let _=k.createElement(k.Fragment,null,n?n(C):C,k.createElement(cre,{id:s}),k.createElement(ore,{id:s,editableRef:b}),k.createElement(dre,{id:s}),k.createElement(gre,{id:s}));return f.meta.pluginCache.render.aboveEditable.forEach(B=>{const R=f.getPlugin({key:B});if(ni(p,R,"render"))return;const O=R.render.aboveEditable;_=k.createElement(O,null,_)}),k.createElement(yre,{id:s},k.createElement(bre,{id:s,disabled:r.disabled,readOnly:t,autoFocusOnEditable:e,editor:f}),x,_,A)});x7.displayName="PlateContent";function bre({id:e,autoFocusOnEditable:t,disabled:n,editor:r,readOnly:l}){const s=wi(e);k.useLayoutEffect(()=>{if(n){s.setReadOnly(!0);return}Qi(l)&&s.setReadOnly(l)},[n,r.dom,l,s]);const f=gr(s,"onNodeChange");k.useLayoutEffect(()=>{f&&r.setOption(UD,"onNodeChange",f)},[r,f]);const h=gr(s,"onTextChange");k.useLayoutEffect(()=>{h&&r.setOption(UD,"onTextChange",h)},[r,h]);const p=k.useRef(l);return k.useEffect(()=>{t&&p.current&&!l&&r.tf.focus({edge:"endEditor"}),p.current=l},[t,r,l]),null}function Ere(e={},t=[]){const[,n]=k.useState({}),r=k.useRef(!1);return k.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),k.useMemo(()=>e.enabled===!1?null:m7({...e,onReady:s=>{s.isAsync&&r.current&&n({}),e.onReady?.(s)}}),[e.id,e.enabled,...t])}var U2,T7;function Dre(){if(T7)return U2;T7=1;var e=aB(),t=Ei();function n(r,l,s,f,h,p){return t(r)&&t(l)&&(p.set(l,r),e(r,l,void 0,n,p),p.delete(l)),r}return U2=n,U2}var H2,B7;function Sre(){if(B7)return H2;B7=1;var e=D8(),t=dB(),n=Dre(),r=P8(),l=t(function(s){return s.push(void 0,n),e(r,void 0,s)});return H2=l,H2}Sre();function yp(e){return typeof e=="function"}function $2(e,...t){return j8({},e,...t,(n,r,l)=>{if(Array.isArray(r))return r;if(l==="options")return{...n,...r}})}function Kt(e={}){let t,n;yp(e)?(t={key:""},n=s=>e(s)):t=e;const r=t.key??"",l=$2({key:r,__apiExtensions:[],__configuration:null,__extensions:n?[n]:[],__selectorExtensions:[],api:{},dependencies:[],editor:{},handlers:{},inject:{},node:{type:r},options:{},override:{},parser:{},parsers:{},plugins:[],priority:100,render:{},rules:{},shortcuts:{},transforms:{}},e);return l.node.isLeaf&&!Qi(l.node.isDecoration)&&(l.node.isDecoration=!0),l.configure=s=>{const f={...l};return f.__configuration=h=>yp(s)?s(h):s,Kt(f)},l.configurePlugin=(s,f)=>{const h={...l},p=b=>{let S=!1;const C=b.map(A=>{if(A.key===s.key)return S=!0,Kt({...A,__configuration:x=>yp(f)?f(x):f});if(A.plugins&&A.plugins.length>0){const x=p(A.plugins);if(x.found)return S=!0,{...A,plugins:x.plugins}}return A});return{found:S,plugins:C}},y=p(h.plugins);return h.plugins=y.plugins,Kt(h)},l.extendEditorApi=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!1}],Kt(f)},l.extendSelectors=s=>{const f={...l};return f.__selectorExtensions=[...f.__selectorExtensions,s],Kt(f)},l.extendApi=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!0}],Kt(f)},l.extendEditorTransforms=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!1,isTransform:!0}],Kt(f)},l.extendTransforms=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isPluginSpecific:!0,isTransform:!0}],Kt(f)},l.overrideEditor=s=>{const f={...l};return f.__apiExtensions=[...f.__apiExtensions,{extension:s,isOverride:!0,isPluginSpecific:!1,isTransform:!0}],Kt(f)},l.extend=s=>{let f={...l};return yp(s)?f.__extensions=[...f.__extensions,s]:f=$2(f,s),Kt(f)},l.clone=()=>$2(l),l.extendPlugin=(s,f)=>{const h={...l},p=b=>{let S=!1;const C=b.map(A=>{if(A.key===s.key)return S=!0,Kt({...A,__extensions:[...A.__extensions,x=>yp(f)?f(x):f]});if(A.plugins&&A.plugins.length>0){const x=p(A.plugins);if(x.found)return S=!0,{...A,plugins:x.plugins}}return A});return{found:S,plugins:C}},y=p(h.plugins);return h.plugins=y.plugins,y.found||h.plugins.push(Kt({key:s.key,__extensions:[b=>yp(f)?f(b):f]})),Kt(h)},l.withComponent=s=>l.extend({node:{component:s},render:{node:s}}),l}function _a(e={}){return Kt(e)}function Ra(e,t){const n=e.getPlugin(t);return{api:e.api,editor:e,plugin:n,setOption:(r,l)=>e.setOption(n,r,l),setOptions:r=>e.setOptions(n,r),tf:e.transforms,type:n.node.type,getOption:(r,...l)=>e.getOption(n,r,...l),getOptions:()=>e.getOptions(n)}}var KD=(e,t)=>e.meta.pluginCache.node.types[t],Cre=(e,t)=>t.map(n=>KD(e,n)??n).filter(Boolean),Ai=(e,t)=>{const n=KD(e,t);return n?e.getPlugin({key:n}):null};Kt({key:"ast",parser:{format:"application/x-slate-fragment",deserialize:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch{}return n}}});var wre=({editor:e})=>Y4(e);Kt({key:"history",extendEditor:wre});var V2=Kt({key:"p",node:{isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"P"}],query:({element:e})=>e.style.fontFamily!=="Consolas"}}},rules:{merge:{removeEmpty:!0}}}),Are=e=>{const{editor:t,tf:{insertBreak:n}}=e,r=(s,f,h)=>{const p=t.meta.pluginCache.rules.match;for(const y of p){const b=t.getPlugin({key:y});if(b.rules?.break&&b.rules?.match?.({...e,node:f,path:h,rule:s}))return b.rules.break}return null},l=(s,f)=>s==="reset"?(t.tf.resetBlock({at:f}),!0):s==="exit"?(t.tf.insertExitBreak(),!0):s==="deleteExit"?(t.tf.deleteBackward("character"),t.tf.insertExitBreak(),!0):s==="lineBreak"?(t.tf.insertSoftBreak(),!0):!1;return{transforms:{insertBreak(){if(t.selection&&t.api.isCollapsed()){const s=t.api.block();if(s){const[f,h]=s,y=Ai(t,f.type)?.rules.break;if(t.api.isEmpty(t.selection,{block:!0})){const B=(r("break.empty",f,h)||y)?.empty;if(l(B,h))return}if(!t.api.isEmpty(t.selection,{block:!0})&&t.api.isAt({end:!0})){const x=t.api.range("before",t.selection);if(x&&t.api.string(x)===`
333
+ `){const O=(r("break.emptyLineEnd",f,h)||y)?.emptyLineEnd;if(l(O,h))return}}const S=(r("break.default",f,h)||y)?.default;if(l(S,h))return;if(r("break.splitReset",f,h)?.splitReset??y?.splitReset){const x=t.api.isAt({start:!0});n(),t.tf.resetBlock({at:x?h:ot.next(h)});return}}}n()}}}},Ore=e=>{const{editor:t,tf:{deleteBackward:n,deleteForward:r,deleteFragment:l}}=e,s=()=>{t.api.isAt({start:!0})&&t.tf.removeMarks()},f=(p,y,b)=>{const S=t.meta.pluginCache.rules.match;for(const C of S){const A=t.getPlugin({key:C});if(A.rules?.delete&&A.rules?.match?.({...e,node:y,path:b,rule:p}))return A.rules.delete}return null},h=(p,y)=>p==="reset"?(t.tf.resetBlock({at:y}),!0):!1;return{transforms:{deleteBackward(p){if(t.selection&&t.api.isCollapsed()){const y=t.api.block();if(y){const[b,S]=y,A=Ai(t,b.type)?.rules.delete;if(t.api.isAt({start:!0})){const B=(f("delete.start",b,S)||A)?.start;if(h(B,S))return}if(t.api.isEmpty(t.selection,{block:!0})){const B=(f("delete.empty",b,S)||A)?.empty;if(h(B,S))return}}if(Kc.equals(t.selection.anchor,t.api.start([]))){t.tf.resetBlock({at:[0]});return}}n(p),s()},deleteForward(p){r(p),s()},deleteFragment(p){if(t.selection&&on.equals(t.selection,t.api.range([]))){t.tf.reset({children:!0,select:!0});return}l(p),s()}}}},xre=e=>{const{editor:t,tf:{removeNodes:n}}=e,r=(l,s,f)=>{const h=t.meta.pluginCache.rules.match;for(const p of h){const y=t.getPlugin({key:p});if(y.rules.merge&&y.rules?.match?.({...e,node:s,path:f,rule:l}))return y.rules.merge}return null};return{api:{shouldMergeNodes(l,s,{reverse:f}={}){const[h,p]=l,[,y]=s,[b,S]=f?l:s,[C,A]=f?s:l;if(Cn.isText(h)&&h.text===""&&p.at(-1)!==0)return t.tf.removeNodes({at:p}),!1;const x=(_,B)=>{const R=Ai(t,_.type);return R?!(!R.rules.merge?.removeEmpty||r("merge.removeEmpty",_,B)?.removeEmpty===!1):!0};return ct.isElement(C)&&t.api.isVoid(C)?(x(C,A)?t.tf.removeNodes({at:p}):ct.isElement(b)&&t.api.isEmpty(b)&&t.tf.removeNodes({at:S}),!1):ct.isElement(h)&&t.api.isEmpty(h)&&ot.isSibling(p,y)&&x(h,p)?(t.tf.removeNodes({at:p}),!1):!0}},transforms:{removeNodes(l={}){if(l.event?.type==="mergeNodes"&&l.at){const s=t.api.node(l.at);if(s){const[f,h]=s;if(ct.isElement(f)){const p=Ai(t,f.type);if(p){const y=p.rules.merge;if(r("merge.removeEmpty",f,h)?.removeEmpty===!1||y?.removeEmpty===!1)return}}}}n(l)}}}},Tre=e=>{const{editor:t,tf:{normalizeNode:n}}=e,r=(l,s,f)=>{const h=t.meta.pluginCache.rules.match;for(const p of h){const y=t.getPlugin({key:p});if(y.rules?.normalize&&y.rules?.match?.({...e,node:s,path:f,rule:l}))return y.rules.normalize}return null};return{transforms:{normalizeNode([l,s]){if(ct.isElement(l)&&l.type){const h=Ai(t,l.type)?.rules.normalize;if((r("normalize.removeEmpty",l,s)||h)?.removeEmpty&&t.api.isEmpty(l)){t.tf.removeNodes({at:s});return}}n([l,s])}}}},Bre=({api:{isInline:e,isSelectable:t,isVoid:n,markableVoid:r},editor:l})=>({api:{create:{block:s=>({children:[{text:""}],type:l.getType(V2.key),...s})},isInline(s){return Ai(l,s.type)?.node.isInline?!0:e(s)},isSelectable(s){return Ai(l,s.type)?.node.isSelectable===!1?!1:t(s)},isVoid(s){return Ai(l,s.type)?.node.isVoid?!0:n(s)},markableVoid(s){return Ai(l,s.type)?.node.isMarkableVoid?!0:r(s)}}});Kt({key:"override"}).overrideEditor(Bre).overrideEditor(Are).overrideEditor(Ore).overrideEditor(xre).overrideEditor(Tre);var _re=(e,t,{fragment:n,...r})=>{e.tf.withoutNormalizing(()=>{t.some(l=>l.parser?.preInsert?.({...Ra(e,l),fragment:n,...r})===!0),e.tf.insertFragment(n)})},Rre=(e,t,{data:n,...r})=>(t.forEach(l=>{const s=l.parser?.transformData;s&&(n=s({...Ra(e,l),data:n,...r}))}),n),Nre=(e,t,{fragment:n,...r})=>(t.forEach(l=>{const s=l.parser?.transformFragment;s&&(n=s({fragment:n,...r,...Ra(e,l)}))}),n),nb=({apply:e,node:t,path:n=[],query:r,source:l})=>{Zc([t,n],r)&&(typeof l=="function"?e(t,l()):e(t,l)),at.isAncestor(t)&&t.children.forEach((f,h)=>{nb({apply:e,node:f,path:n.concat([h]),query:r,source:l})})},Mre=e=>{nb({...e,apply:L8})},zre=(e,t)=>(n,r)=>{const{inject:{excludeBelowPlugins:l,excludePlugins:s,isBlock:f,isElement:h,isLeaf:p,maxLevel:y,targetPlugins:b}}=t,S=ct.isElement(n)?n:void 0;if(h&&!S||f&&(!S||!e.api.isBlock(S))||p&&S||S?.type&&(s?.includes(KD(e,S.type))||b&&!b.includes(KD(e,S.type))))return!1;if(l||y){if(y&&r.length>y)return!1;if(l){const C=Cre(e,l);if(e.api.above({at:r,match:x=>ct.isElement(x)&&C.includes(x.type)}))return!1}}return!0},_7=(e,t)=>{const n=[];return[...e.meta.pluginList].reverse().forEach(r=>{const l=r.inject.plugins?.[t.key];l&&n.push(l)}),[t,...n]},G2=(e,t)=>({...e.attributes,className:na(e.attributes.className,e.className)||void 0,ref:t,style:{...e.attributes.style,...e.style}}),R7=k.forwardRef(function({as:t="div",children:n,...r},l){const s=G2(r,l),f=!!r.element.id&&!!r.editor.api.isBlock(r.element);return k.createElement(t,{"data-slate-node":"element","data-slate-inline":s["data-slate-inline"],"data-block-id":f?r.element.id:void 0,...s,style:{position:"relative",...s?.style}},n)}),N7=k.forwardRef(({as:e="span",children:t,...n},r)=>{const l=G2(n,r);return k.createElement(e,{...l},t)}),M7=()=>k.createElement("span",{style:{fontSize:0,lineHeight:0},contentEditable:!1},String.fromCodePoint(160)),z7=k.forwardRef(({as:e="span",children:t,inset:n,...r},l)=>{const s=G2(r,l);return n?k.createElement(k.Fragment,null,k.createElement(M7,null),k.createElement(e,{...s},t,k.createElement(M7,null))):k.createElement(e,{...s},t)}),I2=(e,t,{isElement:n,isLeaf:r,isText:l})=>Object.keys(t).reduce((f,h)=>{if(typeof t[h]=="object"||n&&h==="children"||(r||l)&&h==="text")return f;const p=e.getPlugin({key:h});if(r&&p?.node.isLeaf&&p?.node.isDecoration!==!0||l&&p?.node.isLeaf&&p?.node.isDecoration!==!1)return f;const y=k7(h);return{...f,[y]:t[h]}},{}),kre=(e,t,n)=>{const r=t.node.isElement,l=t.node.isLeaf&&t.node.isDecoration===!0,s=t.node.isLeaf&&t.node.isDecoration===!1,f=I2(e,n,{isElement:r,isLeaf:l,isText:s}),h=t.node.toDataAttributes?.({...t?Ra(e,t):{},node:n})??{};return{...f,...h}},Pre=e=>Object.keys(e).filter(t=>typeof e[t]!="object"&&(!Cn.isText(e)||t!=="text")).map(t=>k7(t)),k7=e=>`data-slate-${o6(e)}`,P7={handlers:!0,inject:!0,normalizeInitialValue:!1,render:!0},j7=(e,t,n)=>e?t.editOnly===!0?P7[n]:typeof t.editOnly=="object"?t.editOnly[n]??P7[n]:!1:!1,jre=(e,t,n,r)=>{const{key:l,inject:{nodeProps:s}}=t,{element:f,text:h}=n,p=f??h;if(!p||!s)return;const{classNames:y,defaultNodeValue:b,nodeKey:S=e.getType(l),query:C,styleKey:A=S,transformClassName:x,transformNodeValue:_,transformProps:B,transformStyle:R,validNodeValues:O}=s;if(!zre(e,t)(p,r(p)))return;const P=C?.({...s,...Ra(e,t),nodeProps:n});if(C&&!P)return;const L=p[S];if(!B&&(!Qi(L)||O&&!O.includes(L)||L===b))return;const Y={...n,...Ra(e,t),nodeValue:L},G=_?.(Y)??L;Y.value=G;let z={};return f&&S&&L&&(z.className=`slate-${S}-${L}`),(y?.[L]||x)&&(z.className=x?.(Y)??y?.[G]),A&&(z.style=R?.(Y)??{[A]:G}),B&&(z=B({...Y,props:z})??z),z},Fre=(e,t,n,r=!1)=>(e.meta.pluginCache.inject.nodeProps.forEach(l=>{const s=e.getPlugin({key:l}),f=jre(e,s,t,n);if(j7(r,s,"inject")||!f)return;const h=t.attributes;t.attributes={...h,...f,className:na(h?.className,f.className)||void 0,style:{...h?.style,...f.style}}}),t),bp=({attributes:e,editor:t,node:n,plugin:r,props:l})=>{let s={...l,...r?Ra(t,r):{api:t.api,editor:t,tf:t.transforms}};const{className:f}=l,h=Sie({attributes:e,node:n,plugin:r,props:s});return s={...h,attributes:{...h.attributes,className:na(Cie(r?.node.type),f)||void 0}},s=Fre(t,s,p=>t.api.findPath(p)),s.style&&Object.keys(s.style).length===0&&delete s.style,s},F7=e=>{const t=window.getSelection();if(!t||t.rangeCount===0)return[];const l=t.getRangeAt(0).cloneContents().querySelectorAll('[data-slate-node="element"][data-slate-id]'),s=Array.from(l);if(s.length===0)return[];const f=[];return s.forEach((h,p)=>{const y=h.dataset.slateId,b=e.api.node({id:y,at:[]});if(!(!b||b[1].length!==1))if((p===0||p===s.length-1)&&h.textContent?.trim()!==at.string(b[0])&&ct.isElement(b[0])&&!e.api.isVoid(b[0])){const S=document.createElement("div");S.append(h);const C=e.api.html.deserialize({element:S});f.push(C[0])}else f.push(b[0])}),f},L7=()=>{const e=window.getSelection();if(!e||e.rangeCount===0)return;const n=e.getRangeAt(0).cloneContents(),r=document.createElement("div");return r.append(n),r},Lre=e=>{const t=e??L7();return t?!!t?.querySelector('[data-slate-editor="true"'):!1},qre=(e,t)=>{if(e.meta.pluginCache.decorate.length!==0)return n=>{let r=[];const l=s=>{s?.length&&(r=[...r,...s])};return e.meta.pluginCache.decorate.forEach(s=>{const f=e.getPlugin({key:s});l(f.decorate({...Ra(e,f),entry:n}))}),r}},Ure=(e,t)=>function(r){const l=r.element,s=e.meta.components?.[t.key],f=s??R7;let{children:h}=r;const p=kre(e,t,l);r=bp({attributes:{...l.attributes,...p},editor:e,node:l,plugin:t,props:r}),e.meta.pluginCache.render.belowNodes.forEach(S=>{const C=e.getPlugin({key:S}).render.belowNodes({...r,key:S});C&&(h=C({...r,children:h}))});const y=s?{}:{as:t.render?.as};let b=k.createElement(f,{...y,...r},h,e.meta.pluginCache.render.belowRootNodes.map(S=>{const A=e.getPlugin({key:S}).render.belowRootNodes;return k.createElement(A,{key:S,...y,...r})}));return e.meta.pluginCache.render.aboveNodes.forEach(S=>{const C=e.getPlugin({key:S}).render.aboveNodes({...r,key:S});C&&(b=C({...r,children:b}))}),b},Hre=(e,{renderElement:t}={})=>function(r){const l=Ai(e,r.element.type);if(l?.node.isElement)return Ure(e,l)(r);if(t)return t(r);const s=bp({editor:e,props:{...r}});return k.createElement(R7,{...s},r.children,e.meta.pluginCache.render.belowRootNodes.map(f=>{const p=e.getPlugin({key:f}).render.belowRootNodes;return k.createElement(p,{key:f,...s})}))},$re=(e,t)=>function(r){const{children:l,text:s}=r;if(s[t.node.type??t.key]){const f=e.meta.components?.[t.key],h=f??N7,p=bp({attributes:{...s.attributes},editor:e,node:s,plugin:t,props:r}),y=f?{}:{as:t.render?.as};return k.createElement(h,{...y,...p},l)}return l},Vre=(e,{renderText:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isText.forEach(l=>{const s=e.getPlugin({key:l});s&&n.push($re(e,s))}),e.meta.pluginCache.node.textProps.forEach(l=>{const s=e.getPlugin({key:l});s&&r.push(s)}),function({attributes:s,...f}){if(n.forEach(b=>{const S=b(f);S!==void 0&&(f.children=S)}),r.forEach(b=>{if(f.text[b.node.type??b.key]){const S=typeof b.node.textProps=="function"?b.node.textProps(f):b.node.textProps??{};S.className&&(S.className=na(f.className,S.className)),s={...s,...S}}}),t)return t({attributes:s,...f});const h=bp({editor:e,props:{attributes:s,...f}}),p=h.text,y=I2(e,p,{isText:!0});return k.createElement(N7,{...h,attributes:{...h.attributes,...y}})}};function Gre({decorate:e,decorations:t,editor:n,element:r={children:[],type:""}}){const l=Hre(n),s={"data-slate-node":"element",ref:null};let f=k.createElement(Y2,{decorate:e,decorations:t,editor:n},r.children);return n.api.isVoid(r)&&(s["data-slate-void"]=!0,f=k.createElement("span",{style:{color:"transparent",height:"0",outline:"none",position:"absolute"},"data-slate-spacer":!0},k.createElement(Y2,{decorate:e,decorations:t,editor:n},r.children))),n.api.isInline(r)&&(s["data-slate-inline"]=!0),k.createElement(k.Fragment,null,l?.({attributes:s,children:f,element:r}))}var Ire=k.memo(Gre,(e,t)=>(e.element===t.element||e.element._memo!==void 0&&e.element._memo===t.element._memo)&&Ay(e.decorations,t.decorations));function Yre({decorations:e,editor:t,text:n={text:""}}){const r=Wre(t),l=Vre(t),f=Cn.decorations(n,e).map(({leaf:h,position:p},y)=>{const b=r({attributes:{"data-slate-leaf":!0},children:k.createElement("span",{"data-slate-string":!0},h.text===""?"\uFEFF":h.text),leaf:h,leafPosition:p,text:h});return k.createElement(k.Fragment,{key:y},b)});return l({attributes:{"data-slate-node":"text",ref:null},children:f,text:n})}var Kre=k.memo(Yre,(e,t)=>Cn.equals(t.text,e.text)&&kE(t.decorations,e.decorations)),Xre=()=>[];function Y2({children:e=[],decorate:t=Xre,decorations:n=[],editor:r}){return k.createElement(k.Fragment,null,e.map((l,s)=>{const f=r.api.findPath(l);let h=[];if(f){const p=r.api.range(f);h=t([l,f]);for(const y of n){const b=on.intersection(y,p);b&&h.push(b)}}return ct.isElement(l)?k.createElement(Ire,{key:s,decorate:t,decorations:h,editor:r,element:l}):k.createElement(Kre,{key:s,decorations:h,editor:r,text:l})}))}function Zre(e){const{className:t,editor:n,value:r,...l}=e;r&&(n.children=r);const s=qre(n);let f=null,h=null;n.meta.pluginCache.render.beforeEditable.forEach(b=>{const C=n.getPlugin({key:b}).render.beforeEditable;C&&(h=k.createElement(k.Fragment,null,h,k.createElement(C,null)))}),n.meta.pluginCache.render.afterEditable.forEach(b=>{const C=n.getPlugin({key:b}).render.afterEditable;C&&(f=k.createElement(k.Fragment,null,f,k.createElement(C,null)))});const p=k.createElement("div",{className:na("slate-editor",t),"data-slate-editor":!0,"data-slate-node":"value",...l},k.createElement(Y2,{decorate:s,decorations:[],editor:n},n.children));let y=k.createElement(k.Fragment,null,h,p,f);return n.meta.pluginCache.render.aboveEditable.forEach(b=>{const C=n.getPlugin({key:b}).render.aboveEditable;C&&(y=k.createElement(C,null,y))}),y}var Qre=(e,t)=>function(r){const{children:l,leaf:s}=r;if(s[t.node.type]){const f=t.render.leaf??e.meta.components?.[t.key],h=f??z7,p=bp({attributes:{...s.attributes},editor:e,node:s,plugin:t,props:r}),y=f?{}:{as:t.render?.as};return k.createElement(h,{...y,...p},l)}return l},Wre=(e,{renderLeaf:t}={})=>{const n=[],r=[];return e.meta.pluginCache.node.isLeaf.forEach(l=>{const s=e.getPlugin({key:l});s&&n.push(Qre(e,s))}),e.meta.pluginCache.node.leafProps.forEach(l=>{const s=e.getPlugin({key:l});s&&r.push(s)}),function({attributes:s,...f}){if(n.forEach(b=>{const S=b(f);S!==void 0&&(f.children=S)}),r.forEach(b=>{if(f.leaf[b.node.type]){const S=typeof b.node.leafProps=="function"?b.node.leafProps(f):b.node.leafProps??{};S.className&&(S.className=na(f.className,S.className)),s={...s,...S}}}),t)return t({attributes:s,...f});const h=bp({editor:e,props:{attributes:s,...f}}),p=h.leaf,y=I2(e,p,{isLeaf:!0});return k.createElement(z7,{...h,attributes:{...h.attributes,...y}})}},q7=e=>e.dataset.slateVoid==="true",Jre=e=>e.dataset.slateNode==="element",eae=e=>e.dataset.slateNode==="text",tae=e=>e.dataset.slateString==="true",U7=e=>e.dataset.slateLeaf==="true",XD=e=>U7(e)||Jre(e)||q7(e)||tae(e)||eae(e),nae=(e,t)=>e.classList.contains(`slate-${t}`),H7=Symbol.for("immer-nothing"),$7=Symbol.for("immer-draftable"),il=Symbol.for("immer-state"),rae=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Oi(e,...t){if(process.env.NODE_ENV!=="production"){const n=rae[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ep=Object.getPrototypeOf;function Dp(e){return!!e&&!!e[il]}function Ud(e){return e?V7(e)||Array.isArray(e)||!!e[$7]||!!e.constructor?.[$7]||WD(e)||JD(e):!1}var aae=Object.prototype.constructor.toString();function V7(e){if(!e||typeof e!="object")return!1;const t=Ep(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)===aae}function ZD(e,t){QD(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function QD(e){const t=e[il];return t?t.type_:Array.isArray(e)?1:WD(e)?2:JD(e)?3:0}function K2(e,t){return QD(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G7(e,t,n){const r=QD(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function iae(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function WD(e){return e instanceof Map}function JD(e){return e instanceof Set}function Hd(e){return e.copy_||e.base_}function X2(e,t){if(WD(e))return new Map(e);if(JD(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=V7(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[il];let l=Reflect.ownKeys(r);for(let s=0;s<l.length;s++){const f=l[s],h=r[f];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(r[f]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[f]})}return Object.create(Ep(e),r)}else{const r=Ep(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function Z2(e,t=!1){return eS(e)||Dp(e)||!Ud(e)||(QD(e)>1&&(e.set=e.add=e.clear=e.delete=lae),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Z2(r,!0))),e}function lae(){Oi(2)}function eS(e){return Object.isFrozen(e)}var uae={};function $d(e){const t=uae[e];return t||Oi(0,e),t}var rb;function I7(){return rb}function oae(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Y7(e,t){t&&($d("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Q2(e){W2(e),e.drafts_.forEach(sae),e.drafts_=null}function W2(e){e===rb&&(rb=e.parent_)}function K7(e){return rb=oae(rb,e)}function sae(e){const t=e[il];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function X7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[il].modified_&&(Q2(t),Oi(4)),Ud(e)&&(e=tS(t,e),t.parent_||nS(t,e)),t.patches_&&$d("Patches").generateReplacementPatches_(n[il].base_,e,t.patches_,t.inversePatches_)):e=tS(t,n,[]),Q2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==H7?e:void 0}function tS(e,t,n){if(eS(t))return t;const r=t[il];if(!r)return ZD(t,(l,s)=>Z7(e,r,t,l,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return nS(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const l=r.copy_;let s=l,f=!1;r.type_===3&&(s=new Set(l),l.clear(),f=!0),ZD(s,(h,p)=>Z7(e,r,l,h,p,n,f)),nS(e,l,!1),n&&e.patches_&&$d("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Z7(e,t,n,r,l,s,f){if(process.env.NODE_ENV!=="production"&&l===n&&Oi(5),Dp(l)){const h=s&&t&&t.type_!==3&&!K2(t.assigned_,r)?s.concat(r):void 0,p=tS(e,l,h);if(G7(n,r,p),Dp(p))e.canAutoFreeze_=!1;else return}else f&&n.add(l);if(Ud(l)&&!eS(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tS(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&nS(e,l)}}function nS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Z2(t,n)}function cae(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:I7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,s=J2;n&&(l=[r],s=ab);const{revoke:f,proxy:h}=Proxy.revocable(l,s);return r.draft_=h,r.revoke_=f,h}var J2={get(e,t){if(t===il)return e;const n=Hd(e);if(!K2(n,t))return fae(e,n,t);const r=n[t];return e.finalized_||!Ud(r)?r:r===e_(e.base_,t)?(n_(e),e.copy_[t]=r_(r,e)):r},has(e,t){return t in Hd(e)},ownKeys(e){return Reflect.ownKeys(Hd(e))},set(e,t,n){const r=Q7(Hd(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=e_(Hd(e),t),s=l?.[il];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(iae(n,l)&&(n!==void 0||K2(e.base_,t)))return!0;n_(e),t_(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 e_(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,n_(e),t_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Hd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Oi(11)},getPrototypeOf(e){return Ep(e.base_)},setPrototypeOf(){Oi(12)}},ab={};ZD(J2,(e,t)=>{ab[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ab.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Oi(13),ab.set.call(this,e,t,void 0)},ab.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Oi(14),J2.set.call(this,e[0],t,n,e[0])};function e_(e,t){const n=e[il];return(n?Hd(n):e)[t]}function fae(e,t,n){const r=Q7(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function Q7(e,t){if(!(t in e))return;let n=Ep(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ep(n)}}function t_(e){e.modified_||(e.modified_=!0,e.parent_&&t_(e.parent_))}function n_(e){e.copy_||(e.copy_=X2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dae=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,l)=>{if(typeof n=="function"&&typeof r!="function"){const f=r;r=n;const h=this;return function(y=f,...b){return h.produce(y,S=>r.call(this,S,...b))}}typeof r!="function"&&Oi(6),l!==void 0&&typeof l!="function"&&Oi(7);let s;if(Ud(n)){const f=K7(this),h=r_(n,void 0);let p=!0;try{s=r(h),p=!1}finally{p?Q2(f):W2(f)}return Y7(f,l),X7(s,f)}else if(!n||typeof n!="object"){if(s=r(n),s===void 0&&(s=n),s===H7&&(s=void 0),this.autoFreeze_&&Z2(s,!0),l){const f=[],h=[];$d("Patches").generateReplacementPatches_(n,s,f,h),l(f,h)}return s}else Oi(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(h,...p)=>this.produceWithPatches(h,y=>n(y,...p));let l,s;return[this.produce(n,r,(h,p)=>{l=h,s=p}),l,s]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Ud(t)||Oi(8),Dp(t)&&(t=hae(t));const n=K7(this),r=r_(t,void 0);return r[il].isManual_=!0,W2(n),r}finishDraft(t,n){const r=t&&t[il];(!r||!r.isManual_)&&Oi(9);const{scope_:l}=r;return Y7(l,n),X7(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const s=n[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(n=n.slice(r+1));const l=$d("Patches").applyPatches_;return Dp(t)?l(t,n):this.produce(t,s=>l(s,n))}};function r_(e,t){const n=WD(e)?$d("MapSet").proxyMap_(e,t):JD(e)?$d("MapSet").proxySet_(e,t):cae(e,t);return(t?t.scope_:I7()).drafts_.push(n),n}function hae(e){return Dp(e)||Oi(10,e),W7(e)}function W7(e){if(!Ud(e)||eS(e))return e;const t=e[il];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=X2(e,t.scope_.immer_.useStrictShallowCopy_)}else n=X2(e,!0);return ZD(n,(r,l)=>{G7(n,r,W7(l))}),t&&(t.finalized_=!1),n}var ll=new dae,vae=ll.produce;ll.produceWithPatches.bind(ll),ll.setAutoFreeze.bind(ll),ll.setUseStrictShallowCopy.bind(ll),ll.applyPatches.bind(ll),ll.createDraft.bind(ll),ll.finishDraft.bind(ll);var Fe={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=Fe.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 l=e[r],s=t[r];if(l!==s)break;n.push(l)}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),l=t.slice(0,n),s=e[n],f=t[n];return Fe.equals(r,l)&&s>f},endsAt(e,t){var n=e.length,r=e.slice(0,n),l=t.slice(0,n);return Fe.equals(r,l)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),l=t.slice(0,n),s=e[n],f=t[n];return Fe.equals(r,l)&&s<f},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 Fe.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&Fe.compare(e,t)===0},isBefore(e,t){return Fe.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&Fe.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&Fe.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&Fe.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&Fe.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),l=e[e.length-1],s=t[t.length-1];return l!==s&&Fe.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],l=0;l<=e.length;l++)r.push(e.slice(0,l));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(!Fe.isAncestor(t,e)&&!Fe.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:l="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:s}=t;(Fe.equals(s,r)||Fe.endsBefore(s,r)||Fe.isAncestor(s,r))&&(r[s.length-1]+=1);break}case"remove_node":{var{path:f}=t;if(Fe.equals(f,r)||Fe.isAncestor(f,r))return null;Fe.endsBefore(f,r)&&(r[f.length-1]-=1);break}case"merge_node":{var{path:h,position:p}=t;Fe.equals(h,r)||Fe.endsBefore(h,r)?r[h.length-1]-=1:Fe.isAncestor(h,r)&&(r[h.length-1]-=1,r[h.length]+=p);break}case"split_node":{var{path:y,position:b}=t;if(Fe.equals(y,r)){if(l==="forward")r[r.length-1]+=1;else if(l!=="backward")return null}else Fe.endsBefore(y,r)?r[y.length-1]+=1:Fe.isAncestor(y,r)&&e[y.length]>=b&&(r[y.length-1]+=1,r[y.length]-=b);break}case"move_node":{var{path:S,newPath:C}=t;if(Fe.equals(S,C))return r;if(Fe.isAncestor(S,r)||Fe.equals(S,r)){var A=C.slice();return Fe.endsBefore(S,C)&&S.length<C.length&&(A[S.length-1]-=1),A.concat(r.slice(S.length))}else Fe.isSibling(S,C)&&(Fe.isAncestor(C,r)||Fe.equals(C,r))?Fe.endsBefore(S,r)?r[S.length-1]-=1:r[S.length-1]+=1:Fe.endsBefore(C,r)||Fe.equals(C,r)||Fe.isAncestor(C,r)?(Fe.endsBefore(S,r)&&(r[S.length-1]-=1),r[C.length-1]+=1):Fe.endsBefore(S,r)&&(Fe.equals(C,r)&&(r[C.length-1]+=1),r[S.length-1]-=1);break}}return r}};function ib(e){"@babel/helpers - typeof";return ib=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},ib(e)}function pae(e,t){if(ib(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ib(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mae(e){var t=pae(e,"string");return ib(t)==="symbol"?t:String(t)}function Sp(e,t,n){return t=mae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J7(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var eL=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),s=2;s<r;s++)l[s-2]=arguments[s];return[...t.slice(0,n),...l,...t.slice(n)]},lb=function(t,n,r){for(var l=arguments.length,s=new Array(l>3?l-3:0),f=3;f<l;f++)s[f-3]=arguments[f];return[...t.slice(0,n),...s,...t.slice(n+r)]},tL=lb,a_=(e,t,n)=>{if(t.length===0)throw new Error("Cannot modify the editor");for(var r=Xt.get(e,t),l=t.slice(),s=n(r);l.length>1;){var f=l.pop(),h=Xt.get(e,l);s=jn(jn({},h),{},{children:lb(h.children,f,1,s)})}var p=l.pop();e.children=lb(e.children,p,1,s)},Cp=(e,t,n)=>{t.length===0?e.children=n(e.children):a_(e,t,r=>{if(Wn.isText(r))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(Nl.stringify(r)));return jn(jn({},r),{},{children:n(r.children)})})},nL=(e,t,n)=>a_(e,t,r=>{if(!Wn.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Nl.stringify(r)));return n(r)}),gae={transform(e,t){var n=!1;switch(t.type){case"insert_node":{var{path:r,node:l}=t;Cp(e,Fe.parent(r),le=>{var ue=r[r.length-1];if(ue>le.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return eL(le,ue,l)}),n=!0;break}case"insert_text":{var{path:s,offset:f,text:h}=t;if(h.length===0)break;nL(e,s,le=>{var ue=le.text.slice(0,f),fe=le.text.slice(f);return jn(jn({},le),{},{text:ue+h+fe})}),n=!0;break}case"merge_node":{var{path:p}=t,y=p[p.length-1],b=Fe.previous(p),S=b[b.length-1];Cp(e,Fe.parent(p),le=>{var ue=le[y],fe=le[S],Ue;if(Wn.isText(ue)&&Wn.isText(fe))Ue=jn(jn({},fe),{},{text:fe.text+ue.text});else if(!Wn.isText(ue)&&!Wn.isText(fe))Ue=jn(jn({},fe),{},{children:fe.children.concat(ue.children)});else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(p,"] to nodes of different interfaces: ").concat(Nl.stringify(ue)," ").concat(Nl.stringify(fe)));return lb(le,S,2,Ue)}),n=!0;break}case"move_node":{var{path:C,newPath:A}=t,x=C[C.length-1];if(Fe.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var _=Xt.get(e,C);Cp(e,Fe.parent(C),le=>tL(le,x,1));var B=Fe.transform(C,t),R=B[B.length-1];Cp(e,Fe.parent(B),le=>eL(le,R,_)),n=!0;break}case"remove_node":{var{path:O}=t,j=O[O.length-1];if(Cp(e,Fe.parent(O),le=>tL(le,j,1)),e.selection){var P=jn({},e.selection);for(var[L,Y]of fn.points(P)){var G=_r.transform(L,t);if(P!=null&&G!=null)P[Y]=G;else{var z=void 0,$=void 0;for(var[Q,I]of Xt.texts(e))if(Fe.compare(I,O)===-1)z=[Q,I];else{$=[Q,I];break}var H=!1;z&&$&&(Fe.equals($[1],O)?H=!Fe.hasPrevious($[1]):H=Fe.common(z[1],O).length<Fe.common($[1],O).length),z&&!H?P[Y]={path:z[1],offset:z[0].text.length}:$?P[Y]={path:$[1],offset:0}:P=null}}e.selection=P}break}case"remove_text":{var{path:K,offset:W,text:ne}=t;if(ne.length===0)break;nL(e,K,le=>{var ue=le.text.slice(0,W),fe=le.text.slice(W+ne.length);return jn(jn({},le),{},{text:ue+fe})}),n=!0;break}case"set_node":{var{path:U,properties:Z,newProperties:J}=t;if(U.length===0)throw new Error("Cannot set properties on the root node!");a_(e,U,le=>{var ue=jn({},le);for(var fe in J){if(fe==="children"||fe==="text")throw new Error('Cannot set the "'.concat(fe,'" property of nodes!'));var Ue=J[fe];Ue==null?delete ue[fe]:ue[fe]=Ue}for(var He in Z)J.hasOwnProperty(He)||delete ue[He];return ue});break}case"set_selection":{var{newProperties:he}=t;if(he==null){e.selection=null;break}if(e.selection==null){if(!fn.isRange(he))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Nl.stringify(he)," when there is no current selection."));e.selection=jn({},he);break}var ie=jn({},e.selection);for(var xe in he){var Re=he[xe];if(Re==null){if(xe==="anchor"||xe==="focus")throw new Error('Cannot remove the "'.concat(xe,'" selection property'));delete ie[xe]}else ie[xe]=Re}e.selection=ie;break}case"split_node":{var{path:me,position:ke,properties:Xe}=t,Ye=me[me.length-1];if(me.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(me,"] because the root node cannot be split."));Cp(e,Fe.parent(me),le=>{var ue=le[Ye],fe,Ue;if(Wn.isText(ue)){var He=ue.text.slice(0,ke),ut=ue.text.slice(ke);fe=jn(jn({},ue),{},{text:He}),Ue=jn(jn({},Xe),{},{text:ut})}else{var yt=ue.children.slice(0,ke),Ie=ue.children.slice(ke);fe=jn(jn({},ue),{},{children:yt}),Ue=jn(jn({},Xe),{},{children:Ie})}return lb(le,Ye,1,fe,Ue)}),n=!0;break}}if(n&&e.selection){var Qe=jn({},e.selection);for(var[ft,ce]of fn.points(Qe))Qe[ce]=_r.transform(ft,t);e.selection=Qe}}},yae={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)}},bae={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)}},Na=e=>typeof e=="object"&&e!==null,rL=(e,t)=>{for(var n in e){var r=e[n],l=t[n];if(Array.isArray(r)&&Array.isArray(l)){if(r.length!==l.length)return!1;for(var s=0;s<r.length;s++)if(r[s]!==l[s])return!1}else if(Na(r)&&Na(l)){if(!rL(r,l))return!1}else if(r!==l)return!1}for(var f in t)if(e[f]===void 0&&t[f]!==void 0)return!1;return!0};function Eae(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function ub(e,t){if(e==null)return{};var n=Eae(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Dae=["anchor","focus"];function aL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Sae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aL(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var fn={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:l}=e;return fn.isBackward(e)===n?[r,l]:[l,r]},end(e){var[,t]=fn.edges(e);return t},equals(e,t){return _r.equals(e.anchor,t.anchor)&&_r.equals(e.focus,t.focus)},surrounds(e,t){var n=fn.intersection(e,t);return n?fn.equals(n,t):!1},includes(e,t){if(fn.isRange(t)){if(fn.includes(e,t.anchor)||fn.includes(e,t.focus))return!0;var[n,r]=fn.edges(e),[l,s]=fn.edges(t);return _r.isBefore(n,l)&&_r.isAfter(r,s)}var[f,h]=fn.edges(e),p=!1,y=!1;return _r.isPoint(t)?(p=_r.compare(t,f)>=0,y=_r.compare(t,h)<=0):(p=Fe.compare(t,f.path)>=0,y=Fe.compare(t,h.path)<=0),p&&y},intersection(e,t){var n=ub(e,Dae),[r,l]=fn.edges(e),[s,f]=fn.edges(t),h=_r.isBefore(r,s)?s:r,p=_r.isBefore(l,f)?l:f;return _r.isBefore(p,h)?null:Sae({anchor:h,focus:p},n)},isBackward(e){var{anchor:t,focus:n}=e;return _r.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return _r.equals(t,n)},isExpanded(e){return!fn.isCollapsed(e)},isForward(e){return!fn.isBackward(e)},isRange(e){return Na(e)&&_r.isPoint(e.anchor)&&_r.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=fn.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="inward"}=n,l,s;if(r==="inward"){var f=fn.isCollapsed(e);fn.isForward(e)?(l="forward",s=f?l:"backward"):(l="backward",s=f?l:"forward")}else r==="outward"?fn.isForward(e)?(l="backward",s="forward"):(l="forward",s="backward"):(l=r,s=r);var h=_r.transform(e.anchor,t,{affinity:l}),p=_r.transform(e.focus,t,{affinity:s});return!h||!p?null:{anchor:h,focus:p}}},iL=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Na(t))return!1;var r=typeof t.apply=="function";if(r)return!1;var l=n?Xt.isNodeList(t.children):Array.isArray(t.children);return l},Vd={isAncestor(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Na(e)&&Xt.isNodeList(e.children,{deep:t})},isElement:iL,isElementList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>Vd.isElement(n,{deep: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 iL(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},Cae=["children"],wae=["text"],Xt={ancestor(e,t){var n=Xt.get(e,t);if(Wn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Nl.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of Fe.ancestors(t,n)){var l=Xt.ancestor(e,r),s=[l,r];yield s}})()},child(e,t){if(Wn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Nl.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Nl.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,l=Xt.ancestor(e,t),{children:s}=l,f=r?s.length-1:0;r?f>=0:f<s.length;){var h=Xt.child(l,f),p=t.concat(f);yield[h,p],f=r?f-1:f+1}})()},common(e,t,n){var r=Fe.common(t,n),l=Xt.get(e,r);return[l,r]},descendant(e,t){var n=Xt.get(e,t);if(_u.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Nl.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Xt.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 Xt.nodes(e,t))Vd.isElement(n)&&(yield[n,r])})()},extractProps(e){if(Vd.isAncestor(e)){var t=ub(e,Cae);return t}else{var t=ub(e,wae);return t}},first(e,t){for(var n=t.slice(),r=Xt.get(e,n);r&&!(Wn.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Wn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Nl.stringify(e)));var n=vae({children:e.children},r=>{var[l,s]=fn.edges(t),f=Xt.nodes(r,{reverse:!0,pass:C=>{var[,A]=C;return!fn.includes(t,A)}});for(var[,h]of f){if(!fn.includes(t,h)){var p=Xt.parent(r,h),y=h[h.length-1];p.children.splice(y,1)}if(Fe.equals(h,s.path)){var b=Xt.leaf(r,h);b.text=b.text.slice(0,s.offset)}if(Fe.equals(h,l.path)){var S=Xt.leaf(r,h);S.text=S.text.slice(l.offset)}}_u.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){var n=Xt.getIf(e,t);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Nl.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(Wn.isText(n)||!n.children[l])return;n=n.children[l]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(Wn.isText(n)||!n.children[l])return!1;n=n.children[l]}return!0},isNode(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Wn.isText(e)||Vd.isElement(e,{deep:t})||_u.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>Xt.isNode(n,{deep:t}))},last(e,t){for(var n=t.slice(),r=Xt.get(e,n);r&&!(Wn.isText(r)||r.children.length===0);){var l=r.children.length-1;r=r.children[l],n.push(l)}return[r,n]},leaf(e,t){var n=Xt.get(e,t);if(!Wn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Nl.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of Fe.levels(t,n)){var l=Xt.get(e,r);yield[l,r]}})()},matches(e,t){return Vd.isElement(e)&&Vd.isElementProps(t)&&Vd.matches(e,t)||Wn.isText(e)&&Wn.isTextProps(t)&&Wn.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:l=[],to:s}=t,f=new Set,h=[],p=e;!(s&&(r?Fe.isBefore(h,s):Fe.isAfter(h,s)));){if(f.has(p)||(yield[p,h]),!f.has(p)&&!Wn.isText(p)&&p.children.length!==0&&(n==null||n([p,h])===!1)){f.add(p);var y=r?p.children.length-1:0;Fe.isAncestor(h,l)&&(y=l[h.length]),h=h.concat(y),p=Xt.get(e,h);continue}if(h.length===0)break;if(!r){var b=Fe.next(h);if(Xt.has(e,b)){h=b,p=Xt.get(e,h);continue}}if(r&&h[h.length-1]!==0){var S=Fe.previous(h);h=S,p=Xt.get(e,h);continue}h=Fe.parent(h),p=Xt.get(e,h),f.add(p)}})()},parent(e,t){var n=Fe.parent(t),r=Xt.get(e,n);if(Wn.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 Wn.isText(e)?e.text:e.children.map(Xt.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Xt.nodes(e,t))Wn.isText(n)&&(yield[n,r])})()}};function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ob={isNodeOperation(e){return ob.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Na(e))return!1;switch(e.type){case"insert_node":return Fe.isPath(e.path)&&Xt.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Fe.isPath(e.path);case"merge_node":return typeof e.position=="number"&&Fe.isPath(e.path)&&Na(e.properties);case"move_node":return Fe.isPath(e.path)&&Fe.isPath(e.newPath);case"remove_node":return Fe.isPath(e.path)&&Xt.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Fe.isPath(e.path);case"set_node":return Fe.isPath(e.path)&&Na(e.properties)&&Na(e.newProperties);case"set_selection":return e.properties===null&&fn.isRange(e.newProperties)||e.newProperties===null&&fn.isRange(e.properties)||Na(e.properties)&&Na(e.newProperties);case"split_node":return Fe.isPath(e.path)&&typeof e.position=="number"&&Na(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>ob.isOperation(t))},isSelectionOperation(e){return ob.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return ob.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Qn(Qn({},e),{},{type:"remove_node"});case"insert_text":return Qn(Qn({},e),{},{type:"remove_text"});case"merge_node":return Qn(Qn({},e),{},{type:"split_node",path:Fe.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(Fe.equals(t,n))return e;if(Fe.isSibling(n,t))return Qn(Qn({},e),{},{path:t,newPath:n});var r=Fe.transform(n,e),l=Fe.transform(Fe.next(n),e);return Qn(Qn({},e),{},{path:r,newPath:l})}case"remove_node":return Qn(Qn({},e),{},{type:"insert_node"});case"remove_text":return Qn(Qn({},e),{},{type:"insert_text"});case"set_node":{var{properties:s,newProperties:f}=e;return Qn(Qn({},e),{},{properties:f,newProperties:s})}case"set_selection":{var{properties:h,newProperties:p}=e;return h==null?Qn(Qn({},e),{},{properties:p,newProperties:null}):p==null?Qn(Qn({},e),{},{properties:null,newProperties:h}):Qn(Qn({},e),{},{properties:p,newProperties:h})}case"split_node":return Qn(Qn({},e),{},{type:"merge_node",path:Fe.next(e.path)})}}},Aae=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Na(t))return!1;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||Na(t.marks))&&(t.selection===null||fn.isRange(t.selection))&&(!n||Xt.isNodeList(t.children))&&ob.isOperationList(t.operations);return r},_u={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 Aae(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function uL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function oL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uL(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _r={compare(e,t){var n=Fe.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return _r.compare(e,t)===1},isBefore(e,t){return _r.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&Fe.equals(e.path,t.path)},isPoint(e){return Na(e)&&typeof e.offset=="number"&&Fe.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="forward"}=n,{path:l,offset:s}=e;switch(t.type){case"insert_node":case"move_node":{l=Fe.transform(l,t,n);break}case"insert_text":{Fe.equals(t.path,l)&&(t.offset<s||t.offset===s&&r==="forward")&&(s+=t.text.length);break}case"merge_node":{Fe.equals(t.path,l)&&(s+=t.position),l=Fe.transform(l,t,n);break}case"remove_text":{Fe.equals(t.path,l)&&t.offset<=s&&(s-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(Fe.equals(t.path,l)||Fe.isAncestor(t.path,l))return null;l=Fe.transform(l,t,n);break}case"split_node":{if(Fe.equals(t.path,l)){if(t.position===s&&r==null)return null;(t.position<s||t.position===s&&r==="forward")&&(s-=t.position,l=Fe.transform(l,t,oL(oL({},n),{},{affinity:"forward"})))}else l=Fe.transform(l,t,n);break}default:return e}return{path:l,offset:s}}},sL=void 0,Nl={setScrubber(e){sL=e},stringify(e){return JSON.stringify(e,sL)}},Oae=["text"],xae=["anchor","focus","merge"];function cL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cL(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Wn={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function l(s){var f=ub(s,Oae);return f}return rL(r?l(e):e,r?l(t):t)},isText(e){return Na(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Wn.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=[{leaf:xs({},e)}];for(var r of t){var{anchor:l,focus:s,merge:f}=r,h=ub(r,xae),[p,y]=fn.edges(r),b=[],S=0,C=p.offset,A=y.offset,x=f??Object.assign;for(var{leaf:_}of n){var{length:B}=_.text,R=S;if(S+=B,C<=R&&S<=A){x(_,h),b.push({leaf:_});continue}if(C!==A&&(C===S||A===R)||C>S||A<R||A===R&&R!==0){b.push({leaf:_});continue}var O=_,j=void 0,P=void 0;if(A<S){var L=A-R;P={leaf:xs(xs({},O),{},{text:O.text.slice(L)})},O=xs(xs({},O),{},{text:O.text.slice(0,L)})}if(C>R){var Y=C-R;j={leaf:xs(xs({},O),{},{text:O.text.slice(0,Y)})},O=xs(xs({},O),{},{text:O.text.slice(Y)})}x(O,h),j&&b.push(j),b.push({leaf:O}),P&&b.push(P)}n=b}if(n.length>1){var G=0;for(var[z,$]of n.entries()){var Q=G,I=Q+$.leaf.text.length,H={start:Q,end:I};z===0&&(H.isFirst=!0),z===n.length-1&&(H.isLast=!0),$.position=H,G=I}}return n}},Tae=e=>e.selection?e.selection:e.children.length>0?_u.end(e,[]):[0],Fn;(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"})(Fn||(Fn={})),Fn.L,Fn.L|Fn.V|Fn.LV|Fn.LVT,Fn.LV|Fn.V,Fn.V|Fn.T,Fn.LVT|Fn.T,Fn.T,Fn.Any,Fn.Extend|Fn.ZWJ,Fn.Any,Fn.SpacingMark,Fn.Prepend,Fn.Any,Fn.ZWJ,Fn.ExtPict,Fn.RI,Fn.RI;var Bae={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]:{};_u.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:l=Tae(e)}=n;if(Fe.isPath(l)&&(l=_u.range(e,l)),fn.isRange(l))if(fn.isCollapsed(l))l=l.anchor;else{var s=fn.end(l);if(!r&&_u.void(e,{at:s}))return;var f=fn.start(l),h=_u.pointRef(e,f),p=_u.pointRef(e,s);dL.delete(e,{at:l,voids:r});var y=h.unref(),b=p.unref();l=y||b,dL.setSelection(e,{anchor:l,focus:l})}if(!(!r&&_u.void(e,{at:l})||_u.elementReadOnly(e,{at:l}))){var{path:S,offset:C}=l;t.length>0&&e.apply({type:"insert_text",path:S,offset:C,text:t})}})}};function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function rS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var dL=rS(rS(rS(rS({},gae),yae),bae),Bae),aS=e=>{if(!e.api.isCollapsed())return null;const t=e.selection.anchor,n=e.api.range(t.path);if(!n)return null;const r=e.api.isStart(t,n)?"start":e.api.isEnd(t,n)?"end":null;if(!r)return null;const l=at.parent(e,t.path)??null,s=(()=>{if(!l||!ct.isElement(l))return!1;const b=Ai(e,l.type)?.rules.selection?.affinity;return b==="hard"||b==="directional"})(),f=s?[l,ot.parent(t.path)]:[at.get(e,t.path),t.path];if(r==="start"&&t.path.at(-1)===0&&!s)return[null,f];const h=r==="end"?Fe.next(f[1]):Fe.previous(f[1]),p=at.get(e,h),y=p?[p,h]:null;return r==="end"?[f,y]:[y,f]},_ae=(e,t)=>{const{marks:n,selection:r}=e;if(!r)return;const l=y=>n&&c6(at.extractProps(y),n)&&Object.keys(n).length>1,[s,f]=t;if(!s||!f){const y=s||f;return!n||l(y[0])?y===s?"backward":"forward":void 0}const h=n&&(s&&l(s[0])?"backward":f&&l(f[0])?"forward":null),p=r.anchor.offset===0?"forward":"backward";return p==="backward"&&h==="forward"||Hc&&p==="forward"&&h!=="backward"?"forward":"backward"},hL=(e,t,n)=>{const r=Object.keys(at.extractProps(t));return(ct.isElement(t)?[t.type]:r).some(s=>Ai(e,s)?.rules.selection?.affinity===n)},i_=(e,t,n)=>{const[r,l]=t;return r&&hL(e,r[0],n)||l&&hL(e,l[0],n)},l_=(e,t,n)=>{const r=p=>{e.marks=p,e.api.onChange()},l=p=>{e.tf.setSelection({anchor:p,focus:p})},[s,f]=t;if(n==="backward"){if(s===null){r({});return}const p=e.api.end(s[1]);if(p&&l(p),ct.isElement(s[0]))return;r(null);return}if(s===null){r(null);return}if(f===null){r({});return}const h=e.api.end(s[1]);l(h),!ct.isElement(f[0])&&r(at.extractProps(f[0]))};_a({key:"affinity"}).overrideEditor(({editor:e,tf:{deleteBackward:t,insertText:n,move:r}})=>({transforms:{deleteBackward:l=>{(()=>{if(l==="character"&&e.api.isCollapsed()){const[f]=aS(e)??[null],h=f&&(Cn.isText(f[0])?f[0].text:at.string(f[0]));t(l);const p=aS(e);if(p&&i_(e,p,"directional")&&!vL(p)){const y=h&&h.length>1?"backward":"forward";l_(e,p,y)}return!0}})()||t(l)},insertText(l,s){return(()=>{if(!e.selection||e.api.isExpanded())return;const h=e.selection.focus.path,p=at.get(e,h);if(!p)return;const b=Object.keys(at.extractProps(p)).filter(x=>Ai(e,x)?.rules.selection?.affinity==="outward");if(!b.length||!e.api.isEnd(e.selection.focus,h))return;const S=e.api.start(h,{next:!0}),C=[];let A=null;if(S){const x=S.path;A=at.get(e,x)||null}for(const x of b){if(!p[x])continue;A?.[x]||C.push(x)}C.length>0&&e.tf.removeMarks(C)})(),n(l,s)},move:l=>{(()=>{const{distance:f=1,reverse:h=!1,unit:p="character"}=l||{};if(p==="character"&&f===1&&e.api.isCollapsed()){const y=aS(e);if(y&&i_(e,y,"hard"))return y&&y[h?0:1]===null&&_ae(e,y)===(h?"forward":"backward")?(l_(e,y,h?"backward":"forward"),!0):(r({...l,unit:"offset"}),!0);r(l);const b=aS(e);return b&&i_(e,b,"directional")&&!vL(b)&&l_(e,b,h?"forward":"backward"),!0}})()||r(l)}}}));var vL=e=>{const[t,n]=e;return t&&ct.isElement(t[0])||n&&ct.isElement(n[0])},Rae=({editor:e,getOptions:t})=>{const{chunkSize:n,query:r}=t();return e.getChunkSize=l=>r(l)?n:null,{}};_a({key:"chunking",options:{chunkSize:1e3,contentVisibilityAuto:!0,query:at.isEditor}}).overrideEditor(Rae);var Nae=class extends Error{constructor(e,t="DEFAULT"){super(`[${t}] ${e}`),this.type=t,this.name="PlateError"}};_a({key:"debug",options:{isProduction:process.env.NODE_ENV==="production",logger:{error:(e,t,n)=>console.error(`${t?`[${t}] `:""}${e}`,n),info:(e,t,n)=>console.info(`${t?`[${t}] `:""}${e}`,n),log:(e,t,n)=>console.log(`${t?`[${t}] `:""}${e}`,n),warn:(e,t,n)=>console.warn(`${t?`[${t}] `:""}${e}`,n)},logLevel:process.env.NODE_ENV==="production"?"error":"log",throwErrors:!0}}).extendEditorApi(({getOptions:e})=>{const t=["error","warn","info","log"],n=(r,l,s,f)=>{if(process.env.NODE_ENV==="production")return;const h=e();if(!(h.isProduction&&r==="log")&&t.indexOf(r)<=t.indexOf(h.logLevel)){if(r==="error"&&h.throwErrors)throw new Nae(l,s);h.logger[r]?.(l,s,f)}};return{debug:{error:(r,l,s)=>n("error",r,l,s),info:(r,l,s)=>n("info",r,l,s),log:(r,l,s)=>n("log",r,l,s),warn:(r,l,s)=>n("warn",r,l,s)}}});var Mae=(e,t,n)=>{const r=e.getOptions(lS),l=iS.get(e)??!1;if(n){const s={...r,...b6(n,d6)};e.setOptions(lS,s)}iS.set(e,!0),t(),iS.set(e,l),e.setOptions(lS,r)},iS=new WeakMap,lS=_a({key:"dom",options:{scrollMode:"last",scrollOperations:{insert_node:!0,insert_text:!0},scrollOptions:{scrollMode:"if-needed"}}}).extendEditorApi(({editor:e})=>({isScrolling:()=>iS.get(e)??!1})).extendEditorTransforms(({editor:e})=>({withScrolling:we(Mae,e)})).overrideEditor(({api:e,editor:t,getOption:n,tf:{apply:r}})=>({transforms:{apply(l){if(e.isScrolling()){r(l);const s=n("scrollOperations");if(!s[l.type])return;const f=t.operations.filter(A=>!!s[A.type]);if(f.length===0)return;const p=n("scrollMode")==="first"?f[0]:f.at(-1);if(!p)return;const{offset:y,path:b}=p.path?p:{};if(!b)return;const S=n("scrollOptions"),C={offset:y??0,path:b};e.scrollIntoView(C,S);return}return r(l)}}})).overrideEditor(({editor:e,tf:{apply:t}})=>({transforms:{apply(n){if(n.type==="set_selection"){const{properties:r}=n;e.dom.prevSelection=r,t(n),e.dom.currentKeyboardEvent=null;return}t(n)}}})),sb=e=>e.nodeType===Node.ELEMENT_NODE,pL=(e,t)=>{if(!t(e))return;let r=e.firstChild;for(;r;){const l=r,s=r.previousSibling;r=r.nextSibling,pL(l,t),!l.previousSibling&&!l.nextSibling&&!l.parentNode&&r&&s!==r.previousSibling&&r.parentNode?r=s?s.nextSibling:e.firstChild:!l.previousSibling&&!l.nextSibling&&!l.parentNode&&r&&!r.previousSibling&&!r.nextSibling&&!r.parentNode&&(s?r=s.nextSibling?s.nextSibling.nextSibling:null:e.firstChild&&(r=e.firstChild.nextSibling))}},zae=(e,t)=>{pL(e,n=>sb(n)?t(n):!0)},mL=e=>e.nodeType===Node.TEXT_NODE,kae=new Set(["A","ABBR","ACRONYM","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","CONTENT","DATA","DEL","DFN","EM","EMBED","FONT","I","IFRAME","IMG","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","MARQUEE","math","MENUITEM","METER","NOBR","OBJECT","OUTPUT","PICTURE","PORTAL","PROGRESS","Q","S","SAMP","SELECT","SHADOW","SMALL","SOURCE","SPAN","STRIKE","STRONG","SUB","SUP","svg","TEXTAREA","TIME","TRACK","TT","U","VAR","VIDEO","WBR"]),u_=e=>{if(!sb(e))return!1;const t=e,n=kae.has(t.tagName),r=t.style.display.split(" ")[0];return r===""?n:r.startsWith("inline")?!0:r==="inherit"&&t.parentElement?u_(t.parentElement):["contents","initial","none","revert","revert-layer","unset"].includes(r)?n:!1},gL=e=>sb(e)?!u_(e):!1,Pae=e=>t=>Cn.isText(t)||ct.isElement(t)&&e.api.isInline(t),jae=e=>()=>({children:[],type:e}),Fae=(e,t)=>e.some((n,r,l)=>{const s=l[r-1];return r!==0?t(n)!==t(s):!1}),Lae=(e,t,n)=>{const r=Fae(e,t),{fragment:l}=e.reduce((s,f)=>{if(r&&t(f)){let h=s.precedingBlock;h||(h=n(),s.precedingBlock=h,s.fragment.push(h)),h.children.push(f)}else s.fragment.push(f),s.precedingBlock=null;return s},{fragment:[],precedingBlock:null});return l},qae=e=>e.length===0?[{text:""}]:e,yL=(e,t,n)=>(e=qae(e),e=Lae(e,t,n),e=e.map(r=>ct.isElement(r)?{...r,children:yL(r.children,t,n)}:r),e),Uae=(e,{defaultElementPlugin:t=V2,descendants:n})=>{const r=Pae(e),l=e.getType(t.key),s=jae(l);return yL(n,r,s)},Hae=(e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:l=!0}={})=>(r==="all"&&(e=e.replace(/^\s+/,"")),n==="single-newline"&&(e=e.replace(/\n$/,"")),t&&(l?e=e.replaceAll(/\s+/g," "):(e=e.replaceAll(/[^\S\n\r]+/g," "),e=e.replaceAll(/^[^\S\n\r]+/gm,""),e=e.replaceAll(/[^\S\n\r]+$/gm,""))),e),$ae=e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&gL(t))return!0;t=t?.nextSibling||null}if(!t||gL(t))return!0;if((t.textContent||"").length>0)return!1}},Vae=e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}},bL=e=>{e.inlineFormattingContext=null},Gae=(e,t)=>{const n=e.textContent||"",r=n.trim()==="";(t.inlineFormattingContext||!r)&&Vae(t);const{whiteSpaceRule:l}=t,s=l!=="normal"?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",f=l==="normal"?"collapse":$ae(e)?"single-newline":"collapse",h={normal:!0,pre:!1,"pre-line":!0}[l],y=Hae(n||"",{shouldCollapseWhiteSpace:h,trimEnd:f,trimStart:s,whiteSpaceIncludesNewlines:l!=="pre-line"});t.inlineFormattingContext&&h&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=y.endsWith(" ")),e.textContent=y},Iae=(e,t)=>{if(sb(e)){DL(e,t);return}if(mL(e)){Gae(e,t);return}EL(e,t)},EL=(e,t)=>{const n=Array.from(e.childNodes);for(const r of n)Iae(r,t)},Yae=e=>{const t=e.style.whiteSpace;switch(t){case"break-spaces":case"pre":case"pre-wrap":return"pre";case"normal":case"nowrap":return"normal";case"pre-line":return"pre-line"}return e.tagName==="PRE"?"pre":t==="initial"?"normal":null},DL=(e,t)=>{const n=u_(e),r=t.whiteSpaceRule,l=Yae(e);l&&(t.whiteSpaceRule=l),n||bL(t),EL(e,t),n||bL(t),t.whiteSpaceRule=r},Kae=e=>{const t=e.cloneNode(!0);return DL(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t},uS=(e,t,n=!1)=>Array.from(t.childNodes).flatMap(r=>r.nodeType===1&&!XD(r)&&n?uS(e,r,n):CL(e)(r)),Xae=(e,t)=>{if(t.nodeName==="BODY")return lp("fragment",{},uS(e,t))},Zae=e=>{if(e.nodeName==="BR")return`
334
+ `},Qae=({element:e,type:t})=>{if(!nae(e,t)&&!U7(e))return;const n={};if(Object.entries(e.dataset).forEach(([r,l])=>{if(r.startsWith("slate")&&l&&!["slateInline","slateLeaf","slateNode","slateVoid"].includes(r)){const s=r.slice(5).charAt(0).toLowerCase()+r.slice(6);if(l===void 0)return;let f=l;l==="true"?f=!0:l==="false"?f=!1:Number.isNaN(Number(l))||(f=Number(l)),n[s]=f}}),Object.keys(n).length>0)return n},Wae=({editor:e,element:t,plugin:n})=>{const r=n.parsers.html?.deserializer?.toNodeProps,s=n.parsers.html?.deserializer?.disableDefaultNodeProps??!1?{}:Qae({...Ra(e,n),element:t});if(!r)return s;const f=r({...Ra(e,n),element:t})??{};return{...s,...f}},Jae=e=>{let t=e.parsers?.html?.deserializer;const n=t?.rules??[],l=n.some(s=>s.validClassName?.includes(`slate-${e.key}`))?n:[{validClassName:`slate-${e.key}`,validNodeName:"*"},...n];return t||(t={rules:l}),t.rules=l,t},SL=(e,t,{deserializeLeaf:n,element:r})=>{const{node:{isElement:l,isLeaf:s}}=t,f=Jae(t);if(!f)return;const{attributeNames:h,isElement:p,isLeaf:y,query:b,rules:S}=f;let{parse:C}=f;const A=p||l,x=y||s;if(!n&&!A||n&&!x||S&&!S.some(({validAttribute:P,validClassName:L,validNodeName:Y="*",validStyle:G})=>{if(Y){const z=tl(Y);if(z.length>0&&!z.includes(r.nodeName)&&Y!=="*")return!1}if(L&&!r.classList.contains(L))return!1;if(G)for(const[z,$]of Object.entries(G)){if(!tl($).includes(r.style[z])&&$!=="*"||$==="*"&&!r.style[z])return;const I=t.inject.nodeProps?.defaultNodeValue;if(I&&I===r.style[z])return!1}if(P)if(typeof P=="string"){if(!r.getAttributeNames().includes(P))return!1}else for(const[z,$]of Object.entries(P)){const Q=tl($),I=r.getAttribute(z);if(!Qi(I)||!Q.includes(I))return!1}return!0})||b&&!b({...Ra(e,t),element:r}))return;if(!C)if(A)C=({type:j})=>({type:j});else if(x)C=({type:j})=>({[j]:!0});else return;const _=XD(r)?{}:C({...Ra(e,t),element:r,node:{}})??{},B=Wae({editor:e,element:r,plugin:t});let R={..._,...B};if(Object.keys(R).length===0)return;if(_7(e,t).forEach(j=>{const P=j.parsers?.html?.deserializer?.parse?.({...Ra(e,t),element:r,node:R});P&&!XD(r)&&(R={...R,...P})}),h){const j={},P=r.getAttributeNames();for(const L of P)h.includes(L)&&(j[L]=r.getAttribute(L));Object.keys(j).length>0&&(R.attributes=j)}return{...f,node:R}},eie=(e,t)=>{let n;return[...e.meta.pluginList].reverse().some(r=>(n=SL(e,r,{element:t}),!!n)),n},tie=(e,t,n=!1)=>{const r=eie(e,t);if(r){const{node:l,withoutChildren:s}=r;let f=l.children??uS(e,t,n);return(f.length===0||s||q7(t))&&(f=[{text:""}]),lp("element",l,f)}},nie=(e,t)=>{let n={};return[...e.meta.pluginList].reverse().forEach(r=>{const l=SL(e,r,{deserializeLeaf:!0,element:t});l&&(n={...n,...l.node})}),n},rie=(e,t)=>{const n=nie(e,t);return uS(e,t).reduce((r,l)=>{if(!l)return r;if(ct.isElement(l))Object.keys(n).length>0&&xie({node:l,query:{filter:([s])=>Cn.isText(s)},source:n}),r.push(l);else{const s={...n};Cn.isText(l)&&l.text&&Object.keys(s).forEach(f=>{s[f]&&l[f]&&(s[f]=l[f])}),r.push(lp("text",s,l))}return r},[])},aie=e=>{if(mL(e))return e.parentElement?.dataset.platePreventDeserialization?"":e.textContent||""},iie=e=>{if(e.nodeName!=="BR"||e.className==="Apple-interchange-newline")return!1;const t=e.parentElement;return!(!t||t.tagName==="P"||t.tagName==="SPAN"||(()=>{let r=e.previousSibling;for(;r;){if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return!0;r=r.previousSibling}for(r=e.nextSibling;r;){if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return!0;r=r.nextSibling}return!1})())},CL=e=>t=>{const n=aie(t);if(n)return n;if(!sb(t))return null;if(iie(t))return{children:[{text:""}],type:e.getType("p")};if(t.nodeName==="BR"&&t.className==="Apple-interchange-newline")return null;const r=Zae(t);if(r)return r;const l=Xae(e,t);if(l)return l;const s=tie(e,t,XD(t));return s||rie(e,t)},lie=(e,t)=>CL(e)(t),uie=e=>{const t=document.createElement("body");return t.innerHTML=e,t},oie=(e,{collapseWhiteSpace:t=!0,defaultElementPlugin:n,element:r})=>{typeof r=="string"&&(r=uie(r)),t&&(r=Kae(r));const l=lie(e,r);return Uae(e,{defaultElementPlugin:n,descendants:l})},sie=(e,t)=>{let n=null;return zae(e,r=>t(r)?(n=r,!1):!0),n},oS=(e,t)=>!!sie(e,t),cie=e=>new DOMParser().parseFromString(e,"text/html");Kt({key:"html"}).extendApi(({editor:e})=>({deserialize:we(oie,e)})).extend({parser:{format:"text/html",deserialize:({api:e,data:t})=>{const n=cie(t);return e.html.deserialize({element:n.body})}}}),_a({key:"length"}).overrideEditor(({editor:e,getOptions:t,tf:{apply:n}})=>({transforms:{apply(r){e.tf.withoutNormalizing(()=>{n(r);const l=t();if(l.maxLength){const s=e.api.string([]).length;if(s>l.maxLength){const f=s-l.maxLength;e.tf.delete({distance:f,reverse:!0,unit:"character"})}}})}}}));var fie=({editor:e,getOptions:t,tf:{apply:n,insertNode:r,insertNodes:l}})=>{const s=()=>({[t().idKey??""]:t().idCreator()}),f=y=>{const{filter:b,filterText:S}=t();return b(y)&&(!S||y[0]?.type!==void 0)},h=y=>{const{idKey:b="",reuseId:S}=t();!S&&e.api.some({at:[],match:{[b]:y[b]}})&&delete y[b]},p=y=>{const{idKey:b=""}=t();if(Qi(y._id)){const S=y._id;delete y._id,e.api.some({at:[],match:{[b]:S}})||(y[b]=S)}};return{transforms:{apply(y){const{allow:b,disableInsertOverrides:S,exclude:C,idCreator:A,idKey:x="",reuseId:_}=t(),B={allow:b,exclude:C,filter:f};if(y.type==="insert_node"){const R=up(y.node);return nb({apply:h,node:R,query:B,source:{}}),Mre({node:R,path:y.path,query:B,source:s}),S||nb({apply:p,node:R,query:B,source:{}}),n({...y,node:R})}if(y.type==="split_node"){const R=y.properties;let O=y.properties[x];if(Zc([R,y.path],B))return(!_||O===void 0||e.api.some({at:[],match:{[x]:O}}))&&(O=A()),n({...y,properties:{...y.properties,[x]:O}});O&&delete y.properties[x]}return n(y)},insertNode(y){const{disableInsertOverrides:b,idKey:S=""}=t();!b&&y[S]&&(Object.isExtensible(y)||(y=up(y)),y._id=y[S]),r(y)},insertNodes(y,b){const S=tl(y).filter(x=>!!x);if(S.length===0)return;const{disableInsertOverrides:C,idKey:A=""}=t();l(S.map(x=>(!C&&x[A]&&(Object.isExtensible(x)||(x=up(x)),x._id=x[A]),x)),b)}}}};_a({key:"nodeId",options:{filterInline:!0,filterText:!0,idKey:"id",normalizeInitialValue:!1,filter:()=>!0,idCreator:()=>bD(10)}}).extendTransforms(({editor:e,getOptions:t})=>({normalize(){const{allow:n,exclude:r,filter:l,filterInline:s,filterText:f,idKey:h}=t(),p=y=>{const[b,S]=y;if(!b[h]&&Zc([b,S],{allow:n,exclude:r,filter:C=>{const[A]=C;return f&&!ct.isElement(A)||s&&ct.isElement(A)&&!e.api.isBlock(A)?!1:l(C)}})){if(!e.api.node(S))return;e.tf.withoutSaving(()=>{e.tf.setNodes({[h]:t().idCreator()},{at:S})})}ct.isElement(b)&&b.children.forEach((C,A)=>{p([C,[...S,A]])})};e.children.forEach((y,b)=>{p([y,[b]])})}})).extend({normalizeInitialValue:({editor:e,getOptions:t,tf:n})=>{const{normalizeInitialValue:r}=t();if(!r){const l=e.children[0],s=e.children.at(-1);if(l?.id&&s?.id)return}n.nodeId.normalize()}}).overrideEditor(fie);var die=(e,t,n,r)=>e.meta.pluginCache.handlers.onNodeChange.some(l=>{const s=e.getPlugin({key:l});if(!s||e.dom?.readOnly)return!1;const f=s.handlers?.onNodeChange;if(!f)return!1;const h=f({editor:e,node:t,operation:r,plugin:s,prevNode:n});return h??!1}),hie=(e,t,n,r,l)=>e.meta.pluginCache.handlers.onTextChange.some(s=>{const f=e.getPlugin({key:s});if(!f||e.dom?.readOnly)return!1;const h=f.handlers?.onTextChange;if(!h)return!1;const p=h({editor:e,node:t,operation:l,plugin:f,prevText:r,text:n});return p??!1}),vie=e=>{const t=e.meta.isNormalizing;e.meta.isNormalizing=!0,e.meta.pluginCache.normalizeInitialValue.forEach(n=>{const r=e.getPlugin({key:n});j7(e.dom.readOnly,r,"normalizeInitialValue")||r.normalizeInitialValue?.({...Ra(e,r),value:e.children})}),e.meta.isNormalizing=t},pie=(e,{autoSelect:t,selection:n,shouldNormalizeEditor:r,value:l,onReady:s})=>{const f=(h=!1)=>{if((!e.children||e.children?.length===0)&&(e.children=e.api.create.value()),n)e.selection=n;else if(t){const y=(t==="start"?"start":"end")==="start"?e.api.start([]):e.api.end([]);e.tf.select(y)}e.children.length>0&&vie(e),r&&e.tf.normalize({force:!0}),s&&s({editor:e,isAsync:h,value:e.children})};if(l===null)f();else if(typeof l=="string")e.children=e.api.html.deserialize({element:l}),f();else if(typeof l=="function"){const h=l(e);h&&typeof h.then=="function"?h.then(p=>{e.children=p,f(!0)}):(e.children=h,f())}else l&&(e.children=l),f()},mie=(e,{match:t,reverse:n}={})=>{if(!e.selection||!e.api.isCollapsed())return;const r=e.api.block();if(!r)return;const s=e.api.above({at:r[1],match:U4(e,(h,p)=>p.length===1||p.length>1&&!!h.type&&!Ai(e,h.type)?.node.isStrictSiblings,{match:t})})?.[1]??r[1],f=n?s:ot.next(s);if(f)return e.tf.insertNodes(e.api.create.block(),{at:f,select:!0}),!0},gie=(e,{at:t}={})=>{const n=e.api.block({at:t});if(!n?.[0])return;const[r,l]=n;return e.tf.withoutNormalizing(()=>{const{id:s,type:f,...h}=at.extractProps(r);Object.keys(h).forEach(y=>{e.tf.unsetNodes(y,{at:l})});const p=e.getType(V2.key);r.type!==p&&e.tf.setNodes({type:p},{at:l})}),!0},yie=(e,t)=>{let n=t;typeof t=="string"?n=e.api.html.deserialize({element:t}):(!t||t.length===0)&&(n=e.api.create.value()),e.tf.replaceNodes(n,{at:[],children:!0})};_a({key:"slateExtension",options:{onNodeChange:()=>{},onTextChange:()=>{}}}).extendEditorTransforms(({editor:e,getOption:t,tf:{apply:n}})=>({init:we(pie,e),insertExitBreak:we(mie,e),resetBlock:we(gie,e),setValue:we(yie,e),apply(r){const l=()=>{},s=e.meta.pluginCache.handlers.onNodeChange.length>0||t("onNodeChange")!==l,f=e.meta.pluginCache.handlers.onTextChange.length>0||t("onTextChange")!==l;if(!s&&!f){n(r);return}let h,p,y,b,S;if(Cs.isNodeOperation(r)&&s)switch(r.type){case"insert_node":{h=r.node,p=r.node;break}case"merge_node":case"move_node":case"set_node":case"split_node":{h=at.get(e,r.path);break}case"remove_node":{h=r.node,p=r.node;break}}else if(Cs.isTextOperation(r)&&f){const C=ot.parent(r.path);S=at.get(e,C),y=at.get(e,r.path).text}if(n(r),Cs.isNodeOperation(r)&&s){switch(r.type){case"insert_node":case"remove_node":break;case"merge_node":{const A=ot.previous(r.path);A&&(p=at.get(e,A));break}case"move_node":{p=at.get(e,r.newPath);break}case"set_node":{p=at.get(e,r.path);break}case"split_node":{p=at.get(e,r.path);break}}p||(p=h),die(e,p,h,r)||t("onNodeChange")({editor:e,node:p,operation:r,prevNode:h})}if(Cs.isTextOperation(r)&&f){const C=at.get(e,r.path);C&&(b=C.text),hie(e,S,b,y,r)||t("onTextChange")({editor:e,node:S,operation:r,prevText:y,text:b})}}}));var bie=e=>e?.ownerDocument?.defaultView||null,Eie=e=>wL(e)&&e.nodeType===1,wL=e=>{const t=bie(e);return!!t&&e instanceof t.Node},Die=e=>wL(e)&&e.nodeType===3,AL=e=>{let t="";if(Die(e)&&e.nodeValue)return e.nodeValue;if(Eie(e)){for(const r of Array.from(e.childNodes))t+=AL(r);const n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
335
+ `)}return t};lS.extendEditorApi(({editor:e})=>({getFragment(){return F7(e)}})).overrideEditor(({editor:e,tf:{setFragmentData:t}})=>({transforms:{setFragmentData(n,r){if(r!=="copy")return t(n,r);const l=F7(e),s=L7();if(!(!s||!l||Lre(s))&&l.length>0){const h=JSON.stringify(l),p=window.btoa(encodeURIComponent(h));n.setData("application/x-slate-fragment",p),n.setData("text/html",s.innerHTML),n.setData("text/plain",AL(s))}}}}));var Sie=({attributes:e,node:t,plugin:n,props:r})=>{const l={...r,attributes:{...r.attributes}};if(n?.node.props){const s=(typeof n.node.props=="function"?n.node.props(l):n.node.props)??{};l.attributes={...l.attributes,...s}}return e&&n&&(l.attributes={...l.attributes,...Z8(e,...n.node.dangerouslyAllowAttributes??[],[...t?Pre(t):[]])}),Object.keys(l.attributes).forEach(s=>{l.attributes?.[s]===void 0&&delete l.attributes?.[s]}),l},Cie=e=>e?`slate-${e}`:"",wie={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",escape:"escape",extendBackward:"shift+left",extendDownward:"shift+down",extendForward:"shift+right",extendUpward:"shift+up",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveDownward:"down",moveForward:"right",moveUpward:"up",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",selectAll:"mod+a",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},Aie={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",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Oie={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},gn=e=>{const t=wie[e],n=Aie[e],r=Oie[e],l=t&&gs.isKeyHotkey(t),s=n&&gs.isKeyHotkey(n),f=r&&gs.isKeyHotkey(r);return h=>!!(l?.(h)||HE&&s?.(h)||!HE&&f?.(h))};gn("bold"),gn("compose"),gn("deleteBackward"),gn("deleteForward"),gn("deleteLineBackward"),gn("deleteLineForward"),gn("deleteWordBackward"),gn("deleteWordForward"),gn("escape"),gn("extendBackward"),gn("extendDownward"),gn("extendForward"),gn("extendLineBackward"),gn("extendLineForward"),gn("extendUpward"),gn("italic"),gn("moveBackward"),gn("moveDownward"),gn("moveForward"),gn("moveLineBackward"),gn("moveLineForward"),gn("moveUpward"),gn("moveWordBackward"),gn("moveWordForward"),gn("redo"),gn("selectAll"),gn("insertSoftBreak"),gn("splitBlock"),gn("transposeCharacter"),gn("undo");var xie=e=>{nb({...e,apply:ei})},Tie=(e,t,n)=>t.every(r=>{const l=r.parser?.query;return!l||l({...Ra(e,r),...n})});Kt({key:"parser"}).overrideEditor(({editor:e,tf:{insertData:t}})=>({transforms:{insertData(n){[...e.meta.pluginList].reverse().some(l=>{const s=l.parser;if(!s)return!1;const f=_7(e,l),{deserialize:h,format:p,mimeTypes:y}=s;if(!p&&!y)return!1;const b=Array.isArray(p)?p:p?[p]:[],S=y||b.map(C=>C.includes("/")?C:`text/${C}`);for(const C of S){let A=n.getData(C);if(C!=="Files"&&!A||C==="Files"&&n.files.length===0||!Tie(e,f,{data:A,dataTransfer:n,mimeType:C}))continue;A=Rre(e,f,{data:A,dataTransfer:n,mimeType:C});let x=h?.({...Ra(e,l),data:A,dataTransfer:n,mimeType:C});if(x?.length&&(x=Nre(e,f,{data:A,dataTransfer:n,fragment:x,mimeType:C}),x.length!==0))return _re(e,f,{data:A,dataTransfer:n,fragment:x,mimeType:C}),!0}return!1})||t(n)}}}));var Bie=({clear:e,nodeType:t})=>{const n=w7(r=>r.api.hasMark(t),[t]);return{clear:e,nodeType:t,pressed:n}},_ie=e=>{const t=Ba();return{props:{pressed:e.pressed,onClick:()=>{t.tf.toggleMark(e.nodeType,{remove:e.clear}),t.tf.focus()},onMouseDown:n=>{n.preventDefault()}}}},Rie={a:"a",ai:"ai",aiChat:"aiChat",audio:"audio",blockquote:"blockquote",bold:"bold",callout:"callout",taskList:"taskList",code:"code",codeBlock:"code_block",codeLine:"code_line",codeSyntax:"code_syntax",column:"column",columnGroup:"column_group",comment:"comment",date:"date",emojiInput:"emoji_input",equation:"equation",excalidraw:"excalidraw",file:"file",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",highlight:"highlight",hr:"hr",img:"img",inlineEquation:"inline_equation",italic:"italic",kbd:"kbd",li:"li",lic:"lic",link:"a",listTodoClassic:"action_item",mediaEmbed:"media_embed",mention:"mention",mentionInput:"mention_input",olClassic:"ol",p:"p",searchHighlight:"search_highlight",slashInput:"slash_input",strikethrough:"strikethrough",sub:"subscript",suggestion:"suggestion",sup:"superscript",table:"table",tag:"tag",td:"td",th:"th",toc:"toc",toggle:"toggle",tr:"tr",ulClassic:"ul",underline:"underline",video:"video"},Nie={backgroundColor:"backgroundColor",color:"color",fontFamily:"fontFamily",fontSize:"fontSize",fontWeight:"fontWeight",indent:"indent",lineHeight:"lineHeight",listType:"listStyleType",textAlign:"textAlign",textIndent:"textIndent"},OL={...Rie,...Nie,blockPlaceholder:"blockPlaceholder"};yne({key:OL.blockPlaceholder,editOnly:!0,options:{_target:null,placeholders:{[OL.p]:"Type something..."},query:({path:e})=>e.length===1},useHooks:e=>{const{editor:t,getOptions:n,setOption:r}=e,l=dk(),s=q2(),f=are(),h=w7(()=>s||f||!l||!t.selection||t.api.isExpanded()?null:t.api.block(),[s,f,l]);k.useEffect(()=>{if(!h){r("_target",null);return}const{placeholders:p,query:y}=n(),[b,S]=h,C=Object.keys(p).find(A=>t.getType(A)===b.type);y({...e,node:b,path:S})&&C&&t.api.isEmpty(b)&&!t.api.isEmpty()?r("_target",{node:b,placeholder:p[C]}):r("_target",null)},[t,h,r,n])}}).extendSelectors(({getOption:e})=>({placeholder:t=>{const n=e("_target");if(n?.node===t)return n.placeholder}})).extend({inject:{isBlock:!0,nodeProps:{transformProps:e=>{const t=A7(e.plugin,"placeholder",e.element);if(t)return{className:e.getOption("className"),placeholder:t}}}}});var Mie={a:"a",ai:"ai",aiChat:"aiChat",audio:"audio",blockquote:"blockquote",bold:"bold",callout:"callout",taskList:"taskList",code:"code",codeBlock:"code_block",codeLine:"code_line",codeSyntax:"code_syntax",column:"column",columnGroup:"column_group",comment:"comment",date:"date",emojiInput:"emoji_input",equation:"equation",excalidraw:"excalidraw",file:"file",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",highlight:"highlight",hr:"hr",img:"img",inlineEquation:"inline_equation",italic:"italic",kbd:"kbd",li:"li",lic:"lic",link:"a",listTodoClassic:"action_item",mediaEmbed:"media_embed",mention:"mention",mentionInput:"mention_input",olClassic:"ol",p:"p",searchHighlight:"search_highlight",slashInput:"slash_input",strikethrough:"strikethrough",sub:"subscript",suggestion:"suggestion",sup:"superscript",table:"table",tag:"tag",td:"td",th:"th",toc:"toc",toggle:"toggle",tr:"tr",ulClassic:"ul",underline:"underline",video:"video"},zie={backgroundColor:"backgroundColor",color:"color",fontFamily:"fontFamily",fontSize:"fontSize",fontWeight:"fontWeight",indent:"indent",lineHeight:"lineHeight",listType:"listStyleType",textAlign:"textAlign",textIndent:"textIndent"},br={...Mie,...zie,exitBreak:"exitBreak",normalizeTypes:"normalizeTypes",singleBlock:"singleBlock",singleLine:"singleLine",trailingBlock:"trailingBlock"};Kt({key:br.exitBreak,editOnly:!0}).extendTransforms(({editor:e})=>({insert:t=>e.tf.insertExitBreak(t),insertBefore:t=>e.tf.insertExitBreak({...t,reverse:!0})}));var kie=({editor:e,getOptions:t,tf:{normalizeNode:n}})=>({transforms:{normalizeNode([r,l]){const{rules:s,onError:f}=t();if(!(l.length===0&&s.some(({path:p,strictType:y,type:b})=>{const S=at.get(e,p);if(S){if(y&&ct.isElement(S)&&S.type!==y){const{children:C,...A}=e.api.create.block({type:y});return e.tf.setNodes(A,{at:p}),!0}}else try{return e.tf.insertNodes(e.api.create.block({type:y??b}),{at:p}),!0}catch(C){f?.(C)}return!1})))return n([r,l])}}});_a({key:br.normalizeTypes,options:{rules:[]}}).overrideEditor(kie),Kt({key:br.singleBlock,override:{enabled:{[br.trailingBlock]:!1}}}).overrideEditor(({editor:e,tf:{normalizeNode:t}})=>({transforms:{insertBreak(){e.tf.insertSoftBreak()},normalizeNode(n){const[r,l]=n;if(l.length===0&&e.children.length>1){e.tf.withoutNormalizing(()=>{for(;e.children.length>1;)e.tf.insertText(`
336
+ `,{at:e.api.start([1])}),e.tf.mergeNodes({at:[1],match:(s,f)=>f.length===1})});return}t(n)}}}));var xL=Symbol.for("immer-nothing"),TL=Symbol.for("immer-draftable"),ul=Symbol.for("immer-state"),Pie=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function xi(e,...t){if(process.env.NODE_ENV!=="production"){const n=Pie[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wp=Object.getPrototypeOf;function Ap(e){return!!e&&!!e[ul]}function Gd(e){return e?BL(e)||Array.isArray(e)||!!e[TL]||!!e.constructor?.[TL]||fS(e)||dS(e):!1}var jie=Object.prototype.constructor.toString();function BL(e){if(!e||typeof e!="object")return!1;const t=wp(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)===jie}function sS(e,t){cS(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function cS(e){const t=e[ul];return t?t.type_:Array.isArray(e)?1:fS(e)?2:dS(e)?3:0}function o_(e,t){return cS(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _L(e,t,n){const r=cS(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Fie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fS(e){return e instanceof Map}function dS(e){return e instanceof Set}function Id(e){return e.copy_||e.base_}function s_(e,t){if(fS(e))return new Map(e);if(dS(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=BL(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ul];let l=Reflect.ownKeys(r);for(let s=0;s<l.length;s++){const f=l[s],h=r[f];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(r[f]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[f]})}return Object.create(wp(e),r)}else{const r=wp(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function c_(e,t=!1){return hS(e)||Ap(e)||!Gd(e)||(cS(e)>1&&(e.set=e.add=e.clear=e.delete=Lie),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>c_(r,!0))),e}function Lie(){xi(2)}function hS(e){return Object.isFrozen(e)}var qie={};function Yd(e){const t=qie[e];return t||xi(0,e),t}var cb;function RL(){return cb}function Uie(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function NL(e,t){t&&(Yd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function f_(e){d_(e),e.drafts_.forEach(Hie),e.drafts_=null}function d_(e){e===cb&&(cb=e.parent_)}function ML(e){return cb=Uie(cb,e)}function Hie(e){const t=e[ul];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zL(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ul].modified_&&(f_(t),xi(4)),Gd(e)&&(e=vS(t,e),t.parent_||pS(t,e)),t.patches_&&Yd("Patches").generateReplacementPatches_(n[ul].base_,e,t.patches_,t.inversePatches_)):e=vS(t,n,[]),f_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xL?e:void 0}function vS(e,t,n){if(hS(t))return t;const r=t[ul];if(!r)return sS(t,(l,s)=>kL(e,r,t,l,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return pS(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const l=r.copy_;let s=l,f=!1;r.type_===3&&(s=new Set(l),l.clear(),f=!0),sS(s,(h,p)=>kL(e,r,l,h,p,n,f)),pS(e,l,!1),n&&e.patches_&&Yd("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function kL(e,t,n,r,l,s,f){if(process.env.NODE_ENV!=="production"&&l===n&&xi(5),Ap(l)){const h=s&&t&&t.type_!==3&&!o_(t.assigned_,r)?s.concat(r):void 0,p=vS(e,l,h);if(_L(n,r,p),Ap(p))e.canAutoFreeze_=!1;else return}else f&&n.add(l);if(Gd(l)&&!hS(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;vS(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&pS(e,l)}}function pS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&c_(t,n)}function $ie(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:RL(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,s=h_;n&&(l=[r],s=fb);const{revoke:f,proxy:h}=Proxy.revocable(l,s);return r.draft_=h,r.revoke_=f,h}var h_={get(e,t){if(t===ul)return e;const n=Id(e);if(!o_(n,t))return Vie(e,n,t);const r=n[t];return e.finalized_||!Gd(r)?r:r===v_(e.base_,t)?(m_(e),e.copy_[t]=g_(r,e)):r},has(e,t){return t in Id(e)},ownKeys(e){return Reflect.ownKeys(Id(e))},set(e,t,n){const r=PL(Id(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=v_(Id(e),t),s=l?.[ul];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Fie(n,l)&&(n!==void 0||o_(e.base_,t)))return!0;m_(e),p_(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 v_(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,m_(e),p_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Id(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xi(11)},getPrototypeOf(e){return wp(e.base_)},setPrototypeOf(){xi(12)}},fb={};sS(h_,(e,t)=>{fb[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),fb.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&xi(13),fb.set.call(this,e,t,void 0)},fb.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&xi(14),h_.set.call(this,e[0],t,n,e[0])};function v_(e,t){const n=e[ul];return(n?Id(n):e)[t]}function Vie(e,t,n){const r=PL(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function PL(e,t){if(!(t in e))return;let n=wp(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=wp(n)}}function p_(e){e.modified_||(e.modified_=!0,e.parent_&&p_(e.parent_))}function m_(e){e.copy_||(e.copy_=s_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Gie=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const f=this;return function(p=s,...y){return f.produce(p,b=>n.call(this,b,...y))}}typeof n!="function"&&xi(6),r!==void 0&&typeof r!="function"&&xi(7);let l;if(Gd(t)){const s=ML(this),f=g_(t,void 0);let h=!0;try{l=n(f),h=!1}finally{h?f_(s):d_(s)}return NL(s,r),zL(l,s)}else if(!t||typeof t!="object"){if(l=n(t),l===void 0&&(l=t),l===xL&&(l=void 0),this.autoFreeze_&&c_(l,!0),r){const s=[],f=[];Yd("Patches").generateReplacementPatches_(t,l,s,f),r(s,f)}return l}else xi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(f,...h)=>this.produceWithPatches(f,p=>t(p,...h));let r,l;return[this.produce(t,n,(f,h)=>{r=f,l=h}),r,l]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Gd(e)||xi(8),Ap(e)&&(e=Iie(e));const t=ML(this),n=g_(e,void 0);return n[ul].isManual_=!0,d_(t),n}finishDraft(e,t){const n=e&&e[ul];(!n||!n.isManual_)&&xi(9);const{scope_:r}=n;return NL(r,t),zL(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 l=t[n];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}n>-1&&(t=t.slice(n+1));const r=Yd("Patches").applyPatches_;return Ap(e)?r(e,t):this.produce(e,l=>r(l,t))}};function g_(e,t){const n=fS(e)?Yd("MapSet").proxyMap_(e,t):dS(e)?Yd("MapSet").proxySet_(e,t):$ie(e,t);return(t?t.scope_:RL()).drafts_.push(n),n}function Iie(e){return Ap(e)||xi(10,e),jL(e)}function jL(e){if(!Gd(e)||hS(e))return e;const t=e[ul];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=s_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=s_(e,!0);return sS(n,(r,l)=>{_L(n,r,jL(l))}),t&&(t.finalized_=!1),n}var ol=new Gie,Yie=ol.produce;ol.produceWithPatches.bind(ol),ol.setAutoFreeze.bind(ol),ol.setUseStrictShallowCopy.bind(ol),ol.applyPatches.bind(ol),ol.createDraft.bind(ol),ol.finishDraft.bind(ol);var qe={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=qe.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 l=e[r],s=t[r];if(l!==s)break;n.push(l)}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),l=t.slice(0,n),s=e[n],f=t[n];return qe.equals(r,l)&&s>f},endsAt(e,t){var n=e.length,r=e.slice(0,n),l=t.slice(0,n);return qe.equals(r,l)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),l=t.slice(0,n),s=e[n],f=t[n];return qe.equals(r,l)&&s<f},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 qe.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&qe.compare(e,t)===0},isBefore(e,t){return qe.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&qe.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&qe.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&qe.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&qe.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),l=e[e.length-1],s=t[t.length-1];return l!==s&&qe.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],l=0;l<=e.length;l++)r.push(e.slice(0,l));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(!qe.isAncestor(t,e)&&!qe.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:l="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:s}=t;(qe.equals(s,r)||qe.endsBefore(s,r)||qe.isAncestor(s,r))&&(r[s.length-1]+=1);break}case"remove_node":{var{path:f}=t;if(qe.equals(f,r)||qe.isAncestor(f,r))return null;qe.endsBefore(f,r)&&(r[f.length-1]-=1);break}case"merge_node":{var{path:h,position:p}=t;qe.equals(h,r)||qe.endsBefore(h,r)?r[h.length-1]-=1:qe.isAncestor(h,r)&&(r[h.length-1]-=1,r[h.length]+=p);break}case"split_node":{var{path:y,position:b}=t;if(qe.equals(y,r)){if(l==="forward")r[r.length-1]+=1;else if(l!=="backward")return null}else qe.endsBefore(y,r)?r[y.length-1]+=1:qe.isAncestor(y,r)&&e[y.length]>=b&&(r[y.length-1]+=1,r[y.length]-=b);break}case"move_node":{var{path:S,newPath:C}=t;if(qe.equals(S,C))return r;if(qe.isAncestor(S,r)||qe.equals(S,r)){var A=C.slice();return qe.endsBefore(S,C)&&S.length<C.length&&(A[S.length-1]-=1),A.concat(r.slice(S.length))}else qe.isSibling(S,C)&&(qe.isAncestor(C,r)||qe.equals(C,r))?qe.endsBefore(S,r)?r[S.length-1]-=1:r[S.length-1]+=1:qe.endsBefore(C,r)||qe.equals(C,r)||qe.isAncestor(C,r)?(qe.endsBefore(S,r)&&(r[S.length-1]-=1),r[C.length-1]+=1):qe.endsBefore(S,r)&&(qe.equals(C,r)&&(r[C.length-1]+=1),r[S.length-1]-=1);break}}return r}};function db(e){"@babel/helpers - typeof";return db=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},db(e)}function Kie(e,t){if(db(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(db(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xie(e){var t=Kie(e,"string");return db(t)==="symbol"?t:String(t)}function Op(e,t,n){return t=Xie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?FL(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var LL=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),s=2;s<r;s++)l[s-2]=arguments[s];return[...t.slice(0,n),...l,...t.slice(n)]},hb=function(t,n,r){for(var l=arguments.length,s=new Array(l>3?l-3:0),f=3;f<l;f++)s[f-3]=arguments[f];return[...t.slice(0,n),...s,...t.slice(n+r)]},qL=hb,y_=(e,t,n)=>{if(t.length===0)throw new Error("Cannot modify the editor");for(var r=Zt.get(e,t),l=t.slice(),s=n(r);l.length>1;){var f=l.pop(),h=Zt.get(e,l);s=Ln(Ln({},h),{},{children:hb(h.children,f,1,s)})}var p=l.pop();e.children=hb(e.children,p,1,s)},xp=(e,t,n)=>{t.length===0?e.children=n(e.children):y_(e,t,r=>{if(qn.isText(r))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(Ml.stringify(r)));return Ln(Ln({},r),{},{children:n(r.children)})})},UL=(e,t,n)=>y_(e,t,r=>{if(!qn.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Ml.stringify(r)));return n(r)}),Zie={transform(e,t){var n=!1;switch(t.type){case"insert_node":{var{path:r,node:l}=t;xp(e,qe.parent(r),le=>{var ue=r[r.length-1];if(ue>le.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return LL(le,ue,l)}),n=!0;break}case"insert_text":{var{path:s,offset:f,text:h}=t;if(h.length===0)break;UL(e,s,le=>{var ue=le.text.slice(0,f),fe=le.text.slice(f);return Ln(Ln({},le),{},{text:ue+h+fe})}),n=!0;break}case"merge_node":{var{path:p}=t,y=p[p.length-1],b=qe.previous(p),S=b[b.length-1];xp(e,qe.parent(p),le=>{var ue=le[y],fe=le[S],Ue;if(qn.isText(ue)&&qn.isText(fe))Ue=Ln(Ln({},fe),{},{text:fe.text+ue.text});else if(!qn.isText(ue)&&!qn.isText(fe))Ue=Ln(Ln({},fe),{},{children:fe.children.concat(ue.children)});else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(p,"] to nodes of different interfaces: ").concat(Ml.stringify(ue)," ").concat(Ml.stringify(fe)));return hb(le,S,2,Ue)}),n=!0;break}case"move_node":{var{path:C,newPath:A}=t,x=C[C.length-1];if(qe.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var _=Zt.get(e,C);xp(e,qe.parent(C),le=>qL(le,x,1));var B=qe.transform(C,t),R=B[B.length-1];xp(e,qe.parent(B),le=>LL(le,R,_)),n=!0;break}case"remove_node":{var{path:O}=t,j=O[O.length-1];if(xp(e,qe.parent(O),le=>qL(le,j,1)),e.selection){var P=Ln({},e.selection);for(var[L,Y]of dn.points(P)){var G=Rr.transform(L,t);if(P!=null&&G!=null)P[Y]=G;else{var z=void 0,$=void 0;for(var[Q,I]of Zt.texts(e))if(qe.compare(I,O)===-1)z=[Q,I];else{$=[Q,I];break}var H=!1;z&&$&&(qe.equals($[1],O)?H=!qe.hasPrevious($[1]):H=qe.common(z[1],O).length<qe.common($[1],O).length),z&&!H?P[Y]={path:z[1],offset:z[0].text.length}:$?P[Y]={path:$[1],offset:0}:P=null}}e.selection=P}break}case"remove_text":{var{path:K,offset:W,text:ne}=t;if(ne.length===0)break;UL(e,K,le=>{var ue=le.text.slice(0,W),fe=le.text.slice(W+ne.length);return Ln(Ln({},le),{},{text:ue+fe})}),n=!0;break}case"set_node":{var{path:U,properties:Z,newProperties:J}=t;if(U.length===0)throw new Error("Cannot set properties on the root node!");y_(e,U,le=>{var ue=Ln({},le);for(var fe in J){if(fe==="children"||fe==="text")throw new Error('Cannot set the "'.concat(fe,'" property of nodes!'));var Ue=J[fe];Ue==null?delete ue[fe]:ue[fe]=Ue}for(var He in Z)J.hasOwnProperty(He)||delete ue[He];return ue});break}case"set_selection":{var{newProperties:he}=t;if(he==null){e.selection=null;break}if(e.selection==null){if(!dn.isRange(he))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ml.stringify(he)," when there is no current selection."));e.selection=Ln({},he);break}var ie=Ln({},e.selection);for(var xe in he){var Re=he[xe];if(Re==null){if(xe==="anchor"||xe==="focus")throw new Error('Cannot remove the "'.concat(xe,'" selection property'));delete ie[xe]}else ie[xe]=Re}e.selection=ie;break}case"split_node":{var{path:me,position:ke,properties:Xe}=t,Ye=me[me.length-1];if(me.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(me,"] because the root node cannot be split."));xp(e,qe.parent(me),le=>{var ue=le[Ye],fe,Ue;if(qn.isText(ue)){var He=ue.text.slice(0,ke),ut=ue.text.slice(ke);fe=Ln(Ln({},ue),{},{text:He}),Ue=Ln(Ln({},Xe),{},{text:ut})}else{var yt=ue.children.slice(0,ke),Ie=ue.children.slice(ke);fe=Ln(Ln({},ue),{},{children:yt}),Ue=Ln(Ln({},Xe),{},{children:Ie})}return hb(le,Ye,1,fe,Ue)}),n=!0;break}}if(n&&e.selection){var Qe=Ln({},e.selection);for(var[ft,ce]of dn.points(Qe))Qe[ce]=Rr.transform(ft,t);e.selection=Qe}}},Qie={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)}},Wie={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)}},Ma=e=>typeof e=="object"&&e!==null,HL=(e,t)=>{for(var n in e){var r=e[n],l=t[n];if(Array.isArray(r)&&Array.isArray(l)){if(r.length!==l.length)return!1;for(var s=0;s<r.length;s++)if(r[s]!==l[s])return!1}else if(Ma(r)&&Ma(l)){if(!HL(r,l))return!1}else if(r!==l)return!1}for(var f in t)if(e[f]===void 0&&t[f]!==void 0)return!1;return!0};function Jie(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,s;for(s=0;s<r.length;s++)l=r[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function vb(e,t){if(e==null)return{};var n=Jie(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)r=s[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var ele=["anchor","focus"];function $L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function tle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$L(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$L(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var dn={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:l}=e;return dn.isBackward(e)===n?[r,l]:[l,r]},end(e){var[,t]=dn.edges(e);return t},equals(e,t){return Rr.equals(e.anchor,t.anchor)&&Rr.equals(e.focus,t.focus)},surrounds(e,t){var n=dn.intersection(e,t);return n?dn.equals(n,t):!1},includes(e,t){if(dn.isRange(t)){if(dn.includes(e,t.anchor)||dn.includes(e,t.focus))return!0;var[n,r]=dn.edges(e),[l,s]=dn.edges(t);return Rr.isBefore(n,l)&&Rr.isAfter(r,s)}var[f,h]=dn.edges(e),p=!1,y=!1;return Rr.isPoint(t)?(p=Rr.compare(t,f)>=0,y=Rr.compare(t,h)<=0):(p=qe.compare(t,f.path)>=0,y=qe.compare(t,h.path)<=0),p&&y},intersection(e,t){var n=vb(e,ele),[r,l]=dn.edges(e),[s,f]=dn.edges(t),h=Rr.isBefore(r,s)?s:r,p=Rr.isBefore(l,f)?l:f;return Rr.isBefore(p,h)?null:tle({anchor:h,focus:p},n)},isBackward(e){var{anchor:t,focus:n}=e;return Rr.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Rr.equals(t,n)},isExpanded(e){return!dn.isCollapsed(e)},isForward(e){return!dn.isBackward(e)},isRange(e){return Ma(e)&&Rr.isPoint(e.anchor)&&Rr.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=dn.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="inward"}=n,l,s;if(r==="inward"){var f=dn.isCollapsed(e);dn.isForward(e)?(l="forward",s=f?l:"backward"):(l="backward",s=f?l:"forward")}else r==="outward"?dn.isForward(e)?(l="backward",s="forward"):(l="forward",s="backward"):(l=r,s=r);var h=Rr.transform(e.anchor,t,{affinity:l}),p=Rr.transform(e.focus,t,{affinity:s});return!h||!p?null:{anchor:h,focus:p}}},VL=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ma(t))return!1;var r=typeof t.apply=="function";if(r)return!1;var l=n?Zt.isNodeList(t.children):Array.isArray(t.children);return l},Kd={isAncestor(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ma(e)&&Zt.isNodeList(e.children,{deep:t})},isElement:VL,isElementList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>Kd.isElement(n,{deep: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 VL(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},nle=["children"],rle=["text"],Zt={ancestor(e,t){var n=Zt.get(e,t);if(qn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Ml.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of qe.ancestors(t,n)){var l=Zt.ancestor(e,r),s=[l,r];yield s}})()},child(e,t){if(qn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Ml.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Ml.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,l=Zt.ancestor(e,t),{children:s}=l,f=r?s.length-1:0;r?f>=0:f<s.length;){var h=Zt.child(l,f),p=t.concat(f);yield[h,p],f=r?f-1:f+1}})()},common(e,t,n){var r=qe.common(t,n),l=Zt.get(e,r);return[l,r]},descendant(e,t){var n=Zt.get(e,t);if(Ru.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Ml.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Zt.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 Zt.nodes(e,t))Kd.isElement(n)&&(yield[n,r])})()},extractProps(e){if(Kd.isAncestor(e)){var t=vb(e,nle);return t}else{var t=vb(e,rle);return t}},first(e,t){for(var n=t.slice(),r=Zt.get(e,n);r&&!(qn.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(qn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Ml.stringify(e)));var n=Yie({children:e.children},r=>{var[l,s]=dn.edges(t),f=Zt.nodes(r,{reverse:!0,pass:C=>{var[,A]=C;return!dn.includes(t,A)}});for(var[,h]of f){if(!dn.includes(t,h)){var p=Zt.parent(r,h),y=h[h.length-1];p.children.splice(y,1)}if(qe.equals(h,s.path)){var b=Zt.leaf(r,h);b.text=b.text.slice(0,s.offset)}if(qe.equals(h,l.path)){var S=Zt.leaf(r,h);S.text=S.text.slice(l.offset)}}Ru.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){var n=Zt.getIf(e,t);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Ml.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(qn.isText(n)||!n.children[l])return;n=n.children[l]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var l=t[r];if(qn.isText(n)||!n.children[l])return!1;n=n.children[l]}return!0},isNode(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qn.isText(e)||Kd.isElement(e,{deep:t})||Ru.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>Zt.isNode(n,{deep:t}))},last(e,t){for(var n=t.slice(),r=Zt.get(e,n);r&&!(qn.isText(r)||r.children.length===0);){var l=r.children.length-1;r=r.children[l],n.push(l)}return[r,n]},leaf(e,t){var n=Zt.get(e,t);if(!qn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Ml.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of qe.levels(t,n)){var l=Zt.get(e,r);yield[l,r]}})()},matches(e,t){return Kd.isElement(e)&&Kd.isElementProps(t)&&Kd.matches(e,t)||qn.isText(e)&&qn.isTextProps(t)&&qn.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:l=[],to:s}=t,f=new Set,h=[],p=e;!(s&&(r?qe.isBefore(h,s):qe.isAfter(h,s)));){if(f.has(p)||(yield[p,h]),!f.has(p)&&!qn.isText(p)&&p.children.length!==0&&(n==null||n([p,h])===!1)){f.add(p);var y=r?p.children.length-1:0;qe.isAncestor(h,l)&&(y=l[h.length]),h=h.concat(y),p=Zt.get(e,h);continue}if(h.length===0)break;if(!r){var b=qe.next(h);if(Zt.has(e,b)){h=b,p=Zt.get(e,h);continue}}if(r&&h[h.length-1]!==0){var S=qe.previous(h);h=S,p=Zt.get(e,h);continue}h=qe.parent(h),p=Zt.get(e,h),f.add(p)}})()},parent(e,t){var n=qe.parent(t),r=Zt.get(e,n);if(qn.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 qn.isText(e)?e.text:e.children.map(Zt.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of Zt.nodes(e,t))qn.isText(n)&&(yield[n,r])})()}};function GL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GL(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pb={isNodeOperation(e){return pb.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ma(e))return!1;switch(e.type){case"insert_node":return qe.isPath(e.path)&&Zt.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&qe.isPath(e.path);case"merge_node":return typeof e.position=="number"&&qe.isPath(e.path)&&Ma(e.properties);case"move_node":return qe.isPath(e.path)&&qe.isPath(e.newPath);case"remove_node":return qe.isPath(e.path)&&Zt.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&qe.isPath(e.path);case"set_node":return qe.isPath(e.path)&&Ma(e.properties)&&Ma(e.newProperties);case"set_selection":return e.properties===null&&dn.isRange(e.newProperties)||e.newProperties===null&&dn.isRange(e.properties)||Ma(e.properties)&&Ma(e.newProperties);case"split_node":return qe.isPath(e.path)&&typeof e.position=="number"&&Ma(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>pb.isOperation(t))},isSelectionOperation(e){return pb.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return pb.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Jn(Jn({},e),{},{type:"remove_node"});case"insert_text":return Jn(Jn({},e),{},{type:"remove_text"});case"merge_node":return Jn(Jn({},e),{},{type:"split_node",path:qe.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(qe.equals(t,n))return e;if(qe.isSibling(n,t))return Jn(Jn({},e),{},{path:t,newPath:n});var r=qe.transform(n,e),l=qe.transform(qe.next(n),e);return Jn(Jn({},e),{},{path:r,newPath:l})}case"remove_node":return Jn(Jn({},e),{},{type:"insert_node"});case"remove_text":return Jn(Jn({},e),{},{type:"insert_text"});case"set_node":{var{properties:s,newProperties:f}=e;return Jn(Jn({},e),{},{properties:f,newProperties:s})}case"set_selection":{var{properties:h,newProperties:p}=e;return h==null?Jn(Jn({},e),{},{properties:p,newProperties:null}):p==null?Jn(Jn({},e),{},{properties:null,newProperties:h}):Jn(Jn({},e),{},{properties:p,newProperties:h})}case"split_node":return Jn(Jn({},e),{},{type:"merge_node",path:qe.next(e.path)})}}},ale=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ma(t))return!1;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||Ma(t.marks))&&(t.selection===null||dn.isRange(t.selection))&&(!n||Zt.isNodeList(t.children))&&pb.isOperationList(t.operations);return r},Ru={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 ale(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function IL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function YL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rr={compare(e,t){var n=qe.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Rr.compare(e,t)===1},isBefore(e,t){return Rr.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&qe.equals(e.path,t.path)},isPoint(e){return Ma(e)&&typeof e.offset=="number"&&qe.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="forward"}=n,{path:l,offset:s}=e;switch(t.type){case"insert_node":case"move_node":{l=qe.transform(l,t,n);break}case"insert_text":{qe.equals(t.path,l)&&(t.offset<s||t.offset===s&&r==="forward")&&(s+=t.text.length);break}case"merge_node":{qe.equals(t.path,l)&&(s+=t.position),l=qe.transform(l,t,n);break}case"remove_text":{qe.equals(t.path,l)&&t.offset<=s&&(s-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(qe.equals(t.path,l)||qe.isAncestor(t.path,l))return null;l=qe.transform(l,t,n);break}case"split_node":{if(qe.equals(t.path,l)){if(t.position===s&&r==null)return null;(t.position<s||t.position===s&&r==="forward")&&(s-=t.position,l=qe.transform(l,t,YL(YL({},n),{},{affinity:"forward"})))}else l=qe.transform(l,t,n);break}default:return e}return{path:l,offset:s}}},KL=void 0,Ml={setScrubber(e){KL=e},stringify(e){return JSON.stringify(e,KL)}},ile=["text"],lle=["anchor","focus","merge"];function XL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XL(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qn={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function l(s){var f=vb(s,ile);return f}return HL(r?l(e):e,r?l(t):t)},isText(e){return Ma(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>qn.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=[{leaf:Ts({},e)}];for(var r of t){var{anchor:l,focus:s,merge:f}=r,h=vb(r,lle),[p,y]=dn.edges(r),b=[],S=0,C=p.offset,A=y.offset,x=f??Object.assign;for(var{leaf:_}of n){var{length:B}=_.text,R=S;if(S+=B,C<=R&&S<=A){x(_,h),b.push({leaf:_});continue}if(C!==A&&(C===S||A===R)||C>S||A<R||A===R&&R!==0){b.push({leaf:_});continue}var O=_,j=void 0,P=void 0;if(A<S){var L=A-R;P={leaf:Ts(Ts({},O),{},{text:O.text.slice(L)})},O=Ts(Ts({},O),{},{text:O.text.slice(0,L)})}if(C>R){var Y=C-R;j={leaf:Ts(Ts({},O),{},{text:O.text.slice(0,Y)})},O=Ts(Ts({},O),{},{text:O.text.slice(Y)})}x(O,h),j&&b.push(j),b.push({leaf:O}),P&&b.push(P)}n=b}if(n.length>1){var G=0;for(var[z,$]of n.entries()){var Q=G,I=Q+$.leaf.text.length,H={start:Q,end:I};z===0&&(H.isFirst=!0),z===n.length-1&&(H.isLast=!0),$.position=H,G=I}}return n}},ule=e=>e.selection?e.selection:e.children.length>0?Ru.end(e,[]):[0],Un;(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"})(Un||(Un={})),Un.L,Un.L|Un.V|Un.LV|Un.LVT,Un.LV|Un.V,Un.V|Un.T,Un.LVT|Un.T,Un.T,Un.Any,Un.Extend|Un.ZWJ,Un.Any,Un.SpacingMark,Un.Prepend,Un.Any,Un.ZWJ,Un.ExtPict,Un.RI,Un.RI;var ole={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]:{};Ru.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:l=ule(e)}=n;if(qe.isPath(l)&&(l=Ru.range(e,l)),dn.isRange(l))if(dn.isCollapsed(l))l=l.anchor;else{var s=dn.end(l);if(!r&&Ru.void(e,{at:s}))return;var f=dn.start(l),h=Ru.pointRef(e,f),p=Ru.pointRef(e,s);QL.delete(e,{at:l,voids:r});var y=h.unref(),b=p.unref();l=y||b,QL.setSelection(e,{anchor:l,focus:l})}if(!(!r&&Ru.void(e,{at:l})||Ru.elementReadOnly(e,{at:l}))){var{path:S,offset:C}=l;t.length>0&&e.apply({type:"insert_text",path:S,offset:C,text:t})}})}};function ZL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function mS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZL(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var QL=mS(mS(mS(mS({},Zie),Qie),Wie),ole);Kt({key:br.singleLine,override:{enabled:{[br.trailingBlock]:!1}}}).overrideEditor(({editor:e,tf:{normalizeNode:t}})=>({transforms:{insertBreak(){},insertSoftBreak(){},normalizeNode(n){const[r,l]=n;if(qn.isText(r)){const s=r.text.replace(/[\r\n\u2028\u2029]/g,"");if(s!==r.text){e.tf.insertText(s,{at:l});return}}if(l.length===0&&e.children.length>1){e.tf.withoutNormalizing(()=>{for(;e.children.length>1;)e.tf.mergeNodes({at:[1],match:(s,f)=>f.length===1})});return}t(n)}}}));var sle=({editor:e,getOptions:t,tf:{normalizeNode:n}})=>({transforms:{normalizeNode([r,l]){const{level:s,type:f,...h}=t();if(l.length===0){const p=e.api.last([],{level:s}),y=p?.[0];if(!y||y.type!==f&&Zc(p,h)){const b=p?ot.next(p[1]):[0];e.tf.insertNodes(e.api.create.block({type:f},b),{at:b});return}}return n([r,l])}}});_a({key:br.trailingBlock,options:{level:0}}).overrideEditor(sle).extend(({editor:e})=>({options:{type:e.getType(br.p)}}));var cle=Kt({key:br.blockquote,node:{isElement:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"BLOCKQUOTE"}]}}},render:{as:"blockquote"},rules:{break:{default:"lineBreak",empty:"reset",emptyLineEnd:"deleteExit"},delete:{start:"reset"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),WL=Zn(cle),Tp={isElement:!0},Bp={break:{splitReset:!0},merge:{removeEmpty:!0}},JL=_a({key:"h1",node:Tp,parsers:{html:{deserializer:{rules:[{validNodeName:"H1"}]}}},render:{as:"h1"},rules:Bp}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),eq=_a({key:"h2",node:Tp,parsers:{html:{deserializer:{rules:[{validNodeName:"H2"}]}}},render:{as:"h2"},rules:Bp}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),tq=_a({key:"h3",node:Tp,parsers:{html:{deserializer:{rules:[{validNodeName:"H3"}]}}},render:{as:"h3"},rules:Bp}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),nq=_a({key:"h4",node:Tp,parsers:{html:{deserializer:{rules:[{validNodeName:"H4"}]}}},render:{as:"h4"},rules:Bp}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),rq=_a({key:"h5",node:Tp,parsers:{html:{deserializer:{rules:[{validNodeName:"H5"}]}}},render:{as:"h5"},rules:Bp}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),aq=_a({key:"h6",node:Tp,parsers:{html:{deserializer:{rules:[{validNodeName:"H6"}]}}},render:{as:"h6"},rules:Bp}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleBlock(t)}})),fle=_a({key:"heading",options:{levels:[1,2,3,4,5,6]}}).extend(({plugin:e})=>{const{options:{levels:t}}=e,n={1:JL,2:eq,3:tq,4:nq,5:rq,6:aq};return{plugins:(Array.isArray(t)?t:Array.from({length:t||6},(s,f)=>f+1)).map(s=>n[s])}}),dle=Zn(fle),hle=Zn(JL),vle=Zn(eq),ple=Zn(tq);Zn(nq),Zn(rq),Zn(aq);var mle=Kt({key:br.hr,node:{isElement:!0,isVoid:!0},parsers:{html:{deserializer:{rules:[{validNodeName:"HR"}]}}},render:{as:"hr"}}),iq=Kt({key:br.bold,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}],query:({element:e})=>!oS(e,t=>t.style.fontWeight==="normal")}}},render:{as:"strong"}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),lq=Kt({key:br.code,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}],query({element:e}){return MA(e,"P")?.style.fontFamily==="Consolas"?!1:!MA(e,"PRE")}}}},render:{as:"code"},rules:{selection:{affinity:"hard"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),uq=Kt({key:br.italic,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}],query:({element:e})=>!oS(e,t=>t.style.fontStyle==="normal")}}},render:{as:"em"}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),oq=Kt({key:br.strikethrough,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}],query:({element:e})=>!oS(e,t=>t.style.textDecoration==="none")}}},render:{as:"s"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),sq=Kt({key:br.sub,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]}}},render:{as:"sub"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t,{remove:e.getType(br.sup)})}})),cq=Kt({key:br.sup,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]}}},render:{as:"sup"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t,{remove:e.getType(br.sub)})}})),fq=Kt({key:br.underline,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}],query:({element:e})=>!oS(e,t=>t.style.textDecoration==="none")}}},render:{as:"u"}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),gle=Kt({plugins:[iq,lq,uq,oq,sq,cq,fq]}),yle=Kt({key:br.highlight,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["MARK"]}]}}},render:{as:"mark"},rules:{selection:{affinity:"directional"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),ble=Kt({key:br.kbd,node:{isLeaf:!0},parsers:{html:{deserializer:{rules:[{validNodeName:["KBD"]}]}}},render:{as:"kbd"},rules:{selection:{affinity:"hard"}}}).extendTransforms(({editor:e,type:t})=>({toggle:()=>{e.tf.toggleMark(t)}})),Ele=Zn(mle);HD({plugins:[WL,dle,Ele]});var dq=Zn(iq,{shortcuts:{toggle:{keys:[[Od.Mod,"b"]]}}}),Dle=Zn(lq),hq=Zn(uq,{shortcuts:{toggle:{keys:[[Od.Mod,"i"]]}}}),Sle=Zn(oq),Cle=Zn(sq),wle=Zn(cq),vq=Zn(fq,{shortcuts:{toggle:{keys:[[Od.Mod,"u"]]}}});Zn(gle,{plugins:[dq,Dle,hq,Sle,Cle,wle,vq]}),Zn(yle),Zn(ble);const pq=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mq=na,_p=(e,t)=>n=>{var r;if(t?.variants==null)return mq(e,n?.class,n?.className);const{variants:l,defaultVariants:s}=t,f=Object.keys(l).map(y=>{const b=n?.[y],S=s?.[y];if(b===null)return null;const C=pq(b)||pq(S);return l[y][C]}),h=n&&Object.entries(n).reduce((y,b)=>{let[S,C]=b;return C===void 0||(y[S]=C),y},{}),p=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((y,b)=>{let{class:S,className:C,...A}=b;return Object.entries(A).every(x=>{let[_,B]=x;return Array.isArray(B)?B.includes({...s,...h}[_]):{...s,...h}[_]===B})?[...y,S,C]:y},[]);return mq(e,f,p,n?.class,n?.className)},b_="-",Ale=e=>{const t=xle(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:f=>{const h=f.split(b_);return h[0]===""&&h.length!==1&&h.shift(),gq(h,t)||Ole(f)},getConflictingClassGroupIds:(f,h)=>{const p=n[f]||[];return h&&r[f]?[...p,...r[f]]:p}}},gq=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?gq(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const s=e.join(b_);return t.validators.find(({validator:f})=>f(s))?.classGroupId},yq=/^\[(.+)\]$/,Ole=e=>{if(yq.test(e)){const t=yq.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xle=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const l in n)E_(n[l],r,l,t);return r},E_=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const s=l===""?t:bq(t,l);s.classGroupId=n;return}if(typeof l=="function"){if(Tle(l)){E_(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([s,f])=>{E_(f,bq(t,s),n,r)})})},bq=(e,t)=>{let n=e;return t.split(b_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Tle=e=>e.isThemeGetter,Ble=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(s,f)=>{n.set(s,f),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let f=n.get(s);if(f!==void 0)return f;if((f=r.get(s))!==void 0)return l(s,f),f},set(s,f){n.has(s)?n.set(s,f):l(s,f)}}},D_="!",S_=":",_le=S_.length,Rle=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=l=>{const s=[];let f=0,h=0,p=0,y;for(let x=0;x<l.length;x++){let _=l[x];if(f===0&&h===0){if(_===S_){s.push(l.slice(p,x)),p=x+_le;continue}if(_==="/"){y=x;continue}}_==="["?f++:_==="]"?f--:_==="("?h++:_===")"&&h--}const b=s.length===0?l:l.substring(p),S=Nle(b),C=S!==b,A=y&&y>p?y-p:void 0;return{modifiers:s,hasImportantModifier:C,baseClassName:S,maybePostfixModifierPosition:A}};if(t){const l=t+S_,s=r;r=f=>f.startsWith(l)?s(f.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(n){const l=r;r=s=>n({className:s,parseClassName:l})}return r},Nle=e=>e.endsWith(D_)?e.substring(0,e.length-1):e.startsWith(D_)?e.substring(1):e,Mle=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const l=[];let s=[];return r.forEach(f=>{f[0]==="["||t[f]?(l.push(...s.sort(),f),s=[]):s.push(f)}),l.push(...s.sort()),l}},zle=e=>({cache:Ble(e.cacheSize),parseClassName:Rle(e),sortModifiers:Mle(e),...Ale(e)}),kle=/\s+/,Ple=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l,sortModifiers:s}=t,f=[],h=e.trim().split(kle);let p="";for(let y=h.length-1;y>=0;y-=1){const b=h[y],{isExternal:S,modifiers:C,hasImportantModifier:A,baseClassName:x,maybePostfixModifierPosition:_}=n(b);if(S){p=b+(p.length>0?" "+p:p);continue}let B=!!_,R=r(B?x.substring(0,_):x);if(!R){if(!B){p=b+(p.length>0?" "+p:p);continue}if(R=r(x),!R){p=b+(p.length>0?" "+p:p);continue}B=!1}const O=s(C).join(":"),j=A?O+D_:O,P=j+R;if(f.includes(P))continue;f.push(P);const L=l(R,B);for(let Y=0;Y<L.length;++Y){const G=L[Y];f.push(j+G)}p=b+(p.length>0?" "+p:p)}return p};function jle(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Eq(t))&&(r&&(r+=" "),r+=n);return r}const Eq=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Eq(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fle(e,...t){let n,r,l,s=f;function f(p){const y=t.reduce((b,S)=>S(b),e());return n=zle(y),r=n.cache.get,l=n.cache.set,s=h,h(p)}function h(p){const y=r(p);if(y)return y;const b=Ple(p,n);return l(p,b),b}return function(){return s(jle.apply(null,arguments))}}const Hr=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Dq=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sq=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lle=/^\d+\/\d+$/,qle=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ule=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hle=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$le=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vle=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rp=e=>Lle.test(e),Nt=e=>!!e&&!Number.isNaN(Number(e)),Wc=e=>!!e&&Number.isInteger(Number(e)),C_=e=>e.endsWith("%")&&Nt(e.slice(0,-1)),Bs=e=>qle.test(e),Gle=()=>!0,Ile=e=>Ule.test(e)&&!Hle.test(e),Cq=()=>!1,Yle=e=>$le.test(e),Kle=e=>Vle.test(e),Xle=e=>!it(e)&&!lt(e),Zle=e=>Np(e,Tq,Cq),it=e=>Dq.test(e),Xd=e=>Np(e,Bq,Ile),w_=e=>Np(e,tue,Nt),wq=e=>Np(e,Oq,Cq),Qle=e=>Np(e,xq,Kle),gS=e=>Np(e,_q,Yle),lt=e=>Sq.test(e),mb=e=>Mp(e,Bq),Wle=e=>Mp(e,nue),Aq=e=>Mp(e,Oq),Jle=e=>Mp(e,Tq),eue=e=>Mp(e,xq),yS=e=>Mp(e,_q,!0),Np=(e,t,n)=>{const r=Dq.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Mp=(e,t,n=!1)=>{const r=Sq.exec(e);return r?r[1]?t(r[1]):n:!1},Oq=e=>e==="position"||e==="percentage",xq=e=>e==="image"||e==="url",Tq=e=>e==="length"||e==="size"||e==="bg-size",Bq=e=>e==="length",tue=e=>e==="number",nue=e=>e==="family-name",_q=e=>e==="shadow",rue=Fle(()=>{const e=Hr("color"),t=Hr("font"),n=Hr("text"),r=Hr("font-weight"),l=Hr("tracking"),s=Hr("leading"),f=Hr("breakpoint"),h=Hr("container"),p=Hr("spacing"),y=Hr("radius"),b=Hr("shadow"),S=Hr("inset-shadow"),C=Hr("text-shadow"),A=Hr("drop-shadow"),x=Hr("blur"),_=Hr("perspective"),B=Hr("aspect"),R=Hr("ease"),O=Hr("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...P(),lt,it],Y=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],z=()=>[lt,it,p],$=()=>[Rp,"full","auto",...z()],Q=()=>[Wc,"none","subgrid",lt,it],I=()=>["auto",{span:["full",Wc,lt,it]},Wc,lt,it],H=()=>[Wc,"auto",lt,it],K=()=>["auto","min","max","fr",lt,it],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...z()],Z=()=>[Rp,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],J=()=>[e,lt,it],he=()=>[...P(),Aq,wq,{position:[lt,it]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Jle,Zle,{size:[lt,it]}],Re=()=>[C_,mb,Xd],me=()=>["","none","full",y,lt,it],ke=()=>["",Nt,mb,Xd],Xe=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Qe=()=>[Nt,C_,Aq,wq],ft=()=>["","none",x,lt,it],ce=()=>["none",Nt,lt,it],le=()=>["none",Nt,lt,it],ue=()=>[Nt,lt,it],fe=()=>[Rp,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Bs],breakpoint:[Bs],color:[Gle],container:[Bs],"drop-shadow":[Bs],ease:["in","out","in-out"],font:[Xle],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Bs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Bs],shadow:[Bs],spacing:["px",Nt],text:[Bs],"text-shadow":[Bs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rp,it,lt,B]}],container:["container"],columns:[{columns:[Nt,it,lt,h]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Wc,"auto",lt,it]}],basis:[{basis:[Rp,"full","auto",h,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Nt,Rp,"auto","initial","none",it]}],grow:[{grow:["",Nt,lt,it]}],shrink:[{shrink:["",Nt,lt,it]}],order:[{order:[Wc,"first","last","none",lt,it]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[h,"screen",...Z()]}],"min-w":[{"min-w":[h,"screen","none",...Z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,mb,Xd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,lt,w_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",C_,it]}],"font-family":[{font:[Wle,it,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,lt,it]}],"line-clamp":[{"line-clamp":[Nt,"none",lt,w_]}],leading:[{leading:[s,...z()]}],"list-image":[{"list-image":["none",lt,it]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",lt,it]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Nt,"from-font","auto",lt,Xd]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Nt,"auto",lt,it]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lt,it]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lt,it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wc,lt,it],radial:["",lt,it],conic:[Wc,lt,it]},eue,Qle]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:ke()}],"border-w-x":[{"border-x":ke()}],"border-w-y":[{"border-y":ke()}],"border-w-s":[{"border-s":ke()}],"border-w-e":[{"border-e":ke()}],"border-w-t":[{"border-t":ke()}],"border-w-r":[{"border-r":ke()}],"border-w-b":[{"border-b":ke()}],"border-w-l":[{"border-l":ke()}],"divide-x":[{"divide-x":ke()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ke()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Xe(),"hidden","none"]}],"divide-style":[{divide:[...Xe(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...Xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Nt,lt,it]}],"outline-w":[{outline:["",Nt,mb,Xd]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",b,yS,gS]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",S,yS,gS]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Nt,Xd]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":ke()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",C,yS,gS]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Nt,lt,it]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Qe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Qe()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":Qe()}],"mask-image-t-to-pos":[{"mask-t-to":Qe()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":Qe()}],"mask-image-r-to-pos":[{"mask-r-to":Qe()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":Qe()}],"mask-image-b-to-pos":[{"mask-b-to":Qe()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":Qe()}],"mask-image-l-to-pos":[{"mask-l-to":Qe()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":Qe()}],"mask-image-x-to-pos":[{"mask-x-to":Qe()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":Qe()}],"mask-image-y-to-pos":[{"mask-y-to":Qe()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[lt,it]}],"mask-image-radial-from-pos":[{"mask-radial-from":Qe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Qe()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Qe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Qe()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",lt,it]}],filter:[{filter:["","none",lt,it]}],blur:[{blur:ft()}],brightness:[{brightness:[Nt,lt,it]}],contrast:[{contrast:[Nt,lt,it]}],"drop-shadow":[{"drop-shadow":["","none",A,yS,gS]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Nt,lt,it]}],"hue-rotate":[{"hue-rotate":[Nt,lt,it]}],invert:[{invert:["",Nt,lt,it]}],saturate:[{saturate:[Nt,lt,it]}],sepia:[{sepia:["",Nt,lt,it]}],"backdrop-filter":[{"backdrop-filter":["","none",lt,it]}],"backdrop-blur":[{"backdrop-blur":ft()}],"backdrop-brightness":[{"backdrop-brightness":[Nt,lt,it]}],"backdrop-contrast":[{"backdrop-contrast":[Nt,lt,it]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Nt,lt,it]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Nt,lt,it]}],"backdrop-invert":[{"backdrop-invert":["",Nt,lt,it]}],"backdrop-opacity":[{"backdrop-opacity":[Nt,lt,it]}],"backdrop-saturate":[{"backdrop-saturate":[Nt,lt,it]}],"backdrop-sepia":[{"backdrop-sepia":["",Nt,lt,it]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",lt,it]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Nt,"initial",lt,it]}],ease:[{ease:["linear","initial",R,lt,it]}],delay:[{delay:[Nt,lt,it]}],animate:[{animate:["none",O,lt,it]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,lt,it]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[lt,it,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lt,it]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lt,it]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Nt,mb,Xd,w_]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function za(...e){return rue(na(e))}const aue=_p("relative w-full cursor-text overflow-y-auto caret-primary select-text selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15",{defaultVariants:{variant:"default"},variants:{variant:{comment:za("flex flex-wrap justify-between gap-1 px-1 py-0.5 text-sm","rounded-md border-[1.5px] border-transparent bg-transparent","has-[[data-slate-editor]:focus]:border-brand/50 has-[[data-slate-editor]:focus]:ring-2 has-[[data-slate-editor]:focus]:ring-brand/30","has-aria-disabled:border-input has-aria-disabled:bg-muted"),default:"h-full",demo:"h-[650px]",select:za("group rounded-md border border-input ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2","has-data-readonly:w-fit has-data-readonly:cursor-default has-data-readonly:border-transparent has-data-readonly:focus-within:[box-shadow:none]")}}});function iue({className:e,variant:t,...n}){return Me.jsx(O7,{className:za("ignore-click-outside/toolbar",aue({variant:t}),e),...n})}const lue=_p(za("group/editor","relative w-full cursor-text overflow-x-hidden break-words whitespace-pre-wrap select-text","rounded-md ring-offset-background focus-visible:outline-none","placeholder:text-muted-foreground/80 **:data-slate-placeholder:!top-1/2 **:data-slate-placeholder:-translate-y-1/2 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!","[&_strong]:font-bold"),{defaultVariants:{variant:"default"},variants:{disabled:{true:"cursor-not-allowed opacity-50"},focused:{true:"ring-2 ring-ring ring-offset-2"},variant:{ai:"w-full px-0 text-base md:text-sm",aiChat:"max-h-[min(70vh,320px)] w-full max-w-[700px] overflow-y-auto px-3 py-2 text-base md:text-sm",comment:za("rounded-none border-none bg-transparent text-sm"),default:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",demo:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",fullWidth:"size-full px-16 pt-4 pb-72 text-base sm:px-24",none:"",select:"px-3 py-2 text-base data-readonly:w-fit"}}}),Rq=ye.forwardRef(({className:e,disabled:t,focused:n,variant:r,...l},s)=>Me.jsx(x7,{ref:s,className:za(lue({disabled:t,focused:n,variant:r}),e),disabled:t,disableDefaultStyles:!0,...l}));Rq.displayName="Editor";function uue(e){return Me.jsx(VD,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}const oue=_p("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-heading text-4xl font-bold",h2:"mt-[1.4em] pb-px font-heading text-2xl font-semibold tracking-tight",h3:"mt-[1em] pb-px font-heading text-xl font-semibold tracking-tight",h4:"mt-[0.75em] font-heading text-lg font-semibold tracking-tight",h5:"mt-[0.75em] text-lg font-semibold tracking-tight",h6:"mt-[0.75em] text-base font-semibold tracking-tight"}}});function A_({variant:e="h1",...t}){return Me.jsx(VD,{as:e,className:oue({variant:e}),...t,children:t.children})}function sue(e){return Me.jsx(A_,{variant:"h1",...e})}function cue(e){return Me.jsx(A_,{variant:"h2",...e})}function fue(e){return Me.jsx(A_,{variant:"h3",...e})}function da(e,t,{checkForDefaultPrevented:n=!0}={}){return function(l){if(e?.(l),n===!1||!l.defaultPrevented)return t?.(l)}}function zp(e,t=[]){let n=[];function r(s,f){const h=ye.createContext(f),p=n.length;n=[...n,f];const y=S=>{const{scope:C,children:A,...x}=S,_=C?.[e]?.[p]||h,B=ye.useMemo(()=>x,Object.values(x));return Me.jsx(_.Provider,{value:B,children:A})};y.displayName=s+"Provider";function b(S,C){const A=C?.[e]?.[p]||h,x=ye.useContext(A);if(x)return x;if(f!==void 0)return f;throw new Error(`\`${S}\` must be used within \`${s}\``)}return[y,b]}const l=()=>{const s=n.map(f=>ye.createContext(f));return function(h){const p=h?.[e]||s;return ye.useMemo(()=>({[`__scope${e}`]:{...h,[e]:p}}),[h,p])}};return l.scopeName=e,[r,due(l,...t)]}function due(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(s){const f=r.reduce((h,{useScope:p,scopeName:y})=>{const S=p(s)[`__scope${y}`];return{...h,...S}},{});return ye.useMemo(()=>({[`__scope${t.scopeName}`]:f}),[f])}};return n.scopeName=t.scopeName,n}function hue(e){const t=e+"CollectionProvider",[n,r]=zp(t),[l,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),f=_=>{const{scope:B,children:R}=_,O=k.useRef(null),j=k.useRef(new Map).current;return Me.jsx(l,{scope:B,itemMap:j,collectionRef:O,children:R})};f.displayName=t;const h=e+"CollectionSlot",p=wD(h),y=k.forwardRef((_,B)=>{const{scope:R,children:O}=_,j=s(h,R),P=go(B,j.collectionRef);return Me.jsx(p,{ref:P,children:O})});y.displayName=h;const b=e+"CollectionItemSlot",S="data-radix-collection-item",C=wD(b),A=k.forwardRef((_,B)=>{const{scope:R,children:O,...j}=_,P=k.useRef(null),L=go(B,P),Y=s(b,R);return k.useEffect(()=>(Y.itemMap.set(P,{ref:P,...j}),()=>void Y.itemMap.delete(P))),Me.jsx(C,{[S]:"",ref:L,children:O})});A.displayName=b;function x(_){const B=s(e+"CollectionConsumer",_);return k.useCallback(()=>{const O=B.collectionRef.current;if(!O)return[];const j=Array.from(O.querySelectorAll(`[${S}]`));return Array.from(B.itemMap.values()).sort((Y,G)=>j.indexOf(Y.ref.current)-j.indexOf(G.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:f,Slot:y,ItemSlot:A},x,r]}var Jc=globalThis?.document?ye.useLayoutEffect:()=>{},vue=ye[" useId ".trim().toString()]||(()=>{}),pue=0;function Nq(e){const[t,n]=ye.useState(vue());return Jc(()=>{n(r=>r??String(pue++))},[e]),t?`radix-${t}`:""}var mue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ha=mue.reduce((e,t)=>{const n=wD(`Primitive.${t}`),r=ye.forwardRef((l,s)=>{const{asChild:f,...h}=l,p=f?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Me.jsx(p,{...h,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function gue(e,t){e&&EN.flushSync(()=>e.dispatchEvent(t))}function gb(e){const t=ye.useRef(e);return ye.useEffect(()=>{t.current=e}),ye.useMemo(()=>(...n)=>t.current?.(...n),[])}var yue=ye[" useInsertionEffect ".trim().toString()]||Jc;function yb({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[l,s,f]=bue({defaultProp:t,onChange:n}),h=e!==void 0,p=h?e:l;{const b=ye.useRef(e!==void 0);ye.useEffect(()=>{const S=b.current;S!==h&&console.warn(`${r} is changing from ${S?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=h},[h,r])}const y=ye.useCallback(b=>{if(h){const S=Eue(b)?b(e):b;S!==e&&f.current?.(S)}else s(b)},[h,e,s,f]);return[p,y]}function bue({defaultProp:e,onChange:t}){const[n,r]=ye.useState(e),l=ye.useRef(n),s=ye.useRef(t);return yue(()=>{s.current=t},[t]),ye.useEffect(()=>{l.current!==n&&(s.current?.(n),l.current=n)},[n,l]),[n,r,s]}function Eue(e){return typeof e=="function"}var Due=ye.createContext(void 0);function O_(e){const t=ye.useContext(Due);return e||t||"ltr"}var x_="rovingFocusGroup.onEntryFocus",Sue={bubbles:!1,cancelable:!0},bb="RovingFocusGroup",[T_,Mq,Cue]=hue(bb),[wue,bS]=zp(bb,[Cue]),[Aue,Oue]=wue(bb),zq=ye.forwardRef((e,t)=>Me.jsx(T_.Provider,{scope:e.__scopeRovingFocusGroup,children:Me.jsx(T_.Slot,{scope:e.__scopeRovingFocusGroup,children:Me.jsx(xue,{...e,ref:t})})}));zq.displayName=bb;var xue=ye.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:l=!1,dir:s,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:p,onEntryFocus:y,preventScrollOnEntryFocus:b=!1,...S}=e,C=ye.useRef(null),A=go(t,C),x=O_(s),[_,B]=yb({prop:f,defaultProp:h??null,onChange:p,caller:bb}),[R,O]=ye.useState(!1),j=gb(y),P=Mq(n),L=ye.useRef(!1),[Y,G]=ye.useState(0);return ye.useEffect(()=>{const z=C.current;if(z)return z.addEventListener(x_,j),()=>z.removeEventListener(x_,j)},[j]),Me.jsx(Aue,{scope:n,orientation:r,dir:x,loop:l,currentTabStopId:_,onItemFocus:ye.useCallback(z=>B(z),[B]),onItemShiftTab:ye.useCallback(()=>O(!0),[]),onFocusableItemAdd:ye.useCallback(()=>G(z=>z+1),[]),onFocusableItemRemove:ye.useCallback(()=>G(z=>z-1),[]),children:Me.jsx(ha.div,{tabIndex:R||Y===0?-1:0,"data-orientation":r,...S,ref:A,style:{outline:"none",...e.style},onMouseDown:da(e.onMouseDown,()=>{L.current=!0}),onFocus:da(e.onFocus,z=>{const $=!L.current;if(z.target===z.currentTarget&&$&&!R){const Q=new CustomEvent(x_,Sue);if(z.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const I=P().filter(U=>U.focusable),H=I.find(U=>U.active),K=I.find(U=>U.id===_),ne=[H,K,...I].filter(Boolean).map(U=>U.ref.current);jq(ne,b)}}L.current=!1}),onBlur:da(e.onBlur,()=>O(!1))})})}),kq="RovingFocusGroupItem",Pq=ye.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:s,children:f,...h}=e,p=Nq(),y=s||p,b=Oue(kq,n),S=b.currentTabStopId===y,C=Mq(n),{onFocusableItemAdd:A,onFocusableItemRemove:x,currentTabStopId:_}=b;return ye.useEffect(()=>{if(r)return A(),()=>x()},[r,A,x]),Me.jsx(T_.ItemSlot,{scope:n,id:y,focusable:r,active:l,children:Me.jsx(ha.span,{tabIndex:S?0:-1,"data-orientation":b.orientation,...h,ref:t,onMouseDown:da(e.onMouseDown,B=>{r?b.onItemFocus(y):B.preventDefault()}),onFocus:da(e.onFocus,()=>b.onItemFocus(y)),onKeyDown:da(e.onKeyDown,B=>{if(B.key==="Tab"&&B.shiftKey){b.onItemShiftTab();return}if(B.target!==B.currentTarget)return;const R=_ue(B,b.orientation,b.dir);if(R!==void 0){if(B.metaKey||B.ctrlKey||B.altKey||B.shiftKey)return;B.preventDefault();let j=C().filter(P=>P.focusable).map(P=>P.ref.current);if(R==="last")j.reverse();else if(R==="prev"||R==="next"){R==="prev"&&j.reverse();const P=j.indexOf(B.currentTarget);j=b.loop?Rue(j,P+1):j.slice(P+1)}setTimeout(()=>jq(j))}}),children:typeof f=="function"?f({isCurrentTabStop:S,hasTabStop:_!=null}):f})})});Pq.displayName=kq;var Tue={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bue(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _ue(e,t,n){const r=Bue(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tue[r]}function jq(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Rue(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Fq=zq,B_=Pq,Nue="Separator",Lq="horizontal",Mue=["horizontal","vertical"],qq=ye.forwardRef((e,t)=>{const{decorative:n,orientation:r=Lq,...l}=e,s=zue(r)?r:Lq,h=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return Me.jsx(ha.div,{"data-orientation":s,...h,...l,ref:t})});qq.displayName=Nue;function zue(e){return Mue.includes(e)}var kue=qq,Uq="Toggle",Hq=ye.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:l,...s}=e,[f,h]=yb({prop:n,onChange:l,defaultProp:r??!1,caller:Uq});return Me.jsx(ha.button,{type:"button","aria-pressed":f,"data-state":f?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:da(e.onClick,()=>{e.disabled||h(!f)})})});Hq.displayName=Uq;var ef="ToggleGroup",[$q,Vq]=zp(ef,[bS]),Gq=bS(),__=k.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const l=r;return Me.jsx(Pue,{...l,ref:t})}if(n==="multiple"){const l=r;return Me.jsx(jue,{...l,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ef}\``)});__.displayName=ef;var[Iq,Yq]=$q(ef),Pue=k.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:l=()=>{},...s}=e,[f,h]=yb({prop:n,defaultProp:r??"",onChange:l,caller:ef});return Me.jsx(Iq,{scope:e.__scopeToggleGroup,type:"single",value:k.useMemo(()=>f?[f]:[],[f]),onItemActivate:h,onItemDeactivate:k.useCallback(()=>h(""),[h]),children:Me.jsx(Kq,{...s,ref:t})})}),jue=k.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:l=()=>{},...s}=e,[f,h]=yb({prop:n,defaultProp:r??[],onChange:l,caller:ef}),p=k.useCallback(b=>h((S=[])=>[...S,b]),[h]),y=k.useCallback(b=>h((S=[])=>S.filter(C=>C!==b)),[h]);return Me.jsx(Iq,{scope:e.__scopeToggleGroup,type:"multiple",value:f,onItemActivate:p,onItemDeactivate:y,children:Me.jsx(Kq,{...s,ref:t})})});__.displayName=ef;var[Fue,Lue]=$q(ef),Kq=k.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:l=!0,orientation:s,dir:f,loop:h=!0,...p}=e,y=Gq(n),b=O_(f),S={role:"group",dir:b,...p};return Me.jsx(Fue,{scope:n,rovingFocus:l,disabled:r,children:l?Me.jsx(Fq,{asChild:!0,...y,orientation:s,dir:b,loop:h,children:Me.jsx(ha.div,{...S,ref:t})}):Me.jsx(ha.div,{...S,ref:t})})}),ES="ToggleGroupItem",Xq=k.forwardRef((e,t)=>{const n=Yq(ES,e.__scopeToggleGroup),r=Lue(ES,e.__scopeToggleGroup),l=Gq(e.__scopeToggleGroup),s=n.value.includes(e.value),f=r.disabled||e.disabled,h={...e,pressed:s,disabled:f},p=k.useRef(null);return r.rovingFocus?Me.jsx(B_,{asChild:!0,...l,focusable:!f,active:s,ref:p,children:Me.jsx(Zq,{...h,ref:t})}):Me.jsx(Zq,{...h,ref:t})});Xq.displayName=ES;var Zq=k.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...l}=e,s=Yq(ES,n),f={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},h=s.type==="single"?f:void 0;return Me.jsx(Hq,{...h,...l,ref:t,onPressedChange:p=>{p?s.onItemActivate(r):s.onItemDeactivate(r)}})}),que=__,Uue=Xq,R_="Toolbar",[Hue,Mfe]=zp(R_,[bS,Vq]),N_=bS(),Qq=Vq(),[$ue,Wq]=Hue(R_),Jq=ye.forwardRef((e,t)=>{const{__scopeToolbar:n,orientation:r="horizontal",dir:l,loop:s=!0,...f}=e,h=N_(n),p=O_(l);return Me.jsx($ue,{scope:n,orientation:r,dir:p,children:Me.jsx(Fq,{asChild:!0,...h,orientation:r,dir:p,loop:s,children:Me.jsx(ha.div,{role:"toolbar","aria-orientation":r,dir:p,...f,ref:t})})})});Jq.displayName=R_;var e5="ToolbarSeparator",Vue=ye.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,l=Wq(e5,n);return Me.jsx(kue,{orientation:l.orientation==="horizontal"?"vertical":"horizontal",...r,ref:t})});Vue.displayName=e5;var Gue="ToolbarButton",M_=ye.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,l=N_(n);return Me.jsx(B_,{asChild:!0,...l,focusable:!e.disabled,children:Me.jsx(ha.button,{type:"button",...r,ref:t})})});M_.displayName=Gue;var Iue="ToolbarLink",Yue=ye.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,l=N_(n);return Me.jsx(B_,{asChild:!0,...l,focusable:!0,children:Me.jsx(ha.a,{...r,ref:t,onKeyDown:da(e.onKeyDown,s=>{s.key===" "&&s.currentTarget.click()})})})});Yue.displayName=Iue;var t5="ToolbarToggleGroup",n5=ye.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,l=Wq(t5,n),s=Qq(n);return Me.jsx(que,{"data-orientation":l.orientation,dir:l.dir,...s,...r,ref:t,rovingFocus:!1})});n5.displayName=t5;var Kue="ToolbarToggleItem",r5=ye.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,l=Qq(n),s={__scopeToolbar:e.__scopeToolbar};return Me.jsx(M_,{asChild:!0,...s,children:Me.jsx(Uue,{...l,...r,ref:t})})});r5.displayName=Kue;var Xue=Jq,Zue=M_,Que=r5;function Wue(e,t=globalThis?.document){const n=gb(e);ye.useEffect(()=>{const r=l=>{l.key==="Escape"&&n(l)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Jue="DismissableLayer",z_="dismissableLayer.update",eoe="dismissableLayer.pointerDownOutside",toe="dismissableLayer.focusOutside",a5,i5=ye.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),l5=ye.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:f,onDismiss:h,...p}=e,y=ye.useContext(i5),[b,S]=ye.useState(null),C=b?.ownerDocument??globalThis?.document,[,A]=ye.useState({}),x=go(t,G=>S(G)),_=Array.from(y.layers),[B]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),R=_.indexOf(B),O=b?_.indexOf(b):-1,j=y.layersWithOutsidePointerEventsDisabled.size>0,P=O>=R,L=aoe(G=>{const z=G.target,$=[...y.branches].some(Q=>Q.contains(z));!P||$||(l?.(G),f?.(G),G.defaultPrevented||h?.())},C),Y=ioe(G=>{const z=G.target;[...y.branches].some(Q=>Q.contains(z))||(s?.(G),f?.(G),G.defaultPrevented||h?.())},C);return Wue(G=>{O===y.layers.size-1&&(r?.(G),!G.defaultPrevented&&h&&(G.preventDefault(),h()))},C),ye.useEffect(()=>{if(b)return n&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(a5=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),u5(),()=>{n&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=a5)}},[b,C,n,y]),ye.useEffect(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),u5())},[b,y]),ye.useEffect(()=>{const G=()=>A({});return document.addEventListener(z_,G),()=>document.removeEventListener(z_,G)},[]),Me.jsx(ha.div,{...p,ref:x,style:{pointerEvents:j?P?"auto":"none":void 0,...e.style},onFocusCapture:da(e.onFocusCapture,Y.onFocusCapture),onBlurCapture:da(e.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:da(e.onPointerDownCapture,L.onPointerDownCapture)})});l5.displayName=Jue;var noe="DismissableLayerBranch",roe=ye.forwardRef((e,t)=>{const n=ye.useContext(i5),r=ye.useRef(null),l=go(t,r);return ye.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),Me.jsx(ha.div,{...e,ref:l})});roe.displayName=noe;function aoe(e,t=globalThis?.document){const n=gb(e),r=ye.useRef(!1),l=ye.useRef(()=>{});return ye.useEffect(()=>{const s=h=>{if(h.target&&!r.current){let p=function(){o5(eoe,n,y,{discrete:!0})};const y={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=p,t.addEventListener("click",l.current,{once:!0})):p()}else t.removeEventListener("click",l.current);r.current=!1},f=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(f),t.removeEventListener("pointerdown",s),t.removeEventListener("click",l.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ioe(e,t=globalThis?.document){const n=gb(e),r=ye.useRef(!1);return ye.useEffect(()=>{const l=s=>{s.target&&!r.current&&o5(toe,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function u5(){const e=new CustomEvent(z_);document.dispatchEvent(e)}function o5(e,t,n,{discrete:r}){const l=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),r?gue(l,s):l.dispatchEvent(s)}const loe=["top","right","bottom","left"],tf=Math.min,sl=Math.max,DS=Math.round,SS=Math.floor,yo=e=>({x:e,y:e}),uoe={left:"right",right:"left",bottom:"top",top:"bottom"},ooe={start:"end",end:"start"};function k_(e,t,n){return sl(e,tf(t,n))}function _s(e,t){return typeof e=="function"?e(t):e}function Rs(e){return e.split("-")[0]}function kp(e){return e.split("-")[1]}function P_(e){return e==="x"?"y":"x"}function j_(e){return e==="y"?"height":"width"}const soe=new Set(["top","bottom"]);function bo(e){return soe.has(Rs(e))?"y":"x"}function F_(e){return P_(bo(e))}function coe(e,t,n){n===void 0&&(n=!1);const r=kp(e),l=F_(e),s=j_(l);let f=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(f=CS(f)),[f,CS(f)]}function foe(e){const t=CS(e);return[L_(e),t,L_(t)]}function L_(e){return e.replace(/start|end/g,t=>ooe[t])}const s5=["left","right"],c5=["right","left"],doe=["top","bottom"],hoe=["bottom","top"];function voe(e,t,n){switch(e){case"top":case"bottom":return n?t?c5:s5:t?s5:c5;case"left":case"right":return t?doe:hoe;default:return[]}}function poe(e,t,n,r){const l=kp(e);let s=voe(Rs(e),n==="start",r);return l&&(s=s.map(f=>f+"-"+l),t&&(s=s.concat(s.map(L_)))),s}function CS(e){return e.replace(/left|right|bottom|top/g,t=>uoe[t])}function moe(e){return{top:0,right:0,bottom:0,left:0,...e}}function f5(e){return typeof e!="number"?moe(e):{top:e,right:e,bottom:e,left:e}}function wS(e){const{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function d5(e,t,n){let{reference:r,floating:l}=e;const s=bo(t),f=F_(t),h=j_(f),p=Rs(t),y=s==="y",b=r.x+r.width/2-l.width/2,S=r.y+r.height/2-l.height/2,C=r[h]/2-l[h]/2;let A;switch(p){case"top":A={x:b,y:r.y-l.height};break;case"bottom":A={x:b,y:r.y+r.height};break;case"right":A={x:r.x+r.width,y:S};break;case"left":A={x:r.x-l.width,y:S};break;default:A={x:r.x,y:r.y}}switch(kp(t)){case"start":A[f]-=C*(n&&y?-1:1);break;case"end":A[f]+=C*(n&&y?-1:1);break}return A}const goe=async(e,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:f}=n,h=s.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(t));let y=await f.getElementRects({reference:e,floating:t,strategy:l}),{x:b,y:S}=d5(y,r,p),C=r,A={},x=0;for(let _=0;_<h.length;_++){const{name:B,fn:R}=h[_],{x:O,y:j,data:P,reset:L}=await R({x:b,y:S,initialPlacement:r,placement:C,strategy:l,middlewareData:A,rects:y,platform:f,elements:{reference:e,floating:t}});b=O??b,S=j??S,A={...A,[B]:{...A[B],...P}},L&&x<=50&&(x++,typeof L=="object"&&(L.placement&&(C=L.placement),L.rects&&(y=L.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:l}):L.rects),{x:b,y:S}=d5(y,C,p)),_=-1)}return{x:b,y:S,placement:C,strategy:l,middlewareData:A}};async function Eb(e,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:s,rects:f,elements:h,strategy:p}=e,{boundary:y="clippingAncestors",rootBoundary:b="viewport",elementContext:S="floating",altBoundary:C=!1,padding:A=0}=_s(t,e),x=f5(A),B=h[C?S==="floating"?"reference":"floating":S],R=wS(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(B)))==null||n?B:B.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(h.floating)),boundary:y,rootBoundary:b,strategy:p})),O=S==="floating"?{x:r,y:l,width:f.floating.width,height:f.floating.height}:f.reference,j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h.floating)),P=await(s.isElement==null?void 0:s.isElement(j))?await(s.getScale==null?void 0:s.getScale(j))||{x:1,y:1}:{x:1,y:1},L=wS(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:O,offsetParent:j,strategy:p}):O);return{top:(R.top-L.top+x.top)/P.y,bottom:(L.bottom-R.bottom+x.bottom)/P.y,left:(R.left-L.left+x.left)/P.x,right:(L.right-R.right+x.right)/P.x}}const yoe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:l,rects:s,platform:f,elements:h,middlewareData:p}=t,{element:y,padding:b=0}=_s(e,t)||{};if(y==null)return{};const S=f5(b),C={x:n,y:r},A=F_(l),x=j_(A),_=await f.getDimensions(y),B=A==="y",R=B?"top":"left",O=B?"bottom":"right",j=B?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[A]-C[A]-s.floating[x],L=C[A]-s.reference[A],Y=await(f.getOffsetParent==null?void 0:f.getOffsetParent(y));let G=Y?Y[j]:0;(!G||!await(f.isElement==null?void 0:f.isElement(Y)))&&(G=h.floating[j]||s.floating[x]);const z=P/2-L/2,$=G/2-_[x]/2-1,Q=tf(S[R],$),I=tf(S[O],$),H=Q,K=G-_[x]-I,W=G/2-_[x]/2+z,ne=k_(H,W,K),U=!p.arrow&&kp(l)!=null&&W!==ne&&s.reference[x]/2-(W<H?Q:I)-_[x]/2<0,Z=U?W<H?W-H:W-K:0;return{[A]:C[A]+Z,data:{[A]:ne,centerOffset:W-ne-Z,...U&&{alignmentOffset:Z}},reset:U}}}),boe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:l,middlewareData:s,rects:f,initialPlacement:h,platform:p,elements:y}=t,{mainAxis:b=!0,crossAxis:S=!0,fallbackPlacements:C,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:_=!0,...B}=_s(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const R=Rs(l),O=bo(h),j=Rs(h)===h,P=await(p.isRTL==null?void 0:p.isRTL(y.floating)),L=C||(j||!_?[CS(h)]:foe(h)),Y=x!=="none";!C&&Y&&L.push(...poe(h,_,x,P));const G=[h,...L],z=await Eb(t,B),$=[];let Q=((r=s.flip)==null?void 0:r.overflows)||[];if(b&&$.push(z[R]),S){const W=coe(l,f,P);$.push(z[W[0]],z[W[1]])}if(Q=[...Q,{placement:l,overflows:$}],!$.every(W=>W<=0)){var I,H;const W=(((I=s.flip)==null?void 0:I.index)||0)+1,ne=G[W];if(ne&&(!(S==="alignment"?O!==bo(ne):!1)||Q.every(J=>bo(J.placement)===O?J.overflows[0]>0:!0)))return{data:{index:W,overflows:Q},reset:{placement:ne}};let U=(H=Q.filter(Z=>Z.overflows[0]<=0).sort((Z,J)=>Z.overflows[1]-J.overflows[1])[0])==null?void 0:H.placement;if(!U)switch(A){case"bestFit":{var K;const Z=(K=Q.filter(J=>{if(Y){const he=bo(J.placement);return he===O||he==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(he=>he>0).reduce((he,ie)=>he+ie,0)]).sort((J,he)=>J[1]-he[1])[0])==null?void 0:K[0];Z&&(U=Z);break}case"initialPlacement":U=h;break}if(l!==U)return{reset:{placement:U}}}return{}}}};function h5(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function v5(e){return loe.some(t=>e[t]>=0)}const Eoe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...l}=_s(e,t);switch(r){case"referenceHidden":{const s=await Eb(t,{...l,elementContext:"reference"}),f=h5(s,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:v5(f)}}}case"escaped":{const s=await Eb(t,{...l,altBoundary:!0}),f=h5(s,n.floating);return{data:{escapedOffsets:f,escaped:v5(f)}}}default:return{}}}}},p5=new Set(["left","top"]);async function Doe(e,t){const{placement:n,platform:r,elements:l}=e,s=await(r.isRTL==null?void 0:r.isRTL(l.floating)),f=Rs(n),h=kp(n),p=bo(n)==="y",y=p5.has(f)?-1:1,b=s&&p?-1:1,S=_s(t,e);let{mainAxis:C,crossAxis:A,alignmentAxis:x}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return h&&typeof x=="number"&&(A=h==="end"?x*-1:x),p?{x:A*b,y:C*y}:{x:C*y,y:A*b}}const Soe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:l,y:s,placement:f,middlewareData:h}=t,p=await Doe(t,e);return f===((n=h.offset)==null?void 0:n.placement)&&(r=h.arrow)!=null&&r.alignmentOffset?{}:{x:l+p.x,y:s+p.y,data:{...p,placement:f}}}}},Coe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:l}=t,{mainAxis:s=!0,crossAxis:f=!1,limiter:h={fn:B=>{let{x:R,y:O}=B;return{x:R,y:O}}},...p}=_s(e,t),y={x:n,y:r},b=await Eb(t,p),S=bo(Rs(l)),C=P_(S);let A=y[C],x=y[S];if(s){const B=C==="y"?"top":"left",R=C==="y"?"bottom":"right",O=A+b[B],j=A-b[R];A=k_(O,A,j)}if(f){const B=S==="y"?"top":"left",R=S==="y"?"bottom":"right",O=x+b[B],j=x-b[R];x=k_(O,x,j)}const _=h.fn({...t,[C]:A,[S]:x});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[C]:s,[S]:f}}}}}},woe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:l,rects:s,middlewareData:f}=t,{offset:h=0,mainAxis:p=!0,crossAxis:y=!0}=_s(e,t),b={x:n,y:r},S=bo(l),C=P_(S);let A=b[C],x=b[S];const _=_s(h,t),B=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(p){const j=C==="y"?"height":"width",P=s.reference[C]-s.floating[j]+B.mainAxis,L=s.reference[C]+s.reference[j]-B.mainAxis;A<P?A=P:A>L&&(A=L)}if(y){var R,O;const j=C==="y"?"width":"height",P=p5.has(Rs(l)),L=s.reference[S]-s.floating[j]+(P&&((R=f.offset)==null?void 0:R[S])||0)+(P?0:B.crossAxis),Y=s.reference[S]+s.reference[j]+(P?0:((O=f.offset)==null?void 0:O[S])||0)-(P?B.crossAxis:0);x<L?x=L:x>Y&&(x=Y)}return{[C]:A,[S]:x}}}},Aoe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:l,rects:s,platform:f,elements:h}=t,{apply:p=()=>{},...y}=_s(e,t),b=await Eb(t,y),S=Rs(l),C=kp(l),A=bo(l)==="y",{width:x,height:_}=s.floating;let B,R;S==="top"||S==="bottom"?(B=S,R=C===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(R=S,B=C==="end"?"top":"bottom");const O=_-b.top-b.bottom,j=x-b.left-b.right,P=tf(_-b[B],O),L=tf(x-b[R],j),Y=!t.middlewareData.shift;let G=P,z=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=j),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(G=O),Y&&!C){const Q=sl(b.left,0),I=sl(b.right,0),H=sl(b.top,0),K=sl(b.bottom,0);A?z=x-2*(Q!==0||I!==0?Q+I:sl(b.left,b.right)):G=_-2*(H!==0||K!==0?H+K:sl(b.top,b.bottom))}await p({...t,availableWidth:z,availableHeight:G});const $=await f.getDimensions(h.floating);return x!==$.width||_!==$.height?{reset:{rects:!0}}:{}}}};function AS(){return typeof window<"u"}function Pp(e){return m5(e)?(e.nodeName||"").toLowerCase():"#document"}function cl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Eo(e){var t;return(t=(m5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function m5(e){return AS()?e instanceof Node||e instanceof cl(e).Node:!1}function Nu(e){return AS()?e instanceof Element||e instanceof cl(e).Element:!1}function Do(e){return AS()?e instanceof HTMLElement||e instanceof cl(e).HTMLElement:!1}function g5(e){return!AS()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cl(e).ShadowRoot}const Ooe=new Set(["inline","contents"]);function Db(e){const{overflow:t,overflowX:n,overflowY:r,display:l}=Mu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ooe.has(l)}const xoe=new Set(["table","td","th"]);function Toe(e){return xoe.has(Pp(e))}const Boe=[":popover-open",":modal"];function OS(e){return Boe.some(t=>{try{return e.matches(t)}catch{return!1}})}const _oe=["transform","translate","scale","rotate","perspective"],Roe=["transform","translate","scale","rotate","perspective","filter"],Noe=["paint","layout","strict","content"];function q_(e){const t=U_(),n=Nu(e)?Mu(e):e;return _oe.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Roe.some(r=>(n.willChange||"").includes(r))||Noe.some(r=>(n.contain||"").includes(r))}function Moe(e){let t=nf(e);for(;Do(t)&&!jp(t);){if(q_(t))return t;if(OS(t))return null;t=nf(t)}return null}function U_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zoe=new Set(["html","body","#document"]);function jp(e){return zoe.has(Pp(e))}function Mu(e){return cl(e).getComputedStyle(e)}function xS(e){return Nu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nf(e){if(Pp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g5(e)&&e.host||Eo(e);return g5(t)?t.host:t}function y5(e){const t=nf(e);return jp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Do(t)&&Db(t)?t:y5(t)}function Sb(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=y5(e),s=l===((r=e.ownerDocument)==null?void 0:r.body),f=cl(l);if(s){const h=H_(f);return t.concat(f,f.visualViewport||[],Db(l)?l:[],h&&n?Sb(h):[])}return t.concat(l,Sb(l,[],n))}function H_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function b5(e){const t=Mu(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=Do(e),s=l?e.offsetWidth:n,f=l?e.offsetHeight:r,h=DS(n)!==s||DS(r)!==f;return h&&(n=s,r=f),{width:n,height:r,$:h}}function $_(e){return Nu(e)?e:e.contextElement}function Fp(e){const t=$_(e);if(!Do(t))return yo(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:s}=b5(t);let f=(s?DS(n.width):n.width)/r,h=(s?DS(n.height):n.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const koe=yo(0);function E5(e){const t=cl(e);return!U_()||!t.visualViewport?koe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Poe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==cl(e)?!1:t}function Zd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),s=$_(e);let f=yo(1);t&&(r?Nu(r)&&(f=Fp(r)):f=Fp(e));const h=Poe(s,n,r)?E5(s):yo(0);let p=(l.left+h.x)/f.x,y=(l.top+h.y)/f.y,b=l.width/f.x,S=l.height/f.y;if(s){const C=cl(s),A=r&&Nu(r)?cl(r):r;let x=C,_=H_(x);for(;_&&r&&A!==x;){const B=Fp(_),R=_.getBoundingClientRect(),O=Mu(_),j=R.left+(_.clientLeft+parseFloat(O.paddingLeft))*B.x,P=R.top+(_.clientTop+parseFloat(O.paddingTop))*B.y;p*=B.x,y*=B.y,b*=B.x,S*=B.y,p+=j,y+=P,x=cl(_),_=H_(x)}}return wS({width:b,height:S,x:p,y})}function TS(e,t){const n=xS(e).scrollLeft;return t?t.left+n:Zd(Eo(e)).left+n}function D5(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-TS(e,n),l=n.top+t.scrollTop;return{x:r,y:l}}function joe(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e;const s=l==="fixed",f=Eo(r),h=t?OS(t.floating):!1;if(r===f||h&&s)return n;let p={scrollLeft:0,scrollTop:0},y=yo(1);const b=yo(0),S=Do(r);if((S||!S&&!s)&&((Pp(r)!=="body"||Db(f))&&(p=xS(r)),Do(r))){const A=Zd(r);y=Fp(r),b.x=A.x+r.clientLeft,b.y=A.y+r.clientTop}const C=f&&!S&&!s?D5(f,p):yo(0);return{width:n.width*y.x,height:n.height*y.y,x:n.x*y.x-p.scrollLeft*y.x+b.x+C.x,y:n.y*y.y-p.scrollTop*y.y+b.y+C.y}}function Foe(e){return Array.from(e.getClientRects())}function Loe(e){const t=Eo(e),n=xS(e),r=e.ownerDocument.body,l=sl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=sl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let f=-n.scrollLeft+TS(e);const h=-n.scrollTop;return Mu(r).direction==="rtl"&&(f+=sl(t.clientWidth,r.clientWidth)-l),{width:l,height:s,x:f,y:h}}const S5=25;function qoe(e,t){const n=cl(e),r=Eo(e),l=n.visualViewport;let s=r.clientWidth,f=r.clientHeight,h=0,p=0;if(l){s=l.width,f=l.height;const b=U_();(!b||b&&t==="fixed")&&(h=l.offsetLeft,p=l.offsetTop)}const y=TS(r);if(y<=0){const b=r.ownerDocument,S=b.body,C=getComputedStyle(S),A=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,x=Math.abs(r.clientWidth-S.clientWidth-A);x<=S5&&(s-=x)}else y<=S5&&(s+=y);return{width:s,height:f,x:h,y:p}}const Uoe=new Set(["absolute","fixed"]);function Hoe(e,t){const n=Zd(e,!0,t==="fixed"),r=n.top+e.clientTop,l=n.left+e.clientLeft,s=Do(e)?Fp(e):yo(1),f=e.clientWidth*s.x,h=e.clientHeight*s.y,p=l*s.x,y=r*s.y;return{width:f,height:h,x:p,y}}function C5(e,t,n){let r;if(t==="viewport")r=qoe(e,n);else if(t==="document")r=Loe(Eo(e));else if(Nu(t))r=Hoe(t,n);else{const l=E5(e);r={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return wS(r)}function w5(e,t){const n=nf(e);return n===t||!Nu(n)||jp(n)?!1:Mu(n).position==="fixed"||w5(n,t)}function $oe(e,t){const n=t.get(e);if(n)return n;let r=Sb(e,[],!1).filter(h=>Nu(h)&&Pp(h)!=="body"),l=null;const s=Mu(e).position==="fixed";let f=s?nf(e):e;for(;Nu(f)&&!jp(f);){const h=Mu(f),p=q_(f);!p&&h.position==="fixed"&&(l=null),(s?!p&&!l:!p&&h.position==="static"&&!!l&&Uoe.has(l.position)||Db(f)&&!p&&w5(e,f))?r=r.filter(b=>b!==f):l=h,f=nf(f)}return t.set(e,r),r}function Voe(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e;const f=[...n==="clippingAncestors"?OS(t)?[]:$oe(t,this._c):[].concat(n),r],h=f[0],p=f.reduce((y,b)=>{const S=C5(t,b,l);return y.top=sl(S.top,y.top),y.right=tf(S.right,y.right),y.bottom=tf(S.bottom,y.bottom),y.left=sl(S.left,y.left),y},C5(t,h,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Goe(e){const{width:t,height:n}=b5(e);return{width:t,height:n}}function Ioe(e,t,n){const r=Do(t),l=Eo(t),s=n==="fixed",f=Zd(e,!0,s,t);let h={scrollLeft:0,scrollTop:0};const p=yo(0);function y(){p.x=TS(l)}if(r||!r&&!s)if((Pp(t)!=="body"||Db(l))&&(h=xS(t)),r){const A=Zd(t,!0,s,t);p.x=A.x+t.clientLeft,p.y=A.y+t.clientTop}else l&&y();s&&!r&&l&&y();const b=l&&!r&&!s?D5(l,h):yo(0),S=f.left+h.scrollLeft-p.x-b.x,C=f.top+h.scrollTop-p.y-b.y;return{x:S,y:C,width:f.width,height:f.height}}function V_(e){return Mu(e).position==="static"}function A5(e,t){if(!Do(e)||Mu(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Eo(e)===n&&(n=n.ownerDocument.body),n}function O5(e,t){const n=cl(e);if(OS(e))return n;if(!Do(e)){let l=nf(e);for(;l&&!jp(l);){if(Nu(l)&&!V_(l))return l;l=nf(l)}return n}let r=A5(e,t);for(;r&&Toe(r)&&V_(r);)r=A5(r,t);return r&&jp(r)&&V_(r)&&!q_(r)?n:r||Moe(e)||n}const Yoe=async function(e){const t=this.getOffsetParent||O5,n=this.getDimensions,r=await n(e.floating);return{reference:Ioe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Koe(e){return Mu(e).direction==="rtl"}const Xoe={convertOffsetParentRelativeRectToViewportRelativeRect:joe,getDocumentElement:Eo,getClippingRect:Voe,getOffsetParent:O5,getElementRects:Yoe,getClientRects:Foe,getDimensions:Goe,getScale:Fp,isElement:Nu,isRTL:Koe};function x5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zoe(e,t){let n=null,r;const l=Eo(e);function s(){var h;clearTimeout(r),(h=n)==null||h.disconnect(),n=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),s();const y=e.getBoundingClientRect(),{left:b,top:S,width:C,height:A}=y;if(h||t(),!C||!A)return;const x=SS(S),_=SS(l.clientWidth-(b+C)),B=SS(l.clientHeight-(S+A)),R=SS(b),j={rootMargin:-x+"px "+-_+"px "+-B+"px "+-R+"px",threshold:sl(0,tf(1,p))||1};let P=!0;function L(Y){const G=Y[0].intersectionRatio;if(G!==p){if(!P)return f();G?f(!1,G):r=setTimeout(()=>{f(!1,1e-7)},1e3)}G===1&&!x5(y,e.getBoundingClientRect())&&f(),P=!1}try{n=new IntersectionObserver(L,{...j,root:l.ownerDocument})}catch{n=new IntersectionObserver(L,j)}n.observe(e)}return f(!0),s}function Qoe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,y=$_(e),b=l||s?[...y?Sb(y):[],...Sb(t)]:[];b.forEach(R=>{l&&R.addEventListener("scroll",n,{passive:!0}),s&&R.addEventListener("resize",n)});const S=y&&h?Zoe(y,n):null;let C=-1,A=null;f&&(A=new ResizeObserver(R=>{let[O]=R;O&&O.target===y&&A&&(A.unobserve(t),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var j;(j=A)==null||j.observe(t)})),n()}),y&&!p&&A.observe(y),A.observe(t));let x,_=p?Zd(e):null;p&&B();function B(){const R=Zd(e);_&&!x5(_,R)&&n(),_=R,x=requestAnimationFrame(B)}return n(),()=>{var R;b.forEach(O=>{l&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),S?.(),(R=A)==null||R.disconnect(),A=null,p&&cancelAnimationFrame(x)}}const Woe=Soe,Joe=Coe,ese=boe,tse=Aoe,nse=Eoe,T5=yoe,rse=woe,ase=(e,t,n)=>{const r=new Map,l={platform:Xoe,...n},s={...l.platform,_c:r};return goe(e,t,{...l,platform:s})};var ise=typeof document<"u",lse=function(){},BS=ise?k.useLayoutEffect:lse;function _S(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_S(e[r],t[r]))return!1;return!0}if(l=Object.keys(e),n=l.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,l[r]))return!1;for(r=n;r--!==0;){const s=l[r];if(!(s==="_owner"&&e.$$typeof)&&!_S(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function B5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _5(e,t){const n=B5(e);return Math.round(t*n)/n}function G_(e){const t=ye.useRef(e);return BS(()=>{t.current=e}),t}function use(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:s,floating:f}={},transform:h=!0,whileElementsMounted:p,open:y}=e,[b,S]=ye.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[C,A]=ye.useState(r);_S(C,r)||A(r);const[x,_]=ye.useState(null),[B,R]=ye.useState(null),O=ye.useCallback(J=>{J!==Y.current&&(Y.current=J,_(J))},[]),j=ye.useCallback(J=>{J!==G.current&&(G.current=J,R(J))},[]),P=s||x,L=f||B,Y=ye.useRef(null),G=ye.useRef(null),z=ye.useRef(b),$=p!=null,Q=G_(p),I=G_(l),H=G_(y),K=ye.useCallback(()=>{if(!Y.current||!G.current)return;const J={placement:t,strategy:n,middleware:C};I.current&&(J.platform=I.current),ase(Y.current,G.current,J).then(he=>{const ie={...he,isPositioned:H.current!==!1};W.current&&!_S(z.current,ie)&&(z.current=ie,EN.flushSync(()=>{S(ie)}))})},[C,t,n,I,H]);BS(()=>{y===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,S(J=>({...J,isPositioned:!1})))},[y]);const W=ye.useRef(!1);BS(()=>(W.current=!0,()=>{W.current=!1}),[]),BS(()=>{if(P&&(Y.current=P),L&&(G.current=L),P&&L){if(Q.current)return Q.current(P,L,K);K()}},[P,L,K,Q,$]);const ne=ye.useMemo(()=>({reference:Y,floating:G,setReference:O,setFloating:j}),[O,j]),U=ye.useMemo(()=>({reference:P,floating:L}),[P,L]),Z=ye.useMemo(()=>{const J={position:n,left:0,top:0};if(!U.floating)return J;const he=_5(U.floating,b.x),ie=_5(U.floating,b.y);return h?{...J,transform:"translate("+he+"px, "+ie+"px)",...B5(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:ie}},[n,h,U.floating,b.x,b.y]);return ye.useMemo(()=>({...b,update:K,refs:ne,elements:U,floatingStyles:Z}),[b,K,ne,U,Z])}const ose=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:l}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?T5({element:r.current,padding:l}).fn(n):{}:r?T5({element:r,padding:l}).fn(n):{}}}},sse=(e,t)=>({...Woe(e),options:[e,t]}),cse=(e,t)=>({...Joe(e),options:[e,t]}),fse=(e,t)=>({...rse(e),options:[e,t]}),dse=(e,t)=>({...ese(e),options:[e,t]}),hse=(e,t)=>({...tse(e),options:[e,t]}),vse=(e,t)=>({...nse(e),options:[e,t]}),pse=(e,t)=>({...ose(e),options:[e,t]});var mse="Arrow",R5=ye.forwardRef((e,t)=>{const{children:n,width:r=10,height:l=5,...s}=e;return Me.jsx(ha.svg,{...s,ref:t,width:r,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Me.jsx("polygon",{points:"0,0 30,0 15,10"})})});R5.displayName=mse;var gse=R5;function yse(e){const[t,n]=ye.useState(void 0);return Jc(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let f,h;if("borderBoxSize"in s){const p=s.borderBoxSize,y=Array.isArray(p)?p[0]:p;f=y.inlineSize,h=y.blockSize}else f=e.offsetWidth,h=e.offsetHeight;n({width:f,height:h})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var I_="Popper",[N5,M5]=zp(I_),[bse,z5]=N5(I_),k5=e=>{const{__scopePopper:t,children:n}=e,[r,l]=ye.useState(null);return Me.jsx(bse,{scope:t,anchor:r,onAnchorChange:l,children:n})};k5.displayName=I_;var P5="PopperAnchor",j5=ye.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...l}=e,s=z5(P5,n),f=ye.useRef(null),h=go(t,f),p=ye.useRef(null);return ye.useEffect(()=>{const y=p.current;p.current=r?.current||f.current,y!==p.current&&s.onAnchorChange(p.current)}),r?null:Me.jsx(ha.div,{...l,ref:h})});j5.displayName=P5;var Y_="PopperContent",[Ese,Dse]=N5(Y_),F5=ye.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:l=0,align:s="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:S="partial",hideWhenDetached:C=!1,updatePositionStrategy:A="optimized",onPlaced:x,..._}=e,B=z5(Y_,n),[R,O]=ye.useState(null),j=go(t,Qe=>O(Qe)),[P,L]=ye.useState(null),Y=yse(P),G=Y?.width??0,z=Y?.height??0,$=r+(s!=="center"?"-"+s:""),Q=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},I=Array.isArray(y)?y:[y],H=I.length>0,K={padding:Q,boundary:I.filter(Cse),altBoundary:H},{refs:W,floatingStyles:ne,placement:U,isPositioned:Z,middlewareData:J}=use({strategy:"fixed",placement:$,whileElementsMounted:(...Qe)=>Qoe(...Qe,{animationFrame:A==="always"}),elements:{reference:B.anchor},middleware:[sse({mainAxis:l+z,alignmentAxis:f}),p&&cse({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?fse():void 0,...K}),p&&dse({...K}),hse({...K,apply:({elements:Qe,rects:ft,availableWidth:ce,availableHeight:le})=>{const{width:ue,height:fe}=ft.reference,Ue=Qe.floating.style;Ue.setProperty("--radix-popper-available-width",`${ce}px`),Ue.setProperty("--radix-popper-available-height",`${le}px`),Ue.setProperty("--radix-popper-anchor-width",`${ue}px`),Ue.setProperty("--radix-popper-anchor-height",`${fe}px`)}}),P&&pse({element:P,padding:h}),wse({arrowWidth:G,arrowHeight:z}),C&&vse({strategy:"referenceHidden",...K})]}),[he,ie]=U5(U),xe=gb(x);Jc(()=>{Z&&xe?.()},[Z,xe]);const Re=J.arrow?.x,me=J.arrow?.y,ke=J.arrow?.centerOffset!==0,[Xe,Ye]=ye.useState();return Jc(()=>{R&&Ye(window.getComputedStyle(R).zIndex)},[R]),Me.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:Z?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[J.transformOrigin?.x,J.transformOrigin?.y].join(" "),...J.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Me.jsx(Ese,{scope:n,placedSide:he,onArrowChange:L,arrowX:Re,arrowY:me,shouldHideArrow:ke,children:Me.jsx(ha.div,{"data-side":he,"data-align":ie,..._,ref:j,style:{..._.style,animation:Z?void 0:"none"}})})})});F5.displayName=Y_;var L5="PopperArrow",Sse={top:"bottom",right:"left",bottom:"top",left:"right"},q5=ye.forwardRef(function(t,n){const{__scopePopper:r,...l}=t,s=Dse(L5,r),f=Sse[s.placedSide];return Me.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:Me.jsx(gse,{...l,ref:n,style:{...l.style,display:"block"}})})});q5.displayName=L5;function Cse(e){return e!==null}var wse=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:l}=t,f=l.arrow?.centerOffset!==0,h=f?0:e.arrowWidth,p=f?0:e.arrowHeight,[y,b]=U5(n),S={start:"0%",center:"50%",end:"100%"}[b],C=(l.arrow?.x??0)+h/2,A=(l.arrow?.y??0)+p/2;let x="",_="";return y==="bottom"?(x=f?S:`${C}px`,_=`${-p}px`):y==="top"?(x=f?S:`${C}px`,_=`${r.floating.height+p}px`):y==="right"?(x=`${-p}px`,_=f?S:`${A}px`):y==="left"&&(x=`${r.floating.width+p}px`,_=f?S:`${A}px`),{data:{x,y:_}}}});function U5(e){const[t,n="center"]=e.split("-");return[t,n]}var Ase=k5,Ose=j5,xse=F5,Tse=q5,Bse="Portal",H5=ye.forwardRef((e,t)=>{const{container:n,...r}=e,[l,s]=ye.useState(!1);Jc(()=>s(!0),[]);const f=n||l&&globalThis?.document?.body;return f?hs.createPortal(Me.jsx(ha.div,{...r,ref:t}),f):null});H5.displayName=Bse;function _se(e,t){return ye.useReducer((n,r)=>t[n][r]??n,e)}var K_=e=>{const{present:t,children:n}=e,r=Rse(t),l=typeof n=="function"?n({present:r.isPresent}):ye.Children.only(n),s=go(r.ref,Nse(l));return typeof n=="function"||r.isPresent?ye.cloneElement(l,{ref:s}):null};K_.displayName="Presence";function Rse(e){const[t,n]=ye.useState(),r=ye.useRef(null),l=ye.useRef(e),s=ye.useRef("none"),f=e?"mounted":"unmounted",[h,p]=_se(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ye.useEffect(()=>{const y=RS(r.current);s.current=h==="mounted"?y:"none"},[h]),Jc(()=>{const y=r.current,b=l.current;if(b!==e){const C=s.current,A=RS(y);e?p("MOUNT"):A==="none"||y?.display==="none"?p("UNMOUNT"):p(b&&C!==A?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,p]),Jc(()=>{if(t){let y;const b=t.ownerDocument.defaultView??window,S=A=>{const _=RS(r.current).includes(CSS.escape(A.animationName));if(A.target===t&&_&&(p("ANIMATION_END"),!l.current)){const B=t.style.animationFillMode;t.style.animationFillMode="forwards",y=b.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=B)})}},C=A=>{A.target===t&&(s.current=RS(r.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",S),t.addEventListener("animationend",S),()=>{b.clearTimeout(y),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",S),t.removeEventListener("animationend",S)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:ye.useCallback(y=>{r.current=y?getComputedStyle(y):null,n(y)},[])}}function RS(e){return e?.animationName||"none"}function Nse(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mse=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),zse="VisuallyHidden",$5=ye.forwardRef((e,t)=>Me.jsx(ha.span,{...e,ref:t,style:{...Mse,...e.style}}));$5.displayName=zse;var kse=$5,[NS,zfe]=zp("Tooltip",[M5]),MS=M5(),V5="TooltipProvider",Pse=700,X_="tooltip.open",[jse,Z_]=NS(V5),G5=e=>{const{__scopeTooltip:t,delayDuration:n=Pse,skipDelayDuration:r=300,disableHoverableContent:l=!1,children:s}=e,f=ye.useRef(!0),h=ye.useRef(!1),p=ye.useRef(0);return ye.useEffect(()=>{const y=p.current;return()=>window.clearTimeout(y)},[]),Me.jsx(jse,{scope:t,isOpenDelayedRef:f,delayDuration:n,onOpen:ye.useCallback(()=>{window.clearTimeout(p.current),f.current=!1},[]),onClose:ye.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>f.current=!0,r)},[r]),isPointerInTransitRef:h,onPointerInTransitChange:ye.useCallback(y=>{h.current=y},[]),disableHoverableContent:l,children:s})};G5.displayName=V5;var Cb="Tooltip",[Fse,wb]=NS(Cb),I5=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:l,onOpenChange:s,disableHoverableContent:f,delayDuration:h}=e,p=Z_(Cb,e.__scopeTooltip),y=MS(t),[b,S]=ye.useState(null),C=Nq(),A=ye.useRef(0),x=f??p.disableHoverableContent,_=h??p.delayDuration,B=ye.useRef(!1),[R,O]=yb({prop:r,defaultProp:l??!1,onChange:G=>{G?(p.onOpen(),document.dispatchEvent(new CustomEvent(X_))):p.onClose(),s?.(G)},caller:Cb}),j=ye.useMemo(()=>R?B.current?"delayed-open":"instant-open":"closed",[R]),P=ye.useCallback(()=>{window.clearTimeout(A.current),A.current=0,B.current=!1,O(!0)},[O]),L=ye.useCallback(()=>{window.clearTimeout(A.current),A.current=0,O(!1)},[O]),Y=ye.useCallback(()=>{window.clearTimeout(A.current),A.current=window.setTimeout(()=>{B.current=!0,O(!0),A.current=0},_)},[_,O]);return ye.useEffect(()=>()=>{A.current&&(window.clearTimeout(A.current),A.current=0)},[]),Me.jsx(Ase,{...y,children:Me.jsx(Fse,{scope:t,contentId:C,open:R,stateAttribute:j,trigger:b,onTriggerChange:S,onTriggerEnter:ye.useCallback(()=>{p.isOpenDelayedRef.current?Y():P()},[p.isOpenDelayedRef,Y,P]),onTriggerLeave:ye.useCallback(()=>{x?L():(window.clearTimeout(A.current),A.current=0)},[L,x]),onOpen:P,onClose:L,disableHoverableContent:x,children:n})})};I5.displayName=Cb;var Q_="TooltipTrigger",Y5=ye.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,l=wb(Q_,n),s=Z_(Q_,n),f=MS(n),h=ye.useRef(null),p=go(t,h,l.onTriggerChange),y=ye.useRef(!1),b=ye.useRef(!1),S=ye.useCallback(()=>y.current=!1,[]);return ye.useEffect(()=>()=>document.removeEventListener("pointerup",S),[S]),Me.jsx(Ose,{asChild:!0,...f,children:Me.jsx(ha.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...r,ref:p,onPointerMove:da(e.onPointerMove,C=>{C.pointerType!=="touch"&&!b.current&&!s.isPointerInTransitRef.current&&(l.onTriggerEnter(),b.current=!0)}),onPointerLeave:da(e.onPointerLeave,()=>{l.onTriggerLeave(),b.current=!1}),onPointerDown:da(e.onPointerDown,()=>{l.open&&l.onClose(),y.current=!0,document.addEventListener("pointerup",S,{once:!0})}),onFocus:da(e.onFocus,()=>{y.current||l.onOpen()}),onBlur:da(e.onBlur,l.onClose),onClick:da(e.onClick,l.onClose)})})});Y5.displayName=Q_;var W_="TooltipPortal",[Lse,qse]=NS(W_,{forceMount:void 0}),K5=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:l}=e,s=wb(W_,t);return Me.jsx(Lse,{scope:t,forceMount:n,children:Me.jsx(K_,{present:n||s.open,children:Me.jsx(H5,{asChild:!0,container:l,children:r})})})};K5.displayName=W_;var Lp="TooltipContent",X5=ye.forwardRef((e,t)=>{const n=qse(Lp,e.__scopeTooltip),{forceMount:r=n.forceMount,side:l="top",...s}=e,f=wb(Lp,e.__scopeTooltip);return Me.jsx(K_,{present:r||f.open,children:f.disableHoverableContent?Me.jsx(Z5,{side:l,...s,ref:t}):Me.jsx(Use,{side:l,...s,ref:t})})}),Use=ye.forwardRef((e,t)=>{const n=wb(Lp,e.__scopeTooltip),r=Z_(Lp,e.__scopeTooltip),l=ye.useRef(null),s=go(t,l),[f,h]=ye.useState(null),{trigger:p,onClose:y}=n,b=l.current,{onPointerInTransitChange:S}=r,C=ye.useCallback(()=>{h(null),S(!1)},[S]),A=ye.useCallback((x,_)=>{const B=x.currentTarget,R={x:x.clientX,y:x.clientY},O=Ise(R,B.getBoundingClientRect()),j=Yse(R,O),P=Kse(_.getBoundingClientRect()),L=Zse([...j,...P]);h(L),S(!0)},[S]);return ye.useEffect(()=>()=>C(),[C]),ye.useEffect(()=>{if(p&&b){const x=B=>A(B,b),_=B=>A(B,p);return p.addEventListener("pointerleave",x),b.addEventListener("pointerleave",_),()=>{p.removeEventListener("pointerleave",x),b.removeEventListener("pointerleave",_)}}},[p,b,A,C]),ye.useEffect(()=>{if(f){const x=_=>{const B=_.target,R={x:_.clientX,y:_.clientY},O=p?.contains(B)||b?.contains(B),j=!Xse(R,f);O?C():j&&(C(),y())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[p,b,f,y,C]),Me.jsx(Z5,{...e,ref:s})}),[Hse,$se]=NS(Cb,{isInside:!1}),Vse=sJ("TooltipContent"),Z5=ye.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:f,...h}=e,p=wb(Lp,n),y=MS(n),{onClose:b}=p;return ye.useEffect(()=>(document.addEventListener(X_,b),()=>document.removeEventListener(X_,b)),[b]),ye.useEffect(()=>{if(p.trigger){const S=C=>{C.target?.contains(p.trigger)&&b()};return window.addEventListener("scroll",S,{capture:!0}),()=>window.removeEventListener("scroll",S,{capture:!0})}},[p.trigger,b]),Me.jsx(l5,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:S=>S.preventDefault(),onDismiss:b,children:Me.jsxs(xse,{"data-state":p.stateAttribute,...y,...h,ref:t,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Me.jsx(Vse,{children:r}),Me.jsx(Hse,{scope:n,isInside:!0,children:Me.jsx(kse,{id:p.contentId,role:"tooltip",children:l||r})})]})})});X5.displayName=Lp;var Q5="TooltipArrow",Gse=ye.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,l=MS(n);return $se(Q5,n).isInside?null:Me.jsx(Tse,{...l,...r,ref:t})});Gse.displayName=Q5;function Ise(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),l=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,l,s)){case s:return"left";case l:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Yse(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Kse(e){const{top:t,right:n,bottom:r,left:l}=e;return[{x:l,y:t},{x:n,y:t},{x:n,y:r},{x:l,y:r}]}function Xse(e,t){const{x:n,y:r}=e;let l=!1;for(let s=0,f=t.length-1;s<t.length;f=s++){const h=t[s],p=t[f],y=h.x,b=h.y,S=p.x,C=p.y;b>r!=C>r&&n<(S-y)*(r-b)/(C-b)+y&&(l=!l)}return l}function Zse(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Qse(t)}function Qse(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const l=e[r];for(;t.length>=2;){const s=t[t.length-1],f=t[t.length-2];if((s.x-f.x)*(l.y-f.y)>=(s.y-f.y)*(l.x-f.x))t.pop();else break}t.push(l)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const l=e[r];for(;n.length>=2;){const s=n[n.length-1],f=n[n.length-2];if((s.x-f.x)*(l.y-f.y)>=(s.y-f.y)*(l.x-f.x))n.pop();else break}n.push(l)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Wse=G5,Jse=I5,ece=Y5,tce=K5,nce=X5;/**
337
+ * @license lucide-react v0.542.0 - ISC
338
+ *
339
+ * This source code is licensed under the ISC license.
340
+ * See the LICENSE file in the root directory of this source tree.
341
+ */const rce=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ace=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),W5=e=>{const t=ace(e);return t.charAt(0).toUpperCase()+t.slice(1)},J5=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),ice=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
342
+ * @license lucide-react v0.542.0 - ISC
343
+ *
344
+ * This source code is licensed under the ISC license.
345
+ * See the LICENSE file in the root directory of this source tree.
346
+ */var lce={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
347
+ * @license lucide-react v0.542.0 - ISC
348
+ *
349
+ * This source code is licensed under the ISC license.
350
+ * See the LICENSE file in the root directory of this source tree.
351
+ */const uce=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:f,...h},p)=>k.createElement("svg",{ref:p,...lce,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:J5("lucide",l),...!s&&!ice(h)&&{"aria-hidden":"true"},...h},[...f.map(([y,b])=>k.createElement(y,b)),...Array.isArray(s)?s:[s]]));/**
352
+ * @license lucide-react v0.542.0 - ISC
353
+ *
354
+ * This source code is licensed under the ISC license.
355
+ * See the LICENSE file in the root directory of this source tree.
356
+ */const oce=(e,t)=>{const n=k.forwardRef(({className:r,...l},s)=>k.createElement(uce,{ref:s,iconNode:t,className:J5(`lucide-${rce(W5(e))}`,`lucide-${e}`,r),...l}));return n.displayName=W5(e),n};/**
357
+ * @license lucide-react v0.542.0 - ISC
358
+ *
359
+ * This source code is licensed under the ISC license.
360
+ * See the LICENSE file in the root directory of this source tree.
361
+ */const sce=oce("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function cce({delayDuration:e=0,...t}){return Me.jsx(Wse,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function fce({...e}){return Me.jsx(cce,{children:Me.jsx(Jse,{"data-slot":"tooltip",...e})})}function dce({...e}){return Me.jsx(ece,{"data-slot":"tooltip-trigger",...e})}function hce({className:e,...t}){return Me.jsx(Xue,{className:za("relative flex items-center select-none",e),...t})}function vce({className:e,...t}){return Me.jsx(n5,{className:za("flex items-center",e),...t})}const J_=_p("inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-checked:bg-accent aria-checked:text-accent-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"h-9 min-w-9 px-2",lg:"h-10 min-w-10 px-2.5",sm:"h-8 min-w-8 px-1.5"},variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"}}});_p(za("inline-flex items-center justify-center rounded-r-md text-sm font-medium text-foreground transition-colors disabled:pointer-events-none disabled:opacity-50"),{defaultVariants:{size:"sm",variant:"default"},variants:{size:{default:"h-9 w-6",lg:"h-10 w-8",sm:"h-8 w-4"},variant:{default:"bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground",outline:"border border-l-0 border-input bg-transparent hover:bg-accent hover:text-accent-foreground"}}});const qp=mce(function({children:t,className:n,isDropdown:r,pressed:l,size:s="sm",variant:f,...h}){return typeof l=="boolean"?Me.jsx(vce,{disabled:h.disabled,value:"single",type:"single",children:Me.jsx(pce,{className:za(J_({size:s,variant:f}),r&&"justify-between gap-1 pr-1",n),value:l?"single":"",...h,children:r?Me.jsxs(Me.Fragment,{children:[Me.jsx("div",{className:"flex flex-1 items-center gap-2 whitespace-nowrap",children:t}),Me.jsx("div",{children:Me.jsx(sce,{className:"size-3.5 text-muted-foreground","data-icon":!0})})]}):t})}):Me.jsx(Zue,{className:za(J_({size:s,variant:f}),r&&"pr-1",n),...h,children:t})});function pce({className:e,size:t="sm",variant:n,...r}){return Me.jsx(Que,{className:za(J_({size:t,variant:n}),e),...r})}function mce(e){return function({tooltip:n,tooltipContentProps:r,tooltipProps:l,tooltipTriggerProps:s,...f}){const[h,p]=ye.useState(!1);ye.useEffect(()=>{p(!0)},[]);const y=Me.jsx(e,{...f});return n&&h?Me.jsxs(fce,{...l,children:[Me.jsx(dce,{asChild:!0,...s,children:y}),Me.jsx(gce,{...r,children:n})]}):y}}function gce({children:e,className:t,sideOffset:n=4,...r}){return Me.jsx(tce,{children:Me.jsx(nce,{className:za("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground",t),"data-slot":"tooltip-content",sideOffset:n,...r,children:e})})}function yce(e){return Me.jsx(hce,{...e,className:za("sticky top-0 left-0 z-50 scrollbar-hide w-full justify-between overflow-x-auto rounded-t-lg border-b border-b-border bg-background/95 p-1 backdrop-blur-sm supports-backdrop-blur:bg-background/60",e.className)})}function eR({clear:e,nodeType:t,...n}){const r=Bie({clear:e,nodeType:t}),{props:l}=_ie(r);return Me.jsx(qp,{...n,...l})}const bce=_p(za("group/editor","relative w-full cursor-text overflow-x-hidden break-words whitespace-pre-wrap select-text","rounded-md ring-offset-background focus-visible:outline-none","placeholder:text-muted-foreground/80 **:data-slate-placeholder:top-[auto_!important] **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!","[&_strong]:font-bold"),{defaultVariants:{variant:"none"},variants:{disabled:{true:"cursor-not-allowed opacity-50"},focused:{true:"ring-2 ring-ring ring-offset-2"},variant:{ai:"w-full px-0 text-base md:text-sm",aiChat:"max-h-[min(70vh,320px)] w-full max-w-[700px] overflow-y-auto px-5 py-3 text-base md:text-sm",default:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",demo:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",fullWidth:"size-full px-16 pt-4 pb-72 text-base sm:px-24",none:"",select:"px-3 py-2 text-base data-readonly:w-fit"}}});function Ece({className:e,variant:t,...n}){return Me.jsx(Zre,{className:za(bce({variant:t}),e),...n})}const e9=[{children:[{text:"Title"}],type:"h3"},{children:[{text:"This is a quote."}],type:"blockquote"},{type:"p",children:[{text:"Hello! Try out the "},{text:"bold",bold:!0},{text:", "},{text:"italic",italic:!0},{text:", and "},{text:"underline",underline:!0},{text:" formatting."}]}];function Dce(){const e=Ere({plugins:[dq,hq,vq,hle.withComponent(sue),vle.withComponent(cue),ple.withComponent(fue),WL.withComponent(uue)],value:()=>{const t=localStorage.getItem("installation-react-demo");return t?JSON.parse(t):e9}});return Me.jsx("div",{className:"m-5 debug",children:Me.jsxs(mre,{editor:e,onChange:({value:t})=>{console.log("## on change: ",t),localStorage.setItem("installation-react-demo",JSON.stringify(t))},children:[Me.jsxs(yce,{className:"justify-start rounded-t-lg",children:[Me.jsx(qp,{onClick:()=>e.tf.h1.toggle(),children:"H1"}),Me.jsx(qp,{onClick:()=>e.tf.h2.toggle(),children:"H2"}),Me.jsx(qp,{onClick:()=>e.tf.h3.toggle(),children:"H3"}),Me.jsx(qp,{onClick:()=>e.tf.blockquote.toggle(),children:"Quote"}),Me.jsx(eR,{nodeType:"bold",tooltip:"Bold (⌘+B)",children:"B"}),Me.jsx(eR,{nodeType:"italic",tooltip:"Italic (⌘+I)",children:"I"}),Me.jsx(eR,{nodeType:"underline",tooltip:"Underline (⌘+U)",children:"U"}),Me.jsx("div",{className:"flex-1"}),Me.jsx(qp,{className:"px-2",onClick:()=>e.tf.setValue(e9),children:"Reset"})]}),Me.jsxs(iue,{children:[Me.jsx(Rq,{placeholder:"Type your amazing content here..."}),Me.jsx(Ece,{editor:e})]})]})})}uH.createRoot(document.getElementById("root")).render(Me.jsx(k.StrictMode,{children:Me.jsx(Dce,{})}))}));