@nebula.js/sn-text 1.6.0 → 1.6.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.
package/core/esm/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.6.0
2
+ * @nebula.js/sn-text v1.6.1
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const p={version:"1.6.0",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=N(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=N(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function z(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=z,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=z,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,L,R={exports:{}},M={};function O(){return T||(T=1,R.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function N(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(N)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=N,w=function(){R.postMessage(null)}}else w=function(){g(N,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),R.exports}
7
+ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}const p={version:"1.6.1",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=N(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=N(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function z(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=z,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=z,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,N,L,R={exports:{}},M={};function O(){return T||(T=1,R.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function N(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(N)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=N,w=function(){R.postMessage(null)}}else w=function(){g(N,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),R.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -13,7 +13,7 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */function P(){if(A)return _;A=1;var e=C(),t=O();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new f(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),z=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var D,j=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function $(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ae(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,ke=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Te(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Ne(){}var Le=!1;function Re(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ae(e,t,n)}finally{Le=!1,(null!==ke||null!==Se)&&(Ne(),Te())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Oe=!1}function ze(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,De=null,je=!1,Fe=null,Be={onError:function(e){Ie=!0,De=e}};function $e(e,t,n,r,o,i,a,s,l){Ie=!1,De=null,ze.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ue(i),e;if(a===o)return Ue(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ve=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Qe=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Nt=null,Lt=null,Rt=new Map,Mt=new Map,Ot=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function It(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Et=!1,null!==At&&jt(At)&&(At=null),null!==Nt&&jt(Nt)&&(Nt=null),null!==Lt&&jt(Lt)&&(Lt=null),Rt.forEach(Ft),Mt.forEach(Ft)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Nt&&$t(Nt,e),null!==Lt&&$t(Lt,e),Rt.forEach(t),Mt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Dt(n),null===n.blockedOn&&Ot.shift()}var Wt=v.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Vt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Vt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Vt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Yt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=It(At,e,t,n,r,o),!0;case"dragenter":return Nt=It(Nt,e,t,n,r,o),!0;case"mouseover":return Lt=It(Lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,It(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,It(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&_t(i),null===(i=qt(e,t,n,r))&&Ur(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function qt(e,t,n,r){if(Yt=null,null!==(e=bo(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(j({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return Sn}var En=j({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(En),An=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(Rn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var In=s&&"TextEvent"in window&&!zn,Dn=s&&(!Pn||zn&&8<zn&&11>=zn),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Vn=null;function Yn(e){jr(e,0)}function qn(e){if(Y(_o(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Xn;if(s){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Vn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Vn)){var t=[];Kn(t,Vn,e,_e(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Vn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}s&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Cr("animationend"),Tr=Cr("animationiteration"),Ar=Cr("animationstart"),Nr=Cr("transitionend"),Lr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Lr.set(e,t),i(t,[e])}for(var Or=0;Or<Rr.length;Or++){var Pr=Rr[Or];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Tr,"onAnimationIteration"),Mr(Ar,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Nr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Dr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(n(198));var c=De;Ie=!1,De=null,je||(je=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,r.forEach(function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Vt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=_e(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case Tr:case Ar:l=vn;break;case Nr:l=Ln;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push(Kr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,m=f;m;m=Vr(m))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Un(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=r?_o(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(v=Gr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$n(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}jr(a,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Me(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Me(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Me(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Jr,"")}function Xr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var ko=[],So=-1;function Co(e){return{current:e}}function Eo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function To(e,t){So++,ko[So]=e.current,e.current=t}var Ao={},No=Co(Ao),Lo=Co(!1),Ro=Ao;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=(e=e.childContextTypes)}function Po(){Eo(Lo),Eo(No)}function zo(e,t,r){if(No.current!==Ao)throw Error(n(168));To(No,t),To(Lo,r)}function Io(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,U(e)||"Unknown",i));return j({},r,o)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Ro=No.current,To(No,e),To(Lo,Lo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Io(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,Eo(Lo),Eo(No),To(No,e)):Eo(Lo),To(Lo,r)}var Fo=null,Bo=!1,$o=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!$o&&null!==Fo){$o=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ve(Ze,Wo),t}finally{bt=t,$o=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Jo=null,Qo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Qo,Yo[qo++]=Xo,Yo[qo++]=Jo,Jo=e;var r=Qo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Qo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Uo[--Ko],Uo[Ko]=null,Vo=Uo[--Ko],Uo[Ko]=null;for(;e===Jo;)Jo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Qo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ru(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Qo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ru(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(n(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&bi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case b:return(t=ju(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||I(t))return(t=zu(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ii&&Zo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,m),u}function g(i,s,l,u){var c=I(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ii&&Zo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ii&&Zo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ii&&Zo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&bi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=vi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=zu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Pu(a.type,a.key,a.props,null,n.mode,l)).ref=vi(n,o,a),l.return=n,n=l)}return s(n);case b:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=ju(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return m(n,o,a,l);if(I(a))return g(n,o,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Du(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var _i=xi(!0),wi=xi(!1),ki=Co(null),Si=null,Ci=null,Ei=null;function Ti(){Ei=Ci=Si=null}function Ai(e){var t=ki.current;Eo(ki),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Li(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(n(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Mi=null;function Oi(e){null===Mi?Mi=[e]:Mi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,zi(e,r)}function zi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zi(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,zi(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Ii=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ki={},Gi=Co(Ki),Vi=Co(Ki),Yi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Ji(e,t){switch(To(Yi,t),To(Vi,e),To(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Gi),To(Gi,t)}function Qi(){Eo(Gi),Eo(Vi),Eo(Yi)}function Xi(e){qi(Yi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Vi,e),To(Gi,n))}function Zi(e){Vi.current===e&&(Eo(Gi),Eo(Vi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,sa.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Il|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Sa(e,t){var r=sa,o=ba(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,Ia(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ra(9,Ea.bind(null,r,o,i,t),void 0,null),null===Nl)throw Error(n(349));30&aa||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Na(e)}function Ta(e,t,n){return n(function(){Aa(t)&&Na(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=zi(e,1);null!==t&&nu(t,e,1,-1)}function La(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Oa(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}sa.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function za(e,t){return Oa(8390656,8,e,t)}function Ia(e,t){return Pa(2048,8,e,t)}function Da(e,t){return Pa(4,2,e,t)}function ja(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function $a(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ka(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Va(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ja(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Ya(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ja(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ja(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Ri,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ri,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Va.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:La,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Ka.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Nl)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,za(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Nl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:_a,useRef:Ma,useState:function(){return _a(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ma,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=Oo(t)?Ro:No.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=Oo(t)?Ro:No.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var ys=v.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?wi(t,null,n,r):_i(t,e.child,n,r)}function _s(e,t,n,r,o){n=n.render;var i=t.ref;return Li(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Ml),Ml|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Ml),Ml|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Ml),Ml|=r;return xs(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Oo(n)?Ro:No.current;return i=Mo(t,i),Li(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ts(e,t,n,r,o){if(Oo(n)){var i=!0;Do(t)}else i=!1;if(Li(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Mo(t,u=Oo(n)?Ro:No.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Ii=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Lo.current||Ii?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ii||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Mo(t,l=Oo(n)?Ro:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Ii=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Lo.current||Ii?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Ii||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,i,o)}function As(e,t,n,r,o,i){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&jo(t,n,!1),Us(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Ji(e,t.containerInfo)}function Ls(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Rs,Ms,Os,Ps,zs={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Iu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=zu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(r),t.memoizedState=zs,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=cs(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Iu({mode:"visible",children:o.children},i,0,null),(a=zu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&_i(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=zs,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=cs(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(o=Nl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,zi(e,i),nu(o,e,i,-1))}return mu(),Fs(e,t,s,o=cs(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Yo[qo++]=Qo,Yo[qo++]=Xo,Yo[qo++]=Jo,Qo=e.id,Xo=e.overflow,Jo=t),t=js(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Ou(o,s):(s=zu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=zs,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vs(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Oo(t.type)&&Po(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Eo(Lo),Eo(No),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ms(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Yi.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gs(t),null}if(e=qi(Gi.current),fi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[po]=t,i[ho]=s,e=!!(1&t.mode),r){case"dialog":Fr("cancel",i),Fr("close",i);break;case"iframe":case"object":case"embed":Fr("load",i);break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":Q(i,s),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",i);break;case"textarea":ie(i,s),Fr("invalid",i)}for(var l in ye(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",i)}switch(r){case"input":V(i),ee(i,s,!0);break;case"textarea":V(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Zr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=i,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),a=i;break;case"iframe":case"object":case"embed":Fr("load",e),a=i;break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],e);a=i;break;case"source":Fr("error",e),a=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=i;break;case"details":Fr("toggle",e),a=i;break;case"input":Q(e,i),a=J(e,i),Fr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fr("invalid",e)}for(s in ye(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":V(e),ee(e,i,!1);break;case"textarea":V(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+K(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Yi.current),qi(Gi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Gs(t),null;case 13:if(Eo(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,s=!1;else if(s=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),s=!1}else null!==ai&&(au(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Pl&&(Pl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Ms(e,t),null===e&&Hr(t.stateNode.containerInfo),Gs(t),null;case 10:return Ai(t.type._context),Gs(t),null;case 19:if(Eo(ea),null===(s=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ks(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ks(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Gs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ea.current,To(ea,i?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ys(e,t){switch(ni(t),t.tag){case 1:return Oo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Lo),Eo(No),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Gi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),r=oe(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Js||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Js&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fl(e,t,n),Js=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Su(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(l){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Qe())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Js=(c=Js)||d,ml(t,e),Js=c):ml(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(o,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Xs=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&o&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Js;s=qs;var u=Js;if(qs=a,(Js=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?wl(o):null!==l?(l.return=a,Xs=l):wl(o);for(;null!==i;)Xs=i,bl(i),i=i.sibling;Xs=o,qs=s,Js=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):xl(e)}}function xl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Js)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(n(163))}Js||512&t.flags&&ol(t)}catch(e){Su(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function _l(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Su(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,Cl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,Tl=v.ReactCurrentBatchConfig,Al=0,Nl=null,Ll=null,Rl=0,Ml=0,Ol=Co(0),Pl=0,zl=null,Il=0,Dl=0,jl=0,Fl=null,Bl=null,$l=0,Hl=1/0,Wl=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Jl=0,Ql=null,Xl=-1,Zl=0;function eu(){return 6&Al?Qe():-1!==Xl?Xl:Xl=Qe()}function tu(e){return 1&e.mode?2&Al&&0!==Rl?Rl&-Rl:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nu(e,t,r,o){if(50<Jl)throw Jl=0,Ql=null,Error(n(185));vt(e,r,o),2&Al&&e===Nl||(e===Nl&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Rl)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Hl=Qe()+500,Bo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Rl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),ao(function(){!(6&Al)&&Wo()}),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&Al)throw Error(n(327));var r=e.callbackNode;if(wu()&&e.callbackNode!==r)return null;var o=ft(e,e===Nl?Rl:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=gu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Nl===e&&Rl===t||(Wl=null,Hl=Qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Ll?t=0:(Nl=null,Rl=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,Wl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=$l+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),t);break}_u(e,Bl,Wl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),o);break}_u(e,Bl,Wl);break;default:throw Error(n(329))}}}return ru(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~jl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(n(327));wu();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=zl,fu(e,0),su(e,t),ru(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Qe()+500,Bo&&Wo())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Al=t))&&Wo()}}function du(){Ml=Ol.current,Eo(Ol)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Qi(),Eo(Lo),Eo(No),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Nl=e,Ll=e=Ou(e.current,null),Rl=Ml=t,Pl=0,zl=null,jl=Dl=Il=0,Bl=Fl=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(Ti(),oa.current=Xa,ca){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===r||null===r.return){Pl=1,zl=t,Ll=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Rl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function mu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Nl||!(268435455&Il)&&!(268435455&Dl)||su(Nl,Rl)}function gu(e,t){var r=Al;Al|=2;var o=hu();for(Nl===e&&Rl===t||(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Ll)throw Error(n(261));return Nl=null,Rl=0,Pl}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!qe();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xu(e):Ll=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Pl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Ml)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=bt,i=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,r,o){do{wu()}while(null!==Yl);if(6&Al)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Ll=Nl=null,Rl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Nu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,yl(r),Je(),Al=l,bt=s,Tl.transition=a}else e.current=r;if(Vl&&(Vl=!1,Yl=e,ql=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ru(e,Qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Kl,Kl=null,e;!!(1&ql)&&0!==e.tag&&wu(),a=e.pendingLanes,1&a?e===Ql?Jl++:(Jl=0,Ql=e):Jl=0,Wo()}(e,t,r,o)}finally{Tl.transition=i,bt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=null,ql=0,6&Al)throw Error(n(331));var i=Al;for(Al|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(il(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Xs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Xs=_;break e}Xs=l.return}}if(Al=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{bt=r,Tl.transition=t}}return!1}function ku(e,t,n){e=Bi(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Bi(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Rl&n)===n&&(4===Pl||3===Pl&&(130023424&Rl)===Rl&&500>Qe()-$l?fu(e,0):jl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=zi(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Eu(e,r)}function Nu(e,t){return Ve(e,t)}function Lu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ru(e,t,n,r){return new Lu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Mu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return zu(r.children,i,a,t);case w:s=8,i|=8;break;case k:return(e=Ru(12,r,t,2|i)).elementType=k,e.lanes=a,e;case N:return(e=Ru(13,r,t,i)).elementType=N,e.lanes=a,e;case L:return(e=Ru(19,r,t,i)).elementType=L,e.lanes=a,e;case P:return Iu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case T:s=11;break e;case R:s=14;break e;case M:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ru(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function zu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Ru(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ru(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function $u(e){if(!e)return Ao;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Oo(r))return Io(e,r,t)}return t}function Hu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=$u(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),$i(e,o,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lo.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(To(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=Mo(t,No.current);Li(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(o)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=As(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xs(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Ts(null,t,o,e,r);break e;case 11:t=_s(null,t,o,e,r);break e;case 14:t=ws(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ts(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Ns(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ls(e,t,o,r,i=us(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Us(e,t,r);break e}xs(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_i(t,null,o,r):xs(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,_s(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,To(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Lo.current){t=Us(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Fi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ni(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ni(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Li(t,r),o=o(i=Ri(i)),t.flags|=1,xs(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),ws(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Li(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Hs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Uu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(a);i.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu(function(){Wu(t,l,n,r)}),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Wu(null,e,null,null)}),t[mo]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Dt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Al)&&(Hl=Qe()+500,Wo()))}break;case 13:cu(function(){var t=zi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Gu(e,1)}},wt=function(e){if(13===e.tag){var t=zi(e,134217728);if(null!==t)nu(t,e,134217728,eu());Gu(e,134217728)}},kt=function(e){if(13===e.tag){var t=tu(e),n=zi(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));Y(o),Z(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ae=uu,Ne=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(e){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,_.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_.createRoot=function(e,t){if(!Ju(e))throw Error(n(299));var r=!1,o="",i=Vu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},_.flushSync=function(e){return cu(e)},_.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!0,r)},_.hydrateRoot=function(e,t,r){if(!Ju(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Vu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Hr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},_.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!1,r)},_.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},_.unstable_batchedUpdates=uu,_.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function z(){if(N)return x.exports;return N=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),x.exports=P(),x.exports}var I=function(){if(L)return b;L=1;var e=z();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}();var D=C(),j=m(D),F=f({__proto__:null,default:j},[D]);const B=D.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,printingStatus:null,showMediaLibrary:void 0});function $(e){throw new Error(e)}const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,W=H&&"documentMode"in document?document.documentMode:null,U=H&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),K=H&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),G=!(!H||!("InputEvent"in window)||W)&&"getTargetRanges"in new window.InputEvent("input"),V=H&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Y=H&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,q=H&&/Android/.test(navigator.userAgent),J=H&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Q=H&&q&&J,X=H&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&U&&!J,Z=0,ee=1,te=2,ne=1,re=2,oe=3,ie=4,ae=5,se=6,le=V||Y||X?" ":"​",ue="\n\n",ce=K?" ":le,de={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},fe={directionless:1,unmergeable:2},pe={center:2,end:6,justify:4,left:1,right:3,start:5},he={[re]:"center",[se]:"end",[ie]:"justify",[ne]:"left",[oe]:"right",[ae]:"start"},me={normal:0,segmented:2,token:1},ge={[Z]:"normal",[te]:"segmented",[ee]:"token"},ve="$config";function ye(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(qo(a)&&ye(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let be=!1,xe=0;function _e(e){xe=e.timeStamp}function we(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==Hi(e,n)}function ke(e,t,n){const r=Na(wa(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&ta(t,a,o,i,!1)}function Se(e,t,n){if(Wr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Li(t)&&n.isAttached()}function Ce(e,t,n,r){for(let o=e;o&&!Ua(o);o=va(o)){const e=Hi(o,t);if(void 0!==e){const t=Bi(e,n);if(t)return Xo(t)||!Ra(o)?void 0:[o,t]}else if(o===r)return[r,Vi(n)]}}function Ee(e,t,n){be=!0;const r=performance.now()-xe>100;try{Ko(e,()=>{const o=so()||function(e){return e.getEditorState().read(()=>{const e=so();return null!==e?e.clone():null})}(e),i=new Map,a=e.getRootElement(),s=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Ce(p,e,s,a);if(!h)continue;const[m,g]=h;if("characterData"===f)r&&Or(g)&&Li(p)&&Se(o,p,g)&&ke(p,g,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=$i(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!we(r,i,e)){if(K){const e=(Ra(r)?r.innerText:null)||r.nodeValue;e&&(c+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(we(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(m,g)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||we(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Yi(o),K&&ha(e)&&o.insertRawText(c))})}finally{be=!1}}function Te(e){const t=e._observer;if(null!==t){Ee(e,t.takeRecords(),t)}}function Ae(e){!function(e){0===xe&&wa(e).addEventListener("textInput",_e,!0)}(e),e._observer=new MutationObserver((t,n)=>{Ee(e,t,n)})}function Ne(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ya(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Le{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,a=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&a!==o&&$(`NodeState: size != computedSize (${String(o)} != ${String(a)})`);for(const e of r.keys())i.has(e.key)||$(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=a}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Oe(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Le(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Oe(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function Re(e){return e.__state?e.__state.sharedNodeState:bi(Da(),e.getType()).sharedNodeState}function Me(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Re(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&function(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Le(t,Re(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Oe(e){if(e)for(const t in e)return e}function Pe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function ze(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function Ie(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function De(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,a=t.__format,s=t.__style,l=e.__state,u=t.__state;return(null===n||n===i)&&(null===r||r===a)&&(null===o||o===s)&&(null===e.__state||l===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&Pe(n,e,t)||t&&Pe(n,t,e)||e&&ze(n,e,t)||t&&ze(n,t,e))}(l,u))}function je(e,t){const n=e.mergeWithSibling(t),r=Ro()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Fe(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Or(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(De(t,r)){r=je(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Or(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(De(r,n)){r=je(r,n);break}break}n.remove()}}else r.remove()}function Be(e){return $e(e.anchor),$e(e.focus),e}function $e(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),Or(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!qo(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let He,We,Ue,Ke,Ge,Ve,Ye,qe,Je,Qe,Xe="",Ze=null,et=null,tt=!1,nt=!1;function rt(e,t){const n=Ye.get(e);if(null!==t){const n=_t(e);n.parentNode===t&&t.removeChild(n)}if(qe.has(e)||We._keyToDOMMap.delete(e),qo(n)){const e=mt(n,Ye);ot(e,0,e.length-1,null)}void 0!==n&&ca(Qe,Ue,Ke,n,"destroyed")}function ot(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&rt(t,r)}}function it(e,t){e.setProperty("text-align",t)}const at="40px";function st(e,t){const n=He.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(We._rootElement||e).getPropertyValue("--lexical-indent-base-value")||at;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function lt(e,t){const n=e.style;0===t?it(n,""):1===t?it(n,"left"):2===t?it(n,"center"):3===t?it(n,"right"):4===t?it(n,"justify"):5===t?it(n,"start"):6===t&&it(n,"end")}function ut(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ei(e))return null;const n=e.getParentOrThrow();return ei(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ct(e,t){const n=qe.get(e);void 0===n&&$("createNode: node does not exist in nodeMap");const r=n.createDOM(He,We);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,We),Or(n)?r.setAttribute("data-lexical-text","true"):Xo(n)&&r.setAttribute("data-lexical-decorator","true"),qo(n)){const e=n.__indent,t=n.__size;if(ut(r,n),0!==e&&st(r,e),0!==t){const e=t-1;dt(mt(n,qe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&lt(r,o),n.isInline()||pt(null,n,r)}else{const t=n.getTextContent();if(Xo(n)){const t=n.decorate(We,He);null!==t&&vt(e,t),r.contentEditable="false"}Xe+=t}return null!==t&&t.insertChild(r),Object.freeze(n),ca(Qe,Ue,Ke,n,"created"),r}function dt(e,t,n,r,o){const i=Xe;Xe="";let a=n;for(;a<=r;++a){ct(e[a],o);const t=qe.get(e[a]);null!==t&&Or(t)?null===Ze&&(Ze=t.getFormat(),et=t.getStyle()):qo(t)&&a<r&&!t.isInline()&&(Xe+=ue)}o.element.__lexicalTextContent=Xe,Xe=i+Xe}function ft(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return mr(e)?"line-break":Xo(e)&&e.isInline()?"decorator":null}return"empty"}return null}function pt(e,t,n){const r=ft(e,Ye),o=ft(t,qe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function ht(e,t,n){var r;Ze=null,et=null,function(e,t,n){const r=Xe,o=e.__size,i=t.__size;Xe="";const a=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)gt(n,a);else{const e=_t(n),t=ct(r,null);try{a.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}rt(n,null)}const o=qe.get(r);Or(o)&&null===Ze&&(Ze=o.getFormat(),et=o.getStyle())}else{const r=mt(e,Ye),s=mt(t,qe);if(r.length!==o&&$("$reconcileChildren: prevChildren.length !== prevChildrenSize"),s.length!==i&&$("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&dt(s,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;ot(r,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(e,t,n,r,o,i){const a=r-1,s=o-1;let l,u,c=i.getFirstChild(),d=0,f=0;for(;d<=a&&f<=s;){const e=t[d],r=n[f];if(e===r)c=yt(gt(r,i.element)),d++,f++;else{if(void 0===u&&(u=bt(n,f)),void 0===l)l=bt(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=yt(_t(e)),rt(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=ga(We,r);e!==c&&i.withBefore(c).insertChild(e),c=yt(gt(r,i.element)),d++,f++}else ct(r,i.withBefore(c)),f++}const o=qe.get(r);null!==o&&Or(o)?null===Ze&&(Ze=o.getFormat(),et=o.getStyle()):qo(o)&&f<=s&&!o.isInline()&&(Xe+=ue)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:We.getElementByKey(e);dt(n,0,f,s,i.withBefore(t))}else h&&!p&&ot(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=Xe,Xe=r+Xe}(e,t,t.getDOMSlot(n)),r=t,null==Ze||Ze===r.__textFormat||nt||r.setTextFormat(Ze),function(e){null==et||et===e.__textStyle||nt||e.setTextStyle(et)}(t)}function mt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&$("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function gt(e,t){const n=Ye.get(e);let r=qe.get(e);void 0!==n&&void 0!==r||$("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=tt||Ve.has(e)||Ge.has(e),i=ga(We,e);if(n===r&&!o){let e;if(qo(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return Xe+=e,i}if(n!==r&&o&&ca(Qe,Ue,Ke,r,"updated"),r.updateDOM(n,i,He)){const n=ct(e,null);return null===t&&$("reconcileNode: parentDOM is null"),t.replaceChild(n,i),rt(e,null),n}if(qo(n)){qo(r)||$(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(tt||t!==n.__indent)&&st(i,t);const a=r.__format;if((tt||a!==n.__format)&&lt(i,a),o)ht(n,r,i),ei(r)||r.isInline()||pt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),Xe+=t}if((tt||r.__dir!==n.__dir)&&(ut(i,r),ei(r)&&!tt))for(const e of r.getChildren())if(qo(e)){ut(ga(We,e.getKey()),e)}}else{const t=r.getTextContent();if(Xo(r)){const t=r.decorate(We,He);null!==t&&vt(e,t)}Xe+=t}if(!nt&&ei(r)&&r.__cachedText!==Xe){const e=r.getWritable();e.__cachedText=Xe,r=e}return Object.freeze(r),i}function vt(e,t){let n=We._pendingDecorators;const r=We._decorators;if(null===n){if(r[e]===t)return;n=Ui(We)}n[e]=t}function yt(e){let t=e.nextSibling;return null!==t&&t===We._blockCursorElement&&(t=t.nextSibling),t}function bt(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function xt(e,t,n,r,o,i){Xe="",tt=2===r,We=n,He=n._config,Ue=n._nodes,Ke=We._listeners.mutation,Ge=o,Ve=i,Ye=e._nodeMap,qe=t._nodeMap,nt=t._readOnly,Je=new Map(n._keyToDOMMap);const a=new Map;return Qe=a,gt("root",null),We=void 0,Ue=void 0,Ge=void 0,Ve=void 0,Ye=void 0,qe=void 0,He=void 0,Je=void 0,Qe=void 0,a}function _t(e){const t=Je.get(e);return void 0===t&&$(`Reconciliation: could not find DOM element for node key ${e}`),t}function wt(e){return{type:e}}const kt=wt("SELECTION_CHANGE_COMMAND"),St=wt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ct=wt("CLICK_COMMAND"),Et=wt("BEFORE_INPUT_COMMAND"),Tt=wt("INPUT_COMMAND"),At=wt("COMPOSITION_START_COMMAND"),Nt=wt("COMPOSITION_END_COMMAND"),Lt=wt("DELETE_CHARACTER_COMMAND"),Rt=wt("INSERT_LINE_BREAK_COMMAND"),Mt=wt("INSERT_PARAGRAPH_COMMAND"),Ot=wt("CONTROLLED_TEXT_INSERTION_COMMAND"),Pt=wt("PASTE_COMMAND"),zt=wt("REMOVE_TEXT_COMMAND"),It=wt("DELETE_WORD_COMMAND"),Dt=wt("DELETE_LINE_COMMAND"),jt=wt("FORMAT_TEXT_COMMAND"),Ft=wt("UNDO_COMMAND"),Bt=wt("REDO_COMMAND"),$t=wt("KEYDOWN_COMMAND"),Ht=wt("KEY_ARROW_RIGHT_COMMAND"),Wt=wt("MOVE_TO_END"),Ut=wt("KEY_ARROW_LEFT_COMMAND"),Kt=wt("MOVE_TO_START"),Gt=wt("KEY_ARROW_UP_COMMAND"),Vt=wt("KEY_ARROW_DOWN_COMMAND"),Yt=wt("KEY_ENTER_COMMAND"),qt=wt("KEY_SPACE_COMMAND"),Jt=wt("KEY_BACKSPACE_COMMAND"),Qt=wt("KEY_ESCAPE_COMMAND"),Xt=wt("KEY_DELETE_COMMAND"),Zt=wt("KEY_TAB_COMMAND"),en=wt("INSERT_TAB_COMMAND"),tn=wt("INDENT_CONTENT_COMMAND"),nn=wt("OUTDENT_CONTENT_COMMAND"),rn=wt("DROP_COMMAND"),on=wt("FORMAT_ELEMENT_COMMAND"),an=wt("DRAGSTART_COMMAND"),sn=wt("DRAGOVER_COMMAND"),ln=wt("DRAGEND_COMMAND"),un=wt("COPY_COMMAND"),cn=wt("CUT_COMMAND"),dn=wt("SELECT_ALL_COMMAND"),fn=wt("CLEAR_EDITOR_COMMAND"),pn=wt("CLEAR_HISTORY_COMMAND"),hn=wt("CAN_REDO_COMMAND"),mn=wt("CAN_UNDO_COMMAND"),gn=wt("FOCUS_COMMAND"),vn=wt("BLUR_COMMAND"),yn=wt("KEY_MODIFIER_COMMAND"),bn=Object.freeze({}),xn=[["keydown",function(e,t){if(_n=e.timeStamp,wn=e.key,t.isComposing())return;ma(t,$t,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Ma(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ko(t,()=>{wi(n)||(An=!0)})}],["compositionstart",function(e,t){ma(t,At,e)}],["compositionend",function(e,t){K?Ln=!0:Y||!V&&!X?ma(t,Nt,e):(Rn=!0,Mn=e.data)}],["input",function(e,t){e.stopPropagation(),Ko(t,()=>{t.dispatchCommand(Tt,e)},{event:e}),Sn=null}],["click",function(e,t){Ko(t,()=>{const n=so(),r=Na(wa(t)),o=lo();if(r)if(Wr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ei(i)&&1===Gi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=qa(i,e=>qo(e)&&!e.isInline());qo(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Ra(n)||Li(n)){Yi(io(o,r,t,e))}}ma(t,Ct,e)})}],["cut",bn],["copy",bn],["dragstart",bn],["dragover",bn],["dragend",bn],["paste",bn],["focus",bn],["blur",bn],["drop",bn]];G&&xn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||K&&ha(t))return;if("insertCompositionText"===n)return;ma(t,Et,e)}(e,t)]);let _n=0,wn=null,kn=0,Sn=null;const Cn=new WeakMap,En=new WeakMap;let Tn=!1,An=!1,Nn=!1,Ln=!1,Rn=!1,Mn="",On=null,Pn=[0,"",0,"root",0];function zn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=Ro(),u=Na(wa(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!Or(s)||(!o&&(!G||kn<r+50)||s.isDirty()&&p<2||Ji(n))&&i.offset!==a.offset&&!s.isComposing()||Ni(s)||s.isDirty()&&p>1||(o||!G)&&null!==f&&!s.isComposing()&&c!==Mi(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!s.isComposing()&&(s.getFormat()!==e.format||s.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=Ai(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Or(t)||qo(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function In(e,t){return Li(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Dn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;Tn&&(Tn=!1,In(r,o)&&In(i,a)&&!On)||Ko(t,()=>{if(!n)return void Yi(null);if(!Si(t,r,i))return;let s=so();if(On&&Wr(s)&&s.isCollapsed()){const e=s.anchor,t=On.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=On.clone(),Yi(s))}if(On=null,Wr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=wa(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=Pn,f=Gi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)jn(s,a,l);else if("text"===n.type)Or(r)||$("Point.getNode() must return TextNode when type is text"),Fn(s,r);else if("element"===n.type&&!p){qo(r)||$("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();jn(e,n,r)}(s,e):jn(s,0,"")}}else{const e=n.key,t=s.focus.key,r=s.getNodes(),i=r.length,l=s.isBackward(),u=l?a:o,c=l?o:a,d=l?t:e,f=l?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(Or(t)&&0!==n&&!(0===e&&t.__key===d&&u===n||e===i-1&&t.__key===f&&0===c)&&(h=!0,p&=t.getFormat(),0===p))break}s.format=h?p:0}}ma(t,kt,void 0)})}function jn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fn(e,t){jn(e,t.getFormat(),t.getStyle())}function Bn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function $n(e){const t=e.inputType,n=Bn(e),r=Ro(),o=so();if("deleteContentBackward"===t){if(null===o){const e=lo();if(!Wr(e))return!0;Yi(e.clone())}if(Wr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===wn&&i<_n+30&&r.isComposing()&&t){if(ji(null),_n=0,setTimeout(()=>{Ko(r,()=>{ji(null)})},30),Wr(o)){const e=o.anchor.getNode();e.markDirty(),Or(e)||$("Anchor node must be a TextNode"),Fn(o,e)}}else{ji(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),a=n.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length;let l=Q&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Xo(pa(o.anchor,!0))),!l){ma(r,Lt,!0);const e=so();Q&&Wr(e)&&e.isCollapsed()&&(On=e,setTimeout(()=>On=null))}}return!0}}var i;if(!Wr(o))return!0;const a=e.data;null!==Sn&&ea(!1,r,Sn),o.dirty&&null===Sn||!o.isCollapsed()||ei(o.anchor.getNode())||null===n||o.applyDOMRange(n),Sn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),ma(r,Rt,!1);else if(a===ue)e.preventDefault(),ma(r,Mt,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&zn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),ma(r,Ot,a)):Sn=a;return kn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ma(r,Ot,e);break;case"insertFromComposition":ji(null),ma(r,Ot,e);break;case"insertLineBreak":ji(null),ma(r,Rt,!1);break;case"insertParagraph":ji(null),Nn&&!Y?(Nn=!1,ma(r,Rt,!1)):ma(r,Mt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ma(r,Pt,e);break;case"deleteByComposition":(function(e,t){return e!==t||qo(e)||qo(t)||!Ai(e)||!Ai(t)})(u,c)&&ma(r,zt,e);break;case"deleteByDrag":case"deleteByCut":ma(r,zt,e);break;case"deleteContent":ma(r,Lt,!1);break;case"deleteWordBackward":ma(r,It,!0);break;case"deleteWordForward":ma(r,It,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ma(r,Dt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ma(r,Dt,!1);break;case"formatStrikeThrough":ma(r,jt,"strikethrough");break;case"formatBold":ma(r,jt,"bold");break;case"formatItalic":ma(r,jt,"italic");break;case"formatUnderline":ma(r,jt,"underline");break;case"historyUndo":ma(r,Ft,void 0);break;case"historyRedo":ma(r,Bt,void 0)}return!0}function Hn(e){if(Ra(e.target)&&wi(e.target))return!0;const t=Ro(),n=so(),r=e.data,o=Bn(e);if(null!=r&&Wr(n)&&zn(n,o,r,e.timeStamp,!1)){Ln&&(Kn(t,r),Ln=!1);const o=n.anchor.getNode(),i=Na(wa(t));if(null===i)return!0;const a=n.isBackward(),s=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;G&&!n.isCollapsed()&&Or(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Zi(i.anchorNode)||ma(t,Ot,r);const u=r.length;K&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),Q&&t.isComposing()&&(_n=0,ji(null))}else{ea(!1,t,null!==r?r:void 0),Ln&&(Kn(t,r||void 0),Ln=!1)}return function(){Ao();const e=Ro();Te(e)}(),!0}function Wn(e){const t=Ro(),n=so();if(Wr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ji(r.key),ba(cr),(e.timeStamp<_n+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Or(o)&&o.getStyle()!==n.style)&&ma(t,Ot,ce)}return!0}function Un(e){return Kn(Ro(),e.data),ba(dr),!0}function Kn(e,t){const n=e._compositionKey;if(ji(null),null!==n&&null!=t){if(""===t){const t=Bi(n),r=Mi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Or(t)){const n=Na(wa(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),ta(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=so();if(Wr(t)||Kr(t)){if(Wr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void ma(e,Yt,null)}}}ea(!0,e,t)}function Gn(e){const t=Ro();if(null==e.key)return!0;if(Rn){if(sa(e))return Ko(t,()=>{Kn(t,Mn)}),Rn=!1,Mn="",!0;Rn=!1,Mn=""}if(function(e){return oa(e,"ArrowRight",{shiftKey:"any"})}(e))ma(t,Ht,e);else if(function(e){return oa(e,"ArrowRight",ia)}(e))ma(t,Wt,e);else if(function(e){return oa(e,"ArrowLeft",{shiftKey:"any"})}(e))ma(t,Ut,e);else if(function(e){return oa(e,"ArrowLeft",ia)}(e))ma(t,Kt,e);else if(function(e){return oa(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))ma(t,Gt,e);else if(function(e){return oa(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))ma(t,Vt,e);else if(function(e){return oa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Nn=!0,ma(t,Yt,e);else if(function(e){return" "===e.key}(e))ma(t,qt,e);else if(function(e){return U&&oa(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Nn=!0,ma(t,Rt,!0);else if(function(e){return oa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Nn=!1,ma(t,Yt,e);else if(function(e){return oa(e,"Backspace",{shiftKey:"any"})||U&&oa(e,"h",{ctrlKey:!0})}(e))sa(e)?ma(t,Jt,e):(e.preventDefault(),ma(t,Lt,!0));else if(function(e){return"Escape"===e.key}(e))ma(t,Qt,e);else if(function(e){return oa(e,"Delete",{})||U&&oa(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),ma(t,Lt,!1)):ma(t,Xt,e);else if(function(e){return oa(e,"Backspace",aa)}(e))e.preventDefault(),ma(t,It,!0);else if(function(e){return oa(e,"Delete",aa)}(e))e.preventDefault(),ma(t,It,!1);else if(function(e){return U&&oa(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),ma(t,Dt,!0);else if(function(e){return U&&(oa(e,"Delete",{metaKey:!0})||oa(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),ma(t,Dt,!1);else if(function(e){return oa(e,"b",ia)}(e))e.preventDefault(),ma(t,jt,"bold");else if(function(e){return oa(e,"u",ia)}(e))e.preventDefault(),ma(t,jt,"underline");else if(function(e){return oa(e,"i",ia)}(e))e.preventDefault(),ma(t,jt,"italic");else if(function(e){return oa(e,"Tab",{shiftKey:"any"})}(e))ma(t,Zt,e);else if(function(e){return oa(e,"z",ia)}(e))e.preventDefault(),ma(t,Ft,void 0);else if(function(e){if(U)return oa(e,"z",{metaKey:!0,shiftKey:!0});return oa(e,"y",{ctrlKey:!0})||oa(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),ma(t,Bt,void 0);else{const n=t._editorState._selection;null===n||Wr(n)?la(e)&&(e.preventDefault(),ma(t,dn,e)):!function(e){return oa(e,"c",ia)}(e)?!function(e){return oa(e,"x",ia)}(e)?la(e)&&(e.preventDefault(),ma(t,dn,e)):(e.preventDefault(),ma(t,cn,e)):(e.preventDefault(),ma(t,un,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(yn,e),!0}function Vn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Yn=new Map;function qn(e){const t=function(e){const t=_a(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Ei(t.anchorNode);if(null===n)return;An&&(An=!1,Ko(n,()=>{const r=lo(),o=t.anchorNode;if(Ra(o)||Li(o)){Yi(io(r,t,n,e))}}));const r=Qi(n),o=r[r.length-1],i=o._key,a=Yn.get(i),s=a||o;s!==n&&Dn(t,s,!1),Dn(t,n,!0),n!==o?Yn.set(i,n):a&&Yn.delete(i)}function Jn(e){e._lexicalHandled=!0}function Qn(e){return!0===e._lexicalHandled}const Xn=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function Zn(e){const t=Cn.get(e);if(void 0===t)return void Xn();const n=En.get(t);if(void 0===n)return void Xn();const r=n-1;r>=0||$("Root element count less than 0"),Cn.delete(e),En.set(t,r),0===r&&t.removeEventListener("selectionchange",qn);const o=Ti(e);Ci(o)?(!function(e){if(null!==e._parentEditor){const t=Qi(e),n=t[t.length-1]._key;Yn.get(n)===e&&Yn.delete(n)}else Yn.delete(e._key)}(o),e.__lexicalEditor=null):o&&$("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Vn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function er(e,t,n){Ao();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=so();if(!Wr(t)||!qo(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();xa(o,e)&&n.set(e.__key,0,"element");xa(i,e)&&r.set(e.__key,0,"element");return t}(e);let a=!1;if(Wr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(fo(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(fo(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Kr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Wr(i)&&t&&!a){const t=e.getIndexWithinParent();Ii(e),uo(i,o,t,-1)}else Ii(e);n||ka(o)||o.canBeEmpty()||!o.isEmpty()||er(o,t),t&&i&&ei(o)&&o.isEmpty()&&o.selectEnd()}const tr=Symbol.for("ephemeral");function nr(e){return e[tr]||!1}class rr{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ya(this);return void 0===e&&$(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){$(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),zi(this,e),"root"!==this.__type&&function(e,t){const n=xi(Ro(),e);void 0===n&&$(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&$(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){$(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Bi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||so();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(Or(this))return n;if(Wr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Xo(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Bi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&$(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(ka(t))return qo(e)||e===this&&Xo(e)||$("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&$(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Bi(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Bi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=qo(this)?this:this.getParent(),n=qo(e)?e:e.getParent(),r=t&&n?Es(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Es(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ks(t):("same"!==t.type&&"ancestor"!==t.type&&$("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=Es(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const a=qo(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==a){o=a;continue}const s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let u=null,c=l;do{if(null===c&&$("getNodesBetween: ancestor is null"),u=t?c.getNextSibling():c.getPreviousSibling(),c=c.getParent(),null===c)break;null!==u||r.has(c.__key)||n.push(c)}while(null===u);o=u}return t||n.reverse(),n}isDirty(){const e=Ro()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(nr(this))return this;const e=Bi(this.__key);return null===e&&$("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(nr(this))return this;Ao();const e=Lo(),t=Ro(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=so();if(null!==a&&a.setCachedNodes(null),i.has(r))return Di(o),o;const s=$a(o);return i.add(r),Di(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){$("createDOM: base method not extended")}updateDOM(e,t,n){$("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){$(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Me(this,e)}static transform(){return null}remove(e){er(this,!0,e)}replace(e,t){Ao();let n=so();null!==n&&(n=n.clone()),Ea(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;Ii(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(er(r,!1,!0),null===u)s.__first=i;else{u.getWritable().__next=i}if(a.__prev=d,null===c)s.__last=i;else{c.getWritable().__prev=i}if(a.__next=f,a.__parent=p,s.__size=l,t&&(qo(this)&&qo(a)||$("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{a.append(e)})),Wr(n)){Yi(n);const e=n.anchor,t=n.focus;e.key===o&&$r(e,a),t.key===o&&$r(t,a)}return Fi()===o&&ji(i),a}insertAfter(e,t=!0){Ao(),Ea(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=so();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(Ii(r),Wr(i)){const e=o.__key,n=i.anchor,r=i.focus;a="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===l)u.__last=c;else{l.getWritable().__prev=c}if(u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Wr(i)){const e=this.getIndexWithinParent();uo(i,u,e+1);const t=u.__key;a&&i.anchor.set(t,e+2,"element"),s&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Ao(),Ea(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Ii(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();if(null===i)a.__first=o;else{i.getWritable().__next=o}a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=so();if(t&&Wr(u)){uo(u,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return li()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Ao();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(qo(n))return n.select();if(!Or(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Ao();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(qo(n))return n.select(0,0);if(!Or(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const or="historic",ir="history-merge",ar="collaboration",sr="skip-scroll-into-view",lr="skip-dom-selection",ur="skip-selection-focus",cr="composition-start",dr="composition-end";class fr extends rr{static getType(){return"linebreak"}static clone(e){return new fr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&za(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&gr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&za(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&gr(r))return!0}return!1}(e)?null:{conversion:pr,priority:0}}}static importJSON(e){return hr().updateFromJSON(e)}}function pr(e){return{node:hr()}}function hr(){return Ca(new fr)}function mr(e){return e instanceof fr}function gr(e){return Li(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function vr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function yr(e,t){return 1&t?"strong":2&t?"em":"span"}function br(e,t,n,r,o){const i=r.classList;let a=ua(o,"base");void 0!==a&&i.add(...a),a=ua(o,"underlineStrikethrough");let s=!1;const l=8&t&&4&t;void 0!==a&&(8&n&&4&n?(s=!0,l||i.add(...a)):l&&i.remove(...a));for(const e in de){const r=de[e];if(a=ua(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...a)}else t&r&&i.remove(...a)}}function xr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?le:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||K){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function _r(e,t,n,r,o,i){xr(o,e,t);const a=i.theme.text;void 0!==a&&br(0,0,r,e,a)}function wr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class kr extends rr{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new kr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return ge[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Fi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=de[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Oi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=vr(0,n),o=yr(0,n),i=null===r?o:r,a=document.createElement(i);let s=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(o),a.appendChild(s));_r(s,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(a.style.cssText=l),a}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,a=vr(0,o),s=vr(0,i),l=yr(0,o),u=yr(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&$("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(u);return _r(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&$("updateDOM: innerDOM is null or undefined")),xr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&br(0,o,i,c,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Ar,priority:0}),b:()=>({conversion:Cr,priority:0}),code:()=>({conversion:Rr,priority:0}),em:()=>({conversion:Rr,priority:0}),i:()=>({conversion:Rr,priority:0}),mark:()=>({conversion:Rr,priority:0}),s:()=>({conversion:Rr,priority:0}),span:()=>({conversion:Sr,priority:0}),strong:()=>({conversion:Rr,priority:0}),sub:()=>({conversion:Rr,priority:0}),sup:()=>({conversion:Rr,priority:0}),u:()=>({conversion:Rr,priority:0})}}static importJSON(e){return Mr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Ra(t)||$("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=wr(t,"b")),this.hasFormat("italic")&&(t=wr(t,"i")),this.hasFormat("strikethrough")&&(t=wr(t,"s")),this.hasFormat("underline")&&(t=wr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?de[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?fe[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Oi(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=me[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Ao();let n=e,r=t;const o=so(),i=this.getTextContent(),a=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Wr(o))return no(a,n,a,r,"text","text");{const e=Fi();e!==o.anchor.key&&e!==o.focus.key||ji(a),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,a=n.length;let s=e;s<0&&(s=a+s,s<0&&(s=0));const l=so();if(r&&Wr(l)){const t=e+a;l.setTextNodeRange(o,t,o,t)}const u=i.slice(0,s)+n+i.slice(s+t);return o.__text=u,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Ao();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=Fi(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const a=[],s=e.length;for(let t=0,r=0;t<i&&r<=s;r++){const o=e[r];o>t&&(a.push(n.slice(t,o)),t=o)}const l=a.length;if(1===l)return[t];const u=a[0],c=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let m=!1,g=null,v=null;const y=so();if(Wr(y)){const[e,t]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===e.type&&e.key===r&&(g=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=Mr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Ie(t,d),m=!0):d=t.setTextContent(u);const b=[d];for(let e=1;e<l;e++){const n=Mr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Ie(t,n);const i=n.__key;o===r&&ji(i),b.push(n)}const x=g?g.offset:null,_=v?v.offset:null;let w=0;for(const e of b){if(!g&&!v)break;const t=w+e.getTextContentSize();if(null!==g&&null!==x&&x<=t&&x>=w&&(g.set(e.getKey(),x-w,"text"),x<t&&(g=null)),null!==v&&null!==_&&_<=t&&_>=w){v.set(e.getKey(),_-w,"text");break}w=t}if(null!==c){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Di(t);null!==n&&Di(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();m?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),Wr(y)&&uo(y,c,t,l-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||$("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;Fi()===r&&ji(n);const a=so();if(Wr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&po(o,t,n,e,i),null!==s&&s.key===r&&po(s,t,n,e,i)}const s=e.__text,l=t?s+o:o+s;this.setTextContent(l);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function Sr(e){return{forChild:Pr(e.style),node:null}}function Cr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Pr(t.style,n?void 0:"bold"),node:null}}const Er=new WeakMap;function Tr(e){if(!Ra(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Ar(e){const t=e;null===e.parentElement&&$("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Er.get(n))&&!Tr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Er.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(hr()):"\t"===r?t.push(Ir()):""!==r&&t.push(Mr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!0));){if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Mr(n)}}function Nr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,Ra(n)){const e=n.style.display;if(""===e&&!Pa(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Li(n))return n;if("BR"===n.nodeName)return null}}const Lr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rr(e){const t=Lr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Pr(e.style,t),node:null}}function Mr(e=""){return Ca(new kr(e))}function Or(e){return e instanceof kr}function Pr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),a="italic"===e.fontStyle,s=r.includes("underline"),l=e.verticalAlign;return e=>Or(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),a&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class zr extends kr{static getType(){return"tab"}static clone(e){return new zr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=ua(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Ir().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&$("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||$("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&$("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&$("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Ir(){return Ca(new zr)}function Dr(e){return e instanceof zr}class jr{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return ws(zs(Ts(this,"next")),zs(Ts(e,"next")))<0}getNode(){const e=Bi(this.key);return null===e&&$("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Bi(e);("text"===n?Or(t):qo(t))||$(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}To()||(Fi()===i&&ji(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function Fr(e,t,n){return new jr(e,t,n)}function Br(e,t){let n=t.__key,r=e.offset,o="element";if(Or(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!qo(t)){const e=t.getNextSibling();if(Or(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function $r(e,t){if(qo(t)){const n=t.getLastDescendant();qo(n)||Or(n)?Br(e,n):Br(e,t)}else Br(e,t)}class Hr{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Kr(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(Or(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=Bi(e);null!==t&&n.push(t)}return To()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((so()||lo())===this&&e[0]){const t=cs(e[0],"next");Ns(xs(t,t))}for(const t of e)t.remove()}}function Wr(e){return e instanceof Ur}class Ur{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Wr(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(as(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;qo(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(is(e.focus)&&qo(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=hs(e.focus.origin,"previous");as(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=ms(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!qo(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=zs(e.anchor),r=zs(e.anchor.getFlipped()),o=e=>os(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(js(Rs(this),"next"));return this.isCollapsed()&&t.length>1&&$(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),To()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,s]=Vr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(qo(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,Or(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<s?e.slice(a,s):e.slice(s,a)):e=i?e.slice(a):e.slice(s):d===n&&(e=i?e.slice(0,s):e.slice(0,a)),l+=e}else!Xo(d)&&!mr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Ro(),n=t.getEditorState()._selection,r=eo(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Be(this)}clone(){const e=this.anchor,t=this.focus;return new Ur(Fr(e.key,e.offset,e.type),Fr(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Oi(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=de[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(hr()):"\t"===r?n.push(Ir()):n.push(Mr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,a=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,a=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Mr();if(a.setFormat(n),a.setStyle(r),ui(i))i.splice(0,0,[a]);else{const e=ei(o)?li().append(a):a;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}(i,a,r,o),"element"===a.type&&As(a,zs(Ts(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];Or(d)||$("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=u[c-1];if(1===c&&"element"===a.type&&(l=f,a.set(i.key,l,"text")),this.isCollapsed()&&s===f&&(Ni(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Or(t)&&t.canInsertTextBefore()&&!Ni(t)||(t=Mr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(Ni(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Or(t)&&!Ni(t)||(t=Mr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){const e=Mr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||qo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Zr(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(Ai(d)){const t=Mr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Dr(d)){const t=Mr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Mr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===s)d.insertBefore(t,!1);else{const[e]=d.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=l-s;d=d.spliceText(s,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=qo(d)?d:d.getParentOrThrow();let r=qo(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===a.type&&(0!==l||""===h.getTextContent())||"element"===a.type&&h.getIndexWithinParent()<l)if(Or(h)&&!Ai(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Mr(h.getTextContent());h.replace(e),h=e}ei(a.getNode())||"text"!==a.type||(h=h.spliceText(0,l,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(u),m=n.is(r),g=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||qo(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Ai(d))if(s===f)d.select();else{const t=Mr(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<c;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=so()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=js(e,r),a=Os(i.anchor,n),s=Os(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(as(e))l.add(e.origin.getKey());else if(is(e)){const{origin:t}=e;qo(t)&&!l.has(t.getKey())||u.push(t)}for(const e of u)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=Ms(cs(t,r)),l=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===l&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===l){const e=t.origin,n=Mr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=ds(n,r,t.offset)}n.is(a[0].origin)&&(a[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let c,d;for(const e of a)if(Ps(e)){c=zs(e);break}for(const e of s)if(Ps(e)){d=zs(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const a=o.getParents().reverse();a.push(o);const s=Math.min(i.length,a.length);let l;for(l=0;l<s&&i[l]===a[l];l++);const u=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(ka(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,Ia),d=c&&u(a,e=>n.has(e.getKey())&&Ia(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;hs(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[c,d,...a,...s].find(Ps);if(p){return bs(Ds(zs(p),e.direction))}$(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(a.map(e=>e.origin.__key))}`)}(Rs(this));Ls(this,t),e&&so()!==this&&Yi(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void ji(null);const n=this.getNodes(),r=[];for(const e of n)Or(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(qo(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),ji(null),void o(t);const a=this.anchor,s=this.focus,l=this.isBackward(),u=l?s:a,c=l?a:s;let d=0,f=r[0],p="element"===u.type?0:u.offset;if("text"===u.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const m=i-1;let g=r[m];const v="text"===c.type?c.offset:g.getTextContentSize();if(f.is(g)){if(p===v)return;if(Ni(f)||0===p&&v===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,v),t=0===p?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ni(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const y=g.getFormatFlags(e,h);v>0&&(v===g.getTextContentSize()||Ni(g)||([g]=g.splitText(v)),g.setFormat(y));for(let t=d+1;t<m;t++){const n=r[t],o=n.getFormatFlags(e,y);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(g.__key,v,"text"),this.format=h|y}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=so();return Wr(t)||$("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=qa(t,Ia),r=e[e.length-1];if(qo(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=yo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(qo(e)||Xo(e))&&!e.isInline())){qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=yo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=li();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=mr(o);if(i||Xo(o)&&o.isInline()||qo(o)&&o.isInline()||Or(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),a=o.getChildren(),s=!qo(n)||!n.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let u=a[0];(e=>qo(e)&&Ia(e)&&!e.isEmpty()&&qo(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(u)&&(qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||$("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const c=qa(i,Ia);s&&qo(c)&&(s.canMergeWhenEmpty()||Ia(l))&&(c.append(...s.getChildren()),s.remove()),qo(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=qo(n)?n.getLastChild():null;mr(d)&&c!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=li();return Gi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=yo(this),t=qa(this.anchor.getNode(),Ia);qo(t)||$("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=hr();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Vr(this),a=this.isBackward(),[s,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=a?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Or(n)&&!this.isCollapsed()){const e=n.splitText(u,c),t=0===u?e[0]:e[1];return t?(s.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Or(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),Or(r)){const t=r.getTextContent().length;0===c?e.pop():c!==t&&([r]=r.splitText(c),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(xo(this,e,t,n))return;const r="move"===e,o=Ro(),i=Na(wa(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!qo(l)||l.isInline()||l.canBeEmpty()||Aa(a,o,s),this.dirty){let e=ga(o,this.anchor.key),t=ga(o,this.focus.key);"text"===this.anchor.type&&(e=Mi(e)),"text"===this.focus.type&&(t=Mi(t)),e&&t&&ho(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=ei(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(ka(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let a=!1;for(let e=0;e<n.length;e++){const t=n[e];xa(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];qo(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];qo(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&xo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&qo(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(qo(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=ys(Ts(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(as(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=zs(t);Ls(this,xs(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(is(t)){if(qo(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Xo(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=oo();e.add(t.origin.getKey()),Yi(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Ls(this,xs(!t.origin.isEmpty()&&n.isEmpty()?Ms(cs(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Yr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Jr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Jr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,a=e<i,s=a?e:i,l=a?i:e,u=l-1;if(s!==u){(function(e){e.length>1||$("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Ji(e)||qr(e))})(o.getTextContent().slice(s,l))&&(t?r.set(r.key,u,r.type):n.set(n.key,u,n.type))}}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&ei(e.getParent())&&null===e.getPreviousSibling()&&Yr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Kr(e){return e instanceof Hr}function Gr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Vr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Gr(n),Gr(r)]}function Yr(e,t){for(let n=t;n;n=n.getParent()){if(qo(n)){if(n.collapseAtStart(e))return!0;if(ka(n))break}if(n.getPreviousSibling())break}return!1}const qr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Jr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let a=0,s=0;for(let e=0;e<i;e++){const r=e===i-1;if(s=a,a+=o[e].length,t&&a===n||a>n||r){o.splice(e,1),r&&(s=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(s,s))}function Qr(e,t,n,r){let o,i=t;if(Ra(e)){let a=!1;const s=e.childNodes,l=s.length,u=r._blockCursorElement;i===l&&(a=!0,i=l-1);let c=s[i],d=!1;if(c===u)c=s[i+1],d=!0;else if(null!==u){const n=u.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,u)&&i--}}if(o=qi(c),Or(o))i=fs(o,a?"next":"previous");else{let s=qi(e);if(null===s)return null;if(qo(s)){const l=r.getElementByKey(s.getKey());null===l&&$("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),qo(s)||$("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(qo(c)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(c,0,n)){const e=a?c.getLastDescendant():c.getFirstDescendant();null===e?s=c:(c=e,s=qo(c)?c:c.getParentOrThrow()),i=0}Or(c)?(o=c,s=null,i=fs(c,a?"next":"previous")):c!==s&&a&&!d&&(qo(s)||$("invariant"),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Xo(s)&&qi(e)===s?n:n+1,s=s.getParentOrThrow()}if(qo(s))return Fr(s.__key,i,"element")}}else o=qi(e);return Or(o)?Fr(o.__key,fs(o,i,"clamp"),"text"):null}function Xr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&qo(i)&&i.isInline()){const t=i.getPreviousSibling();Or(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else qo(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Or(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&qo(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&qo(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Or(t)&&e.set(t.__key,0,"text")}}}function Zr(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Xr(e,n,r),Xr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function eo(e,t,n,r,o,i){if(null===e||null===n||!Si(o,e,n))return null;const a=Qr(e,t,Wr(i)?i.anchor:null,o);if(null===a)return null;const s=Qr(n,r,Wr(i)?i.focus:null,o);if(null===s)return null;if(ao("anchor",a),ao("focus",s),"element"===a.type&&"element"===s.type){const t=qi(e),r=qi(n);if(Xo(t)&&Xo(r))return null}return Zr(a,s),[a,s]}function to(e){return qo(e)&&!e.isInline()}function no(e,t,n,r,o,i){const a=Lo(),s=new Ur(Fr(e,t,o),Fr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function ro(){const e=Fr("root",0,"element"),t=Fr("root",0,"element");return new Ur(e,t,0,"")}function oo(){return new Hr(new Set)}function io(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,a=i?i.type:void 0,s="selectionchange"===a,l=!be&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Wr(e)&&!l)return e.clone();if(null===t)return null;if(u=t.anchorNode,c=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(s||void 0===a)&&Wr(e)&&!Si(n,u,c))return e.clone();const p=eo(u,d,c,f,n,e);if(null===p)return null;const[h,m]=p;let g=0,v="";if(Wr(e)){const t=e.anchor;if(h.key===t.key)g=e.format,v=e.style;else{const e=h.getNode();Or(e)?(g=e.getFormat(),v=e.getStyle()):qo(e)&&(g=e.getTextFormat(),v=e.getTextStyle())}}return new Ur(h,m,g,v)}function ao(e,t){const n=Bi(t.key);if(void 0===n&&$(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Or(n)||$(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{qo(n)||$(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function so(){return Lo()._selection}function lo(){return Ro()._editorState._selection}function uo(e,t,n,r=1){const o=e.anchor,i=e.focus,a=o.getNode(),s=i.getNode();if(!t.is(a)&&!t.is(s))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(l,n,"element"),i.set(l,n,"element"),co(e)}}else{const a=e.isBackward(),s=a?i:o,u=s.getNode(),c=a?o:i,d=c.getNode();if(t.is(u)){const e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(l,Math.max(0,e+r),"element")}}co(e)}function co(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!qo(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(qo(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(qo(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(Or(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function fo(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,Or(r)?(a=r.getTextContentSize(),s="text"):qo(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,Or(o)?s="text":qo(o)&&(s="element")),null!==i&&null!==s?e.set(i,a,s):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function po(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function ho(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function mo(e,t,n){const r=ga(e,t.getKey());if(qo(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function go(e,t,n,r,o,i,a){const s=r.anchorNode,l=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(o.has(ar)&&d!==i||null!==d&&ki(d))return;if(!Wr(t))return void(null!==e&&Si(n,s,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),m=p.getNode(),[g,v]=mo(n,h,f.offset),[y,b]=mo(n,m,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let k=g,S=y,C=!1;if("text"===f.type?(k=Mi(g),C=h.getFormat()!==x||h.getStyle()!==_):Wr(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(S=Mi(y)),null!==k&&null!==S&&(w&&(null===e||C||Wr(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){Pn=[e,t,n,r,o]}(x,_,v,f.key,performance.now()),u!==v||c!==b||s!==k||l!==S||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(ur)||i.focus({preventScroll:!0}),"element"===f.type))){if(ho(r,k,v,S,b),!K||!t.isCollapsed()||null===i||o.has(ur)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(sr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Wr(t)&&"element"===t.anchor.type?k.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=ya(n),o=_a(r);if(null===r||null===o)return;let{top:i,bottom:a}=t,s=0,l=0,u=n;for(;null!==u;){const t=u===r.body;if(t)s=0,l=wa(e).innerHeight;else{const e=u.getBoundingClientRect();s=e.top,l=e.bottom}let n=0;if(i<s?n=-(s-i):a>l&&(n=a-l),0!==n)if(t)o.scrollBy(0,n);else{const e=u.scrollTop;u.scrollTop+=n;const t=u.scrollTop-e;i-=t,a-=t}if(t)break;u=va(u)}}(n,t,i)}}Tn=!0}}function vo(e){let t=so()||lo();null===t&&(t=Gi().selectEnd()),t.insertNodes(e)}function yo(e){let t=e;e.isCollapsed()||t.removeText();const n=so();Wr(n)&&(t=n),Wr(t)||$("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Ia(o);){const e=o;if([o,i]=bo(o,i),e.is(o))break}return i}function bo(e,t){const n=e.getParent();if(!n){const e=li();return Gi().append(e),e.select(),[Gi(),0]}if(Or(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!qo(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Ur(Fr(e.__key,t,"element"),Fr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function xo(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=Ts(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!Is(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Xo(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of ys(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(as(e))e.origin.isInline()||(l=e);else{if(qo(e.origin))continue;Xo(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Xo(l.origin)&&l.origin.isKeyboardSelectable()){const e=oo();return e.add(l.origin.getKey()),Yi(e),!0}return l=zs(l),s&&As(e.anchor,l),As(e.focus,l),u||!a}let _o=null,wo=null,ko=!1,So=!1,Co=0;const Eo={characterData:!0,childList:!0,subtree:!0};function To(){return ko||null!==_o&&_o._readOnly}function Ao(){ko&&$("Cannot use method in read-only mode.")}function No(){Co>99&&$("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function Lo(){return null===_o&&$(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Mo()}`),_o}function Ro(){return null===wo&&$(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Mo()}`),wo}function Mo(){let e=0;const t=new Set,n=hi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Ti(r);if(Ci(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function Oo(){return wo}function Po(e,t,n){const r=t.__type,o=bi(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const a=i.length;for(let e=0;e<a&&(i[e](t),t.isAttached());e++);}function zo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Io(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function Do(e){return jo(e,Ro()._nodes)}function jo(e,t){const n=e.type,r=t.get(n);void 0===r&&$(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&$(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),a=e.children;if(qo(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=jo(a[e],t);i.append(n)}return i}function Fo(e,t,n){const r=_o,o=ko,i=wo;_o=t,ko=!0,wo=e;try{return n()}finally{_o=r,ko=o,wo=i}}function Bo(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function $o(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,a=i._selection,s=n._selection,l=0!==e._dirtyType,u=_o,c=ko,d=wo,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){wo=e,_o=n,ko=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=xt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),So)throw t;return di(e,null,r,n),Ae(e),e._dirtyType=2,So=!0,$o(e,i),void(So=!1)}finally{p.observe(r,Eo),e._updating=f,_o=u,ko=c,wo=d}}n._readOnly||(n._readOnly=!0,Bo(n),Wr(s)&&(Object.freeze(s.anchor),Object.freeze(s.focus)),Object.freeze(s));const m=e._dirtyLeaves,g=e._dirtyElements,v=e._normalizedNodes,y=e._updateTags,b=e._deferred;l&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=Ui(e)),delete r[i])}(e,n);const x=o?null:Na(wa(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!y.has(lr)){wo=e,_o=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&Aa(t,e,r),go(a,s,e,x,y,r)}!function(e,t,n){let r=e._blockCursorElement;if(Wr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),a=o.offset;let s=!1,l=null;if(a===i.getChildrenSize()){Ta(i.getChildAtIndex(a-1))&&(s=!0)}else{const t=i.getChildAtIndex(a);if(null!==t&&Ta(t)){const n=t.getPreviousSibling();(null===n||Ta(n))&&(s=!0,l=e.getElementByKey(t.__key))}}if(s){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=Ws(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&Aa(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,Eo),wo=d,_o=u}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),a=i.length;for(let e=0;e<a;e++){const[a,s]=i[e];for(const e of s){const i=t.get(e);void 0!==i&&a(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,y,m,i),Wr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(kt,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Ho("decorator",e,!0,_)),function(e,t,n){const r=Ki(t),o=Ki(n);r!==o&&Ho("textcontent",e,!0,o)}(e,t||i,n),Ho("update",e,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:y}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;Uo(e,t,r)}}}(e)}function Ho(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Wo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let a;void 0!==o&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&$("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),a&&e._deferred.push(a),Io(e,o.tag)),null==i?Uo(e,n,o):n()}}return r}function Uo(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,Io(e,n.tag),i=n.skipTransforms||!1,a=n.discrete||!1),o&&e._deferred.push(o);const s=e._editorState;let l=e._pendingEditorState,u=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=ti(l||s),u=!0),l._flushSync=a;const c=_o,d=ko,f=wo,p=e._updating;_o=l,ko=!1,e._updating=!0,wo=e;const h=e._headless||null===e.getRootElement();gi(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Na(wa(e));return Wr(n)||null==n?io(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Wo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Wr(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(l,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);Or(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Fe(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=Fi(),a=new Map;let s=n,l=s.size,u=r,c=u.size;for(;l>0||c>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of s){const r=o.get(e);Or(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Fe(r),void 0!==r&&zo(r,i)&&Po(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){Co++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0);for(const e of u){const n=e[0],s=e[1];if(r.set(n,s),!s)continue;const l=o.get(n);void 0!==l&&zo(l,i)&&Po(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,Co++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Wo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,a=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(qo(t)&&ye(t,e,o,i,a,r),o.has(e)||r.delete(e),a.push(e)))}for(const e of a)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(s,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if(Wr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||$("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Kr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void $o(e)}finally{_o=c,ko=d,wo=f,e._updating=p,Co=0}const m=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(l,e);m?l._flushSync?(l._flushSync=!1,$o(e)):u&&_i(()=>{$o(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ko(e,t,n){wo===e&&void 0===n?t():Uo(e,t,n)}class Go{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Go(this.element,e,this.after)}withAfter(e){return new Go(this.element,this.before,e)}withElement(e){return this.element===e?this:new Go(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&$("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&$("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&$("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(X||Y||V);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Vo(t,n);o.push(r);const i=Vo(t,this.element);let a=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){a+=1;break}}return[e.getParentOrThrow(),a]}}function Vo(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&$("indexPath: root is not a parent of child"),n.reverse()}class Yo extends rr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return he[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=Ro()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(Or(t)&&e.push(t),qo(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;qo(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;qo(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return qo(e)&&e.getLastDescendant()||e||null}const r=t[e];return qo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Bi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&$(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Bi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&$(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=ue)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=pe[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=de[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return Oi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Ao();const n=so();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Or(e)||qo(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Or(e)||qo(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Wr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):no(a,r,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?pe[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){nr(this)&&$(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||$(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,a=[],s=[],l=this.getChildAtIndex(e+t);let u=null,c=r-t+n.length;if(0!==e)if(e===r)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){null===e&&$("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;Ii(e.getWritable()),s.push(n),e=t}}let d=u;for(const e of n){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&c--,Ii(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&$("append: attempting to append self"),t.__parent=i,a.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=c,s.length){const e=so();if(Wr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Jo(r,t,n)&&fo(r,r.getNode(),this,u,l),Jo(o,t,n)&&fo(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||ka(this)||this.remove()}}return o}getDOMSlot(e){return new Go(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||ka(this)||this.getChildren().some(Or)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function qo(e){return e instanceof Yo}function Jo(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class Qo extends rr{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Xo(e){return e instanceof Qo}class Zo extends Yo{__cachedText;static getType(){return"root"}static clone(){return new Zo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!To()&&0!==Ro()._dirtyType||null===e?super.getTextContent():e}remove(){$("remove: cannot be called on root nodes")}replace(e){$("replace: cannot be called on root nodes")}insertBefore(e){$("insertBefore: cannot be called on root nodes")}insertAfter(e){$("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)qo(e)||Xo(e)||$("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Gi().updateFromJSON(e)}collapseAtStart(){return!0}}function ei(e){return e instanceof Zo}function ti(e){return new oi(new Map(e._nodeMap))}function ni(){return new oi(new Map([["root",new Zo]]))}function ri(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&$(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),qo(e)){const r=t.children;Array.isArray(r)||$(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ri(o[e]);r.push(t)}}return t}class oi{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return Fo(t&&t.editor||null,this,e)}clone(e){const t=new oi(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Fo(null,this,()=>({root:ri(Gi())}))}}class ii extends Yo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ai extends Yo{static getType(){return"paragraph"}static clone(e){return new ai(e.__key)}createDOM(e){const t=document.createElement("p"),n=ua(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:si,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return li().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Or);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=li();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||Or(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function si(e){const t=li();if(e.style&&(t.setFormat(e.style.textAlign),Wa(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in pe&&t.setFormat(n)}return{node:t}}function li(){return Ca(new ai)}function ui(e){return e instanceof ai}const ci=0;function di(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=ni(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function fi(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ya(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof rr&&e!==rr?e:void 0}}return t}function pi(e){const t=e||{},n=Oo(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=ni(),s=t.namespace||(null!==o?o._config.namespace:Xi()),l=t.editorState,u=[Zo,kr,fr,zr,ai,ii,...t.nodes||[]],{onError:c,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<u.length;e++){let t=u[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ya(t);{const e=t.name,o=Ga(t,"getType")&&t.getType();r?r.prototype instanceof t||$(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==rr&&(["getType","clone"].forEach(n=>{Ga(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Ga(t,"importDOM")&&Va(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Ga(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=fi(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Ne(u[e]),transforms:i})}}const h=new hi(a,o,p,{disableEvents:i,namespace:s,theme:r},c||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)}),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==l&&(h._pendingEditorState=l,h._dirtyType=2),function(e){e.registerCommand(Et,$n,ci),e.registerCommand(Tt,Hn,ci),e.registerCommand(At,Wn,ci),e.registerCommand(Nt,Un,ci),e.registerCommand($t,Gn,ci)}(h),h}class hi{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,a,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Xi(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&$('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&$(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const a=n&&n.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&$(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Ba(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=Ba(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update(()=>{for(const e of r)for(const t of e.keys()){const e=Bi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ir}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return ma(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=ua(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,di(this,t,e,r),null!==t&&(this._config.disableEvents||Zn(t),null!=n&&t.classList.remove(...n)),null!==e){const t=_a(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,Ae(this),this._updateTags.add(ir),$o(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Cn.set(e,n);const r=En.get(n)??0;r<1&&n.addEventListener("selectionchange",qn),En.set(n,r+1),e.__lexicalEditor=t;const o=Vn(e);for(let n=0;n<xn.length;n++){const[r,i]=xn[n],a="function"==typeof i?e=>{Qn(e)||(Jn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Qn(e))return;Jn(e);const n=t.isEditable();switch(r){case"cut":return n&&ma(t,cn,e);case"copy":return ma(t,un,e);case"paste":return n&&ma(t,Pt,e);case"dragstart":return n&&ma(t,an,e);case"dragover":return n&&ma(t,sn,e);case"dragend":return n&&ma(t,ln,e);case"focus":return n&&ma(t,gn,e);case"blur":return n&&ma(t,vn,e);case"drop":return n&&ma(t,rn,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ir),$o(this);Ho("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&$("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=ti(e),n._selection=e._selection?e._selection.clone():null),Te(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),$o(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||$o(this)}parseEditorState(e,t){return function(e,t,n){const r=ni(),o=_o,i=ko,a=wo,s=t._dirtyElements,l=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,_o=r,ko=!1,wo=t,gi(null);try{const o=t._nodes;jo(e.root,o),n&&n(),r._readOnly=!0,Bo(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,_o=o,ko=i,wo=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return $o(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Uo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ko(this,()=>{const r=so(),o=Gi();null!==r?r.dirty||Yi(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ba("focus"),function(e){Ao();Ro()._deferred.push(e)}(()=>{n.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Na(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ho("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}hi.version="0.41.0+dev.esm";let mi=null;function gi(e){mi=e}let yi=1;function bi(e,t){const n=xi(e,t);return void 0===n&&$(`registeredNode: Type ${t} not found`),n}function xi(e,t){return e._nodes.get(t)}const _i="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function wi(e){return Xo(Wi(e))}function ki(e){const t=document.activeElement;if(!Ra(t))return!1;const n=t.nodeName;return Xo(Wi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Ti(t))}function Si(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ki(t)&&Ei(t)===e}catch(e){return!1}}function Ci(e){return e instanceof hi}function Ei(e){let t=e;for(;null!=t;){const e=Ti(t);if(Ci(e))return e;t=va(t)}return null}function Ti(e){return e?e.__lexicalEditor:null}function Ai(e){return Dr(e)||e.isToken()}function Ni(e){return Ai(e)||e.isSegmented()}function Li(e){return Ma(e)&&3===e.nodeType}function Ri(e){return Ma(e)&&9===e.nodeType}function Mi(e){let t=e;for(;null!=t;){if(Li(t))return t;t=t.firstChild}return null}function Oi(e,t,n){const r=de[t];if(null!==n&&(e&r)===(n&r))return e;let o=e^r;return"subscript"===t?o&=-65:"superscript"===t?o&=-33:"lowercase"===t?(o&=-513,o&=-1025):"uppercase"===t?(o&=-257,o&=-1025):"capitalize"===t&&(o&=-257,o&=-513),o}function Pi(e){return Or(e)||mr(e)||Xo(e)}function zi(e,t){const n=function(){const e=mi;return mi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=_o;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&$(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Ao(),No();const r=Ro(),o=Lo(),i=""+yi++;o._nodeMap.set(i,e),qo(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Ii(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=null!==i?i.__key:null,s=null!==o?o.__key:null,l=null!==o?o.getWritable():null,u=null!==i?i.getWritable():null;null===o&&(r.__first=a),null===i&&(r.__last=s),null!==l&&(l.__next=a),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Di(e){No(),nr(e)&&$(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=Lo(),o=Ro(),i=r._nodeMap,a=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,a);const s=t.__key;o._dirtyType=1,qo(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function ji(e){Ao();const t=Ro(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Bi(n);null!==e&&e.getWritable()}if(null!==e){const t=Bi(e);null!==t&&t.getWritable()}}}function Fi(){if(To())return null;return Ro()._compositionKey}function Bi(e,t){const n=(t||Lo())._nodeMap.get(e);return void 0===n?null:n}function $i(e,t){const n=Hi(e,Ro());return void 0!==n?Bi(n,t):null}function Hi(e,t){return e[`__lexicalKey_${t._key}`]}function Wi(e,t){let n=e;for(;null!=n;){const e=$i(n,t);if(null!==e)return e;n=va(n)}return null}function Ui(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Ki(e){return e.read(()=>Gi().getTextContent())}function Gi(){return Vi(Lo())}function Vi(e){return e._nodeMap.get("root")}function Yi(e){Ao();const t=Lo();null!==e&&(Object.isFrozen(e)&&$("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function qi(e){const t=Ro(),n=function(e,t){let n=e;for(;null!=n;){const e=Hi(n,t);if(void 0!==e)return e;n=va(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Bi("root"):null}return Bi(n)}function Ji(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Qi(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Xi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Zi(e){return Li(e)?e.nodeValue:null}function ea(e,t,n){const r=Na(wa(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Zi(o);const r=Wi(o);if(null!==t&&Or(r)){if((t===le||t===ce)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&ta(r,t,i,a,e)}}}function ta(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const a=i.isComposing();let s=t;if((a||o)&&(t.endsWith(le)&&(s=t.slice(0,-le.length)),o)){const e=ce;let t;for(;-1!==(t=s.indexOf(e));)s=s.slice(0,t)+s.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const l=i.getTextContent();if(o||s!==l){if(""===s){if(ji(null),V||Y||X)i.remove();else{const e=Ro();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=lo(),l=i.getTextContentSize(),u=Fi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Wr(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!a||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!a))return void i.markDirty();const d=so();if(!Wr(d)||null===n||null===r)return void na(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Mr(i.getTextContent());i.replace(e),i=e}na(i,s,d)}}}function na(e,t,n){if(e.setTextContent(t),Wr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=fs(e,o.offset,"clamp"))}}}function ra(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function oa(e,t,n){if(!function(e,t){return ra(e,t,"altKey")&&ra(e,t,"ctrlKey")&&ra(e,t,"shiftKey")&&ra(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const ia={ctrlKey:!U,metaKey:U},aa={altKey:U,ctrlKey:!U};function sa(e){return"Backspace"===e.key}function la(e){return oa(e,"a",ia)}function ua(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=Ws(o);return n[t]=e,e}return o}function ca(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&$(`Type ${i} not in registeredNodes`);const l=s.klass;let u=e.get(l);void 0===u&&(u=new Map,e.set(l,u));const c=u.get(a),d="destroyed"===c&&"created"===o;(void 0===c||d)&&u.set(a,d?"updated":o)}function da(e){const t=e.getType(),n=Lo();if(n._readOnly){const e=Ba(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function fa(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function pa(e,t){const n=e.offset;if("element"===e.type){return fa(e.getNode(),t,n)}{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?fa(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function ha(e){const t=wa(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function ma(e,t,n){return function(e,t,n){const r=Qi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const a=r[i],s=a._commands.get(t);if(void 0!==s){const t=s[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Ko(a,()=>{for(let t=0;t<o;t++)if(r[t](n,e))return void(i=!0)}),i)return i}}}return!1}(e,t,n)}function ga(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&$(`Reconciliation: could not find DOM element for node key ${t}`),n}function va(e){const t=e.assignedSlot||e.parentElement;return Oa(t)?t.host:t}function ya(e){return Ri(e)?e:Ra(e)?e.ownerDocument:null}function ba(e){Ao();Ro()._updateTags.add(e)}function xa(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function _a(e){const t=ya(e);return t?t.defaultView:null}function wa(e){const t=e._window;return null===t&&$("window object not found"),t}function ka(e){return ei(e)||qo(e)&&e.isShadowRoot()}function Sa(e){const t=e.constructor.clone(e);return zi(t,null),t.afterCloneFrom(e),t}function Ca(e){const t=Ro(),n=e.getType(),r=xi(t,n);void 0===r&&$(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||$(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||$(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&$(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function Ea(e,t){!ei(e.getParent())||qo(t)||Xo(t)||$("Only element or decorator nodes can be inserted in to the root node")}function Ta(e){return(Xo(e)||qo(e)&&!e.canBeEmpty())&&!e.isInline()}function Aa(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Na(e){return H?(e||window).getSelection():null}function La(e){return Ra(e)&&"A"===e.tagName}function Ra(e){return Ma(e)&&1===e.nodeType}function Ma(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Oa(e){return Ma(e)&&11===e.nodeType}function Pa(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function za(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function Ia(e){if(Xo(e)&&!e.isInline())return!0;if(!qo(e)||ka(e))return!1;const t=e.getFirstChild(),n=null===t||mr(t)||Or(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Da(){return Ro()}const ja=new WeakMap,Fa=new Map;function Ba(e){if(!e._readOnly&&e.isEmpty())return Fa;e._readOnly||$("getCachedTypeToNodeMap called with a writable EditorState");let t=ja.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),ja.set(e,t)),t}function $a(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ha(e){return function(e){return e[tr]=!0,e}($a(e))}function Wa(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Ua(e){return!0===e.__lexicalUnmanaged}function Ka(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ga(e,t){return Ka(e,t)&&e[t]!==rr[t]}function Va(e){return Ka(e.prototype,"exportDOM")}function Ya(e){const t=ve in e.prototype?e.prototype[ve]():void 0,n=function(e){if(!(e===rr||e.prototype instanceof rr)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{hi.version&&(n=JSON.parse(hi.version))}catch(e){}$(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Qo||e===Yo||e===rr}(e),r=!n&&Ga(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(Ga(e,"getType")||(e.getType=()=>i),Ga(e,"clone")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(gi(t),new e)),Ga(e,"importJSON")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ga(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const qa=(e,t)=>{let n=e;for(;null!=n&&!ei(n);){if(t(n))return n;n=n.getParent()}return null},Ja={next:"previous",previous:"next"};class Qa{origin;constructor(e){this.origin=e}[Symbol.iterator](){return _s({hasNext:is,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return cs(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return cs(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),a=new Map;for(let t=o.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();a.set(e.getKey(),e)}for(const e of r){if(a.size>0){const t=o.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&$(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(a).join(" ")})`)}else o.insert(e);o=cs(e,this.direction)}for(const e of a.values())e.remove();return this}}class Xa extends Qa{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:hs(e,this.direction)}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=es(this.direction);return cs(this.getNodeAtCaret(),e)||hs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Xa&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Za={root:ei,shadowRoot:ka};function es(e){return Ja[e]}function ts(e,t="root"){return Za[t](e)?null:e}class ns extends Qa{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:cs(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return qo(this.origin)?hs(this.origin,this.direction):null}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=es(this.direction);return cs(this.getNodeAtCaret(),e)||hs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof ns&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof ns||e instanceof rs)&&this.direction===e.direction&&this.origin.is(e.origin)}}class rs extends Qa{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ds(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ds(this.origin,es(this.direction),this.offset)}isSamePointCaret(e){return e instanceof rs&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof ns||e instanceof rs)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return cs(this.origin,this.direction)}}function os(e){return e instanceof rs}function is(e){return e instanceof ns}function as(e){return e instanceof Xa}const ss={next:class extends rs{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rs{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ls={next:class extends ns{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ns{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},us={next:class extends Xa{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Xa{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function cs(e,t){return e?new ls[t](e):null}function ds(e,t,n){return e?new ss[t](e,fs(e,n)):null}function fs(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&$(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function ps(e,t){return new vs(e,t)}function hs(e,t){return qo(e)?new us[t](e):null}function ms(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class gs{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new gs(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return os(t)?function(e,t){const{direction:n,origin:r}=e,o=fs(r,"focus"===t?es(n):n);return ps(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ps(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=os(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=os(n),o=t=>t.isSameNodeCaret(n)?null:ms(t)||t.getParentCaret(e);return _s({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class vs{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return ds(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function ys(e){return xs(e,cs(Gi(),e.direction))}function bs(e){return xs(e,e)}function xs(e,t){return e.direction!==t.direction&&$("$getCaretRange: anchor and focus must be in the same direction"),new gs(e,t,e.direction)}function _s(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function ws(e,t){const n=Es(e.origin,t.origin);switch(null===n&&$(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return ks(n)}}function ks(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,a=n;for(;i&&a;i=i.getNextSibling(),a=a.getNextSibling()){if(i.__key===o)return-1;if(a.__key===r)return 1}return null===i?1:-1}function Ss(e,t){return t.is(e)}function Cs(e){return qo(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Es(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Cs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Cs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Ss(e,r)||$("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Ss(t,r)||$("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((qo(i)||Ss(e,i))&&(qo(o)||Ss(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||$("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Ts(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Bi(e);return null===t&&$(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Or(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),ds(i,t,o)):(qo(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=hs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Ds(r,n)}(i,e.offset,t))}function As(e,t){const{origin:n,direction:r}=t,o="next"===r;os(t)?e.set(n.getKey(),t.offset,"text"):is(t)?Or(n)?e.set(n.getKey(),fs(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(as(t)&&qo(n)||$("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Ns(e){const t=so(),n=Wr(t)?t:ro();return Ls(n,e),Yi(n),n}function Ls(e,t){As(e.anchor,t.anchor),As(e.focus,t.focus)}function Rs(e){const{anchor:t,focus:n}=e,r=Ts(t,"next"),o=Ts(n,"next"),i=ws(r,o)<=0?"next":"previous";return xs(Ds(r,i),Ds(o,i))}function Ms(e){const{direction:t,origin:n}=e,r=cs(n,es(t)).getNodeAtCaret();return r?cs(r,t):hs(n.getParentOrThrow(),t)}function Os(e,t="root"){const n=[e];for(let r=as(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Ms(r));return n}function Ps(e){return!!e&&e.origin.isAttached()}function zs(e){const t=function(e){let t=e;for(;as(t);){const e=ms(t);if(!as(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Or(t.origin))return os(t)?t:ds(t.origin,n,n);const r=t.getAdjacentCaret();return is(r)&&Or(r.origin)?ds(r.origin,n,es(n)):t}function Is(e){return os(e)&&e.offset!==fs(e.origin,e.direction)}function Ds(e,t){return e.direction===t?e:e.getFlipped()}function js(e,t){return e.direction===t?e:xs(Ds(e.focus,t),Ds(e.anchor,t))}function Fs(e){const{origin:t,offset:n,direction:r}=e;if(n===fs(t,r))return e.getSiblingCaret();if(n===fs(t,es(r)))return Ms(e.getSiblingCaret());const[o]=t.splitText(n);return Or(o)||$("$splitTextPointCaret: splitText must return at least one TextNode"),Ds(cs(o,"next"),r)}function Bs(e,t){return!0}function $s(e,{$copyElementNode:t=Sa,$splitTextPointCaretNext:n=Fs,rootMode:r="shadowRoot",$shouldSplit:o=Bs}={}){if(os(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(as(e)&&(!n.canBeEmpty()||!o(n,"first")))return Ms(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function Hs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Ws(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function Us(e,...t){const n=Ws(...t);n.length>0&&e.classList.add(...n)}function Ks(e,...t){const n=Ws(...t);n.length>0&&e.classList.remove(...n)}function Gs(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Vs(e){throw new Error(e)}const Ys=new Map;function qs(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Js(e){let t=Ys.get(e);return void 0===t&&(t=qs(e),Ys.set(e,t)),Object.freeze(t),t}function Qs(e){const t=Da().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Xs(e){return Qs(ei(e)?e:e.getParentOrThrow())}function Zs(e){const t=Xs(e);return null!==t&&"rtl"===t.direction}function el(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ni(t)&&null!==r){const[o,i]=r,a=e.isBackward(),s=o.getNode(),l=i.getNode(),u=t.is(s),c=t.is(l);if(u||c){const[r,o]=Vr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(u){f=a?o:r,d=void 0}else if(c){f=0,d=a?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=Ha(t)),t.__text=p)}}return t}function tl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return qo(t)||Vs("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function nl(e){const t=e.getStyle(),n=qs(t);Ys.set(t,n)}function rl(e,t){(Wr(e)?e.isCollapsed():Or(e)||qo(e))||Vs("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Js(Wr(e)?e.style:Or(e)?e.getStyle():e.getTextStyle()),r=Object.entries(t).reduce((t,[r,o])=>("function"==typeof o?t[r]=o(n[r],e):null===o?delete t[r]:t[r]=o,t),{...n}),o=function(e){let t="";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}(r);Wr(e)||Or(e)?e.setStyle(o):e.setTextStyle(o),Ys.set(o,r)}function ol(e,t){if(Wr(e)&&e.isCollapsed()){rl(e,t);const n=e.anchor.getNode();qo(n)&&n.isEmpty()&&rl(n,t)}!function(e){const t=so();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Wr(t))for(const e of Rs(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Or(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ni(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Wr(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:r,offset:o,type:i}=t;t.set(n.key,n.offset,n.type),n.set(r,o,i)}}(t)}(e=>{rl(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!qo(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),rl(r,t))}}}function il(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function al(e){const t=sl(e);return null!==t&&"vertical-rl"===t.writingMode}function sl(e){const t=e.anchor.getNode();return qo(t)?Qs(t):Xs(t)}function ll(e,t){let n=al(e)?!t:t;ul(e)&&(n=!n);const r=Ts(e.focus,n?"previous":"next");if(Is(r))return!1;for(const e of ys(r)){if(as(e))return!e.origin.isInline();if(!qo(e.origin)){if(Xo(e.origin))return!0;break}}return!1}function ul(e){const t=sl(e);return null!==t&&"rtl"===t.direction}function cl(e,t,n){const r=ul(e);let o;o=al(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function dl(e,t,n){const r=Js(e.getStyle());return null!==r&&r[t]||n}function fl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,a=e.focus,s=e.isBackward(),l=s?a.offset:i.offset,u=s?a.getNode():i.getNode();if(Wr(e)&&e.isCollapsed()&&""!==e.style){const n=Js(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<o.length;e++){const i=o[e];if((0===e||0!==l||!i.is(u))&&Or(i)){const e=dl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function pl(e){throw new Error(e)}const hl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ml=hl&&"documentMode"in document?document.documentMode:null;function gl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function vl(e){const t=qa(e,e=>qo(e)&&!e.isInline());return qo(t)||pl(`Expected node ${e.__key} to have closest block element node.`),t}function yl(e){const t=so()||lo();let n;if(Wr(t))n=Ts(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=cs(r,"next"))}n=n||hs(Gi(),"previous").getFlipped().insert(li())}const r=bl(e,n),o=ms(r);return Ns(bs(as(o)?zs(o):r)),e.getLatest()}function bl(e,t,n){let r=Ds(t,"next");for(let e=r;e;e=$s(e,n))r=e;return os(r)&&pl("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?li().append(e):e),Ds(cs(e.getLatest(),"next"),t.direction)}function xl(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function _l(e){const t=so();if(!Wr(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const a=qa(o,e=>qo(e)&&!e.isInline());if(null===a)continue;const s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),e(a))}return n.size>0}hl&&"InputEvent"in window&&!ml&&new window.InputEvent("input");const wl=Symbol.for("preact-signals");function kl(){if(Tl>1)return void Tl--;let e,t=!1;for(;void 0!==Cl;){let n=Cl;for(Cl=void 0,Al++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ol(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Al=0,Tl--,t)throw e}let Sl,Cl;function El(e){const t=Sl;Sl=void 0;try{return e()}finally{Sl=t}}let Tl=0,Al=0,Nl=0;function Ll(e){if(void 0===Sl)return;let t=e.n;return void 0===t||t.t!==Sl?(t={i:0,S:e,p:Sl.s,n:void 0,t:Sl,e:void 0,x:void 0,r:t},void 0!==Sl.s&&(Sl.s.n=t),Sl.s=t,e.n=t,32&Sl.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Sl.s,t.n=void 0,Sl.s.n=t,Sl.s=t),t):void 0}function Rl(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Ml(e,t){return new Rl(e,t)}function Ol(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Pl(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function zl(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Il(e,t){Rl.call(this,void 0),this.x=e,this.s=void 0,this.g=Nl-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Dl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Tl++;const n=Sl;Sl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,jl(e),t}finally{Sl=n,kl()}}}function jl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dl(e)}function Fl(e){if(Sl!==this)throw new Error("Out-of-order effect");zl(this),Sl=e,this.f&=-2,8&this.f&&jl(this),kl()}function Bl(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function $l(e,t){const n=new Bl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Hl(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Wl(e){throw new Error(e)}function Ul(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Ul(n[e],r[e]);return e}return t}Rl.prototype.brand=wl,Rl.prototype.h=function(){return!0},Rl.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:El(()=>{var e;null==(e=this.W)||e.call(this)}))},Rl.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&El(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Rl.prototype.subscribe=function(e){return $l(()=>{const t=this.value,n=Sl;Sl=void 0;try{e(t)}finally{Sl=n}},{name:"sub"})},Rl.prototype.valueOf=function(){return this.value},Rl.prototype.toString=function(){return this.value+""},Rl.prototype.toJSON=function(){return this.value},Rl.prototype.peek=function(){const e=Sl;Sl=void 0;try{return this.value}finally{Sl=e}},Object.defineProperty(Rl.prototype,"value",{get(){const e=Ll(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Al>100)throw new Error("Cycle detected");this.v=e,this.i++,Nl++,Tl++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{kl()}}}}),Il.prototype=new Rl,Il.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Nl)return!0;if(this.g=Nl,this.f|=1,this.i>0&&!Ol(this))return this.f&=-2,!0;const e=Sl;try{Pl(this),Sl=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Sl=e,zl(this),this.f&=-2,!0},Il.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}Rl.prototype.S.call(this,e)},Il.prototype.U=function(e){if(void 0!==this.t&&(Rl.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Il.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Il.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Ll(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Bl.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},Bl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dl(this),Pl(this),Tl++;const e=Sl;return Sl=this,Fl.bind(this,e)},Bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cl,Cl=this)},Bl.prototype.d=function(){this.f|=8,1&this.f||jl(this)},Bl.prototype.dispose=function(){this.d()};const Kl=0,Gl=1,Vl=2,Yl=3,ql=4,Jl=5,Ql=6,Xl=7;function Zl(e){return e.id===Kl}function eu(e){return e.id===Vl}function tu(e){return function(e){return e.id===Gl}(e)||Wl(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Gl)} temporary)`),Object.assign(e,{id:Vl})}const nu=new Set;class ru{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Kl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Hs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;eu(t)||Wl(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:Yl,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:ql,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==ql&&Wl(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Jl)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Jl,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Jl&&Wl(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Jl)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Ql})}(n),()=>{const e=this.state;e.id!==Xl&&Wl(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(Xl)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Jl})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Ql&&Wl(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Ql)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:Xl})}(t),n}getSignal(){return void 0===this._signal&&Wl("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Wl(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=ql}(e)||Wl(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(ql)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=Yl}(e)||Wl(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(Yl)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Wl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Wl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=Xl}(e)||Wl(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(Xl)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||nu}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=Jl})(e)||Wl(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const ou={tag:ir};function iu(){const e=Gi();e.isEmpty()&&e.append(li())}const au={config:{setOptions:ou,updateOptions:ou},init:({$initialEditorState:e=iu})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof oi)e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Zo,kr,fr,zr,ai]},su=Symbol.for("@lexical/extension/LexicalBuilder");function lu(){}function uu(e){throw e}function cu(e){return Array.isArray(e)?e:[e]}const du="0.41.0+dev.esm";class fu{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=du,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[cu(au)];for(const n of e)t.push(cu(n));return new fu(t)}static maybeFromEditor(e){const t=e[su];return t&&(t.PACKAGE_VERSION!==du&&Wl(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${du}. A project should have exactly one copy of LexicalBuilder`),t instanceof fu||Wl("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=fu.maybeFromEditor(e);return void 0===t&&Wl("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(pi({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[su]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=lu;function t(){try{e()}finally{e=lu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Gs(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Wl(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Wl("LexicalBuilder: addExtension called after finalization");const t=cu(e),[n]=t;"string"!=typeof n.name&&Wl("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Wl(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new ru(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Wl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Wl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=cu(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(eu(o))return;const i=n.extension.name;var a;Zl(o)||Wl(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),Zl(a=o)||Wl(`LexicalBuilder: Can not apply a temporary mark from state id ${String(a.id)} (expected ${String(Kl)} unmarked)`),o=Object.assign(a,{id:Gl}),n.state=o;const s=this.outgoingConfigEdges.get(i);if(s)for(const e of s.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=tu(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Zl(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Wl(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Gs(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},a=this.sortedExtensionReps();for(const s of a){const{extension:a}=s;if(void 0!==a.onError&&(e.onError=a.onError),void 0!==a.disableEvents&&(e.disableEvents=a.disableEvents),void 0!==a.parentEditor&&(e.parentEditor=a.parentEditor),void 0!==a.editable&&(e.editable=a.editable),void 0!==a.namespace&&(e.namespace=a.namespace),void 0!==a.$initialEditorState&&(e.$initialEditorState=a.$initialEditorState),a.nodes)for(const e of Hl(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&Wl(`LexicalBuilder: Extension ${a.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,s)}t.add(e)}if(a.html){if(a.html.export)for(const[e,t]of a.html.export.entries())r.set(e,t);a.html.import&&Object.assign(o,a.html.import)}a.theme&&Ul(i,a.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const s=Object.keys(o).length>0,l=r.size>0;(s||l)&&(e.html={},s&&(e.html.import=o),l&&(e.html.export=r));for(const t of a)t.init(e);return e.onError||(e.onError=uu),e}}function pu(e){return e.canBeEmpty()}function hu(e,t,n=pu){return Gs(e.registerCommand(Zt,t=>{const n=so();if(!Wr(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>to(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=vl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=ro();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Be(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?nn:tn:en;return e.dispatchCommand(r,void 0)},ci),e.registerCommand(tn,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Wr(so()))return!1;const r="function"==typeof n?n:n.peek();return _l(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}const mu=new Set(["http:","https:","mailto:","sms:","tel:"]);class gu extends Yo{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new gu(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Us(t,e.theme.link),t}updateLinkDOM(e,t,n){if(La(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,o=this[r];e&&e[r]===o||(o?t[n]=o:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:xu,priority:1})}}static importJSON(e){return _u().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=Lu(e);try{const t=new URL(Lu(e));if(!mu.has(t.protocol))return"about:blank"}catch(t){return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){const t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){const t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){const t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){const n=_u(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Wr(t))return!1;const r=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function vu(e){const t=Ts(e,"next");return[t,t.getFlipped()]}function yu(e,t){for(const n of t)if(n.origin.isAttached()){return void As(e,zs(n))}}function bu(e){const t=so();let n=null,r=null;Wr(t)&&(n=vu(t.anchor),r=vu(t.focus));for(const t of hs(e,"next")){const n=t.origin;if(qo(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Sa(e);t.append(...r),n.append(t)}bl(n,Ms(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Wr(t)&&(yu(t.anchor,n),yu(t.focus,r),Be(t))}function xu(e){let t=null;if(La(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=_u(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function _u(e="",t){return Ca(new gu(e,t))}function wu(e){return e instanceof gu}class ku extends gu{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new ku(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return Su().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){const n=Su(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Su(e="",t){return Ca(new ku(e,t))}function Cu(e){return e instanceof ku}const Eu=wt("TOGGLE_LINK_COMMAND");function Tu(e,t){if("element"===e.type){const n=e.getNode();qo(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Au(e,t={}){let n;if(e&&"object"==typeof e){const{url:r,...o}=e;n=r,t={...o,...t}}else n=e;const{target:r,title:o}=t,i=void 0===t.rel?"noreferrer":t.rel,a=so();if(null===a||!Wr(a)&&!Kr(a))return;if(Kr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=qa(e,e=>!Cu(e)&&wu(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=qa(e,e=>!Cu(e)&&wu(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=_u(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=qa(e,e=>!Cu(e)&&wu(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const s=a.extract();if(null===n){const e=new Set;return void s.forEach(t=>{const n=qa(t,e=>!Cu(e)&&wu(e));if(null!==n){const t=n.getKey();if(e.has(t))return;!function(e,t){const n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),o=r=>n.has(r.getKey())||qo(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),i=r.filter(o);if(i.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();const a=r.findIndex(o),s=r.findLastIndex(o),l=0===a,u=s===r.length-1;if(l)i.forEach(t=>e.insertBefore(t));else if(u)for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);else{for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);const t=r.slice(s+1);if(t.length>0){const n=_u(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});i[i.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,s),e.add(t)}})}const l=new Set,u=e=>{l.has(e.getKey())||(l.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==i&&e.setRel(i),void 0!==o&&e.setTitle(o))};if(1===s.length){const e=s[0],t=qa(e,wu);if(null!==t)return u(t)}!function(e){const t=so();if(!Wr(t))return e();const n=Be(t),r=n.isBackward(),o=Tu(n.anchor,r?-1:0),i=Tu(n.focus,r?0:-1),a=e();if(o||i){const e=so();if(Wr(e)){const t=e.clone();if(o){const e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+(r?1:0),"element")}if(i){const e=i.getParent();e&&t.focus.set(e.getKey(),i.getIndexWithinParent()+(r?0:1),"element")}Yi(Be(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=qa(t,wu);if(a){u(a);continue}if(qo(t)){if(!t.isInline())continue;if(wu(t)){if(!(Cu(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){u(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const s=t.getPreviousSibling();wu(s)&&s.is(e)?s.append(t):(e=_u(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Nu=/^\+?[0-9\s()-]{5,}$/;function Lu(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Nu.test(e)?`tel:${e}`:`https://${e}`}function Ru(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Mu=/[.,;\s]/;function Ou(e){return Mu.test(e)}function Pu(e){return Ou(e[e.length-1])}function zu(e){return Ou(e[0])}function Iu(e){let t=e.getPreviousSibling();return qo(t)&&(t=t.getLastDescendant()),null===t||mr(t)||Or(t)&&Pu(t.getTextContent())}function Du(e){let t=e.getNextSibling();return qo(t)&&(t=t.getFirstDescendant()),null===t||mr(t)||Or(t)&&zu(t.getTextContent())}function ju(e,t,n,r){if(!(e>0?Ou(n[e-1]):Iu(r[0])))return!1;return t<n.length?Ou(n[t]):Du(r[r.length-1])}function Fu(e,t,n){const r=[],o=[],i=[];let a=0,s=0;const l=[...e];for(;l.length>0;){const e=l[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),a+=u):c>=n?i.push(e):o.push(e),s+=u,l.shift()}return[a,r,o,i]}function Bu(e,t,n,r){const o=Su(r.url,r.attributes);if(1===e.length){let i,a=e[0];0===t?[i,a]=a.splitText(n):[,i,a]=a.splitText(t,n);const s=Mr(r.text);return s.setFormat(i.getFormat()),s.setDetail(i.getDetail()),s.setStyle(i.getStyle()),o.append(s),i.replace(o),a}if(e.length>1){const r=e[0];let i,a=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const s=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=a;if(i<n)if(a+o<=n)s.push(r);else{const[e,t]=r.splitText(n-i);s.push(e),l=t}a+=o}const u=so(),c=u?u.getNodes().find(Or):void 0,d=Mr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Wr(u)?d.select(u.anchor.offset,u.focus.offset):Kr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function $u(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Or(o)||!o.isSimpleText())return Hu(e),void n(null,e.getURL())}const i=e.getTextContent(),a=Ru(i,t);if(null===a||a.text!==i)return Hu(e),void n(null,e.getURL());if(!Iu(e)||!Du(e))return Hu(e),void n(null,e.getURL());const s=e.getURL();if(s!==a.url&&(e.setURL(a.url),n(a.url,s)),a.attributes){const t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),n(a.attributes.rel||null,t));const r=e.getTarget();r!==a.attributes.target&&(e.setTarget(a.attributes.target||null),n(a.attributes.target||null,r))}}function Hu(e){const t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}const Wu={changeHandlers:[],excludeParents:[],matchers:[]};function Uu(e,t=Wu){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Gs(e.registerNodeTransform(kr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Cu(t)&&!t.getIsUnlinked())$u(t,n,i);else if(!wu(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(zu(e.getTextContent())||!Cu(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Or(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e);!function(e,t,n){for(const t of e){const e=t.getParent();if(Cu(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=Ru(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(ju(s+e,s+t,o,r)){const[o,,l,u]=Fu(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Cu(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=Bu(l,s+e-o,s+t-o,i);r=d?[d,...u]:u,n(i.url,null),s=0}else s+=t;a=a.substring(t)}}(t,n,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();if(!Cu(r)||r.getIsUnlinked()){if(Cu(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!zu(a))return Hu(o),void n(null,o.getURL());if(s=a,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(s):/^\.[a-zA-Z0-9]{1,}/.test(s)){const r=o.getTextContent()+a,i=Ru(r,t);null!==i&&i.text===r&&(o.append(e),$u(o,t,n),n(null,o.getURL()))}}var s;!Cu(i)||i.getIsUnlinked()||Pu(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Hu(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(Eu,e=>{const t=so();if(null!==e||!Wr(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Cu(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function Ku(e){throw new Error(e)}function Gu(e){let t=1,n=e.getParent();for(;null!=n;){if(cc(n)){const e=n.getParent();if(vc(e)){t++,n=e.getParent();continue}Ku("A ListItemNode must have a ListNode for a parent.")}return t}return t}function Vu(e){let t=e.getParent();vc(t)||Ku("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),vc(n)&&(t=n);return t}function Yu(e){let t=[];const n=e.getChildren().filter(cc);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();vc(o)?t=t.concat(Yu(o)):t.push(r)}return t}function qu(e){return cc(e)&&vc(e.getFirstChild())}function Ju(e){return uc().append(e)}function Qu(e,t){return cc(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function Xu(e){const t=so();if(null!==t){let n=t.getNodes();if(Wr(t)){const r=t.getStartEndPoints();null===r&&Ku("insertList: anchor should be defined");const[o]=r,i=o.getNode(),a=i.getParent();if(ka(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=li();i.append(e),n=e.select().getNodes()}}else if(Qu(i,n)){const t=gc(e);if(ka(a)){i.replace(t);const e=uc();qo(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(cc(i)){const e=i.getParentOrThrow();Zu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(qo(o)&&o.isEmpty()&&!cc(o)&&!r.has(o.getKey())){ec(o,e);continue}let i=Pi(o)?o.getParent():cc(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(vc(i)){if(!r.has(t)){const n=gc(e);Zu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(ka(n)&&!r.has(t)){r.add(t),ec(i,e);break}i=n}}}}}function Zu(e,t){e.splice(e.getChildrenSize(),0,t)}function ec(e,t){if(vc(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=uc();let i;if(Zu(o,e.getChildren()),vc(n)&&t===n.getListType())n.append(o),vc(r)&&t===r.getListType()&&(Zu(n,r.getChildren()),r.remove()),i=n;else if(vc(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=gc(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=so();return Wr(a)&&(i.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),i.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),i}function tc(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&qu(n)&&qu(r)&&(tc(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function nc(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())cc(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),vc(r.getFirstChild())||n++)}function rc(e){const t=new Set;if(qu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(qu(r)&&qu(o)){const n=o.getFirstChild();if(vc(n)){n.append(e);const o=r.getFirstChild();if(vc(o)){Zu(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(qu(r)){const t=r.getFirstChild();if(vc(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(qu(o)){const t=o.getFirstChild();vc(t)&&t.append(e)}else if(vc(n)){const t=uc().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=gc(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(i),i.append(e),o?o.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function oc(e){if(qu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(vc(n?n.getParent():void 0)&&cc(n)&&vc(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const r=t.getListType(),o=uc(),i=gc(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=uc(),s=gc(r);a.append(s),Zu(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}function ic(e=!1){const t=so();if(!Wr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(cc(n)&&0===n.getChildrenSize())r=n;else if(Or(n)){const e=n.getParent();cc(e)&&e.getChildren().every(e=>Or(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=Vu(r),i=r.getParent();vc(i)||Ku("A ListItemNode must have a ListNode for a parent.");const a=i.getParent();let s;if(ka(a))s=li(),o.insertAfter(s);else{if(!cc(a))return!1;s=uc(),a.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const l=r.getNextSiblings();if(l.length>0){const t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(i,r):1,n=gc(i.getListType(),t);if(cc(s)){const e=uc();e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...l)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!cc(e)&&!vc(e))break;t=e}t.remove()}(r),!0}class ac extends Yo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();vc(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Yo,importDOM:{li:()=>({conversion:sc,priority:0})}})}constructor(e=1,t=void 0,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t,n){const r=t.getParent();!vc(r)||"check"!==r.getListType()||vc(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,n){const r=[],o=[],i=t.list,a=i?i.listitem:void 0;let s;i&&i.nested&&(s=i.nested.listitem);void 0!==a&&r.push(...Ws(a));if(i){const e=n.getParent(),t=vc(e)&&"check"===e.getListType(),a=n.getChecked();t&&!a||o.push(i.listitemUnchecked),t&&a||o.push(i.listitemChecked),t&&r.push(a?i.listitemChecked:i.listitemUnchecked)}if(void 0!==s){const e=Ws(s);n.getChildren().some(e=>vc(e))?r.push(...e):o.push(...e)}o.length>0&&Ks(e,...o);r.length>0&&Us(e,...r)}(t,n.theme,this);const r=e?e.__style:"",o=this.__style;r!==o&&(""===o?t.removeAttribute("style"):t.style.cssText=o),function(e,t,n){const r=Js(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Js(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){const r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);const r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){const n=e[t];if(qo(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(cc(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!vc(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=gc(n.getListType());let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(qo(e)||Ku("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(vc(n)||Ku("insertAfter: list node is not parent of list item node"),cc(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=gc(n.getListType());r.forEach(e=>o.append(e)),e.insertAfter(o,t)}return e}remove(e){const t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&qu(t)&&qu(n)&&(tc(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=uc().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=li();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=cc(r);if(1===n.getChildrenSize())if(o)n.remove(),r.select();else{n.insertBefore(t),n.remove();const r=e.anchor,o=e.focus,i=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(i,r.offset,"element"),"element"===o.type&&o.getNode().is(this)&&o.set(i,o.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const t=this.getWritable();return t.__value=e,t}getChecked(){const e=this.getLatest();let t;const n=this.getParent();return vc(n)&&(t=n.getListType()),"check"===t?Boolean(e.__checked):void 0}setChecked(e){const t=this.getWritable();return t.__checked=e,t}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;cc(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&Ku("Invalid indent value."),(e=Math.floor(e))>=0||Ku("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(rc(this),t++):(oc(this),t--);return this}canInsertAfter(e){return cc(e)}canReplaceWith(e){return cc(e)}canMergeWith(e){return cc(e)||ui(e)}extractWithChild(e,t){if(!Wr(t))return!1;const n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return gc("bullet")}canMergeWhenEmpty(){return!0}}function sc(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return lc(t);if(e.classList.contains("joplin-checkbox"))for(const t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return lc(t.children[0]);const t=e.getAttribute("aria-checked");return{node:uc("true"===t||"false"!==t&&void 0)}}function lc(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:uc(e.hasAttribute("checked"))}}function uc(e){return Ca(new ac(void 0,e))}function cc(e){return e instanceof ac}class dc extends Yo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();vc(t)&&e.getListType()===t.getListType()&&tc(e,t)}(e),nc(e)},extends:Yo,importDOM:{ol:()=>({conversion:hc,priority:0}),ul:()=>({conversion:hc,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=mc[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const t=this.getWritable();return t.__start=e,t}createDOM(e,t){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,fc(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(fc(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return Ra(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){const t=n[e];cc(t)||(r===n&&(r=[...n]),r[e]=uc().append(!qo(t)||vc(t)||t.isInline()?t:Mr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return cc(e)}}function fc(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Gu(n)-1,a=t%e.length,s=e[a],l=i[n.__tag];let u;const c=i.nested,d=i.checklist;if(void 0!==c&&c.list&&(u=c.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...Ws(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=Ws(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&Ks(e,...o),r.length>0&&Us(e,...r)}function pc(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(cc(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{vc(e)&&t.push(Ju(e))})}else t.push(Ju(r))}return t}function hc(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=gc("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Ra(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?gc("check"):gc("bullet"));return{after:pc,node:n}}const mc={ol:"number",ul:"bullet"};function gc(e="number",t=1){return Ca(new dc(e,t))}function vc(e){return e instanceof dc}const yc=wt("UPDATE_LIST_START_COMMAND"),bc=wt("INSERT_UNORDERED_LIST_COMMAND"),xc=wt("INSERT_ORDERED_LIST_COMMAND"),_c=wt("REMOVE_LIST_COMMAND");function wc(e,t){const n=Gs(e.registerCommand(xc,()=>(Xu("number"),!0),1),e.registerCommand(yc,e=>{const{listNodeKey:t,newStart:n}=e,r=Bi(t);return!!vc(r)&&("number"===r.getListType()&&(r.setStart(n),nc(r)),!0)},1),e.registerCommand(bc,()=>(Xu("bullet"),!0),1),e.registerCommand(_c,()=>(function(){const e=so();if(Wr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Qu(r,n))t.add(Vu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(Pi(r)){const e=gl(r,ac);null!=e&&t.add(Vu(e))}}for(const n of t){let t=n;const r=Yu(n);for(const n of r){const r=li().setTextStyle(e.style).setTextFormat(e.format);Zu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&As(e.anchor,zs(hs(r,"next"))),n.__key===e.focus.key&&As(e.focus,zs(hs(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(Mt,()=>ic(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(ac,e=>{const t=e.getFirstChild();if(t){if(Or(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=so();Wr(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(kr,e=>{const t=e.getParent();if(cc(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}));return n}function kc(e){const t=e=>{const t=e.getParent();if(vc(e.getFirstChild())||!vc(t))return;const n=qa(e,e=>cc(e)&&vc(e.getParent())&&cc(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(cc(n)){const r=n.getPreviousSibling();if(cc(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;vc(n);){const e=n.getLastChild();if(!cc(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(vc(o)){const n=Gu(o);n+1<Gu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(dc,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(vc(e))for(const r of e.getChildren())if(cc(r)){t(r);const e=r.getFirstChild();vc(e)&&n.push(e)}}})}const Sc=D.createContext(null);function Cc(){const e=D.useContext(Sc);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var Ec,Tc,Ac={exports:{}},Nc={};var Lc=(Tc||(Tc=1,Ac.exports=function(){if(Ec)return Nc;Ec=1;var e=C(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Nc.Fragment=n,Nc.jsx=a,Nc.jsxs=a,Nc}()),Ac.exports);const Rc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Mc=Rc?D.useLayoutEffect:D.useEffect,Oc={tag:ir};function Pc({initialConfig:e,children:t}){const n=D.useMemo(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:a}=e,s=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=pi({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update(()=>{const t=Gi();if(t.isEmpty()){const n=li();t.append(n);const r=Rc?document.activeElement:null;(null!==so()||null!==r&&r===e.getRootElement())&&n.select()}},Oc);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Oc);break}case"object":e.setEditorState(t,Oc);break;case"function":e.update(()=>{Gi().isEmpty()&&t(e)},Oc)}}(l,i),[l,s]},[]);return Mc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Lc.jsx(Sc.Provider,{value:n,children:t})}function zc(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,a=e._selection;if(o)return 1;if(!(Wr(i)&&Wr(a)&&a.isCollapsed()&&i.isCollapsed()))return 0;const s=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||ei(n)||o.push(n)}return o}(t,n,r);if(0===s.length)return 0;if(s.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(a.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Or(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!Or(u)||!Or(l)||u.__mode!==l.__mode)return 0;const c=u.__text,d=l.__text;if(c===d)return 0;const f=i.anchor,p=a.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,m=p.offset,g=d.length-c.length;return 1===g&&m===h-1?2:-1===g&&m===h+1?3:-1===g&&m===h?4:0}function Ic(e,t){let n=Date.now(),r=0,o=Date.now(),i=0,a=null;return(s,l,u,c,d,f)=>{const p=Date.now();if(f.has(cr)&&(o=n,i=r,a=s),f.has(or))return r=0,n=p,2;f.has(dr)&&a&&(n=o,r=i,s=a);const h=zc(s,l,c,d,e.isComposing()),m=(()=>{const o=null===u||u.editor===e,i=f.has("history-push");if(!i&&o&&f.has(ir))return 0;if(1===h)return 2;if(null===s)return 1;const a=l._selection;if(!(c.size>0||d.size>0))return null!==a?0:2;const m="number"==typeof t?t:t.peek();if(!1===i&&0!==h&&h===r&&p<n+m&&o)return 0;if(1===c.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Wr(i)&&Wr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!Or(r)||!Or(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(c)[0],s,l))return 0}return 1})();return n=p,r=h,m}}function Dc(e){e.undoStack=[],e.redoStack=[],e.current=null}function jc(e,t,n){const r=Ic(e,n),o=Gs(e.registerCommand(Ft,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(hn,!0)),0===r.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(Bt,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(mn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(hn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(fn,()=>(Dc(t),!1),ci),e.registerCommand(pn,()=>(Dc(t),e.dispatchCommand(hn,!1),e.dispatchCommand(mn,!1),!0),ci),e.registerUpdateListener(({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:a,tags:s})=>{const l=t.current,u=t.redoStack,c=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,a,s);if(1===f)0!==u.length&&(t.redoStack=[],e.dispatchCommand(hn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(mn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function Fc({delay:e,externalHistoryState:t}){const[n]=Cc();return function(e,t,n=1e3){const r=D.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);D.useEffect(()=>jc(e,r,n),[n,e,r])}(n,t,e),null}function Bc({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Cc();return D.useEffect(()=>{if(!n.hasNodes([dc,ac]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),D.useEffect(()=>Gs(wc(n,{restoreNumbering:t}),e?kc(n):()=>{}),[n,e,t]),function(e){D.useEffect(()=>wc(e),[e])}(n),null}function $c({maxIndent:e,$canIndent:t}){const[n]=Cc();return D.useEffect(()=>hu(n,e,t),[n,e,t]),null}function Hc(e,t){const n=Ri(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Uc.has(t.nodeName)){const n=Kc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ii&&t.insertAfter(hr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Wc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=qo(t)&&t.excludeFromCopy("html");let a=t;null!==r&&Or(t)&&(a=el(r,t,"clone"));const s=qo(a)?a.getChildren():[],l=xi(e,a.getType());let u;u=l&&void 0!==l.exportDOM?l.exportDOM(e,a):a.exportDOM(e);const{element:c,after:d}=u;if(!c)return!1;const f=document.createDocumentFragment();for(let n=0;n<s.length;n++){const i=s[n],a=Wc(e,i,f,r);!o&&qo(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Ra(c)||Oa(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(Oa(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Uc=new Set(["STYLE","SCRIPT"]);function Kc(e,t,n,r,o=new Map,i){let a=[];if(Uc.has(e.nodeName))return a;let s=null;const l=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),u=l?l(e):null;let c=null;if(null!==u){c=u.after;const t=u.node;if(s=Array.isArray(t)?t[t.length-1]:t,null!==s){for(const[,e]of o)if(s=e(s,i),!s)break;s&&a.push(...Array.isArray(t)?t:[s])}null!=u.forChild&&o.set(e.nodeName,u.forChild)}const d=e.childNodes;let f=[];const p=(null==s||!ka(s))&&(null!=s&&to(s)||r);for(let e=0;e<d.length;e++)f.push(...Kc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),za(e)&&(f=Gc(e,f,p?()=>{const e=new ii;return n.push(e),e}:li)),null==s?f.length>0?a=a.concat(f):za(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return Pa(e.nextSibling)&&Pa(e.previousSibling)}(e)&&(a=a.concat(hr())):qo(s)&&s.append(...f),a}function Gc(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(to(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&to(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Vc(e){throw new Error(e)}function Yc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Do(e[n]);Or(r)&&nl(r),t.push(r)}return t}(e.nodes);return qc(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return qc(n,Hc(n,e),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Wr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=so();if(Wr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Ir()]):n.insertText(r)}}}else t.insertRawText(a)}function qc(e,t,n){e.dispatchCommand(St,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Wr(e)&&e.isCollapsed()){let t=null;const n=Ts(e.anchor,"previous");if(n)if(os(n))t=n.origin;else{const e=xs(n,hs(Gi(),"next").getFlipped());for(const n of e){if(Or(n.origin)){t=n.origin;break}if(qo(n.origin)&&!n.origin.isInline())break}}if(t&&Or(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function Jc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=qo(n)&&n.excludeFromCopy("html");let a=n;null!==t&&Or(a)&&(a=el(t,a,"clone"));const s=qo(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Vc(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),qo(e)){const e=t.children;Array.isArray(e)||Vc(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(a);Or(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=Jc(e,t,i,l.children);!o&&qo(n)&&a&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let e=0;e<l.children.length;e++){const t=l.children[e];r.push(t)}return o}let Qc=null;async function Xc(e,t,n){if(null!==Qc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(Zc(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=Na(o);if(null===r||null===a)return!1;const s=i.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(i.createTextNode("#")),r.append(s);const l=new Range;return l.setStart(s,0),l.setEnd(s,1),a.removeAllRanges(),a.addRange(l),new Promise((t,r)=>{const a=e.registerCommand(un,r=>(xl(r,ClipboardEvent)&&(a(),null!==Qc&&(o.clearTimeout(Qc),Qc=null),t(Zc(e,r,n))),!0),4);Qc=o.setTimeout(()=>{a(),Qc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function Zc(e,t,n){if(void 0===n){const t=Na(e._window),r=so();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Si(e,o,i))return!1;n=td(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of ed)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}const ed=[["text/html",function(e,t=so()){return null==t&&Vc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Gi().getChildren();for(let o=0;o<r.length;o++)Wc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=so()){return null==t&&Vc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Gi().getChildren();for(let o=0;o<r.length;o++){Jc(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function td(e=so()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Da();for(const[r,o]of ed){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function nd(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const rd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,od=rd&&"documentMode"in document?document.documentMode:null,id=rd&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ad=!(!rd||!("InputEvent"in window)||od)&&"getTargetRanges"in new window.InputEvent("input"),sd=rd&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ld=rd&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ud=rd&&/^(?=.*Chrome).*/i.test(navigator.userAgent),cd=rd&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&id&&!ud,dd=wt("DRAG_DROP_PASTE_FILE");class fd extends Yo{static getType(){return"quote"}static clone(e){return new fd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Us(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:yd,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return pd().updateFromJSON(e)}insertNewAfter(e,t){const n=li(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=li();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function pd(){return Ca(new fd)}function hd(e){return e instanceof fd}class md extends Yo{__tag;static getType(){return"heading"}static clone(e){return new md(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){const t=this.getWritable();return this.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Us(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:vd,priority:0}),h2:e=>({conversion:vd,priority:0}),h3:e=>({conversion:vd,priority:0}),h4:e=>({conversion:vd,priority:0}),h5:e=>({conversion:vd,priority:0}),h6:e=>({conversion:vd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&gd(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>gd(e)?{conversion:e=>({node:bd("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return bd(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?li():bd(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=li();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?li():bd(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function gd(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function vd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=bd(t),null!==e.style&&(Wa(e,n),n.setFormat(e.style.textAlign))),{node:n}}function yd(e){const t=pd();return null!==e.style&&(t.setFormat(e.style.textAlign),Wa(e,t)),{node:t}}function bd(e="h1"){return Ca(new md(e))}function xd(e){return e instanceof md}function _d(e){let t=null;if(xl(e,DragEvent)?t=e.dataTransfer:xl(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function wd(e){return Xo(Wi(e))}function kd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Sd(e){const t=Gs(e.registerCommand(Ct,e=>{const t=so();return!!Kr(t)&&(t.clear(),!0)},ci),e.registerCommand(Lt,e=>{const t=so();return Wr(t)?(t.deleteCharacter(e),!0):!!Kr(t)&&(t.deleteNodes(),!0)},ci),e.registerCommand(It,e=>{const t=so();return!!Wr(t)&&(t.deleteWord(e),!0)},ci),e.registerCommand(Dt,e=>{const t=so();return!!Wr(t)&&(t.deleteLine(e),!0)},ci),e.registerCommand(Ot,t=>{const n=so();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)Yc(r,n,e);else if(Wr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},ci),e.registerCommand(zt,()=>{const e=so();return!!Wr(e)&&(e.removeText(),!0)},ci),e.registerCommand(jt,e=>{const t=so();return!!Wr(t)&&(t.formatText(e),!0)},ci),e.registerCommand(on,e=>{const t=so();if(!Wr(t)&&!Kr(t))return!1;const n=t.getNodes();for(const t of n){const n=qa(t,e=>qo(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},ci),e.registerCommand(Rt,e=>{const t=so();return!!Wr(t)&&(t.insertLineBreak(e),!0)},ci),e.registerCommand(Mt,()=>{const e=so();return!!Wr(e)&&(e.insertParagraph(),!0)},ci),e.registerCommand(en,()=>{const e=Ir(),t=so();return Wr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),vo([e]),!0},ci),e.registerCommand(tn,()=>_l(e=>{const t=e.getIndent();e.setIndent(t+1)}),ci),e.registerCommand(nn,()=>_l(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),ci),e.registerCommand(Gt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Wr(t)){const n=pa(t.focus,!0);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Vt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Wr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Gi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=pa(t.focus,!1);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Ut,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Zs(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Wr(t))return!1;if(ll(t,!0)){const n=e.shiftKey;return e.preventDefault(),cl(t,n,!0),!0}return!1},ci),e.registerCommand(Ht,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Zs(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Wr(t))return!1;const n=e.shiftKey;return!!ll(t,!1)&&(e.preventDefault(),cl(t,n,!1),!0)},ci),e.registerCommand(Jt,t=>{if(wd(t.target))return!1;const n=so();if(Wr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ei(n))return!1;const r=vl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(nn,void 0);if(ld&&"ko-KR"===navigator.language)return!1}else if(!Kr(n))return!1;return t.preventDefault(),e.dispatchCommand(Lt,!0)},ci),e.registerCommand(Xt,t=>{if(wd(t.target))return!1;const n=so();return!(!Wr(n)&&!Kr(n))&&(t.preventDefault(),e.dispatchCommand(Lt,!1))},ci),e.registerCommand(Yt,t=>{const n=so();if(!Wr(n))return!1;if(kd(n),null!==t){if((ld||sd||cd)&&ad)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Rt,!1)}return e.dispatchCommand(Mt,void 0)},ci),e.registerCommand(Qt,()=>!!Wr(so())&&(e.blur(),!0),ci),e.registerCommand(rn,t=>{const[,n]=_d(t);if(n.length>0){const r=nd(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Wi(o);if(null!==i){const e=ro();if(Or(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}Yi(Be(e))}e.dispatchCommand(dd,n)}return t.preventDefault(),!0}return!!Wr(so())},ci),e.registerCommand(an,e=>{const[t]=_d(e),n=so();return!(t&&!Wr(n))},ci),e.registerCommand(sn,e=>{const[t]=_d(e),n=so();if(t&&!Wr(n))return!1;const r=nd(e.clientX,e.clientY);if(null!==r){Xo(Wi(r.node))&&e.preventDefault()}return!0},ci),e.registerCommand(dn,()=>(function(e){const t=Gi();if(Wr(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Be(e),e}{const e=t.select(0,t.getChildrenSize());Yi(Be(e))}}(),!0),ci),e.registerCommand(un,t=>(Xc(e,xl(t,ClipboardEvent)?t:null),!0),ci),e.registerCommand(cn,t=>(async function(e,t){await Xc(t,xl(e,ClipboardEvent)?e:null),t.update(()=>{const e=so();Wr(e)?e.removeText():Kr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),ci),e.registerCommand(Pt,t=>{const[,n,r]=_d(t);if(n.length>0&&!r)return e.dispatchCommand(dd,n),!0;if(Ma(t.target)&&ki(t.target))return!1;return null!==so()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=so(),r=xl(e,InputEvent)||xl(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&Yc(r,n,t)},{tag:"paste"})}(t,e),!0)},ci),e.registerCommand(qt,e=>{const t=so();return Wr(t)&&kd(t),!1},ci),e.registerCommand(Zt,e=>{const t=so();return Wr(t)&&kd(t),!1},ci));return t}function Cd(e,t,n,r){D.useEffect(()=>{e.hasNodes([ku])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),D.useEffect(()=>Uu(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Ed({matchers:e,onChange:t,excludeParents:n}){const[r]=Cc();return Cd(r,e,t,n),null}const Td="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Ad(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Nd(){return function(e){const[t]=Cc(),n=D.useMemo(()=>e(t),[t,e]),[r,o]=D.useState(()=>n.initialValueFn()),i=D.useRef(r);return Td(()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t(e=>{i.current=e,o(e)})},[n,e]),r}(Ad)}const Ld={black:"#000",white:"#fff"},Rd="#e57373",Md="#ef5350",Od="#f44336",Pd="#d32f2f",zd="#c62828",Id="#f3e5f5",Dd="#ce93d8",jd="#ba68c8",Fd="#ab47bc",Bd="#9c27b0",$d="#7b1fa2",Hd="#e3f2fd",Wd="#90caf9",Ud="#42a5f5",Kd="#1976d2",Gd="#1565c0",Vd="#4fc3f7",Yd="#29b6f6",qd="#03a9f4",Jd="#0288d1",Qd="#01579b",Xd="#81c784",Zd="#66bb6a",ef="#4caf50",tf="#388e3c",nf="#2e7d32",rf="#1b5e20",of="#ffb74d",af="#ffa726",sf="#ff9800",lf="#f57c00",uf="#e65100",cf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function df(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var ff=Object.freeze({__proto__:null,default:df}),pf="$$material";function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hf.apply(null,arguments)}function mf(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var gf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),vf="-ms-",yf="-moz-",bf="-webkit-",xf="comm",_f="rule",wf="decl",kf="@keyframes",Sf=Math.abs,Cf=String.fromCharCode,Ef=Object.assign;function Tf(e){return e.trim()}function Af(e,t,n){return e.replace(t,n)}function Nf(e,t){return e.indexOf(t)}function Lf(e,t){return 0|e.charCodeAt(t)}function Rf(e,t,n){return e.slice(t,n)}function Mf(e){return e.length}function Of(e){return e.length}function Pf(e,t){return t.push(e),e}var zf=1,If=1,Df=0,jf=0,Ff=0,Bf="";function $f(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zf,column:If,length:a,return:""}}function Hf(e,t){return Ef($f("",null,null,"",null,null,0),e,{length:-e.length},t)}function Wf(){return Ff=jf>0?Lf(Bf,--jf):0,If--,10===Ff&&(If=1,zf--),Ff}function Uf(){return Ff=jf<Df?Lf(Bf,jf++):0,If++,10===Ff&&(If=1,zf++),Ff}function Kf(){return Lf(Bf,jf)}function Gf(){return jf}function Vf(e,t){return Rf(Bf,e,t)}function Yf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qf(e){return zf=If=1,Df=Mf(Bf=e),jf=0,[]}function Jf(e){return Bf="",e}function Qf(e){return Tf(Vf(jf-1,ep(91===e?e+2:40===e?e+1:e)))}function Xf(e){for(;(Ff=Kf())&&Ff<33;)Uf();return Yf(e)>2||Yf(Ff)>3?"":" "}function Zf(e,t){for(;--t&&Uf()&&!(Ff<48||Ff>102||Ff>57&&Ff<65||Ff>70&&Ff<97););return Vf(e,Gf()+(t<6&&32==Kf()&&32==Uf()))}function ep(e){for(;Uf();)switch(Ff){case e:return jf;case 34:case 39:34!==e&&39!==e&&ep(Ff);break;case 40:41===e&&ep(e);break;case 92:Uf()}return jf}function tp(e,t){for(;Uf()&&e+Ff!==57&&(e+Ff!==84||47!==Kf()););return"/*"+Vf(t,jf-1)+"*"+Cf(47===e?e:Uf())}function np(e){for(;!Yf(Kf());)Uf();return Vf(e,jf)}function rp(e){return Jf(op("",null,null,null,[""],e=qf(e),0,[0],e))}function op(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,_=i,w=r,k=b;g;)switch(h=y,y=Uf()){case 40:if(108!=h&&58==Lf(k,d-1)){-1!=Nf(k+=Af(Qf(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Qf(y);break;case 9:case 10:case 13:case 32:k+=Xf(h);break;case 92:k+=Zf(Gf()-1,7);continue;case 47:switch(Kf()){case 42:case 47:Pf(ap(tp(Uf(),Gf()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=Mf(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=Af(k,/\f/g,"")),p>0&&Mf(k)-d&&Pf(p>32?sp(k+";",r,n,d-1):sp(Af(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Pf(w=ip(k,t,n,u,c,o,s,b,x=[],_=[],d),i),123===y)if(0===c)op(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Lf(k,3)?100:f){case 100:case 108:case 109:case 115:op(e,w,w,r&&Pf(ip(e,w,w,0,0,o,s,b,o,x=[],d),_),o,_,d,s,r?x:_);break;default:op(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Mf(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Wf())continue;switch(k+=Cf(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Mf(k)-1)*v,v=1;break;case 64:45===Kf()&&(k+=Qf(Uf())),f=Kf(),c=d=Mf(b=k+=np(Gf())),y++;break;case 45:45===h&&2==Mf(k)&&(m=0)}}return i}function ip(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Of(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Rf(e,d+1,d=Sf(m=a[h])),b=e;v<p;++v)(b=Tf(m>0?f[v]+" "+y:Af(y,/&\f/g,f[v])))&&(l[g++]=b);return $f(e,t,n,0===o?_f:s,l,u,c)}function ap(e,t,n){return $f(e,t,n,xf,Cf(Ff),Rf(e,2,-2),0)}function sp(e,t,n,r){return $f(e,t,n,wf,Rf(e,0,r),Rf(e,r+1,-1),r)}function lp(e,t){for(var n="",r=Of(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case wf:return e.return=e.return||e.value;case xf:return"";case kf:return e.return=e.value+"{"+lp(e.children,r)+"}";case _f:e.value=e.props.join(",")}return Mf(n=lp(e.children,r))?e.return=e.value+"{"+n+"}":""}function cp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var dp=function(e,t,n){for(var r=0,o=0;r=o,o=Kf(),38===r&&12===o&&(t[n]=1),!Yf(o);)Uf();return Vf(e,jf)},fp=function(e,t){return Jf(function(e,t){var n=-1,r=44;do{switch(Yf(r)){case 0:38===r&&12===Kf()&&(t[n]=1),e[n]+=dp(jf-1,t,n);break;case 2:e[n]+=Qf(r);break;case 4:if(44===r){e[++n]=58===Kf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Cf(r)}}while(r=Uf());return e}(qf(e),t))},pp=new WeakMap,hp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pp.get(n))&&!r){pp.set(e,!0);for(var o=[],i=fp(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},mp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},gp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},vp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},yp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},bp=function(e,t,n){vp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),yp(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!vp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yp(e)))};function xp(e,t){switch(function(e,t){return 45^Lf(e,0)?(((t<<2^Lf(e,0))<<2^Lf(e,1))<<2^Lf(e,2))<<2^Lf(e,3):0}(e,t)){case 5103:return bf+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bf+e+yf+e+vf+e+e;case 6828:case 4268:return bf+e+vf+e+e;case 6165:return bf+e+vf+"flex-"+e+e;case 5187:return bf+e+Af(e,/(\w+).+(:[^]+)/,bf+"box-$1$2"+vf+"flex-$1$2")+e;case 5443:return bf+e+vf+"flex-item-"+Af(e,/flex-|-self/,"")+e;case 4675:return bf+e+vf+"flex-line-pack"+Af(e,/align-content|flex-|-self/,"")+e;case 5548:return bf+e+vf+Af(e,"shrink","negative")+e;case 5292:return bf+e+vf+Af(e,"basis","preferred-size")+e;case 6060:return bf+"box-"+Af(e,"-grow","")+bf+e+vf+Af(e,"grow","positive")+e;case 4554:return bf+Af(e,/([^-])(transform)/g,"$1"+bf+"$2")+e;case 6187:return Af(Af(Af(e,/(zoom-|grab)/,bf+"$1"),/(image-set)/,bf+"$1"),e,"")+e;case 5495:case 3959:return Af(e,/(image-set\([^]*)/,bf+"$1$`$1");case 4968:return Af(Af(e,/(.+:)(flex-)?(.*)/,bf+"box-pack:$3"+vf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bf+e+e;case 4095:case 3583:case 4068:case 2532:return Af(e,/(.+)-inline(.+)/,bf+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mf(e)-1-t>6)switch(Lf(e,t+1)){case 109:if(45!==Lf(e,t+4))break;case 102:return Af(e,/(.+:)(.+)-([^]+)/,"$1"+bf+"$2-$3$1"+yf+(108==Lf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nf(e,"stretch")?xp(Af(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Lf(e,t+1))break;case 6444:switch(Lf(e,Mf(e)-3-(~Nf(e,"!important")&&10))){case 107:return Af(e,":",":"+bf)+e;case 101:return Af(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bf+(45===Lf(e,14)?"inline-":"")+"box$3$1"+bf+"$2$3$1"+vf+"$2box$3")+e}break;case 5936:switch(Lf(e,t+11)){case 114:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bf+e+vf+e+e}return e}var _p,wp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wf:e.return=xp(e.value,e.length);break;case kf:return lp([Hf(e,{value:Af(e.value,"@","@"+bf)})],r);case _f:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lp([Hf(e,{props:[Af(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lp([Hf(e,{props:[Af(t,/:(plac\w+)/,":"+bf+"input-$1")]}),Hf(e,{props:[Af(t,/:(plac\w+)/,":-moz-$1")]}),Hf(e,{props:[Af(t,/:(plac\w+)/,vf+"input-$1")]})],r)}return""})}}],kp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;_p=function(e){var t=e.match(kp);if(t)return t[t.length-1]};var Sp,Cp,Ep,Tp,Ap=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||wp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l=[hp,mp];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(gp(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),bp);var u,c=[up,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==xf&&u.insert(e.value+"{}"))}],d=function(e){var t=Of(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,c));i=function(e,t,n,r){if(u=n,_p){var o=_p(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){lp(rp(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new gf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Np={exports:{}},Lp={};function Rp(){return Cp||(Cp=1,Np.exports=function(){if(Sp)return Lp;Sp=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return Lp.AsyncMode=l,Lp.ConcurrentMode=u,Lp.ContextConsumer=s,Lp.ContextProvider=a,Lp.Element=t,Lp.ForwardRef=c,Lp.Fragment=r,Lp.Lazy=h,Lp.Memo=p,Lp.Portal=n,Lp.Profiler=i,Lp.StrictMode=o,Lp.Suspense=d,Lp.isAsyncMode=function(e){return x(e)||b(e)===l},Lp.isConcurrentMode=x,Lp.isContextConsumer=function(e){return b(e)===s},Lp.isContextProvider=function(e){return b(e)===a},Lp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lp.isForwardRef=function(e){return b(e)===c},Lp.isFragment=function(e){return b(e)===r},Lp.isLazy=function(e){return b(e)===h},Lp.isMemo=function(e){return b(e)===p},Lp.isPortal=function(e){return b(e)===n},Lp.isProfiler=function(e){return b(e)===i},Lp.isStrictMode=function(e){return b(e)===o},Lp.isSuspense=function(e){return b(e)===d},Lp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Lp.typeOf=b,Lp}()),Np.exports}var Mp=function(){if(Tp)return Ep;Tp=1;var e=Rp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Ep=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},Ep}(),Op=m(Mp);function Pp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var zp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ip=function(e,t,n){zp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Dp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Fp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Bp=/[A-Z]|^ms/g,$p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(e){return 45===e.charCodeAt(1)},Wp=function(e){return null!=e&&"boolean"!=typeof e},Up=cp(function(e){return Hp(e)?e:e.replace(Bp,"-$&").toLowerCase()}),Kp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($p,function(e,t,n){return eh={name:t,styles:n,next:eh},t})}return 1===Dp[e]||Hp(e)||"number"!=typeof t||0===t?t:t+"px"},Gp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Vp=["normal","none","initial","inherit","unset"],Yp=Kp,qp=/^-ms-/,Jp=/-(.)/g,Qp={};Kp=function(e,t){if("content"===e&&("string"!=typeof t||-1===Vp.indexOf(t)&&!Gp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Yp(e,t);return""===n||Hp(e)||-1===e.indexOf("-")||void 0!==Qp[e]||(Qp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(qp,"ms-").replace(Jp,function(e,t){return t.toUpperCase()})+"?")),n};var Xp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Zp(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(Xp);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return eh={name:o.name,styles:o.styles,next:eh},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)eh={name:a.name,styles:a.styles,next:eh},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zp(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Wp(s)&&(r+=Up(i)+":"+Kp(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Xp);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Zp(e,t,a);switch(i){case"animation":case"animationName":r+=Up(i)+":"+l+";";break;default:"undefined"===i&&console.error(Fp),r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Wp(a[u])&&(r+=Up(i)+":"+Kp(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=eh,l=n(e);return eh=s,Zp(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace($p,function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var eh,th=/label:\s*([^\s;{]+)\s*(;|$)/g;function nh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";eh=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=Zp(n,t,i);else{var a=i;void 0===a[0]&&console.error(jp),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Zp(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(jp),o+=l[s]}th.lastIndex=0;for(var u,c="";null!==(u=th.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:eh,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var rh=!!F.useInsertionEffect&&F.useInsertionEffect,oh=rh||function(e){return e()},ih=rh||D.useLayoutEffect,ah=D.createContext("undefined"!=typeof HTMLElement?Ap({key:"css"}):null);ah.displayName="EmotionCacheContext";var sh=ah.Provider,lh=function(e){return D.forwardRef(function(t,n){var r=D.useContext(ah);return e(t,r,n)})},uh=D.createContext({});uh.displayName="EmotionThemeContext";var ch={}.hasOwnProperty,dh=function(e){var t=e.split(".");return t[t.length-1]},fh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?dh(t[1]):void 0},ph=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),hh=function(e){return e.replace(/\$/g,"-")},mh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",vh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)ch.call(t,r)&&(n[r]=t[r]);if(n[mh]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=fh(t[n]);if(r){if(ph.has(r))break;if(/^[A-Z]/.test(r))return hh(r)}}}((new Error).stack);o&&(n[gh]=o)}return n},yh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zp(t,n,r),oh(function(){return Ip(t,n,r)}),null},bh=lh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[mh],i=[r],a="";"string"==typeof e.className?a=Pp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=nh(i,void 0,D.useContext(uh));if(-1===s.name.indexOf("-")){var l=e[gh];l&&(s=nh([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)ch.call(e,c)&&"css"!==c&&c!==mh&&c!==gh&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),D.createElement(D.Fragment,null,D.createElement(yh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,u))});bh.displayName="EmotionCssPropInternal";var xh,_h,wh=bh,kh=function(e,t){var n=arguments;if(null==t||!ch.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=wh,o[1]=vh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return D.createElement.apply(null,o)};xh=kh||(kh={}),_h||(_h=xh.JSX||(xh.JSX={}));var Sh=!1,Ch=lh(function(e,t){!Sh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Sh=!0);var n=nh([e.styles],void 0,D.useContext(uh)),r=D.useRef();return ih(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),ih(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ip(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nh(t)}function Th(){var e=Eh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}Ch.displayName="EmotionGlobal";var Ah=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Nh=function(e){var t=e.cache,n=e.serializedArr;return oh(function(){for(var e=0;e<n.length;e++)Ip(t,n[e],!1)}),null},Lh=lh(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=nh(o,t.registered);return r.push(a),zp(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Pp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Ah(r))},theme:D.useContext(uh)},a=e.children(i);return n=!0,D.createElement(D.Fragment,null,D.createElement(Nh,{cache:t,serializedArr:r}),a)});Lh.displayName="EmotionClassNames";var Rh="undefined"!=typeof document,Mh="undefined"!=typeof jest||"undefined"!=typeof vi;if(Rh&&!Mh){var Oh="undefined"!=typeof globalThis?globalThis:Rh?window:global,Ph="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Oh[Ph]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Oh[Ph]=!0}var zh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ih=cp(function(e){return zh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Dh=function(e){return"theme"!==e},jh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ih:Dh},Fh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Bh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zp(t,n,r),oh(function(){return Ip(t,n,r)}),null},Hh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Fh(t,n,i),l=s||jh(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];void 0===f[0]&&console.error(Bh),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Bh),d.push(c[h],f[h])}var m=lh(function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(uh)}"string"==typeof e.className?i=Pp(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=nh(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?jh(r):l,g={};for(var v in e)u&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement($h,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,hf({},n,r,{shouldForwardProp:Fh(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Hh[e]=Hh(e)});var Wh,Uh,Kh,Gh,Vh,Yh={exports:{}};function qh(){if(Uh)return Wh;Uh=1;return Wh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Jh(){if(Gh)return Kh;Gh=1;var e=qh();function t(){}function n(){}return n.resetWarningCache=t,Kh=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Qh(){return Vh||(Vh=1,Yh.exports=Jh()()),Yh.exports}var Xh=m(Qh());const Zh=new Map;function em(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Lc.jsx(Ch,{styles:r})}
16
+ */function P(){if(A)return _;A=1;var e=C(),t=O();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new f(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),z=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var D,j=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function $(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ae(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,ke=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Te(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Ne(){}var Le=!1;function Re(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ae(e,t,n)}finally{Le=!1,(null!==ke||null!==Se)&&(Ne(),Te())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Oe=!1}function ze(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,De=null,je=!1,Fe=null,Be={onError:function(e){Ie=!0,De=e}};function $e(e,t,n,r,o,i,a,s,l){Ie=!1,De=null,ze.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ue(i),e;if(a===o)return Ue(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ve=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Qe=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Nt=null,Lt=null,Rt=new Map,Mt=new Map,Ot=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function It(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Et=!1,null!==At&&jt(At)&&(At=null),null!==Nt&&jt(Nt)&&(Nt=null),null!==Lt&&jt(Lt)&&(Lt=null),Rt.forEach(Ft),Mt.forEach(Ft)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Nt&&$t(Nt,e),null!==Lt&&$t(Lt,e),Rt.forEach(t),Mt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Dt(n),null===n.blockedOn&&Ot.shift()}var Wt=v.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Vt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Vt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Vt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Yt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=It(At,e,t,n,r,o),!0;case"dragenter":return Nt=It(Nt,e,t,n,r,o),!0;case"mouseover":return Lt=It(Lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,It(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,It(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&_t(i),null===(i=qt(e,t,n,r))&&Ur(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function qt(e,t,n,r){if(Yt=null,null!==(e=bo(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(j({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return Sn}var En=j({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(En),An=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(Rn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var In=s&&"TextEvent"in window&&!zn,Dn=s&&(!Pn||zn&&8<zn&&11>=zn),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Vn=null;function Yn(e){jr(e,0)}function qn(e){if(Y(_o(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Xn;if(s){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Vn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Vn)){var t=[];Kn(t,Vn,e,_e(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Vn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}s&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Cr("animationend"),Tr=Cr("animationiteration"),Ar=Cr("animationstart"),Nr=Cr("transitionend"),Lr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Lr.set(e,t),i(t,[e])}for(var Or=0;Or<Rr.length;Or++){var Pr=Rr[Or];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Tr,"onAnimationIteration"),Mr(Ar,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Nr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Dr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(n(198));var c=De;Ie=!1,De=null,je||(je=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,r.forEach(function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Vt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=_e(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case Tr:case Ar:l=vn;break;case Nr:l=Ln;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push(Kr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,m=f;m;m=Vr(m))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Un(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=r?_o(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(v=Gr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$n(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}jr(a,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Me(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Me(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Me(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Jr,"")}function Xr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var ko=[],So=-1;function Co(e){return{current:e}}function Eo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function To(e,t){So++,ko[So]=e.current,e.current=t}var Ao={},No=Co(Ao),Lo=Co(!1),Ro=Ao;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=(e=e.childContextTypes)}function Po(){Eo(Lo),Eo(No)}function zo(e,t,r){if(No.current!==Ao)throw Error(n(168));To(No,t),To(Lo,r)}function Io(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,U(e)||"Unknown",i));return j({},r,o)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Ro=No.current,To(No,e),To(Lo,Lo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Io(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,Eo(Lo),Eo(No),To(No,e)):Eo(Lo),To(Lo,r)}var Fo=null,Bo=!1,$o=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!$o&&null!==Fo){$o=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ve(Ze,Wo),t}finally{bt=t,$o=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Jo=null,Qo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Qo,Yo[qo++]=Xo,Yo[qo++]=Jo,Jo=e;var r=Qo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Qo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Uo[--Ko],Uo[Ko]=null,Vo=Uo[--Ko],Uo[Ko]=null;for(;e===Jo;)Jo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Qo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ru(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Qo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ru(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(n(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&bi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case b:return(t=ju(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||I(t))return(t=zu(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ii&&Zo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,m),u}function g(i,s,l,u){var c=I(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ii&&Zo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ii&&Zo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ii&&Zo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&bi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=vi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=zu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Pu(a.type,a.key,a.props,null,n.mode,l)).ref=vi(n,o,a),l.return=n,n=l)}return s(n);case b:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=ju(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return m(n,o,a,l);if(I(a))return g(n,o,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Du(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var _i=xi(!0),wi=xi(!1),ki=Co(null),Si=null,Ci=null,Ei=null;function Ti(){Ei=Ci=Si=null}function Ai(e){var t=ki.current;Eo(ki),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Li(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(n(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Mi=null;function Oi(e){null===Mi?Mi=[e]:Mi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,zi(e,r)}function zi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zi(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,zi(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Ii=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ki={},Gi=Co(Ki),Vi=Co(Ki),Yi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Ji(e,t){switch(To(Yi,t),To(Vi,e),To(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Gi),To(Gi,t)}function Qi(){Eo(Gi),Eo(Vi),Eo(Yi)}function Xi(e){qi(Yi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Vi,e),To(Gi,n))}function Zi(e){Vi.current===e&&(Eo(Gi),Eo(Vi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,sa.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Il|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Sa(e,t){var r=sa,o=ba(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,Ia(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ra(9,Ea.bind(null,r,o,i,t),void 0,null),null===Nl)throw Error(n(349));30&aa||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Na(e)}function Ta(e,t,n){return n(function(){Aa(t)&&Na(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=zi(e,1);null!==t&&nu(t,e,1,-1)}function La(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Oa(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}sa.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function za(e,t){return Oa(8390656,8,e,t)}function Ia(e,t){return Pa(2048,8,e,t)}function Da(e,t){return Pa(4,2,e,t)}function ja(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function $a(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ka(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Va(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ja(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Ya(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ja(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ja(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Ri,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ri,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Va.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:La,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Ka.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Nl)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,za(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Nl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:_a,useRef:Ma,useState:function(){return _a(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Ri,useCallback:Ha,useContext:Ri,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ma,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=Oo(t)?Ro:No.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=Oo(t)?Ro:No.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var ys=v.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?wi(t,null,n,r):_i(t,e.child,n,r)}function _s(e,t,n,r,o){n=n.render;var i=t.ref;return Li(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Ml),Ml|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Ml),Ml|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Ml),Ml|=r;return xs(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Oo(n)?Ro:No.current;return i=Mo(t,i),Li(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ts(e,t,n,r,o){if(Oo(n)){var i=!0;Do(t)}else i=!1;if(Li(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Mo(t,u=Oo(n)?Ro:No.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Ii=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Lo.current||Ii?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ii||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Mo(t,l=Oo(n)?Ro:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Ii=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Lo.current||Ii?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Ii||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,i,o)}function As(e,t,n,r,o,i){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&jo(t,n,!1),Us(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Ji(e,t.containerInfo)}function Ls(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Rs,Ms,Os,Ps,zs={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Iu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=zu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(r),t.memoizedState=zs,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=cs(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Iu({mode:"visible",children:o.children},i,0,null),(a=zu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&_i(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=zs,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=cs(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(o=Nl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,zi(e,i),nu(o,e,i,-1))}return mu(),Fs(e,t,s,o=cs(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Yo[qo++]=Qo,Yo[qo++]=Xo,Yo[qo++]=Jo,Qo=e.id,Xo=e.overflow,Jo=t),t=js(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Ou(o,s):(s=zu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=zs,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vs(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Oo(t.type)&&Po(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Eo(Lo),Eo(No),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ms(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Yi.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gs(t),null}if(e=qi(Gi.current),fi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[po]=t,i[ho]=s,e=!!(1&t.mode),r){case"dialog":Fr("cancel",i),Fr("close",i);break;case"iframe":case"object":case"embed":Fr("load",i);break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":Q(i,s),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",i);break;case"textarea":ie(i,s),Fr("invalid",i)}for(var l in ye(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",i)}switch(r){case"input":V(i),ee(i,s,!0);break;case"textarea":V(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Zr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=i,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),a=i;break;case"iframe":case"object":case"embed":Fr("load",e),a=i;break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],e);a=i;break;case"source":Fr("error",e),a=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=i;break;case"details":Fr("toggle",e),a=i;break;case"input":Q(e,i),a=J(e,i),Fr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fr("invalid",e)}for(s in ye(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":V(e),ee(e,i,!1);break;case"textarea":V(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+K(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Yi.current),qi(Gi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Gs(t),null;case 13:if(Eo(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,s=!1;else if(s=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),s=!1}else null!==ai&&(au(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Pl&&(Pl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Ms(e,t),null===e&&Hr(t.stateNode.containerInfo),Gs(t),null;case 10:return Ai(t.type._context),Gs(t),null;case 19:if(Eo(ea),null===(s=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ks(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ks(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Gs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ea.current,To(ea,i?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ys(e,t){switch(ni(t),t.tag){case 1:return Oo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Lo),Eo(No),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Gi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),r=oe(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Js||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Js&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fl(e,t,n),Js=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Su(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(l){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Qe())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Js=(c=Js)||d,ml(t,e),Js=c):ml(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(o,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Xs=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&o&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Js;s=qs;var u=Js;if(qs=a,(Js=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?wl(o):null!==l?(l.return=a,Xs=l):wl(o);for(;null!==i;)Xs=i,bl(i),i=i.sibling;Xs=o,qs=s,Js=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):xl(e)}}function xl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Js)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(n(163))}Js||512&t.flags&&ol(t)}catch(e){Su(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function _l(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Su(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,Cl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,Tl=v.ReactCurrentBatchConfig,Al=0,Nl=null,Ll=null,Rl=0,Ml=0,Ol=Co(0),Pl=0,zl=null,Il=0,Dl=0,jl=0,Fl=null,Bl=null,$l=0,Hl=1/0,Wl=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Jl=0,Ql=null,Xl=-1,Zl=0;function eu(){return 6&Al?Qe():-1!==Xl?Xl:Xl=Qe()}function tu(e){return 1&e.mode?2&Al&&0!==Rl?Rl&-Rl:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nu(e,t,r,o){if(50<Jl)throw Jl=0,Ql=null,Error(n(185));vt(e,r,o),2&Al&&e===Nl||(e===Nl&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Rl)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Hl=Qe()+500,Bo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Rl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),ao(function(){!(6&Al)&&Wo()}),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&Al)throw Error(n(327));var r=e.callbackNode;if(wu()&&e.callbackNode!==r)return null;var o=ft(e,e===Nl?Rl:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=gu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Nl===e&&Rl===t||(Wl=null,Hl=Qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Ll?t=0:(Nl=null,Rl=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,Wl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=$l+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),t);break}_u(e,Bl,Wl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),o);break}_u(e,Bl,Wl);break;default:throw Error(n(329))}}}return ru(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~jl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(n(327));wu();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=zl,fu(e,0),su(e,t),ru(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Qe()+500,Bo&&Wo())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Al=t))&&Wo()}}function du(){Ml=Ol.current,Eo(Ol)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Qi(),Eo(Lo),Eo(No),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Nl=e,Ll=e=Ou(e.current,null),Rl=Ml=t,Pl=0,zl=null,jl=Dl=Il=0,Bl=Fl=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(Ti(),oa.current=Xa,ca){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===r||null===r.return){Pl=1,zl=t,Ll=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Rl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function mu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Nl||!(268435455&Il)&&!(268435455&Dl)||su(Nl,Rl)}function gu(e,t){var r=Al;Al|=2;var o=hu();for(Nl===e&&Rl===t||(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Ll)throw Error(n(261));return Nl=null,Rl=0,Pl}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!qe();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xu(e):Ll=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Pl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Ml)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=bt,i=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,r,o){do{wu()}while(null!==Yl);if(6&Al)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Ll=Nl=null,Rl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Nu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,yl(r),Je(),Al=l,bt=s,Tl.transition=a}else e.current=r;if(Vl&&(Vl=!1,Yl=e,ql=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ru(e,Qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Kl,Kl=null,e;!!(1&ql)&&0!==e.tag&&wu(),a=e.pendingLanes,1&a?e===Ql?Jl++:(Jl=0,Ql=e):Jl=0,Wo()}(e,t,r,o)}finally{Tl.transition=i,bt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=null,ql=0,6&Al)throw Error(n(331));var i=Al;for(Al|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(il(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Xs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Xs=_;break e}Xs=l.return}}if(Al=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{bt=r,Tl.transition=t}}return!1}function ku(e,t,n){e=Bi(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Bi(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Rl&n)===n&&(4===Pl||3===Pl&&(130023424&Rl)===Rl&&500>Qe()-$l?fu(e,0):jl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=zi(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Eu(e,r)}function Nu(e,t){return Ve(e,t)}function Lu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ru(e,t,n,r){return new Lu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Mu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return zu(r.children,i,a,t);case w:s=8,i|=8;break;case k:return(e=Ru(12,r,t,2|i)).elementType=k,e.lanes=a,e;case N:return(e=Ru(13,r,t,i)).elementType=N,e.lanes=a,e;case L:return(e=Ru(19,r,t,i)).elementType=L,e.lanes=a,e;case P:return Iu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case T:s=11;break e;case R:s=14;break e;case M:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ru(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function zu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Ru(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ru(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function $u(e){if(!e)return Ao;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Oo(r))return Io(e,r,t)}return t}function Hu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=$u(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),$i(e,o,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lo.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(To(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=Mo(t,No.current);Li(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(o)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=As(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xs(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Ts(null,t,o,e,r);break e;case 11:t=_s(null,t,o,e,r);break e;case 14:t=ws(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ts(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Ns(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ls(e,t,o,r,i=us(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Us(e,t,r);break e}xs(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_i(t,null,o,r):xs(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,_s(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,To(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Lo.current){t=Us(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Fi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ni(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ni(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Li(t,r),o=o(i=Ri(i)),t.flags|=1,xs(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),ws(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Li(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Hs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Uu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(a);i.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu(function(){Wu(t,l,n,r)}),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Wu(null,e,null,null)}),t[mo]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Dt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Al)&&(Hl=Qe()+500,Wo()))}break;case 13:cu(function(){var t=zi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Gu(e,1)}},wt=function(e){if(13===e.tag){var t=zi(e,134217728);if(null!==t)nu(t,e,134217728,eu());Gu(e,134217728)}},kt=function(e){if(13===e.tag){var t=tu(e),n=zi(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));Y(o),Z(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ae=uu,Ne=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(e){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,_.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_.createRoot=function(e,t){if(!Ju(e))throw Error(n(299));var r=!1,o="",i=Vu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},_.flushSync=function(e){return cu(e)},_.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!0,r)},_.hydrateRoot=function(e,t,r){if(!Ju(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Vu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Hr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},_.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!1,r)},_.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},_.unstable_batchedUpdates=uu,_.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function z(){if(N)return x.exports;return N=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),x.exports=P(),x.exports}var I=function(){if(L)return b;L=1;var e=z();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}();var D=C(),j=m(D),F=f({__proto__:null,default:j},[D]);const B=D.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,printingStatus:null,showMediaLibrary:void 0,interactionState:void 0});function $(e){throw new Error(e)}const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,W=H&&"documentMode"in document?document.documentMode:null,U=H&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),K=H&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),G=!(!H||!("InputEvent"in window)||W)&&"getTargetRanges"in new window.InputEvent("input"),V=H&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Y=H&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,q=H&&/Android/.test(navigator.userAgent),J=H&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Q=H&&q&&J,X=H&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&U&&!J,Z=0,ee=1,te=2,ne=1,re=2,oe=3,ie=4,ae=5,se=6,le=V||Y||X?" ":"​",ue="\n\n",ce=K?" ":le,de={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},fe={directionless:1,unmergeable:2},pe={center:2,end:6,justify:4,left:1,right:3,start:5},he={[re]:"center",[se]:"end",[ie]:"justify",[ne]:"left",[oe]:"right",[ae]:"start"},me={normal:0,segmented:2,token:1},ge={[Z]:"normal",[te]:"segmented",[ee]:"token"},ve="$config";function ye(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(qo(a)&&ye(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let be=!1,xe=0;function _e(e){xe=e.timeStamp}function we(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==Hi(e,n)}function ke(e,t,n){const r=Na(wa(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&ta(t,a,o,i,!1)}function Se(e,t,n){if(Wr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Li(t)&&n.isAttached()}function Ce(e,t,n,r){for(let o=e;o&&!Ua(o);o=va(o)){const e=Hi(o,t);if(void 0!==e){const t=Bi(e,n);if(t)return Xo(t)||!Ra(o)?void 0:[o,t]}else if(o===r)return[r,Vi(n)]}}function Ee(e,t,n){be=!0;const r=performance.now()-xe>100;try{Ko(e,()=>{const o=so()||function(e){return e.getEditorState().read(()=>{const e=so();return null!==e?e.clone():null})}(e),i=new Map,a=e.getRootElement(),s=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Ce(p,e,s,a);if(!h)continue;const[m,g]=h;if("characterData"===f)r&&Or(g)&&Li(p)&&Se(o,p,g)&&ke(p,g,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=$i(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!we(r,i,e)){if(K){const e=(Ra(r)?r.innerText:null)||r.nodeValue;e&&(c+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(we(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(m,g)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||we(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Yi(o),K&&ha(e)&&o.insertRawText(c))})}finally{be=!1}}function Te(e){const t=e._observer;if(null!==t){Ee(e,t.takeRecords(),t)}}function Ae(e){!function(e){0===xe&&wa(e).addEventListener("textInput",_e,!0)}(e),e._observer=new MutationObserver((t,n)=>{Ee(e,t,n)})}function Ne(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ya(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Le{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,a=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&a!==o&&$(`NodeState: size != computedSize (${String(o)} != ${String(a)})`);for(const e of r.keys())i.has(e.key)||$(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=a}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Oe(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Le(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Oe(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function Re(e){return e.__state?e.__state.sharedNodeState:bi(Da(),e.getType()).sharedNodeState}function Me(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Re(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&function(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Le(t,Re(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Oe(e){if(e)for(const t in e)return e}function Pe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function ze(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function Ie(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function De(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,a=t.__format,s=t.__style,l=e.__state,u=t.__state;return(null===n||n===i)&&(null===r||r===a)&&(null===o||o===s)&&(null===e.__state||l===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&Pe(n,e,t)||t&&Pe(n,t,e)||e&&ze(n,e,t)||t&&ze(n,t,e))}(l,u))}function je(e,t){const n=e.mergeWithSibling(t),r=Ro()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Fe(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Or(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(De(t,r)){r=je(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Or(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(De(r,n)){r=je(r,n);break}break}n.remove()}}else r.remove()}function Be(e){return $e(e.anchor),$e(e.focus),e}function $e(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),Or(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!qo(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let He,We,Ue,Ke,Ge,Ve,Ye,qe,Je,Qe,Xe="",Ze=null,et=null,tt=!1,nt=!1;function rt(e,t){const n=Ye.get(e);if(null!==t){const n=_t(e);n.parentNode===t&&t.removeChild(n)}if(qe.has(e)||We._keyToDOMMap.delete(e),qo(n)){const e=mt(n,Ye);ot(e,0,e.length-1,null)}void 0!==n&&ca(Qe,Ue,Ke,n,"destroyed")}function ot(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&rt(t,r)}}function it(e,t){e.setProperty("text-align",t)}const at="40px";function st(e,t){const n=He.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(We._rootElement||e).getPropertyValue("--lexical-indent-base-value")||at;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function lt(e,t){const n=e.style;0===t?it(n,""):1===t?it(n,"left"):2===t?it(n,"center"):3===t?it(n,"right"):4===t?it(n,"justify"):5===t?it(n,"start"):6===t&&it(n,"end")}function ut(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(ei(e))return null;const n=e.getParentOrThrow();return ei(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ct(e,t){const n=qe.get(e);void 0===n&&$("createNode: node does not exist in nodeMap");const r=n.createDOM(He,We);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,We),Or(n)?r.setAttribute("data-lexical-text","true"):Xo(n)&&r.setAttribute("data-lexical-decorator","true"),qo(n)){const e=n.__indent,t=n.__size;if(ut(r,n),0!==e&&st(r,e),0!==t){const e=t-1;dt(mt(n,qe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&lt(r,o),n.isInline()||pt(null,n,r)}else{const t=n.getTextContent();if(Xo(n)){const t=n.decorate(We,He);null!==t&&vt(e,t),r.contentEditable="false"}Xe+=t}return null!==t&&t.insertChild(r),Object.freeze(n),ca(Qe,Ue,Ke,n,"created"),r}function dt(e,t,n,r,o){const i=Xe;Xe="";let a=n;for(;a<=r;++a){ct(e[a],o);const t=qe.get(e[a]);null!==t&&Or(t)?null===Ze&&(Ze=t.getFormat(),et=t.getStyle()):qo(t)&&a<r&&!t.isInline()&&(Xe+=ue)}o.element.__lexicalTextContent=Xe,Xe=i+Xe}function ft(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return mr(e)?"line-break":Xo(e)&&e.isInline()?"decorator":null}return"empty"}return null}function pt(e,t,n){const r=ft(e,Ye),o=ft(t,qe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function ht(e,t,n){var r;Ze=null,et=null,function(e,t,n){const r=Xe,o=e.__size,i=t.__size;Xe="";const a=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)gt(n,a);else{const e=_t(n),t=ct(r,null);try{a.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}rt(n,null)}const o=qe.get(r);Or(o)&&null===Ze&&(Ze=o.getFormat(),et=o.getStyle())}else{const r=mt(e,Ye),s=mt(t,qe);if(r.length!==o&&$("$reconcileChildren: prevChildren.length !== prevChildrenSize"),s.length!==i&&$("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&dt(s,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;ot(r,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(e,t,n,r,o,i){const a=r-1,s=o-1;let l,u,c=i.getFirstChild(),d=0,f=0;for(;d<=a&&f<=s;){const e=t[d],r=n[f];if(e===r)c=yt(gt(r,i.element)),d++,f++;else{if(void 0===u&&(u=bt(n,f)),void 0===l)l=bt(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=yt(_t(e)),rt(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=ga(We,r);e!==c&&i.withBefore(c).insertChild(e),c=yt(gt(r,i.element)),d++,f++}else ct(r,i.withBefore(c)),f++}const o=qe.get(r);null!==o&&Or(o)?null===Ze&&(Ze=o.getFormat(),et=o.getStyle()):qo(o)&&f<=s&&!o.isInline()&&(Xe+=ue)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:We.getElementByKey(e);dt(n,0,f,s,i.withBefore(t))}else h&&!p&&ot(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=Xe,Xe=r+Xe}(e,t,t.getDOMSlot(n)),r=t,null==Ze||Ze===r.__textFormat||nt||r.setTextFormat(Ze),function(e){null==et||et===e.__textStyle||nt||e.setTextStyle(et)}(t)}function mt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&$("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function gt(e,t){const n=Ye.get(e);let r=qe.get(e);void 0!==n&&void 0!==r||$("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=tt||Ve.has(e)||Ge.has(e),i=ga(We,e);if(n===r&&!o){let e;if(qo(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return Xe+=e,i}if(n!==r&&o&&ca(Qe,Ue,Ke,r,"updated"),r.updateDOM(n,i,He)){const n=ct(e,null);return null===t&&$("reconcileNode: parentDOM is null"),t.replaceChild(n,i),rt(e,null),n}if(qo(n)){qo(r)||$(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(tt||t!==n.__indent)&&st(i,t);const a=r.__format;if((tt||a!==n.__format)&&lt(i,a),o)ht(n,r,i),ei(r)||r.isInline()||pt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),Xe+=t}if((tt||r.__dir!==n.__dir)&&(ut(i,r),ei(r)&&!tt))for(const e of r.getChildren())if(qo(e)){ut(ga(We,e.getKey()),e)}}else{const t=r.getTextContent();if(Xo(r)){const t=r.decorate(We,He);null!==t&&vt(e,t)}Xe+=t}if(!nt&&ei(r)&&r.__cachedText!==Xe){const e=r.getWritable();e.__cachedText=Xe,r=e}return Object.freeze(r),i}function vt(e,t){let n=We._pendingDecorators;const r=We._decorators;if(null===n){if(r[e]===t)return;n=Ui(We)}n[e]=t}function yt(e){let t=e.nextSibling;return null!==t&&t===We._blockCursorElement&&(t=t.nextSibling),t}function bt(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function xt(e,t,n,r,o,i){Xe="",tt=2===r,We=n,He=n._config,Ue=n._nodes,Ke=We._listeners.mutation,Ge=o,Ve=i,Ye=e._nodeMap,qe=t._nodeMap,nt=t._readOnly,Je=new Map(n._keyToDOMMap);const a=new Map;return Qe=a,gt("root",null),We=void 0,Ue=void 0,Ge=void 0,Ve=void 0,Ye=void 0,qe=void 0,He=void 0,Je=void 0,Qe=void 0,a}function _t(e){const t=Je.get(e);return void 0===t&&$(`Reconciliation: could not find DOM element for node key ${e}`),t}function wt(e){return{type:e}}const kt=wt("SELECTION_CHANGE_COMMAND"),St=wt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ct=wt("CLICK_COMMAND"),Et=wt("BEFORE_INPUT_COMMAND"),Tt=wt("INPUT_COMMAND"),At=wt("COMPOSITION_START_COMMAND"),Nt=wt("COMPOSITION_END_COMMAND"),Lt=wt("DELETE_CHARACTER_COMMAND"),Rt=wt("INSERT_LINE_BREAK_COMMAND"),Mt=wt("INSERT_PARAGRAPH_COMMAND"),Ot=wt("CONTROLLED_TEXT_INSERTION_COMMAND"),Pt=wt("PASTE_COMMAND"),zt=wt("REMOVE_TEXT_COMMAND"),It=wt("DELETE_WORD_COMMAND"),Dt=wt("DELETE_LINE_COMMAND"),jt=wt("FORMAT_TEXT_COMMAND"),Ft=wt("UNDO_COMMAND"),Bt=wt("REDO_COMMAND"),$t=wt("KEYDOWN_COMMAND"),Ht=wt("KEY_ARROW_RIGHT_COMMAND"),Wt=wt("MOVE_TO_END"),Ut=wt("KEY_ARROW_LEFT_COMMAND"),Kt=wt("MOVE_TO_START"),Gt=wt("KEY_ARROW_UP_COMMAND"),Vt=wt("KEY_ARROW_DOWN_COMMAND"),Yt=wt("KEY_ENTER_COMMAND"),qt=wt("KEY_SPACE_COMMAND"),Jt=wt("KEY_BACKSPACE_COMMAND"),Qt=wt("KEY_ESCAPE_COMMAND"),Xt=wt("KEY_DELETE_COMMAND"),Zt=wt("KEY_TAB_COMMAND"),en=wt("INSERT_TAB_COMMAND"),tn=wt("INDENT_CONTENT_COMMAND"),nn=wt("OUTDENT_CONTENT_COMMAND"),rn=wt("DROP_COMMAND"),on=wt("FORMAT_ELEMENT_COMMAND"),an=wt("DRAGSTART_COMMAND"),sn=wt("DRAGOVER_COMMAND"),ln=wt("DRAGEND_COMMAND"),un=wt("COPY_COMMAND"),cn=wt("CUT_COMMAND"),dn=wt("SELECT_ALL_COMMAND"),fn=wt("CLEAR_EDITOR_COMMAND"),pn=wt("CLEAR_HISTORY_COMMAND"),hn=wt("CAN_REDO_COMMAND"),mn=wt("CAN_UNDO_COMMAND"),gn=wt("FOCUS_COMMAND"),vn=wt("BLUR_COMMAND"),yn=wt("KEY_MODIFIER_COMMAND"),bn=Object.freeze({}),xn=[["keydown",function(e,t){if(_n=e.timeStamp,wn=e.key,t.isComposing())return;ma(t,$t,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Ma(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ko(t,()=>{wi(n)||(An=!0)})}],["compositionstart",function(e,t){ma(t,At,e)}],["compositionend",function(e,t){K?Ln=!0:Y||!V&&!X?ma(t,Nt,e):(Rn=!0,Mn=e.data)}],["input",function(e,t){e.stopPropagation(),Ko(t,()=>{t.dispatchCommand(Tt,e)},{event:e}),Sn=null}],["click",function(e,t){Ko(t,()=>{const n=so(),r=Na(wa(t)),o=lo();if(r)if(Wr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!ei(i)&&1===Gi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=qa(i,e=>qo(e)&&!e.isInline());qo(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Ra(n)||Li(n)){Yi(io(o,r,t,e))}}ma(t,Ct,e)})}],["cut",bn],["copy",bn],["dragstart",bn],["dragover",bn],["dragend",bn],["paste",bn],["focus",bn],["blur",bn],["drop",bn]];G&&xn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||K&&ha(t))return;if("insertCompositionText"===n)return;ma(t,Et,e)}(e,t)]);let _n=0,wn=null,kn=0,Sn=null;const Cn=new WeakMap,En=new WeakMap;let Tn=!1,An=!1,Nn=!1,Ln=!1,Rn=!1,Mn="",On=null,Pn=[0,"",0,"root",0];function zn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=Ro(),u=Na(wa(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!Or(s)||(!o&&(!G||kn<r+50)||s.isDirty()&&p<2||Ji(n))&&i.offset!==a.offset&&!s.isComposing()||Ni(s)||s.isDirty()&&p>1||(o||!G)&&null!==f&&!s.isComposing()&&c!==Mi(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!s.isComposing()&&(s.getFormat()!==e.format||s.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=Ai(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Or(t)||qo(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function In(e,t){return Li(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Dn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;Tn&&(Tn=!1,In(r,o)&&In(i,a)&&!On)||Ko(t,()=>{if(!n)return void Yi(null);if(!Si(t,r,i))return;let s=so();if(On&&Wr(s)&&s.isCollapsed()){const e=s.anchor,t=On.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=On.clone(),Yi(s))}if(On=null,Wr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=wa(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=Pn,f=Gi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)jn(s,a,l);else if("text"===n.type)Or(r)||$("Point.getNode() must return TextNode when type is text"),Fn(s,r);else if("element"===n.type&&!p){qo(r)||$("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();jn(e,n,r)}(s,e):jn(s,0,"")}}else{const e=n.key,t=s.focus.key,r=s.getNodes(),i=r.length,l=s.isBackward(),u=l?a:o,c=l?o:a,d=l?t:e,f=l?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(Or(t)&&0!==n&&!(0===e&&t.__key===d&&u===n||e===i-1&&t.__key===f&&0===c)&&(h=!0,p&=t.getFormat(),0===p))break}s.format=h?p:0}}ma(t,kt,void 0)})}function jn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fn(e,t){jn(e,t.getFormat(),t.getStyle())}function Bn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function $n(e){const t=e.inputType,n=Bn(e),r=Ro(),o=so();if("deleteContentBackward"===t){if(null===o){const e=lo();if(!Wr(e))return!0;Yi(e.clone())}if(Wr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===wn&&i<_n+30&&r.isComposing()&&t){if(ji(null),_n=0,setTimeout(()=>{Ko(r,()=>{ji(null)})},30),Wr(o)){const e=o.anchor.getNode();e.markDirty(),Or(e)||$("Anchor node must be a TextNode"),Fn(o,e)}}else{ji(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),a=n.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length;let l=Q&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Xo(pa(o.anchor,!0))),!l){ma(r,Lt,!0);const e=so();Q&&Wr(e)&&e.isCollapsed()&&(On=e,setTimeout(()=>On=null))}}return!0}}var i;if(!Wr(o))return!0;const a=e.data;null!==Sn&&ea(!1,r,Sn),o.dirty&&null===Sn||!o.isCollapsed()||ei(o.anchor.getNode())||null===n||o.applyDOMRange(n),Sn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),ma(r,Rt,!1);else if(a===ue)e.preventDefault(),ma(r,Mt,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&zn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),ma(r,Ot,a)):Sn=a;return kn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ma(r,Ot,e);break;case"insertFromComposition":ji(null),ma(r,Ot,e);break;case"insertLineBreak":ji(null),ma(r,Rt,!1);break;case"insertParagraph":ji(null),Nn&&!Y?(Nn=!1,ma(r,Rt,!1)):ma(r,Mt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ma(r,Pt,e);break;case"deleteByComposition":(function(e,t){return e!==t||qo(e)||qo(t)||!Ai(e)||!Ai(t)})(u,c)&&ma(r,zt,e);break;case"deleteByDrag":case"deleteByCut":ma(r,zt,e);break;case"deleteContent":ma(r,Lt,!1);break;case"deleteWordBackward":ma(r,It,!0);break;case"deleteWordForward":ma(r,It,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ma(r,Dt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ma(r,Dt,!1);break;case"formatStrikeThrough":ma(r,jt,"strikethrough");break;case"formatBold":ma(r,jt,"bold");break;case"formatItalic":ma(r,jt,"italic");break;case"formatUnderline":ma(r,jt,"underline");break;case"historyUndo":ma(r,Ft,void 0);break;case"historyRedo":ma(r,Bt,void 0)}return!0}function Hn(e){if(Ra(e.target)&&wi(e.target))return!0;const t=Ro(),n=so(),r=e.data,o=Bn(e);if(null!=r&&Wr(n)&&zn(n,o,r,e.timeStamp,!1)){Ln&&(Kn(t,r),Ln=!1);const o=n.anchor.getNode(),i=Na(wa(t));if(null===i)return!0;const a=n.isBackward(),s=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;G&&!n.isCollapsed()&&Or(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Zi(i.anchorNode)||ma(t,Ot,r);const u=r.length;K&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),Q&&t.isComposing()&&(_n=0,ji(null))}else{ea(!1,t,null!==r?r:void 0),Ln&&(Kn(t,r||void 0),Ln=!1)}return function(){Ao();const e=Ro();Te(e)}(),!0}function Wn(e){const t=Ro(),n=so();if(Wr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();ji(r.key),ba(cr),(e.timeStamp<_n+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Or(o)&&o.getStyle()!==n.style)&&ma(t,Ot,ce)}return!0}function Un(e){return Kn(Ro(),e.data),ba(dr),!0}function Kn(e,t){const n=e._compositionKey;if(ji(null),null!==n&&null!=t){if(""===t){const t=Bi(n),r=Mi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Or(t)){const n=Na(wa(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),ta(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=so();if(Wr(t)||Kr(t)){if(Wr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void ma(e,Yt,null)}}}ea(!0,e,t)}function Gn(e){const t=Ro();if(null==e.key)return!0;if(Rn){if(sa(e))return Ko(t,()=>{Kn(t,Mn)}),Rn=!1,Mn="",!0;Rn=!1,Mn=""}if(function(e){return oa(e,"ArrowRight",{shiftKey:"any"})}(e))ma(t,Ht,e);else if(function(e){return oa(e,"ArrowRight",ia)}(e))ma(t,Wt,e);else if(function(e){return oa(e,"ArrowLeft",{shiftKey:"any"})}(e))ma(t,Ut,e);else if(function(e){return oa(e,"ArrowLeft",ia)}(e))ma(t,Kt,e);else if(function(e){return oa(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))ma(t,Gt,e);else if(function(e){return oa(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))ma(t,Vt,e);else if(function(e){return oa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Nn=!0,ma(t,Yt,e);else if(function(e){return" "===e.key}(e))ma(t,qt,e);else if(function(e){return U&&oa(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Nn=!0,ma(t,Rt,!0);else if(function(e){return oa(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Nn=!1,ma(t,Yt,e);else if(function(e){return oa(e,"Backspace",{shiftKey:"any"})||U&&oa(e,"h",{ctrlKey:!0})}(e))sa(e)?ma(t,Jt,e):(e.preventDefault(),ma(t,Lt,!0));else if(function(e){return"Escape"===e.key}(e))ma(t,Qt,e);else if(function(e){return oa(e,"Delete",{})||U&&oa(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),ma(t,Lt,!1)):ma(t,Xt,e);else if(function(e){return oa(e,"Backspace",aa)}(e))e.preventDefault(),ma(t,It,!0);else if(function(e){return oa(e,"Delete",aa)}(e))e.preventDefault(),ma(t,It,!1);else if(function(e){return U&&oa(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),ma(t,Dt,!0);else if(function(e){return U&&(oa(e,"Delete",{metaKey:!0})||oa(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),ma(t,Dt,!1);else if(function(e){return oa(e,"b",ia)}(e))e.preventDefault(),ma(t,jt,"bold");else if(function(e){return oa(e,"u",ia)}(e))e.preventDefault(),ma(t,jt,"underline");else if(function(e){return oa(e,"i",ia)}(e))e.preventDefault(),ma(t,jt,"italic");else if(function(e){return oa(e,"Tab",{shiftKey:"any"})}(e))ma(t,Zt,e);else if(function(e){return oa(e,"z",ia)}(e))e.preventDefault(),ma(t,Ft,void 0);else if(function(e){if(U)return oa(e,"z",{metaKey:!0,shiftKey:!0});return oa(e,"y",{ctrlKey:!0})||oa(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),ma(t,Bt,void 0);else{const n=t._editorState._selection;null===n||Wr(n)?la(e)&&(e.preventDefault(),ma(t,dn,e)):!function(e){return oa(e,"c",ia)}(e)?!function(e){return oa(e,"x",ia)}(e)?la(e)&&(e.preventDefault(),ma(t,dn,e)):(e.preventDefault(),ma(t,cn,e)):(e.preventDefault(),ma(t,un,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(yn,e),!0}function Vn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Yn=new Map;function qn(e){const t=function(e){const t=_a(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=Ei(t.anchorNode);if(null===n)return;An&&(An=!1,Ko(n,()=>{const r=lo(),o=t.anchorNode;if(Ra(o)||Li(o)){Yi(io(r,t,n,e))}}));const r=Qi(n),o=r[r.length-1],i=o._key,a=Yn.get(i),s=a||o;s!==n&&Dn(t,s,!1),Dn(t,n,!0),n!==o?Yn.set(i,n):a&&Yn.delete(i)}function Jn(e){e._lexicalHandled=!0}function Qn(e){return!0===e._lexicalHandled}const Xn=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function Zn(e){const t=Cn.get(e);if(void 0===t)return void Xn();const n=En.get(t);if(void 0===n)return void Xn();const r=n-1;r>=0||$("Root element count less than 0"),Cn.delete(e),En.set(t,r),0===r&&t.removeEventListener("selectionchange",qn);const o=Ti(e);Ci(o)?(!function(e){if(null!==e._parentEditor){const t=Qi(e),n=t[t.length-1]._key;Yn.get(n)===e&&Yn.delete(n)}else Yn.delete(e._key)}(o),e.__lexicalEditor=null):o&&$("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Vn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function er(e,t,n){Ao();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=so();if(!Wr(t)||!qo(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();xa(o,e)&&n.set(e.__key,0,"element");xa(i,e)&&r.set(e.__key,0,"element");return t}(e);let a=!1;if(Wr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(fo(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(fo(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Kr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Wr(i)&&t&&!a){const t=e.getIndexWithinParent();Ii(e),uo(i,o,t,-1)}else Ii(e);n||ka(o)||o.canBeEmpty()||!o.isEmpty()||er(o,t),t&&i&&ei(o)&&o.isEmpty()&&o.selectEnd()}const tr=Symbol.for("ephemeral");function nr(e){return e[tr]||!1}class rr{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ya(this);return void 0===e&&$(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){$(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),zi(this,e),"root"!==this.__type&&function(e,t){const n=xi(Ro(),e);void 0===n&&$(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&$(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){$(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Bi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||so();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(Or(this))return n;if(Wr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Xo(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Bi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&$(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(ka(t))return qo(e)||e===this&&Xo(e)||$("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&$(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Bi(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Bi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=qo(this)?this:this.getParent(),n=qo(e)?e:e.getParent(),r=t&&n?Es(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Es(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ks(t):("same"!==t.type&&"ancestor"!==t.type&&$("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=Es(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const a=qo(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==a){o=a;continue}const s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let u=null,c=l;do{if(null===c&&$("getNodesBetween: ancestor is null"),u=t?c.getNextSibling():c.getPreviousSibling(),c=c.getParent(),null===c)break;null!==u||r.has(c.__key)||n.push(c)}while(null===u);o=u}return t||n.reverse(),n}isDirty(){const e=Ro()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(nr(this))return this;const e=Bi(this.__key);return null===e&&$("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(nr(this))return this;Ao();const e=Lo(),t=Ro(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=so();if(null!==a&&a.setCachedNodes(null),i.has(r))return Di(o),o;const s=$a(o);return i.add(r),Di(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){$("createDOM: base method not extended")}updateDOM(e,t,n){$("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){$(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Me(this,e)}static transform(){return null}remove(e){er(this,!0,e)}replace(e,t){Ao();let n=so();null!==n&&(n=n.clone()),Ea(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;Ii(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(er(r,!1,!0),null===u)s.__first=i;else{u.getWritable().__next=i}if(a.__prev=d,null===c)s.__last=i;else{c.getWritable().__prev=i}if(a.__next=f,a.__parent=p,s.__size=l,t&&(qo(this)&&qo(a)||$("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(e=>{a.append(e)})),Wr(n)){Yi(n);const e=n.anchor,t=n.focus;e.key===o&&$r(e,a),t.key===o&&$r(t,a)}return Fi()===o&&ji(i),a}insertAfter(e,t=!0){Ao(),Ea(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=so();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(Ii(r),Wr(i)){const e=o.__key,n=i.anchor,r=i.focus;a="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===l)u.__last=c;else{l.getWritable().__prev=c}if(u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Wr(i)){const e=this.getIndexWithinParent();uo(i,u,e+1);const t=u.__key;a&&i.anchor.set(t,e+2,"element"),s&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Ao(),Ea(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Ii(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();if(null===i)a.__first=o;else{i.getWritable().__next=o}a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=so();if(t&&Wr(u)){uo(u,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return li()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Ao();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(qo(n))return n.select();if(!Or(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Ao();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(qo(n))return n.select(0,0);if(!Or(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const or="historic",ir="history-merge",ar="collaboration",sr="skip-scroll-into-view",lr="skip-dom-selection",ur="skip-selection-focus",cr="composition-start",dr="composition-end";class fr extends rr{static getType(){return"linebreak"}static clone(e){return new fr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&za(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&gr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&za(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&gr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&gr(r))return!0}return!1}(e)?null:{conversion:pr,priority:0}}}static importJSON(e){return hr().updateFromJSON(e)}}function pr(e){return{node:hr()}}function hr(){return Ca(new fr)}function mr(e){return e instanceof fr}function gr(e){return Li(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function vr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function yr(e,t){return 1&t?"strong":2&t?"em":"span"}function br(e,t,n,r,o){const i=r.classList;let a=ua(o,"base");void 0!==a&&i.add(...a),a=ua(o,"underlineStrikethrough");let s=!1;const l=8&t&&4&t;void 0!==a&&(8&n&&4&n?(s=!0,l||i.add(...a)):l&&i.remove(...a));for(const e in de){const r=de[e];if(a=ua(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...a)}else t&r&&i.remove(...a)}}function xr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?le:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||K){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function _r(e,t,n,r,o,i){xr(o,e,t);const a=i.theme.text;void 0!==a&&br(0,0,r,e,a)}function wr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class kr extends rr{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new kr(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return ge[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Fi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=de[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Oi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=vr(0,n),o=yr(0,n),i=null===r?o:r,a=document.createElement(i);let s=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(o),a.appendChild(s));_r(s,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(a.style.cssText=l),a}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,a=vr(0,o),s=vr(0,i),l=yr(0,o),u=yr(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&$("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(u);return _r(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&$("updateDOM: innerDOM is null or undefined")),xr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&br(0,o,i,c,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Ar,priority:0}),b:()=>({conversion:Cr,priority:0}),code:()=>({conversion:Rr,priority:0}),em:()=>({conversion:Rr,priority:0}),i:()=>({conversion:Rr,priority:0}),mark:()=>({conversion:Rr,priority:0}),s:()=>({conversion:Rr,priority:0}),span:()=>({conversion:Sr,priority:0}),strong:()=>({conversion:Rr,priority:0}),sub:()=>({conversion:Rr,priority:0}),sup:()=>({conversion:Rr,priority:0}),u:()=>({conversion:Rr,priority:0})}}static importJSON(e){return Mr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Ra(t)||$("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=wr(t,"b")),this.hasFormat("italic")&&(t=wr(t,"i")),this.hasFormat("strikethrough")&&(t=wr(t,"s")),this.hasFormat("underline")&&(t=wr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?de[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?fe[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Oi(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=me[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Ao();let n=e,r=t;const o=so(),i=this.getTextContent(),a=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Wr(o))return no(a,n,a,r,"text","text");{const e=Fi();e!==o.anchor.key&&e!==o.focus.key||ji(a),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,a=n.length;let s=e;s<0&&(s=a+s,s<0&&(s=0));const l=so();if(r&&Wr(l)){const t=e+a;l.setTextNodeRange(o,t,o,t)}const u=i.slice(0,s)+n+i.slice(s+t);return o.__text=u,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Ao();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=Fi(),i=n.length;e.sort((e,t)=>e-t),e.push(i);const a=[],s=e.length;for(let t=0,r=0;t<i&&r<=s;r++){const o=e[r];o>t&&(a.push(n.slice(t,o)),t=o)}const l=a.length;if(1===l)return[t];const u=a[0],c=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let m=!1,g=null,v=null;const y=so();if(Wr(y)){const[e,t]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===e.type&&e.key===r&&(g=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=Mr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Ie(t,d),m=!0):d=t.setTextContent(u);const b=[d];for(let e=1;e<l;e++){const n=Mr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Ie(t,n);const i=n.__key;o===r&&ji(i),b.push(n)}const x=g?g.offset:null,_=v?v.offset:null;let w=0;for(const e of b){if(!g&&!v)break;const t=w+e.getTextContentSize();if(null!==g&&null!==x&&x<=t&&x>=w&&(g.set(e.getKey(),x-w,"text"),x<t&&(g=null)),null!==v&&null!==_&&_<=t&&_>=w){v.set(e.getKey(),_-w,"text");break}w=t}if(null!==c){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Di(t);null!==n&&Di(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();m?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),Wr(y)&&uo(y,c,t,l-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||$("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;Fi()===r&&ji(n);const a=so();if(Wr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&po(o,t,n,e,i),null!==s&&s.key===r&&po(s,t,n,e,i)}const s=e.__text,l=t?s+o:o+s;this.setTextContent(l);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function Sr(e){return{forChild:Pr(e.style),node:null}}function Cr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Pr(t.style,n?void 0:"bold"),node:null}}const Er=new WeakMap;function Tr(e){if(!Ra(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Ar(e){const t=e;null===e.parentElement&&$("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Er.get(n))&&!Tr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Er.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(hr()):"\t"===r?t.push(Ir()):""!==r&&t.push(Mr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=Nr(e,!0));){if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Mr(n)}}function Nr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,Ra(n)){const e=n.style.display;if(""===e&&!Pa(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Li(n))return n;if("BR"===n.nodeName)return null}}const Lr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rr(e){const t=Lr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Pr(e.style,t),node:null}}function Mr(e=""){return Ca(new kr(e))}function Or(e){return e instanceof kr}function Pr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),a="italic"===e.fontStyle,s=r.includes("underline"),l=e.verticalAlign;return e=>Or(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),a&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class zr extends kr{static getType(){return"tab"}static clone(e){return new zr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=ua(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Ir().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&$("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||$("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&$("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&$("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Ir(){return Ca(new zr)}function Dr(e){return e instanceof zr}class jr{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return ws(zs(Ts(this,"next")),zs(Ts(e,"next")))<0}getNode(){const e=Bi(this.key);return null===e&&$("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Bi(e);("text"===n?Or(t):qo(t))||$(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}To()||(Fi()===i&&ji(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function Fr(e,t,n){return new jr(e,t,n)}function Br(e,t){let n=t.__key,r=e.offset,o="element";if(Or(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!qo(t)){const e=t.getNextSibling();if(Or(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function $r(e,t){if(qo(t)){const n=t.getLastDescendant();qo(n)||Or(n)?Br(e,n):Br(e,t)}else Br(e,t)}class Hr{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Kr(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(Or(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=Bi(e);null!==t&&n.push(t)}return To()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((so()||lo())===this&&e[0]){const t=cs(e[0],"next");Ns(xs(t,t))}for(const t of e)t.remove()}}function Wr(e){return e instanceof Ur}class Ur{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Wr(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(as(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;qo(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(is(e.focus)&&qo(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=hs(e.focus.origin,"previous");as(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=ms(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!qo(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=zs(e.anchor),r=zs(e.anchor.getFlipped()),o=e=>os(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(js(Rs(this),"next"));return this.isCollapsed()&&t.length>1&&$(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),To()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,s]=Vr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(qo(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,Or(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<s?e.slice(a,s):e.slice(s,a)):e=i?e.slice(a):e.slice(s):d===n&&(e=i?e.slice(0,s):e.slice(0,a)),l+=e}else!Xo(d)&&!mr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Ro(),n=t.getEditorState()._selection,r=eo(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Be(this)}clone(){const e=this.anchor,t=this.focus;return new Ur(Fr(e.key,e.offset,e.type),Fr(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Oi(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=de[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(hr()):"\t"===r?n.push(Ir()):n.push(Mr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,a=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,a=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Mr();if(a.setFormat(n),a.setStyle(r),ui(i))i.splice(0,0,[a]);else{const e=ei(o)?li().append(a):a;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}(i,a,r,o),"element"===a.type&&As(a,zs(Ts(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];Or(d)||$("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=u[c-1];if(1===c&&"element"===a.type&&(l=f,a.set(i.key,l,"text")),this.isCollapsed()&&s===f&&(Ni(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Or(t)&&t.canInsertTextBefore()&&!Ni(t)||(t=Mr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(Ni(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Or(t)&&!Ni(t)||(t=Mr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){const e=Mr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||qo(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Zr(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(Ai(d)){const t=Mr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Dr(d)){const t=Mr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Mr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===s)d.insertBefore(t,!1);else{const[e]=d.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=l-s;d=d.spliceText(s,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=qo(d)?d:d.getParentOrThrow();let r=qo(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===a.type&&(0!==l||""===h.getTextContent())||"element"===a.type&&h.getIndexWithinParent()<l)if(Or(h)&&!Ai(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Mr(h.getTextContent());h.replace(e),h=e}ei(a.getNode())||"text"!==a.type||(h=h.spliceText(0,l,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(u),m=n.is(r),g=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||qo(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Ai(d))if(s===f)d.select();else{const t=Mr(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<c;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=so()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=js(e,r),a=Os(i.anchor,n),s=Os(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(as(e))l.add(e.origin.getKey());else if(is(e)){const{origin:t}=e;qo(t)&&!l.has(t.getKey())||u.push(t)}for(const e of u)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=Ms(cs(t,r)),l=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===l&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===l){const e=t.origin,n=Mr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=ds(n,r,t.offset)}n.is(a[0].origin)&&(a[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let c,d;for(const e of a)if(Ps(e)){c=zs(e);break}for(const e of s)if(Ps(e)){d=zs(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const a=o.getParents().reverse();a.push(o);const s=Math.min(i.length,a.length);let l;for(l=0;l<s&&i[l]===a[l];l++);const u=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(ka(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,Ia),d=c&&u(a,e=>n.has(e.getKey())&&Ia(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;hs(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[c,d,...a,...s].find(Ps);if(p){return bs(Ds(zs(p),e.direction))}$(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(a.map(e=>e.origin.__key))}`)}(Rs(this));Ls(this,t),e&&so()!==this&&Yi(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void ji(null);const n=this.getNodes(),r=[];for(const e of n)Or(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(qo(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),ji(null),void o(t);const a=this.anchor,s=this.focus,l=this.isBackward(),u=l?s:a,c=l?a:s;let d=0,f=r[0],p="element"===u.type?0:u.offset;if("text"===u.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const m=i-1;let g=r[m];const v="text"===c.type?c.offset:g.getTextContentSize();if(f.is(g)){if(p===v)return;if(Ni(f)||0===p&&v===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,v),t=0===p?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ni(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const y=g.getFormatFlags(e,h);v>0&&(v===g.getTextContentSize()||Ni(g)||([g]=g.splitText(v)),g.setFormat(y));for(let t=d+1;t<m;t++){const n=r[t],o=n.getFormatFlags(e,y);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(g.__key,v,"text"),this.format=h|y}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=so();return Wr(t)||$("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=qa(t,Ia),r=e[e.length-1];if(qo(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=yo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(qo(e)||Xo(e))&&!e.isInline())){qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=yo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=li();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=mr(o);if(i||Xo(o)&&o.isInline()||qo(o)&&o.isInline()||Or(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),a=o.getChildren(),s=!qo(n)||!n.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let u=a[0];(e=>qo(e)&&Ia(e)&&!e.isEmpty()&&qo(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(u)&&(qo(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||$("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const c=qa(i,Ia);s&&qo(c)&&(s.canMergeWhenEmpty()||Ia(l))&&(c.append(...s.getChildren()),s.remove()),qo(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=qo(n)?n.getLastChild():null;mr(d)&&c!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=li();return Gi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=yo(this),t=qa(this.anchor.getNode(),Ia);qo(t)||$("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=hr();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Vr(this),a=this.isBackward(),[s,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=a?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Or(n)&&!this.isCollapsed()){const e=n.splitText(u,c),t=0===u?e[0]:e[1];return t?(s.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Or(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),Or(r)){const t=r.getTextContent().length;0===c?e.pop():c!==t&&([r]=r.splitText(c),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(xo(this,e,t,n))return;const r="move"===e,o=Ro(),i=Na(wa(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!qo(l)||l.isInline()||l.canBeEmpty()||Aa(a,o,s),this.dirty){let e=ga(o,this.anchor.key),t=ga(o,this.focus.key);"text"===this.anchor.type&&(e=Mi(e)),"text"===this.focus.type&&(t=Mi(t)),e&&t&&ho(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=ei(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(ka(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let a=!1;for(let e=0;e<n.length;e++){const t=n[e];xa(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];qo(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];qo(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&xo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&qo(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(qo(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=ys(Ts(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(as(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=zs(t);Ls(this,xs(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(is(t)){if(qo(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Xo(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&qo(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=oo();e.add(t.origin.getKey()),Yi(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Ls(this,xs(!t.origin.isEmpty()&&n.isEmpty()?Ms(cs(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Yr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Jr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Jr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,a=e<i,s=a?e:i,l=a?i:e,u=l-1;if(s!==u){(function(e){e.length>1||$("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Ji(e)||qr(e))})(o.getTextContent().slice(s,l))&&(t?r.set(r.key,u,r.type):n.set(n.key,u,n.type))}}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&ei(e.getParent())&&null===e.getPreviousSibling()&&Yr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Kr(e){return e instanceof Hr}function Gr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Vr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Gr(n),Gr(r)]}function Yr(e,t){for(let n=t;n;n=n.getParent()){if(qo(n)){if(n.collapseAtStart(e))return!0;if(ka(n))break}if(n.getPreviousSibling())break}return!1}const qr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Jr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let a=0,s=0;for(let e=0;e<i;e++){const r=e===i-1;if(s=a,a+=o[e].length,t&&a===n||a>n||r){o.splice(e,1),r&&(s=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(s,s))}function Qr(e,t,n,r){let o,i=t;if(Ra(e)){let a=!1;const s=e.childNodes,l=s.length,u=r._blockCursorElement;i===l&&(a=!0,i=l-1);let c=s[i],d=!1;if(c===u)c=s[i+1],d=!0;else if(null!==u){const n=u.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,u)&&i--}}if(o=qi(c),Or(o))i=fs(o,a?"next":"previous");else{let s=qi(e);if(null===s)return null;if(qo(s)){const l=r.getElementByKey(s.getKey());null===l&&$("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),qo(s)||$("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(qo(c)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(c,0,n)){const e=a?c.getLastDescendant():c.getFirstDescendant();null===e?s=c:(c=e,s=qo(c)?c:c.getParentOrThrow()),i=0}Or(c)?(o=c,s=null,i=fs(c,a?"next":"previous")):c!==s&&a&&!d&&(qo(s)||$("invariant"),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Xo(s)&&qi(e)===s?n:n+1,s=s.getParentOrThrow()}if(qo(s))return Fr(s.__key,i,"element")}}else o=qi(e);return Or(o)?Fr(o.__key,fs(o,i,"clamp"),"text"):null}function Xr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&qo(i)&&i.isInline()){const t=i.getPreviousSibling();Or(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else qo(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Or(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&qo(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&qo(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Or(t)&&e.set(t.__key,0,"text")}}}function Zr(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Xr(e,n,r),Xr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function eo(e,t,n,r,o,i){if(null===e||null===n||!Si(o,e,n))return null;const a=Qr(e,t,Wr(i)?i.anchor:null,o);if(null===a)return null;const s=Qr(n,r,Wr(i)?i.focus:null,o);if(null===s)return null;if(ao("anchor",a),ao("focus",s),"element"===a.type&&"element"===s.type){const t=qi(e),r=qi(n);if(Xo(t)&&Xo(r))return null}return Zr(a,s),[a,s]}function to(e){return qo(e)&&!e.isInline()}function no(e,t,n,r,o,i){const a=Lo(),s=new Ur(Fr(e,t,o),Fr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function ro(){const e=Fr("root",0,"element"),t=Fr("root",0,"element");return new Ur(e,t,0,"")}function oo(){return new Hr(new Set)}function io(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,a=i?i.type:void 0,s="selectionchange"===a,l=!be&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Wr(e)&&!l)return e.clone();if(null===t)return null;if(u=t.anchorNode,c=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(s||void 0===a)&&Wr(e)&&!Si(n,u,c))return e.clone();const p=eo(u,d,c,f,n,e);if(null===p)return null;const[h,m]=p;let g=0,v="";if(Wr(e)){const t=e.anchor;if(h.key===t.key)g=e.format,v=e.style;else{const e=h.getNode();Or(e)?(g=e.getFormat(),v=e.getStyle()):qo(e)&&(g=e.getTextFormat(),v=e.getTextStyle())}}return new Ur(h,m,g,v)}function ao(e,t){const n=Bi(t.key);if(void 0===n&&$(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Or(n)||$(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{qo(n)||$(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function so(){return Lo()._selection}function lo(){return Ro()._editorState._selection}function uo(e,t,n,r=1){const o=e.anchor,i=e.focus,a=o.getNode(),s=i.getNode();if(!t.is(a)&&!t.is(s))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(l,n,"element"),i.set(l,n,"element"),co(e)}}else{const a=e.isBackward(),s=a?i:o,u=s.getNode(),c=a?o:i,d=c.getNode();if(t.is(u)){const e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(l,Math.max(0,e+r),"element")}}co(e)}function co(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!qo(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(qo(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Or(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(qo(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(Or(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function fo(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,Or(r)?(a=r.getTextContentSize(),s="text"):qo(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,Or(o)?s="text":qo(o)&&(s="element")),null!==i&&null!==s?e.set(i,a,s):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function po(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function ho(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function mo(e,t,n){const r=ga(e,t.getKey());if(qo(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function go(e,t,n,r,o,i,a){const s=r.anchorNode,l=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(o.has(ar)&&d!==i||null!==d&&ki(d))return;if(!Wr(t))return void(null!==e&&Si(n,s,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.getNode(),m=p.getNode(),[g,v]=mo(n,h,f.offset),[y,b]=mo(n,m,p.offset),x=t.format,_=t.style,w=t.isCollapsed();let k=g,S=y,C=!1;if("text"===f.type?(k=Mi(g),C=h.getFormat()!==x||h.getStyle()!==_):Wr(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(S=Mi(y)),null!==k&&null!==S&&(w&&(null===e||C||Wr(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){Pn=[e,t,n,r,o]}(x,_,v,f.key,performance.now()),u!==v||c!==b||s!==k||l!==S||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(ur)||i.focus({preventScroll:!0}),"element"===f.type))){if(ho(r,k,v,S,b),!K||!t.isCollapsed()||null===i||o.has(ur)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(sr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Wr(t)&&"element"===t.anchor.type?k.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=ya(n),o=_a(r);if(null===r||null===o)return;let{top:i,bottom:a}=t,s=0,l=0,u=n;for(;null!==u;){const t=u===r.body;if(t)s=0,l=wa(e).innerHeight;else{const e=u.getBoundingClientRect();s=e.top,l=e.bottom}let n=0;if(i<s?n=-(s-i):a>l&&(n=a-l),0!==n)if(t)o.scrollBy(0,n);else{const e=u.scrollTop;u.scrollTop+=n;const t=u.scrollTop-e;i-=t,a-=t}if(t)break;u=va(u)}}(n,t,i)}}Tn=!0}}function vo(e){let t=so()||lo();null===t&&(t=Gi().selectEnd()),t.insertNodes(e)}function yo(e){let t=e;e.isCollapsed()||t.removeText();const n=so();Wr(n)&&(t=n),Wr(t)||$("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Ia(o);){const e=o;if([o,i]=bo(o,i),e.is(o))break}return i}function bo(e,t){const n=e.getParent();if(!n){const e=li();return Gi().append(e),e.select(),[Gi(),0]}if(Or(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!qo(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Ur(Fr(e.__key,t,"element"),Fr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function xo(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=Ts(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!Is(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Xo(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of ys(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(as(e))e.origin.isInline()||(l=e);else{if(qo(e.origin))continue;Xo(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Xo(l.origin)&&l.origin.isKeyboardSelectable()){const e=oo();return e.add(l.origin.getKey()),Yi(e),!0}return l=zs(l),s&&As(e.anchor,l),As(e.focus,l),u||!a}let _o=null,wo=null,ko=!1,So=!1,Co=0;const Eo={characterData:!0,childList:!0,subtree:!0};function To(){return ko||null!==_o&&_o._readOnly}function Ao(){ko&&$("Cannot use method in read-only mode.")}function No(){Co>99&&$("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function Lo(){return null===_o&&$(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Mo()}`),_o}function Ro(){return null===wo&&$(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Mo()}`),wo}function Mo(){let e=0;const t=new Set,n=hi.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Ti(r);if(Ci(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function Oo(){return wo}function Po(e,t,n){const r=t.__type,o=bi(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const a=i.length;for(let e=0;e<a&&(i[e](t),t.isAttached());e++);}function zo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Io(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function Do(e){return jo(e,Ro()._nodes)}function jo(e,t){const n=e.type,r=t.get(n);void 0===r&&$(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&$(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),a=e.children;if(qo(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=jo(a[e],t);i.append(n)}return i}function Fo(e,t,n){const r=_o,o=ko,i=wo;_o=t,ko=!0,wo=e;try{return n()}finally{_o=r,ko=o,wo=i}}function Bo(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function $o(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,a=i._selection,s=n._selection,l=0!==e._dirtyType,u=_o,c=ko,d=wo,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){wo=e,_o=n,ko=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=xt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),So)throw t;return di(e,null,r,n),Ae(e),e._dirtyType=2,So=!0,$o(e,i),void(So=!1)}finally{p.observe(r,Eo),e._updating=f,_o=u,ko=c,wo=d}}n._readOnly||(n._readOnly=!0,Bo(n),Wr(s)&&(Object.freeze(s.anchor),Object.freeze(s.focus)),Object.freeze(s));const m=e._dirtyLeaves,g=e._dirtyElements,v=e._normalizedNodes,y=e._updateTags,b=e._deferred;l&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=Ui(e)),delete r[i])}(e,n);const x=o?null:Na(wa(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!y.has(lr)){wo=e,_o=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&Aa(t,e,r),go(a,s,e,x,y,r)}!function(e,t,n){let r=e._blockCursorElement;if(Wr(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),a=o.offset;let s=!1,l=null;if(a===i.getChildrenSize()){Ta(i.getChildAtIndex(a-1))&&(s=!0)}else{const t=i.getChildAtIndex(a);if(null!==t&&Ta(t)){const n=t.getPreviousSibling();(null===n||Ta(n))&&(s=!0,l=e.getElementByKey(t.__key))}}if(s){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=Ws(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&Aa(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,Eo),wo=d,_o=u}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),a=i.length;for(let e=0;e<a;e++){const[a,s]=i[e];for(const e of s){const i=t.get(e);void 0!==i&&a(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,y,m,i),Wr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(kt,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Ho("decorator",e,!0,_)),function(e,t,n){const r=Ki(t),o=Ki(n);r!==o&&Ho("textcontent",e,!0,o)}(e,t||i,n),Ho("update",e,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:y}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;Uo(e,t,r)}}}(e)}function Ho(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Wo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let a;void 0!==o&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&$("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),a&&e._deferred.push(a),Io(e,o.tag)),null==i?Uo(e,n,o):n()}}return r}function Uo(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,Io(e,n.tag),i=n.skipTransforms||!1,a=n.discrete||!1),o&&e._deferred.push(o);const s=e._editorState;let l=e._pendingEditorState,u=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=ti(l||s),u=!0),l._flushSync=a;const c=_o,d=ko,f=wo,p=e._updating;_o=l,ko=!1,e._updating=!0,wo=e;const h=e._headless||null===e.getRootElement();gi(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Na(wa(e));return Wr(n)||null==n?io(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Wo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Wr(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(l,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);Or(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Fe(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=Fi(),a=new Map;let s=n,l=s.size,u=r,c=u.size;for(;l>0||c>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of s){const r=o.get(e);Or(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Fe(r),void 0!==r&&zo(r,i)&&Po(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){Co++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0);for(const e of u){const n=e[0],s=e[1];if(r.set(n,s),!s)continue;const l=o.get(n);void 0!==l&&zo(l,i)&&Po(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,Co++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Wo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,a=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(qo(t)&&ye(t,e,o,i,a,r),o.has(e)||r.delete(e),a.push(e)))}for(const e of a)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(s,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if(Wr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||$("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Kr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void $o(e)}finally{_o=c,ko=d,wo=f,e._updating=p,Co=0}const m=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(l,e);m?l._flushSync?(l._flushSync=!1,$o(e)):u&&_i(()=>{$o(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ko(e,t,n){wo===e&&void 0===n?t():Uo(e,t,n)}class Go{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Go(this.element,e,this.after)}withAfter(e){return new Go(this.element,this.before,e)}withElement(e){return this.element===e?this:new Go(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&$("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&$("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&$("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(X||Y||V);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Vo(t,n);o.push(r);const i=Vo(t,this.element);let a=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){a+=1;break}}return[e.getParentOrThrow(),a]}}function Vo(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&$("indexPath: root is not a parent of child"),n.reverse()}class Yo extends rr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return he[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=Ro()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(Or(t)&&e.push(t),qo(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;qo(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;qo(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return qo(e)&&e.getLastDescendant()||e||null}const r=t[e];return qo(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Bi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&$(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Bi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&$(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=ue)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),qo(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=pe[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=de[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return Oi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Ao();const n=so();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Or(e)||qo(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Or(e)||qo(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Wr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):no(a,r,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?pe[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){nr(this)&&$(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||$(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,a=[],s=[],l=this.getChildAtIndex(e+t);let u=null,c=r-t+n.length;if(0!==e)if(e===r)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){null===e&&$("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;Ii(e.getWritable()),s.push(n),e=t}}let d=u;for(const e of n){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&c--,Ii(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&$("append: attempting to append self"),t.__parent=i,a.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=c,s.length){const e=so();if(Wr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Jo(r,t,n)&&fo(r,r.getNode(),this,u,l),Jo(o,t,n)&&fo(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||ka(this)||this.remove()}}return o}getDOMSlot(e){return new Go(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||ka(this)||this.getChildren().some(Or)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function qo(e){return e instanceof Yo}function Jo(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class Qo extends rr{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Xo(e){return e instanceof Qo}class Zo extends Yo{__cachedText;static getType(){return"root"}static clone(){return new Zo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!To()&&0!==Ro()._dirtyType||null===e?super.getTextContent():e}remove(){$("remove: cannot be called on root nodes")}replace(e){$("replace: cannot be called on root nodes")}insertBefore(e){$("insertBefore: cannot be called on root nodes")}insertAfter(e){$("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)qo(e)||Xo(e)||$("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Gi().updateFromJSON(e)}collapseAtStart(){return!0}}function ei(e){return e instanceof Zo}function ti(e){return new oi(new Map(e._nodeMap))}function ni(){return new oi(new Map([["root",new Zo]]))}function ri(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&$(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),qo(e)){const r=t.children;Array.isArray(r)||$(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ri(o[e]);r.push(t)}}return t}class oi{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return Fo(t&&t.editor||null,this,e)}clone(e){const t=new oi(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Fo(null,this,()=>({root:ri(Gi())}))}}class ii extends Yo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ai extends Yo{static getType(){return"paragraph"}static clone(e){return new ai(e.__key)}createDOM(e){const t=document.createElement("p"),n=ua(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:si,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return li().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Or);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=li();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||Or(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function si(e){const t=li();if(e.style&&(t.setFormat(e.style.textAlign),Wa(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in pe&&t.setFormat(n)}return{node:t}}function li(){return Ca(new ai)}function ui(e){return e instanceof ai}const ci=0;function di(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=ni(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function fi(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ya(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof rr&&e!==rr?e:void 0}}return t}function pi(e){const t=e||{},n=Oo(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=ni(),s=t.namespace||(null!==o?o._config.namespace:Xi()),l=t.editorState,u=[Zo,kr,fr,zr,ai,ii,...t.nodes||[]],{onError:c,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<u.length;e++){let t=u[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ya(t);{const e=t.name,o=Ga(t,"getType")&&t.getType();r?r.prototype instanceof t||$(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==rr&&(["getType","clone"].forEach(n=>{Ga(t,n)||console.warn(`${e} must implement static "${n}" method`)}),!Ga(t,"importDOM")&&Va(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Ga(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=fi(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Ne(u[e]),transforms:i})}}const h=new hi(a,o,p,{disableEvents:i,namespace:s,theme:r},c||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)}),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==l&&(h._pendingEditorState=l,h._dirtyType=2),function(e){e.registerCommand(Et,$n,ci),e.registerCommand(Tt,Hn,ci),e.registerCommand(At,Wn,ci),e.registerCommand(Nt,Un,ci),e.registerCommand($t,Gn,ci)}(h),h}class hi{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,a,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Xi(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&$('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&$(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const a=n&&n.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&$(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Ba(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=Ba(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update(()=>{for(const e of r)for(const t of e.keys()){const e=Bi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ir}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return ma(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=ua(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,di(this,t,e,r),null!==t&&(this._config.disableEvents||Zn(t),null!=n&&t.classList.remove(...n)),null!==e){const t=_a(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,Ae(this),this._updateTags.add(ir),$o(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Cn.set(e,n);const r=En.get(n)??0;r<1&&n.addEventListener("selectionchange",qn),En.set(n,r+1),e.__lexicalEditor=t;const o=Vn(e);for(let n=0;n<xn.length;n++){const[r,i]=xn[n],a="function"==typeof i?e=>{Qn(e)||(Jn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Qn(e))return;Jn(e);const n=t.isEditable();switch(r){case"cut":return n&&ma(t,cn,e);case"copy":return ma(t,un,e);case"paste":return n&&ma(t,Pt,e);case"dragstart":return n&&ma(t,an,e);case"dragover":return n&&ma(t,sn,e);case"dragend":return n&&ma(t,ln,e);case"focus":return n&&ma(t,gn,e);case"blur":return n&&ma(t,vn,e);case"drop":return n&&ma(t,rn,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ir),$o(this);Ho("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&$("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=ti(e),n._selection=e._selection?e._selection.clone():null),Te(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),$o(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||$o(this)}parseEditorState(e,t){return function(e,t,n){const r=ni(),o=_o,i=ko,a=wo,s=t._dirtyElements,l=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,_o=r,ko=!1,wo=t,gi(null);try{const o=t._nodes;jo(e.root,o),n&&n(),r._readOnly=!0,Bo(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,_o=o,ko=i,wo=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return $o(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Uo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ko(this,()=>{const r=so(),o=Gi();null!==r?r.dirty||Yi(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ba("focus"),function(e){Ao();Ro()._deferred.push(e)}(()=>{n.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Na(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ho("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}hi.version="0.41.0+dev.esm";let mi=null;function gi(e){mi=e}let yi=1;function bi(e,t){const n=xi(e,t);return void 0===n&&$(`registeredNode: Type ${t} not found`),n}function xi(e,t){return e._nodes.get(t)}const _i="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function wi(e){return Xo(Wi(e))}function ki(e){const t=document.activeElement;if(!Ra(t))return!1;const n=t.nodeName;return Xo(Wi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Ti(t))}function Si(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ki(t)&&Ei(t)===e}catch(e){return!1}}function Ci(e){return e instanceof hi}function Ei(e){let t=e;for(;null!=t;){const e=Ti(t);if(Ci(e))return e;t=va(t)}return null}function Ti(e){return e?e.__lexicalEditor:null}function Ai(e){return Dr(e)||e.isToken()}function Ni(e){return Ai(e)||e.isSegmented()}function Li(e){return Ma(e)&&3===e.nodeType}function Ri(e){return Ma(e)&&9===e.nodeType}function Mi(e){let t=e;for(;null!=t;){if(Li(t))return t;t=t.firstChild}return null}function Oi(e,t,n){const r=de[t];if(null!==n&&(e&r)===(n&r))return e;let o=e^r;return"subscript"===t?o&=-65:"superscript"===t?o&=-33:"lowercase"===t?(o&=-513,o&=-1025):"uppercase"===t?(o&=-257,o&=-1025):"capitalize"===t&&(o&=-257,o&=-513),o}function Pi(e){return Or(e)||mr(e)||Xo(e)}function zi(e,t){const n=function(){const e=mi;return mi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=_o;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&$(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Ao(),No();const r=Ro(),o=Lo(),i=""+yi++;o._nodeMap.set(i,e),qo(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Ii(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=null!==i?i.__key:null,s=null!==o?o.__key:null,l=null!==o?o.getWritable():null,u=null!==i?i.getWritable():null;null===o&&(r.__first=a),null===i&&(r.__last=s),null!==l&&(l.__next=a),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Di(e){No(),nr(e)&&$(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=Lo(),o=Ro(),i=r._nodeMap,a=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,a);const s=t.__key;o._dirtyType=1,qo(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function ji(e){Ao();const t=Ro(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Bi(n);null!==e&&e.getWritable()}if(null!==e){const t=Bi(e);null!==t&&t.getWritable()}}}function Fi(){if(To())return null;return Ro()._compositionKey}function Bi(e,t){const n=(t||Lo())._nodeMap.get(e);return void 0===n?null:n}function $i(e,t){const n=Hi(e,Ro());return void 0!==n?Bi(n,t):null}function Hi(e,t){return e[`__lexicalKey_${t._key}`]}function Wi(e,t){let n=e;for(;null!=n;){const e=$i(n,t);if(null!==e)return e;n=va(n)}return null}function Ui(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Ki(e){return e.read(()=>Gi().getTextContent())}function Gi(){return Vi(Lo())}function Vi(e){return e._nodeMap.get("root")}function Yi(e){Ao();const t=Lo();null!==e&&(Object.isFrozen(e)&&$("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function qi(e){const t=Ro(),n=function(e,t){let n=e;for(;null!=n;){const e=Hi(n,t);if(void 0!==e)return e;n=va(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Bi("root"):null}return Bi(n)}function Ji(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Qi(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Xi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Zi(e){return Li(e)?e.nodeValue:null}function ea(e,t,n){const r=Na(wa(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Zi(o);const r=Wi(o);if(null!==t&&Or(r)){if((t===le||t===ce)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&ta(r,t,i,a,e)}}}function ta(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const a=i.isComposing();let s=t;if((a||o)&&(t.endsWith(le)&&(s=t.slice(0,-le.length)),o)){const e=ce;let t;for(;-1!==(t=s.indexOf(e));)s=s.slice(0,t)+s.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const l=i.getTextContent();if(o||s!==l){if(""===s){if(ji(null),V||Y||X)i.remove();else{const e=Ro();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=lo(),l=i.getTextContentSize(),u=Fi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Wr(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!a||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!a))return void i.markDirty();const d=so();if(!Wr(d)||null===n||null===r)return void na(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Mr(i.getTextContent());i.replace(e),i=e}na(i,s,d)}}}function na(e,t,n){if(e.setTextContent(t),Wr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=fs(e,o.offset,"clamp"))}}}function ra(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function oa(e,t,n){if(!function(e,t){return ra(e,t,"altKey")&&ra(e,t,"ctrlKey")&&ra(e,t,"shiftKey")&&ra(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const ia={ctrlKey:!U,metaKey:U},aa={altKey:U,ctrlKey:!U};function sa(e){return"Backspace"===e.key}function la(e){return oa(e,"a",ia)}function ua(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=Ws(o);return n[t]=e,e}return o}function ca(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&$(`Type ${i} not in registeredNodes`);const l=s.klass;let u=e.get(l);void 0===u&&(u=new Map,e.set(l,u));const c=u.get(a),d="destroyed"===c&&"created"===o;(void 0===c||d)&&u.set(a,d?"updated":o)}function da(e){const t=e.getType(),n=Lo();if(n._readOnly){const e=Ba(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function fa(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function pa(e,t){const n=e.offset;if("element"===e.type){return fa(e.getNode(),t,n)}{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?fa(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function ha(e){const t=wa(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function ma(e,t,n){return function(e,t,n){const r=Qi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const a=r[i],s=a._commands.get(t);if(void 0!==s){const t=s[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Ko(a,()=>{for(let t=0;t<o;t++)if(r[t](n,e))return void(i=!0)}),i)return i}}}return!1}(e,t,n)}function ga(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&$(`Reconciliation: could not find DOM element for node key ${t}`),n}function va(e){const t=e.assignedSlot||e.parentElement;return Oa(t)?t.host:t}function ya(e){return Ri(e)?e:Ra(e)?e.ownerDocument:null}function ba(e){Ao();Ro()._updateTags.add(e)}function xa(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function _a(e){const t=ya(e);return t?t.defaultView:null}function wa(e){const t=e._window;return null===t&&$("window object not found"),t}function ka(e){return ei(e)||qo(e)&&e.isShadowRoot()}function Sa(e){const t=e.constructor.clone(e);return zi(t,null),t.afterCloneFrom(e),t}function Ca(e){const t=Ro(),n=e.getType(),r=xi(t,n);void 0===r&&$(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||$(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||$(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&$(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function Ea(e,t){!ei(e.getParent())||qo(t)||Xo(t)||$("Only element or decorator nodes can be inserted in to the root node")}function Ta(e){return(Xo(e)||qo(e)&&!e.canBeEmpty())&&!e.isInline()}function Aa(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Na(e){return H?(e||window).getSelection():null}function La(e){return Ra(e)&&"A"===e.tagName}function Ra(e){return Ma(e)&&1===e.nodeType}function Ma(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Oa(e){return Ma(e)&&11===e.nodeType}function Pa(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function za(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function Ia(e){if(Xo(e)&&!e.isInline())return!0;if(!qo(e)||ka(e))return!1;const t=e.getFirstChild(),n=null===t||mr(t)||Or(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Da(){return Ro()}const ja=new WeakMap,Fa=new Map;function Ba(e){if(!e._readOnly&&e.isEmpty())return Fa;e._readOnly||$("getCachedTypeToNodeMap called with a writable EditorState");let t=ja.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),ja.set(e,t)),t}function $a(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function Ha(e){return function(e){return e[tr]=!0,e}($a(e))}function Wa(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Ua(e){return!0===e.__lexicalUnmanaged}function Ka(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ga(e,t){return Ka(e,t)&&e[t]!==rr[t]}function Va(e){return Ka(e.prototype,"exportDOM")}function Ya(e){const t=ve in e.prototype?e.prototype[ve]():void 0,n=function(e){if(!(e===rr||e.prototype instanceof rr)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{hi.version&&(n=JSON.parse(hi.version))}catch(e){}$(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Qo||e===Yo||e===rr}(e),r=!n&&Ga(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(Ga(e,"getType")||(e.getType=()=>i),Ga(e,"clone")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(gi(t),new e)),Ga(e,"importJSON")||(0===kr.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ga(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const qa=(e,t)=>{let n=e;for(;null!=n&&!ei(n);){if(t(n))return n;n=n.getParent()}return null},Ja={next:"previous",previous:"next"};class Qa{origin;constructor(e){this.origin=e}[Symbol.iterator](){return _s({hasNext:is,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return cs(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return cs(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),a=new Map;for(let t=o.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();a.set(e.getKey(),e)}for(const e of r){if(a.size>0){const t=o.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&$(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(a).join(" ")})`)}else o.insert(e);o=cs(e,this.direction)}for(const e of a.values())e.remove();return this}}class Xa extends Qa{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:hs(e,this.direction)}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=es(this.direction);return cs(this.getNodeAtCaret(),e)||hs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Xa&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Za={root:ei,shadowRoot:ka};function es(e){return Ja[e]}function ts(e,t="root"){return Za[t](e)?null:e}class ns extends Qa{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:cs(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return qo(this.origin)?hs(this.origin,this.direction):null}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=es(this.direction);return cs(this.getNodeAtCaret(),e)||hs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof ns&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof ns||e instanceof rs)&&this.direction===e.direction&&this.origin.is(e.origin)}}class rs extends Qa{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ds(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return cs(ts(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ds(this.origin,es(this.direction),this.offset)}isSamePointCaret(e){return e instanceof rs&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof ns||e instanceof rs)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return cs(this.origin,this.direction)}}function os(e){return e instanceof rs}function is(e){return e instanceof ns}function as(e){return e instanceof Xa}const ss={next:class extends rs{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rs{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ls={next:class extends ns{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ns{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},us={next:class extends Xa{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Xa{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function cs(e,t){return e?new ls[t](e):null}function ds(e,t,n){return e?new ss[t](e,fs(e,n)):null}function fs(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&$(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function ps(e,t){return new vs(e,t)}function hs(e,t){return qo(e)?new us[t](e):null}function ms(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class gs{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new gs(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return os(t)?function(e,t){const{direction:n,origin:r}=e,o=fs(r,"focus"===t?es(n):n);return ps(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ps(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=os(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=os(n),o=t=>t.isSameNodeCaret(n)?null:ms(t)||t.getParentCaret(e);return _s({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class vs{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return ds(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function ys(e){return xs(e,cs(Gi(),e.direction))}function bs(e){return xs(e,e)}function xs(e,t){return e.direction!==t.direction&&$("$getCaretRange: anchor and focus must be in the same direction"),new gs(e,t,e.direction)}function _s(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function ws(e,t){const n=Es(e.origin,t.origin);switch(null===n&&$(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return ks(n)}}function ks(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,a=n;for(;i&&a;i=i.getNextSibling(),a=a.getNextSibling()){if(i.__key===o)return-1;if(a.__key===r)return 1}return null===i?1:-1}function Ss(e,t){return t.is(e)}function Cs(e){return qo(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Es(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Cs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Cs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Ss(e,r)||$("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(Ss(t,r)||$("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((qo(i)||Ss(e,i))&&(qo(o)||Ss(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||$("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Ts(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Bi(e);return null===t&&$(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Or(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),ds(i,t,o)):(qo(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=hs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Ds(r,n)}(i,e.offset,t))}function As(e,t){const{origin:n,direction:r}=t,o="next"===r;os(t)?e.set(n.getKey(),t.offset,"text"):is(t)?Or(n)?e.set(n.getKey(),fs(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(as(t)&&qo(n)||$("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Ns(e){const t=so(),n=Wr(t)?t:ro();return Ls(n,e),Yi(n),n}function Ls(e,t){As(e.anchor,t.anchor),As(e.focus,t.focus)}function Rs(e){const{anchor:t,focus:n}=e,r=Ts(t,"next"),o=Ts(n,"next"),i=ws(r,o)<=0?"next":"previous";return xs(Ds(r,i),Ds(o,i))}function Ms(e){const{direction:t,origin:n}=e,r=cs(n,es(t)).getNodeAtCaret();return r?cs(r,t):hs(n.getParentOrThrow(),t)}function Os(e,t="root"){const n=[e];for(let r=as(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(Ms(r));return n}function Ps(e){return!!e&&e.origin.isAttached()}function zs(e){const t=function(e){let t=e;for(;as(t);){const e=ms(t);if(!as(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Or(t.origin))return os(t)?t:ds(t.origin,n,n);const r=t.getAdjacentCaret();return is(r)&&Or(r.origin)?ds(r.origin,n,es(n)):t}function Is(e){return os(e)&&e.offset!==fs(e.origin,e.direction)}function Ds(e,t){return e.direction===t?e:e.getFlipped()}function js(e,t){return e.direction===t?e:xs(Ds(e.focus,t),Ds(e.anchor,t))}function Fs(e){const{origin:t,offset:n,direction:r}=e;if(n===fs(t,r))return e.getSiblingCaret();if(n===fs(t,es(r)))return Ms(e.getSiblingCaret());const[o]=t.splitText(n);return Or(o)||$("$splitTextPointCaret: splitText must return at least one TextNode"),Ds(cs(o,"next"),r)}function Bs(e,t){return!0}function $s(e,{$copyElementNode:t=Sa,$splitTextPointCaretNext:n=Fs,rootMode:r="shadowRoot",$shouldSplit:o=Bs}={}){if(os(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(as(e)&&(!n.canBeEmpty()||!o(n,"first")))return Ms(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function Hs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Ws(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function Us(e,...t){const n=Ws(...t);n.length>0&&e.classList.add(...n)}function Ks(e,...t){const n=Ws(...t);n.length>0&&e.classList.remove(...n)}function Gs(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Vs(e){throw new Error(e)}const Ys=new Map;function qs(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Js(e){let t=Ys.get(e);return void 0===t&&(t=qs(e),Ys.set(e,t)),Object.freeze(t),t}function Qs(e){const t=Da().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Xs(e){return Qs(ei(e)?e:e.getParentOrThrow())}function Zs(e){const t=Xs(e);return null!==t&&"rtl"===t.direction}function el(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ni(t)&&null!==r){const[o,i]=r,a=e.isBackward(),s=o.getNode(),l=i.getNode(),u=t.is(s),c=t.is(l);if(u||c){const[r,o]=Vr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(u){f=a?o:r,d=void 0}else if(c){f=0,d=a?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=Ha(t)),t.__text=p)}}return t}function tl(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return qo(t)||Vs("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function nl(e){const t=e.getStyle(),n=qs(t);Ys.set(t,n)}function rl(e,t){(Wr(e)?e.isCollapsed():Or(e)||qo(e))||Vs("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Js(Wr(e)?e.style:Or(e)?e.getStyle():e.getTextStyle()),r=Object.entries(t).reduce((t,[r,o])=>("function"==typeof o?t[r]=o(n[r],e):null===o?delete t[r]:t[r]=o,t),{...n}),o=function(e){let t="";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}(r);Wr(e)||Or(e)?e.setStyle(o):e.setTextStyle(o),Ys.set(o,r)}function ol(e,t){if(Wr(e)&&e.isCollapsed()){rl(e,t);const n=e.anchor.getNode();qo(n)&&n.isEmpty()&&rl(n,t)}!function(e){const t=so();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Wr(t))for(const e of Rs(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Or(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ni(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}Wr(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:r,offset:o,type:i}=t;t.set(n.key,n.offset,n.type),n.set(r,o,i)}}(t)}(e=>{rl(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!qo(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),rl(r,t))}}}function il(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function al(e){const t=sl(e);return null!==t&&"vertical-rl"===t.writingMode}function sl(e){const t=e.anchor.getNode();return qo(t)?Qs(t):Xs(t)}function ll(e,t){let n=al(e)?!t:t;ul(e)&&(n=!n);const r=Ts(e.focus,n?"previous":"next");if(Is(r))return!1;for(const e of ys(r)){if(as(e))return!e.origin.isInline();if(!qo(e.origin)){if(Xo(e.origin))return!0;break}}return!1}function ul(e){const t=sl(e);return null!==t&&"rtl"===t.direction}function cl(e,t,n){const r=ul(e);let o;o=al(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function dl(e,t,n){const r=Js(e.getStyle());return null!==r&&r[t]||n}function fl(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,a=e.focus,s=e.isBackward(),l=s?a.offset:i.offset,u=s?a.getNode():i.getNode();if(Wr(e)&&e.isCollapsed()&&""!==e.style){const n=Js(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<o.length;e++){const i=o[e];if((0===e||0!==l||!i.is(u))&&Or(i)){const e=dl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function pl(e){throw new Error(e)}const hl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ml=hl&&"documentMode"in document?document.documentMode:null;function gl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function vl(e){const t=qa(e,e=>qo(e)&&!e.isInline());return qo(t)||pl(`Expected node ${e.__key} to have closest block element node.`),t}function yl(e){const t=so()||lo();let n;if(Wr(t))n=Ts(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=cs(r,"next"))}n=n||hs(Gi(),"previous").getFlipped().insert(li())}const r=bl(e,n),o=ms(r);return Ns(bs(as(o)?zs(o):r)),e.getLatest()}function bl(e,t,n){let r=Ds(t,"next");for(let e=r;e;e=$s(e,n))r=e;return os(r)&&pl("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split"),r.insert(e.isInline()?li().append(e):e),Ds(cs(e.getLatest(),"next"),t.direction)}function xl(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function _l(e){const t=so();if(!Wr(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const a=qa(o,e=>qo(e)&&!e.isInline());if(null===a)continue;const s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),e(a))}return n.size>0}hl&&"InputEvent"in window&&!ml&&new window.InputEvent("input");const wl=Symbol.for("preact-signals");function kl(){if(Tl>1)return void Tl--;let e,t=!1;for(;void 0!==Cl;){let n=Cl;for(Cl=void 0,Al++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ol(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Al=0,Tl--,t)throw e}let Sl,Cl;function El(e){const t=Sl;Sl=void 0;try{return e()}finally{Sl=t}}let Tl=0,Al=0,Nl=0;function Ll(e){if(void 0===Sl)return;let t=e.n;return void 0===t||t.t!==Sl?(t={i:0,S:e,p:Sl.s,n:void 0,t:Sl,e:void 0,x:void 0,r:t},void 0!==Sl.s&&(Sl.s.n=t),Sl.s=t,e.n=t,32&Sl.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Sl.s,t.n=void 0,Sl.s.n=t,Sl.s=t),t):void 0}function Rl(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Ml(e,t){return new Rl(e,t)}function Ol(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Pl(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function zl(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Il(e,t){Rl.call(this,void 0),this.x=e,this.s=void 0,this.g=Nl-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Dl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Tl++;const n=Sl;Sl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,jl(e),t}finally{Sl=n,kl()}}}function jl(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dl(e)}function Fl(e){if(Sl!==this)throw new Error("Out-of-order effect");zl(this),Sl=e,this.f&=-2,8&this.f&&jl(this),kl()}function Bl(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function $l(e,t){const n=new Bl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Hl(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Wl(e){throw new Error(e)}function Ul(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Ul(n[e],r[e]);return e}return t}Rl.prototype.brand=wl,Rl.prototype.h=function(){return!0},Rl.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:El(()=>{var e;null==(e=this.W)||e.call(this)}))},Rl.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&El(()=>{var e;null==(e=this.Z)||e.call(this)}))}},Rl.prototype.subscribe=function(e){return $l(()=>{const t=this.value,n=Sl;Sl=void 0;try{e(t)}finally{Sl=n}},{name:"sub"})},Rl.prototype.valueOf=function(){return this.value},Rl.prototype.toString=function(){return this.value+""},Rl.prototype.toJSON=function(){return this.value},Rl.prototype.peek=function(){const e=Sl;Sl=void 0;try{return this.value}finally{Sl=e}},Object.defineProperty(Rl.prototype,"value",{get(){const e=Ll(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Al>100)throw new Error("Cycle detected");this.v=e,this.i++,Nl++,Tl++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{kl()}}}}),Il.prototype=new Rl,Il.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Nl)return!0;if(this.g=Nl,this.f|=1,this.i>0&&!Ol(this))return this.f&=-2,!0;const e=Sl;try{Pl(this),Sl=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Sl=e,zl(this),this.f&=-2,!0},Il.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}Rl.prototype.S.call(this,e)},Il.prototype.U=function(e){if(void 0!==this.t&&(Rl.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Il.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Il.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Ll(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Bl.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},Bl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dl(this),Pl(this),Tl++;const e=Sl;return Sl=this,Fl.bind(this,e)},Bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cl,Cl=this)},Bl.prototype.d=function(){this.f|=8,1&this.f||jl(this)},Bl.prototype.dispose=function(){this.d()};const Kl=0,Gl=1,Vl=2,Yl=3,ql=4,Jl=5,Ql=6,Xl=7;function Zl(e){return e.id===Kl}function eu(e){return e.id===Vl}function tu(e){return function(e){return e.id===Gl}(e)||Wl(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Gl)} temporary)`),Object.assign(e,{id:Vl})}const nu=new Set;class ru{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Kl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Hs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;eu(t)||Wl(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:Yl,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:ql,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==ql&&Wl(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Jl)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Jl,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Jl&&Wl(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Jl)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Ql})}(n),()=>{const e=this.state;e.id!==Xl&&Wl(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(Xl)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Jl})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Ql&&Wl(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Ql)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:Xl})}(t),n}getSignal(){return void 0===this._signal&&Wl("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Wl(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=ql}(e)||Wl(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(ql)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=Yl}(e)||Wl(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(Yl)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Wl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Wl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=Xl}(e)||Wl(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(Xl)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||nu}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=Jl})(e)||Wl(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const ou={tag:ir};function iu(){const e=Gi();e.isEmpty()&&e.append(li())}const au={config:{setOptions:ou,updateOptions:ou},init:({$initialEditorState:e=iu})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof oi)e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Zo,kr,fr,zr,ai]},su=Symbol.for("@lexical/extension/LexicalBuilder");function lu(){}function uu(e){throw e}function cu(e){return Array.isArray(e)?e:[e]}const du="0.41.0+dev.esm";class fu{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=du,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[cu(au)];for(const n of e)t.push(cu(n));return new fu(t)}static maybeFromEditor(e){const t=e[su];return t&&(t.PACKAGE_VERSION!==du&&Wl(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${du}. A project should have exactly one copy of LexicalBuilder`),t instanceof fu||Wl("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=fu.maybeFromEditor(e);return void 0===t&&Wl("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(pi({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[su]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=lu;function t(){try{e()}finally{e=lu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Gs(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Wl(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Wl("LexicalBuilder: addExtension called after finalization");const t=cu(e),[n]=t;"string"!=typeof n.name&&Wl("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Wl(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new ru(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Wl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Wl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=cu(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(eu(o))return;const i=n.extension.name;var a;Zl(o)||Wl(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),Zl(a=o)||Wl(`LexicalBuilder: Can not apply a temporary mark from state id ${String(a.id)} (expected ${String(Kl)} unmarked)`),o=Object.assign(a,{id:Gl}),n.state=o;const s=this.outgoingConfigEdges.get(i);if(s)for(const e of s.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=tu(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Zl(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Wl(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Gs(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},a=this.sortedExtensionReps();for(const s of a){const{extension:a}=s;if(void 0!==a.onError&&(e.onError=a.onError),void 0!==a.disableEvents&&(e.disableEvents=a.disableEvents),void 0!==a.parentEditor&&(e.parentEditor=a.parentEditor),void 0!==a.editable&&(e.editable=a.editable),void 0!==a.namespace&&(e.namespace=a.namespace),void 0!==a.$initialEditorState&&(e.$initialEditorState=a.$initialEditorState),a.nodes)for(const e of Hl(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&Wl(`LexicalBuilder: Extension ${a.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,s)}t.add(e)}if(a.html){if(a.html.export)for(const[e,t]of a.html.export.entries())r.set(e,t);a.html.import&&Object.assign(o,a.html.import)}a.theme&&Ul(i,a.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const s=Object.keys(o).length>0,l=r.size>0;(s||l)&&(e.html={},s&&(e.html.import=o),l&&(e.html.export=r));for(const t of a)t.init(e);return e.onError||(e.onError=uu),e}}function pu(e){return e.canBeEmpty()}function hu(e,t,n=pu){return Gs(e.registerCommand(Zt,t=>{const n=so();if(!Wr(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter(e=>to(e)&&e.canIndent());if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=vl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=ro();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Be(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?nn:tn:en;return e.dispatchCommand(r,void 0)},ci),e.registerCommand(tn,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Wr(so()))return!1;const r="function"==typeof n?n:n.peek();return _l(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}const mu=new Set(["http:","https:","mailto:","sms:","tel:"]);class gu extends Yo{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new gu(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Us(t,e.theme.link),t}updateLinkDOM(e,t,n){if(La(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,o=this[r];e&&e[r]===o||(o?t[n]=o:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:xu,priority:1})}}static importJSON(e){return _u().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=Lu(e);try{const t=new URL(Lu(e));if(!mu.has(t.protocol))return"about:blank"}catch(t){return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){const t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){const t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){const t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){const n=_u(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Wr(t))return!1;const r=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function vu(e){const t=Ts(e,"next");return[t,t.getFlipped()]}function yu(e,t){for(const n of t)if(n.origin.isAttached()){return void As(e,zs(n))}}function bu(e){const t=so();let n=null,r=null;Wr(t)&&(n=vu(t.anchor),r=vu(t.focus));for(const t of hs(e,"next")){const n=t.origin;if(qo(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=Sa(e);t.append(...r),n.append(t)}bl(n,Ms(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Wr(t)&&(yu(t.anchor,n),yu(t.focus,r),Be(t))}function xu(e){let t=null;if(La(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=_u(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function _u(e="",t){return Ca(new gu(e,t))}function wu(e){return e instanceof gu}class ku extends gu{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new ku(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return Su().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){const n=Su(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function Su(e="",t){return Ca(new ku(e,t))}function Cu(e){return e instanceof ku}const Eu=wt("TOGGLE_LINK_COMMAND");function Tu(e,t){if("element"===e.type){const n=e.getNode();qo(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function Au(e,t={}){let n;if(e&&"object"==typeof e){const{url:r,...o}=e;n=r,t={...o,...t}}else n=e;const{target:r,title:o}=t,i=void 0===t.rel?"noreferrer":t.rel,a=so();if(null===a||!Wr(a)&&!Kr(a))return;if(Kr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=qa(e,e=>!Cu(e)&&wu(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=qa(e,e=>!Cu(e)&&wu(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=_u(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=qa(e,e=>!Cu(e)&&wu(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const s=a.extract();if(null===n){const e=new Set;return void s.forEach(t=>{const n=qa(t,e=>!Cu(e)&&wu(e));if(null!==n){const t=n.getKey();if(e.has(t))return;!function(e,t){const n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),o=r=>n.has(r.getKey())||qo(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),i=r.filter(o);if(i.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();const a=r.findIndex(o),s=r.findLastIndex(o),l=0===a,u=s===r.length-1;if(l)i.forEach(t=>e.insertBefore(t));else if(u)for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);else{for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);const t=r.slice(s+1);if(t.length>0){const n=_u(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});i[i.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,s),e.add(t)}})}const l=new Set,u=e=>{l.has(e.getKey())||(l.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==i&&e.setRel(i),void 0!==o&&e.setTitle(o))};if(1===s.length){const e=s[0],t=qa(e,wu);if(null!==t)return u(t)}!function(e){const t=so();if(!Wr(t))return e();const n=Be(t),r=n.isBackward(),o=Tu(n.anchor,r?-1:0),i=Tu(n.focus,r?0:-1),a=e();if(o||i){const e=so();if(Wr(e)){const t=e.clone();if(o){const e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+(r?1:0),"element")}if(i){const e=i.getParent();e&&t.focus.set(e.getKey(),i.getIndexWithinParent()+(r?0:1),"element")}Yi(Be(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=qa(t,wu);if(a){u(a);continue}if(qo(t)){if(!t.isInline())continue;if(wu(t)){if(!(Cu(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){u(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const s=t.getPreviousSibling();wu(s)&&s.is(e)?s.append(t):(e=_u(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Nu=/^\+?[0-9\s()-]{5,}$/;function Lu(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Nu.test(e)?`tel:${e}`:`https://${e}`}function Ru(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const Mu=/[.,;\s]/;function Ou(e){return Mu.test(e)}function Pu(e){return Ou(e[e.length-1])}function zu(e){return Ou(e[0])}function Iu(e){let t=e.getPreviousSibling();return qo(t)&&(t=t.getLastDescendant()),null===t||mr(t)||Or(t)&&Pu(t.getTextContent())}function Du(e){let t=e.getNextSibling();return qo(t)&&(t=t.getFirstDescendant()),null===t||mr(t)||Or(t)&&zu(t.getTextContent())}function ju(e,t,n,r){if(!(e>0?Ou(n[e-1]):Iu(r[0])))return!1;return t<n.length?Ou(n[t]):Du(r[r.length-1])}function Fu(e,t,n){const r=[],o=[],i=[];let a=0,s=0;const l=[...e];for(;l.length>0;){const e=l[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),a+=u):c>=n?i.push(e):o.push(e),s+=u,l.shift()}return[a,r,o,i]}function Bu(e,t,n,r){const o=Su(r.url,r.attributes);if(1===e.length){let i,a=e[0];0===t?[i,a]=a.splitText(n):[,i,a]=a.splitText(t,n);const s=Mr(r.text);return s.setFormat(i.getFormat()),s.setDetail(i.getDetail()),s.setStyle(i.getStyle()),o.append(s),i.replace(o),a}if(e.length>1){const r=e[0];let i,a=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const s=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=a;if(i<n)if(a+o<=n)s.push(r);else{const[e,t]=r.splitText(n-i);s.push(e),l=t}a+=o}const u=so(),c=u?u.getNodes().find(Or):void 0,d=Mr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Wr(u)?d.select(u.anchor.offset,u.focus.offset):Kr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function $u(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Or(o)||!o.isSimpleText())return Hu(e),void n(null,e.getURL())}const i=e.getTextContent(),a=Ru(i,t);if(null===a||a.text!==i)return Hu(e),void n(null,e.getURL());if(!Iu(e)||!Du(e))return Hu(e),void n(null,e.getURL());const s=e.getURL();if(s!==a.url&&(e.setURL(a.url),n(a.url,s)),a.attributes){const t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),n(a.attributes.rel||null,t));const r=e.getTarget();r!==a.attributes.target&&(e.setTarget(a.attributes.target||null),n(a.attributes.target||null,r))}}function Hu(e){const t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}const Wu={changeHandlers:[],excludeParents:[],matchers:[]};function Uu(e,t=Wu){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Gs(e.registerNodeTransform(kr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Cu(t)&&!t.getIsUnlinked())$u(t,n,i);else if(!wu(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(zu(e.getTextContent())||!Cu(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Or(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e);!function(e,t,n){for(const t of e){const e=t.getParent();if(Cu(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=Ru(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(ju(s+e,s+t,o,r)){const[o,,l,u]=Fu(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Cu(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=Bu(l,s+e-o,s+t-o,i);r=d?[d,...u]:u,n(i.url,null),s=0}else s+=t;a=a.substring(t)}}(t,n,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();if(!Cu(r)||r.getIsUnlinked()){if(Cu(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!zu(a))return Hu(o),void n(null,o.getURL());if(s=a,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(s):/^\.[a-zA-Z0-9]{1,}/.test(s)){const r=o.getTextContent()+a,i=Ru(r,t);null!==i&&i.text===r&&(o.append(e),$u(o,t,n),n(null,o.getURL()))}}var s;!Cu(i)||i.getIsUnlinked()||Pu(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Hu(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(Eu,e=>{const t=so();if(null!==e||!Wr(t))return!1;return t.extract().forEach(e=>{const t=e.getParent();Cu(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1},1))}function Ku(e){throw new Error(e)}function Gu(e){let t=1,n=e.getParent();for(;null!=n;){if(cc(n)){const e=n.getParent();if(vc(e)){t++,n=e.getParent();continue}Ku("A ListItemNode must have a ListNode for a parent.")}return t}return t}function Vu(e){let t=e.getParent();vc(t)||Ku("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),vc(n)&&(t=n);return t}function Yu(e){let t=[];const n=e.getChildren().filter(cc);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();vc(o)?t=t.concat(Yu(o)):t.push(r)}return t}function qu(e){return cc(e)&&vc(e.getFirstChild())}function Ju(e){return uc().append(e)}function Qu(e,t){return cc(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function Xu(e){const t=so();if(null!==t){let n=t.getNodes();if(Wr(t)){const r=t.getStartEndPoints();null===r&&Ku("insertList: anchor should be defined");const[o]=r,i=o.getNode(),a=i.getParent();if(ka(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=li();i.append(e),n=e.select().getNodes()}}else if(Qu(i,n)){const t=gc(e);if(ka(a)){i.replace(t);const e=uc();qo(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(cc(i)){const e=i.getParentOrThrow();Zu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(qo(o)&&o.isEmpty()&&!cc(o)&&!r.has(o.getKey())){ec(o,e);continue}let i=Pi(o)?o.getParent():cc(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(vc(i)){if(!r.has(t)){const n=gc(e);Zu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(ka(n)&&!r.has(t)){r.add(t),ec(i,e);break}i=n}}}}}function Zu(e,t){e.splice(e.getChildrenSize(),0,t)}function ec(e,t){if(vc(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=uc();let i;if(Zu(o,e.getChildren()),vc(n)&&t===n.getListType())n.append(o),vc(r)&&t===r.getListType()&&(Zu(n,r.getChildren()),r.remove()),i=n;else if(vc(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=gc(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=so();return Wr(a)&&(i.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),i.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),i}function tc(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&qu(n)&&qu(r)&&(tc(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function nc(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())cc(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),vc(r.getFirstChild())||n++)}function rc(e){const t=new Set;if(qu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(qu(r)&&qu(o)){const n=o.getFirstChild();if(vc(n)){n.append(e);const o=r.getFirstChild();if(vc(o)){Zu(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(qu(r)){const t=r.getFirstChild();if(vc(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(qu(o)){const t=o.getFirstChild();vc(t)&&t.append(e)}else if(vc(n)){const t=uc().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=gc(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(i),i.append(e),o?o.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function oc(e){if(qu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(vc(n?n.getParent():void 0)&&cc(n)&&vc(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const r=t.getListType(),o=uc(),i=gc(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=uc(),s=gc(r);a.append(s),Zu(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}function ic(e=!1){const t=so();if(!Wr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(cc(n)&&0===n.getChildrenSize())r=n;else if(Or(n)){const e=n.getParent();cc(e)&&e.getChildren().every(e=>Or(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=Vu(r),i=r.getParent();vc(i)||Ku("A ListItemNode must have a ListNode for a parent.");const a=i.getParent();let s;if(ka(a))s=li(),o.insertAfter(s);else{if(!cc(a))return!1;s=uc(),a.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const l=r.getNextSiblings();if(l.length>0){const t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(i,r):1,n=gc(i.getListType(),t);if(cc(s)){const e=uc();e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...l)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!cc(e)&&!vc(e))break;t=e}t.remove()}(r),!0}class ac extends Yo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();vc(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Yo,importDOM:{li:()=>({conversion:sc,priority:0})}})}constructor(e=1,t=void 0,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t,n){const r=t.getParent();!vc(r)||"check"!==r.getListType()||vc(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,n){const r=[],o=[],i=t.list,a=i?i.listitem:void 0;let s;i&&i.nested&&(s=i.nested.listitem);void 0!==a&&r.push(...Ws(a));if(i){const e=n.getParent(),t=vc(e)&&"check"===e.getListType(),a=n.getChecked();t&&!a||o.push(i.listitemUnchecked),t&&a||o.push(i.listitemChecked),t&&r.push(a?i.listitemChecked:i.listitemUnchecked)}if(void 0!==s){const e=Ws(s);n.getChildren().some(e=>vc(e))?r.push(...e):o.push(...e)}o.length>0&&Ks(e,...o);r.length>0&&Us(e,...r)}(t,n.theme,this);const r=e?e.__style:"",o=this.__style;r!==o&&(""===o?t.removeAttribute("style"):t.style.cssText=o),function(e,t,n){const r=Js(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Js(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){const r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);const r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){const n=e[t];if(qo(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(cc(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!vc(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=gc(n.getListType());let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(qo(e)||Ku("includeChildren should only be true for ElementNodes"),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(vc(n)||Ku("insertAfter: list node is not parent of list item node"),cc(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=gc(n.getListType());r.forEach(e=>o.append(e)),e.insertAfter(o,t)}return e}remove(e){const t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&qu(t)&&qu(n)&&(tc(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=uc().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=li();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=cc(r);if(1===n.getChildrenSize())if(o)n.remove(),r.select();else{n.insertBefore(t),n.remove();const r=e.anchor,o=e.focus,i=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(i,r.offset,"element"),"element"===o.type&&o.getNode().is(this)&&o.set(i,o.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const t=this.getWritable();return t.__value=e,t}getChecked(){const e=this.getLatest();let t;const n=this.getParent();return vc(n)&&(t=n.getListType()),"check"===t?Boolean(e.__checked):void 0}setChecked(e){const t=this.getWritable();return t.__checked=e,t}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;cc(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&Ku("Invalid indent value."),(e=Math.floor(e))>=0||Ku("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(rc(this),t++):(oc(this),t--);return this}canInsertAfter(e){return cc(e)}canReplaceWith(e){return cc(e)}canMergeWith(e){return cc(e)||ui(e)}extractWithChild(e,t){if(!Wr(t))return!1;const n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return gc("bullet")}canMergeWhenEmpty(){return!0}}function sc(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return lc(t);if(e.classList.contains("joplin-checkbox"))for(const t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return lc(t.children[0]);const t=e.getAttribute("aria-checked");return{node:uc("true"===t||"false"!==t&&void 0)}}function lc(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:uc(e.hasAttribute("checked"))}}function uc(e){return Ca(new ac(void 0,e))}function cc(e){return e instanceof ac}class dc extends Yo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();vc(t)&&e.getListType()===t.getListType()&&tc(e,t)}(e),nc(e)},extends:Yo,importDOM:{ol:()=>({conversion:hc,priority:0}),ul:()=>({conversion:hc,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=mc[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const t=this.getWritable();return t.__start=e,t}createDOM(e,t){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,fc(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(fc(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return Ra(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){const t=n[e];cc(t)||(r===n&&(r=[...n]),r[e]=uc().append(!qo(t)||vc(t)||t.isInline()?t:Mr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return cc(e)}}function fc(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Gu(n)-1,a=t%e.length,s=e[a],l=i[n.__tag];let u;const c=i.nested,d=i.checklist;if(void 0!==c&&c.list&&(u=c.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...Ws(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=Ws(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&Ks(e,...o),r.length>0&&Us(e,...r)}function pc(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(cc(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{vc(e)&&t.push(Ju(e))})}else t.push(Ju(r))}return t}function hc(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=gc("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Ra(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?gc("check"):gc("bullet"));return{after:pc,node:n}}const mc={ol:"number",ul:"bullet"};function gc(e="number",t=1){return Ca(new dc(e,t))}function vc(e){return e instanceof dc}const yc=wt("UPDATE_LIST_START_COMMAND"),bc=wt("INSERT_UNORDERED_LIST_COMMAND"),xc=wt("INSERT_ORDERED_LIST_COMMAND"),_c=wt("REMOVE_LIST_COMMAND");function wc(e,t){const n=Gs(e.registerCommand(xc,()=>(Xu("number"),!0),1),e.registerCommand(yc,e=>{const{listNodeKey:t,newStart:n}=e,r=Bi(t);return!!vc(r)&&("number"===r.getListType()&&(r.setStart(n),nc(r)),!0)},1),e.registerCommand(bc,()=>(Xu("bullet"),!0),1),e.registerCommand(_c,()=>(function(){const e=so();if(Wr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Qu(r,n))t.add(Vu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(Pi(r)){const e=gl(r,ac);null!=e&&t.add(Vu(e))}}for(const n of t){let t=n;const r=Yu(n);for(const n of r){const r=li().setTextStyle(e.style).setTextFormat(e.format);Zu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&As(e.anchor,zs(hs(r,"next"))),n.__key===e.focus.key&&As(e.focus,zs(hs(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(Mt,()=>ic(!!(t&&t.restoreNumbering)),1),e.registerNodeTransform(ac,e=>{const t=e.getFirstChild();if(t){if(Or(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=so();Wr(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(kr,e=>{const t=e.getParent();if(cc(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}));return n}function kc(e){const t=e=>{const t=e.getParent();if(vc(e.getFirstChild())||!vc(t))return;const n=qa(e,e=>cc(e)&&vc(e.getParent())&&cc(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(cc(n)){const r=n.getPreviousSibling();if(cc(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;vc(n);){const e=n.getLastChild();if(!cc(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(vc(o)){const n=Gu(o);n+1<Gu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(dc,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(vc(e))for(const r of e.getChildren())if(cc(r)){t(r);const e=r.getFirstChild();vc(e)&&n.push(e)}}})}const Sc=D.createContext(null);function Cc(){const e=D.useContext(Sc);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var Ec,Tc,Ac={exports:{}},Nc={};var Lc=(Tc||(Tc=1,Ac.exports=function(){if(Ec)return Nc;Ec=1;var e=C(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Nc.Fragment=n,Nc.jsx=a,Nc.jsxs=a,Nc}()),Ac.exports);const Rc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Mc=Rc?D.useLayoutEffect:D.useEffect,Oc={tag:ir};function Pc({initialConfig:e,children:t}){const n=D.useMemo(()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:a}=e,s=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=pi({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update(()=>{const t=Gi();if(t.isEmpty()){const n=li();t.append(n);const r=Rc?document.activeElement:null;(null!==so()||null!==r&&r===e.getRootElement())&&n.select()}},Oc);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Oc);break}case"object":e.setEditorState(t,Oc);break;case"function":e.update(()=>{Gi().isEmpty()&&t(e)},Oc)}}(l,i),[l,s]},[]);return Mc(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Lc.jsx(Sc.Provider,{value:n,children:t})}function zc(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,a=e._selection;if(o)return 1;if(!(Wr(i)&&Wr(a)&&a.isCollapsed()&&i.isCollapsed()))return 0;const s=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||ei(n)||o.push(n)}return o}(t,n,r);if(0===s.length)return 0;if(s.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(a.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Or(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!Or(u)||!Or(l)||u.__mode!==l.__mode)return 0;const c=u.__text,d=l.__text;if(c===d)return 0;const f=i.anchor,p=a.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,m=p.offset,g=d.length-c.length;return 1===g&&m===h-1?2:-1===g&&m===h+1?3:-1===g&&m===h?4:0}function Ic(e,t){let n=Date.now(),r=0,o=Date.now(),i=0,a=null;return(s,l,u,c,d,f)=>{const p=Date.now();if(f.has(cr)&&(o=n,i=r,a=s),f.has(or))return r=0,n=p,2;f.has(dr)&&a&&(n=o,r=i,s=a);const h=zc(s,l,c,d,e.isComposing()),m=(()=>{const o=null===u||u.editor===e,i=f.has("history-push");if(!i&&o&&f.has(ir))return 0;if(1===h)return 2;if(null===s)return 1;const a=l._selection;if(!(c.size>0||d.size>0))return null!==a?0:2;const m="number"==typeof t?t:t.peek();if(!1===i&&0!==h&&h===r&&p<n+m&&o)return 0;if(1===c.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Wr(i)&&Wr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!Or(r)||!Or(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(c)[0],s,l))return 0}return 1})();return n=p,r=h,m}}function Dc(e){e.undoStack=[],e.redoStack=[],e.current=null}function jc(e,t,n){const r=Ic(e,n),o=Gs(e.registerCommand(Ft,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(hn,!0)),0===r.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(Bt,()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(mn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(hn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0),ci),e.registerCommand(fn,()=>(Dc(t),!1),ci),e.registerCommand(pn,()=>(Dc(t),e.dispatchCommand(hn,!1),e.dispatchCommand(mn,!1),!0),ci),e.registerUpdateListener(({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:a,tags:s})=>{const l=t.current,u=t.redoStack,c=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,a,s);if(1===f)0!==u.length&&(t.redoStack=[],e.dispatchCommand(hn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(mn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function Fc({delay:e,externalHistoryState:t}){const[n]=Cc();return function(e,t,n=1e3){const r=D.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);D.useEffect(()=>jc(e,r,n),[n,e,r])}(n,t,e),null}function Bc({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Cc();return D.useEffect(()=>{if(!n.hasNodes([dc,ac]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),D.useEffect(()=>Gs(wc(n,{restoreNumbering:t}),e?kc(n):()=>{}),[n,e,t]),function(e){D.useEffect(()=>wc(e),[e])}(n),null}function $c({maxIndent:e,$canIndent:t}){const[n]=Cc();return D.useEffect(()=>hu(n,e,t),[n,e,t]),null}function Hc(e,t){const n=Ri(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Uc.has(t.nodeName)){const n=Kc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ii&&t.insertAfter(hr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Wc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=qo(t)&&t.excludeFromCopy("html");let a=t;null!==r&&Or(t)&&(a=el(r,t,"clone"));const s=qo(a)?a.getChildren():[],l=xi(e,a.getType());let u;u=l&&void 0!==l.exportDOM?l.exportDOM(e,a):a.exportDOM(e);const{element:c,after:d}=u;if(!c)return!1;const f=document.createDocumentFragment();for(let n=0;n<s.length;n++){const i=s[n],a=Wc(e,i,f,r);!o&&qo(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Ra(c)||Oa(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(Oa(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Uc=new Set(["STYLE","SCRIPT"]);function Kc(e,t,n,r,o=new Map,i){let a=[];if(Uc.has(e.nodeName))return a;let s=null;const l=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),u=l?l(e):null;let c=null;if(null!==u){c=u.after;const t=u.node;if(s=Array.isArray(t)?t[t.length-1]:t,null!==s){for(const[,e]of o)if(s=e(s,i),!s)break;s&&a.push(...Array.isArray(t)?t:[s])}null!=u.forChild&&o.set(e.nodeName,u.forChild)}const d=e.childNodes;let f=[];const p=(null==s||!ka(s))&&(null!=s&&to(s)||r);for(let e=0;e<d.length;e++)f.push(...Kc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),za(e)&&(f=Gc(e,f,p?()=>{const e=new ii;return n.push(e),e}:li)),null==s?f.length>0?a=a.concat(f):za(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return Pa(e.nextSibling)&&Pa(e.previousSibling)}(e)&&(a=a.concat(hr())):qo(s)&&s.append(...f),a}function Gc(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(to(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&to(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Vc(e){throw new Error(e)}function Yc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Do(e[n]);Or(r)&&nl(r),t.push(r)}return t}(e.nodes);return qc(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return qc(n,Hc(n,e),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Wr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=so();if(Wr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Ir()]):n.insertText(r)}}}else t.insertRawText(a)}function qc(e,t,n){e.dispatchCommand(St,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Wr(e)&&e.isCollapsed()){let t=null;const n=Ts(e.anchor,"previous");if(n)if(os(n))t=n.origin;else{const e=xs(n,hs(Gi(),"next").getFlipped());for(const n of e){if(Or(n.origin)){t=n.origin;break}if(qo(n.origin)&&!n.origin.isInline())break}}if(t&&Or(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function Jc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=qo(n)&&n.excludeFromCopy("html");let a=n;null!==t&&Or(a)&&(a=el(t,a,"clone"));const s=qo(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Vc(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),qo(e)){const e=t.children;Array.isArray(e)||Vc(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(a);Or(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=Jc(e,t,i,l.children);!o&&qo(n)&&a&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let e=0;e<l.children.length;e++){const t=l.children[e];r.push(t)}return o}let Qc=null;async function Xc(e,t,n){if(null!==Qc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(Zc(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=Na(o);if(null===r||null===a)return!1;const s=i.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(i.createTextNode("#")),r.append(s);const l=new Range;return l.setStart(s,0),l.setEnd(s,1),a.removeAllRanges(),a.addRange(l),new Promise((t,r)=>{const a=e.registerCommand(un,r=>(xl(r,ClipboardEvent)&&(a(),null!==Qc&&(o.clearTimeout(Qc),Qc=null),t(Zc(e,r,n))),!0),4);Qc=o.setTimeout(()=>{a(),Qc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function Zc(e,t,n){if(void 0===n){const t=Na(e._window),r=so();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!Si(e,o,i))return!1;n=td(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of ed)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}const ed=[["text/html",function(e,t=so()){return null==t&&Vc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Gi().getChildren();for(let o=0;o<r.length;o++)Wc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=so()){return null==t&&Vc("Expected valid LexicalSelection"),Wr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Gi().getChildren();for(let o=0;o<r.length;o++){Jc(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function td(e=so()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Da();for(const[r,o]of ed){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function nd(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const rd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,od=rd&&"documentMode"in document?document.documentMode:null,id=rd&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ad=!(!rd||!("InputEvent"in window)||od)&&"getTargetRanges"in new window.InputEvent("input"),sd=rd&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ld=rd&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ud=rd&&/^(?=.*Chrome).*/i.test(navigator.userAgent),cd=rd&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&id&&!ud,dd=wt("DRAG_DROP_PASTE_FILE");class fd extends Yo{static getType(){return"quote"}static clone(e){return new fd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Us(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:yd,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return pd().updateFromJSON(e)}insertNewAfter(e,t){const n=li(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=li();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function pd(){return Ca(new fd)}function hd(e){return e instanceof fd}class md extends Yo{__tag;static getType(){return"heading"}static clone(e){return new md(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){const t=this.getWritable();return this.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Us(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:vd,priority:0}),h2:e=>({conversion:vd,priority:0}),h3:e=>({conversion:vd,priority:0}),h4:e=>({conversion:vd,priority:0}),h5:e=>({conversion:vd,priority:0}),h6:e=>({conversion:vd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&gd(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>gd(e)?{conversion:e=>({node:bd("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ra(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return bd(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?li():bd(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=li();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?li():bd(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function gd(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function vd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=bd(t),null!==e.style&&(Wa(e,n),n.setFormat(e.style.textAlign))),{node:n}}function yd(e){const t=pd();return null!==e.style&&(t.setFormat(e.style.textAlign),Wa(e,t)),{node:t}}function bd(e="h1"){return Ca(new md(e))}function xd(e){return e instanceof md}function _d(e){let t=null;if(xl(e,DragEvent)?t=e.dataTransfer:xl(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function wd(e){return Xo(Wi(e))}function kd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Sd(e){const t=Gs(e.registerCommand(Ct,e=>{const t=so();return!!Kr(t)&&(t.clear(),!0)},ci),e.registerCommand(Lt,e=>{const t=so();return Wr(t)?(t.deleteCharacter(e),!0):!!Kr(t)&&(t.deleteNodes(),!0)},ci),e.registerCommand(It,e=>{const t=so();return!!Wr(t)&&(t.deleteWord(e),!0)},ci),e.registerCommand(Dt,e=>{const t=so();return!!Wr(t)&&(t.deleteLine(e),!0)},ci),e.registerCommand(Ot,t=>{const n=so();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)Yc(r,n,e);else if(Wr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},ci),e.registerCommand(zt,()=>{const e=so();return!!Wr(e)&&(e.removeText(),!0)},ci),e.registerCommand(jt,e=>{const t=so();return!!Wr(t)&&(t.formatText(e),!0)},ci),e.registerCommand(on,e=>{const t=so();if(!Wr(t)&&!Kr(t))return!1;const n=t.getNodes();for(const t of n){const n=qa(t,e=>qo(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},ci),e.registerCommand(Rt,e=>{const t=so();return!!Wr(t)&&(t.insertLineBreak(e),!0)},ci),e.registerCommand(Mt,()=>{const e=so();return!!Wr(e)&&(e.insertParagraph(),!0)},ci),e.registerCommand(en,()=>{const e=Ir(),t=so();return Wr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),vo([e]),!0},ci),e.registerCommand(tn,()=>_l(e=>{const t=e.getIndent();e.setIndent(t+1)}),ci),e.registerCommand(nn,()=>_l(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),ci),e.registerCommand(Gt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Wr(t)){const n=pa(t.focus,!0);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Vt,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Wr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Gi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=pa(t.focus,!1);if(!e.shiftKey&&Xo(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},ci),e.registerCommand(Ut,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Zs(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Wr(t))return!1;if(ll(t,!0)){const n=e.shiftKey;return e.preventDefault(),cl(t,n,!0),!0}return!1},ci),e.registerCommand(Ht,e=>{const t=so();if(Kr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Zs(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Wr(t))return!1;const n=e.shiftKey;return!!ll(t,!1)&&(e.preventDefault(),cl(t,n,!1),!0)},ci),e.registerCommand(Jt,t=>{if(wd(t.target))return!1;const n=so();if(Wr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(ei(n))return!1;const r=vl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(nn,void 0);if(ld&&"ko-KR"===navigator.language)return!1}else if(!Kr(n))return!1;return t.preventDefault(),e.dispatchCommand(Lt,!0)},ci),e.registerCommand(Xt,t=>{if(wd(t.target))return!1;const n=so();return!(!Wr(n)&&!Kr(n))&&(t.preventDefault(),e.dispatchCommand(Lt,!1))},ci),e.registerCommand(Yt,t=>{const n=so();if(!Wr(n))return!1;if(kd(n),null!==t){if((ld||sd||cd)&&ad)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Rt,!1)}return e.dispatchCommand(Mt,void 0)},ci),e.registerCommand(Qt,()=>!!Wr(so())&&(e.blur(),!0),ci),e.registerCommand(rn,t=>{const[,n]=_d(t);if(n.length>0){const r=nd(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Wi(o);if(null!==i){const e=ro();if(Or(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}Yi(Be(e))}e.dispatchCommand(dd,n)}return t.preventDefault(),!0}return!!Wr(so())},ci),e.registerCommand(an,e=>{const[t]=_d(e),n=so();return!(t&&!Wr(n))},ci),e.registerCommand(sn,e=>{const[t]=_d(e),n=so();if(t&&!Wr(n))return!1;const r=nd(e.clientX,e.clientY);if(null!==r){Xo(Wi(r.node))&&e.preventDefault()}return!0},ci),e.registerCommand(dn,()=>(function(e){const t=Gi();if(Wr(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Be(e),e}{const e=t.select(0,t.getChildrenSize());Yi(Be(e))}}(),!0),ci),e.registerCommand(un,t=>(Xc(e,xl(t,ClipboardEvent)?t:null),!0),ci),e.registerCommand(cn,t=>(async function(e,t){await Xc(t,xl(e,ClipboardEvent)?e:null),t.update(()=>{const e=so();Wr(e)?e.removeText():Kr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),ci),e.registerCommand(Pt,t=>{const[,n,r]=_d(t);if(n.length>0&&!r)return e.dispatchCommand(dd,n),!0;if(Ma(t.target)&&ki(t.target))return!1;return null!==so()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=so(),r=xl(e,InputEvent)||xl(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&Yc(r,n,t)},{tag:"paste"})}(t,e),!0)},ci),e.registerCommand(qt,e=>{const t=so();return Wr(t)&&kd(t),!1},ci),e.registerCommand(Zt,e=>{const t=so();return Wr(t)&&kd(t),!1},ci));return t}function Cd(e,t,n,r){D.useEffect(()=>{e.hasNodes([ku])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")}),D.useEffect(()=>Uu(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Ed({matchers:e,onChange:t,excludeParents:n}){const[r]=Cc();return Cd(r,e,t,n),null}const Td="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Ad(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Nd(){return function(e){const[t]=Cc(),n=D.useMemo(()=>e(t),[t,e]),[r,o]=D.useState(()=>n.initialValueFn()),i=D.useRef(r);return Td(()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t(e=>{i.current=e,o(e)})},[n,e]),r}(Ad)}const Ld={black:"#000",white:"#fff"},Rd="#e57373",Md="#ef5350",Od="#f44336",Pd="#d32f2f",zd="#c62828",Id="#f3e5f5",Dd="#ce93d8",jd="#ba68c8",Fd="#ab47bc",Bd="#9c27b0",$d="#7b1fa2",Hd="#e3f2fd",Wd="#90caf9",Ud="#42a5f5",Kd="#1976d2",Gd="#1565c0",Vd="#4fc3f7",Yd="#29b6f6",qd="#03a9f4",Jd="#0288d1",Qd="#01579b",Xd="#81c784",Zd="#66bb6a",ef="#4caf50",tf="#388e3c",nf="#2e7d32",rf="#1b5e20",of="#ffb74d",af="#ffa726",sf="#ff9800",lf="#f57c00",uf="#e65100",cf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function df(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var ff=Object.freeze({__proto__:null,default:df}),pf="$$material";function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hf.apply(null,arguments)}function mf(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var gf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),vf="-ms-",yf="-moz-",bf="-webkit-",xf="comm",_f="rule",wf="decl",kf="@keyframes",Sf=Math.abs,Cf=String.fromCharCode,Ef=Object.assign;function Tf(e){return e.trim()}function Af(e,t,n){return e.replace(t,n)}function Nf(e,t){return e.indexOf(t)}function Lf(e,t){return 0|e.charCodeAt(t)}function Rf(e,t,n){return e.slice(t,n)}function Mf(e){return e.length}function Of(e){return e.length}function Pf(e,t){return t.push(e),e}var zf=1,If=1,Df=0,jf=0,Ff=0,Bf="";function $f(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zf,column:If,length:a,return:""}}function Hf(e,t){return Ef($f("",null,null,"",null,null,0),e,{length:-e.length},t)}function Wf(){return Ff=jf>0?Lf(Bf,--jf):0,If--,10===Ff&&(If=1,zf--),Ff}function Uf(){return Ff=jf<Df?Lf(Bf,jf++):0,If++,10===Ff&&(If=1,zf++),Ff}function Kf(){return Lf(Bf,jf)}function Gf(){return jf}function Vf(e,t){return Rf(Bf,e,t)}function Yf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qf(e){return zf=If=1,Df=Mf(Bf=e),jf=0,[]}function Jf(e){return Bf="",e}function Qf(e){return Tf(Vf(jf-1,ep(91===e?e+2:40===e?e+1:e)))}function Xf(e){for(;(Ff=Kf())&&Ff<33;)Uf();return Yf(e)>2||Yf(Ff)>3?"":" "}function Zf(e,t){for(;--t&&Uf()&&!(Ff<48||Ff>102||Ff>57&&Ff<65||Ff>70&&Ff<97););return Vf(e,Gf()+(t<6&&32==Kf()&&32==Uf()))}function ep(e){for(;Uf();)switch(Ff){case e:return jf;case 34:case 39:34!==e&&39!==e&&ep(Ff);break;case 40:41===e&&ep(e);break;case 92:Uf()}return jf}function tp(e,t){for(;Uf()&&e+Ff!==57&&(e+Ff!==84||47!==Kf()););return"/*"+Vf(t,jf-1)+"*"+Cf(47===e?e:Uf())}function np(e){for(;!Yf(Kf());)Uf();return Vf(e,jf)}function rp(e){return Jf(op("",null,null,null,[""],e=qf(e),0,[0],e))}function op(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,_=i,w=r,k=b;g;)switch(h=y,y=Uf()){case 40:if(108!=h&&58==Lf(k,d-1)){-1!=Nf(k+=Af(Qf(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Qf(y);break;case 9:case 10:case 13:case 32:k+=Xf(h);break;case 92:k+=Zf(Gf()-1,7);continue;case 47:switch(Kf()){case 42:case 47:Pf(ap(tp(Uf(),Gf()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=Mf(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=Af(k,/\f/g,"")),p>0&&Mf(k)-d&&Pf(p>32?sp(k+";",r,n,d-1):sp(Af(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Pf(w=ip(k,t,n,u,c,o,s,b,x=[],_=[],d),i),123===y)if(0===c)op(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Lf(k,3)?100:f){case 100:case 108:case 109:case 115:op(e,w,w,r&&Pf(ip(e,w,w,0,0,o,s,b,o,x=[],d),_),o,_,d,s,r?x:_);break;default:op(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Mf(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Wf())continue;switch(k+=Cf(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Mf(k)-1)*v,v=1;break;case 64:45===Kf()&&(k+=Qf(Uf())),f=Kf(),c=d=Mf(b=k+=np(Gf())),y++;break;case 45:45===h&&2==Mf(k)&&(m=0)}}return i}function ip(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Of(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Rf(e,d+1,d=Sf(m=a[h])),b=e;v<p;++v)(b=Tf(m>0?f[v]+" "+y:Af(y,/&\f/g,f[v])))&&(l[g++]=b);return $f(e,t,n,0===o?_f:s,l,u,c)}function ap(e,t,n){return $f(e,t,n,xf,Cf(Ff),Rf(e,2,-2),0)}function sp(e,t,n,r){return $f(e,t,n,wf,Rf(e,0,r),Rf(e,r+1,-1),r)}function lp(e,t){for(var n="",r=Of(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case wf:return e.return=e.return||e.value;case xf:return"";case kf:return e.return=e.value+"{"+lp(e.children,r)+"}";case _f:e.value=e.props.join(",")}return Mf(n=lp(e.children,r))?e.return=e.value+"{"+n+"}":""}function cp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var dp=function(e,t,n){for(var r=0,o=0;r=o,o=Kf(),38===r&&12===o&&(t[n]=1),!Yf(o);)Uf();return Vf(e,jf)},fp=function(e,t){return Jf(function(e,t){var n=-1,r=44;do{switch(Yf(r)){case 0:38===r&&12===Kf()&&(t[n]=1),e[n]+=dp(jf-1,t,n);break;case 2:e[n]+=Qf(r);break;case 4:if(44===r){e[++n]=58===Kf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Cf(r)}}while(r=Uf());return e}(qf(e),t))},pp=new WeakMap,hp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pp.get(n))&&!r){pp.set(e,!0);for(var o=[],i=fp(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},mp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},gp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},vp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},yp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},bp=function(e,t,n){vp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),yp(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!vp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yp(e)))};function xp(e,t){switch(function(e,t){return 45^Lf(e,0)?(((t<<2^Lf(e,0))<<2^Lf(e,1))<<2^Lf(e,2))<<2^Lf(e,3):0}(e,t)){case 5103:return bf+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bf+e+yf+e+vf+e+e;case 6828:case 4268:return bf+e+vf+e+e;case 6165:return bf+e+vf+"flex-"+e+e;case 5187:return bf+e+Af(e,/(\w+).+(:[^]+)/,bf+"box-$1$2"+vf+"flex-$1$2")+e;case 5443:return bf+e+vf+"flex-item-"+Af(e,/flex-|-self/,"")+e;case 4675:return bf+e+vf+"flex-line-pack"+Af(e,/align-content|flex-|-self/,"")+e;case 5548:return bf+e+vf+Af(e,"shrink","negative")+e;case 5292:return bf+e+vf+Af(e,"basis","preferred-size")+e;case 6060:return bf+"box-"+Af(e,"-grow","")+bf+e+vf+Af(e,"grow","positive")+e;case 4554:return bf+Af(e,/([^-])(transform)/g,"$1"+bf+"$2")+e;case 6187:return Af(Af(Af(e,/(zoom-|grab)/,bf+"$1"),/(image-set)/,bf+"$1"),e,"")+e;case 5495:case 3959:return Af(e,/(image-set\([^]*)/,bf+"$1$`$1");case 4968:return Af(Af(e,/(.+:)(flex-)?(.*)/,bf+"box-pack:$3"+vf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bf+e+e;case 4095:case 3583:case 4068:case 2532:return Af(e,/(.+)-inline(.+)/,bf+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mf(e)-1-t>6)switch(Lf(e,t+1)){case 109:if(45!==Lf(e,t+4))break;case 102:return Af(e,/(.+:)(.+)-([^]+)/,"$1"+bf+"$2-$3$1"+yf+(108==Lf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nf(e,"stretch")?xp(Af(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Lf(e,t+1))break;case 6444:switch(Lf(e,Mf(e)-3-(~Nf(e,"!important")&&10))){case 107:return Af(e,":",":"+bf)+e;case 101:return Af(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bf+(45===Lf(e,14)?"inline-":"")+"box$3$1"+bf+"$2$3$1"+vf+"$2box$3")+e}break;case 5936:switch(Lf(e,t+11)){case 114:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bf+e+vf+Af(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bf+e+vf+e+e}return e}var _p,wp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wf:e.return=xp(e.value,e.length);break;case kf:return lp([Hf(e,{value:Af(e.value,"@","@"+bf)})],r);case _f:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lp([Hf(e,{props:[Af(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lp([Hf(e,{props:[Af(t,/:(plac\w+)/,":"+bf+"input-$1")]}),Hf(e,{props:[Af(t,/:(plac\w+)/,":-moz-$1")]}),Hf(e,{props:[Af(t,/:(plac\w+)/,vf+"input-$1")]})],r)}return""})}}],kp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;_p=function(e){var t=e.match(kp);if(t)return t[t.length-1]};var Sp,Cp,Ep,Tp,Ap=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||wp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l=[hp,mp];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(gp(s))return;break}}o.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return f.compat}}),bp);var u,c=[up,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==xf&&u.insert(e.value+"{}"))}],d=function(e){var t=Of(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,c));i=function(e,t,n,r){if(u=n,_p){var o=_p(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){lp(rp(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new gf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Np={exports:{}},Lp={};function Rp(){return Cp||(Cp=1,Np.exports=function(){if(Sp)return Lp;Sp=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return Lp.AsyncMode=l,Lp.ConcurrentMode=u,Lp.ContextConsumer=s,Lp.ContextProvider=a,Lp.Element=t,Lp.ForwardRef=c,Lp.Fragment=r,Lp.Lazy=h,Lp.Memo=p,Lp.Portal=n,Lp.Profiler=i,Lp.StrictMode=o,Lp.Suspense=d,Lp.isAsyncMode=function(e){return x(e)||b(e)===l},Lp.isConcurrentMode=x,Lp.isContextConsumer=function(e){return b(e)===s},Lp.isContextProvider=function(e){return b(e)===a},Lp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lp.isForwardRef=function(e){return b(e)===c},Lp.isFragment=function(e){return b(e)===r},Lp.isLazy=function(e){return b(e)===h},Lp.isMemo=function(e){return b(e)===p},Lp.isPortal=function(e){return b(e)===n},Lp.isProfiler=function(e){return b(e)===i},Lp.isStrictMode=function(e){return b(e)===o},Lp.isSuspense=function(e){return b(e)===d},Lp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Lp.typeOf=b,Lp}()),Np.exports}var Mp=function(){if(Tp)return Ep;Tp=1;var e=Rp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Ep=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},Ep}(),Op=m(Mp);function Pp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var zp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ip=function(e,t,n){zp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Dp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Fp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Bp=/[A-Z]|^ms/g,$p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(e){return 45===e.charCodeAt(1)},Wp=function(e){return null!=e&&"boolean"!=typeof e},Up=cp(function(e){return Hp(e)?e:e.replace(Bp,"-$&").toLowerCase()}),Kp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($p,function(e,t,n){return eh={name:t,styles:n,next:eh},t})}return 1===Dp[e]||Hp(e)||"number"!=typeof t||0===t?t:t+"px"},Gp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Vp=["normal","none","initial","inherit","unset"],Yp=Kp,qp=/^-ms-/,Jp=/-(.)/g,Qp={};Kp=function(e,t){if("content"===e&&("string"!=typeof t||-1===Vp.indexOf(t)&&!Gp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Yp(e,t);return""===n||Hp(e)||-1===e.indexOf("-")||void 0!==Qp[e]||(Qp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(qp,"ms-").replace(Jp,function(e,t){return t.toUpperCase()})+"?")),n};var Xp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Zp(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(Xp);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return eh={name:o.name,styles:o.styles,next:eh},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)eh={name:a.name,styles:a.styles,next:eh},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zp(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Wp(s)&&(r+=Up(i)+":"+Kp(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Xp);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Zp(e,t,a);switch(i){case"animation":case"animationName":r+=Up(i)+":"+l+";";break;default:"undefined"===i&&console.error(Fp),r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Wp(a[u])&&(r+=Up(i)+":"+Kp(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=eh,l=n(e);return eh=s,Zp(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace($p,function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var eh,th=/label:\s*([^\s;{]+)\s*(;|$)/g;function nh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";eh=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=Zp(n,t,i);else{var a=i;void 0===a[0]&&console.error(jp),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Zp(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(jp),o+=l[s]}th.lastIndex=0;for(var u,c="";null!==(u=th.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:eh,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var rh=!!F.useInsertionEffect&&F.useInsertionEffect,oh=rh||function(e){return e()},ih=rh||D.useLayoutEffect,ah=D.createContext("undefined"!=typeof HTMLElement?Ap({key:"css"}):null);ah.displayName="EmotionCacheContext";var sh=ah.Provider,lh=function(e){return D.forwardRef(function(t,n){var r=D.useContext(ah);return e(t,r,n)})},uh=D.createContext({});uh.displayName="EmotionThemeContext";var ch={}.hasOwnProperty,dh=function(e){var t=e.split(".");return t[t.length-1]},fh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?dh(t[1]):void 0},ph=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),hh=function(e){return e.replace(/\$/g,"-")},mh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",vh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)ch.call(t,r)&&(n[r]=t[r]);if(n[mh]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=fh(t[n]);if(r){if(ph.has(r))break;if(/^[A-Z]/.test(r))return hh(r)}}}((new Error).stack);o&&(n[gh]=o)}return n},yh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zp(t,n,r),oh(function(){return Ip(t,n,r)}),null},bh=lh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[mh],i=[r],a="";"string"==typeof e.className?a=Pp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=nh(i,void 0,D.useContext(uh));if(-1===s.name.indexOf("-")){var l=e[gh];l&&(s=nh([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)ch.call(e,c)&&"css"!==c&&c!==mh&&c!==gh&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),D.createElement(D.Fragment,null,D.createElement(yh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,u))});bh.displayName="EmotionCssPropInternal";var xh,_h,wh=bh,kh=function(e,t){var n=arguments;if(null==t||!ch.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=wh,o[1]=vh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return D.createElement.apply(null,o)};xh=kh||(kh={}),_h||(_h=xh.JSX||(xh.JSX={}));var Sh=!1,Ch=lh(function(e,t){!Sh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Sh=!0);var n=nh([e.styles],void 0,D.useContext(uh)),r=D.useRef();return ih(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),ih(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ip(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Eh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nh(t)}function Th(){var e=Eh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}Ch.displayName="EmotionGlobal";var Ah=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Nh=function(e){var t=e.cache,n=e.serializedArr;return oh(function(){for(var e=0;e<n.length;e++)Ip(t,n[e],!1)}),null},Lh=lh(function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=nh(o,t.registered);return r.push(a),zp(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Pp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Ah(r))},theme:D.useContext(uh)},a=e.children(i);return n=!0,D.createElement(D.Fragment,null,D.createElement(Nh,{cache:t,serializedArr:r}),a)});Lh.displayName="EmotionClassNames";var Rh="undefined"!=typeof document,Mh="undefined"!=typeof jest||"undefined"!=typeof vi;if(Rh&&!Mh){var Oh="undefined"!=typeof globalThis?globalThis:Rh?window:global,Ph="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Oh[Ph]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Oh[Ph]=!0}var zh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ih=cp(function(e){return zh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Dh=function(e){return"theme"!==e},jh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ih:Dh},Fh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Bh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",$h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zp(t,n,r),oh(function(){return Ip(t,n,r)}),null},Hh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Fh(t,n,i),l=s||jh(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];void 0===f[0]&&console.error(Bh),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Bh),d.push(c[h],f[h])}var m=lh(function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(uh)}"string"==typeof e.className?i=Pp(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=nh(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?jh(r):l,g={};for(var v in e)u&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement($h,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,hf({},n,r,{shouldForwardProp:Fh(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Hh[e]=Hh(e)});var Wh,Uh,Kh,Gh,Vh,Yh={exports:{}};function qh(){if(Uh)return Wh;Uh=1;return Wh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Jh(){if(Gh)return Kh;Gh=1;var e=qh();function t(){}function n(){}return n.resetWarningCache=t,Kh=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Qh(){return Vh||(Vh=1,Yh.exports=Jh()()),Yh.exports}var Xh=m(Qh());const Zh=new Map;function em(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Lc.jsx(Ch,{styles:r})}
17
17
  /**
18
18
  * @mui/styled-engine v5.18.0
19
19
  *
@@ -105,6 +105,6 @@ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o
105
105
  *
106
106
  * This source code is licensed under the MIT license found in the
107
107
  * LICENSE file in the root directory of this source tree.
108
- */function gL(){if(fL)return ZE;fL=1,Object.defineProperty(ZE,"__esModule",{value:!0}),ZE.default=function(t){return(0,e.createStyles)(t)};var e=mL;return ZE}var vL,yL,bL={},xL={};function _L(){if(vL)return xL;vL=1;var e=uy();Object.defineProperty(xL,"__esModule",{value:!0}),xL.default=void 0;var t=(0,e(qE()).default)();return xL.default=t,xL}function wL(){if(yL)return bL;yL=1;var e=uy();Object.defineProperty(bL,"__esModule",{value:!0}),bL.default=void 0;var t=e(By()),n=mL,r=e(_L());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return bL.default=o,bL}var kL,SL,CL={},EL={};function TL(){if(kL)return EL;kL=1;var e=uy();Object.defineProperty(EL,"__esModule",{value:!0}),EL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},EL.getUnit=n,EL.toUnitless=r,EL.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},EL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},EL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},EL.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(dS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return EL}function AL(){if(SL)return CL;SL=1;var e=uy();Object.defineProperty(CL,"__esModule",{value:!0}),CL.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),p};var t=e(By()),n=eS,r=TL();return CL}var NL,LL={};function RL(){if(NL)return LL;NL=1;var e=uy();Object.defineProperty(LL,"__esModule",{value:!0}),LL.default=void 0;var t=e(By()),n=mL,r=e(_L()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return LL.default=o,LL}var ML,OL={};function PL(){if(ML)return OL;ML=1;var e=uy();Object.defineProperty(OL,"__esModule",{value:!0}),OL.default=function(){return(0,t.useTheme)()||n.default};var t=mL;e(C());var n=e(_L());return OL}var zL,IL={};function DL(){if(zL)return IL;zL=1;var e=uy();Object.defineProperty(IL,"__esModule",{value:!0}),IL.default=void 0;var t=e(By()),n=mL,r=e(_L());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return IL.default=o,IL}var jL,FL,BL={};function $L(){if(jL)return BL;jL=1;var e=uy();Object.defineProperty(BL,"__esModule",{value:!0}),BL.default=void 0;var t=mL,n=e(_L()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return BL.default=r,BL}function HL(){return FL||(FL=1,function(e){var t=uy(),n=(Rk||(Rk=1,function(e){var t=zk().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ok)),Ok.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=tS();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(qE()),a=t(XE()),s=t(gL()),l=t(wL()),u=t(AL()),c=t(RL()),d=UE();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var f=t(PL()),p=t(DL()),h=t($L()),m=mL}(Mk)),Mk}var WL=HL();WL.alpha(ak.GREYSCALE_0,.05),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5);const UL=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),KL=D.forwardRef(UL);var GL=Object.defineProperty,VL=(e,t)=>{for(var n in t)GL(e,n,{get:t[n],enumerable:!0})},YL=(e,t,n)=>((e,t,n)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),qL={};VL(qL,{af:()=>nR,ak:()=>rR,am:()=>oR,an:()=>iR,ar:()=>aR,ars:()=>sR,as:()=>lR,asa:()=>uR,ast:()=>cR,az:()=>dR,bal:()=>fR,be:()=>pR,bem:()=>hR,bez:()=>mR,bg:()=>gR,bho:()=>vR,blo:()=>yR,bm:()=>bR,bn:()=>xR,bo:()=>_R,br:()=>wR,brx:()=>kR,bs:()=>SR,ca:()=>CR,ce:()=>ER,ceb:()=>TR,cgg:()=>AR,chr:()=>NR,ckb:()=>LR,cs:()=>RR,cy:()=>MR,da:()=>OR,de:()=>PR,doi:()=>zR,dsb:()=>IR,dv:()=>DR,dz:()=>jR,ee:()=>FR,el:()=>BR,en:()=>$R,eo:()=>HR,es:()=>WR,et:()=>UR,eu:()=>KR,fa:()=>GR,ff:()=>VR,fi:()=>YR,fil:()=>qR,fo:()=>JR,fr:()=>QR,fur:()=>XR,fy:()=>ZR,ga:()=>eM,gd:()=>tM,gl:()=>nM,gsw:()=>rM,gu:()=>oM,guw:()=>iM,gv:()=>aM,ha:()=>sM,haw:()=>lM,he:()=>uM,hi:()=>cM,hnj:()=>dM,hr:()=>fM,hsb:()=>pM,hu:()=>hM,hy:()=>mM,ia:()=>gM,id:()=>vM,ig:()=>yM,ii:()=>bM,io:()=>xM,is:()=>_M,it:()=>wM,iu:()=>kM,ja:()=>SM,jbo:()=>CM,jgo:()=>EM,jmc:()=>TM,jv:()=>AM,jw:()=>NM,ka:()=>LM,kab:()=>RM,kaj:()=>MM,kcg:()=>OM,kde:()=>PM,kea:()=>zM,kk:()=>IM,kkj:()=>DM,kl:()=>jM,km:()=>FM,kn:()=>BM,ko:()=>$M,ks:()=>HM,ksb:()=>WM,ksh:()=>UM,ku:()=>KM,kw:()=>GM,ky:()=>VM,lag:()=>YM,lb:()=>qM,lg:()=>JM,lij:()=>QM,lkt:()=>XM,ln:()=>ZM,lo:()=>eO,lt:()=>tO,lv:()=>nO,mas:()=>rO,mg:()=>oO,mgo:()=>iO,mk:()=>aO,ml:()=>sO,mn:()=>lO,mo:()=>uO,mr:()=>cO,ms:()=>dO,mt:()=>fO,my:()=>pO,nah:()=>hO,naq:()=>mO,nb:()=>gO,nd:()=>vO,ne:()=>yO,nl:()=>bO,nn:()=>xO,nnh:()=>_O,no:()=>wO,nqo:()=>kO,nr:()=>SO,nso:()=>CO,ny:()=>EO,nyn:()=>TO,om:()=>AO,or:()=>NO,os:()=>LO,osa:()=>RO,pa:()=>MO,pap:()=>OO,pcm:()=>PO,pl:()=>zO,prg:()=>IO,ps:()=>DO,pt:()=>jO,pt_PT:()=>FO,rm:()=>BO,ro:()=>$O,rof:()=>HO,ru:()=>WO,rwk:()=>UO,sah:()=>KO,saq:()=>GO,sat:()=>VO,sc:()=>YO,scn:()=>qO,sd:()=>JO,sdh:()=>QO,se:()=>XO,seh:()=>ZO,ses:()=>eP,sg:()=>tP,sh:()=>nP,shi:()=>rP,si:()=>oP,sk:()=>iP,sl:()=>aP,sma:()=>sP,smi:()=>lP,smj:()=>uP,smn:()=>cP,sms:()=>dP,sn:()=>fP,so:()=>pP,sq:()=>hP,sr:()=>mP,ss:()=>gP,ssy:()=>vP,st:()=>yP,su:()=>bP,sv:()=>xP,sw:()=>_P,syr:()=>wP,ta:()=>kP,te:()=>SP,teo:()=>CP,th:()=>EP,ti:()=>TP,tig:()=>AP,tk:()=>NP,tl:()=>LP,tn:()=>RP,to:()=>MP,tpi:()=>OP,tr:()=>PP,ts:()=>zP,tzm:()=>IP,ug:()=>DP,uk:()=>jP,und:()=>FP,ur:()=>BP,uz:()=>$P,ve:()=>HP,vec:()=>WP,vi:()=>UP,vo:()=>KP,vun:()=>GP,wa:()=>VP,wae:()=>YP,wo:()=>qP,xh:()=>JP,xog:()=>QP,yi:()=>XP,yo:()=>ZP,yue:()=>ez,zh:()=>tz,zu:()=>nz});var JL=(e,t)=>t?"other":1==e?"one":"other",QL=(e,t)=>t?"other":0==e||1==e?"one":"other",XL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ZL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},eR=(e,t)=>"other",tR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",nR=JL,rR=QL,oR=XL,iR=JL,aR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},sR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},lR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",uR=JL,cR=ZL,dR=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},fR=(e,t)=>1==e?"one":"other",pR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},hR=JL,mR=JL,gR=JL,vR=QL,yR=(e,t)=>{const n=String(e).split(".")[0];return t?0==n?"zero":1==n?"one":2==n||3==n||4==n||5==n||6==n?"few":"other":0==e?"zero":1==e?"one":"other"},bR=eR,xR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",_R=eR,wR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},kR=JL,SR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},CR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},ER=JL,TR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},AR=JL,NR=JL,LR=JL,RR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},MR=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",OR=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},PR=ZL,zR=XL,IR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},DR=JL,jR=eR,FR=JL,BR=JL,$R=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},HR=JL,WR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},UR=ZL,KR=JL,GR=XL,VR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",YR=ZL,qR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},JR=JL,QR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},XR=JL,ZR=ZL,eM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},tM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},nM=ZL,rM=JL,oM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",iM=QL,aM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},sM=JL,lM=JL,uM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},cM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",dM=eR,fM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},pM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},hM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",mM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",gM=ZL,vM=eR,yM=eR,bM=eR,xM=ZL,_M=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),s=r.slice(-2);return t?"other":i&&1==a&&11!=s||o%10==1&&o%100!=11?"one":"other"},wM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},kM=tR,SM=eR,CM=eR,EM=JL,TM=JL,AM=eR,NM=eR,LM=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},RM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",MM=JL,OM=JL,PM=eR,zM=eR,IM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},DM=JL,jM=JL,FM=eR,BM=XL,$M=eR,HM=JL,WM=JL,UM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",KM=JL,GM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),s=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},VM=JL,YM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},qM=JL,JM=JL,QM=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},XM=eR,ZM=QL,eO=(e,t)=>t&&1==e?"one":"other",tO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},nO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},rO=JL,oO=QL,iO=JL,aO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":i&&1==a&&11!=s||1==l&&11!=u?"one":"other"},sO=JL,lO=JL,uO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},cO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",dO=(e,t)=>t&&1==e?"one":"other",fO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pO=eR,hO=JL,mO=tR,gO=JL,vO=JL,yO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},bO=ZL,xO=JL,_O=JL,wO=JL,kO=eR,SO=JL,CO=QL,EO=JL,TO=JL,AO=JL,NO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},LO=JL,RO=eR,MO=QL,OO=JL,PO=XL,zO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},IO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},DO=JL,jO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},FO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},BO=JL,$O=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},HO=JL,WO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},UO=JL,KO=eR,GO=JL,VO=tR,YO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},qO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},JO=JL,QO=JL,XO=tR,ZO=JL,eP=eR,tP=eR,nP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},rP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},oP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},iP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},aP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},sP=tR,lP=tR,uP=tR,cP=tR,dP=tR,fP=JL,pP=JL,hP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},mP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},gP=JL,vP=JL,yP=JL,bP=eR,xP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},_P=ZL,wP=JL,kP=JL,SP=JL,CP=JL,EP=eR,TP=QL,AP=JL,NP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},LP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},RP=JL,MP=eR,OP=eR,PP=JL,zP=JL,IP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},DP=JL,jP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=s?"few":"other":o&&1==l&&11!=u?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},FP=eR,BP=ZL,$P=JL,HP=JL,WP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},UP=(e,t)=>t&&1==e?"one":"other",KP=JL,GP=JL,VP=QL,YP=JL,qP=eR,JP=JL,QP=JL,XP=ZL,ZP=eR,ez=eR,tz=eR,nz=XL,rz={},oz=Array.prototype.slice,iz=function(e){return("0"+e.toString()).substr(-2)},az=function(e){var t=typeof e;return"function"===t||"object"===t},sz=function(e){return"function"===typeof e},lz=function(e){return null!=e},uz=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},cz=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},dz=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},fz=function(e){return!0===e||!1===e},pz=function(e){return null===e},hz=function(e,t,n){return void 0===n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},mz=function(e,t){return sz(e)?e(t):e},gz=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],cz(r)||dz(r)||fz(r)||uz(r)||pz(r)?e[n]=r:(null==e[n]&&(e[n]={}),gz(e[n],r)));return e},vz={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},yz={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},bz={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},xz={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},_z=[null,"kb","mb","gb","tb"],wz={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};rz.reset=function(){var e;for(e in wz)this[e]=wz[e]},rz.initializeOptions=function(){var e;for(e in wz)lz(this[e])||(this[e]=wz[e])},rz.initializeOptions(),rz.locales={},rz.locales.get=function(e){var t=this[e]||this[rz.locale]||this.default;return sz(t)&&(t=t(e)),!1===uz(t)&&(t=[t]),t},rz.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&rz.locale&&t.push(rz.locale),rz.fallbacks&&rz.defaultLocale&&t.push(rz.defaultLocale),t.forEach(function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),rz.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},rz.pluralization={},rz.pluralization.get=function(e){return this[e]||this[rz.locale]||this.default},rz.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},rz.currentLocale=function(){return this.locale||this.defaultLocale},rz.isSet=lz,rz.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(lz(t.defaultValue))return mz(t.defaultValue,e)},rz.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&az(n))for(;i.length;)if(r=i.shift(),lz(n[r])){o=n[r];break}return o},rz.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,s=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);s.length;)if(r=s.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],az(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&lz(n.defaultValue)&&(a=az(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},rz.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:vz.meridian},rz.prepareOptions=function(){for(var e,t=oz.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(lz(n[r])||(n[r]=e[r]));return n},rz.createTranslationOptions=function(e,t){var n=[{scope:e}];return lz(t.defaults)&&(n=n.concat(t.defaults)),lz(t.defaultValue)&&n.push({message:t.defaultValue}),n},rz.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some(function(t){if(lz(t.scope)?(o=t.scope,n=this.lookup(o,i)):lz(t.message)&&(n=mz(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):uz(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):az(n)&&lz(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},rz.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=lz(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},rz.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},rz.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,function(e,t,n){return t+" "+n.toLowerCase()})}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},rz.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},rz.nullPlaceholder=function(){return rz.missingPlaceholder.apply(rz,arguments)},rz.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),yz);var n,r,o=e<0,i=function(e,t){return hz("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),s=[],l=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)s.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=s.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},rz.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),bz),this.toNumber(e,t)},rz.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},rz.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},rz.strftime=function(e,t,n){n=this.lookup("date",n);var r=rz.meridian();if(n||(n={}),n=this.prepareOptions(n,vz),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),s=e.getMonth()+1,l=e.getHours(),u=l,c=l>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[s])).replace("%B",n.month_names[s])).replace("%d",iz(i))).replace("%e",i)).replace("%-d",i)).replace("%H",iz(l))).replace("%-H",l)).replace("%k",l)).replace("%I",iz(u))).replace("%-I",u)).replace("%l",u)).replace("%m",iz(s))).replace("%-m",s)).replace("%M",iz(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",iz(d))).replace("%-S",d)).replace("%w",o)).replace("%y",iz(a))).replace("%-y",iz(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},rz.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},rz.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),xz),this.toNumber(e,t)},rz.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+_z[a],t),n=this.t(o),r=i-Math.floor(i)===0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},rz.getFullScope=function(e,t){return t=t||{},uz(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},rz.extend=function(e,t){return void 0===e&&void 0===t?{}:gz(e,t)},rz.t=rz.translate.bind(rz),rz.l=rz.localize.bind(rz),rz.p=rz.pluralize.bind(rz);VL({},{DEFAULT_LANGUAGE:()=>Sz,DEFAULT_LANGUAGE_SHORT:()=>Cz,flattenParams:()=>Pz,flattenTranslationsJSON:()=>Az,format:()=>zz,formatWithKeys:()=>Iz,getLongLanguageDesc:()=>Oz,getShortLanguageDesc:()=>Mz,parseLangFromUrl:()=>Nz,resolveLocale:()=>Rz,updateLangAttribute:()=>Dz});var kz=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],Sz="en-US",Cz="en",Ez=["zh-cn","zh-tw","qps-ploc"],Tz=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Az=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),Tz(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=Tz(r)&&r.value;return o&&(t[n]=o),t},{}):{}),Nz=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},Lz=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(Ez.includes(e.toLocaleLowerCase()))return kz.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return kz.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},Rz=(...e)=>{for(const t of e){const e=Lz(t);if(e)return e.short}},Mz=e=>{const t=Lz(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${Cz}'`),Cz)},Oz=e=>{const t=Lz(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${Sz}'`),Sz)},Pz=e=>Array.isArray(e[0])?e[0]:e,zz=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e)},Iz=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),Dz=e=>{const t=Mz(e);document.documentElement.setAttribute("lang",t)},jz=class e{static configure(t,n=Sz){e.translations=t,e.language=Oz(n),e.languageShort=Mz(n),Dz(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=rz,rz.missingTranslation=e=>e,rz.defaultSeparator=null,rz.locale=e.language,rz.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];rz.pluralization[e.language]=e=>{try{const t=qL[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=Iz(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,{count:n,...r})}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};YL(jz,"translations",{}),YL(jz,"translationsPlurals",{}),YL(jz,"language"),YL(jz,"languageShort"),YL(jz,"onTranslationsChangeListeners",[]),YL(jz,"i18nProvider"),YL(jz,"get",(e,...t)=>{var n;const r=Pz(t);let o=null!=(n=jz.translations[e])?n:e;return r.length>0&&(o=zz(o,...r)),o});var Fz=jz;var Bz=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=Fz.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),Fz.get},$z=Fz;function Hz({defaultSelection:e}){const[t]=Cc();return D.useEffect(()=>{t.focus(()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}function Wz(e,t=!0){if(e)return!1;let n=Gi().getTextContent();return t&&(n=n.trim()),""===n}function Uz(e){return()=>function(e){if(!Wz(e,!1))return!1;const t=Gi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Xo(n))return!1;if(qo(n)){if(!ui(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Or(t[e]))return!1}}return!0}(e)}const Kz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Gz({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:m,role:g="textbox",spellCheck:v=!0,style:y,tabIndex:b,"data-testid":x,..._},w){const[k,S]=D.useState(e.isEditable()),C=D.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),E=D.useMemo(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(w,C),[C,w]);return Kz(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Lc.jsx("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===g?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":k?d:void 0,"aria-readonly":!k||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:k,"data-testid":x,id:m,ref:E,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const Vz=D.forwardRef(Gz);function Yz(e){return e.getEditorState().read(Uz(e.isComposing()))}const qz=D.forwardRef(Jz);function Jz(e,t){const{placeholder:n,...r}=e,[o]=Cc();return Lc.jsxs(Lc.Fragment,{children:[Lc.jsx(Vz,{editor:o,...r,ref:t}),null!=n&&Lc.jsx(Qz,{editor:o,content:n})]})}function Qz({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>Yz(e));return Kz(()=>{function t(){const t=Yz(e);n(t)}return t(),Gs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=D.useState(t.isEditable());if(D.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:Lc.jsx("div",{"aria-hidden":!0,children:i})}const Xz=D.createContext(null),Zz={didCatch:!1,error:null};class eI extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Zz}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Zz))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Zz))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=D.createElement(n,e);else{if(void 0===r)throw i;a=r}}return D.createElement(Xz.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function tI({children:e,onError:t}){return Lc.jsx(eI,{fallback:Lc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const nI={name:"@lexical/react/ReactProvider"};function rI(e){throw new Error(e)}const oI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function iI({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return oI(()=>e.registerDecoratorListener(e=>{ab.flushSync(()=>{r(e)})}),[e]),D.useEffect(()=>{r(e.getDecorators())},[e]),D.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Lc.jsx(t,{onError:t=>e._onError(t),children:Lc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(ab.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function aI({editor:e,ErrorBoundary:t}){return function(e){const t=fu.maybeFromEditor(e);if(t&&t.hasExtensionByName(nI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&rI(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Lc.jsx(iI,{editor:e,ErrorBoundary:t})}function sI(e){return e.getEditorState().read(Uz(e.isComposing()))}function lI(e){oI(()=>Gs(Sd(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,a,s]=t;e.update(()=>{const e=so();if(Wr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Or(l)&&r>=0&&o>=0&&(u=r,c=r+o,e.setTextNodeRange(l,u,l,c)),u===c&&""===i||(e.insertRawText(i),l=t.getNode()),Or(l)){u=a,c=a+s;const t=l.getTextContentSize();u=u>t?t:u,c=c>t?t:c,e.setTextNodeRange(l,u,l,c)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function uI({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Cc();return lI(r),Lc.jsxs(Lc.Fragment,{children:[e,Lc.jsx(cI,{content:t}),Lc.jsx(aI,{editor:r,ErrorBoundary:n})]})}function cI({content:e}){const[t]=Cc(),n=function(e){const[t,n]=D.useState(()=>sI(e));return oI(()=>{function t(){const t=sI(e);n(t)}return t(),Gs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Nd();return n?"function"==typeof e?e(r):e:null}const dI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),fI=D.forwardRef(dI),pI=(e,t)=>Lc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Lc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Lc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),hI=D.forwardRef(pI),mI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),gI=D.forwardRef(mI),vI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),yI=D.forwardRef(vI),bI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),xI=D.forwardRef(bI),_I=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M2.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 12H7v-1h9zM2.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 5H7V4h9z"})}),wI=D.forwardRef(_I),kI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),SI=D.forwardRef(kI),CI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M2.05 9q.372 0 .72.09.349.089.623.274.273.186.436.468t.163.66a1.38 1.38 0 0 1-.284.86 2.3 2.3 0 0 1-.304.333l-.174.155-.18.152-1.243 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.195-.235a.7.7 0 0 0 .122-.399.54.54 0 0 0-.182-.422.7.7 0 0 0-.486-.163.7.7 0 0 0-.52.204.83.83 0 0 0-.217.406l-.022.127L0 10.568l.031-.18q.06-.263.193-.48a1.8 1.8 0 0 1 .452-.492 2 2 0 0 1 .626-.31Q1.655 9 2.05 9M16 12H6v-1h10zM3 7H1.697V3.328l-1.022.72L0 3.208 1.807 2H3zm13-2H6V4h10z"})}),EI=D.forwardRef(CI),TI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),AI=D.forwardRef(TI),NI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{fillRule:"evenodd",d:"M12.483 4.4c0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9H3V1h6.466c1.666 0 3.017 1.522 3.017 3.4m-6.897 2h2.91a1.6 1.6 0 0 0 0-3.2h-2.91zm0 6.4h3.1a1.9 1.9 0 0 0 0-3.8h-3.1z",clipRule:"evenodd"})}),LI=D.forwardRef(NI),RI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),MI=D.forwardRef(RI),OI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),PI=D.forwardRef(OI),zI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),II=D.forwardRef(zI),DI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M7.041 14.855A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255z"})}),jI=D.forwardRef(DI),FI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),BI=D.forwardRef(FI),$I=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),HI=D.forwardRef($I);var WI,UI,KI={exports:{}},GI={};function VI(e){return VI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VI(e)}var YI=(UI||(UI=1,KI.exports=function(){if(WI)return GI;WI=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return GI.Fragment=n,GI.jsx=a,GI.jsxs=a,GI}()),KI.exports);const qI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,JI=[e=>{const t=qI.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function QI(){return YI.jsx(Ed,{matchers:JI})}const XI=()=>{const[e]=Cc(),t=Nd(),n=D.useCallback(n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read(()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)})},[t,e]);return D.useEffect(()=>Gs(e.registerMutationListener(gu,e=>{n(e)}),e.registerMutationListener(ku,e=>{n(e)}),e.registerCommand(Ct,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=so();let t;if(Wr(e)&&(t=e.focus.getNode().getParent()),Kr(e)&&(t=e.getNodes()[0]),Cu(t)||wu(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),ci)),[e,n]),null};function ZI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?tl(n)?r:o:tl(t)?r:o}const eD=new Set(["http:","https:","mailto:","sms:","tel:"]),tD=e=>{const t=e;return t.password="",t.username="",t};function nD(e){try{const t=new URL(e);return eD.has(t.protocol)?{url:tD(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const rD=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function oD(e){return"https://"===e||rD.test(e)}const iD=Zy(gw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),aD=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=D.useRef(null),[a,s]=D.useState(t);D.useEffect(()=>{s(t)},[t]);const l=D.useCallback(()=>{n(a),window.open(nD(a).url,"_blank"),r()},[a,r,n]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=D.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return YI.jsx(O_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>YI.jsx(_w,{...e,children:YI.jsx(Tb,{className:"tekPopperMenu",children:YI.jsxs(iD,{direction:"row",children:[YI.jsx(Y_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),YI.jsx(Jb,{onClick:l,children:YI.jsx(nk,{})}),YI.jsx(Jb,{onClick:u,children:YI.jsx(ok,{})})]})})})})},sD=()=>{const[e]=Cc(),t=Nd(),[n,r]=D.useState(null),[o,i]=D.useState(""),a=D.useRef(!1),s=D.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=so();if(Wr(t)){const n=ZI(t),o=n.getParent();if(Cu(o)||Cu(n))return r(null),i(""),!1;let a;if(wu(o)&&(a=o),wu(n)&&(a=n),wu(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=D.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(Eu,nD(t))},{onUpdate:()=>{r(null)}})},[e]),u=D.useCallback(()=>{r(null)},[]);return D.useEffect(()=>Gs(e.registerCommand(kt,()=>s(),1),e.registerCommand(Ct,()=>s(),1)),[e,s]),t?YI.jsx(aD,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function lD(){return YI.jsx(ik,{validateUrl:oD})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const uD=({children:e})=>YI.jsx(tb,{theme:Nk(),children:e}),cD={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"},image:"tek__image"},nodes:[md,fd,dc,ac,gu,ku],onError:e=>{console.log(e)}},dD=({children:e,initialConfig:t,flags:n})=>YI.jsx(uD,{children:YI.jsx("div",{className:"tek__editor__Wrapper",children:YI.jsx(Pc,{initialConfig:t||cD,children:YI.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,YI.jsx(Bc,{}),YI.jsx($c,{}),YI.jsx(lD,{}),YI.jsx(QI,{}),YI.jsx(sD,{}),YI.jsx(XI,{}),YI.jsx(Fc,{})]})})})});let fD=class e extends Yo{__hasBorders;static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const pD=e=>new fD(e),hD=e=>e instanceof fD;let mD=class e extends Yo{__needsUpdate;__hasBorders;__width;static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch{}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function gD(e){return e instanceof mD}let vD=class e extends Yo{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function yD(e){return e instanceof vD}const bD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),hD(t))return t;return null},xD=e=>{let t=e;for(;null!==t;){if(gD(t))return t;t=t?.getParent()}return null},_D=(e,t)=>{const n=xD(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},wD=e=>{const t=e?.getChildAtIndex(2);return t},kD=e=>{const t=e.getParent();if(yD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},SD=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,CD=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},ED=e=>e?e.getChildren().filter(e=>yD(e)):[],TD=e=>{let t=!1;return ED(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(li()),t=!0})}),t},AD=e=>{const t=so();if(Wr(t)||Kr(t)){const n=t.getNodes().filter(e=>hD(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>gD(e)),o=xD(n[0]),i=ED(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Wr(t)){const e=t.focus.getNode();if(gD(e))return TD(e)}return n.forEach(e=>{e.clear(),e.append(li())}),(()=>{const e=so();let t=!1;if(Wr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=xD(n);!o&&gD(r)&&(o=r),gD(o)&&(t=TD(o))}return t})()}if(Wr(t)){const e=t.focus.getNode();if(gD(e))return TD(e)}}return!1},ND=e=>{if(e){const t=xD(e);if(gD(t)){const n=e.getParent(),r=ED(t).findIndex(e=>e===n),o=n?.getChildren().findIndex(t=>t===e);return{i:r,j:o,tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},LD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),hD(t))return t;return null},RD=e=>{const t=[];return ED(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},MD=(e,t)=>{RD(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},OD=wt("UPDATE_COL_WIDTHS_COMMAND"),PD=wt("BEGIN_COL_RESIZE"),zD=wt("END_COL_RESIZE"),ID=wt("INSERT_TEK_TABLE_COMMAND"),DD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return YI.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},jD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},FD=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,BD=({nodeKey:e,colWidths:t})=>{const[n]=Cc(),r=Nd(),[o,i]=D.useState(null),a=D.useRef(null),s=D.useRef(null),l=D.useRef(null),u=D.useRef(null),c=D.useCallback(t=>{const n=Bi(e);if(n){const e=n.getParent();if(gD(e)){const n=wD(e);if("TekRowNode"===n?.getType()){const e=n.getChildren(),r=[];let o=0;e.forEach((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})}),i(r)}}}},[e]),d=D.useCallback(e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:s,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=CD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=CD(e,r),s=a.current.nxtColWidth-p,d=CD(s,r);if(s<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const s=a/t,l=Math.min(100*s,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=CD(e,d),s=CD(o,d);r.style.width=!n||p>0?a:s,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=a)}}},[]),f=D.useCallback(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",l.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(CD(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach((t,n)=>{t.setAttribute("width",e[n])}),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(zD,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Bi(e),r=_D(t,n),a=t?.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),s=[];t.forEach(e=>{s.push(e.getAttribute("width")||"0")}),a.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(s[t]),n.startX=l,n});i(e)}n.dispatchCommand(OD,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=D.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Bi(t),o=_D(r,n);if(hD(r)){const t=kD(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],s=r.length>t+1?r[t+1]:null,c=SD(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=SD(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=jD("tek__leftResizerIndicator","leftGripper");r.innerText=FD(e);let o=null;return t?(o=jD("tek__rightResizerIndicator","rightGripper"),o.innerText=FD(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=y.left,u.current=y.right,d.appendChild(y.left),y.right&&d.appendChild(y.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:s,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(PD,void 0)}}})},[n,d,f]);return D.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),YI.jsx(YI.Fragment,{children:o&&r?o.map(e=>YI.jsx(DD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},$D="TEK_TABLE_RESIZE_NODE";let HD=class e extends Qo{__colWidths;static getType(){return $D}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:$D,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return YI.jsx(BD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const WD=e=>e instanceof HD,UD=({nodeKey:e,colWidths:t})=>{const[n]=Cc(),[r,o]=D.useState(t);return D.useEffect(()=>{n.getEditorState().read(()=>{const t=Bi(e),n=t?.getParent();if(gD(n)){const e=n.getResizeNode();if(WD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),YI.jsx(YI.Fragment,{children:r.map((t,n)=>YI.jsx("col",{span:1,width:t},`${e}.${n}`))})};class KD extends Qo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new KD(e.__colWidths,e.__key)}static importJSON(e){return new KD(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return YI.jsx(UD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class GD extends Qo{__formatStyle;constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const VD=[mD,fD,vD,KD,HD],YD=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=t?.getChildAtIndex(0),i=t?.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),t?.markNeedsUpdate()},qD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=bD(t);if(n){const e=kD(n),t=xD(n),r=ED(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),YD(o,t)}}},JD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=bD(t),r=xD(n);if(r&&3===r.getChildren().length)return Yi(null),void r.remove();if(n){const{row:e}=ND(n);Yi(null),e?.remove()}}},QD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t),r=wD(n);if(yD(r)&&n){const e=r.getChildren().length,t=new vD;for(let r=0;r<e;r++){const e=pD(n?.__hasBorders);e.append(li()),t.append(e)}n?.append(t)}}},XD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);if(gD(n)){const e=ED(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=pD(n.__hasBorders);o.append(li()),e[r].append(o),t=o}return YD(r,n),t}}return null},ZD=Zy(Jb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),ej=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Cc(),[o,i]=D.useState(null),a=Bz(),s=Boolean(o),l=D.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=D.useCallback(()=>{i(null)},[]),d=D.useCallback(e=>{l(e,QD,t)},[l,t]),f=D.useCallback(e=>{l(e,XD,t)},[l,t]),p=D.useCallback(t=>{l(t,JD,e)},[l,e]),h=D.useCallback(t=>{l(t,qD,e)},[l,e]),m=D.useCallback(()=>{r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);gD(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);n&&(n.toggleBorders(),RD(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>Gs(r.registerCommand(kt,()=>(i(null),!1),4)),[r]),YI.jsx(uw,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(ZD,{size:"small",onClick:u,children:YI.jsx(KL,{height:12})}),YI.jsx(O_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:YI.jsx(Tb,{id:"tekTableMenu",className:"tekPopperMenu",children:YI.jsxs(jw,{dense:!0,children:[YI.jsx(Ww,{onClick:g,children:a("ToggleBorders")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:d,children:a("AddNewRow")}),YI.jsx(Ww,{onClick:f,children:a("AddNewColumn")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:p,children:a("DeleteRow")}),YI.jsx(Ww,{onClick:h,children:a("DeleteCol")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:m,children:a("DeleteTable")})]})})})]})})},tj=()=>{const[e]=Cc(),t=Nd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(uh),l=D.useRef(null),u=D.useCallback(()=>{o||e.update(()=>{const t=so();if(Wr(t)){const n=bD(t.anchor.getNode());if(hD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);D.useEffect(()=>{const e=e=>{0!==e.buttons?null===l.current&&(l.current=setTimeout(()=>{i(!0),r(null)},300)):(i(!1),clearTimeout(l.current),l.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[]),D.useEffect(()=>Gs(e.registerCommand(kt,()=>(u(),!1),ci),e.registerCommand(PD,()=>(r(null),!0),4),e.registerCommand(zD,()=>(u(),!0),4)),[e,u]),D.useEffect(()=>{r(null)},[t]);const c=D.useCallback(()=>{r(null)},[]),d=D.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=D.useCallback(()=>{clearTimeout(l.current)},[]);return YI.jsx(O_,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:YI.jsx(ej,{onDeleteAction:c,onAction:d,onClick:f})})},nj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Bi(n),r=e?.getParent();ei(r)&&null!==e&&t.push(e)}if(t.length>0){const e=li();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},rj=()=>{const[e]=Cc(),t=Nd();return D.useEffect(()=>Gs(e.registerMutationListener(fD,t=>{e.update(()=>{nj(t)})}),e.registerMutationListener(vD,t=>{e.update(()=>{nj(t)})}),e.registerMutationListener(mD,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Bi(e);if(gD(t)&&!t.isValid()){const e=li();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(ID,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new mD(!0,"100%"),n=new KD(e),r=new HD(e),o=[];for(let t=0;t<2;t++){const t=new vD;for(let n=0;n<e.length;n++){const e=pD(!0),n=li();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();yl(e)}),!0),ci),e.registerCommand(OD,({colWidths:e,nodeKey:t})=>{const n=Bi(t);if(WD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof KD})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Yt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=xD(t),r=LD(t);if(gD(n)){const e=li();e.append(Mr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=xD(t);if(gD(n)){const e=li();e.append(Mr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Jt,e=>AD(e),4),e.registerCommand(Xt,e=>AD(e),4),e.registerCommand(Zt,e=>{const t=so();if(Wr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),hD(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const s=o.getChildAtIndex(n+2+a);if(yD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(ND(o),!e.shiftKey),!0}return!1},ci),e.registerCommand(cn,e=>{const t=e?.target,n=so();if(t.classList.contains("tek__table")&&Wr(n)&&gD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Wr(n)){const t=n.getNodes().some(e=>hD(e)),r=n.getNodes().some(e=>gD(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),D.useEffect(()=>e.registerCommand(kt,()=>(t&&e.update(()=>{(e=>{const t=so(),n=[];if(da(mD).forEach(e=>{const t=RD(e);n.push(...t)}),Wr(t)){t.getNodes().filter(e=>gD(e)).forEach(t=>{MD(t,e)});const n=t.focus.getNode();if(gD(n))return void MD(n,e)}if(Wr(t)||Kr(t)){const r=new Set(t.getNodes().map(e=>LD(e)));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?o?.classList.add("tek__tekCellHighlight"):o?.classList.remove("tek__tekCellHighlight")}}})(e)},{tag:"history-merge"}),!1),4),[e,t]),D.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];da(mD).forEach(e=>{const n=RD(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},oj=()=>YI.jsxs(YI.Fragment,{children:[YI.jsx(rj,{}),YI.jsx(tj,{})]}),ij=()=>{const e=Nd(),t=Bz();return e?YI.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):YI.jsx("div",{className:"tek__editor__logo",children:YI.jsx(fI,{height:32})})},aj=({showPlaceholder:e})=>YI.jsxs("div",{style:{position:"relative"},children:[YI.jsx(Hz,{}),YI.jsx(uI,{contentEditable:YI.jsx(qz,{className:"tek__editor__input"}),placeholder:!1!==e?YI.jsx(ij,{}):null,ErrorBoundary:tI})]}),sj=Zy(gw)(({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}})),lj=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],uj="#404040",cj="16px",dj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:lj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),fj=({children:e})=>{const t=(()=>{const[e]=Cc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(lj[0]),[d,f]=D.useState(cj),[p,h]=D.useState(uj),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback(()=>{const t=so();if(Wr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:qa(r,e=>{const t=e.getParent();return null!==t&&ka(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(vc(i)){const e=gl(r,dc),t=e?e.getListType():i.getListType();l(t)}else{const e=xd(i)?i.getTag():i.getType();l(e)}if(vc(i)||xd(i)){const e=gl(i,ai);e&&(u=e)}const d=ZI(t);if(wu(d.getParent())||wu(d)?y(!0):y(!1),ui(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=fl(t,"font-family",lj[0]),m=fl(t,"font-size",cj);c(""===p?lj[0]:p),f(""!==m&&m?m:cj),h(fl(t,"color",uj))}else Kr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof GD}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",uj));const t=e.getTextFormatStyle("fontSize",cj),r=e.getTextFormatStyle("fontFamily",lj[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(cc(e)){const t=gl(e,dc);return t?t.getListType():"bullet"}return xd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return D.useEffect(()=>Gs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(kt,()=>(e.getEditorState().read(()=>{b()}),!1),ci)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return YI.jsx(dj.Provider,{value:t,children:e})},pj=({children:e})=>YI.jsx(fj,{children:YI.jsx(sj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),hj=({anchorEl:e,children:t})=>{const n=Boolean(e);return YI.jsx(O_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>YI.jsx(_w,{...e,children:YI.jsx(Tb,{className:"tekPopperMenu",children:t})})})},mj=Zy(nx)({fontSize:12,textOverflow:"ellipsis"}),gj=({startIcon:e,value:t,onClick:n,compact:r})=>YI.jsx(ek,{title:t,PopperProps:{disablePortal:!0},children:YI.jsx(sw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:YI.jsx(xI,{height:12}),children:r?e:YI.jsx(mj,{children:t})})}),vj=Zy(Ww,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),yj=[{text:"AlignLeft",align:"left",icon:()=>YI.jsx(gI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>YI.jsx(hI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>YI.jsx(yI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],bj=({compact:e=!1})=>{const[t]=Cc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(dj),i=Bz(),a=D.useMemo(()=>yj.find(e=>e.align===o.align)||yj[0],[o.align]),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=D.useCallback(()=>{r(null)},[]),u=D.useCallback(e=>{r(null),t.dispatchCommand(on,e),t.focus()},[t]);return YI.jsx(uw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),YI.jsx(hj,{anchorEl:n,children:YI.jsx(jw,{dense:!0,children:yj.map(e=>YI.jsxs(vj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[YI.jsx(Rw,{children:e.icon()}),YI.jsx(mj,{children:i(e.text)})]},e.align))})})]})})},xj=({text:e,icon:t})=>YI.jsxs(YI.Fragment,{children:[YI.jsx(Rw,{children:t}),YI.jsx(mj,{children:e})]}),_j=({text:e,icon:t})=>YI.jsxs(YI.Fragment,{children:[YI.jsx(Rw,{children:YI.jsx(mj,{fontWeight:"bold",children:t})}),YI.jsx(mj,{children:e})]}),wj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],kj=(e,t,n)=>({icon:YI.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),Sj=({compact:e=!1})=>{const[t]=Cc(),{blockFormat:n}=D.useContext(dj),[r,o]=D.useState(null),i=Bz(),a=D.useMemo(()=>{let e={icon:YI.jsx(AI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=kj("Heading1","H1",i)),"h2"===n.blockType&&(e=kj("Heading2","H2",i)),"h3"===n.blockType&&(e=kj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=YI.jsx(SI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=YI.jsx(wI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=YI.jsx(EI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=D.useCallback(()=>{o(null)},[]),l=D.useCallback(e=>{t.update(()=>{const n=so();Wr(n)?(ol(n,{"font-size":null}),function(e,t,n=il){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=ro(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=qa(e.getNode(),Ia),a=qa(t.getNode(),Ia);qo(n)&&o.set(n.getKey(),n),qo(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(qo(t)&&Ia(t))o.set(t.getKey(),t);else if(null===r){const e=qa(t,Ia);qo(e)&&o.set(e.getKey(),e)}for(const[e,r]of o){const o=t();n(r,o),r.replace(o,!0),i&&(e===i.anchor.key&&i.anchor.set(o.getKey(),i.anchor.offset,i.anchor.type),e===i.focus.key&&i.focus.set(o.getKey(),i.focus.offset,i.focus.type))}i&&e.is(so())&&Yi(i)}(n,e)):Kr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=D.useCallback((e,n)=>{o(null),t.update(()=>{const r=so();Wr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=D.useCallback(e=>{o(null),l(()=>bd(e))},[l]),d=D.useCallback(()=>{o(null),l(()=>li())},[l]),f=D.useCallback(()=>{o(null),l(()=>pd())},[l]);return YI.jsx(uw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),YI.jsx(hj,{anchorEl:r,children:YI.jsxs(jw,{dense:!0,children:[YI.jsx(Ww,{dense:!0,onClick:d,children:YI.jsx(xj,{text:i("Paragraph"),icon:YI.jsx(AI,{height:12})})}),YI.jsx(Ww,{dense:!0,onClick:f,children:YI.jsx(xj,{text:i("Quote"),icon:YI.jsx(SI,{height:12})})}),wj.map(e=>YI.jsx(Ww,{dense:!0,onClick:()=>{c(e.tag)},children:YI.jsx(_j,{text:i(e.text),icon:e.icon})},e.text)),YI.jsx(mw,{}),YI.jsx(Ww,{dense:!0,onClick:()=>{u("bullet",bc)},children:YI.jsx(xj,{text:i("UnorderedList"),icon:YI.jsx(wI,{height:12})})}),YI.jsx(Ww,{dense:!0,onClick:()=>{u("number",xc)},children:YI.jsx(xj,{text:i("OrderedList"),icon:YI.jsx(EI,{height:12})})})]})})]})})},Cj=Zy(sw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0})),Ej=(e,t)=>{const n=n=>{const r=Bz();return YI.jsx(ek,{title:r(t),PopperProps:{disablePortal:!0},children:YI.jsx("div",{children:YI.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},Tj=({format:e,icon:t,...n})=>{const r=D.useContext(dj),[o]=Cc(),i=D.useCallback(()=>{o.dispatchCommand(jt,e)},[o,e]);return YI.jsx(Cj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},Aj=Ej(Tj,"Bold"),Nj=()=>YI.jsx(Aj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:YI.jsx(LI,{height:12})}),Lj=wt("APPLY_TEXT_FORMAT"),Rj=wt("CLEAR_TEXT_FORMAT"),Mj=Ej(Cj,"ClearFormat"),Oj=()=>{const[e]=Cc(),t=D.useCallback(()=>{e.update(()=>{const t=so();if(Wr(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach((t,o)=>{try{if(Or(t)){let i=t;0===o&&0!==e.offset&&(i=i.splitText(e.offset)[1]||i),o===r.length-1&&(i=i.splitText(n.offset)[0]||i),""!==i.__style&&i.setStyle(""),0!==i.__format&&(i.setFormat(0),vl(i).setFormat(""));const a=i.getParent();(xd(a)||hd(a))&&a.replace(li(),!0)}else(xd(t)||hd(t))&&t.replace(li(),!0)}catch{}})}e.dispatchCommand(Rj,void 0)})},[e]);return YI.jsx(Mj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:YI.jsx(MI,{height:12})})};var Pj,zj={},Ij=function(){if(Pj)return zj;Pj=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==VI(o=function(e){if("object"!=VI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},zj.Color=u,zj}();const Dj=Zy(gw)(({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"})),jj=Zy(Q_)(({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"})),Fj=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=Iy(),a=D.useCallback(e=>{o(e),n(e)},[n]);return YI.jsx(Dj,{children:e.map(e=>YI.jsx(jj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?YI.jsx(ok,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function Bj(e,t,n){return Math.max(t,Math.min(n,e))}const $j=(e,t)=>{const n=new Ij.Color(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},Hj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Bj(e.clientX-n,0,o)/o*100,s=100-Bj(e.clientY-r,0,i)/i*100,l=new Ij.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Wj=Zy(gw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Uj=Zy(Q_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Kj=Zy(Q_)(({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"})),Gj=Zy(Q_)({width:"16px",height:"16px",borderRadius:"2px"}),Vj=Zy(gw)({flexDirection:"row",alignItems:"center"}),Yj=Zy(Q_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),qj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),a=D.useRef(n),[s,l]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=D.useState({left:"0",top:"0"});D.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const g=D.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=$j(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new Ij.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Hj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ij.Color(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)},[e]),b=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Bj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new Ij.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ij.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=D.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=D.useCallback(t=>{if(c(t.target.value),!new Ij.Color(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=$j(a.current,d.current);m(e)}},[e]);return YI.jsxs(Wj,{children:[s?YI.jsx(Fj,{palette:r,color:o,onColorChange:x}):YI.jsxs(YI.Fragment,{children:[YI.jsx(Uj,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,s=Hj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new Ij.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:YI.jsx(Yj,{ref:f,style:{...h,backgroundColor:o}})}),YI.jsx(Kj,{onClick:b})]}),YI.jsxs(Vj,{children:[YI.jsx(Gj,{style:{backgroundColor:o}}),YI.jsx(Y_,{style:{flex:1},value:u,onChange:_}),YI.jsx(Jb,{onClick:()=>{l(!s)},children:YI.jsx(PI,{height:12})}),YI.jsx(Jb,{onClick:t,children:YI.jsx(ok,{height:12})})]})]})},Jj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Qj=Ej(sw,"Color"),Xj=({colorPalette:e=Jj})=>{const[t]=Cc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(dj),i=D.useCallback((e,n)=>{t.update(()=>{const t=so();Wr(t)&&ol(t,{color:e})},n),t.dispatchCommand(Lj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return YI.jsx(uw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(Qj,{variant:"text",size:"small",endIcon:YI.jsx(xI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:YI.jsx(Q_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),YI.jsx(hj,{anchorEl:n,children:YI.jsx(qj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};Ej(Cj,"Export");const Zj=({compact:e=!1,fonts:t=lj})=>{const[n]=Cc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(dj),a=D.useMemo(()=>t,[t]),s=D.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=so();Wr(e)&&ol(e,{"font-family":t||lj[0]}),n.dispatchCommand(Lj,{styleKey:"fontFamily",styleValue:t||lj[0]}),n.focus()})},[n]);return YI.jsx(uw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:YI.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),YI.jsx(hj,{anchorEl:r,children:YI.jsx(jw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>YI.jsx(vj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:YI.jsx(mj,{children:e})},e))})})]})})},eF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],tF=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,nF=e=>parseInt(e,10),rF=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=D.useCallback(()=>{const e=nF(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return YI.jsxs(gw,{direction:"row",children:[YI.jsx(Y_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),YI.jsx(Jb,{disabled:!nF(n),onClick:i,children:YI.jsx(ok,{height:12})})]})},oF=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Cc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(dj),a=tF(i.fontSize,t),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=D.useCallback(()=>{o(null)},[]),u=D.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=so();Wr(t)&&ol(t,{"font-size":e}),n.dispatchCommand(Lj,{styleKey:"fontSize",styleValue:e})})},[n]),c=D.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=D.useCallback(e=>{u(e)},[u]);return YI.jsx(uw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{startIcon:e?YI.jsx(mj,{children:a}):void 0,value:a,onClick:s,compact:e}),YI.jsxs(hj,{anchorEl:r,children:[YI.jsx(rF,{fontSize:a,onSelected:d}),YI.jsx(mw,{}),YI.jsx(jw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:eF.map(e=>YI.jsx(Ww,{"data-font-size":e,onClick:c,children:YI.jsx(mj,{children:tF(e,t)})},e))})]})]})})},iF=Ej(Cj,"InsertTable"),aF=()=>{const[e]=Cc(),t=D.useCallback(()=>{e.dispatchCommand(ID,void 0)},[e]);return YI.jsx(iF,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:YI.jsx(II,{height:12})})},sF=Ej(Tj,"Italic"),lF=()=>YI.jsx(sF,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:YI.jsx(jI,{height:12})}),uF=Ej(Cj,"InsertHyperlink"),cF=()=>{const[e]=Cc(),{blockFormat:t}=D.useContext(dj),n=D.useCallback(()=>{t.isLink?e.dispatchCommand(Eu,null):e.dispatchCommand(Eu,nD("https://"))},[e,t.isLink]);return YI.jsx(uF,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:YI.jsx(BI,{height:12})})};Ej(Cj,"Toggle");const dF=Ej(Tj,"Underline"),fF=()=>YI.jsx(dF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:YI.jsx(HI,{height:12})}),pF=()=>YI.jsx(mw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var hF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},mF={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"},InsertTable:{value:"Insert table",comment:"Label for toolbar menu option to insert a table. (tew 260205)"},InsertImage:{value:"Insert image",comment:"Label for toolbar menu option to insert an image. (tew 260205)"}},gF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},vF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},yF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},bF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},xF={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},_F={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},wF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},kF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},SF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},CF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},EF={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const TF={de:hF,es:gF,en:mF,fr:vF,it:yF,ja:bF,ko:xF,nl:_F,pl:wF,pt:kF,ru:SF,sv:CF,tr:EF,"de-de":hF,"es-es":gF,"en-us":mF,"fr-fr":vF,"it-it":yF,"ja-jp":bF,"ko-kr":xF,"nl-nl":_F,"pl-pl":wF,"pt-br":kF,"ru-ru":SF,"sv-se":CF,"tr-tr":EF,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function AF(e,t){return e.getEditorState().read(()=>{const e=Bi(t);return null!==e&&e.isSelected()})}function NF(e){const[t]=Cc(),[n,r]=D.useState(()=>AF(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(AF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,D.useCallback(n=>{t.update(()=>{let t=so();Kr(t)||(t=oo(),Yi(t)),Kr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),D.useCallback(()=>{t.update(()=>{const e=so();Kr(e)&&e.clear()})},[t])]}var LF,RF={};var MF=function(){if(LF)return RF;LF=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},RF.Color=u,RF}();async function OF(e,t){await async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,e=>{const{qHyperCubeDef:n}=e;if(n){const e=n.qMeasures?.filter(e=>{const n=t?.find(t=>t===e?.qDef?.cId);return!n});n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}})}function PF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function zF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var IF,DF;var jF=function(){if(DF)return IF;DF=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},IF=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},IF}();let FF=[];const BF=new jF.EventEmitter;BF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==FF.indexOf(t)},BF.setSelected=e=>{FF!==e&&(FF=e,BF.emit("change"))};function $F({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Cc(),s=Nd(),[l,u,c]=NF(n),d=D.useRef(null),[f,p]=D.useState(t);D.useEffect(()=>{p(t)},[t]);const h=D.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),m=D.useMemo(()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){const t=n.qMeasureInfo?.findIndex(t=>t.cId===e);if(void 0!==t&&-1!==t){const e=n?.qDataPages?.[0]?.qMatrix?.[0][t];if(1===e?.qAttrExps?.qValues?.length){const t=e.qAttrExps.qValues[0]?.qText;if(t){const n=new MF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>Gs(a.registerCommand(jt,e=>(a.update(()=>{const t=e,r=so();if(Wr(r)&&l){if(zF(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p(t=>({...t,...e}))}}else if(l&&Kr(r)&&zF(n,r)&&d.current){const e=PF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),a.registerCommand(Lj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&l){const t=so();if(zF(n,t)){const t=PF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),ci),a.registerCommand(Rj,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=so();if(zF(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}}),!1),ci),a.registerCommand(kt,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=so(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),BF.setSelected(e)}),!1),1)),[a,u,c,l,n,m]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&BF.setSelected([]))},[s,c,i]),D.useEffect(()=>{a.update(()=>{!function(e,t){const n=Bi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const g=D.useCallback(e=>{if(s){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update(()=>{const e=so();if(Kr(e)){const t=Bi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Lc.jsx("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e,children:m.value})}const HF="qlik.expression.node";class WF extends GD{__expressionId;static getType(){return HF}static clone(e){return new WF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new WF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:HF,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return Lc.jsx($F,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function UF(e){return e instanceof WF}const KF="ImageNode",GF=wt("INSERT_IMAGE_COMMAND"),VF=()=>{const e={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};return e.id()},YF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===KF)r.id||(r.id=VF()),t.add(r.id),r.tempUrlDef&&(n.add({id:r.id,url:{qStaticContentUrlDef:{qUrl:r.tempUrlDef}}}),delete r.tempUrl,delete r.tempUrlDef);else if("children"in r&&Array.isArray(r.children))for(const e of r.children)YF(e,t,n);return{imageIds:t,newPropertyImages:n}},qF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function JF(e,t,n){try{const r=await t.getProperties();if(r.text=JSON.stringify(e),n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const{images:t,jsonData:n}=((e,t)=>{const n=e,r=t.images||[];let o=new Set;if(n.root){const e=YF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],a=new Set;return r.forEach(e=>{o.has(e.id)&&!a.has(e.id)&&(a.add(e.id),i.push(e))}),{images:i,jsonData:n}})(e,r);r.images=t,r.text=JSON.stringify(n)}await t.setProperties(r)}catch(e){console.error(e)}}function QF(){const[e]=Cc(),t=Nd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&JF(e.getEditorState().toJSON(),r,i)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return o?.on("saveDocument",t),o?.on("reloadData",n),()=>{o?.removeListener("saveDocument",t),o?.removeListener("reloadData",n)}},[o,r]),D.useEffect(()=>{e.setEditable(n)},[n]),D.useEffect(()=>{t&&e.focus()},[t,e]),null}class XF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Bi(e);if(UF(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex(e=>n.getExpressionId()===e);-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function ZF(){const{layout:e,emitter:t}=D.useContext(B),[n]=Cc(),r=D.useRef(new XF),o=Nd();return D.useEffect(()=>{const e=n.registerMutationListener(WF,e=>{n.getEditorState().read(()=>{for(const[t,n]of e)r.current.update(t,n)})});return()=>{e()}},[n]),D.useEffect(()=>{e&&n.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=da(WF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=so(),{cId:t}=n[n.length-1],r=new WF(t,{}),o=Mr(" "),i=Mr("");Wr(e)?e.insertNodes([i,r,o]):yl(r)}}})},[e,n]),D.useEffect(()=>n.registerCommand($t,e=>("Backspace"===e.key&&n.update(()=>{const e=so();Kr(e)&&e.getNodes().forEach(e=>{UF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[n]),D.useEffect(()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[o,t]),null}const eB=/"/g;function tB(){const{model:e,emitter:t}=D.useContext(B),[n]=Cc(),r=D.useRef(new Map);return D.useEffect(()=>{const o=n.registerMutationListener(kr,e=>{e.forEach((e,t)=>{if("destroyed"===e)r.current.delete(t);else{const e=n.getElementByKey(t)?.style.fontFamily;e&&r.current.set(t,e)}})});async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map(e=>e.replace(eB,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function nB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rB,oB="top",iB="top-right",aB="right",sB="bottom-right",lB="bottom",uB="bottom-left",cB="left",dB="top-left";nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB={},"equal-equal",[oB,lB]),"equal-higher",[lB,sB]),"equal-lower",[oB,iB]),"equal-void",[oB,lB]),"higher-equal",[cB,uB,oB,iB]),"higher-higher-acute",[lB,uB,cB,iB]),"higher-higher-obtuse",[lB,oB]),"higher-lower-negative",[oB,iB,aB]),"higher-lower-positive",[lB,uB,cB]),"higher-void",[oB]),nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB,"lower-equal",[oB]),"lower-higher-negative",[oB,dB]),"lower-higher-positive",[sB]),"lower-lower-acute",[oB,dB,cB,iB,aB]),"lower-lower-obtuse",[oB,lB]),"lower-void",[oB]),"void-equal",[oB]),"void-higher",[oB,lB]),"void-lower",[oB,lB,cB]),"void-void",[oB]),nB(rB,"unclassified",[oB,lB,aB,cB,iB,sB,uB,dB]);var fB,pB,hB=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],mB=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var gB=function(){if(pB)return fB;pB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return fB=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},fB}();function vB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(gB);var xB=1/.7,_B="\\s*([+-]?\\d+)\\s*",wB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SB=/^#([0-9a-f]{3,8})$/,CB=new RegExp(`^rgb\\(${_B},${_B},${_B}\\)$`),EB=new RegExp(`^rgb\\(${kB},${kB},${kB}\\)$`),TB=new RegExp(`^rgba\\(${_B},${_B},${_B},${wB}\\)$`),AB=new RegExp(`^rgba\\(${kB},${kB},${kB},${wB}\\)$`),NB=new RegExp(`^hsl\\(${wB},${kB},${kB}\\)$`),LB=new RegExp(`^hsla\\(${wB},${kB},${kB},${wB}\\)$`),RB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function MB(){return this.rgb().formatHex()}function OB(){return this.rgb().formatRgb()}function PB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zB(t):3===n?new FB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?IB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?IB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=CB.exec(e))?new FB(t[1],t[2],t[3],1):(t=EB.exec(e))?new FB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TB.exec(e))?IB(t[1],t[2],t[3],t[4]):(t=AB.exec(e))?IB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NB.exec(e))?KB(t[1],t[2]/100,t[3]/100,1):(t=LB.exec(e))?KB(t[1],t[2]/100,t[3]/100,t[4]):RB.hasOwnProperty(e)?zB(RB[e]):"transparent"===e?new FB(NaN,NaN,NaN,0):null}function zB(e){return new FB(e>>16&255,e>>8&255,255&e,1)}function IB(e,t,n,r){return r<=0&&(e=t=n=NaN),new FB(e,t,n,r)}function DB(e){return e instanceof bB||(e=PB(e)),e?new FB((e=e.rgb()).r,e.g,e.b,e.opacity):new FB}function jB(e,t,n,r){return 1===arguments.length?DB(e):new FB(e,t,n,null==r?1:r)}function FB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function BB(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}`}function $B(){const e=HB(this.opacity);return`${1===e?"rgb(":"rgba("}${WB(this.r)}, ${WB(this.g)}, ${WB(this.b)}${1===e?")":`, ${e})`}`}function HB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function WB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UB(e){return((e=WB(e))<16?"0":"")+e.toString(16)}function KB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new VB(e,t,n,r)}function GB(e){if(e instanceof VB)return new VB(e.h,e.s,e.l,e.opacity);if(e instanceof bB||(e=PB(e)),!e)return new VB;if(e instanceof VB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new VB(a,s,l,e.opacity)}function VB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function YB(e){return(e=(e||0)%360)<0?e+360:e}function qB(e){return Math.max(0,Math.min(1,e||0))}function JB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vB(bB,PB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MB,formatHex:MB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return GB(this).formatHsl()},formatRgb:OB,toString:OB}),vB(FB,jB,yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new FB(WB(this.r),WB(this.g),WB(this.b),HB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BB,formatHex:BB,formatHex8:function(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}${UB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$B,toString:$B})),vB(VB,function(e,t,n,r){return 1===arguments.length?GB(e):new VB(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new VB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new VB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new FB(JB(e>=240?e-240:e+120,o,r),JB(e,o,r),JB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new VB(YB(this.h),qB(this.s),qB(this.l),HB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HB(this.opacity);return`${1===e?"hsl(":"hsla("}${YB(this.h)}, ${100*qB(this.s)}%, ${100*qB(this.l)}%${1===e?")":`, ${e})`}`}}));const QB=Math.PI/180,XB=180/Math.PI,ZB=4/29,e$=6/29,t$=3*e$*e$;function n$(e){if(e instanceof r$)return new r$(e.l,e.a,e.b,e.opacity);if(e instanceof l$)return u$(e);e instanceof FB||(e=DB(e));var t,n,r=s$(e.r),o=s$(e.g),i=s$(e.b),a=o$((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=o$((.4360747*r+.3850649*o+.1430804*i)/.96422),n=o$((.0139322*r+.0971045*o+.7141733*i)/.82521)),new r$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function r$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function o$(e){return e>.008856451679035631?Math.pow(e,1/3):e/t$+ZB}function i$(e){return e>e$?e*e*e:t$*(e-ZB)}function a$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function s$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function l$(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function u$(e){if(isNaN(e.h))return new r$(e.l,0,0,e.opacity);var t=e.h*QB;return new r$(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vB(r$,function(e,t,n,r){return 1===arguments.length?n$(e):new r$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new r$(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new r$(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new FB(a$(3.1338561*(t=.96422*i$(t))-1.6168667*(e=1*i$(e))-.4906146*(n=.82521*i$(n))),a$(-.9787684*t+1.9161415*e+.033454*n),a$(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vB(l$,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof l$)return new l$(e.h,e.c,e.l,e.opacity);if(e instanceof r$||(e=n$(e)),0===e.a&&0===e.b)return new l$(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*XB;return new l$(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new l$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new l$(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new l$(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return u$(this).rgb()}}));var c$=e=>()=>e;function d$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):c$(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?d$:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):c$(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jB(e)).r,(t=jB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=d$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var f$,p$="center",h$="bottom";function m$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function g$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y$)):void 0===t&&(t=v$);for(var n,r,o,i,a,s=new _$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new _$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(x$)}function v$(e){return e.children}function y$(e){return Array.isArray(e)?e[1]:null}function b$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function x$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:p$},{key:"DataRangeIncludingZero",alignment:h$},{key:"LimitedData",alignment:h$},{key:"NegativeOrZeroValues",alignment:h$}].reduce(function(e,t){return e[t.key]=t,e},{}),_$.prototype=g$.prototype={constructor:_$,count:function(){return this.eachAfter(m$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return g$(this).eachBefore(b$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},f$=function(e){
108
+ */function gL(){if(fL)return ZE;fL=1,Object.defineProperty(ZE,"__esModule",{value:!0}),ZE.default=function(t){return(0,e.createStyles)(t)};var e=mL;return ZE}var vL,yL,bL={},xL={};function _L(){if(vL)return xL;vL=1;var e=uy();Object.defineProperty(xL,"__esModule",{value:!0}),xL.default=void 0;var t=(0,e(qE()).default)();return xL.default=t,xL}function wL(){if(yL)return bL;yL=1;var e=uy();Object.defineProperty(bL,"__esModule",{value:!0}),bL.default=void 0;var t=e(By()),n=mL,r=e(_L());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return bL.default=o,bL}var kL,SL,CL={},EL={};function TL(){if(kL)return EL;kL=1;var e=uy();Object.defineProperty(EL,"__esModule",{value:!0}),EL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},EL.getUnit=n,EL.toUnitless=r,EL.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},EL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},EL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},EL.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(dS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return EL}function AL(){if(SL)return CL;SL=1;var e=uy();Object.defineProperty(CL,"__esModule",{value:!0}),CL.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),p};var t=e(By()),n=eS,r=TL();return CL}var NL,LL={};function RL(){if(NL)return LL;NL=1;var e=uy();Object.defineProperty(LL,"__esModule",{value:!0}),LL.default=void 0;var t=e(By()),n=mL,r=e(_L()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return LL.default=o,LL}var ML,OL={};function PL(){if(ML)return OL;ML=1;var e=uy();Object.defineProperty(OL,"__esModule",{value:!0}),OL.default=function(){return(0,t.useTheme)()||n.default};var t=mL;e(C());var n=e(_L());return OL}var zL,IL={};function DL(){if(zL)return IL;zL=1;var e=uy();Object.defineProperty(IL,"__esModule",{value:!0}),IL.default=void 0;var t=e(By()),n=mL,r=e(_L());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return IL.default=o,IL}var jL,FL,BL={};function $L(){if(jL)return BL;jL=1;var e=uy();Object.defineProperty(BL,"__esModule",{value:!0}),BL.default=void 0;var t=mL,n=e(_L()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return BL.default=r,BL}function HL(){return FL||(FL=1,function(e){var t=uy(),n=(Rk||(Rk=1,function(e){var t=zk().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ok)),Ok.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=tS();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(qE()),a=t(XE()),s=t(gL()),l=t(wL()),u=t(AL()),c=t(RL()),d=UE();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var f=t(PL()),p=t(DL()),h=t($L()),m=mL}(Mk)),Mk}var WL=HL();WL.alpha(ak.GREYSCALE_0,.05),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5),WL.alpha(ak.GREEN_PALE,.5),WL.alpha(ak.BLUE_PALE,.5);const UL=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),KL=D.forwardRef(UL);var GL=Object.defineProperty,VL=(e,t)=>{for(var n in t)GL(e,n,{get:t[n],enumerable:!0})},YL=(e,t,n)=>((e,t,n)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),qL={};VL(qL,{af:()=>nR,ak:()=>rR,am:()=>oR,an:()=>iR,ar:()=>aR,ars:()=>sR,as:()=>lR,asa:()=>uR,ast:()=>cR,az:()=>dR,bal:()=>fR,be:()=>pR,bem:()=>hR,bez:()=>mR,bg:()=>gR,bho:()=>vR,blo:()=>yR,bm:()=>bR,bn:()=>xR,bo:()=>_R,br:()=>wR,brx:()=>kR,bs:()=>SR,ca:()=>CR,ce:()=>ER,ceb:()=>TR,cgg:()=>AR,chr:()=>NR,ckb:()=>LR,cs:()=>RR,cy:()=>MR,da:()=>OR,de:()=>PR,doi:()=>zR,dsb:()=>IR,dv:()=>DR,dz:()=>jR,ee:()=>FR,el:()=>BR,en:()=>$R,eo:()=>HR,es:()=>WR,et:()=>UR,eu:()=>KR,fa:()=>GR,ff:()=>VR,fi:()=>YR,fil:()=>qR,fo:()=>JR,fr:()=>QR,fur:()=>XR,fy:()=>ZR,ga:()=>eM,gd:()=>tM,gl:()=>nM,gsw:()=>rM,gu:()=>oM,guw:()=>iM,gv:()=>aM,ha:()=>sM,haw:()=>lM,he:()=>uM,hi:()=>cM,hnj:()=>dM,hr:()=>fM,hsb:()=>pM,hu:()=>hM,hy:()=>mM,ia:()=>gM,id:()=>vM,ig:()=>yM,ii:()=>bM,io:()=>xM,is:()=>_M,it:()=>wM,iu:()=>kM,ja:()=>SM,jbo:()=>CM,jgo:()=>EM,jmc:()=>TM,jv:()=>AM,jw:()=>NM,ka:()=>LM,kab:()=>RM,kaj:()=>MM,kcg:()=>OM,kde:()=>PM,kea:()=>zM,kk:()=>IM,kkj:()=>DM,kl:()=>jM,km:()=>FM,kn:()=>BM,ko:()=>$M,ks:()=>HM,ksb:()=>WM,ksh:()=>UM,ku:()=>KM,kw:()=>GM,ky:()=>VM,lag:()=>YM,lb:()=>qM,lg:()=>JM,lij:()=>QM,lkt:()=>XM,ln:()=>ZM,lo:()=>eO,lt:()=>tO,lv:()=>nO,mas:()=>rO,mg:()=>oO,mgo:()=>iO,mk:()=>aO,ml:()=>sO,mn:()=>lO,mo:()=>uO,mr:()=>cO,ms:()=>dO,mt:()=>fO,my:()=>pO,nah:()=>hO,naq:()=>mO,nb:()=>gO,nd:()=>vO,ne:()=>yO,nl:()=>bO,nn:()=>xO,nnh:()=>_O,no:()=>wO,nqo:()=>kO,nr:()=>SO,nso:()=>CO,ny:()=>EO,nyn:()=>TO,om:()=>AO,or:()=>NO,os:()=>LO,osa:()=>RO,pa:()=>MO,pap:()=>OO,pcm:()=>PO,pl:()=>zO,prg:()=>IO,ps:()=>DO,pt:()=>jO,pt_PT:()=>FO,rm:()=>BO,ro:()=>$O,rof:()=>HO,ru:()=>WO,rwk:()=>UO,sah:()=>KO,saq:()=>GO,sat:()=>VO,sc:()=>YO,scn:()=>qO,sd:()=>JO,sdh:()=>QO,se:()=>XO,seh:()=>ZO,ses:()=>eP,sg:()=>tP,sh:()=>nP,shi:()=>rP,si:()=>oP,sk:()=>iP,sl:()=>aP,sma:()=>sP,smi:()=>lP,smj:()=>uP,smn:()=>cP,sms:()=>dP,sn:()=>fP,so:()=>pP,sq:()=>hP,sr:()=>mP,ss:()=>gP,ssy:()=>vP,st:()=>yP,su:()=>bP,sv:()=>xP,sw:()=>_P,syr:()=>wP,ta:()=>kP,te:()=>SP,teo:()=>CP,th:()=>EP,ti:()=>TP,tig:()=>AP,tk:()=>NP,tl:()=>LP,tn:()=>RP,to:()=>MP,tpi:()=>OP,tr:()=>PP,ts:()=>zP,tzm:()=>IP,ug:()=>DP,uk:()=>jP,und:()=>FP,ur:()=>BP,uz:()=>$P,ve:()=>HP,vec:()=>WP,vi:()=>UP,vo:()=>KP,vun:()=>GP,wa:()=>VP,wae:()=>YP,wo:()=>qP,xh:()=>JP,xog:()=>QP,yi:()=>XP,yo:()=>ZP,yue:()=>ez,zh:()=>tz,zu:()=>nz});var JL=(e,t)=>t?"other":1==e?"one":"other",QL=(e,t)=>t?"other":0==e||1==e?"one":"other",XL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ZL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},eR=(e,t)=>"other",tR=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",nR=JL,rR=QL,oR=XL,iR=JL,aR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},sR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},lR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",uR=JL,cR=ZL,dR=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},fR=(e,t)=>1==e?"one":"other",pR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},hR=JL,mR=JL,gR=JL,vR=QL,yR=(e,t)=>{const n=String(e).split(".")[0];return t?0==n?"zero":1==n?"one":2==n||3==n||4==n||5==n||6==n?"few":"other":0==e?"zero":1==e?"one":"other"},bR=eR,xR=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",_R=eR,wR=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},kR=JL,SR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},CR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},ER=JL,TR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},AR=JL,NR=JL,LR=JL,RR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},MR=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",OR=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},PR=ZL,zR=XL,IR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},DR=JL,jR=eR,FR=JL,BR=JL,$R=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},HR=JL,WR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},UR=ZL,KR=JL,GR=XL,VR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",YR=ZL,qR=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},JR=JL,QR=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},XR=JL,ZR=ZL,eM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},tM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},nM=ZL,rM=JL,oM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",iM=QL,aM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},sM=JL,lM=JL,uM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},cM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",dM=eR,fM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},pM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},hM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",mM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",gM=ZL,vM=eR,yM=eR,bM=eR,xM=ZL,_M=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),s=r.slice(-2);return t?"other":i&&1==a&&11!=s||o%10==1&&o%100!=11?"one":"other"},wM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},kM=tR,SM=eR,CM=eR,EM=JL,TM=JL,AM=eR,NM=eR,LM=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},RM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",MM=JL,OM=JL,PM=eR,zM=eR,IM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},DM=JL,jM=JL,FM=eR,BM=XL,$M=eR,HM=JL,WM=JL,UM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",KM=JL,GM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),s=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},VM=JL,YM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},qM=JL,JM=JL,QM=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},XM=eR,ZM=QL,eO=(e,t)=>t&&1==e?"one":"other",tO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},nO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},rO=JL,oO=QL,iO=JL,aO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":i&&1==a&&11!=s||1==l&&11!=u?"one":"other"},sO=JL,lO=JL,uO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},cO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",dO=(e,t)=>t&&1==e?"one":"other",fO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pO=eR,hO=JL,mO=tR,gO=JL,vO=JL,yO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},bO=ZL,xO=JL,_O=JL,wO=JL,kO=eR,SO=JL,CO=QL,EO=JL,TO=JL,AO=JL,NO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},LO=JL,RO=eR,MO=QL,OO=JL,PO=XL,zO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},IO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},DO=JL,jO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},FO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},BO=JL,$O=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},HO=JL,WO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},UO=JL,KO=eR,GO=JL,VO=tR,YO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},qO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},JO=JL,QO=JL,XO=tR,ZO=JL,eP=eR,tP=eR,nP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},rP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},oP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},iP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},aP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},sP=tR,lP=tR,uP=tR,cP=tR,dP=tR,fP=JL,pP=JL,hP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},mP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},gP=JL,vP=JL,yP=JL,bP=eR,xP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},_P=ZL,wP=JL,kP=JL,SP=JL,CP=JL,EP=eR,TP=QL,AP=JL,NP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},LP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},RP=JL,MP=eR,OP=eR,PP=JL,zP=JL,IP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},DP=JL,jP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=s?"few":"other":o&&1==l&&11!=u?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},FP=eR,BP=ZL,$P=JL,HP=JL,WP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},UP=(e,t)=>t&&1==e?"one":"other",KP=JL,GP=JL,VP=QL,YP=JL,qP=eR,JP=JL,QP=JL,XP=ZL,ZP=eR,ez=eR,tz=eR,nz=XL,rz={},oz=Array.prototype.slice,iz=function(e){return("0"+e.toString()).substr(-2)},az=function(e){var t=typeof e;return"function"===t||"object"===t},sz=function(e){return"function"===typeof e},lz=function(e){return null!=e},uz=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},cz=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},dz=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},fz=function(e){return!0===e||!1===e},pz=function(e){return null===e},hz=function(e,t,n){return void 0===n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},mz=function(e,t){return sz(e)?e(t):e},gz=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],cz(r)||dz(r)||fz(r)||uz(r)||pz(r)?e[n]=r:(null==e[n]&&(e[n]={}),gz(e[n],r)));return e},vz={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},yz={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},bz={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},xz={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},_z=[null,"kb","mb","gb","tb"],wz={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};rz.reset=function(){var e;for(e in wz)this[e]=wz[e]},rz.initializeOptions=function(){var e;for(e in wz)lz(this[e])||(this[e]=wz[e])},rz.initializeOptions(),rz.locales={},rz.locales.get=function(e){var t=this[e]||this[rz.locale]||this.default;return sz(t)&&(t=t(e)),!1===uz(t)&&(t=[t]),t},rz.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&rz.locale&&t.push(rz.locale),rz.fallbacks&&rz.defaultLocale&&t.push(rz.defaultLocale),t.forEach(function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),rz.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},rz.pluralization={},rz.pluralization.get=function(e){return this[e]||this[rz.locale]||this.default},rz.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},rz.currentLocale=function(){return this.locale||this.defaultLocale},rz.isSet=lz,rz.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(lz(t.defaultValue))return mz(t.defaultValue,e)},rz.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&az(n))for(;i.length;)if(r=i.shift(),lz(n[r])){o=n[r];break}return o},rz.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,s=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);s.length;)if(r=s.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],az(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&lz(n.defaultValue)&&(a=az(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},rz.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:vz.meridian},rz.prepareOptions=function(){for(var e,t=oz.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(lz(n[r])||(n[r]=e[r]));return n},rz.createTranslationOptions=function(e,t){var n=[{scope:e}];return lz(t.defaults)&&(n=n.concat(t.defaults)),lz(t.defaultValue)&&n.push({message:t.defaultValue}),n},rz.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some(function(t){if(lz(t.scope)?(o=t.scope,n=this.lookup(o,i)):lz(t.message)&&(n=mz(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):uz(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):az(n)&&lz(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},rz.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=lz(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},rz.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},rz.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,function(e,t,n){return t+" "+n.toLowerCase()})}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},rz.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},rz.nullPlaceholder=function(){return rz.missingPlaceholder.apply(rz,arguments)},rz.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),yz);var n,r,o=e<0,i=function(e,t){return hz("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),s=[],l=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)s.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=s.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},rz.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),bz),this.toNumber(e,t)},rz.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},rz.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},rz.strftime=function(e,t,n){n=this.lookup("date",n);var r=rz.meridian();if(n||(n={}),n=this.prepareOptions(n,vz),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),s=e.getMonth()+1,l=e.getHours(),u=l,c=l>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[s])).replace("%B",n.month_names[s])).replace("%d",iz(i))).replace("%e",i)).replace("%-d",i)).replace("%H",iz(l))).replace("%-H",l)).replace("%k",l)).replace("%I",iz(u))).replace("%-I",u)).replace("%l",u)).replace("%m",iz(s))).replace("%-m",s)).replace("%M",iz(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",iz(d))).replace("%-S",d)).replace("%w",o)).replace("%y",iz(a))).replace("%-y",iz(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},rz.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},rz.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),xz),this.toNumber(e,t)},rz.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+_z[a],t),n=this.t(o),r=i-Math.floor(i)===0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},rz.getFullScope=function(e,t){return t=t||{},uz(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},rz.extend=function(e,t){return void 0===e&&void 0===t?{}:gz(e,t)},rz.t=rz.translate.bind(rz),rz.l=rz.localize.bind(rz),rz.p=rz.pluralize.bind(rz);VL({},{DEFAULT_LANGUAGE:()=>Sz,DEFAULT_LANGUAGE_SHORT:()=>Cz,flattenParams:()=>Pz,flattenTranslationsJSON:()=>Az,format:()=>zz,formatWithKeys:()=>Iz,getLongLanguageDesc:()=>Oz,getShortLanguageDesc:()=>Mz,parseLangFromUrl:()=>Nz,resolveLocale:()=>Rz,updateLangAttribute:()=>Dz});var kz=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],Sz="en-US",Cz="en",Ez=["zh-cn","zh-tw","qps-ploc"],Tz=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Az=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),Tz(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=Tz(r)&&r.value;return o&&(t[n]=o),t},{}):{}),Nz=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},Lz=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(Ez.includes(e.toLocaleLowerCase()))return kz.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return kz.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},Rz=(...e)=>{for(const t of e){const e=Lz(t);if(e)return e.short}},Mz=e=>{const t=Lz(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${Cz}'`),Cz)},Oz=e=>{const t=Lz(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${Sz}'`),Sz)},Pz=e=>Array.isArray(e[0])?e[0]:e,zz=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e)},Iz=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),Dz=e=>{const t=Mz(e);document.documentElement.setAttribute("lang",t)},jz=class e{static configure(t,n=Sz){e.translations=t,e.language=Oz(n),e.languageShort=Mz(n),Dz(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=rz,rz.missingTranslation=e=>e,rz.defaultSeparator=null,rz.locale=e.language,rz.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];rz.pluralization[e.language]=e=>{try{const t=qL[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=Iz(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,{count:n,...r})}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach(e=>{e()})}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};YL(jz,"translations",{}),YL(jz,"translationsPlurals",{}),YL(jz,"language"),YL(jz,"languageShort"),YL(jz,"onTranslationsChangeListeners",[]),YL(jz,"i18nProvider"),YL(jz,"get",(e,...t)=>{var n;const r=Pz(t);let o=null!=(n=jz.translations[e])?n:e;return r.length>0&&(o=zz(o,...r)),o});var Fz=jz;var Bz=function(){const[e,t]=D.useState(0);return D.useEffect(()=>{const n=Fz.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),Fz.get},$z=Fz;function Hz({defaultSelection:e}){const[t]=Cc();return D.useEffect(()=>{t.focus(()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}function Wz(e,t=!0){if(e)return!1;let n=Gi().getTextContent();return t&&(n=n.trim()),""===n}function Uz(e){return()=>function(e){if(!Wz(e,!1))return!1;const t=Gi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Xo(n))return!1;if(qo(n)){if(!ui(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Or(t[e]))return!1}}return!0}(e)}const Kz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Gz({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:m,role:g="textbox",spellCheck:v=!0,style:y,tabIndex:b,"data-testid":x,..._},w){const[k,S]=D.useState(e.isEditable()),C=D.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),E=D.useMemo(()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(w,C),[C,w]);return Kz(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Lc.jsx("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===g?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":k?d:void 0,"aria-readonly":!k||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:k,"data-testid":x,id:m,ref:E,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const Vz=D.forwardRef(Gz);function Yz(e){return e.getEditorState().read(Uz(e.isComposing()))}const qz=D.forwardRef(Jz);function Jz(e,t){const{placeholder:n,...r}=e,[o]=Cc();return Lc.jsxs(Lc.Fragment,{children:[Lc.jsx(Vz,{editor:o,...r,ref:t}),null!=n&&Lc.jsx(Qz,{editor:o,content:n})]})}function Qz({content:e,editor:t}){const n=function(e){const[t,n]=D.useState(()=>Yz(e));return Kz(()=>{function t(){const t=Yz(e);n(t)}return t(),Gs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=D.useState(t.isEditable());if(D.useLayoutEffect(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:Lc.jsx("div",{"aria-hidden":!0,children:i})}const Xz=D.createContext(null),Zz={didCatch:!1,error:null};class eI extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Zz}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Zz))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Zz))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=D.createElement(n,e);else{if(void 0===r)throw i;a=r}}return D.createElement(Xz.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function tI({children:e,onError:t}){return Lc.jsx(eI,{fallback:Lc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const nI={name:"@lexical/react/ReactProvider"};function rI(e){throw new Error(e)}const oI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function iI({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState(()=>e.getDecorators());return oI(()=>e.registerDecoratorListener(e=>{ab.flushSync(()=>{r(e)})}),[e]),D.useEffect(()=>{r(e.getDecorators())},[e]),D.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Lc.jsx(t,{onError:t=>e._onError(t),children:Lc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(ab.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function aI({editor:e,ErrorBoundary:t}){return function(e){const t=fu.maybeFromEditor(e);if(t&&t.hasExtensionByName(nI.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&rI(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:Lc.jsx(iI,{editor:e,ErrorBoundary:t})}function sI(e){return e.getEditorState().read(Uz(e.isComposing()))}function lI(e){oI(()=>Gs(Sd(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,a,s]=t;e.update(()=>{const e=so();if(Wr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Or(l)&&r>=0&&o>=0&&(u=r,c=r+o,e.setTextNodeRange(l,u,l,c)),u===c&&""===i||(e.insertRawText(i),l=t.getNode()),Or(l)){u=a,c=a+s;const t=l.getTextContentSize();u=u>t?t:u,c=c>t?t:c,e.setTextNodeRange(l,u,l,c)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)),[e])}function uI({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Cc();return lI(r),Lc.jsxs(Lc.Fragment,{children:[e,Lc.jsx(cI,{content:t}),Lc.jsx(aI,{editor:r,ErrorBoundary:n})]})}function cI({content:e}){const[t]=Cc(),n=function(e){const[t,n]=D.useState(()=>sI(e));return oI(()=>{function t(){const t=sI(e);n(t)}return t(),Gs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Nd();return n?"function"==typeof e?e(r):e:null}const dI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),fI=D.forwardRef(dI),pI=(e,t)=>Lc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Lc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Lc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),hI=D.forwardRef(pI),mI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),gI=D.forwardRef(mI),vI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),yI=D.forwardRef(vI),bI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),xI=D.forwardRef(bI),_I=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M2.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 12H7v-1h9zM2.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 5H7V4h9z"})}),wI=D.forwardRef(_I),kI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),SI=D.forwardRef(kI),CI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M2.05 9q.372 0 .72.09.349.089.623.274.273.186.436.468t.163.66a1.38 1.38 0 0 1-.284.86 2.3 2.3 0 0 1-.304.333l-.174.155-.18.152-1.243 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.195-.235a.7.7 0 0 0 .122-.399.54.54 0 0 0-.182-.422.7.7 0 0 0-.486-.163.7.7 0 0 0-.52.204.83.83 0 0 0-.217.406l-.022.127L0 10.568l.031-.18q.06-.263.193-.48a1.8 1.8 0 0 1 .452-.492 2 2 0 0 1 .626-.31Q1.655 9 2.05 9M16 12H6v-1h10zM3 7H1.697V3.328l-1.022.72L0 3.208 1.807 2H3zm13-2H6V4h10z"})}),EI=D.forwardRef(CI),TI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),AI=D.forwardRef(TI),NI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{fillRule:"evenodd",d:"M12.483 4.4c0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9H3V1h6.466c1.666 0 3.017 1.522 3.017 3.4m-6.897 2h2.91a1.6 1.6 0 0 0 0-3.2h-2.91zm0 6.4h3.1a1.9 1.9 0 0 0 0-3.8h-3.1z",clipRule:"evenodd"})}),LI=D.forwardRef(NI),RI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),MI=D.forwardRef(RI),OI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),PI=D.forwardRef(OI),zI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),II=D.forwardRef(zI),DI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M7.041 14.855A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255z"})}),jI=D.forwardRef(DI),FI=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),BI=D.forwardRef(FI),$I=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),HI=D.forwardRef($I);var WI,UI,KI={exports:{}},GI={};function VI(e){return VI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VI(e)}var YI=(UI||(UI=1,KI.exports=function(){if(WI)return GI;WI=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return GI.Fragment=n,GI.jsx=a,GI.jsxs=a,GI}()),KI.exports);const qI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,JI=[e=>{const t=qI.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)];function QI(){return YI.jsx(Ed,{matchers:JI})}const XI=()=>{const[e]=Cc(),t=Nd(),n=D.useCallback(n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read(()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)})},[t,e]);return D.useEffect(()=>Gs(e.registerMutationListener(gu,e=>{n(e)}),e.registerMutationListener(ku,e=>{n(e)}),e.registerCommand(Ct,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=so();let t;if(Wr(e)&&(t=e.focus.getNode().getParent()),Kr(e)&&(t=e.getNodes()[0]),Cu(t)||wu(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),ci)),[e,n]),null};function ZI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?tl(n)?r:o:tl(t)?r:o}const eD=new Set(["http:","https:","mailto:","sms:","tel:"]),tD=e=>{const t=e;return t.password="",t.username="",t};function nD(e){try{const t=new URL(e);return eD.has(t.protocol)?{url:tD(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const rD=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function oD(e){return"https://"===e||rD.test(e)}const iD=Zy(gw)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),aD=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=D.useRef(null),[a,s]=D.useState(t);D.useEffect(()=>{s(t)},[t]);const l=D.useCallback(()=>{n(a),window.open(nD(a).url,"_blank"),r()},[a,r,n]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=D.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return YI.jsx(O_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>YI.jsx(_w,{...e,children:YI.jsx(Tb,{className:"tekPopperMenu",children:YI.jsxs(iD,{direction:"row",children:[YI.jsx(Y_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),YI.jsx(Jb,{onClick:l,children:YI.jsx(nk,{})}),YI.jsx(Jb,{onClick:u,children:YI.jsx(ok,{})})]})})})})},sD=()=>{const[e]=Cc(),t=Nd(),[n,r]=D.useState(null),[o,i]=D.useState(""),a=D.useRef(!1),s=D.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=so();if(Wr(t)){const n=ZI(t),o=n.getParent();if(Cu(o)||Cu(n))return r(null),i(""),!1;let a;if(wu(o)&&(a=o),wu(n)&&(a=n),wu(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=D.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(Eu,nD(t))},{onUpdate:()=>{r(null)}})},[e]),u=D.useCallback(()=>{r(null)},[]);return D.useEffect(()=>Gs(e.registerCommand(kt,()=>s(),1),e.registerCommand(Ct,()=>s(),1)),[e,s]),t?YI.jsx(aD,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function lD(){return YI.jsx(ik,{validateUrl:oD})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const uD=({children:e})=>YI.jsx(tb,{theme:Nk(),children:e}),cD={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"},image:"tek__image"},nodes:[md,fd,dc,ac,gu,ku],onError:e=>{console.log(e)}},dD=({children:e,initialConfig:t,flags:n})=>YI.jsx(uD,{children:YI.jsx("div",{className:"tek__editor__Wrapper",children:YI.jsx(Pc,{initialConfig:t||cD,children:YI.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,YI.jsx(Bc,{}),YI.jsx($c,{}),YI.jsx(lD,{}),YI.jsx(QI,{}),YI.jsx(sD,{}),YI.jsx(XI,{}),YI.jsx(Fc,{})]})})})});let fD=class e extends Yo{__hasBorders;static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const pD=e=>new fD(e),hD=e=>e instanceof fD;let mD=class e extends Yo{__needsUpdate;__hasBorders;__width;static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch{}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function gD(e){return e instanceof mD}let vD=class e extends Yo{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function yD(e){return e instanceof vD}const bD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),hD(t))return t;return null},xD=e=>{let t=e;for(;null!==t;){if(gD(t))return t;t=t?.getParent()}return null},_D=(e,t)=>{const n=xD(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},wD=e=>{const t=e?.getChildAtIndex(2);return t},kD=e=>{const t=e.getParent();if(yD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},SD=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,CD=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},ED=e=>e?e.getChildren().filter(e=>yD(e)):[],TD=e=>{let t=!1;return ED(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(li()),t=!0})}),t},AD=e=>{const t=so();if(Wr(t)||Kr(t)){const n=t.getNodes().filter(e=>hD(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>gD(e)),o=xD(n[0]),i=ED(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Wr(t)){const e=t.focus.getNode();if(gD(e))return TD(e)}return n.forEach(e=>{e.clear(),e.append(li())}),(()=>{const e=so();let t=!1;if(Wr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=xD(n);!o&&gD(r)&&(o=r),gD(o)&&(t=TD(o))}return t})()}if(Wr(t)){const e=t.focus.getNode();if(gD(e))return TD(e)}}return!1},ND=e=>{if(e){const t=xD(e);if(gD(t)){const n=e.getParent(),r=ED(t).findIndex(e=>e===n),o=n?.getChildren().findIndex(t=>t===e);return{i:r,j:o,tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},LD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),hD(t))return t;return null},RD=e=>{const t=[];return ED(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},MD=(e,t)=>{RD(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},OD=wt("UPDATE_COL_WIDTHS_COMMAND"),PD=wt("BEGIN_COL_RESIZE"),zD=wt("END_COL_RESIZE"),ID=wt("INSERT_TEK_TABLE_COMMAND"),DD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback(t=>{n(t,e)},[e,n]);return YI.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},jD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},FD=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,BD=({nodeKey:e,colWidths:t})=>{const[n]=Cc(),r=Nd(),[o,i]=D.useState(null),a=D.useRef(null),s=D.useRef(null),l=D.useRef(null),u=D.useRef(null),c=D.useCallback(t=>{const n=Bi(e);if(n){const e=n.getParent();if(gD(e)){const n=wD(e);if("TekRowNode"===n?.getType()){const e=n.getChildren(),r=[];let o=0;e.forEach((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})}),i(r)}}}},[e]),d=D.useCallback(e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:s,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=CD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=CD(e,r),s=a.current.nxtColWidth-p,d=CD(s,r);if(s<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const s=a/t,l=Math.min(100*s,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=CD(e,d),s=CD(o,d);r.style.width=!n||p>0?a:s,r.querySelectorAll(":scope > colgroup col").forEach((e,n)=>{e.setAttribute("width",t[n])}),n||l.current&&(l.current.innerText=a)}}},[]),f=D.useCallback(()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",l.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(CD(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach((t,n)=>{t.setAttribute("width",e[n])}),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(zD,void 0)}a.current=null,s.current=null,n.update(()=>{const t=Bi(e),r=_D(t,n),a=t?.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),s=[];t.forEach(e=>{s.push(e.getAttribute("width")||"0")}),a.setWidth(r.style.width);let l=0;if(o){const e=o.map((e,t)=>{const n={...e};return l+=parseFloat(s[t]),n.startX=l,n});i(e)}n.dispatchCommand(OD,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=D.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=Bi(t),o=_D(r,n);if(hD(r)){const t=kD(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],s=r.length>t+1?r[t+1]:null,c=SD(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=SD(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=jD("tek__leftResizerIndicator","leftGripper");r.innerText=FD(e);let o=null;return t?(o=jD("tek__rightResizerIndicator","rightGripper"),o.innerText=FD(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=y.left,u.current=y.right,d.appendChild(y.left),y.right&&d.appendChild(y.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:s,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(PD,void 0)}}})},[n,d,f]);return D.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),YI.jsx(YI.Fragment,{children:o&&r?o.map(e=>YI.jsx(DD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},$D="TEK_TABLE_RESIZE_NODE";let HD=class e extends Qo{__colWidths;static getType(){return $D}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:$D,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return YI.jsx(BD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const WD=e=>e instanceof HD,UD=({nodeKey:e,colWidths:t})=>{const[n]=Cc(),[r,o]=D.useState(t);return D.useEffect(()=>{n.getEditorState().read(()=>{const t=Bi(e),n=t?.getParent();if(gD(n)){const e=n.getResizeNode();if(WD(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),YI.jsx(YI.Fragment,{children:r.map((t,n)=>YI.jsx("col",{span:1,width:t},`${e}.${n}`))})};class KD extends Qo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new KD(e.__colWidths,e.__key)}static importJSON(e){return new KD(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return YI.jsx(UD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class GD extends Qo{__formatStyle;constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const VD=[mD,fD,vD,KD,HD],YD=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=t?.getChildAtIndex(0),i=t?.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),t?.markNeedsUpdate()},qD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=bD(t);if(n){const e=kD(n),t=xD(n),r=ED(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),YD(o,t)}}},JD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=bD(t),r=xD(n);if(r&&3===r.getChildren().length)return Yi(null),void r.remove();if(n){const{row:e}=ND(n);Yi(null),e?.remove()}}},QD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t),r=wD(n);if(yD(r)&&n){const e=r.getChildren().length,t=new vD;for(let r=0;r<e;r++){const e=pD(n?.__hasBorders);e.append(li()),t.append(e)}n?.append(t)}}},XD=()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);if(gD(n)){const e=ED(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=pD(n.__hasBorders);o.append(li()),e[r].append(o),t=o}return YD(r,n),t}}return null},ZD=Zy(Jb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),ej=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Cc(),[o,i]=D.useState(null),a=Bz(),s=Boolean(o),l=D.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=D.useCallback(()=>{i(null)},[]),d=D.useCallback(e=>{l(e,QD,t)},[l,t]),f=D.useCallback(e=>{l(e,XD,t)},[l,t]),p=D.useCallback(t=>{l(t,JD,e)},[l,e]),h=D.useCallback(t=>{l(t,qD,e)},[l,e]),m=D.useCallback(()=>{r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);gD(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),g=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.anchor.getNode(),n=xD(t);n&&(n.toggleBorders(),RD(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return D.useEffect(()=>Gs(r.registerCommand(kt,()=>(i(null),!1),4)),[r]),YI.jsx(uw,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(ZD,{size:"small",onClick:u,children:YI.jsx(KL,{height:12})}),YI.jsx(O_,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:YI.jsx(Tb,{id:"tekTableMenu",className:"tekPopperMenu",children:YI.jsxs(jw,{dense:!0,children:[YI.jsx(Ww,{onClick:g,children:a("ToggleBorders")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:d,children:a("AddNewRow")}),YI.jsx(Ww,{onClick:f,children:a("AddNewColumn")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:p,children:a("DeleteRow")}),YI.jsx(Ww,{onClick:h,children:a("DeleteCol")}),YI.jsx(mw,{}),YI.jsx(Ww,{onClick:m,children:a("DeleteTable")})]})})})]})})},tj=()=>{const[e]=Cc(),t=Nd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(uh),l=D.useRef(null),u=D.useCallback(()=>{o||e.update(()=>{const t=so();if(Wr(t)){const n=bD(t.anchor.getNode());if(hD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);D.useEffect(()=>{const e=e=>{0!==e.buttons?null===l.current&&(l.current=setTimeout(()=>{i(!0),r(null)},300)):(i(!1),clearTimeout(l.current),l.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[]),D.useEffect(()=>Gs(e.registerCommand(kt,()=>(u(),!1),ci),e.registerCommand(PD,()=>(r(null),!0),4),e.registerCommand(zD,()=>(u(),!0),4)),[e,u]),D.useEffect(()=>{r(null)},[t]);const c=D.useCallback(()=>{r(null)},[]),d=D.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=D.useCallback(()=>{clearTimeout(l.current)},[]);return YI.jsx(O_,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:YI.jsx(ej,{onDeleteAction:c,onAction:d,onClick:f})})},nj=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Bi(n),r=e?.getParent();ei(r)&&null!==e&&t.push(e)}if(t.length>0){const e=li();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},rj=()=>{const[e]=Cc(),t=Nd();return D.useEffect(()=>Gs(e.registerMutationListener(fD,t=>{e.update(()=>{nj(t)})}),e.registerMutationListener(vD,t=>{e.update(()=>{nj(t)})}),e.registerMutationListener(mD,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Bi(e);if(gD(t)&&!t.isValid()){const e=li();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(ID,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new mD(!0,"100%"),n=new KD(e),r=new HD(e),o=[];for(let t=0;t<2;t++){const t=new vD;for(let n=0;n<e.length;n++){const e=pD(!0),n=li();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();yl(e)}),!0),ci),e.registerCommand(OD,({colWidths:e,nodeKey:t})=>{const n=Bi(t);if(WD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof KD})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Yt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=xD(t),r=LD(t);if(gD(n)){const e=li();e.append(Mr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=so();if(Wr(e)){const t=e.focus.getNode(),n=xD(t);if(gD(n)){const e=li();e.append(Mr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Jt,e=>AD(e),4),e.registerCommand(Xt,e=>AD(e),4),e.registerCommand(Zt,e=>{const t=so();if(Wr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),hD(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const s=o.getChildAtIndex(n+2+a);if(yD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(ND(o),!e.shiftKey),!0}return!1},ci),e.registerCommand(cn,e=>{const t=e?.target,n=so();if(t.classList.contains("tek__table")&&Wr(n)&&gD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Wr(n)){const t=n.getNodes().some(e=>hD(e)),r=n.getNodes().some(e=>gD(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),D.useEffect(()=>e.registerCommand(kt,()=>(t&&e.update(()=>{(e=>{const t=so(),n=[];if(da(mD).forEach(e=>{const t=RD(e);n.push(...t)}),Wr(t)){t.getNodes().filter(e=>gD(e)).forEach(t=>{MD(t,e)});const n=t.focus.getNode();if(gD(n))return void MD(n,e)}if(Wr(t)||Kr(t)){const r=new Set(t.getNodes().map(e=>LD(e)));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?o?.classList.add("tek__tekCellHighlight"):o?.classList.remove("tek__tekCellHighlight")}}})(e)},{tag:"history-merge"}),!1),4),[e,t]),D.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];da(mD).forEach(e=>{const n=RD(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},oj=()=>YI.jsxs(YI.Fragment,{children:[YI.jsx(rj,{}),YI.jsx(tj,{})]}),ij=()=>{const e=Nd(),t=Bz();return e?YI.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):YI.jsx("div",{className:"tek__editor__logo",children:YI.jsx(fI,{height:32})})},aj=({showPlaceholder:e})=>YI.jsxs("div",{style:{position:"relative"},children:[YI.jsx(Hz,{}),YI.jsx(uI,{contentEditable:YI.jsx(qz,{className:"tek__editor__input"}),placeholder:!1!==e?YI.jsx(ij,{}):null,ErrorBoundary:tI})]}),sj=Zy(gw)(({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}})),lj=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],uj="#404040",cj="16px",dj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:lj[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),fj=({children:e})=>{const t=(()=>{const[e]=Cc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(lj[0]),[d,f]=D.useState(cj),[p,h]=D.useState(uj),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback(()=>{const t=so();if(Wr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:qa(r,e=>{const t=e.getParent();return null!==t&&ka(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(vc(i)){const e=gl(r,dc),t=e?e.getListType():i.getListType();l(t)}else{const e=xd(i)?i.getTag():i.getType();l(e)}if(vc(i)||xd(i)){const e=gl(i,ai);e&&(u=e)}const d=ZI(t);if(wu(d.getParent())||wu(d)?y(!0):y(!1),ui(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=fl(t,"font-family",lj[0]),m=fl(t,"font-size",cj);c(""===p?lj[0]:p),f(""!==m&&m?m:cj),h(fl(t,"color",uj))}else Kr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof GD}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",uj));const t=e.getTextFormatStyle("fontSize",cj),r=e.getTextFormatStyle("fontFamily",lj[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(cc(e)){const t=gl(e,dc);return t?t.getListType():"bullet"}return xd(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return D.useEffect(()=>Gs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{b()})}),e.registerCommand(kt,()=>(e.getEditorState().read(()=>{b()}),!1),ci)),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return YI.jsx(dj.Provider,{value:t,children:e})},pj=({children:e})=>YI.jsx(fj,{children:YI.jsx(sj,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),hj=({anchorEl:e,children:t})=>{const n=Boolean(e);return YI.jsx(O_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>YI.jsx(_w,{...e,children:YI.jsx(Tb,{className:"tekPopperMenu",children:t})})})},mj=Zy(nx)({fontSize:12,textOverflow:"ellipsis"}),gj=({startIcon:e,value:t,onClick:n,compact:r})=>YI.jsx(ek,{title:t,PopperProps:{disablePortal:!0},children:YI.jsx(sw,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:YI.jsx(xI,{height:12}),children:r?e:YI.jsx(mj,{children:t})})}),vj=Zy(Ww,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),yj=[{text:"AlignLeft",align:"left",icon:()=>YI.jsx(gI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>YI.jsx(hI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>YI.jsx(yI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],bj=({compact:e=!1})=>{const[t]=Cc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(dj),i=Bz(),a=D.useMemo(()=>yj.find(e=>e.align===o.align)||yj[0],[o.align]),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=D.useCallback(()=>{r(null)},[]),u=D.useCallback(e=>{r(null),t.dispatchCommand(on,e),t.focus()},[t]);return YI.jsx(uw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),YI.jsx(hj,{anchorEl:n,children:YI.jsx(jw,{dense:!0,children:yj.map(e=>YI.jsxs(vj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[YI.jsx(Rw,{children:e.icon()}),YI.jsx(mj,{children:i(e.text)})]},e.align))})})]})})},xj=({text:e,icon:t})=>YI.jsxs(YI.Fragment,{children:[YI.jsx(Rw,{children:t}),YI.jsx(mj,{children:e})]}),_j=({text:e,icon:t})=>YI.jsxs(YI.Fragment,{children:[YI.jsx(Rw,{children:YI.jsx(mj,{fontWeight:"bold",children:t})}),YI.jsx(mj,{children:e})]}),wj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],kj=(e,t,n)=>({icon:YI.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),Sj=({compact:e=!1})=>{const[t]=Cc(),{blockFormat:n}=D.useContext(dj),[r,o]=D.useState(null),i=Bz(),a=D.useMemo(()=>{let e={icon:YI.jsx(AI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=kj("Heading1","H1",i)),"h2"===n.blockType&&(e=kj("Heading2","H2",i)),"h3"===n.blockType&&(e=kj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=YI.jsx(SI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=YI.jsx(wI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=YI.jsx(EI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=D.useCallback(()=>{o(null)},[]),l=D.useCallback(e=>{t.update(()=>{const n=so();Wr(n)?(ol(n,{"font-size":null}),function(e,t,n=il){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=ro(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=qa(e.getNode(),Ia),a=qa(t.getNode(),Ia);qo(n)&&o.set(n.getKey(),n),qo(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(qo(t)&&Ia(t))o.set(t.getKey(),t);else if(null===r){const e=qa(t,Ia);qo(e)&&o.set(e.getKey(),e)}for(const[e,r]of o){const o=t();n(r,o),r.replace(o,!0),i&&(e===i.anchor.key&&i.anchor.set(o.getKey(),i.anchor.offset,i.anchor.type),e===i.focus.key&&i.focus.set(o.getKey(),i.focus.offset,i.focus.type))}i&&e.is(so())&&Yi(i)}(n,e)):Kr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=D.useCallback((e,n)=>{o(null),t.update(()=>{const r=so();Wr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=D.useCallback(e=>{o(null),l(()=>bd(e))},[l]),d=D.useCallback(()=>{o(null),l(()=>li())},[l]),f=D.useCallback(()=>{o(null),l(()=>pd())},[l]);return YI.jsx(uw,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),YI.jsx(hj,{anchorEl:r,children:YI.jsxs(jw,{dense:!0,children:[YI.jsx(Ww,{dense:!0,onClick:d,children:YI.jsx(xj,{text:i("Paragraph"),icon:YI.jsx(AI,{height:12})})}),YI.jsx(Ww,{dense:!0,onClick:f,children:YI.jsx(xj,{text:i("Quote"),icon:YI.jsx(SI,{height:12})})}),wj.map(e=>YI.jsx(Ww,{dense:!0,onClick:()=>{c(e.tag)},children:YI.jsx(_j,{text:i(e.text),icon:e.icon})},e.text)),YI.jsx(mw,{}),YI.jsx(Ww,{dense:!0,onClick:()=>{u("bullet",bc)},children:YI.jsx(xj,{text:i("UnorderedList"),icon:YI.jsx(wI,{height:12})})}),YI.jsx(Ww,{dense:!0,onClick:()=>{u("number",xc)},children:YI.jsx(xj,{text:i("OrderedList"),icon:YI.jsx(EI,{height:12})})})]})})]})})},Cj=Zy(sw,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0})),Ej=(e,t)=>{const n=n=>{const r=Bz();return YI.jsx(ek,{title:r(t),PopperProps:{disablePortal:!0},children:YI.jsx("div",{children:YI.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},Tj=({format:e,icon:t,...n})=>{const r=D.useContext(dj),[o]=Cc(),i=D.useCallback(()=>{o.dispatchCommand(jt,e)},[o,e]);return YI.jsx(Cj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},Aj=Ej(Tj,"Bold"),Nj=()=>YI.jsx(Aj,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:YI.jsx(LI,{height:12})}),Lj=wt("APPLY_TEXT_FORMAT"),Rj=wt("CLEAR_TEXT_FORMAT"),Mj=Ej(Cj,"ClearFormat"),Oj=()=>{const[e]=Cc(),t=D.useCallback(()=>{e.update(()=>{const t=so();if(Wr(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach((t,o)=>{try{if(Or(t)){let i=t;0===o&&0!==e.offset&&(i=i.splitText(e.offset)[1]||i),o===r.length-1&&(i=i.splitText(n.offset)[0]||i),""!==i.__style&&i.setStyle(""),0!==i.__format&&(i.setFormat(0),vl(i).setFormat(""));const a=i.getParent();(xd(a)||hd(a))&&a.replace(li(),!0)}else(xd(t)||hd(t))&&t.replace(li(),!0)}catch{}})}e.dispatchCommand(Rj,void 0)})},[e]);return YI.jsx(Mj,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:YI.jsx(MI,{height:12})})};var Pj,zj={},Ij=function(){if(Pj)return zj;Pj=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==VI(o=function(e){if("object"!=VI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},zj.Color=u,zj}();const Dj=Zy(gw)(({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"})),jj=Zy(Q_)(({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"})),Fj=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=Iy(),a=D.useCallback(e=>{o(e),n(e)},[n]);return YI.jsx(Dj,{children:e.map(e=>YI.jsx(jj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?YI.jsx(ok,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function Bj(e,t,n){return Math.max(t,Math.min(n,e))}const $j=(e,t)=>{const n=new Ij.Color(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},Hj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Bj(e.clientX-n,0,o)/o*100,s=100-Bj(e.clientY-r,0,i)/i*100,l=new Ij.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Wj=Zy(gw)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),Uj=Zy(Q_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Kj=Zy(Q_)(({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"})),Gj=Zy(Q_)({width:"16px",height:"16px",borderRadius:"2px"}),Vj=Zy(gw)({flexDirection:"row",alignItems:"center"}),Yj=Zy(Q_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),qj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),a=D.useRef(n),[s,l]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=D.useState({left:"0",top:"0"});D.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const g=D.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=$j(o,e);m(t)}},[o]),v=D.useMemo(()=>`hsl(${new Ij.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),y=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=Hj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ij.Color(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)},[e]),b=D.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Bj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new Ij.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ij.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=D.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=D.useCallback(t=>{if(c(t.target.value),!new Ij.Color(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=$j(a.current,d.current);m(e)}},[e]);return YI.jsxs(Wj,{children:[s?YI.jsx(Fj,{palette:r,color:o,onColorChange:x}):YI.jsxs(YI.Fragment,{children:[YI.jsx(Uj,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,s=Hj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new Ij.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:YI.jsx(Yj,{ref:f,style:{...h,backgroundColor:o}})}),YI.jsx(Kj,{onClick:b})]}),YI.jsxs(Vj,{children:[YI.jsx(Gj,{style:{backgroundColor:o}}),YI.jsx(Y_,{style:{flex:1},value:u,onChange:_}),YI.jsx(Jb,{onClick:()=>{l(!s)},children:YI.jsx(PI,{height:12})}),YI.jsx(Jb,{onClick:t,children:YI.jsx(ok,{height:12})})]})]})},Jj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],Qj=Ej(sw,"Color"),Xj=({colorPalette:e=Jj})=>{const[t]=Cc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(dj),i=D.useCallback((e,n)=>{t.update(()=>{const t=so();Wr(t)&&ol(t,{color:e})},n),t.dispatchCommand(Lj,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return YI.jsx(uw,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(Qj,{variant:"text",size:"small",endIcon:YI.jsx(xI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:YI.jsx(Q_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),YI.jsx(hj,{anchorEl:n,children:YI.jsx(qj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};Ej(Cj,"Export");const Zj=({compact:e=!1,fonts:t=lj})=>{const[n]=Cc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(dj),a=D.useMemo(()=>t,[t]),s=D.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=so();Wr(e)&&ol(e,{"font-family":t||lj[0]}),n.dispatchCommand(Lj,{styleKey:"fontFamily",styleValue:t||lj[0]}),n.focus()})},[n]);return YI.jsx(uw,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:YI.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),YI.jsx(hj,{anchorEl:r,children:YI.jsx(jw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>YI.jsx(vj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:YI.jsx(mj,{children:e})},e))})})]})})},eF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],tF=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,nF=e=>parseInt(e,10),rF=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=D.useCallback(()=>{const e=nF(n);e&&t(`${e}px`)},[t,n]),a=D.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return YI.jsxs(gw,{direction:"row",children:[YI.jsx(Y_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),YI.jsx(Jb,{disabled:!nF(n),onClick:i,children:YI.jsx(ok,{height:12})})]})},oF=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Cc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(dj),a=tF(i.fontSize,t),s=D.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=D.useCallback(()=>{o(null)},[]),u=D.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=so();Wr(t)&&ol(t,{"font-size":e}),n.dispatchCommand(Lj,{styleKey:"fontSize",styleValue:e})})},[n]),c=D.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=D.useCallback(e=>{u(e)},[u]);return YI.jsx(uw,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:YI.jsxs("div",{children:[YI.jsx(gj,{startIcon:e?YI.jsx(mj,{children:a}):void 0,value:a,onClick:s,compact:e}),YI.jsxs(hj,{anchorEl:r,children:[YI.jsx(rF,{fontSize:a,onSelected:d}),YI.jsx(mw,{}),YI.jsx(jw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:eF.map(e=>YI.jsx(Ww,{"data-font-size":e,onClick:c,children:YI.jsx(mj,{children:tF(e,t)})},e))})]})]})})},iF=Ej(Cj,"InsertTable"),aF=()=>{const[e]=Cc(),t=D.useCallback(()=>{e.dispatchCommand(ID,void 0)},[e]);return YI.jsx(iF,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:YI.jsx(II,{height:12})})},sF=Ej(Tj,"Italic"),lF=()=>YI.jsx(sF,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:YI.jsx(jI,{height:12})}),uF=Ej(Cj,"InsertHyperlink"),cF=()=>{const[e]=Cc(),{blockFormat:t}=D.useContext(dj),n=D.useCallback(()=>{t.isLink?e.dispatchCommand(Eu,null):e.dispatchCommand(Eu,nD("https://"))},[e,t.isLink]);return YI.jsx(uF,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:YI.jsx(BI,{height:12})})};Ej(Cj,"Toggle");const dF=Ej(Tj,"Underline"),fF=()=>YI.jsx(dF,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:YI.jsx(HI,{height:12})}),pF=()=>YI.jsx(mw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var hF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},mF={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"},InsertTable:{value:"Insert table",comment:"Label for toolbar menu option to insert a table. (tew 260205)"},InsertImage:{value:"Insert image",comment:"Label for toolbar menu option to insert an image. (tew 260205)"}},gF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},vF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},yF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},bF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},xF={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},_F={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},wF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},kF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},SF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},CF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},EF={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const TF={de:hF,es:gF,en:mF,fr:vF,it:yF,ja:bF,ko:xF,nl:_F,pl:wF,pt:kF,ru:SF,sv:CF,tr:EF,"de-de":hF,"es-es":gF,"en-us":mF,"fr-fr":vF,"it-it":yF,"ja-jp":bF,"ko-kr":xF,"nl-nl":_F,"pl-pl":wF,"pt-br":kF,"ru-ru":SF,"sv-se":CF,"tr-tr":EF,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function AF(e,t){return e.getEditorState().read(()=>{const e=Bi(t);return null!==e&&e.isSelected()})}function NF(e){const[t]=Cc(),[n,r]=D.useState(()=>AF(t,e));D.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(AF(t,e))});return()=>{n=!1,o()}},[t,e]);return[n,D.useCallback(n=>{t.update(()=>{let t=so();Kr(t)||(t=oo(),Yi(t)),Kr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),D.useCallback(()=>{t.update(()=>{const e=so();Kr(e)&&e.clear()})},[t])]}var LF,RF={};var MF=function(){if(LF)return RF;LF=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0===(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},RF.Color=u,RF}();async function OF(e,t){await async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,e=>{const{qHyperCubeDef:n}=e;if(n){const e=n.qMeasures?.filter(e=>{const n=t?.find(t=>t===e?.qDef?.cId);return!n});n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}})}function PF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function zF(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var IF,DF;var jF=function(){if(DF)return IF;DF=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},IF=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},IF}();let FF=[];const BF=new jF.EventEmitter;BF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==FF.indexOf(t)},BF.setSelected=e=>{FF!==e&&(FF=e,BF.emit("change"))};function $F({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=Cc(),s=Nd(),[l,u,c]=NF(n),d=D.useRef(null),[f,p]=D.useState(t);D.useEffect(()=>{p(t)},[t]);const h=D.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),m=D.useMemo(()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){const t=n.qMeasureInfo?.findIndex(t=>t.cId===e);if(void 0!==t&&-1!==t){const e=n?.qDataPages?.[0]?.qMatrix?.[0][t];if(1===e?.qAttrExps?.qValues?.length){const t=e.qAttrExps.qValues[0]?.qText;if(t){const n=new MF.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);D.useEffect(()=>Gs(a.registerCommand(jt,e=>(a.update(()=>{const t=e,r=so();if(Wr(r)&&l){if(zF(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p(t=>({...t,...e}))}}else if(l&&Kr(r)&&zF(n,r)&&d.current){const e=PF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}}),!1),3),a.registerCommand(Lj,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&l){const t=so();if(zF(n,t)){const t=PF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),ci),a.registerCommand(Rj,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=so();if(zF(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}}),!1),ci),a.registerCommand(kt,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=so(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),BF.setSelected(e)}),!1),1)),[a,u,c,l,n,m]),D.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&BF.setSelected([]))},[s,c,i]),D.useEffect(()=>{a.update(()=>{!function(e,t){const n=Bi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const g=D.useCallback(e=>{if(s){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update(()=>{const e=so();if(Kr(e)){const t=Bi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Lc.jsx("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e,children:m.value})}const HF="qlik.expression.node";class WF extends GD{__expressionId;static getType(){return HF}static clone(e){return new WF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new WF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:HF,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return Lc.jsx($F,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function UF(e){return e instanceof WF}const KF="ImageNode",GF=wt("INSERT_IMAGE_COMMAND"),VF=()=>{const e={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};return e.id()},YF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===KF)r.id||(r.id=VF()),t.add(r.id),r.tempUrlDef&&(n.add({id:r.id,url:{qStaticContentUrlDef:{qUrl:r.tempUrlDef}}}),delete r.tempUrl,delete r.tempUrlDef);else if("children"in r&&Array.isArray(r.children))for(const e of r.children)YF(e,t,n);return{imageIds:t,newPropertyImages:n}},qF=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function JF(e,t,n){try{const r=await t.getProperties();if(r.text=JSON.stringify(e),n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const{images:t,jsonData:n}=((e,t)=>{const n=e,r=t.images||[];let o=new Set;if(n.root){const e=YF(n.root);o=e.imageIds,e.newPropertyImages.forEach(e=>{r.push(e)})}const i=[],a=new Set;return r.forEach(e=>{o.has(e.id)&&!a.has(e.id)&&(a.add(e.id),i.push(e))}),{images:i,jsonData:n}})(e,r);r.images=t,r.text=JSON.stringify(n)}await t.setProperties(r)}catch(e){console.error(e)}}function QF(){const[e]=Cc(),t=Nd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect(()=>{const t=()=>{r&&JF(e.getEditorState().toJSON(),r,i)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return o?.on("saveDocument",t),o?.on("reloadData",n),()=>{o?.removeListener("saveDocument",t),o?.removeListener("reloadData",n)}},[o,r]),D.useEffect(()=>{e.setEditable(n)},[n]),D.useEffect(()=>{t&&e.focus()},[t,e]),null}class XF{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Bi(e);if(UF(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex(e=>n.getExpressionId()===e);-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function ZF(){const{layout:e,emitter:t,interactionState:n}=D.useContext(B),[r]=Cc(),o=D.useRef(new XF),i=Nd(),a=n?.edit;return D.useEffect(()=>{const e=r.registerMutationListener(WF,e=>{r.getEditorState().read(()=>{for(const[t,n]of e)o.current.update(t,n)})});return()=>{e()}},[r]),D.useEffect(()=>{e&&r.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=da(WF),t=((e,t)=>{const n=e.reduce((e,n)=>{const r=t.find(e=>e.cId===n.getExpressionId());return r||e.push(n),e},[]);return n})(e,n);if(t.forEach(e=>{e.remove()}),n.length>e.length){const e=so(),{cId:t}=n[n.length-1],r=new WF(t,{}),o=Mr(" "),i=Mr("");Wr(e)?e.insertNodes([i,r,o]):yl(r)}}})},[e,r]),D.useEffect(()=>r.registerCommand($t,e=>("Backspace"===e.key&&r.update(()=>{const e=so();Kr(e)&&e.getNodes().forEach(e=>{UF(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[r]),D.useEffect(()=>{if(!i&&a){const e=o.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[i,a,t]),null}const eB=/"/g;function tB(){const{model:e,emitter:t}=D.useContext(B),[n]=Cc(),r=D.useRef(new Map);return D.useEffect(()=>{const o=n.registerMutationListener(kr,e=>{e.forEach((e,t)=>{if("destroyed"===e)r.current.delete(t);else{const e=n.getElementByKey(t)?.style.fontFamily;e&&r.current.set(t,e)}})});async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map(e=>e.replace(eB,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function nB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rB,oB="top",iB="top-right",aB="right",sB="bottom-right",lB="bottom",uB="bottom-left",cB="left",dB="top-left";nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB={},"equal-equal",[oB,lB]),"equal-higher",[lB,sB]),"equal-lower",[oB,iB]),"equal-void",[oB,lB]),"higher-equal",[cB,uB,oB,iB]),"higher-higher-acute",[lB,uB,cB,iB]),"higher-higher-obtuse",[lB,oB]),"higher-lower-negative",[oB,iB,aB]),"higher-lower-positive",[lB,uB,cB]),"higher-void",[oB]),nB(nB(nB(nB(nB(nB(nB(nB(nB(nB(rB,"lower-equal",[oB]),"lower-higher-negative",[oB,dB]),"lower-higher-positive",[sB]),"lower-lower-acute",[oB,dB,cB,iB,aB]),"lower-lower-obtuse",[oB,lB]),"lower-void",[oB]),"void-equal",[oB]),"void-higher",[oB,lB]),"void-lower",[oB,lB,cB]),"void-void",[oB]),nB(rB,"unclassified",[oB,lB,aB,cB,iB,sB,uB,dB]);var fB,pB,hB=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],mB=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var gB=function(){if(pB)return fB;pB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return fB=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},fB}();function vB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(gB);var xB=1/.7,_B="\\s*([+-]?\\d+)\\s*",wB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SB=/^#([0-9a-f]{3,8})$/,CB=new RegExp(`^rgb\\(${_B},${_B},${_B}\\)$`),EB=new RegExp(`^rgb\\(${kB},${kB},${kB}\\)$`),TB=new RegExp(`^rgba\\(${_B},${_B},${_B},${wB}\\)$`),AB=new RegExp(`^rgba\\(${kB},${kB},${kB},${wB}\\)$`),NB=new RegExp(`^hsl\\(${wB},${kB},${kB}\\)$`),LB=new RegExp(`^hsla\\(${wB},${kB},${kB},${wB}\\)$`),RB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function MB(){return this.rgb().formatHex()}function OB(){return this.rgb().formatRgb()}function PB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zB(t):3===n?new FB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?IB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?IB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=CB.exec(e))?new FB(t[1],t[2],t[3],1):(t=EB.exec(e))?new FB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=TB.exec(e))?IB(t[1],t[2],t[3],t[4]):(t=AB.exec(e))?IB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=NB.exec(e))?KB(t[1],t[2]/100,t[3]/100,1):(t=LB.exec(e))?KB(t[1],t[2]/100,t[3]/100,t[4]):RB.hasOwnProperty(e)?zB(RB[e]):"transparent"===e?new FB(NaN,NaN,NaN,0):null}function zB(e){return new FB(e>>16&255,e>>8&255,255&e,1)}function IB(e,t,n,r){return r<=0&&(e=t=n=NaN),new FB(e,t,n,r)}function DB(e){return e instanceof bB||(e=PB(e)),e?new FB((e=e.rgb()).r,e.g,e.b,e.opacity):new FB}function jB(e,t,n,r){return 1===arguments.length?DB(e):new FB(e,t,n,null==r?1:r)}function FB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function BB(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}`}function $B(){const e=HB(this.opacity);return`${1===e?"rgb(":"rgba("}${WB(this.r)}, ${WB(this.g)}, ${WB(this.b)}${1===e?")":`, ${e})`}`}function HB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function WB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function UB(e){return((e=WB(e))<16?"0":"")+e.toString(16)}function KB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new VB(e,t,n,r)}function GB(e){if(e instanceof VB)return new VB(e.h,e.s,e.l,e.opacity);if(e instanceof bB||(e=PB(e)),!e)return new VB;if(e instanceof VB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new VB(a,s,l,e.opacity)}function VB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function YB(e){return(e=(e||0)%360)<0?e+360:e}function qB(e){return Math.max(0,Math.min(1,e||0))}function JB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vB(bB,PB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MB,formatHex:MB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return GB(this).formatHsl()},formatRgb:OB,toString:OB}),vB(FB,jB,yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new FB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new FB(WB(this.r),WB(this.g),WB(this.b),HB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BB,formatHex:BB,formatHex8:function(){return`#${UB(this.r)}${UB(this.g)}${UB(this.b)}${UB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$B,toString:$B})),vB(VB,function(e,t,n,r){return 1===arguments.length?GB(e):new VB(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return e=null==e?xB:Math.pow(xB,e),new VB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new VB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new FB(JB(e>=240?e-240:e+120,o,r),JB(e,o,r),JB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new VB(YB(this.h),qB(this.s),qB(this.l),HB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=HB(this.opacity);return`${1===e?"hsl(":"hsla("}${YB(this.h)}, ${100*qB(this.s)}%, ${100*qB(this.l)}%${1===e?")":`, ${e})`}`}}));const QB=Math.PI/180,XB=180/Math.PI,ZB=4/29,e$=6/29,t$=3*e$*e$;function n$(e){if(e instanceof r$)return new r$(e.l,e.a,e.b,e.opacity);if(e instanceof l$)return u$(e);e instanceof FB||(e=DB(e));var t,n,r=s$(e.r),o=s$(e.g),i=s$(e.b),a=o$((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=o$((.4360747*r+.3850649*o+.1430804*i)/.96422),n=o$((.0139322*r+.0971045*o+.7141733*i)/.82521)),new r$(116*a-16,500*(t-a),200*(a-n),e.opacity)}function r$(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function o$(e){return e>.008856451679035631?Math.pow(e,1/3):e/t$+ZB}function i$(e){return e>e$?e*e*e:t$*(e-ZB)}function a$(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function s$(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function l$(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function u$(e){if(isNaN(e.h))return new r$(e.l,0,0,e.opacity);var t=e.h*QB;return new r$(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vB(r$,function(e,t,n,r){return 1===arguments.length?n$(e):new r$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new r$(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new r$(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new FB(a$(3.1338561*(t=.96422*i$(t))-1.6168667*(e=1*i$(e))-.4906146*(n=.82521*i$(n))),a$(-.9787684*t+1.9161415*e+.033454*n),a$(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vB(l$,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof l$)return new l$(e.h,e.c,e.l,e.opacity);if(e instanceof r$||(e=n$(e)),0===e.a&&0===e.b)return new l$(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*XB;return new l$(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new l$(e,t,n,null==r?1:r)},yB(bB,{brighter(e){return new l$(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new l$(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return u$(this).rgb()}}));var c$=e=>()=>e;function d$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):c$(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?d$:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):c$(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jB(e)).r,(t=jB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=d$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var f$,p$="center",h$="bottom";function m$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function g$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y$)):void 0===t&&(t=v$);for(var n,r,o,i,a,s=new _$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new _$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(x$)}function v$(e){return e.children}function y$(e){return Array.isArray(e)?e[1]:null}function b$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function x$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:p$,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:p$},{key:"DataRangeIncludingZero",alignment:h$},{key:"LimitedData",alignment:h$},{key:"NegativeOrZeroValues",alignment:h$}].reduce(function(e,t){return e[t.key]=t,e},{}),_$.prototype=g$.prototype={constructor:_$,count:function(){return this.eachAfter(m$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return g$(this).eachBefore(b$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},f$=function(e){
109
109
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
110
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},f$({exports:{}});const w$=e=>`text-toolbar.${e?.id}`,k$=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),S$=D.forwardRef(k$),C$=Ej(Cj,"InsertImage"),E$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Cc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(GF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Lc.jsx(C$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Lc.jsx(S$,{height:12})}):null};function T$(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=D.useContext(B),a=D.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=D.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?mB:hB}(r),[r]),l=D.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]),u=r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior,c="responsive"===u;return Lc.jsx(O_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:w$(n),children:({TransitionProps:e})=>Lc.jsx(_w,{...e,children:Lc.jsx(Tb,{sx:{borderRadius:1,padding:.25},children:Lc.jsxs(pj,{children:[Lc.jsx(Sj,{compact:!0}),Lc.jsx(pF,{}),Lc.jsx(Zj,{compact:!0,fonts:s}),Lc.jsx(oF,{compact:!0,hidePixels:c}),Lc.jsx(pF,{}),Lc.jsx(Nj,{}),Lc.jsx(lF,{}),Lc.jsx(fF,{}),Lc.jsx(cF,{}),Lc.jsx(Xj,{colorPalette:l}),Lc.jsx(pF,{}),Lc.jsx(bj,{compact:!0}),Lc.jsx(pF,{}),Lc.jsx(Oj,{}),Lc.jsx(pF,{}),Lc.jsx(aF,{}),Lc.jsx(E$,{})]})})})})}function A$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}A$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");A$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const N$=1,L$=8,R$=2,M$=4;function O$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===N$||e===M$?"ew":e===L$||e===R$?"ns":e&L$&&e&M$||e&R$&&e&N$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(N$|M$),i=r.direction&(R$|L$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&R$?-n:n;const o=P$(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Lc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,L$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,L$|N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,R$|N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,R$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,R$|M$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,M$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,L$|M$)}})]})}const P$=(e,t,n)=>Math.min(Math.max(e,t),n),z$=new Map,I$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=z$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}}).then(t=>(z$.set(e,t),t)),z$.set(e,t),t;throw t})(r);D.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Lc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function D$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=NF(a),[d,f]=D.useState(!1),[p]=Cc(),h=Nd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||qF(m,t),[e,m,t]);D.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=D.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=D.useCallback(()=>!!l&&(Yi(null),p.focus(),!0),[l,p]);D.useEffect(()=>Gs(p.registerCommand(Ct,b,1),p.registerCommand(an,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Qt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Lc.jsx(D.Suspense,{fallback:null,children:Lc.jsxs(Lc.Fragment,{children:[Lc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Lc.jsx(I$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>g?.resolve(t,!1),onError:()=>g?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Ct,e.nativeEvent)}})}),i&&l&&w?Lc.jsx(O$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Bi(a);n?.getType()===KF&&n.setWidthAndHeight(e,t)})}}):null]})})}var j$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),F$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),B$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class $$ extends Qo{__props;constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return KF}static clone(e){return new $$({...e.__props,key:e.getKey()})}decorate(){return Lc.jsx(D$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:KF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===$$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||F$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=j$(n);a=B$(a),a=decodeURIComponent(a);return{node:H$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return H$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const H$=e=>new $$(e),W$=document.createElement("img");function U$(e){const t=e.target;return!!(t&&Ra(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Ra(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function K$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===KF?t:null}function G$(e,t){const n=K$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==KF?null:r}(e);if(!r)return!1;const o=qa(n,e=>!Cu(e)&&wu(e));if(e.preventDefault(),U$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=ro();null!=i&&a.applyDOMRange(i),Yi(a),t.dispatchCommand(GF,{...r}),o&&t.dispatchCommand(Eu,o.getURL())}return!0}W$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const V$=()=>{const[e]=Cc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),D.useEffect(()=>Gs(e.registerCommand(GF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=H$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});vo([e]),ka(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,li).selectEnd()}),!0),ci),e.registerCommand(un,t=>{const r=so();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===$$.getType());if(!i)return!1;const a=td(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===$$.getType()){const t={...e};return t.tempUrl=t.tempUrl||qF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return Xc(e,xl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(an,e=>function(e){const t=K$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(W$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:KF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!K$()&&(U$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>G$(t,e),3)),[e,t,o,n]),null};const Y$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Cc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function q$({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o,layout:i}=D.useContext(B),a=e?.edit,s=!(!1===a&&r?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));let l;if(r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;if("responsive"===e){const e=i?.components?.find(e=>"scaleFactor"===e.key)?.scaleFactor||1;l=`calc((${"100cqmin / 480px"}) * ${e})`}}D.useEffect(()=>{!function(e){const t=Object.entries(TF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});$z.configure(t,e)}(n)},[n]);const u=D.useMemo(()=>{if(void 0!==t){const n=t||void 0,o=[...VD,WF];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push($$):o.push((e=KF,class t extends Qo{__data;constructor(e={},t){super(t),this.__data=e}static getType(){return e}static clone(e){return new t(e.__data,e.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:e,version:1}}static importJSON(e){return new t(e)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),(e=>{let t=cD.nodes;e.nodes&&(t=cD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...cD,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null},[t,r]),c=Lc.jsxs(dD,{initialConfig:u,flags:r,children:[Lc.jsx(T$,{}),Lc.jsx(aj,{showPlaceholder:s}),Lc.jsx(oj,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Lc.jsx(V$,{}):null,Lc.jsx(ZF,{}),Lc.jsx(QF,{}),Lc.jsx(tB,{}),Lc.jsx(Y$,{})]});return u?Lc.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Lc.jsx("div",{style:{zoom:l},children:c}):c}):null}const J$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:BF,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}};function Q$({env:e}){return{definition:{type:"items",component:"accordion",items:{data:J$,settings:(t=e.flags,{uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,...t?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&{items:{layoutBehavior:{translation:"properties.layoutBehavior",component:"panel-section",items:{layoutBehaviorSection:{component:"items",ref:"components",key:"layoutBehavior",items:{layoutBehaviorItems:{component:"dropdown",ref:"layoutBehavior",defaultValue:"fixed",options:[{value:"responsive",translation:"properties.responsive"},{value:"fixed",translation:"properties.fixed"}]}}}}},scaleFactor:{translation:"MediaTool.Toolbar.FontSize",component:"panel-section",items:{scaleFactor:{component:"items",ref:"components",key:"scaleFactor",items:{scaleFactorItems:{translation:"MediaTool.Toolbar.FontSize",component:"slider",ref:"scaleFactor",min:.2,max:2,step:.05,defaultValue:1,schemaIgnore:!0}}}},show:(e,t)=>{const n=t.layout.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;return"responsive"===n}}}}}}}}})}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class X${selectedModelId;getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const Z$=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t(()=>{2===g&&f.edit&&f.select&&x(!0)},[g,f]),t(()=>{const t=()=>{f.edit&&f.select&&v(e=>e+1)},n=e=>{const t=document.getElementById(w$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}},[u,f,d]),t(()=>{!h&&y&&p.emit("saveDocument")},[h,p,y]),{edit:h}};function eH(f){const m=new X$,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:Q$({env:f}),component(){const p=o(),h=(n=>{const r=e(()=>I.createRoot(n),[n]);return t(()=>()=>{r?.unmount()},[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r(()=>new Promise(t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&n.add(e.id)}),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}),[]),t(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}})({layout:v,flags:g});t(()=>{const e=e=>{OF(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}},[x,y]),t(()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))},[v,S]);const{edit:A}=Z$({propertyPanelHandlerData:m,flags:g});t(()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(Lc.jsx(j.StrictMode,{children:Lc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f},children:Lc.jsx(q$,{interactionState:c})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})},[v,h,y,p,A,p,S,x,g,E,b]),t(()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}},[v,_,x]),d(()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}}),[])}}}export{eH as default};
110
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},f$({exports:{}});const w$=e=>`text-toolbar.${e?.id}`,k$=(e,t)=>Lc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Lc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),S$=D.forwardRef(k$),C$=Ej(Cj,"InsertImage"),E$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=Cc(),r=D.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(GF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Lc.jsx(C$,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Lc.jsx(S$,{height:12})}):null};function T$(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=D.useContext(B),a=D.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=D.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?mB:hB}(r),[r]),l=D.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]),u=r?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&i?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior,c="responsive"===u;return Lc.jsx(O_,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:w$(n),children:({TransitionProps:e})=>Lc.jsx(_w,{...e,children:Lc.jsx(Tb,{sx:{borderRadius:1,padding:.25},children:Lc.jsxs(pj,{children:[Lc.jsx(Sj,{compact:!0}),Lc.jsx(pF,{}),Lc.jsx(Zj,{compact:!0,fonts:s}),Lc.jsx(oF,{compact:!0,hidePixels:c}),Lc.jsx(pF,{}),Lc.jsx(Nj,{}),Lc.jsx(lF,{}),Lc.jsx(fF,{}),Lc.jsx(cF,{}),Lc.jsx(Xj,{colorPalette:l}),Lc.jsx(pF,{}),Lc.jsx(bj,{compact:!0}),Lc.jsx(pF,{}),Lc.jsx(Oj,{}),Lc.jsx(pF,{}),Lc.jsx(aF,{}),Lc.jsx(E$,{})]})})})})}function A$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}A$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");A$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const N$=1,L$=8,R$=2,M$=4;function O$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===N$||e===M$?"ew":e===L$||e===R$?"ns":e&L$&&e&M$||e&R$&&e&N$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(N$|M$),i=r.direction&(R$|L$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&R$?-n:n;const o=P$(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&N$?-n:n;const o=P$(r.startWidth+n,20,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return Lc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,L$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,L$|N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,R$|N$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,R$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,R$|M$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,M$)}}),Lc.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Lc.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,L$|M$)}})]})}const P$=(e,t,n)=>Math.min(Math.max(e,t),n),z$=new Map,I$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=z$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}}).then(t=>(z$.set(e,t),t)),z$.set(e,t),t;throw t})(r);D.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Lc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function D$({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=D.useRef(null),[l,u,c]=NF(a),[d,f]=D.useState(!1),[p]=Cc(),h=Nd(),{layout:m,printingStatus:g}=D.useContext(B),v=void 0,y=D.useMemo(()=>e||qF(m,t),[e,m,t]);D.useEffect(()=>{!h&&l&&c()},[h,l,c]);const b=D.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=D.useCallback(()=>!!l&&(Yi(null),p.focus(),!0),[l,p]);D.useEffect(()=>Gs(p.registerCommand(Ct,b,1),p.registerCommand(an,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Qt,x,1)),[p,b,x]);const _=l&&!d&&h,w=(l||d)&&h;return Lc.jsx(D.Suspense,{fallback:null,children:Lc.jsxs(Lc.Fragment,{children:[Lc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Lc.jsx(I$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>g?.resolve(t,!1),onError:()=>g?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(Ct,e.nativeEvent)}})}),i&&l&&w?Lc.jsx(O$,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=Bi(a);n?.getType()===KF&&n.setWidthAndHeight(e,t)})}}):null]})})}var j$=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),F$=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),B$=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class $$ extends Qo{__props;constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return KF}static clone(e){return new $$({...e.__props,key:e.getKey()})}decorate(){return Lc.jsx(D$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:KF,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===$$.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||F$(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=j$(n);a=B$(a),a=decodeURIComponent(a);return{node:H$({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return H$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const H$=e=>new $$(e),W$=document.createElement("img");function U$(e){const t=e.target;return!!(t&&Ra(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Ra(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function K$(){const e=so();if(!Kr(e))return null;const t=e.getNodes()[0];return t.getType()===KF?t:null}function G$(e,t){const n=K$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==KF?null:r}(e);if(!r)return!1;const o=qa(n,e=>!Cu(e)&&wu(e));if(e.preventDefault(),U$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=ro();null!=i&&a.applyDOMRange(i),Yi(a),t.dispatchCommand(GF,{...r}),o&&t.dispatchCommand(Eu,o.getURL())}return!0}W$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const V$=()=>{const[e]=Cc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),D.useEffect(()=>Gs(e.registerCommand(GF,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=H$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});vo([e]),ka(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,li).selectEnd()}),!0),ci),e.registerCommand(un,t=>{const r=so();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===$$.getType());if(!i)return!1;const a=td(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===$$.getType()){const t={...e};return t.tempUrl=t.tempUrl||qF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return Xc(e,xl(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(an,e=>function(e){const t=K$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(W$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:KF})),!0)}(e),3),e.registerCommand(sn,e=>function(e){return!!K$()&&(U$(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(rn,t=>G$(t,e),3)),[e,t,o,n]),null};const Y$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=Cc();D.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function q$(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=D.useContext(B),a=i?.edit,s=!(!1===a&&n?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));let l;if(n?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")){const e=o?.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;if("responsive"===e){const e=o?.components?.find(e=>"scaleFactor"===e.key)?.scaleFactor||1;l=`calc((${"100cqmin / 480px"}) * ${e})`}}D.useEffect(()=>{!function(e){const t=Object.entries(TF[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});$z.configure(t,e)}(t)},[t]);const u=D.useMemo(()=>{if(void 0!==e){const r=e||void 0,o=[...VD,WF];return n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push($$):o.push((t=KF,class e extends Qo{__data;constructor(e={},t){super(t),this.__data=e}static getType(){return t}static clone(t){return new e(t.__data,t.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:t,version:1}}static importJSON(t){return new e(t)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),(e=>{let t=cD.nodes;e.nodes&&(t=cD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...cD,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n]),c=Lc.jsxs(dD,{initialConfig:u,flags:n,children:[Lc.jsx(T$,{}),Lc.jsx(aj,{showPlaceholder:s}),Lc.jsx(oj,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Lc.jsx(V$,{}):null,Lc.jsx(ZF,{}),Lc.jsx(QF,{}),Lc.jsx(tB,{}),Lc.jsx(Y$,{})]});return u?Lc.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Lc.jsx("div",{style:{zoom:l},children:c}):c}):null}const J$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:BF,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}};function Q$({env:e}){return{definition:{type:"items",component:"accordion",items:{data:J$,settings:(t=e.flags,{uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,...t?.isEnabled("GV_1384_SN_TEXT_RESPONSIVENESS")&&{items:{layoutBehavior:{translation:"properties.layoutBehavior",component:"panel-section",items:{layoutBehaviorSection:{component:"items",ref:"components",key:"layoutBehavior",items:{layoutBehaviorItems:{component:"dropdown",ref:"layoutBehavior",defaultValue:"fixed",options:[{value:"responsive",translation:"properties.responsive"},{value:"fixed",translation:"properties.fixed"}]}}}}},scaleFactor:{translation:"MediaTool.Toolbar.FontSize",component:"panel-section",items:{scaleFactor:{component:"items",ref:"components",key:"scaleFactor",items:{scaleFactorItems:{translation:"MediaTool.Toolbar.FontSize",component:"slider",ref:"scaleFactor",min:.2,max:2,step:.05,defaultValue:1,schemaIgnore:!0}}}},show:(e,t)=>{const n=t.layout.components?.find(e=>"layoutBehavior"===e.key)?.layoutBehavior;return"responsive"===n}}}}}}}}})}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}};var t}class X${selectedModelId;getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const Z$=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t(()=>{2===g&&f.edit&&f.select&&x(!0)},[g,f]),t(()=>{const t=()=>{f.edit&&f.select&&v(e=>e+1)},n=e=>{const t=document.getElementById(w$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}},[u,f,d]),t(()=>{!h&&y&&p.emit("saveDocument")},[h,p,y]),{edit:h}};function eH(f){const m=new X$,{flags:g}=f;return{qae:{properties:p,data:h(m)},ext:Q$({env:f}),component(){const p=o(),h=(n=>{const r=e(()=>I.createRoot(n),[n]);return t(()=>()=>{r?.unmount()},[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r(()=>new Promise(t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach(e=>{e.id&&n.add(e.id)}),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}),[]),t(()=>{let e;return i&&(e=setTimeout(()=>{i.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[i]),{printingStatus:i}})({layout:v,flags:g});t(()=>{const e=e=>{OF(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}},[x,y]),t(()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))},[v,S]);const{edit:A}=Z$({propertyPanelHandlerData:m,flags:g});t(()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(Lc.jsx(j.StrictMode,{children:Lc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f,interactionState:c},children:Lc.jsx(q$,{})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})},[v,h,y,p,A,p,S,x,g,E,b]),t(()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}},[v,_,x]),d(()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}}),[])}}}export{eH as default};