@nebula.js/sn-text 1.6.0 → 1.6.2

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/dist/sn-text.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.6.0
2
+ * @nebula.js/sn-text v1.6.2
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,function(e){"use strict";function t(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 n={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:[]},r=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 o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 a,s,l={},u={exports:{}},c={},d={exports:{}},f={};function p(){if(a)return f;a=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,g(x,v.prototype),x.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,k={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)w.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:k.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 L(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,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),L(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+":",_(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=L(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=L(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(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 N={current:null},O={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}return f.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(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}},f.Component=v,f.Fragment=n,f.Profiler=o,f.PureComponent=y,f.StrictMode=r,f.Suspense=u,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,f.act=I,f.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=g({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.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}},f.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},f.createElement=C,f.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:l,render:e}},f.isValidElement=E,f.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},f.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},f.unstable_act=I,f.useCallback=function(e,t){return N.current.useCallback(e,t)},f.useContext=function(e){return N.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return N.current.useDeferredValue(e)},f.useEffect=function(e,t){return N.current.useEffect(e,t)},f.useId=function(){return N.current.useId()},f.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return N.current.useMemo(e,t)},f.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},f.useRef=function(e){return N.current.useRef(e)},f.useState=function(e){return N.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return N.current.useTransition()},f.version="18.3.1",f}function h(){return s||(s=1,d.exports=p()),d.exports}var g,m,v,b,y,x={exports:{}},_={};function w(){return m||(m=1,x.exports=(g||(g=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,g=!1,m="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(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(g=!1,y(e),!h)if(null!==n(l))h=!0,N(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,g&&(g=!1,v(C),C=-1),p=!0;var i=f;try{for(y(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),y(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&O(x,m.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 L(){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 b)w=function(){b(L)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,M=R.port2;R.port1.onmessage=L,w=function(){M.postMessage(null)}}else w=function(){m(L,0)};function N(e){S=e,k||(k=!0,w())}function O(t,n){C=m(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,N(_))},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)&&(g?(v(C),C=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,N(_))),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}}}}(_)),_)),x.exports}
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,function(e){"use strict";function t(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 n={version:"1.6.2",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},r=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 o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 a,s,l={},u={exports:{}},c={},d={exports:{}},f={};function p(){if(a)return f;a=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,g(x,v.prototype),x.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,k={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)w.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:k.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 L(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,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),L(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+":",_(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=L(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=L(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(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 N={current:null},O={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}return f.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(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}},f.Component=v,f.Fragment=n,f.Profiler=o,f.PureComponent=y,f.StrictMode=r,f.Suspense=u,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,f.act=I,f.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=g({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.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}},f.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},f.createElement=C,f.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:l,render:e}},f.isValidElement=E,f.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},f.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},f.unstable_act=I,f.useCallback=function(e,t){return N.current.useCallback(e,t)},f.useContext=function(e){return N.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return N.current.useDeferredValue(e)},f.useEffect=function(e,t){return N.current.useEffect(e,t)},f.useId=function(){return N.current.useId()},f.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return N.current.useMemo(e,t)},f.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},f.useRef=function(e){return N.current.useRef(e)},f.useState=function(e){return N.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return N.current.useTransition()},f.version="18.3.1",f}function h(){return s||(s=1,d.exports=p()),d.exports}var g,m,v,b,y,x={exports:{}},_={};function w(){return m||(m=1,x.exports=(g||(g=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,g=!1,m="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(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(g=!1,y(e),!h)if(null!==n(l))h=!0,N(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,g&&(g=!1,v(C),C=-1),p=!0;var i=f;try{for(y(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),y(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&O(x,m.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 L(){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 b)w=function(){b(L)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,M=R.port2;R.port1.onmessage=L,w=function(){M.postMessage(null)}}else w=function(){m(L,0)};function N(e){S=e,k||(k=!0,w())}function O(t,n){C=m(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,N(_))},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)&&(g?(v(C),C=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,N(_))),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}}}}(_)),_)),x.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -13,7 +13,7 @@
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 k(){if(v)return c;v=1;var e=h(),t=w();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]*$/,d={},f={};function p(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 g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new p(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){g[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[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(f,e)||!l.call(d,e)&&(u.test(e)?f[e]=!0:(d[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(m,b);g[t]=new p(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(m,b);g[t]=new p(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(m,b);g[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||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 H(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 W(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=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function $(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 S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return $(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 $(t);case 8:return t===C?"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 Q(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 J(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)&&y(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 ge(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 me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(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 be(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 ye(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 Le(){}var Re=!1;function Me(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==ke||null!==Se)&&(Le(),Te())}}function Ne(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 Ie(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 ze=!1,De=null,je=!1,Fe=null,Be={onError:function(e){ze=!0,De=e}};function He(e,t,n,r,o,i,a,s,l){ze=!1,De=null,Ie.apply(Be,arguments)}function We(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 $e(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(We(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=We(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,Qe=t.unstable_requestPaint,Je=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 gt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(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 bt(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 yt=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,Lt=null,Rt=null,Mt=new Map,Nt=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 It(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function zt(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=yo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(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!==Lt&&jt(Lt)&&(Lt=null),null!==Rt&&jt(Rt)&&(Rt=null),Mt.forEach(Ft),Nt.forEach(Ft)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Ht(t,e)}if(0<Tt.length){Ht(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ht(At,e),null!==Lt&&Ht(Lt,e),null!==Rt&&Ht(Rt,e),Mt.forEach(t),Nt.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 $t=x.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=1,Vt(e,t,n,r)}finally{yt=o,$t.transition=i}}function Gt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=4,Vt(e,t,n,r)}finally{yt=o,$t.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),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=zt(At,e,t,n,r,o),!0;case"dragenter":return Lt=zt(Lt,e,t,n,r,o),!0;case"mouseover":return Rt=zt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,zt(Mt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,zt(Nt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(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=yo(e=_e(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(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 Qt(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 Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.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),gn=on(j({},pn,{dataTransfer:0})),mn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),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})),Ln=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=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}),Nn=on(Mn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,In=null;s&&"documentMode"in document&&(In=document.documentMode);var zn=s&&"TextEvent"in window&&!In,Dn=s&&(!Pn||In&&8<In&&11>=In),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 Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var $n={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?!!$n[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 Qn(e,t){if("change"===e)return t}var Jn=!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;Jn=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)),Me(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 gr=s&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==q(r)||("selectionStart"in(r=mr)&&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},br&&lr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}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"),Lr=Cr("transitionend"),Rr=new Map,Mr="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 Nr(e,t){Rr.set(e,t),i(t,[e])}for(var Or=0;Or<Mr.length;Or++){var Pr=Mr[Or];Nr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Nr(Er,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(Ar,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Lr,"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 Ir="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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));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(He.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=De;ze=!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[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Hr]){e[Hr]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(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=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Me(function(){var r=i,o=_e(n),a=[];e:{var s=Rr.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=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;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=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Er:case Tr:case Ar:l=vn;break;case Lr:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=yn;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 g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Ne(h,f))&&c.push(Kr(h,g,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)||!yo(u)&&!u[go])&&(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)?yo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(g,h+"leave",l,n,o)).target=d,s.relatedTarget=p,g=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,g=f;g;g=Vr(g))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 m=Qn;else if(Un(s))if(Jn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Kn(a,m,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)&&(mr=v,vr=r,br=null);break;case"focusout":br=vr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(b=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(v=Gr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Hn(n))&&(y.data=b))),(b=zn?function(e,t){switch(e){case"compositionend":return Hn(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(Wn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Jt=null,Wn=!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=b))}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=Ne(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ne(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=Ne(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Ne(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,Qr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Qr,"")}function Xr(e,t,r){if(t=Jr(t),Jr(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 Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(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,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||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[go])||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={},Lo=Co(Ao),Ro=Co(!1),Mo=Ao;function No(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(Ro),Eo(Lo)}function Io(e,t,r){if(Lo.current!==Ao)throw Error(n(168));To(Lo,t),To(Ro,r)}function zo(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,Mo=Lo.current,To(Lo,e),To(Ro,Ro.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Mo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(Lo),To(Lo,e)):Eo(Ro),To(Ro,r)}var Fo=null,Bo=!1,Ho=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Ho&&null!==Fo){Ho=!0;var e=0,t=yt;try{var n=Fo;for(yt=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,$o),t}finally{yt=t,Ho=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Qo=null,Jo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Qo=e;var r=Jo;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,Jo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Jo=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===Qo;)Qo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Jo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mu(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!==Qo?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(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 gi(e){null===ai?ai=[e]:ai.push(e)}var mi=x.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 bi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(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===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&yi(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=Iu(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 _:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case k:return(t=ju(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(t))return(t=Iu(t,e.mode,n,null)).return=e,t;bi(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 _:return n.key===o?u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case O:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||z(n))return null!==o?null:d(e,t,n,r,null);bi(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 _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case O:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function g(n,i,s,l){for(var u=null,c=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=p(n,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return r(n,d),ii&&Zo(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(n,s[g],l))&&(i=a(d,i,g),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,g),u}for(d=o(n,d);g<s.length;g++)null!==(m=h(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,g),u}function m(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,v=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=p(i,g,b.value,u);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(i,g),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y,g=v}if(b.done)return r(i,g),ii&&Zo(i,m),c;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=f(i,b.value,u))&&(s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(i,m),c}for(g=o(i,g);!b.done;m++,b=l.next())null!==(b=h(g,i,m,b.value,u))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(i,e)}),ii&&Zo(i,m),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){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===O&&yi(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===S?((o=Iu(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 k: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 O:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return g(n,o,a,l);if(z(a))return m(n,o,a,l);bi(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 Li(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 Ri(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Mi(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 Ni=null;function Oi(e){null===Ni?Ni=[e]:Ni.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,Ii(e,r)}function Ii(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 zi=!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,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Wi(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 $i(e,t,n,r){var o=e.updateQueue;zi=!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,g=s;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.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=g.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:zi=!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);zl|=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 Qi(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 Ji(){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=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ga(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 ma(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 ba(){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 ya(){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=ya(),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,zl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(ys=!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,zl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ya(),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)||(ys=!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=ya(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,ys=!0),o=o.queue,za(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ma(9,Ea.bind(null,r,o,i,t),void 0,null),null===Ll)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)&&La(e)}function Ta(e,t,n){return n(function(){Aa(t)&&La(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Ii(e,1);null!==t&&nu(t,e,1,-1)}function Ra(e){var t=ba();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 Ma(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 Na(){return ya().memoizedState}function Oa(e,t,n,r){var o=ba();sa.flags|=e,o.memoizedState=Ma(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ma(t,n,i,r))}sa.flags|=e,o.memoizedState=Ma(1|t,n,i,r)}function Ia(e,t){return Oa(8390656,8,e,t)}function za(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 Ha(){}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=gt(),sa.lanes|=n,zl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Ka(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ga(){return ya().memoizedState}function Va(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Qa(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Ja(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))Qa(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()),Ja(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(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 Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Xa={readContext:Mi,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:Mi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Mi,useEffect:Ia,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=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();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},ba().memoizedState=e},useState:Ra,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Ka.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ll)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ia(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Ll.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-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:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:_a,useRef:Na,useState:function(){return _a(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ua(ya(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ya().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:wa,useRef:Na,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().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)&&We(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),Hi(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),Hi(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),Hi(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=Mi(i):(o=Oo(t)?Mo:Lo.current,i=(r=null!=(r=t.contextTypes))?No(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=Mi(i):(i=Oo(t)?Mo:Lo.current,o.context=No(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),$i(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+=W(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 gs(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 ms(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 bs=x.ReactCurrentOwner,ys=!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 Ri(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||ys?(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||Nu(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(ys=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(ys=!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,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Nl),Nl|=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)?Mo:Lo.current;return i=No(t,i),Ri(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||ys?(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(Ri(t,o),null===t.stateNode)$s(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=Mi(u):u=No(t,u=Oo(n)?Mo:Lo.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),zi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ro.current||zi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=zi||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=Mi(l):l=No(t,l=Oo(n)?Mo:Lo.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),zi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ro.current||zi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=zi||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,bs.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 Ls(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Qi(e,t.containerInfo)}function Rs(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xs(e,t,n,r),t.child}var Ms,Ns,Os,Ps,Is={dehydrated:null,treeContext:null,retryLane:0};function zs(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=zu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(r),t.memoizedState=Is,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=zu({mode:"visible",children:o.children},i,0,null),(a=Iu(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=zs(s),t.memoizedState=Is,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),ys||l){if(null!==(o=Ll)){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,Ii(e,i),nu(o,e,i,-1))}return gu(),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++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Jo=e.id,Xo=e.overflow,Qo=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=Iu(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)?zs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Is,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=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&gi(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),Li(e.return,t,n)}function Hs(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 Ws(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),Hs(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}Hs(t,!0,n,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function $s(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),zl|=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,Ji(),Eo(Ro),Eo(Lo),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))),Ns(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<Ir.length;a++)Fr(Ir[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":J(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 be(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,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(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<Ir.length;a++)Fr(Ir[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":J(e,i),a=Q(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 be(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(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&&y(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):gu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Ji(),Ns(e,t),null===e&&Wr(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&&Je()>Wl&&(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*Je()-s.renderingStartTime>Wl&&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=Je(),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&Nl)&&(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 Ji(),Eo(Ro),Eo(Lo),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 Ji(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ms=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}},Ns=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=Q(e,i),r=Q(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 be(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,Qs=!1,Js="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[mo],delete t[vo],delete t[bo])),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:Qs||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),Wt(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(!Qs&&(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(!Qs&&(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?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=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 Js),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(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;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(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:gl(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(gl(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),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):y(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(gl(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(gl(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(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||(Hl=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(c=Qs)||d,gl(t,e),Qs=c):gl(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 g=p.stateNode;if("function"==typeof g.componentWillUnmount){o=p,r=p.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.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=ge("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:gl(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 bl(e,t,n){Xs=e,yl(e)}function yl(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||Qs;s=qs;var u=Qs;if(qs=a,(Qs=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,yl(i),i=i.sibling;Xs=o,qs=s,Qs=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:Qs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qs)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&&Wt(f)}}}break;default:throw Error(n(163))}Qs||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=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Al=0,Ll=null,Rl=null,Ml=0,Nl=0,Ol=Co(0),Pl=0,Il=null,zl=0,Dl=0,jl=0,Fl=null,Bl=null,Hl=0,Wl=1/0,$l=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Ql=0,Jl=null,Xl=-1,Zl=0;function eu(){return 6&Al?Je():-1!==Xl?Xl:Xl=Je()}function tu(e){return 1&e.mode?2&Al&&0!==Ml?Ml&-Ml:null!==mi.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,r,o){if(50<Ql)throw Ql=0,Jl=null,Error(n(185));vt(e,r,o),2&Al&&e===Ll||(e===Ll&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Ml)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Wl=Je()+500,Bo&&$o()))}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===Ll?Ml: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,Wo(e)}(lu.bind(null,e)):Wo(lu.bind(null,e)),ao(function(){!(6&Al)&&$o()}),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=Lu(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===Ll?Ml:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Ll===e&&Ml===t||($l=null,Wl=Je()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Rl?t=0:(Ll=null,Ml=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=Il,fu(e,0),su(e,o),ru(e,Je()),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=mu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Il,fu(e,0),su(e,o),ru(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,$l);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Hl+500-Je())){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,$l),t);break}_u(e,Bl,$l);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=Je()-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,$l),o);break}_u(e,Bl,$l);break;default:throw Error(n(329))}}}return ru(e,Je()),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=mu(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,Je()),null;var r=mu(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=Il,fu(e,0),su(e,t),ru(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,$l),ru(e,Je()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Wl=Je()+500,Bo&&$o())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,!(6&(Al=t))&&$o()}}function du(){Nl=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!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Ji(),Eo(Ro),Eo(Lo),ra();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ll=e,Rl=e=Ou(e.current,null),Ml=Nl=t,Pl=0,Il=null,jl=Dl=zl=0,Bl=Fl=null,null!==Ni){for(t=0;t<Ni.length;t++)if(null!==(r=(n=Ni[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}Ni=null}return e}function pu(e,t){for(;;){var r=Rl;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,Il=t,Rl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ml,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=ms(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(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,Wi(a,ps(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Gl&&Gl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Rl===r&&null!==r&&(Rl=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function gu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Ll||!(268435455&zl)&&!(268435455&Dl)||su(Ll,Ml)}function mu(e,t){var r=Al;Al|=2;var o=hu();for(Ll===e&&Ml===t||($l=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Rl)throw Error(n(261));return Ll=null,Ml=0,Pl}function vu(){for(;null!==Rl;)yu(Rl)}function bu(){for(;null!==Rl&&!qe();)yu(Rl)}function yu(e){var t=kl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xu(e):Rl=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(Rl=n);if(null===e)return Pl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Nl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=yt,i=Tl.transition;try{Tl.transition=null,yt=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===Ll&&(Rl=Ll=null,Ml=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Lu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=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 g=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!==g){var m=g.memoizedProps,v=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);b.__reactInternalSnapshotBeforeUpdate=y}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}g=tl,tl=!1}(e,r),ml(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,bl(r),Qe(),Al=l,yt=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,Je()),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===Jl?Ql++:(Ql=0,Jl=e):Ql=0,$o()}(e,t,r,o)}finally{Tl.transition=i,yt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=yt;try{if(Tl.transition=null,yt=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 g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}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 b=a.sibling;if(null!==b){b.return=a.return,Xs=b;break e}Xs=a.return}}var y=e.current;for(Xs=y;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=y;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,$o(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=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,Ll===e&&(Ml&n)===n&&(4===Pl||3===Pl&&(130023424&Ml)===Ml&&500>Je()-Hl?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=Ii(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 Lu(e,t){return Ve(e,t)}function Ru(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 Mu(e,t,n,r){return new Ru(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Mu(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)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Iu(r.children,i,a,t);case C:s=8,i|=8;break;case E:return(e=Mu(12,r,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Mu(13,r,t,i)).elementType=R,e.lanes=a,e;case M:return(e=Mu(19,r,t,i)).elementType=M,e.lanes=a,e;case P:return zu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case L:s=11;break e;case N:s=14;break e;case O:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Mu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Mu(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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(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=Mu(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 Hu(e){if(!e)return Ao;e:{if(We(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 zo(e,r,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=Hu(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 $u(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Hu(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),Hi(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||Ro.current)ys=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ls(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Qi(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 Ws(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);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;$s(e,t),e=t.pendingProps;var i=No(t,Lo.current);Ri(t,r),i=ma(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($s(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===N)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(Ls(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),$i(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=Rs(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Rs(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 Qi(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&&!Ro.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),Li(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),Li(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,Ri(t,r),o=o(i=Mi(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),$s(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Ri(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Ws(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 Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(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)}}$u(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=Wu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[go]=a.current,Wr(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[go]=l.current,Wr(8===e.nodeType?e.parentNode:e),cu(function(){$u(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));$u(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(){$u(null,e,null,null)}),t[go]=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&&(bt(t,1|n),ru(t,Je()),!(6&Al)&&(Wl=Je()+500,$o()))}break;case 13:cu(function(){var t=Ii(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=Ii(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=Ii(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=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,Le=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:yo,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:x.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 c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,c.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},c.createRoot=function(e,t){if(!Qu(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[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yu(t)},c.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},c.flushSync=function(e){return cu(e)},c.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!0,r)},c.hydrateRoot=function(e,t,r){if(!Qu(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=Wu(t,null,e,1,null!=r?r:null,i,0,a,s),e[go]=t.current,Wr(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)},c.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!1,r)},c.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},c.unstable_batchedUpdates=uu,c.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},c.version="18.3.1-next-f1338f8080-20240426",c}function S(){if(b)return u.exports;return b=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)}}(),u.exports=k(),u.exports}var C=function(){if(y)return l;y=1;var e=S();return l.createRoot=e.createRoot,l.hydrateRoot=e.hydrateRoot,l}();var E=h(),T=o(E),A=t({__proto__:null,default:T},[E]);const L=E.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 R(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function M(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const N="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,O=N&&"documentMode"in document?document.documentMode:null,P=N&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),I=N&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),z=!(!N||!("InputEvent"in window)||O)&&"getTargetRanges"in new window.InputEvent("input"),D=N&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),j=N&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,F=N&&/Android/.test(navigator.userAgent),B=N&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H=N&&F&&B,W=N&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&P&&!B,$=0,U=1,K=2,G=1,V=2,Y=3,q=4,Q=5,J=6,X=D||j||W?" ":"​",Z="\n\n",ee=I?" ":X,te={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},ne={directionless:1,unmergeable:2},re={center:2,end:6,justify:4,left:1,right:3,start:5},oe={[V]:"center",[J]:"end",[q]:"justify",[G]:"left",[Y]:"right",[Q]:"start"},ie={normal:0,segmented:2,token:1},ae={[$]:"normal",[K]:"segmented",[U]:"token"},se="$config";function le(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(No(a)&&le(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let ue=!1,ce=0;function de(e){ce=e.timeStamp}function fe(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==ki(e,n)}function pe(e,t,n){const r=ca(ra(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&zi(t,a,o,i,!1)}function he(e,t,n){if(Rr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return di(t)&&n.isAttached()}function ge(e,t,n,r){for(let o=e;o&&!Sa(o);o=Xi(o)){const e=ki(o,t);if(void 0!==e){const t=_i(e,n);if(t)return Io(t)||!fa(o)?void 0:[o,t]}else if(o===r)return[r,Ai(n)]}}function me(e,t,n){ue=!0;const r=performance.now()-ce>100;try{Ao(e,()=>{const o=Vr()||function(e){return e.getEditorState().read(()=>{const e=Vr();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=ge(p,e,s,a);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&xr(m)&&di(p)&&he(o,p,m)&&pe(p,m,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=wi(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!fe(r,i,e)){if(I){const e=(fa(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];(fe(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(g,m)}}}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||fe(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Li(o),I&&qi(e)&&o.insertRawText(c))})}finally{ue=!1}}function ve(e){const t=e._observer;null!==t&&me(e,t.takeRecords(),t)}function be(e){!function(e){0===ce&&ra(e).addEventListener("textInput",de,!0)}(e),e._observer=new MutationObserver((t,n)=>{me(e,t,n)})}let ye=class{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Se).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}};function xe(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}=Ea(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}}let _e=class e{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);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 ke(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new e(t,n,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}(n.sharedConfigMap,o,r),o,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=ke(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 we(e){return e.__state?e.__state.sharedNodeState:ei(ba(),e.getType()).sharedNodeState}function ke(e){if(e)for(const t in e)return e}function Se(e){return e}function Ce(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 Ee(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)&&(e.add(t),n!==(o?o[t]:void 0)))return!0;return!1}function Te(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ae(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&&Ce(n,e,t)||t&&Ce(n,t,e)||e&&Ee(n,e,t)||t&&Ee(n,t,e))}(l,u))}function Le(e,t){const n=e.mergeWithSibling(t),r=mo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Re(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&xr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Ae(t,r)){r=Le(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&xr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ae(r,n)){r=Le(r,n);break}break}n.remove()}}else r.remove()}function Me(e){return Ne(e.anchor),Ne(e.focus),e}function Ne(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),xr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!No(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Oe,Pe,Ie,ze,De,je,Fe,Be,He,We,$e="",Ue=null,Ke=null,Ge=!1,Ve=!1;function Ye(e,t){const n=Fe.get(e);if(null!==t){const n=ct(e);n.parentNode===t&&t.removeChild(n)}if(Be.has(e)||Pe._keyToDOMMap.delete(e),No(n)){const e=it(n,Fe);qe(e,0,e.length-1,null)}void 0!==n&&Ki(We,Ie,ze,n,"destroyed")}function qe(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&Ye(t,r)}}function Qe(e,t){e.setProperty("text-align",t)}const Je="40px";function Xe(e,t){const n=Oe.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(Pe._rootElement||e).getPropertyValue("--lexical-indent-base-value")||Je;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function Ze(e,t){const n=e.style;0===t?Qe(n,""):1===t?Qe(n,"left"):2===t?Qe(n,"center"):3===t?Qe(n,"right"):4===t?Qe(n,"justify"):5===t?Qe(n,"start"):6===t&&Qe(n,"end")}function et(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(Do(e))return null;const n=e.getParentOrThrow();return Do(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function tt(e,t){const n=Be.get(e);void 0===n&&R(60);const r=n.createDOM(Oe,Pe);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,Pe),xr(n)?r.setAttribute("data-lexical-text","true"):Io(n)&&r.setAttribute("data-lexical-decorator","true"),No(n)){const e=n.__indent,t=n.__size;if(et(r,n),0!==e&&Xe(r,e),0!==t){const e=t-1;nt(it(n,Be),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&Ze(r,o),n.isInline()||ot(null,n,r)}else{const t=n.getTextContent();if(Io(n)){const t=n.decorate(Pe,Oe);null!==t&&st(e,t),r.contentEditable="false"}$e+=t}return null!==t&&t.insertChild(r),Ki(We,Ie,ze,n,"created"),r}function nt(e,t,n,r,o){const i=$e;$e="";let a=n;for(;a<=r;++a){tt(e[a],o);const t=Be.get(e[a]);null!==t&&xr(t)?null===Ue&&(Ue=t.getFormat(),Ke=t.getStyle()):No(t)&&a<r&&!t.isInline()&&($e+=Z)}o.element.__lexicalTextContent=$e,$e=i+$e}function rt(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return nr(e)?"line-break":Io(e)&&e.isInline()?"decorator":null}return"empty"}return null}function ot(e,t,n){const r=rt(e,Fe),o=rt(t,Be);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function it(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&R(101),n.push(r),r=e.__next}return n}function at(e,t){const n=Fe.get(e);let r=Be.get(e);void 0!==n&&void 0!==r||R(61);const o=Ge||je.has(e)||De.has(e),i=Ji(Pe,e);if(n===r&&!o){let e;if(No(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return $e+=e,i}if(n!==r&&o&&Ki(We,Ie,ze,r,"updated"),r.updateDOM(n,i,Oe)){const n=tt(e,null);return null===t&&R(62),t.replaceChild(n,i),Ye(e,null),n}if(No(n)){No(r)||R(334,e);const t=r.__indent;(Ge||t!==n.__indent)&&Xe(i,t);const a=r.__format;if((Ge||a!==n.__format)&&Ze(i,a),o)(function(e,t,n){var r;Ue=null,Ke=null,function(e,t,n){const r=$e,o=e.__size,i=t.__size;$e="";const a=n.element;if(1===o&&1===i){const n=e.__first,o=t.__first;if(n===o)at(n,a);else{const e=ct(n),t=tt(o,null);try{a.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const i=`${r.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw r}Ye(n,null)}const i=Be.get(o);xr(i)&&null===Ue&&(Ue=i.getFormat(),Ke=i.getStyle())}else{const r=it(e,Fe),s=it(t,Be);if(r.length!==o&&R(227),s.length!==i&&R(228),0===o)0!==i&&nt(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;qe(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=lt(at(r,i.element)),d++,f++;else{if(void 0===u&&(u=ut(n,f)),void 0===l)l=ut(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=lt(ct(e)),Ye(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=Ji(Pe,r);e!==c&&i.withBefore(c).insertChild(e),c=lt(at(r,i.element)),d++,f++}else tt(r,i.withBefore(c)),f++}const o=Be.get(r);null!==o&&xr(o)?null===Ue&&(Ue=o.getFormat(),Ke=o.getStyle()):No(o)&&f<=s&&!o.isInline()&&($e+=Z)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:Pe.getElementByKey(e);nt(n,0,f,s,i.withBefore(t))}else h&&!p&&qe(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=$e,$e=r+$e}(e,t,t.getDOMSlot(n)),r=t,null==Ue||Ue===r.__textFormat||Ve||r.setTextFormat(Ue),function(e){null==Ke||Ke===e.__textStyle||Ve||e.setTextStyle(Ke)}(t)})(n,r,i),Do(r)||r.isInline()||ot(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),$e+=t}if((Ge||r.__dir!==n.__dir)&&(et(i,r),Do(r)&&!Ge))for(const e of r.getChildren())No(e)&&et(Ji(Pe,e.getKey()),e)}else{const t=r.getTextContent();if(Io(r)){const t=r.decorate(Pe,Oe);null!==t&&st(e,t)}$e+=t}if(!Ve&&Do(r)&&r.__cachedText!==$e){const e=r.getWritable();e.__cachedText=$e,r=e}return i}function st(e,t){let n=Pe._pendingDecorators;const r=Pe._decorators;if(null===n){if(r[e]===t)return;n=Ci(Pe)}n[e]=t}function lt(e){let t=e.nextSibling;return null!==t&&t===Pe._blockCursorElement&&(t=t.nextSibling),t}function ut(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function ct(e){const t=He.get(e);return void 0===t&&R(75,e),t}function dt(e){return{type:e}}const ft=dt("SELECTION_CHANGE_COMMAND"),pt=dt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ht=dt("CLICK_COMMAND"),gt=dt("BEFORE_INPUT_COMMAND"),mt=dt("INPUT_COMMAND"),vt=dt("COMPOSITION_START_COMMAND"),bt=dt("COMPOSITION_END_COMMAND"),yt=dt("DELETE_CHARACTER_COMMAND"),xt=dt("INSERT_LINE_BREAK_COMMAND"),_t=dt("INSERT_PARAGRAPH_COMMAND"),wt=dt("CONTROLLED_TEXT_INSERTION_COMMAND"),kt=dt("PASTE_COMMAND"),St=dt("REMOVE_TEXT_COMMAND"),Ct=dt("DELETE_WORD_COMMAND"),Et=dt("DELETE_LINE_COMMAND"),Tt=dt("FORMAT_TEXT_COMMAND"),At=dt("UNDO_COMMAND"),Lt=dt("REDO_COMMAND"),Rt=dt("KEYDOWN_COMMAND"),Mt=dt("KEY_ARROW_RIGHT_COMMAND"),Nt=dt("MOVE_TO_END"),Ot=dt("KEY_ARROW_LEFT_COMMAND"),Pt=dt("MOVE_TO_START"),It=dt("KEY_ARROW_UP_COMMAND"),zt=dt("KEY_ARROW_DOWN_COMMAND"),Dt=dt("KEY_ENTER_COMMAND"),jt=dt("KEY_SPACE_COMMAND"),Ft=dt("KEY_BACKSPACE_COMMAND"),Bt=dt("KEY_ESCAPE_COMMAND"),Ht=dt("KEY_DELETE_COMMAND"),Wt=dt("KEY_TAB_COMMAND"),$t=dt("INSERT_TAB_COMMAND"),Ut=dt("INDENT_CONTENT_COMMAND"),Kt=dt("OUTDENT_CONTENT_COMMAND"),Gt=dt("DROP_COMMAND"),Vt=dt("FORMAT_ELEMENT_COMMAND"),Yt=dt("DRAGSTART_COMMAND"),qt=dt("DRAGOVER_COMMAND"),Qt=dt("DRAGEND_COMMAND"),Jt=dt("COPY_COMMAND"),Xt=dt("CUT_COMMAND"),Zt=dt("SELECT_ALL_COMMAND"),en=dt("CLEAR_EDITOR_COMMAND"),tn=dt("CLEAR_HISTORY_COMMAND"),nn=dt("CAN_REDO_COMMAND"),rn=dt("CAN_UNDO_COMMAND"),on=dt("FOCUS_COMMAND"),an=dt("BLUR_COMMAND"),sn=dt("KEY_MODIFIER_COMMAND"),ln=Object.freeze({}),un=[["keydown",function(e,t){cn=e.timeStamp,dn=e.key,t.isComposing()||Qi(t,Rt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;pa(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ao(t,()=>{ri(n)||(vn=!0)})}],["compositionstart",function(e,t){Qi(t,vt,e)}],["compositionend",function(e,t){I?yn=!0:j||!D&&!W?Qi(t,bt,e):(xn=!0,_n=e.data)}],["input",function(e,t){e.stopPropagation(),Ao(t,()=>{t.dispatchCommand(mt,e)},{event:e}),pn=null}],["click",function(e,t){Ao(t,()=>{const n=Vr(),r=ca(ra(t)),o=Yr();if(r)if(Rr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!Do(i)&&1===Ti().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&i!==n.focus.getNode()){const e=Ta(i,e=>No(e)&&!e.isInline());No(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(fa(n)||di(n))&&Li(Gr(o,r,t,e))}Qi(t,ht,e)})}],["cut",ln],["copy",ln],["dragstart",ln],["dragover",ln],["dragend",ln],["paste",ln],["focus",ln],["blur",ln],["drop",ln]];z&&un.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||I&&qi(t)||"insertCompositionText"!==n&&Qi(t,gt,e)}(e,t)]);let cn=0,dn=null,fn=0,pn=null;const hn=new WeakMap,gn=new WeakMap;let mn=!1,vn=!1,bn=!1,yn=!1,xn=!1,_n="",wn=null,kn=[0,"",0,"root",0];function Sn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=mo(),u=ca(ra(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!xr(s)||(!o&&(!z||fn<r+50)||s.isDirty()&&p<2||Mi(n))&&i.offset!==a.offset&&!s.isComposing()||ci(s)||s.isDirty()&&p>1||(o||!z)&&null!==f&&!s.isComposing()&&c!==pi(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=ui(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(xr(t)||No(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function Cn(e,t){return di(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function En(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;mn&&(mn=!1,Cn(r,o)&&Cn(i,a)&&!wn)||Ao(t,()=>{if(!n)return void Li(null);if(!ii(t,r,i))return;let s=Vr();if(wn&&Rr(s)&&s.isCollapsed()){const e=s.anchor,t=wn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=wn.clone(),Li(s))}if(wn=null,Rr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=ra(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=kn,f=Ti(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)Tn(s,a,l);else if("text"===n.type)xr(r)||R(141),An(s,r);else if("element"===n.type&&!p){No(r)||R(259);const e=n.getNode();e.isEmpty()?function(e,t){Tn(e,t.getTextFormat(),t.getTextStyle())}(s,e):Tn(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(xr(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}}Qi(t,ft,void 0)})}function Tn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function An(e,t){Tn(e,t.getFormat(),t.getStyle())}function Ln(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Rn(e){const t=e.inputType,n=Ln(e),r=mo(),o=Vr();if("deleteContentBackward"===t){if(null===o){const e=Yr();if(!Rr(e))return!0;Li(e.clone())}if(Rr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===dn&&i<cn+30&&r.isComposing()&&t){if(yi(null),cn=0,setTimeout(()=>{Ao(r,()=>{yi(null)})},30),Rr(o)){const e=o.anchor.getNode();e.markDirty(),xr(e)||R(142),An(o,e)}}else{yi(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=H&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Io(Yi(o.anchor,!0))),!l){Qi(r,yt,!0);const e=Vr();H&&Rr(e)&&e.isCollapsed()&&(wn=e,setTimeout(()=>wn=null))}}return!0}}var i;if(!Rr(o))return!0;const a=e.data;null!==pn&&Ii(!1,r,pn),o.dirty&&null===pn||!o.isCollapsed()||Do(o.anchor.getNode())||null===n||o.applyDOMRange(n),pn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),Qi(r,xt,!1);else if(a===Z)e.preventDefault(),Qi(r,_t,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&Sn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),Qi(r,wt,a)):pn=a;return fn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Qi(r,wt,e);break;case"insertFromComposition":yi(null),Qi(r,wt,e);break;case"insertLineBreak":yi(null),Qi(r,xt,!1);break;case"insertParagraph":yi(null),bn&&!j?(bn=!1,Qi(r,xt,!1)):Qi(r,_t,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Qi(r,kt,e);break;case"deleteByComposition":(function(e,t){return e!==t||No(e)||No(t)||!ui(e)||!ui(t)})(u,c)&&Qi(r,St,e);break;case"deleteByDrag":case"deleteByCut":Qi(r,St,e);break;case"deleteContent":Qi(r,yt,!1);break;case"deleteWordBackward":Qi(r,Ct,!0);break;case"deleteWordForward":Qi(r,Ct,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Qi(r,Et,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Qi(r,Et,!1);break;case"formatStrikeThrough":Qi(r,Tt,"strikethrough");break;case"formatBold":Qi(r,Tt,"bold");break;case"formatItalic":Qi(r,Tt,"italic");break;case"formatUnderline":Qi(r,Tt,"underline");break;case"historyUndo":Qi(r,At,void 0);break;case"historyRedo":Qi(r,Lt,void 0)}return!0}function Mn(e){if(fa(e.target)&&ri(e.target))return!0;const t=mo(),n=Vr(),r=e.data,o=Ln(e);if(null!=r&&Rr(n)&&Sn(n,o,r,e.timeStamp,!1)){yn&&(Pn(t,r),yn=!1);const o=n.anchor.getNode(),i=ca(ra(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;z&&!n.isCollapsed()&&xr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Pi(i.anchorNode)||Qi(t,wt,r);const u=r.length;I&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),H&&t.isComposing()&&(cn=0,yi(null))}else Ii(!1,t,null!==r?r:void 0),yn&&(Pn(t,r||void 0),yn=!1);return function(){po();ve(mo())}(),!0}function Nn(e){const t=mo(),n=Vr();if(Rr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();yi(r.key),ea(Jn),(e.timeStamp<cn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||xr(o)&&o.getStyle()!==n.style)&&Qi(t,wt,ee)}return!0}function On(e){return Pn(mo(),e.data),ea(Xn),!0}function Pn(e,t){const n=e._compositionKey;if(yi(null),null!==n&&null!=t){if(""===t){const t=_i(n),r=pi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&xr(t)){const n=ca(ra(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),zi(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=Vr();if(Rr(t)||Nr(t)){if(Rr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void Qi(e,Dt,null)}}}Ii(!0,e,t)}function In(e){const t=mo();if(null==e.key)return!0;if(xn){if(Wi(e))return Ao(t,()=>{Pn(t,_n)}),xn=!1,_n="",!0;xn=!1,_n=""}if(function(e){return Fi(e,"ArrowRight",{shiftKey:"any"})}(e))Qi(t,Mt,e);else if(function(e){return Fi(e,"ArrowRight",Bi)}(e))Qi(t,Nt,e);else if(function(e){return Fi(e,"ArrowLeft",{shiftKey:"any"})}(e))Qi(t,Ot,e);else if(function(e){return Fi(e,"ArrowLeft",Bi)}(e))Qi(t,Pt,e);else if(function(e){return Fi(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))Qi(t,It,e);else if(function(e){return Fi(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))Qi(t,zt,e);else if(function(e){return Fi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))bn=!0,Qi(t,Dt,e);else if(function(e){return" "===e.key}(e))Qi(t,jt,e);else if(function(e){return P&&Fi(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),bn=!0,Qi(t,xt,!0);else if(function(e){return Fi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))bn=!1,Qi(t,Dt,e);else if(function(e){return Fi(e,"Backspace",{shiftKey:"any"})||P&&Fi(e,"h",{ctrlKey:!0})}(e))Wi(e)?Qi(t,Ft,e):(e.preventDefault(),Qi(t,yt,!0));else if(function(e){return"Escape"===e.key}(e))Qi(t,Bt,e);else if(function(e){return Fi(e,"Delete",{})||P&&Fi(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),Qi(t,yt,!1)):Qi(t,Ht,e);else if(function(e){return Fi(e,"Backspace",Hi)}(e))e.preventDefault(),Qi(t,Ct,!0);else if(function(e){return Fi(e,"Delete",Hi)}(e))e.preventDefault(),Qi(t,Ct,!1);else if(function(e){return P&&Fi(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),Qi(t,Et,!0);else if(function(e){return P&&(Fi(e,"Delete",{metaKey:!0})||Fi(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),Qi(t,Et,!1);else if(function(e){return Fi(e,"b",Bi)}(e))e.preventDefault(),Qi(t,Tt,"bold");else if(function(e){return Fi(e,"u",Bi)}(e))e.preventDefault(),Qi(t,Tt,"underline");else if(function(e){return Fi(e,"i",Bi)}(e))e.preventDefault(),Qi(t,Tt,"italic");else if(function(e){return Fi(e,"Tab",{shiftKey:"any"})}(e))Qi(t,Wt,e);else if(function(e){return Fi(e,"z",Bi)}(e))e.preventDefault(),Qi(t,At,void 0);else if(function(e){return P?Fi(e,"z",{metaKey:!0,shiftKey:!0}):Fi(e,"y",{ctrlKey:!0})||Fi(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),Qi(t,Lt,void 0);else{const n=t._editorState._selection;null===n||Rr(n)?$i(e)&&(e.preventDefault(),Qi(t,Zt,e)):function(e){return Fi(e,"c",Bi)}(e)?(e.preventDefault(),Qi(t,Jt,e)):function(e){return Fi(e,"x",Bi)}(e)?(e.preventDefault(),Qi(t,Xt,e)):$i(e)&&(e.preventDefault(),Qi(t,Zt,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(sn,e),!0}function zn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Dn=new Map;function jn(e){const t=function(e){const t=na(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=si(t.anchorNode);if(null===n)return;vn&&(vn=!1,Ao(n,()=>{const r=Yr(),o=t.anchorNode;(fa(o)||di(o))&&Li(Gr(r,t,n,e))}));const r=Ni(n),o=r[r.length-1],i=o._key,a=Dn.get(i),s=a||o;s!==n&&En(t,s,!1),En(t,n,!0),n!==o?Dn.set(i,n):a&&Dn.delete(i)}function Fn(e){e._lexicalHandled=!0}function Bn(e){return!0===e._lexicalHandled}function Hn(e,t,n){po();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=Vr();if(!Rr(t)||!No(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return ta(o,e)&&n.set(e.__key,0,"element"),ta(i,e)&&r.set(e.__key,0,"element"),t}(e);let a=!1;if(Rr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Jr(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(Jr(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Nr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Rr(i)&&t&&!a){const t=e.getIndexWithinParent();vi(e),qr(i,o,t,-1)}else vi(e);n||oa(o)||o.canBeEmpty()||!o.isEmpty()||Hn(o,t),t&&i&&Do(o)&&o.isEmpty()&&o.selectEnd()}const Wn=Symbol.for("ephemeral");function $n(e){return e[Wn]||!1}let Un=class{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ea(this);return void 0===e&&R(64,this.name),e}static clone(e){R(65,this.name)}$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}),mi(this,e)}getType(){return this.__type}isInline(){R(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=_i(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||Vr();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(xr(this))return n;if(Rr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Io(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:_i(e)}getParentOrThrow(){const e=this.getParent();return null===e&&R(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(oa(t))return No(e)||e===this&&Io(e)||R(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&R(67,this.__key),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:_i(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:_i(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=No(this)?this:this.getParent(),n=No(e)?e:e.getParent(),r=t&&n?os(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=os(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ts(t):("same"!==t.type&&"ancestor"!==t.type&&R(279),!1)))}isParentOf(e){const t=os(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=No(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&&R(68),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=mo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if($n(this))return this;const e=_i(this.__key);return null===e&&R(113),e}getWritable(){if($n(this))return this;po();const e=go(),t=mo(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=Vr();if(null!==a&&a.setCachedNodes(null),i.has(r))return bi(o),o;const s=wa(o);return i.add(r),bi(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){R(70)}updateDOM(e,t,n){R(71)}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){R(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of we(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 _e(t,we(t));return t.__state=n,n}(e).updateFromJSON(o),n}(this,e)}static transform(){return null}remove(e){Hn(this,!0,e)}replace(e,t){po();let n=Vr();null!==n&&(n=n.clone()),sa(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;vi(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(Hn(r,!1,!0),null===u?s.__first=i:u.getWritable().__next=i,a.__prev=d,null===c?s.__last=i:c.getWritable().__prev=i,a.__next=f,a.__parent=p,s.__size=l,t&&(No(this)&&No(a)||R(139),this.getChildren().forEach(e=>{a.append(e)})),Rr(n)){Li(n);const e=n.anchor,t=n.focus;e.key===o&&Ar(e,a),t.key===o&&Ar(t,a)}return xi()===o&&yi(i),a}insertAfter(e,t=!0){po(),sa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=Vr();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(vi(r),Rr(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:l.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Rr(i)){const e=this.getIndexWithinParent();qr(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){po(),sa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;vi(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=Vr();return t&&Rr(u)&&qr(u,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Ko()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){po();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(No(n))return n.select();if(!xr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){po();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(No(n))return n.select(0,0);if(!xr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};const Kn="historic",Gn="history-merge",Vn="collaboration",Yn="skip-scroll-into-view",qn="skip-dom-selection",Qn="skip-selection-focus",Jn="composition-start",Xn="composition-end";let Zn=class e extends Un{static getType(){return"linebreak"}static clone(t){return new e(t.__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&&ma(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&rr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&ma(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&rr(r))return!0}return!1}(e)?null:{conversion:er,priority:0}}}static importJSON(e){return tr().updateFromJSON(e)}};function er(e){return{node:tr()}}function tr(){return aa(new Zn)}function nr(e){return e instanceof Zn}function rr(e){return di(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function or(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function ir(e,t){return 1&t?"strong":2&t?"em":"span"}function ar(e,t,n,r,o){const i=r.classList;let a=Ui(o,"base");void 0!==a&&i.add(...a),a=Ui(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 te){const r=te[e];if(a=Ui(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 sr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?X:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||I){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 lr(e,t,n,r,o,i){sr(o,e,t);const a=i.theme.text;void 0!==a&&ar(0,0,r,e,a)}function ur(e,t){const n=document.createElement(t);return n.appendChild(e),n}let cr=class e extends Un{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new e(t.__text,t.__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 ae[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===xi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=te[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return hi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=or(0,n),o=ir(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)),lr(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=or(0,o),s=or(0,i),l=ir(0,o),u=ir(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&R(48);const o=document.createElement(u);return lr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&R(49)),sr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&ar(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:gr,priority:0}),b:()=>({conversion:fr,priority:0}),code:()=>({conversion:br,priority:0}),em:()=>({conversion:br,priority:0}),i:()=>({conversion:br,priority:0}),mark:()=>({conversion:br,priority:0}),s:()=>({conversion:br,priority:0}),span:()=>({conversion:dr,priority:0}),strong:()=>({conversion:br,priority:0}),sub:()=>({conversion:br,priority:0}),sup:()=>({conversion:br,priority:0}),u:()=>({conversion:br,priority:0})}}static importJSON(e){return yr().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 fa(t)||R(132),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=ur(t,"b")),this.hasFormat("italic")&&(t=ur(t,"i")),this.hasFormat("strikethrough")&&(t=ur(t,"s")),this.hasFormat("underline")&&(t=ur(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?te[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?ne[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=hi(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=ie[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){po();let n=e,r=t;const o=Vr(),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(!Rr(o))return $r(a,n,a,r,"text","text");{const e=xi();e!==o.anchor.key&&e!==o.focus.key||yi(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=Vr();if(r&&Rr(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){po();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=xi(),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 g=!1,m=null,v=null;const b=Vr();if(Rr(b)){const[e,t]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=yr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Te(t,d),g=!0):d=t.setTextContent(u);const y=[d];for(let e=1;e<l;e++){const n=yr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Te(t,n);const i=n.__key;o===r&&yi(i),y.push(n)}const x=m?m.offset:null,_=v?v.offset:null;let w=0;for(const e of y){if(!m&&!v)break;const t=w+e.getTextContentSize();if(null!==m&&null!==x&&x<=t&&x>=w&&(m.set(e.getKey(),x-w,"text"),x<t&&(m=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&&bi(t),null!==n&&bi(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Rr(b)&&qr(b,c,t,l-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||R(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;xi()===r&&yi(n);const a=Vr();if(Rr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&Xr(o,t,n,e,i),null!==s&&s.key===r&&Xr(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 dr(e){return{forChild:_r(e.style),node:null}}function fr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:_r(t.style,n?void 0:"bold"),node:null}}const pr=new WeakMap;function hr(e){if(!fa(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function gr(e){const t=e;null===e.parentElement&&R(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=pr.get(n))&&!hr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)pr.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(tr()):"\t"===r?t.push(kr()):""!==r&&t.push(yr(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=mr(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=mr(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:yr(n)}}function mr(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,fa(n)){const e=n.style.display;if(""===e&&!ga(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(di(n))return n;if("BR"===n.nodeName)return null}}const vr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function br(e){const t=vr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:_r(e.style,t),node:null}}function yr(e=""){return aa(new cr(e))}function xr(e){return e instanceof cr}function _r(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=>xr(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 wr extends cr{static getType(){return"tab"}static clone(e){return new wr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=Ui(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return kr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&M(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||R(286),this}setDetail(e){return 2!==e&&R(127),this}setMode(e){return"normal"!==e&&R(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function kr(){return aa(new wr)}function Sr(e){return e instanceof wr}class Cr{key;offset;type;_selection;constructor(e,t,n){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){return this.key===e.key?this.offset<e.offset:es(ps(is(this,"next")),ps(is(e,"next")))<0}getNode(){const e=_i(this.key);return null===e&&R(20),e}set(e,t,n,r){const o=this._selection,i=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,fo()||(xi()===i&&yi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function Er(e,t,n){return new Cr(e,t,n)}function Tr(e,t){let n=t.__key,r=e.offset,o="element";if(xr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!No(t)){const e=t.getNextSibling();if(xr(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 Ar(e,t){if(No(t)){const n=t.getLastDescendant();No(n)||xr(n)?Tr(e,n):Tr(e,t)}else Tr(e,t)}let Lr=class e{_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(!Nr(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 e(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(xr(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=_i(e);null!==t&&n.push(t)}return fo()||(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((Vr()||Yr())===this&&e[0]){const t=Wa(e[0],"next");ss(Xa(t,t))}for(const t of e)t.remove()}};function Rr(e){return e instanceof Mr}class Mr{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!!Rr(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(ja(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;No(e)&&i.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Da(e.focus)&&No(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Ga(e.focus.origin,"previous");ja(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Va(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!No(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ps(e.anchor),r=ps(e.anchor.getFlipped()),o=e=>za(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(ms(us(this),"next"));return fo()||(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]=Pr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(No(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,xr(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!Io(d)&&!nr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=mo(),n=t.getEditorState()._selection,r=Hr(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),Me(this)}clone(){const e=this.anchor,t=this.focus;return new Mr(Er(e.key,e.offset,e.type),Er(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=hi(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=te[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(tr()):"\t"===r?n.push(kr()):n.push(yr(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=yr();if(a.setFormat(n),a.setStyle(r),Go(i))i.splice(0,0,[a]);else{const e=Do(o)?Ko().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,ps(is(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];xr(d)||R(26);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&&(ci(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(xr(t)&&t.canInsertTextBefore()&&!ci(t)||(t=yr(),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&&(ci(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(xr(t)&&!ci(t)||(t=yr(),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=yr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||No(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Br(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(ui(d)){const t=yr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Sr(d)){const t=yr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=yr(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=No(d)?d:d.getParentOrThrow();let r=No(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(xr(h)&&!ui(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=yr(h.getTextContent());h.replace(e),h=e}Do(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),g=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||No(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?g||m.insertAfter(t,!1):t.remove())}if(!g){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(ui(d))if(s===f)d.select();else{const t=yr(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=Vr()===this;ls(this,function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=ms(e,r),a=ds(i.anchor,n),s=ds(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(ja(e))l.add(e.origin.getKey());else if(Da(e)){const{origin:t}=e;No(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=cs(Wa(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=yr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=$a(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(fs(e)){c=ps(e);break}for(const e of s)if(fs(e)){d=ps(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(oa(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,va),d=c&&u(a,e=>n.has(e.getKey())&&va(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;Ga(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(fs);if(p)return Ja(gs(ps(p),e.direction));R(269,JSON.stringify(a.map(e=>e.origin.__key)))}(us(this))),e&&Vr()!==this&&Li(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void yi(null);const n=this.getNodes(),r=[];for(const e of n)xr(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(No(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),yi(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 g=i-1;let m=r[g];const v="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(p===v)return;if(ci(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||ci(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const b=m.getFormatFlags(e,h);v>0&&(v===m.getTextContentSize()||ci(m)||([m]=m.splitText(v)),m.setFormat(b));for(let t=d+1;t<g;t++){const n=r[t],o=n.getFormatFlags(e,b);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(m.__key,v,"text"),this.format=h|b}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=Vr();return Rr(t)||R(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Ta(t,va),r=e[e.length-1];if(No(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=no(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(No(e)||Io(e))&&!e.isInline())){No(n)||R(211,t.constructor.name,t.getType());const o=no(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=Ko();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=nr(o);if(i||Io(o)&&o.isInline()||No(o)&&o.isInline()||xr(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=No(n)&&n.isEmpty()?null:this.insertParagraph(),l=a[a.length-1];let u=a[0];var c;No(c=u)&&va(c)&&!c.isEmpty()&&No(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(No(n)||R(211,t.constructor.name,t.getType()),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&R(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||R(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const d=Ta(i,va);s&&No(d)&&(s.canMergeWhenEmpty()||va(l))&&(d.append(...s.getChildren()),s.remove()),No(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const f=No(n)?n.getLastChild():null;nr(f)&&d!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=Ko();return Ti().splice(this.anchor.offset,0,[e]),e.select(),e}const e=no(this),t=Ta(this.anchor.getNode(),va);No(t)||R(213);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=tr();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]=Pr(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(xr(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(xr(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),xr(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(oo(this,e,t,n))return;const r="move"===e,o=mo(),i=ca(ra(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!No(l)||l.isInline()||l.canBeEmpty()||ua(a,o,s),this.dirty){let e=Ji(o,this.anchor.key),t=Ji(o,this.focus.key);"text"===this.anchor.type&&(e=pi(e)),"text"===this.focus.type&&(t=pi(t)),e&&t&&Zr(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=Do(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(oa(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];ta(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];No(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];No(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&&oo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&No(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(No(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=Qa(is(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(ja(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(No(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ps(t);ls(this,Xa(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(Da(t)){if(No(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(Io(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&No(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=Kr();e.add(t.origin.getKey()),Li(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return ls(this,Xa(!t.origin.isEmpty()&&n.isEmpty()?cs(Wa(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&&Ir(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 Dr(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 Dr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"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;s!==u&&function(e){return!(Mi(e)||zr(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()&&Do(e.getParent())&&null===e.getPreviousSibling()&&Ir(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 Nr(e){return e instanceof Lr}function Or(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Pr(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]:[Or(n),Or(r)]}function Ir(e,t){for(let n=t;n;n=n.getParent()){if(No(n)){if(n.collapseAtStart(e))return!0;if(oa(n))break}if(n.getPreviousSibling())break}return!1}const zr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Dr(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 jr(e,t,n,r){let o,i=t;if(fa(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;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&i--}if(o=Ri(c),xr(o))i=Ua(o,a?"next":"previous");else{let s=Ri(e);if(null===s)return null;if(No(s)){const l=r.getElementByKey(s.getKey());null===l&&R(214);const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),No(s)||R(215),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(No(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=No(c)?c:c.getParentOrThrow()),i=0}xr(c)?(o=c,s=null,i=Ua(c,a?"next":"previous")):c!==s&&a&&!d&&(No(s)||R(216),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Io(s)&&Ri(e)===s?n:n+1,s=s.getParentOrThrow()}if(No(s))return Er(s.__key,i,"element")}}else o=Ri(e);return xr(o)?Er(o.__key,Ua(o,i,"clamp"),"text"):null}function Fr(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&&No(i)&&i.isInline()){const t=i.getPreviousSibling();xr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else No(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):xr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&No(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&No(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();xr(t)&&e.set(t.__key,0,"text")}}}function Br(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Fr(e,n,r),Fr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function Hr(e,t,n,r,o,i){if(null===e||null===n||!ii(o,e,n))return null;const a=jr(e,t,Rr(i)?i.anchor:null,o);if(null===a)return null;const s=jr(n,r,Rr(i)?i.focus:null,o);if(null===s)return null;if("element"===a.type&&"element"===s.type){const t=Ri(e),r=Ri(n);if(Io(t)&&Io(r))return null}return Br(a,s),[a,s]}function Wr(e){return No(e)&&!e.isInline()}function $r(e,t,n,r,o,i){const a=go(),s=new Mr(Er(e,t,o),Er(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function Ur(){const e=Er("root",0,"element"),t=Er("root",0,"element");return new Mr(e,t,0,"")}function Kr(){return new Lr(new Set)}function Gr(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=!ue&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Rr(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)&&Rr(e)&&!ii(n,u,c))return e.clone();const p=Hr(u,d,c,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,v="";if(Rr(e)){const t=e.anchor;if(h.key===t.key)m=e.format,v=e.style;else{const e=h.getNode();xr(e)?(m=e.getFormat(),v=e.getStyle()):No(e)&&(m=e.getTextFormat(),v=e.getTextStyle())}}return new Mr(h,g,m,v)}function Vr(){return go()._selection}function Yr(){return mo()._editorState._selection}function qr(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"),Qr(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")}}Qr(e)}function Qr(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!No(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(xr(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(No(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(xr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(No(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(xr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function Jr(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,xr(r)?(a=r.getTextContentSize(),s="text"):No(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,xr(o)?s="text":No(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 Xr(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 Zr(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){}}function eo(e,t,n){const r=Ji(e,t.getKey());if(No(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function to(e){let t=Vr()||Yr();null===t&&(t=Ti().selectEnd()),t.insertNodes(e)}function no(e){let t=e;e.isCollapsed()||t.removeText();const n=Vr();Rr(n)&&(t=n),Rr(t)||R(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!va(o);){const e=o;if([o,i]=ro(o,i),e.is(o))break}return i}function ro(e,t){const n=e.getParent();if(!n){const e=Ko();return Ti().append(e),e.select(),[Ti(),0]}if(xr(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(!No(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Mr(Er(e.__key,t,"element"),Er(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function oo(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=is(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!hs(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Io(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of Qa(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ja(e))e.origin.isInline()||(l=e);else{if(No(e.origin))continue;Io(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Io(l.origin)&&l.origin.isKeyboardSelectable()){const e=Kr();return e.add(l.origin.getKey()),Li(e),!0}return l=ps(l),s&&as(e.anchor,l),as(e.focus,l),u||!a}let io=null,ao=null,so=!1,lo=!1,uo=0;const co={characterData:!0,childList:!0,subtree:!0};function fo(){return so||null!==io&&io._readOnly}function po(){so&&R(13)}function ho(){uo>99&&R(14)}function go(){return null===io&&R(195,vo()),io}function mo(){return null===ao&&R(196,vo()),ao}function vo(){let e=0;const t=new Set,n=Qo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=li(r);if(ai(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 bo(e,t,n){const r=t.__type,o=ei(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 yo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function xo(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 _o(e){return wo(e,mo()._nodes)}function wo(e,t){const n=e.type,r=t.get(n);void 0===r&&R(17,n);const o=r.klass;e.type!==o.getType()&&R(18,o.name);const i=o.importJSON(e),a=e.children;if(No(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=wo(a[e],t);i.append(n)}return i}function ko(e,t,n){const r=io,o=so,i=ao;io=t,so=!0,ao=e;try{return n()}finally{io=r,so=o,ao=i}}function So(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=io,c=so,d=ao,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){ao=e,io=n,so=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=function(e,t,n,r,o,i){$e="",Ge=2===r,Pe=n,Oe=n._config,Ie=n._nodes,ze=Pe._listeners.mutation,De=o,je=i,Fe=e._nodeMap,Be=t._nodeMap,Ve=t._readOnly,He=new Map(n._keyToDOMMap);const a=new Map;return We=a,at("root",null),Pe=void 0,Ie=void 0,De=void 0,je=void 0,Fe=void 0,Be=void 0,Oe=void 0,He=void 0,We=void 0,a}(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),lo)throw t;return Vo(e,null,r,n),be(e),e._dirtyType=2,lo=!0,So(e,i),void(lo=!1)}finally{p.observe(r,co),e._updating=f,io=u,so=c,ao=d}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,v=e._normalizedNodes,b=e._updateTags,y=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=Ci(e)),delete r[i])}(e,n);const x=o?null:ca(ra(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!b.has(qn)){ao=e,io=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&ua(t,e,r),function(e,t,n,r,o,i){const a=r.anchorNode,s=r.focusNode,l=r.anchorOffset,u=r.focusOffset,c=document.activeElement;if(o.has(Vn)&&c!==i||null!==c&&oi(c))return;if(!Rr(t))return void(null!==e&&ii(n,a,s)&&r.removeAllRanges());const d=t.anchor,f=t.focus,p=d.getNode(),h=f.getNode(),[g,m]=eo(n,p,d.offset),[v,b]=eo(n,h,f.offset),y=t.format,x=t.style,_=t.isCollapsed();let w=g,k=v,S=!1;var C,E,T,A,L;if("text"===d.type?(w=pi(g),S=p.getFormat()!==y||p.getStyle()!==x):Rr(e)&&"text"===e.anchor.type&&(S=!0),"text"===f.type&&(k=pi(v)),null!==w&&null!==k&&(_&&(null===e||S||Rr(e)&&(e.format!==y||e.style!==x))&&(C=y,E=x,T=m,A=d.key,L=performance.now(),kn=[C,E,T,A,L]),l!==m||u!==b||a!==w||s!==k||"Range"===r.type&&_||(null!==c&&i.contains(c)||o.has(Qn)||i.focus({preventScroll:!0}),"element"===d.type))){if(Zr(r,w,m,k,b),!I||!t.isCollapsed()||null===i||o.has(Qn)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(Yn)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Rr(t)&&"element"===t.anchor.type?w.childNodes[m]||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=Zi(n),o=na(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=ra(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=Xi(u)}}(n,t,i)}}mn=!0}}(a,s,e,x,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Rr(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())la(i.getChildAtIndex(a-1))&&(s=!0);else{const t=i.getChildAtIndex(a);if(null!==t&&la(t)){const n=t.getPreviousSibling();(null===n||la(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=_s(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&&ua(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,co),ao=d,io=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,b,g,i),Rr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(ft,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Co("decorator",e,!0,_)),function(e,t,n){const r=Ei(t),o=Ei(n);r!==o&&Co("textcontent",e,!0,o)}(e,t||i,n),Co("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:b}),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,y),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;To(e,t,r)}}}(e)}function Co(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 Eo(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&&R(191),i._flushSync=!0),a&&e._deferred.push(a),xo(e,o.tag)),null==i?To(e,n,o):n()}}return r}function To(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,xo(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=jo(l||s),u=!0),l._flushSync=a;const c=io,d=so,f=ao,p=e._updating;io=l,so=!1,e._updating=!0,ao=e;const h=e._headless||null===e.getRootElement();Xo(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=ca(ra(e));return Rr(n)||null==n?Gr(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Eo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Rr(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);xr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Re(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=xi(),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);xr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Re(r),void 0!==r&&yo(r,i)&&bo(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){uo++;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&&yo(l,i)&&bo(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,uo++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Eo(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()||(No(t)&&le(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(Rr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||R(19)}else Nr(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 So(e)}finally{io=c,so=d,ao=f,e._updating=p,uo=0}const g=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);g?l._flushSync?(l._flushSync=!1,So(e)):u&&ni(()=>{So(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ao(e,t,n){ao===e&&void 0===n?t():To(e,t,n)}class Lo{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Lo(this.element,e,this.after)}withAfter(e){return new Lo(this.element,this.before,e)}withElement(e){return this.element===e?this:new Lo(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&R(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&R(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&R(224),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&&(W||j||D);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=Ro(t,n);o.push(r);const i=Ro(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 Ro(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&&R(225),n.reverse()}class Mo extends Un{__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 oe[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=mo()._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(xr(t)&&e.push(t),No(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;No(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;No(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 No(e)&&e.getLastDescendant()||e||null}const r=t[e];return No(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:_i(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&R(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:_i(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&R(96,this.__key),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(),No(o)&&r!==n-1&&!o.isInline()&&(e+=Z)}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(),No(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=re[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=te[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return hi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){po();const n=Vr();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(xr(e)||No(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(xr(e)||No(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Rr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):$r(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?re[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){$n(this)&&R(324,this.__key,this.__type);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||R(226,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&&R(100);const t=e.getNextSibling(),n=e.__key;vi(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--,vi(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&&R(76),t.__parent=i,a.push(n),d=e}if(e+t===r)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=Vr();if(Rr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Oo(r,t,n)&&Jr(r,r.getNode(),this,u,l),Oo(o,t,n)&&Jr(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||oa(this)||this.remove()}}return o}getDOMSlot(e){return new Lo(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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||oa(this)||this.getChildren().some(xr)||(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 No(e){return e instanceof Mo}function Oo(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 Po extends Un{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Io(e){return e instanceof Po}let zo=class e extends Mo{__cachedText;static getType(){return"root"}static clone(){return new e}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){R(51)}getTextContent(){const e=this.__cachedText;return!fo()&&0!==mo()._dirtyType||null===e?super.getTextContent():e}remove(){R(52)}replace(e){R(53)}insertBefore(e){R(54)}insertAfter(e){R(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)No(e)||Io(e)||R(282);return super.splice(e,t,n)}static importJSON(e){return Ti().updateFromJSON(e)}collapseAtStart(){return!0}};function Do(e){return e instanceof zo}function jo(e){return new Ho(new Map(e._nodeMap))}function Fo(){return new Ho(new Map([["root",new zo]]))}function Bo(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&R(130,n.name),No(e)){const r=t.children;Array.isArray(r)||R(59,n.name);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=Bo(o[e]);r.push(t)}}return t}class Ho{_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 ko(t&&t.editor||null,this,e)}clone(e){const t=new Ho(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return ko(null,this,()=>({root:Bo(Ti())}))}}class Wo extends Mo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class $o extends Mo{static getType(){return"paragraph"}static clone(e){return new $o(e.__key)}createDOM(e){const t=document.createElement("p"),n=Ui(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Uo,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return Ko().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(xr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=Ko();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||xr(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 Uo(e){const t=Ko();if(e.style&&(t.setFormat(e.style.textAlign),ka(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in re&&t.setFormat(n)}return{node:t}}function Ko(){return aa(new $o)}function Go(e){return e instanceof $o}function Vo(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Fo(),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 Yo(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ea(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 Un&&e!==Un?e:void 0}}return t}function qo(e){const t=e||{},n=ao,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Fo(),s=t.namespace||(null!==o?o._config.namespace:Oi()),l=t.editorState,u=[zo,cr,Zn,wr,$o,Wo,...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}Ea(t);const o=t.getType(),i=Yo(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:xe(u[e]),transforms:i})}}const h=new Qo(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(gt,Rn,0),e.registerCommand(mt,Mn,0),e.registerCommand(vt,Nn,0),e.registerCommand(bt,On,0),e.registerCommand(Rt,In,0)}(h),h}let Qo=class{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=Oi(),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&&R(35);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&&R(36,String(e));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&&R(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=_a(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=_a(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(const e of r)for(const t of e.keys()){const e=_i(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:Gn}: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 Qi(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=Ui(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Vo(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=hn.get(e);if(void 0===t)return;const n=gn.get(t);if(void 0===n)return;const r=n-1;r>=0||R(164),hn.delete(e),gn.set(t,r),0===r&&t.removeEventListener("selectionchange",jn);const o=li(e);ai(o)?(function(e){if(null!==e._parentEditor){const t=Ni(e),n=t[t.length-1]._key;Dn.get(n)===e&&Dn.delete(n)}else Dn.delete(e._key)}(o),e.__lexicalEditor=null):o&&R(198);const i=zn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){const t=na(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,be(this),this._updateTags.add(Gn),So(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;hn.set(e,n);const r=gn.get(n)??0;r<1&&n.addEventListener("selectionchange",jn),gn.set(n,r+1),e.__lexicalEditor=t;const o=zn(e);for(let n=0;n<un.length;n++){const[r,i]=un[n],a="function"==typeof i?e=>{Bn(e)||(Fn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Bn(e))return;Fn(e);const n=t.isEditable();switch(r){case"cut":return n&&Qi(t,Xt,e);case"copy":return Qi(t,Jt,e);case"paste":return n&&Qi(t,kt,e);case"dragstart":return n&&Qi(t,Yt,e);case"dragover":return n&&Qi(t,qt,e);case"dragend":return n&&Qi(t,Qt,e);case"focus":return n&&Qi(t,on,e);case"blur":return n&&Qi(t,an,e);case"drop":return n&&Qi(t,Gt,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Gn),So(this);Co("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&R(38);let n=e;n._readOnly&&(n=jo(e),n._selection=e._selection?e._selection.clone():null),ve(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),So(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||So(this)}parseEditorState(e,t){return function(e,t,n){const r=Fo(),o=io,i=so,a=ao,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,io=r,so=!1,ao=t,Xo(null);try{const o=t._nodes;wo(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,io=o,so=i,ao=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return So(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):To(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ao(this,()=>{const r=Vr(),o=Ti();null!==r?r.dirty||Li(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ea("focus"),function(e){po(),mo()._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=ca(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Co("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};Qo.version="0.41.0+prod.esm";let Jo=null;function Xo(e){Jo=e}let Zo=1;function ei(e,t){const n=ti(e,t);return void 0===n&&R(30,t),n}function ti(e,t){return e._nodes.get(t)}const ni="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ri(e){return Io(Si(e))}function oi(e){const t=document.activeElement;if(!fa(t))return!1;const n=t.nodeName;return Io(Si(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==li(t))}function ii(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!oi(t)&&si(t)===e}catch(e){return!1}}function ai(e){return e instanceof Qo}function si(e){let t=e;for(;null!=t;){const e=li(t);if(ai(e))return e;t=Xi(t)}return null}function li(e){return e?e.__lexicalEditor:null}function ui(e){return Sr(e)||e.isToken()}function ci(e){return ui(e)||e.isSegmented()}function di(e){return pa(e)&&3===e.nodeType}function fi(e){return pa(e)&&9===e.nodeType}function pi(e){let t=e;for(;null!=t;){if(di(t))return t;t=t.firstChild}return null}function hi(e,t,n){const r=te[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 gi(e){return xr(e)||nr(e)||Io(e)}function mi(e,t){const n=function(){const e=Jo;return Jo=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);po(),ho();const r=mo(),o=go(),i=""+Zo++;o._nodeMap.set(i,e),No(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function vi(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 bi(e){ho(),$n(e)&&R(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=go(),o=mo(),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,No(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function yi(e){po();const t=mo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=_i(n);null!==e&&e.getWritable()}if(null!==e){const t=_i(e);null!==t&&t.getWritable()}}}function xi(){return fo()?null:mo()._compositionKey}function _i(e,t){const n=(t||go())._nodeMap.get(e);return void 0===n?null:n}function wi(e,t){const n=ki(e,mo());return void 0!==n?_i(n,t):null}function ki(e,t){return e[`__lexicalKey_${t._key}`]}function Si(e,t){let n=e;for(;null!=n;){const e=wi(n,t);if(null!==e)return e;n=Xi(n)}return null}function Ci(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Ei(e){return e.read(()=>Ti().getTextContent())}function Ti(){return Ai(go())}function Ai(e){return e._nodeMap.get("root")}function Li(e){po();const t=go();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Ri(e){const t=mo(),n=function(e,t){let n=e;for(;null!=n;){const e=ki(n,t);if(void 0!==e)return e;n=Xi(n)}return null}(e,t);return null===n?e===t.getRootElement()?_i("root"):null:_i(n)}function Mi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ni(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Oi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Pi(e){return di(e)?e.nodeValue:null}function Ii(e,t,n){const r=ca(ra(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Pi(o);const r=Si(o);if(null!==t&&xr(r)){if((t===X||t===ee)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&zi(r,t,i,a,e)}}}function zi(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(X)&&(s=t.slice(0,-X.length)),o)){const e=ee;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(yi(null),D||j||W)i.remove();else{const e=mo();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=Yr(),l=i.getTextContentSize(),u=xi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Rr(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=Vr();if(!Rr(d)||null===n||null===r)return void Di(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=yr(i.getTextContent());i.replace(e),i=e}Di(i,s,d)}}}function Di(e,t,n){if(e.setTextContent(t),Rr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=Ua(e,o.offset,"clamp"))}}}function ji(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function Fi(e,t,n){if(!function(e,t){return ji(e,t,"altKey")&&ji(e,t,"ctrlKey")&&ji(e,t,"shiftKey")&&ji(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 Bi={ctrlKey:!P,metaKey:P},Hi={altKey:P,ctrlKey:!P};function Wi(e){return"Backspace"===e.key}function $i(e){return Fi(e,"a",Bi)}function Ui(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=_s(o);return n[t]=e,e}return o}function Ki(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&R(33,i);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 Gi(e){const t=e.getType(),n=go();if(n._readOnly){const e=_a(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 Vi(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 Yi(e,t){const n=e.offset;if("element"===e.type)return Vi(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?Vi(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function qi(e){const t=ra(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Qi(e,t,n){return function(e,t,n){const r=Ni(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(Ao(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 Ji(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&R(75,t),n}function Xi(e){const t=e.assignedSlot||e.parentElement;return ha(t)?t.host:t}function Zi(e){return fi(e)?e:fa(e)?e.ownerDocument:null}function ea(e){po(),mo()._updateTags.add(e)}function ta(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function na(e){const t=Zi(e);return t?t.defaultView:null}function ra(e){const t=e._window;return null===t&&R(78),t}function oa(e){return Do(e)||No(e)&&e.isShadowRoot()}function ia(e){const t=e.constructor.clone(e);return mi(t,null),t.afterCloneFrom(e),t}function aa(e){const t=mo(),n=e.getType(),r=ti(t,n);void 0===r&&R(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||R(201,i.name,i.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||R(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&R(203,e.constructor.name,n,r.name,r.getType()),t}return e}function sa(e,t){!Do(e.getParent())||No(t)||Io(t)||R(99)}function la(e){return(Io(e)||No(e)&&!e.canBeEmpty())&&!e.isInline()}function ua(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function ca(e){return N?(e||window).getSelection():null}function da(e){return fa(e)&&"A"===e.tagName}function fa(e){return pa(e)&&1===e.nodeType}function pa(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function ha(e){return pa(e)&&11===e.nodeType}function ga(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 ma(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 va(e){if(Io(e)&&!e.isInline())return!0;if(!No(e)||oa(e))return!1;const t=e.getFirstChild(),n=null===t||nr(t)||xr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function ba(){return mo()}const ya=new WeakMap,xa=new Map;function _a(e){if(!e._readOnly&&e.isEmpty())return xa;e._readOnly||R(192);let t=ya.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),ya.set(e,t)),t}function wa(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function ka(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Sa(e){return!0===e.__lexicalUnmanaged}function Ca(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Un[t]}function Ea(e){const t=se in e.prototype?e.prototype[se]():void 0,n=function(e){if(!(e===Un||e.prototype instanceof Un)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Qo.version&&(n=JSON.parse(Qo.version))}catch(e){}R(290,e.name,t,n)}return e===Po||e===Mo||e===Un}(e),r=!n&&Ca(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&&(Ca(e,"getType")||(e.getType=()=>i),Ca(e,"clone")||(e.clone=t=>(Xo(t),new e)),Ca(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ca(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Ta=(e,t)=>{let n=e;for(;null!=n&&!Do(n);){if(t(n))return n;n=n.getParent()}return null},Aa={next:"previous",previous:"next"};class La{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Za({hasNext:Da,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Wa(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Wa(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&&R(263,Array.from(a).join(" "))}else o.insert(e);o=Wa(e,this.direction)}for(const e of a.values())e.remove();return this}}class Ra extends La{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ga(e,this.direction)}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Na(this.direction);return Wa(this.getNodeAtCaret(),e)||Ga(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Ra&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Ma={root:Do,shadowRoot:oa};function Na(e){return Aa[e]}function Oa(e,t="root"){return Ma[t](e)?null:e}let Pa=class e extends La{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Wa(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return No(this.origin)?Ga(this.origin,this.direction):null}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Na(this.direction);return Wa(this.getNodeAtCaret(),e)||Ga(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof Ia)&&this.direction===t.direction&&this.origin.is(t.origin)}},Ia=class e extends La{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:$a(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){return $a(this.origin,Na(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof Pa||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Wa(this.origin,this.direction)}};function za(e){return e instanceof Ia}function Da(e){return e instanceof Pa}function ja(e){return e instanceof Ra}const Fa={next:class extends Ia{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ia{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ba={next:class extends Pa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Pa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ha={next:class extends Ra{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ra{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Wa(e,t){return e?new Ba[t](e):null}function $a(e,t,n){return e?new Fa[t](e,Ua(e,n)):null}function Ua(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&M(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function Ka(e,t){return new qa(e,t)}function Ga(e,t){return No(e)?new Ha[t](e):null}function Va(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class Ya{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 Ya(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return za(t)?function(e,t){const{direction:n,origin:r}=e;return Ka(e,Ua(r,"focus"===t?Na(n):n)-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[Ka(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=za(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=za(n),o=t=>t.isSameNodeCaret(n)?null:Va(t)||t.getParentCaret(e);return Za({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")}}let qa=class{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 $a(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}};function Qa(e){return Xa(e,Wa(Ti(),e.direction))}function Ja(e){return Xa(e,e)}function Xa(e,t){return e.direction!==t.direction&&R(265),new Ya(e,t,e.direction)}function Za(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 es(e,t){const n=os(e.origin,t.origin);switch(null===n&&R(275,e.origin.getKey(),t.origin.getKey()),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 ts(n)}}function ts(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 ns(e,t){return t.is(e)}function rs(e){return No(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function os(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=rs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=rs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(ns(e,r)||R(276),{commonAncestor:r,type:"ancestor"}):null===o?(ns(t,r)||R(277),{commonAncestor:r,type:"descendant"}):((No(i)||ns(e,i))&&(No(o)||ns(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||R(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function is(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=_i(e);return null===t&&R(63,e),t}(e.key);return"text"===n?(xr(i)||R(266,i.getType(),r),$a(i,t,o)):(No(i)||R(267,i.getType(),r),function(e,t,n){let r=Ga(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return gs(r,n)}(i,e.offset,t))}function as(e,t){const{origin:n,direction:r}=t,o="next"===r;za(t)?e.set(n.getKey(),t.offset,"text"):Da(t)?xr(n)?e.set(n.getKey(),Ua(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ja(t)&&No(n)||R(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function ss(e){const t=Vr(),n=Rr(t)?t:Ur();return ls(n,e),Li(n),n}function ls(e,t){as(e.anchor,t.anchor),as(e.focus,t.focus)}function us(e){const{anchor:t,focus:n}=e,r=is(t,"next"),o=is(n,"next"),i=es(r,o)<=0?"next":"previous";return Xa(gs(r,i),gs(o,i))}function cs(e){const{direction:t,origin:n}=e,r=Wa(n,Na(t)).getNodeAtCaret();return r?Wa(r,t):Ga(n.getParentOrThrow(),t)}function ds(e,t="root"){const n=[e];for(let r=ja(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(cs(r));return n}function fs(e){return!!e&&e.origin.isAttached()}function ps(e){const t=function(e){let t=e;for(;ja(t);){const e=Va(t);if(!ja(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(xr(t.origin))return za(t)?t:$a(t.origin,n,n);const r=t.getAdjacentCaret();return Da(r)&&xr(r.origin)?$a(r.origin,n,Na(n)):t}function hs(e){return za(e)&&e.offset!==Ua(e.origin,e.direction)}function gs(e,t){return e.direction===t?e:e.getFlipped()}function ms(e,t){return e.direction===t?e:Xa(gs(e.focus,t),gs(e.anchor,t))}function vs(e){const{origin:t,offset:n,direction:r}=e;if(n===Ua(t,r))return e.getSiblingCaret();if(n===Ua(t,Na(r)))return cs(e.getSiblingCaret());const[o]=t.splitText(n);return xr(o)||R(281),gs(Wa(o,"next"),r)}function bs(e,t){return!0}function ys(e,{$copyElementNode:t=ia,$splitTextPointCaretNext:n=vs,rootMode:r="shadowRoot",$shouldSplit:o=bs}={}){if(za(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(ja(e)&&(!n.canBeEmpty()||!o(n,"first")))return cs(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 xs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function _s(...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 ws(e,...t){const n=_s(...t);n.length>0&&e.classList.add(...n)}function ks(e,...t){const n=_s(...t);n.length>0&&e.classList.remove(...n)}function Ss(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Cs(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Es=new Map;function Ts(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 As(e){let t=Es.get(e);return void 0===t&&(t=Ts(e),Es.set(e,t)),t}function Ls(e){const t=ba().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Rs(e){return Ls(Do(e)?e:e.getParentOrThrow())}function Ms(e){const t=Rs(e);return null!==t&&"rtl"===t.direction}function Ns(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!ci(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]=Pr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;i?(f=r>o?o:r,d=r>o?r:o):u?(f=a?o:r,d=void 0):c&&(f=0,d=a?r:o);const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=function(e){return(t=wa(e))[Wn]=!0,t;var t}(t)),t.__text=p)}}return t}function Os(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return No(t)||Cs(177),e.offset===t.getChildrenSize()}function Ps(e){const t=e.getStyle(),n=Ts(t);Es.set(t,n)}function Is(e,t){(Rr(e)?e.isCollapsed():xr(e)||No(e))||Cs(280);const n=As(Rr(e)?e.style:xr(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);Rr(e)||xr(e)?e.setStyle(o):e.setTextStyle(o),Es.set(o,r)}function zs(e,t){if(Rr(e)&&e.isCollapsed()){Is(e,t);const n=e.anchor.getNode();No(n)&&n.isEmpty()&&Is(n,t)}!function(e){const t=Vr();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Rr(t))for(const e of us(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!xr(t)||!t.canHaveFormat())continue;const[n,o]=r(t);o!==n&&(ci(t)||0===n&&o===t.getTextContentSize()?e(t):e(t.splitText(n,o)[0===n?0:1]))}Rr(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=>{Is(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!No(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),Is(r,t))}}}function Ds(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function js(e){const t=Fs(e);return null!==t&&"vertical-rl"===t.writingMode}function Fs(e){const t=e.anchor.getNode();return No(t)?Ls(t):Rs(t)}function Bs(e,t){let n=js(e)?!t:t;Hs(e)&&(n=!n);const r=is(e.focus,n?"previous":"next");if(hs(r))return!1;for(const e of Qa(r)){if(ja(e))return!e.origin.isInline();if(!No(e.origin)){if(Io(e.origin))return!0;break}}return!1}function Hs(e){const t=Fs(e);return null!==t&&"rtl"===t.direction}function Ws(e,t,n){const r=Hs(e);let o;o=js(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function $s(e,t,n){const r=As(e.getStyle());return null!==r&&r[t]||n}function Us(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(Rr(e)&&e.isCollapsed()&&""!==e.style){const n=As(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))&&xr(i)){const e=$s(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function Ks(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Gs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Vs=Gs&&"documentMode"in document?document.documentMode:null;function Ys(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function qs(e){const t=Ta(e,e=>No(e)&&!e.isInline());return No(t)||Ks(4,e.__key),t}function Qs(e){const t=Vr()||Yr();let n;if(Rr(t))n=is(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=Wa(r,"next"))}n=n||Ga(Ti(),"previous").getFlipped().insert(Ko())}const r=Js(e,n),o=Va(r);return ss(Ja(ja(o)?ps(o):r)),e.getLatest()}function Js(e,t,n){let r=gs(t,"next");for(let e=r;e;e=ys(e,n))r=e;return za(r)&&Ks(283),r.insert(e.isInline()?Ko().append(e):e),gs(Wa(e.getLatest(),"next"),t.direction)}function Xs(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Zs(e){const t=Vr();if(!Rr(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=Ta(o,e=>No(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}Gs&&"InputEvent"in window&&!Vs&&new window.InputEvent("input");const el=Symbol.for("preact-signals");function tl(){if(il>1)return void il--;let e,t=!1;for(;void 0!==rl;){let n=rl;for(rl=void 0,al++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&dl(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(al=0,il--,t)throw e}let nl,rl;function ol(e){const t=nl;nl=void 0;try{return e()}finally{nl=t}}let il=0,al=0,sl=0;function ll(e){if(void 0===nl)return;let t=e.n;return void 0===t||t.t!==nl?(t={i:0,S:e,p:nl.s,n:void 0,t:nl,e:void 0,x:void 0,r:t},void 0!==nl.s&&(nl.s.n=t),nl.s=t,e.n=t,32&nl.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=nl.s,t.n=void 0,nl.s.n=t,nl.s=t),t):void 0}function ul(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 cl(e,t){return new ul(e,t)}function dl(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 fl(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 pl(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 hl(e,t){ul.call(this,void 0),this.x=e,this.s=void 0,this.g=sl-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 gl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){il++;const n=nl;nl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ml(e),t}finally{nl=n,tl()}}}function ml(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,gl(e)}function vl(e){if(nl!==this)throw new Error("Out-of-order effect");pl(this),nl=e,this.f&=-2,8&this.f&&ml(this),tl()}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 yl(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 xl(e,t={}){const n={};for(const r in e){const o=t[r],i=cl(void 0===o?e[r]:o);n[r]=i}return n}function _l(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function wl(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function kl(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]=kl(n[e],r[e]);return e}return t}ul.prototype.brand=el,ul.prototype.h=function(){return!0},ul.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:ol(()=>{var e;null==(e=this.W)||e.call(this)}))},ul.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&&ol(()=>{var e;null==(e=this.Z)||e.call(this)}))}},ul.prototype.subscribe=function(e){return yl(()=>{const t=this.value,n=nl;nl=void 0;try{e(t)}finally{nl=n}},{name:"sub"})},ul.prototype.valueOf=function(){return this.value},ul.prototype.toString=function(){return this.value+""},ul.prototype.toJSON=function(){return this.value},ul.prototype.peek=function(){const e=nl;nl=void 0;try{return this.value}finally{nl=e}},Object.defineProperty(ul.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++,sl++,il++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{tl()}}}}),hl.prototype=new ul,hl.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===sl)return!0;if(this.g=sl,this.f|=1,this.i>0&&!dl(this))return this.f&=-2,!0;const e=nl;try{fl(this),nl=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 nl=e,pl(this),this.f&=-2,!0},hl.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)}ul.prototype.S.call(this,e)},hl.prototype.U=function(e){if(void 0!==this.t&&(ul.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)}},hl.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(hl.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,gl(this),fl(this),il++;const e=nl;return nl=this,vl.bind(this,e)},bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=rl,rl=this)},bl.prototype.d=function(){this.f|=8,1&this.f||ml(this)},bl.prototype.dispose=function(){this.d()},function(e,t){new ye(e,t)}("format",{parse:e=>"number"==typeof e?e:0});function Sl(e){return 0===e.id}function Cl(e){return 2===e.id}const El=new Set;let Tl=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):xs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;Cl(t)||wl(306,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:3,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:4,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;4!==t.id&&wl(307,String(t.id),String(5)),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:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&wl(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&wl(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&wl(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&wl(311),this._signal}getInitResult(){void 0===this.extension.init&&wl(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||wl(313,String(e.id),String(4)),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>=3}(e)||wl(314,String(e.id),String(3)),{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(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&wl(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||wl(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||El}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>=5})(e)||wl(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}};const Al={tag:Gn};function Ll(){const e=Ti();e.isEmpty()&&e.append(Ko())}const Rl={config:{setOptions:Al,updateOptions:Al},init:({$initialEditorState:e=Ll})=>({$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(function(e){return e instanceof Ho}(r))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,cr,Zn,wr,$o]},Ml=Symbol.for("@lexical/extension/LexicalBuilder");function Nl(){}function Ol(e){throw e}function Pl(e){return Array.isArray(e)?e:[e]}const Il="0.41.0+prod.esm";let zl=class e{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=Il,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(t){const n=[Pl(Rl)];for(const e of t)n.push(Pl(e));return new e(n)}static maybeFromEditor(t){const n=t[Ml];return n&&(n.PACKAGE_VERSION!==Il&&wl(292,n.PACKAGE_VERSION,Il),n instanceof e||wl(293)),n}static fromEditor(t){const n=e.maybeFromEditor(t);return void 0===n&&wl(294),n}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(qo({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[Ml]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=Nl;function t(){try{e()}finally{e=Nl}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Ss(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(295,e.name),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(296);const t=Pl(e),[n]=t;"string"!=typeof n.name&&wl(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&wl(298,n.name),!r){r=new Tl(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&wl(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&wl(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Pl(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(Cl(o))return;const i=n.extension.name;var a;Sl(o)||wl(300,i,r||"[unknown]"),Sl(a=o)||wl(304,String(a.id),String(0)),o=Object.assign(a,{id:1}),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=function(e){return function(e){return 1===e.id}(e)||wl(305,String(e.id),String(1)),Object.assign(e,{id:2})}(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Sl(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(301,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 Ss(...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 _l(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&wl(302,a.name,e.replace.name,t.extension.name),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&&kl(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=Ol),e}};function Dl(e){return e.canBeEmpty()}const jl=new Set(["http:","https:","mailto:","sms:","tel:"]);let Fl=class e extends Mo{__url;__target;__rel;__title;static getType(){return"link"}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__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),ws(t,e.theme.link),t}updateLinkDOM(e,t,n){if(da(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:$l,priority:1})}}static importJSON(e){return Ul().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=Zl(e);try{const t=new URL(Zl(e));if(!jl.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=Ul(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(!Rr(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 Bl(e){const t=is(e,"next");return[t,t.getFlipped()]}function Hl(e,t){for(const n of t)if(n.origin.isAttached()){return void as(e,ps(n))}}function Wl(e){const t=Vr();let n=null,r=null;Rr(t)&&(n=Bl(t.anchor),r=Bl(t.focus));for(const t of Ga(e,"next")){const n=t.origin;if(No(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=ia(e);t.append(...r),n.append(t)}Js(n,cs(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Rr(t)&&(Hl(t.anchor,n),Hl(t.focus,r),Me(t))}function $l(e){let t=null;if(da(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=Ul(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ul(e="",t){return aa(new Fl(e,t))}function Kl(e){return e instanceof Fl}let Gl=class e extends Fl{__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(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__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 Vl().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=Vl(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}};function Vl(e="",t){return aa(new Gl(e,t))}function Yl(e){return e instanceof Gl}const ql=dt("TOGGLE_LINK_COMMAND");function Ql(e,t){if("element"===e.type){const n=e.getNode();return No(n)||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function Jl(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=Vr();if(null===a||!Rr(a)&&!Nr(a))return;if(Nr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=Ta(e,e=>!Yl(e)&&Kl(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Ta(e,e=>!Yl(e)&&Kl(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=Ul(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=Ta(e,e=>!Yl(e)&&Kl(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=Ta(t,e=>!Yl(e)&&Kl(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())||No(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=Ul(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=Ta(e,Kl);if(null!==t)return u(t)}!function(e){const t=Vr();if(!Rr(t))return e();const n=Me(t),r=n.isBackward(),o=Ql(n.anchor,r?-1:0),i=Ql(n.focus,r?0:-1);if(e(),o||i){const e=Vr();if(Rr(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")}Li(Me(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=Ta(t,Kl);if(a){u(a);continue}if(No(t)){if(!t.isInline())continue;if(Kl(t)){if(!(Yl(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();Kl(s)&&s.is(e)?s.append(t):(e=Ul(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Xl=/^\+?[0-9\s()-]{5,}$/;function Zl(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Xl.test(e)?`tel:${e}`:`https://${e}`}function eu(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const tu=/[.,;\s]/;function nu(e){return tu.test(e)}function ru(e){return nu(e[e.length-1])}function ou(e){return nu(e[0])}function iu(e){let t=e.getPreviousSibling();return No(t)&&(t=t.getLastDescendant()),null===t||nr(t)||xr(t)&&ru(t.getTextContent())}function au(e){let t=e.getNextSibling();return No(t)&&(t=t.getFirstDescendant()),null===t||nr(t)||xr(t)&&ou(t.getTextContent())}function su(e,t,n,r){return!!(e>0?nu(n[e-1]):iu(r[0]))&&(t<n.length?nu(n[t]):au(r[r.length-1]))}function lu(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 uu(e,t,n,r){const o=Vl(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=yr(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=Vr(),c=u?u.getNodes().find(xr):void 0,d=yr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Rr(u)?d.select(u.anchor.offset,u.focus.offset):Nr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function cu(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!xr(o)||!o.isSimpleText())return du(e),void n(null,e.getURL())}const i=e.getTextContent(),a=eu(i,t);if(null===a||a.text!==i)return du(e),void n(null,e.getURL());if(!iu(e)||!au(e))return du(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 du(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 fu={changeHandlers:[],excludeParents:[],matchers:[]};function pu(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function hu(e){let t=1,n=e.getParent();for(;null!=n;){if(Mu(n)){const e=n.getParent();if(ju(e)){t++,n=e.getParent();continue}pu(40)}return t}return t}function gu(e){let t=e.getParent();ju(t)||pu(40);let n=t;for(;null!==n;)n=n.getParent(),ju(n)&&(t=n);return t}function mu(e){let t=[];const n=e.getChildren().filter(Mu);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();ju(o)?t=t.concat(mu(o)):t.push(r)}return t}function vu(e){return Mu(e)&&ju(e.getFirstChild())}function bu(e){return Ru().append(e)}function yu(e,t){return Mu(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function xu(e){const t=Vr();if(null!==t){let n=t.getNodes();if(Rr(t)){const r=t.getStartEndPoints();null===r&&pu(143);const[o]=r,i=o.getNode(),a=i.getParent();if(oa(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=Ko();i.append(e),n=e.select().getNodes()}}else if(yu(i,n)){const t=Du(e);if(oa(a)){i.replace(t);const e=Ru();No(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(Mu(i)){const e=i.getParentOrThrow();_u(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(No(o)&&o.isEmpty()&&!Mu(o)&&!r.has(o.getKey())){wu(o,e);continue}let i=gi(o)?o.getParent():Mu(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(ju(i)){if(!r.has(t)){const n=Du(e);_u(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(oa(n)&&!r.has(t)){r.add(t),wu(i,e);break}i=n}}}}}function _u(e,t){e.splice(e.getChildrenSize(),0,t)}function wu(e,t){if(ju(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Ru();let i;if(_u(o,e.getChildren()),ju(n)&&t===n.getListType())n.append(o),ju(r)&&t===r.getListType()&&(_u(n,r.getChildren()),r.remove()),i=n;else if(ju(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=Du(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=Vr();return Rr(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 ku(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&vu(n)&&vu(r)&&(ku(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function Su(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())Mu(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),ju(r.getFirstChild())||n++)}function Cu(e){const t=new Set;if(vu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(vu(r)&&vu(o)){const n=o.getFirstChild();if(ju(n)){n.append(e);const o=r.getFirstChild();ju(o)&&(_u(n,o.getChildren()),r.remove(),t.add(r.getKey()))}}else if(vu(r)){const t=r.getFirstChild();if(ju(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(vu(o)){const t=o.getFirstChild();ju(t)&&t.append(e)}else if(ju(n)){const t=Ru().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=Du(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 Eu(e){if(vu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(ju(n?n.getParent():void 0)&&Mu(n)&&ju(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=Ru(),i=Du(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=Ru(),s=Du(r);a.append(s),_u(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}let Tu=class extends Mo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();ju(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Mo,importDOM:{li:()=>({conversion:Au,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();!ju(r)||"check"!==r.getListType()||ju(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;if(i&&i.nested&&(s=i.nested.listitem),void 0!==a&&r.push(..._s(a)),i){const e=n.getParent(),t=ju(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=_s(s);n.getChildren().some(e=>ju(e))?r.push(...e):o.push(...e)}o.length>0&&ks(e,...o),r.length>0&&ws(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=As(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in As(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(No(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(Mu(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!ju(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=Du(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&&(No(e)||pu(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(ju(n)||pu(39),Mu(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=Du(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&&vu(t)&&vu(n)&&(ku(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=Ru().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=Ko();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=Mu(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 ju(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(;Mu(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&pu(117),(e=Math.floor(e))>=0||pu(199);let t=this.getIndent();for(;t!==e;)t<e?(Cu(this),t++):(Eu(this),t--);return this}canInsertAfter(e){return Mu(e)}canReplaceWith(e){return Mu(e)}canMergeWith(e){return Mu(e)||Go(e)}extractWithChild(e,t){if(!Rr(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 Du("bullet")}canMergeWhenEmpty(){return!0}};function Au(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return Lu(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 Lu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:Ru("true"===t||"false"!==t&&void 0)}}function Lu(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:Ru(e.hasAttribute("checked"))}}function Ru(e){return aa(new Tu(void 0,e))}function Mu(e){return e instanceof Tu}let Nu=class extends Mo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();ju(t)&&e.getListType()===t.getListType()&&ku(e,t)}(e),Su(e)},extends:Mo,importDOM:{ol:()=>({conversion:Iu,priority:0}),ul:()=>({conversion:Iu,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=zu[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,Ou(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Ou(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 fa(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];Mu(t)||(r===n&&(r=[...n]),r[e]=Ru().append(!No(t)||ju(t)||t.isInline()?t:yr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return Mu(e)}};function Ou(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=hu(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(..._s(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=_s(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&ks(e,...o),r.length>0&&ws(e,...r)}function Pu(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(Mu(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{ju(e)&&t.push(bu(e))})}else t.push(bu(r))}return t}function Iu(e){const t=e.nodeName.toLowerCase();let n=null;return"ol"===t?n=Du("number",e.start):"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(fa(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?Du("check"):Du("bullet")),{after:Pu,node:n}}const zu={ol:"number",ul:"bullet"};function Du(e="number",t=1){return aa(new Nu(e,t))}function ju(e){return e instanceof Nu}const Fu=dt("UPDATE_LIST_START_COMMAND"),Bu=dt("INSERT_UNORDERED_LIST_COMMAND"),Hu=dt("INSERT_ORDERED_LIST_COMMAND"),Wu=dt("REMOVE_LIST_COMMAND");function $u(e,t){return Ss(e.registerCommand(Hu,()=>(xu("number"),!0),1),e.registerCommand(Fu,e=>{const{listNodeKey:t,newStart:n}=e,r=_i(t);return!!ju(r)&&("number"===r.getListType()&&(r.setStart(n),Su(r)),!0)},1),e.registerCommand(Bu,()=>(xu("bullet"),!0),1),e.registerCommand(Wu,()=>(function(){const e=Vr();if(Rr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(yu(r,n))t.add(gu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(gi(r)){const e=Ys(r,Tu);null!=e&&t.add(gu(e))}}for(const n of t){let t=n;const r=mu(n);for(const n of r){const r=Ko().setTextStyle(e.style).setTextFormat(e.format);_u(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&as(e.anchor,ps(Ga(r,"next"))),n.__key===e.focus.key&&as(e.focus,ps(Ga(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(_t,()=>function(e=!1){const t=Vr();if(!Rr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(Mu(n)&&0===n.getChildrenSize())r=n;else if(xr(n)){const e=n.getParent();Mu(e)&&e.getChildren().every(e=>xr(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=gu(r),i=r.getParent();ju(i)||pu(40);const a=i.getParent();let s;if(oa(a))s=Ko(),o.insertAfter(s);else{if(!Mu(a))return!1;s=Ru(),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=Du(i.getListType(),t);if(Mu(s)){const e=Ru();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||!Mu(e)&&!ju(e))break;t=e}t.remove()}(r),!0}(!(!t||!t.restoreNumbering)),1),e.registerNodeTransform(Tu,e=>{const t=e.getFirstChild();if(t){if(xr(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=Vr();Rr(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(cr,e=>{const t=e.getParent();if(Mu(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}const Uu=E.createContext(null);function Ku(){const e=E.useContext(Uu);return null==e&&function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}var Gu,Vu,Yu={exports:{}},qu={};var Qu=(Vu||(Vu=1,Yu.exports=function(){if(Gu)return qu;Gu=1;var e=h(),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 qu.Fragment=n,qu.jsx=a,qu.jsxs=a,qu}()),Yu.exports);const Ju="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Xu=Ju?E.useLayoutEffect:E.useEffect,Zu={tag:Gn};function ec({initialConfig:e,children:t}){const n=E.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=qo({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update(()=>{const t=Ti();if(t.isEmpty()){const n=Ko();t.append(n);const r=Ju?document.activeElement:null;(null!==Vr()||null!==r&&r===e.getRootElement())&&n.select()}},Zu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Zu);break}case"object":e.setEditorState(t,Zu);break;case"function":e.update(()=>{Ti().isEmpty()&&t(e)},Zu)}}(l,i),[l,s]},[]);return Xu(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Qu.jsx(Uu.Provider,{value:n,children:t})}function tc(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(Jn)&&(o=n,i=r,a=s),f.has(Kn))return r=0,n=p,2;f.has(Xn)&&a&&(n=o,r=i,s=a);const h=function(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(!(Rr(i)&&Rr(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||Do(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)&&xr(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!xr(u)||!xr(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,g=p.offset,m=d.length-c.length;return 1===m&&g===h-1?2:-1===m&&g===h+1?3:-1===m&&g===h?4:0}(s,l,c,d,e.isComposing()),g=(()=>{const o=null===u||u.editor===e,i=f.has("history-push");if(!i&&o&&f.has(Gn))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 g="number"==typeof t?t:t.peek();return!1===i&&0!==h&&h===r&&p<n+g&&o||1===c.size&&function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Rr(i)&&Rr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!xr(r)||!xr(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(c)[0],s,l)?0:1})();return n=p,r=h,g}}function nc(e){e.undoStack=[],e.redoStack=[],e.current=null}function rc(e,t,n){const r=tc(e,n),o=Ss(e.registerCommand(At,()=>(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(nn,!0)),0===r.length&&e.dispatchCommand(rn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:Kn})}}(e,t),!0),0),e.registerCommand(Lt,()=>(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(rn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(nn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:Kn})}}(e,t),!0),0),e.registerCommand(en,()=>(nc(t),!1),0),e.registerCommand(tn,()=>(nc(t),e.dispatchCommand(nn,!1),e.dispatchCommand(rn,!1),!0),0),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(nn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(rn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function oc(){return{current:null,redoStack:[],undoStack:[]}}function ic({delay:e,externalHistoryState:t}){const[n]=Ku();return function(e,t,n=1e3){const r=E.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);E.useEffect(()=>rc(e,r,n),[n,e,r])}(n,t,e),null}function ac({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Ku();return E.useEffect(()=>{if(!n.hasNodes([Nu,Tu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),E.useEffect(()=>Ss($u(n,{restoreNumbering:t}),e?function(e){const t=e=>{const t=e.getParent();if(ju(e.getFirstChild())||!ju(t))return;const n=Ta(e,e=>Mu(e)&&ju(e.getParent())&&Mu(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(Mu(n)){const r=n.getPreviousSibling();if(Mu(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;ju(n);){const e=n.getLastChild();if(!Mu(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(ju(o)){const n=hu(o);n+1<hu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(Nu,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(ju(e))for(const r of e.getChildren())if(Mu(r)){t(r);const e=r.getFirstChild();ju(e)&&n.push(e)}}})}(n):()=>{}),[n,e,t]),function(e){E.useEffect(()=>$u(e),[e])}(n),null}function sc({maxIndent:e,$canIndent:t}){const[n]=Ku();return E.useEffect(()=>function(e,t,n=Dl){return Ss(e.registerCommand(Wt,t=>{const n=Vr();if(!Rr(n))return!1;t.preventDefault();const r=function(e){if(e.getNodes().filter(e=>Wr(e)&&e.canIndent()).length>0)return!0;const t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,o=qs(r.getNode());if(o.canIndent()){const e=o.getKey();let t=Ur();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Me(t),t.anchor.is(r))return!0}return!1}(n)?t.shiftKey?Kt:Ut:$t;return e.dispatchCommand(r,void 0)},0),e.registerCommand(Ut,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Rr(Vr()))return!1;const r="function"==typeof n?n:n.peek();return Zs(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}(n,e,t),[n,e,t]),null}function lc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=No(t)&&t.excludeFromCopy("html");let a=t;null!==r&&xr(t)&&(a=Ns(r,t,"clone"));const s=No(a)?a.getChildren():[],l=ti(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=lc(e,i,f,r);!o&&No(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((fa(c)||ha(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(ha(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const uc=new Set(["STYLE","SCRIPT"]);function cc(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||!oa(s))&&(null!=s&&Wr(s)||r);for(let e=0;e<d.length;e++)f.push(...cc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),ma(e)&&(f=function(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(Wr(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&Wr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}(e,f,p?()=>{const e=new Wo;return n.push(e),e}:Ko)),null==s?f.length>0?a=a.concat(f):ma(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&(ga(e.nextSibling)&&ga(e.previousSibling))}(e)&&(a=a.concat(tr())):No(s)&&s.append(...f),a}function dc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function fc(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))return pc(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=_o(e[n]);xr(r)&&Ps(r),t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{return pc(n,function(e,t){const n=fi(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!uc.has(t.nodeName)){const n=cc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof Wo&&t.insertAfter(tr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(o),"text/html")),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Rr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=Vr();if(Rr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([kr()]):n.insertText(r)}}}else t.insertRawText(a)}function pc(e,t,n){e.dispatchCommand(pt,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Rr(e)&&e.isCollapsed()){let t=null;const n=is(e.anchor,"previous");if(n)if(za(n))t=n.origin;else{const e=Xa(n,Ga(Ti(),"next").getFlipped());for(const n of e){if(xr(n.origin)){t=n.origin;break}if(No(n.origin)&&!n.origin.isInline())break}}if(t&&xr(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 hc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=No(n)&&n.excludeFromCopy("html");let a=n;null!==t&&xr(a)&&(a=Ns(t,a,"clone"));const s=No(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&dc(58,n.name),No(e)){const e=t.children;Array.isArray(e)||dc(59,n.name)}return t}(a);xr(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=hc(e,t,i,l.children);!o&&No(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 gc=null;async function mc(e,t,n){if(null!==gc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(vc(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=ca(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(Jt,r=>(Xs(r,ClipboardEvent)&&(a(),null!==gc&&(o.clearTimeout(gc),gc=null),t(vc(e,r,n))),!0),4);gc=o.setTimeout(()=>{a(),gc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function vc(e,t,n){if(void 0===n){const t=ca(e._window),r=Vr();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!ii(e,o,i))return!1;n=yc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of bc)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 bc=[["text/html",function(e,t=Vr()){return null==t&&dc(166),Rr(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=Ti().getChildren();for(let o=0;o<r.length;o++)lc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=Vr()){return null==t&&dc(166),Rr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Ti().getChildren();for(let o=0;o<r.length;o++)hc(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function yc(e=Vr()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=ba();for(const[r,o]of bc){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function xc(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 _c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,wc=_c&&"documentMode"in document?document.documentMode:null,kc=_c&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Sc=!(!_c||!("InputEvent"in window)||wc)&&"getTargetRanges"in new window.InputEvent("input"),Cc=_c&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ec=_c&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Tc=_c&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ac=_c&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&kc&&!Tc,Lc=dt("DRAG_DROP_PASTE_FILE");let Rc=class e extends Mo{static getType(){return"quote"}static clone(t){return new e(t.__key)}createDOM(e){const t=document.createElement("blockquote");return ws(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:zc,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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 Mc().updateFromJSON(e)}insertNewAfter(e,t){const n=Ko(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=Ko();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Mc(){return aa(new Rc)}function Nc(e){return e instanceof Rc}let Oc=class e extends Mo{__tag;static getType(){return"heading"}static clone(t){return new e(t.__tag,t.__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){ws(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Ic,priority:0}),h2:e=>({conversion:Ic,priority:0}),h3:e=>({conversion:Ic,priority:0}),h4:e=>({conversion:Ic,priority:0}),h5:e=>({conversion:Ic,priority:0}),h6:e=>({conversion:Ic,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&Pc(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Pc(e)?{conversion:e=>({node:Dc("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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 Dc(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?Ko():Dc(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=Ko();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?Ko():Dc(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function Pc(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Ic(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Dc(t),null!==e.style&&(ka(e,n),n.setFormat(e.style.textAlign))),{node:n}}function zc(e){const t=Mc();return null!==e.style&&(t.setFormat(e.style.textAlign),ka(e,t)),{node:t}}function Dc(e="h1"){return aa(new Oc(e))}function jc(e){return e instanceof Oc}function Fc(e){let t=null;if(Xs(e,DragEvent)?t=e.dataTransfer:Xs(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 Bc(e){return Io(Si(e))}function Hc(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Wc(e){return Ss(e.registerCommand(ht,e=>{const t=Vr();return!!Nr(t)&&(t.clear(),!0)},0),e.registerCommand(yt,e=>{const t=Vr();return Rr(t)?(t.deleteCharacter(e),!0):!!Nr(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(Ct,e=>{const t=Vr();return!!Rr(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(Et,e=>{const t=Vr();return!!Rr(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(wt,t=>{const n=Vr();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)fc(r,n,e);else if(Rr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(St,()=>{const e=Vr();return!!Rr(e)&&(e.removeText(),!0)},0),e.registerCommand(Tt,e=>{const t=Vr();return!!Rr(t)&&(t.formatText(e),!0)},0),e.registerCommand(Vt,e=>{const t=Vr();if(!Rr(t)&&!Nr(t))return!1;const n=t.getNodes();for(const t of n){const n=Ta(t,e=>No(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},0),e.registerCommand(xt,e=>{const t=Vr();return!!Rr(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(_t,()=>{const e=Vr();return!!Rr(e)&&(e.insertParagraph(),!0)},0),e.registerCommand($t,()=>{const e=kr(),t=Vr();return Rr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),to([e]),!0},0),e.registerCommand(Ut,()=>Zs(e=>{const t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(Kt,()=>Zs(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(It,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Rr(t)){const n=Yi(t.focus,!0);if(!e.shiftKey&&Io(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(zt,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Rr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Ti().getChildrenSize()}(t))return e.preventDefault(),!0;const n=Yi(t.focus,!1);if(!e.shiftKey&&Io(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(Ot,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ms(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Rr(t))return!1;if(Bs(t,!0)){const n=e.shiftKey;return e.preventDefault(),Ws(t,n,!0),!0}return!1},0),e.registerCommand(Mt,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ms(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Rr(t))return!1;const n=e.shiftKey;return!!Bs(t,!1)&&(e.preventDefault(),Ws(t,n,!1),!0)},0),e.registerCommand(Ft,t=>{if(Bc(t.target))return!1;const n=Vr();if(Rr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(Do(n))return!1;const r=qs(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(Kt,void 0);if(Ec&&"ko-KR"===navigator.language)return!1}else if(!Nr(n))return!1;return t.preventDefault(),e.dispatchCommand(yt,!0)},0),e.registerCommand(Ht,t=>{if(Bc(t.target))return!1;const n=Vr();return!(!Rr(n)&&!Nr(n))&&(t.preventDefault(),e.dispatchCommand(yt,!1))},0),e.registerCommand(Dt,t=>{const n=Vr();if(!Rr(n))return!1;if(Hc(n),null!==t){if((Ec||Cc||Ac)&&Sc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(xt,!1)}return e.dispatchCommand(_t,void 0)},0),e.registerCommand(Bt,()=>!!Rr(Vr())&&(e.blur(),!0),0),e.registerCommand(Gt,t=>{const[,n]=Fc(t);if(n.length>0){const r=xc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Si(o);if(null!==i){const e=Ur();if(xr(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")}Li(Me(e))}e.dispatchCommand(Lc,n)}return t.preventDefault(),!0}return!!Rr(Vr())},0),e.registerCommand(Yt,e=>{const[t]=Fc(e),n=Vr();return!(t&&!Rr(n))},0),e.registerCommand(qt,e=>{const[t]=Fc(e),n=Vr();if(t&&!Rr(n))return!1;const r=xc(e.clientX,e.clientY);if(null!==r){Io(Si(r.node))&&e.preventDefault()}return!0},0),e.registerCommand(Zt,()=>(function(e){const t=Ti();if(Rr(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"),Me(e),e}{const e=t.select(0,t.getChildrenSize());Li(Me(e))}}(),!0),0),e.registerCommand(Jt,t=>(mc(e,Xs(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Xt,t=>(async function(e,t){await mc(t,Xs(e,ClipboardEvent)?e:null),t.update(()=>{const e=Vr();Rr(e)?e.removeText():Nr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),0),e.registerCommand(kt,t=>{const[,n,r]=Fc(t);return n.length>0&&!r?(e.dispatchCommand(Lc,n),!0):(!pa(t.target)||!oi(t.target))&&(null!==Vr()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=Vr(),r=Xs(e,InputEvent)||Xs(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&fc(r,n,t)},{tag:"paste"})}(t,e),!0))},0),e.registerCommand(jt,e=>{const t=Vr();return Rr(t)&&Hc(t),!1},0),e.registerCommand(Wt,e=>{const t=Vr();return Rr(t)&&Hc(t),!1},0))}function $c(e,t,n,r){E.useEffect(()=>{e.hasNodes([Gl])||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),E.useEffect(()=>function(e,t=fu){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Ss(e.registerNodeTransform(cr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Yl(t)&&!t.getIsUnlinked())cu(t,n,i);else if(!Kl(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(ou(e.getTextContent())||!Yl(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&xr(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(Yl(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=eu(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(su(s+e,s+t,o,r)){const[o,,l,u]=lu(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Yl(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=uu(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(!Yl(r)||r.getIsUnlinked()){if(Yl(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!ou(a))return du(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=eu(r,t);null!==i&&i.text===r&&(o.append(e),cu(o,t,n),n(null,o.getURL()))}}var s;!Yl(i)||i.getIsUnlinked()||ru(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(du(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(ql,e=>{const t=Vr();return!(null!==e||!Rr(t)||(t.extract().forEach(e=>{const t=e.getParent();Yl(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),1))},1))}(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Uc({matchers:e,onChange:t,excludeParents:n}){const[r]=Ku();return $c(r,e,t,n),null}const Kc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function Gc(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Vc(){return function(e){const[t]=Ku(),n=E.useMemo(()=>e(t),[t,e]),[r,o]=E.useState(()=>n.initialValueFn()),i=E.useRef(r);return Kc(()=>{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}(Gc)}const Yc={black:"#000",white:"#fff"},qc="#e57373",Qc="#ef5350",Jc="#f44336",Xc="#d32f2f",Zc="#c62828",ed="#f3e5f5",td="#ce93d8",nd="#ba68c8",rd="#ab47bc",od="#9c27b0",id="#7b1fa2",ad="#e3f2fd",sd="#90caf9",ld="#42a5f5",ud="#1976d2",cd="#1565c0",dd="#4fc3f7",fd="#29b6f6",pd="#03a9f4",hd="#0288d1",gd="#01579b",md="#81c784",vd="#66bb6a",bd="#4caf50",yd="#388e3c",xd="#2e7d32",_d="#1b5e20",wd="#ffb74d",kd="#ffa726",Sd="#ff9800",Cd="#f57c00",Ed="#e65100",Td={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 Ad(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 Ld=Object.freeze({__proto__:null,default:Ad}),Rd="$$material";function Md(){return Md=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},Md.apply(null,arguments)}function Nd(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 Od=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];if(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}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},e}(),Pd="-ms-",Id="-moz-",zd="-webkit-",Dd="comm",jd="rule",Fd="decl",Bd="@keyframes",Hd=Math.abs,Wd=String.fromCharCode,$d=Object.assign;function Ud(e){return e.trim()}function Kd(e,t,n){return e.replace(t,n)}function Gd(e,t){return e.indexOf(t)}function Vd(e,t){return 0|e.charCodeAt(t)}function Yd(e,t,n){return e.slice(t,n)}function qd(e){return e.length}function Qd(e){return e.length}function Jd(e,t){return t.push(e),e}var Xd=1,Zd=1,ef=0,tf=0,nf=0,rf="";function of(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xd,column:Zd,length:a,return:""}}function af(e,t){return $d(of("",null,null,"",null,null,0),e,{length:-e.length},t)}function sf(){return nf=tf>0?Vd(rf,--tf):0,Zd--,10===nf&&(Zd=1,Xd--),nf}function lf(){return nf=tf<ef?Vd(rf,tf++):0,Zd++,10===nf&&(Zd=1,Xd++),nf}function uf(){return Vd(rf,tf)}function cf(){return tf}function df(e,t){return Yd(rf,e,t)}function ff(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 pf(e){return Xd=Zd=1,ef=qd(rf=e),tf=0,[]}function hf(e){return rf="",e}function gf(e){return Ud(df(tf-1,bf(91===e?e+2:40===e?e+1:e)))}function mf(e){for(;(nf=uf())&&nf<33;)lf();return ff(e)>2||ff(nf)>3?"":" "}function vf(e,t){for(;--t&&lf()&&!(nf<48||nf>102||nf>57&&nf<65||nf>70&&nf<97););return df(e,cf()+(t<6&&32==uf()&&32==lf()))}function bf(e){for(;lf();)switch(nf){case e:return tf;case 34:case 39:34!==e&&39!==e&&bf(nf);break;case 40:41===e&&bf(e);break;case 92:lf()}return tf}function yf(e,t){for(;lf()&&e+nf!==57&&(e+nf!==84||47!==uf()););return"/*"+df(t,tf-1)+"*"+Wd(47===e?e:lf())}function xf(e){for(;!ff(uf());)lf();return df(e,tf)}function _f(e){return hf(wf("",null,null,null,[""],e=pf(e),0,[0],e))}function wf(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",x=o,_=i,w=r,k=y;m;)switch(h=b,b=lf()){case 40:if(108!=h&&58==Vd(k,d-1)){-1!=Gd(k+=Kd(gf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=gf(b);break;case 9:case 10:case 13:case 32:k+=mf(h);break;case 92:k+=vf(cf()-1,7);continue;case 47:switch(uf()){case 42:case 47:Jd(Sf(yf(lf(),cf()),t,n),l);break;default:k+="/"}break;case 123*g:s[u++]=qd(k)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==v&&(k=Kd(k,/\f/g,"")),p>0&&qd(k)-d&&Jd(p>32?Cf(k+";",r,n,d-1):Cf(Kd(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Jd(w=kf(k,t,n,u,c,o,s,y,x=[],_=[],d),i),123===b)if(0===c)wf(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Vd(k,3)?100:f){case 100:case 108:case 109:case 115:wf(e,w,w,r&&Jd(kf(e,w,w,0,0,o,s,y,o,x=[],d),_),o,_,d,s,r?x:_);break;default:wf(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,g=v=1,y=k="",d=a;break;case 58:d=1+qd(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==sf())continue;switch(k+=Wd(b),b*g){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(qd(k)-1)*v,v=1;break;case 64:45===uf()&&(k+=gf(lf())),f=uf(),c=d=qd(y=k+=xf(cf())),b++;break;case 45:45===h&&2==qd(k)&&(g=0)}}return i}function kf(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Qd(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Yd(e,d+1,d=Hd(g=a[h])),y=e;v<p;++v)(y=Ud(g>0?f[v]+" "+b:Kd(b,/&\f/g,f[v])))&&(l[m++]=y);return of(e,t,n,0===o?jd:s,l,u,c)}function Sf(e,t,n){return of(e,t,n,Dd,Wd(nf),Yd(e,2,-2),0)}function Cf(e,t,n,r){return of(e,t,n,Fd,Yd(e,0,r),Yd(e,r+1,-1),r)}function Ef(e,t){for(var n="",r=Qd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Fd:return e.return=e.return||e.value;case Dd:return"";case Bd:return e.return=e.value+"{"+Ef(e.children,r)+"}";case jd:e.value=e.props.join(",")}return qd(n=Ef(e.children,r))?e.return=e.value+"{"+n+"}":""}function Af(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Lf=function(e,t,n){for(var r=0,o=0;r=o,o=uf(),38===r&&12===o&&(t[n]=1),!ff(o);)lf();return df(e,tf)},Rf=function(e,t){return hf(function(e,t){var n=-1,r=44;do{switch(ff(r)){case 0:38===r&&12===uf()&&(t[n]=1),e[n]+=Lf(tf-1,t,n);break;case 2:e[n]+=gf(r);break;case 4:if(44===r){e[++n]=58===uf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wd(r)}}while(r=lf());return e}(pf(e),t))},Mf=new WeakMap,Nf=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)||Mf.get(n))&&!r){Mf.set(e,!0);for(var o=[],i=Rf(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]}}},Of=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pf(e,t){switch(function(e,t){return 45^Vd(e,0)?(((t<<2^Vd(e,0))<<2^Vd(e,1))<<2^Vd(e,2))<<2^Vd(e,3):0}(e,t)){case 5103:return zd+"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 zd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zd+e+Id+e+Pd+e+e;case 6828:case 4268:return zd+e+Pd+e+e;case 6165:return zd+e+Pd+"flex-"+e+e;case 5187:return zd+e+Kd(e,/(\w+).+(:[^]+)/,zd+"box-$1$2"+Pd+"flex-$1$2")+e;case 5443:return zd+e+Pd+"flex-item-"+Kd(e,/flex-|-self/,"")+e;case 4675:return zd+e+Pd+"flex-line-pack"+Kd(e,/align-content|flex-|-self/,"")+e;case 5548:return zd+e+Pd+Kd(e,"shrink","negative")+e;case 5292:return zd+e+Pd+Kd(e,"basis","preferred-size")+e;case 6060:return zd+"box-"+Kd(e,"-grow","")+zd+e+Pd+Kd(e,"grow","positive")+e;case 4554:return zd+Kd(e,/([^-])(transform)/g,"$1"+zd+"$2")+e;case 6187:return Kd(Kd(Kd(e,/(zoom-|grab)/,zd+"$1"),/(image-set)/,zd+"$1"),e,"")+e;case 5495:case 3959:return Kd(e,/(image-set\([^]*)/,zd+"$1$`$1");case 4968:return Kd(Kd(e,/(.+:)(flex-)?(.*)/,zd+"box-pack:$3"+Pd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zd+e+e;case 4095:case 3583:case 4068:case 2532:return Kd(e,/(.+)-inline(.+)/,zd+"$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(qd(e)-1-t>6)switch(Vd(e,t+1)){case 109:if(45!==Vd(e,t+4))break;case 102:return Kd(e,/(.+:)(.+)-([^]+)/,"$1"+zd+"$2-$3$1"+Id+(108==Vd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Gd(e,"stretch")?Pf(Kd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Vd(e,t+1))break;case 6444:switch(Vd(e,qd(e)-3-(~Gd(e,"!important")&&10))){case 107:return Kd(e,":",":"+zd)+e;case 101:return Kd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zd+(45===Vd(e,14)?"inline-":"")+"box$3$1"+zd+"$2$3$1"+Pd+"$2box$3")+e}break;case 5936:switch(Vd(e,t+11)){case 114:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zd+e+Pd+e+e}return e}var If,zf,Df,jf,Ff=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fd:e.return=Pf(e.value,e.length);break;case Bd:return Ef([af(e,{value:Kd(e.value,"@","@"+zd)})],r);case jd: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 Ef([af(e,{props:[Kd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ef([af(e,{props:[Kd(t,/:(plac\w+)/,":"+zd+"input-$1")]}),af(e,{props:[Kd(t,/:(plac\w+)/,":-moz-$1")]}),af(e,{props:[Kd(t,/:(plac\w+)/,Pd+"input-$1")]})],r)}return""})}}],Bf=function(e){var t=e.key;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,o,i=e.stylisPlugins||Ff,a={},s=[];r=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,u,c=[Tf,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Qd(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Nf,Of].concat(i,c));o=function(e,t,n,r){l=n,function(e){Ef(_f(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Od({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f},Hf={exports:{}},Wf={};function $f(){return zf||(zf=1,Hf.exports=function(){if(If)return Wf;If=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,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(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 y(e)===u}return Wf.AsyncMode=l,Wf.ConcurrentMode=u,Wf.ContextConsumer=s,Wf.ContextProvider=a,Wf.Element=t,Wf.ForwardRef=c,Wf.Fragment=r,Wf.Lazy=h,Wf.Memo=p,Wf.Portal=n,Wf.Profiler=i,Wf.StrictMode=o,Wf.Suspense=d,Wf.isAsyncMode=function(e){return x(e)||y(e)===l},Wf.isConcurrentMode=x,Wf.isContextConsumer=function(e){return y(e)===s},Wf.isContextProvider=function(e){return y(e)===a},Wf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wf.isForwardRef=function(e){return y(e)===c},Wf.isFragment=function(e){return y(e)===r},Wf.isLazy=function(e){return y(e)===h},Wf.isMemo=function(e){return y(e)===p},Wf.isPortal=function(e){return y(e)===n},Wf.isProfiler=function(e){return y(e)===i},Wf.isStrictMode=function(e){return y(e)===o},Wf.isSuspense=function(e){return y(e)===d},Wf.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===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Wf.typeOf=y,Wf}()),Hf.exports}var Uf=function(){if(jf)return Df;jf=1;var e=$f(),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 Df=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),g=i(r),m=0;m<p.length;++m){var v=p[m];if(!(n[v]||o&&o[v]||g&&g[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t},Df}(),Kf=o(Uf);function Gf(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Vf=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Yf=function(e,t,n){Vf(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 qf={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},Qf=/[A-Z]|^ms/g,Jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xf=function(e){return 45===e.charCodeAt(1)},Zf=function(e){return null!=e&&"boolean"!=typeof e},ep=Af(function(e){return Xf(e)?e:e.replace(Qf,"-$&").toLowerCase()}),tp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Jf,function(e,t,n){return rp={name:t,styles:n,next:rp},t})}return 1===qf[e]||Xf(e)||"number"!=typeof t||0===t?t:t+"px"};function np(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return rp={name:o.name,styles:o.styles,next:rp},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)rp={name:a.name,styles:a.styles,next:rp},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+=np(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]+"}":Zf(s)&&(r+=ep(i)+":"+tp(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=np(e,t,a);switch(i){case"animation":case"animationName":r+=ep(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Zf(a[u])&&(r+=ep(i)+":"+tp(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=rp,l=n(e);return rp=s,np(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var rp,op=/label:\s*([^\s;{]+)\s*(;|$)/g;function ip(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="";rp=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=np(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=np(n,t,e[a]),r)o+=i[a]}op.lastIndex=0;for(var s,l="";null!==(s=op.exec(o));)l+="-"+s[1];var u=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)+l;return{name:u,styles:o,next:rp}}var ap,sp,lp=!!A.useInsertionEffect&&A.useInsertionEffect,up=lp||function(e){return e()},cp=lp||E.useLayoutEffect,dp=E.createContext("undefined"!=typeof HTMLElement?Bf({key:"css"}):null),fp=dp.Provider,pp=function(e){return E.forwardRef(function(t,n){var r=E.useContext(dp);return e(t,r,n)})},hp=E.createContext({}),gp={}.hasOwnProperty,mp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vf(t,n,r),up(function(){return Yf(t,n,r)}),null},bp=pp(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[mp],i=[r],a="";"string"==typeof e.className?a=Gf(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ip(i,void 0,E.useContext(hp));a+=t.key+"-"+s.name;var l={};for(var u in e)gp.call(e,u)&&"css"!==u&&u!==mp&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(vp,{cache:t,serialized:s,isStringTag:"string"==typeof o}),E.createElement(o,l))}),yp=bp,xp=function(e,t){var n=arguments;if(null==t||!gp.call(t,"css"))return E.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=yp,o[1]=function(e,t){var n={};for(var r in t)gp.call(t,r)&&(n[r]=t[r]);return n[mp]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return E.createElement.apply(null,o)};ap=xp||(xp={}),sp||(sp=ap.JSX||(ap.JSX={}));var _p=pp(function(e,t){var n=ip([e.styles],void 0,E.useContext(hp)),r=E.useRef();return cp(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]),cp(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Yf(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 wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ip(t)}function kp(){var e=wp.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_"}}}var Sp=/^((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)-.*))$/,Cp=Af(function(e){return Sp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ep=function(e){return"theme"!==e},Tp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Cp:Ep},Ap=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},Lp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vf(t,n,r),up(function(){return Yf(t,n,r)}),null},Rp=function e(t,n){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=Ap(t,n,i),l=s||Tp(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];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var g=pp(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=E.useContext(hp)}"string"==typeof e.className?i=Gf(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=ip(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===s?Tp(r):l,m={};for(var v in e)u&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),E.createElement(E.Fragment,null,E.createElement(Lp,{cache:t,serialized:h,isStringTag:"string"==typeof r}),E.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Md({},n,r,{shouldForwardProp:Ap(g,r,!0)})).apply(void 0,d)},g}}.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){Rp[e]=Rp(e)});var Mp,Np,Op,Pp,Ip,zp={exports:{}};function Dp(){if(Np)return Mp;Np=1;return Mp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function jp(){if(Pp)return Op;Pp=1;var e=Dp();function t(){}function n(){}return n.resetWarningCache=t,Op=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 Fp(){return Ip||(Ip=1,zp.exports=jp()()),zp.exports}var Bp=o(Fp());const Hp=new Map;function Wp(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 Qu.jsx(_p,{styles:r})}
16
+ */function k(){if(v)return c;v=1;var e=h(),t=w();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]*$/,d={},f={};function p(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 g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new p(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){g[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[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(f,e)||!l.call(d,e)&&(u.test(e)?f[e]=!0:(d[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(m,b);g[t]=new p(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(m,b);g[t]=new p(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(m,b);g[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||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 H(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 W(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=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function $(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 S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return $(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 $(t);case 8:return t===C?"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 Q(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 J(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)&&y(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 ge(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 me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(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 be(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 ye(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 Le(){}var Re=!1;function Me(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==ke||null!==Se)&&(Le(),Te())}}function Ne(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 Ie(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 ze=!1,De=null,je=!1,Fe=null,Be={onError:function(e){ze=!0,De=e}};function He(e,t,n,r,o,i,a,s,l){ze=!1,De=null,Ie.apply(Be,arguments)}function We(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 $e(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(We(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=We(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,Qe=t.unstable_requestPaint,Je=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 gt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(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 bt(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 yt=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,Lt=null,Rt=null,Mt=new Map,Nt=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 It(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function zt(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=yo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(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!==Lt&&jt(Lt)&&(Lt=null),null!==Rt&&jt(Rt)&&(Rt=null),Mt.forEach(Ft),Nt.forEach(Ft)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Ht(t,e)}if(0<Tt.length){Ht(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ht(At,e),null!==Lt&&Ht(Lt,e),null!==Rt&&Ht(Rt,e),Mt.forEach(t),Nt.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 $t=x.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=1,Vt(e,t,n,r)}finally{yt=o,$t.transition=i}}function Gt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=4,Vt(e,t,n,r)}finally{yt=o,$t.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),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=zt(At,e,t,n,r,o),!0;case"dragenter":return Lt=zt(Lt,e,t,n,r,o),!0;case"mouseover":return Rt=zt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,zt(Mt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,zt(Nt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(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=yo(e=_e(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(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 Qt(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 Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.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),gn=on(j({},pn,{dataTransfer:0})),mn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),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})),Ln=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=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}),Nn=on(Mn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,In=null;s&&"documentMode"in document&&(In=document.documentMode);var zn=s&&"TextEvent"in window&&!In,Dn=s&&(!Pn||In&&8<In&&11>=In),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 Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var $n={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?!!$n[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 Qn(e,t){if("change"===e)return t}var Jn=!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;Jn=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)),Me(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 gr=s&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==q(r)||("selectionStart"in(r=mr)&&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},br&&lr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}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"),Lr=Cr("transitionend"),Rr=new Map,Mr="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 Nr(e,t){Rr.set(e,t),i(t,[e])}for(var Or=0;Or<Mr.length;Or++){var Pr=Mr[Or];Nr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Nr(Er,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(Ar,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Lr,"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 Ir="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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));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(He.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=De;ze=!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[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Hr]){e[Hr]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(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=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Me(function(){var r=i,o=_e(n),a=[];e:{var s=Rr.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=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;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=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Er:case Tr:case Ar:l=vn;break;case Lr:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=yn;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 g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Ne(h,f))&&c.push(Kr(h,g,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)||!yo(u)&&!u[go])&&(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)?yo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(g,h+"leave",l,n,o)).target=d,s.relatedTarget=p,g=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,g=f;g;g=Vr(g))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 m=Qn;else if(Un(s))if(Jn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Kn(a,m,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)&&(mr=v,vr=r,br=null);break;case"focusout":br=vr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(b=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(v=Gr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Hn(n))&&(y.data=b))),(b=zn?function(e,t){switch(e){case"compositionend":return Hn(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(Wn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Jt=null,Wn=!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=b))}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=Ne(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ne(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=Ne(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Ne(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,Qr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Qr,"")}function Xr(e,t,r){if(t=Jr(t),Jr(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 Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(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,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||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[go])||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={},Lo=Co(Ao),Ro=Co(!1),Mo=Ao;function No(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(Ro),Eo(Lo)}function Io(e,t,r){if(Lo.current!==Ao)throw Error(n(168));To(Lo,t),To(Ro,r)}function zo(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,Mo=Lo.current,To(Lo,e),To(Ro,Ro.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Mo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(Lo),To(Lo,e)):Eo(Ro),To(Ro,r)}var Fo=null,Bo=!1,Ho=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Ho&&null!==Fo){Ho=!0;var e=0,t=yt;try{var n=Fo;for(yt=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,$o),t}finally{yt=t,Ho=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Qo=null,Jo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Qo=e;var r=Jo;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,Jo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Jo=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===Qo;)Qo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Jo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mu(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!==Qo?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(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 gi(e){null===ai?ai=[e]:ai.push(e)}var mi=x.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 bi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(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===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&yi(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=Iu(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 _:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case k:return(t=ju(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(t))return(t=Iu(t,e.mode,n,null)).return=e,t;bi(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 _:return n.key===o?u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case O:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||z(n))return null!==o?null:d(e,t,n,r,null);bi(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 _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case O:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function g(n,i,s,l){for(var u=null,c=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=p(n,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return r(n,d),ii&&Zo(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(n,s[g],l))&&(i=a(d,i,g),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,g),u}for(d=o(n,d);g<s.length;g++)null!==(m=h(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,g),u}function m(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,v=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=p(i,g,b.value,u);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(i,g),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y,g=v}if(b.done)return r(i,g),ii&&Zo(i,m),c;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=f(i,b.value,u))&&(s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(i,m),c}for(g=o(i,g);!b.done;m++,b=l.next())null!==(b=h(g,i,m,b.value,u))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(i,e)}),ii&&Zo(i,m),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){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===O&&yi(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===S?((o=Iu(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 k: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 O:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return g(n,o,a,l);if(z(a))return m(n,o,a,l);bi(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 Li(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 Ri(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Mi(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 Ni=null;function Oi(e){null===Ni?Ni=[e]:Ni.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,Ii(e,r)}function Ii(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 zi=!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,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Wi(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 $i(e,t,n,r){var o=e.updateQueue;zi=!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,g=s;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.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=g.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:zi=!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);zl|=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 Qi(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 Ji(){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=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ga(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 ma(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 ba(){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 ya(){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=ya(),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,zl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(ys=!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,zl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ya(),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)||(ys=!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=ya(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,ys=!0),o=o.queue,za(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ma(9,Ea.bind(null,r,o,i,t),void 0,null),null===Ll)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)&&La(e)}function Ta(e,t,n){return n(function(){Aa(t)&&La(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Ii(e,1);null!==t&&nu(t,e,1,-1)}function Ra(e){var t=ba();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 Ma(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 Na(){return ya().memoizedState}function Oa(e,t,n,r){var o=ba();sa.flags|=e,o.memoizedState=Ma(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ma(t,n,i,r))}sa.flags|=e,o.memoizedState=Ma(1|t,n,i,r)}function Ia(e,t){return Oa(8390656,8,e,t)}function za(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 Ha(){}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=gt(),sa.lanes|=n,zl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Ka(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ga(){return ya().memoizedState}function Va(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Qa(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Ja(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))Qa(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()),Ja(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(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 Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Xa={readContext:Mi,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:Mi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Mi,useEffect:Ia,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=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();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},ba().memoizedState=e},useState:Ra,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Ka.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ll)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ia(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Ll.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-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:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:_a,useRef:Na,useState:function(){return _a(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ua(ya(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ya().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:wa,useRef:Na,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().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)&&We(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),Hi(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),Hi(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),Hi(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=Mi(i):(o=Oo(t)?Mo:Lo.current,i=(r=null!=(r=t.contextTypes))?No(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=Mi(i):(i=Oo(t)?Mo:Lo.current,o.context=No(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),$i(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+=W(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 gs(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 ms(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 bs=x.ReactCurrentOwner,ys=!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 Ri(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||ys?(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||Nu(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(ys=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(ys=!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,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Nl),Nl|=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)?Mo:Lo.current;return i=No(t,i),Ri(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||ys?(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(Ri(t,o),null===t.stateNode)$s(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=Mi(u):u=No(t,u=Oo(n)?Mo:Lo.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),zi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ro.current||zi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=zi||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=Mi(l):l=No(t,l=Oo(n)?Mo:Lo.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),zi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ro.current||zi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=zi||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,bs.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 Ls(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Qi(e,t.containerInfo)}function Rs(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xs(e,t,n,r),t.child}var Ms,Ns,Os,Ps,Is={dehydrated:null,treeContext:null,retryLane:0};function zs(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=zu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(r),t.memoizedState=Is,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=zu({mode:"visible",children:o.children},i,0,null),(a=Iu(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=zs(s),t.memoizedState=Is,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),ys||l){if(null!==(o=Ll)){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,Ii(e,i),nu(o,e,i,-1))}return gu(),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++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Jo=e.id,Xo=e.overflow,Qo=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=Iu(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)?zs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Is,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=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&gi(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),Li(e.return,t,n)}function Hs(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 Ws(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),Hs(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}Hs(t,!0,n,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function $s(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),zl|=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,Ji(),Eo(Ro),Eo(Lo),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))),Ns(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<Ir.length;a++)Fr(Ir[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":J(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 be(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,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(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<Ir.length;a++)Fr(Ir[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":J(e,i),a=Q(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 be(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(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&&y(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):gu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Ji(),Ns(e,t),null===e&&Wr(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&&Je()>Wl&&(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*Je()-s.renderingStartTime>Wl&&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=Je(),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&Nl)&&(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 Ji(),Eo(Ro),Eo(Lo),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 Ji(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ms=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}},Ns=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=Q(e,i),r=Q(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 be(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,Qs=!1,Js="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[mo],delete t[vo],delete t[bo])),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:Qs||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),Wt(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(!Qs&&(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(!Qs&&(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?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=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 Js),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(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;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(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:gl(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(gl(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),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):y(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(gl(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(gl(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(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||(Hl=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(c=Qs)||d,gl(t,e),Qs=c):gl(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 g=p.stateNode;if("function"==typeof g.componentWillUnmount){o=p,r=p.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.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=ge("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:gl(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 bl(e,t,n){Xs=e,yl(e)}function yl(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||Qs;s=qs;var u=Qs;if(qs=a,(Qs=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,yl(i),i=i.sibling;Xs=o,qs=s,Qs=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:Qs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qs)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&&Wt(f)}}}break;default:throw Error(n(163))}Qs||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=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Al=0,Ll=null,Rl=null,Ml=0,Nl=0,Ol=Co(0),Pl=0,Il=null,zl=0,Dl=0,jl=0,Fl=null,Bl=null,Hl=0,Wl=1/0,$l=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Ql=0,Jl=null,Xl=-1,Zl=0;function eu(){return 6&Al?Je():-1!==Xl?Xl:Xl=Je()}function tu(e){return 1&e.mode?2&Al&&0!==Ml?Ml&-Ml:null!==mi.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,r,o){if(50<Ql)throw Ql=0,Jl=null,Error(n(185));vt(e,r,o),2&Al&&e===Ll||(e===Ll&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Ml)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Wl=Je()+500,Bo&&$o()))}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===Ll?Ml: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,Wo(e)}(lu.bind(null,e)):Wo(lu.bind(null,e)),ao(function(){!(6&Al)&&$o()}),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=Lu(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===Ll?Ml:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Ll===e&&Ml===t||($l=null,Wl=Je()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Rl?t=0:(Ll=null,Ml=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=Il,fu(e,0),su(e,o),ru(e,Je()),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=mu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Il,fu(e,0),su(e,o),ru(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,$l);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Hl+500-Je())){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,$l),t);break}_u(e,Bl,$l);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=Je()-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,$l),o);break}_u(e,Bl,$l);break;default:throw Error(n(329))}}}return ru(e,Je()),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=mu(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,Je()),null;var r=mu(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=Il,fu(e,0),su(e,t),ru(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,$l),ru(e,Je()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Wl=Je()+500,Bo&&$o())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,!(6&(Al=t))&&$o()}}function du(){Nl=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!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Ji(),Eo(Ro),Eo(Lo),ra();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ll=e,Rl=e=Ou(e.current,null),Ml=Nl=t,Pl=0,Il=null,jl=Dl=zl=0,Bl=Fl=null,null!==Ni){for(t=0;t<Ni.length;t++)if(null!==(r=(n=Ni[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}Ni=null}return e}function pu(e,t){for(;;){var r=Rl;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,Il=t,Rl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ml,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=ms(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(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,Wi(a,ps(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Gl&&Gl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Rl===r&&null!==r&&(Rl=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function gu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Ll||!(268435455&zl)&&!(268435455&Dl)||su(Ll,Ml)}function mu(e,t){var r=Al;Al|=2;var o=hu();for(Ll===e&&Ml===t||($l=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Rl)throw Error(n(261));return Ll=null,Ml=0,Pl}function vu(){for(;null!==Rl;)yu(Rl)}function bu(){for(;null!==Rl&&!qe();)yu(Rl)}function yu(e){var t=kl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xu(e):Rl=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(Rl=n);if(null===e)return Pl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Nl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=yt,i=Tl.transition;try{Tl.transition=null,yt=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===Ll&&(Rl=Ll=null,Ml=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Lu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=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 g=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!==g){var m=g.memoizedProps,v=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);b.__reactInternalSnapshotBeforeUpdate=y}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}g=tl,tl=!1}(e,r),ml(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,bl(r),Qe(),Al=l,yt=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,Je()),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===Jl?Ql++:(Ql=0,Jl=e):Ql=0,$o()}(e,t,r,o)}finally{Tl.transition=i,yt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=yt;try{if(Tl.transition=null,yt=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 g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}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 b=a.sibling;if(null!==b){b.return=a.return,Xs=b;break e}Xs=a.return}}var y=e.current;for(Xs=y;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=y;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,$o(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=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,Ll===e&&(Ml&n)===n&&(4===Pl||3===Pl&&(130023424&Ml)===Ml&&500>Je()-Hl?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=Ii(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 Lu(e,t){return Ve(e,t)}function Ru(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 Mu(e,t,n,r){return new Ru(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Mu(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)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Iu(r.children,i,a,t);case C:s=8,i|=8;break;case E:return(e=Mu(12,r,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Mu(13,r,t,i)).elementType=R,e.lanes=a,e;case M:return(e=Mu(19,r,t,i)).elementType=M,e.lanes=a,e;case P:return zu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case L:s=11;break e;case N:s=14;break e;case O:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Mu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Mu(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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(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=Mu(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 Hu(e){if(!e)return Ao;e:{if(We(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 zo(e,r,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=Hu(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 $u(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Hu(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),Hi(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||Ro.current)ys=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ls(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Qi(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 Ws(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);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;$s(e,t),e=t.pendingProps;var i=No(t,Lo.current);Ri(t,r),i=ma(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($s(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===N)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(Ls(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),$i(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=Rs(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Rs(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 Qi(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&&!Ro.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),Li(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),Li(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,Ri(t,r),o=o(i=Mi(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),$s(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Ri(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Ws(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 Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(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)}}$u(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=Wu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[go]=a.current,Wr(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[go]=l.current,Wr(8===e.nodeType?e.parentNode:e),cu(function(){$u(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));$u(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(){$u(null,e,null,null)}),t[go]=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&&(bt(t,1|n),ru(t,Je()),!(6&Al)&&(Wl=Je()+500,$o()))}break;case 13:cu(function(){var t=Ii(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=Ii(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=Ii(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=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,Le=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:yo,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:x.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 c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,c.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},c.createRoot=function(e,t){if(!Qu(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[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yu(t)},c.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},c.flushSync=function(e){return cu(e)},c.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!0,r)},c.hydrateRoot=function(e,t,r){if(!Qu(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=Wu(t,null,e,1,null!=r?r:null,i,0,a,s),e[go]=t.current,Wr(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)},c.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!1,r)},c.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},c.unstable_batchedUpdates=uu,c.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},c.version="18.3.1-next-f1338f8080-20240426",c}function S(){if(b)return u.exports;return b=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)}}(),u.exports=k(),u.exports}var C=function(){if(y)return l;y=1;var e=S();return l.createRoot=e.createRoot,l.hydrateRoot=e.hydrateRoot,l}();var E=h(),T=o(E),A=t({__proto__:null,default:T},[E]);const L=E.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 R(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function M(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const N="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,O=N&&"documentMode"in document?document.documentMode:null,P=N&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),I=N&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),z=!(!N||!("InputEvent"in window)||O)&&"getTargetRanges"in new window.InputEvent("input"),D=N&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),j=N&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,F=N&&/Android/.test(navigator.userAgent),B=N&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H=N&&F&&B,W=N&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&P&&!B,$=0,U=1,K=2,G=1,V=2,Y=3,q=4,Q=5,J=6,X=D||j||W?" ":"​",Z="\n\n",ee=I?" ":X,te={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},ne={directionless:1,unmergeable:2},re={center:2,end:6,justify:4,left:1,right:3,start:5},oe={[V]:"center",[J]:"end",[q]:"justify",[G]:"left",[Y]:"right",[Q]:"start"},ie={normal:0,segmented:2,token:1},ae={[$]:"normal",[K]:"segmented",[U]:"token"},se="$config";function le(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(No(a)&&le(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let ue=!1,ce=0;function de(e){ce=e.timeStamp}function fe(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==ki(e,n)}function pe(e,t,n){const r=ca(ra(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&zi(t,a,o,i,!1)}function he(e,t,n){if(Rr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return di(t)&&n.isAttached()}function ge(e,t,n,r){for(let o=e;o&&!Sa(o);o=Xi(o)){const e=ki(o,t);if(void 0!==e){const t=_i(e,n);if(t)return Io(t)||!fa(o)?void 0:[o,t]}else if(o===r)return[r,Ai(n)]}}function me(e,t,n){ue=!0;const r=performance.now()-ce>100;try{Ao(e,()=>{const o=Vr()||function(e){return e.getEditorState().read(()=>{const e=Vr();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=ge(p,e,s,a);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&xr(m)&&di(p)&&he(o,p,m)&&pe(p,m,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=wi(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!fe(r,i,e)){if(I){const e=(fa(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];(fe(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(g,m)}}}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||fe(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Li(o),I&&qi(e)&&o.insertRawText(c))})}finally{ue=!1}}function ve(e){const t=e._observer;null!==t&&me(e,t.takeRecords(),t)}function be(e){!function(e){0===ce&&ra(e).addEventListener("textInput",de,!0)}(e),e._observer=new MutationObserver((t,n)=>{me(e,t,n)})}let ye=class{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Se).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}};function xe(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}=Ea(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}}let _e=class e{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);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 ke(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new e(t,n,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}(n.sharedConfigMap,o,r),o,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=ke(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 we(e){return e.__state?e.__state.sharedNodeState:ei(ba(),e.getType()).sharedNodeState}function ke(e){if(e)for(const t in e)return e}function Se(e){return e}function Ce(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 Ee(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)&&(e.add(t),n!==(o?o[t]:void 0)))return!0;return!1}function Te(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ae(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&&Ce(n,e,t)||t&&Ce(n,t,e)||e&&Ee(n,e,t)||t&&Ee(n,t,e))}(l,u))}function Le(e,t){const n=e.mergeWithSibling(t),r=mo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Re(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&xr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Ae(t,r)){r=Le(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&xr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ae(r,n)){r=Le(r,n);break}break}n.remove()}}else r.remove()}function Me(e){return Ne(e.anchor),Ne(e.focus),e}function Ne(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),xr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!No(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Oe,Pe,Ie,ze,De,je,Fe,Be,He,We,$e="",Ue=null,Ke=null,Ge=!1,Ve=!1;function Ye(e,t){const n=Fe.get(e);if(null!==t){const n=ct(e);n.parentNode===t&&t.removeChild(n)}if(Be.has(e)||Pe._keyToDOMMap.delete(e),No(n)){const e=it(n,Fe);qe(e,0,e.length-1,null)}void 0!==n&&Ki(We,Ie,ze,n,"destroyed")}function qe(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&Ye(t,r)}}function Qe(e,t){e.setProperty("text-align",t)}const Je="40px";function Xe(e,t){const n=Oe.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(Pe._rootElement||e).getPropertyValue("--lexical-indent-base-value")||Je;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function Ze(e,t){const n=e.style;0===t?Qe(n,""):1===t?Qe(n,"left"):2===t?Qe(n,"center"):3===t?Qe(n,"right"):4===t?Qe(n,"justify"):5===t?Qe(n,"start"):6===t&&Qe(n,"end")}function et(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(Do(e))return null;const n=e.getParentOrThrow();return Do(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function tt(e,t){const n=Be.get(e);void 0===n&&R(60);const r=n.createDOM(Oe,Pe);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,Pe),xr(n)?r.setAttribute("data-lexical-text","true"):Io(n)&&r.setAttribute("data-lexical-decorator","true"),No(n)){const e=n.__indent,t=n.__size;if(et(r,n),0!==e&&Xe(r,e),0!==t){const e=t-1;nt(it(n,Be),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&Ze(r,o),n.isInline()||ot(null,n,r)}else{const t=n.getTextContent();if(Io(n)){const t=n.decorate(Pe,Oe);null!==t&&st(e,t),r.contentEditable="false"}$e+=t}return null!==t&&t.insertChild(r),Ki(We,Ie,ze,n,"created"),r}function nt(e,t,n,r,o){const i=$e;$e="";let a=n;for(;a<=r;++a){tt(e[a],o);const t=Be.get(e[a]);null!==t&&xr(t)?null===Ue&&(Ue=t.getFormat(),Ke=t.getStyle()):No(t)&&a<r&&!t.isInline()&&($e+=Z)}o.element.__lexicalTextContent=$e,$e=i+$e}function rt(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return nr(e)?"line-break":Io(e)&&e.isInline()?"decorator":null}return"empty"}return null}function ot(e,t,n){const r=rt(e,Fe),o=rt(t,Be);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function it(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&R(101),n.push(r),r=e.__next}return n}function at(e,t){const n=Fe.get(e);let r=Be.get(e);void 0!==n&&void 0!==r||R(61);const o=Ge||je.has(e)||De.has(e),i=Ji(Pe,e);if(n===r&&!o){let e;if(No(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return $e+=e,i}if(n!==r&&o&&Ki(We,Ie,ze,r,"updated"),r.updateDOM(n,i,Oe)){const n=tt(e,null);return null===t&&R(62),t.replaceChild(n,i),Ye(e,null),n}if(No(n)){No(r)||R(334,e);const t=r.__indent;(Ge||t!==n.__indent)&&Xe(i,t);const a=r.__format;if((Ge||a!==n.__format)&&Ze(i,a),o)(function(e,t,n){var r;Ue=null,Ke=null,function(e,t,n){const r=$e,o=e.__size,i=t.__size;$e="";const a=n.element;if(1===o&&1===i){const n=e.__first,o=t.__first;if(n===o)at(n,a);else{const e=ct(n),t=tt(o,null);try{a.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const i=`${r.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw r}Ye(n,null)}const i=Be.get(o);xr(i)&&null===Ue&&(Ue=i.getFormat(),Ke=i.getStyle())}else{const r=it(e,Fe),s=it(t,Be);if(r.length!==o&&R(227),s.length!==i&&R(228),0===o)0!==i&&nt(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;qe(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=lt(at(r,i.element)),d++,f++;else{if(void 0===u&&(u=ut(n,f)),void 0===l)l=ut(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=lt(ct(e)),Ye(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=Ji(Pe,r);e!==c&&i.withBefore(c).insertChild(e),c=lt(at(r,i.element)),d++,f++}else tt(r,i.withBefore(c)),f++}const o=Be.get(r);null!==o&&xr(o)?null===Ue&&(Ue=o.getFormat(),Ke=o.getStyle()):No(o)&&f<=s&&!o.isInline()&&($e+=Z)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:Pe.getElementByKey(e);nt(n,0,f,s,i.withBefore(t))}else h&&!p&&qe(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=$e,$e=r+$e}(e,t,t.getDOMSlot(n)),r=t,null==Ue||Ue===r.__textFormat||Ve||r.setTextFormat(Ue),function(e){null==Ke||Ke===e.__textStyle||Ve||e.setTextStyle(Ke)}(t)})(n,r,i),Do(r)||r.isInline()||ot(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),$e+=t}if((Ge||r.__dir!==n.__dir)&&(et(i,r),Do(r)&&!Ge))for(const e of r.getChildren())No(e)&&et(Ji(Pe,e.getKey()),e)}else{const t=r.getTextContent();if(Io(r)){const t=r.decorate(Pe,Oe);null!==t&&st(e,t)}$e+=t}if(!Ve&&Do(r)&&r.__cachedText!==$e){const e=r.getWritable();e.__cachedText=$e,r=e}return i}function st(e,t){let n=Pe._pendingDecorators;const r=Pe._decorators;if(null===n){if(r[e]===t)return;n=Ci(Pe)}n[e]=t}function lt(e){let t=e.nextSibling;return null!==t&&t===Pe._blockCursorElement&&(t=t.nextSibling),t}function ut(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function ct(e){const t=He.get(e);return void 0===t&&R(75,e),t}function dt(e){return{type:e}}const ft=dt("SELECTION_CHANGE_COMMAND"),pt=dt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ht=dt("CLICK_COMMAND"),gt=dt("BEFORE_INPUT_COMMAND"),mt=dt("INPUT_COMMAND"),vt=dt("COMPOSITION_START_COMMAND"),bt=dt("COMPOSITION_END_COMMAND"),yt=dt("DELETE_CHARACTER_COMMAND"),xt=dt("INSERT_LINE_BREAK_COMMAND"),_t=dt("INSERT_PARAGRAPH_COMMAND"),wt=dt("CONTROLLED_TEXT_INSERTION_COMMAND"),kt=dt("PASTE_COMMAND"),St=dt("REMOVE_TEXT_COMMAND"),Ct=dt("DELETE_WORD_COMMAND"),Et=dt("DELETE_LINE_COMMAND"),Tt=dt("FORMAT_TEXT_COMMAND"),At=dt("UNDO_COMMAND"),Lt=dt("REDO_COMMAND"),Rt=dt("KEYDOWN_COMMAND"),Mt=dt("KEY_ARROW_RIGHT_COMMAND"),Nt=dt("MOVE_TO_END"),Ot=dt("KEY_ARROW_LEFT_COMMAND"),Pt=dt("MOVE_TO_START"),It=dt("KEY_ARROW_UP_COMMAND"),zt=dt("KEY_ARROW_DOWN_COMMAND"),Dt=dt("KEY_ENTER_COMMAND"),jt=dt("KEY_SPACE_COMMAND"),Ft=dt("KEY_BACKSPACE_COMMAND"),Bt=dt("KEY_ESCAPE_COMMAND"),Ht=dt("KEY_DELETE_COMMAND"),Wt=dt("KEY_TAB_COMMAND"),$t=dt("INSERT_TAB_COMMAND"),Ut=dt("INDENT_CONTENT_COMMAND"),Kt=dt("OUTDENT_CONTENT_COMMAND"),Gt=dt("DROP_COMMAND"),Vt=dt("FORMAT_ELEMENT_COMMAND"),Yt=dt("DRAGSTART_COMMAND"),qt=dt("DRAGOVER_COMMAND"),Qt=dt("DRAGEND_COMMAND"),Jt=dt("COPY_COMMAND"),Xt=dt("CUT_COMMAND"),Zt=dt("SELECT_ALL_COMMAND"),en=dt("CLEAR_EDITOR_COMMAND"),tn=dt("CLEAR_HISTORY_COMMAND"),nn=dt("CAN_REDO_COMMAND"),rn=dt("CAN_UNDO_COMMAND"),on=dt("FOCUS_COMMAND"),an=dt("BLUR_COMMAND"),sn=dt("KEY_MODIFIER_COMMAND"),ln=Object.freeze({}),un=[["keydown",function(e,t){cn=e.timeStamp,dn=e.key,t.isComposing()||Qi(t,Rt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;pa(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ao(t,()=>{ri(n)||(vn=!0)})}],["compositionstart",function(e,t){Qi(t,vt,e)}],["compositionend",function(e,t){I?yn=!0:j||!D&&!W?Qi(t,bt,e):(xn=!0,_n=e.data)}],["input",function(e,t){e.stopPropagation(),Ao(t,()=>{t.dispatchCommand(mt,e)},{event:e}),pn=null}],["click",function(e,t){Ao(t,()=>{const n=Vr(),r=ca(ra(t)),o=Yr();if(r)if(Rr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!Do(i)&&1===Ti().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&i!==n.focus.getNode()){const e=Ta(i,e=>No(e)&&!e.isInline());No(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(fa(n)||di(n))&&Li(Gr(o,r,t,e))}Qi(t,ht,e)})}],["cut",ln],["copy",ln],["dragstart",ln],["dragover",ln],["dragend",ln],["paste",ln],["focus",ln],["blur",ln],["drop",ln]];z&&un.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||I&&qi(t)||"insertCompositionText"!==n&&Qi(t,gt,e)}(e,t)]);let cn=0,dn=null,fn=0,pn=null;const hn=new WeakMap,gn=new WeakMap;let mn=!1,vn=!1,bn=!1,yn=!1,xn=!1,_n="",wn=null,kn=[0,"",0,"root",0];function Sn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=mo(),u=ca(ra(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!xr(s)||(!o&&(!z||fn<r+50)||s.isDirty()&&p<2||Mi(n))&&i.offset!==a.offset&&!s.isComposing()||ci(s)||s.isDirty()&&p>1||(o||!z)&&null!==f&&!s.isComposing()&&c!==pi(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=ui(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(xr(t)||No(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function Cn(e,t){return di(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function En(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;mn&&(mn=!1,Cn(r,o)&&Cn(i,a)&&!wn)||Ao(t,()=>{if(!n)return void Li(null);if(!ii(t,r,i))return;let s=Vr();if(wn&&Rr(s)&&s.isCollapsed()){const e=s.anchor,t=wn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=wn.clone(),Li(s))}if(wn=null,Rr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=ra(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=kn,f=Ti(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)Tn(s,a,l);else if("text"===n.type)xr(r)||R(141),An(s,r);else if("element"===n.type&&!p){No(r)||R(259);const e=n.getNode();e.isEmpty()?function(e,t){Tn(e,t.getTextFormat(),t.getTextStyle())}(s,e):Tn(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(xr(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}}Qi(t,ft,void 0)})}function Tn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function An(e,t){Tn(e,t.getFormat(),t.getStyle())}function Ln(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Rn(e){const t=e.inputType,n=Ln(e),r=mo(),o=Vr();if("deleteContentBackward"===t){if(null===o){const e=Yr();if(!Rr(e))return!0;Li(e.clone())}if(Rr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===dn&&i<cn+30&&r.isComposing()&&t){if(yi(null),cn=0,setTimeout(()=>{Ao(r,()=>{yi(null)})},30),Rr(o)){const e=o.anchor.getNode();e.markDirty(),xr(e)||R(142),An(o,e)}}else{yi(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=H&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Io(Yi(o.anchor,!0))),!l){Qi(r,yt,!0);const e=Vr();H&&Rr(e)&&e.isCollapsed()&&(wn=e,setTimeout(()=>wn=null))}}return!0}}var i;if(!Rr(o))return!0;const a=e.data;null!==pn&&Ii(!1,r,pn),o.dirty&&null===pn||!o.isCollapsed()||Do(o.anchor.getNode())||null===n||o.applyDOMRange(n),pn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),Qi(r,xt,!1);else if(a===Z)e.preventDefault(),Qi(r,_t,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&Sn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),Qi(r,wt,a)):pn=a;return fn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Qi(r,wt,e);break;case"insertFromComposition":yi(null),Qi(r,wt,e);break;case"insertLineBreak":yi(null),Qi(r,xt,!1);break;case"insertParagraph":yi(null),bn&&!j?(bn=!1,Qi(r,xt,!1)):Qi(r,_t,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Qi(r,kt,e);break;case"deleteByComposition":(function(e,t){return e!==t||No(e)||No(t)||!ui(e)||!ui(t)})(u,c)&&Qi(r,St,e);break;case"deleteByDrag":case"deleteByCut":Qi(r,St,e);break;case"deleteContent":Qi(r,yt,!1);break;case"deleteWordBackward":Qi(r,Ct,!0);break;case"deleteWordForward":Qi(r,Ct,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Qi(r,Et,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Qi(r,Et,!1);break;case"formatStrikeThrough":Qi(r,Tt,"strikethrough");break;case"formatBold":Qi(r,Tt,"bold");break;case"formatItalic":Qi(r,Tt,"italic");break;case"formatUnderline":Qi(r,Tt,"underline");break;case"historyUndo":Qi(r,At,void 0);break;case"historyRedo":Qi(r,Lt,void 0)}return!0}function Mn(e){if(fa(e.target)&&ri(e.target))return!0;const t=mo(),n=Vr(),r=e.data,o=Ln(e);if(null!=r&&Rr(n)&&Sn(n,o,r,e.timeStamp,!1)){yn&&(Pn(t,r),yn=!1);const o=n.anchor.getNode(),i=ca(ra(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;z&&!n.isCollapsed()&&xr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Pi(i.anchorNode)||Qi(t,wt,r);const u=r.length;I&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),H&&t.isComposing()&&(cn=0,yi(null))}else Ii(!1,t,null!==r?r:void 0),yn&&(Pn(t,r||void 0),yn=!1);return function(){po();ve(mo())}(),!0}function Nn(e){const t=mo(),n=Vr();if(Rr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();yi(r.key),ea(Jn),(e.timeStamp<cn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||xr(o)&&o.getStyle()!==n.style)&&Qi(t,wt,ee)}return!0}function On(e){return Pn(mo(),e.data),ea(Xn),!0}function Pn(e,t){const n=e._compositionKey;if(yi(null),null!==n&&null!=t){if(""===t){const t=_i(n),r=pi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&xr(t)){const n=ca(ra(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),zi(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=Vr();if(Rr(t)||Nr(t)){if(Rr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void Qi(e,Dt,null)}}}Ii(!0,e,t)}function In(e){const t=mo();if(null==e.key)return!0;if(xn){if(Wi(e))return Ao(t,()=>{Pn(t,_n)}),xn=!1,_n="",!0;xn=!1,_n=""}if(function(e){return Fi(e,"ArrowRight",{shiftKey:"any"})}(e))Qi(t,Mt,e);else if(function(e){return Fi(e,"ArrowRight",Bi)}(e))Qi(t,Nt,e);else if(function(e){return Fi(e,"ArrowLeft",{shiftKey:"any"})}(e))Qi(t,Ot,e);else if(function(e){return Fi(e,"ArrowLeft",Bi)}(e))Qi(t,Pt,e);else if(function(e){return Fi(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))Qi(t,It,e);else if(function(e){return Fi(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))Qi(t,zt,e);else if(function(e){return Fi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))bn=!0,Qi(t,Dt,e);else if(function(e){return" "===e.key}(e))Qi(t,jt,e);else if(function(e){return P&&Fi(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),bn=!0,Qi(t,xt,!0);else if(function(e){return Fi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))bn=!1,Qi(t,Dt,e);else if(function(e){return Fi(e,"Backspace",{shiftKey:"any"})||P&&Fi(e,"h",{ctrlKey:!0})}(e))Wi(e)?Qi(t,Ft,e):(e.preventDefault(),Qi(t,yt,!0));else if(function(e){return"Escape"===e.key}(e))Qi(t,Bt,e);else if(function(e){return Fi(e,"Delete",{})||P&&Fi(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),Qi(t,yt,!1)):Qi(t,Ht,e);else if(function(e){return Fi(e,"Backspace",Hi)}(e))e.preventDefault(),Qi(t,Ct,!0);else if(function(e){return Fi(e,"Delete",Hi)}(e))e.preventDefault(),Qi(t,Ct,!1);else if(function(e){return P&&Fi(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),Qi(t,Et,!0);else if(function(e){return P&&(Fi(e,"Delete",{metaKey:!0})||Fi(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),Qi(t,Et,!1);else if(function(e){return Fi(e,"b",Bi)}(e))e.preventDefault(),Qi(t,Tt,"bold");else if(function(e){return Fi(e,"u",Bi)}(e))e.preventDefault(),Qi(t,Tt,"underline");else if(function(e){return Fi(e,"i",Bi)}(e))e.preventDefault(),Qi(t,Tt,"italic");else if(function(e){return Fi(e,"Tab",{shiftKey:"any"})}(e))Qi(t,Wt,e);else if(function(e){return Fi(e,"z",Bi)}(e))e.preventDefault(),Qi(t,At,void 0);else if(function(e){return P?Fi(e,"z",{metaKey:!0,shiftKey:!0}):Fi(e,"y",{ctrlKey:!0})||Fi(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),Qi(t,Lt,void 0);else{const n=t._editorState._selection;null===n||Rr(n)?$i(e)&&(e.preventDefault(),Qi(t,Zt,e)):function(e){return Fi(e,"c",Bi)}(e)?(e.preventDefault(),Qi(t,Jt,e)):function(e){return Fi(e,"x",Bi)}(e)?(e.preventDefault(),Qi(t,Xt,e)):$i(e)&&(e.preventDefault(),Qi(t,Zt,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(sn,e),!0}function zn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Dn=new Map;function jn(e){const t=function(e){const t=na(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=si(t.anchorNode);if(null===n)return;vn&&(vn=!1,Ao(n,()=>{const r=Yr(),o=t.anchorNode;(fa(o)||di(o))&&Li(Gr(r,t,n,e))}));const r=Ni(n),o=r[r.length-1],i=o._key,a=Dn.get(i),s=a||o;s!==n&&En(t,s,!1),En(t,n,!0),n!==o?Dn.set(i,n):a&&Dn.delete(i)}function Fn(e){e._lexicalHandled=!0}function Bn(e){return!0===e._lexicalHandled}function Hn(e,t,n){po();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=Vr();if(!Rr(t)||!No(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return ta(o,e)&&n.set(e.__key,0,"element"),ta(i,e)&&r.set(e.__key,0,"element"),t}(e);let a=!1;if(Rr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Jr(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(Jr(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Nr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Rr(i)&&t&&!a){const t=e.getIndexWithinParent();vi(e),qr(i,o,t,-1)}else vi(e);n||oa(o)||o.canBeEmpty()||!o.isEmpty()||Hn(o,t),t&&i&&Do(o)&&o.isEmpty()&&o.selectEnd()}const Wn=Symbol.for("ephemeral");function $n(e){return e[Wn]||!1}let Un=class{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ea(this);return void 0===e&&R(64,this.name),e}static clone(e){R(65,this.name)}$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}),mi(this,e)}getType(){return this.__type}isInline(){R(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=_i(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||Vr();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(xr(this))return n;if(Rr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Io(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:_i(e)}getParentOrThrow(){const e=this.getParent();return null===e&&R(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(oa(t))return No(e)||e===this&&Io(e)||R(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&R(67,this.__key),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:_i(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:_i(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=No(this)?this:this.getParent(),n=No(e)?e:e.getParent(),r=t&&n?os(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=os(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ts(t):("same"!==t.type&&"ancestor"!==t.type&&R(279),!1)))}isParentOf(e){const t=os(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=No(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&&R(68),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=mo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if($n(this))return this;const e=_i(this.__key);return null===e&&R(113),e}getWritable(){if($n(this))return this;po();const e=go(),t=mo(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=Vr();if(null!==a&&a.setCachedNodes(null),i.has(r))return bi(o),o;const s=wa(o);return i.add(r),bi(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){R(70)}updateDOM(e,t,n){R(71)}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){R(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of we(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 _e(t,we(t));return t.__state=n,n}(e).updateFromJSON(o),n}(this,e)}static transform(){return null}remove(e){Hn(this,!0,e)}replace(e,t){po();let n=Vr();null!==n&&(n=n.clone()),sa(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;vi(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(Hn(r,!1,!0),null===u?s.__first=i:u.getWritable().__next=i,a.__prev=d,null===c?s.__last=i:c.getWritable().__prev=i,a.__next=f,a.__parent=p,s.__size=l,t&&(No(this)&&No(a)||R(139),this.getChildren().forEach(e=>{a.append(e)})),Rr(n)){Li(n);const e=n.anchor,t=n.focus;e.key===o&&Ar(e,a),t.key===o&&Ar(t,a)}return xi()===o&&yi(i),a}insertAfter(e,t=!0){po(),sa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=Vr();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(vi(r),Rr(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:l.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Rr(i)){const e=this.getIndexWithinParent();qr(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){po(),sa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;vi(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=Vr();return t&&Rr(u)&&qr(u,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Ko()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){po();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(No(n))return n.select();if(!xr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){po();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(No(n))return n.select(0,0);if(!xr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};const Kn="historic",Gn="history-merge",Vn="collaboration",Yn="skip-scroll-into-view",qn="skip-dom-selection",Qn="skip-selection-focus",Jn="composition-start",Xn="composition-end";let Zn=class e extends Un{static getType(){return"linebreak"}static clone(t){return new e(t.__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&&ma(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&rr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&ma(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&rr(r))return!0}return!1}(e)?null:{conversion:er,priority:0}}}static importJSON(e){return tr().updateFromJSON(e)}};function er(e){return{node:tr()}}function tr(){return aa(new Zn)}function nr(e){return e instanceof Zn}function rr(e){return di(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function or(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function ir(e,t){return 1&t?"strong":2&t?"em":"span"}function ar(e,t,n,r,o){const i=r.classList;let a=Ui(o,"base");void 0!==a&&i.add(...a),a=Ui(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 te){const r=te[e];if(a=Ui(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 sr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?X:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||I){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 lr(e,t,n,r,o,i){sr(o,e,t);const a=i.theme.text;void 0!==a&&ar(0,0,r,e,a)}function ur(e,t){const n=document.createElement(t);return n.appendChild(e),n}let cr=class e extends Un{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new e(t.__text,t.__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 ae[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===xi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=te[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return hi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=or(0,n),o=ir(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)),lr(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=or(0,o),s=or(0,i),l=ir(0,o),u=ir(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&R(48);const o=document.createElement(u);return lr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&R(49)),sr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&ar(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:gr,priority:0}),b:()=>({conversion:fr,priority:0}),code:()=>({conversion:br,priority:0}),em:()=>({conversion:br,priority:0}),i:()=>({conversion:br,priority:0}),mark:()=>({conversion:br,priority:0}),s:()=>({conversion:br,priority:0}),span:()=>({conversion:dr,priority:0}),strong:()=>({conversion:br,priority:0}),sub:()=>({conversion:br,priority:0}),sup:()=>({conversion:br,priority:0}),u:()=>({conversion:br,priority:0})}}static importJSON(e){return yr().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 fa(t)||R(132),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=ur(t,"b")),this.hasFormat("italic")&&(t=ur(t,"i")),this.hasFormat("strikethrough")&&(t=ur(t,"s")),this.hasFormat("underline")&&(t=ur(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?te[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?ne[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=hi(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=ie[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){po();let n=e,r=t;const o=Vr(),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(!Rr(o))return $r(a,n,a,r,"text","text");{const e=xi();e!==o.anchor.key&&e!==o.focus.key||yi(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=Vr();if(r&&Rr(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){po();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=xi(),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 g=!1,m=null,v=null;const b=Vr();if(Rr(b)){const[e,t]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=yr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Te(t,d),g=!0):d=t.setTextContent(u);const y=[d];for(let e=1;e<l;e++){const n=yr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Te(t,n);const i=n.__key;o===r&&yi(i),y.push(n)}const x=m?m.offset:null,_=v?v.offset:null;let w=0;for(const e of y){if(!m&&!v)break;const t=w+e.getTextContentSize();if(null!==m&&null!==x&&x<=t&&x>=w&&(m.set(e.getKey(),x-w,"text"),x<t&&(m=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&&bi(t),null!==n&&bi(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Rr(b)&&qr(b,c,t,l-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||R(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;xi()===r&&yi(n);const a=Vr();if(Rr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&Xr(o,t,n,e,i),null!==s&&s.key===r&&Xr(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 dr(e){return{forChild:_r(e.style),node:null}}function fr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:_r(t.style,n?void 0:"bold"),node:null}}const pr=new WeakMap;function hr(e){if(!fa(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function gr(e){const t=e;null===e.parentElement&&R(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=pr.get(n))&&!hr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)pr.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(tr()):"\t"===r?t.push(kr()):""!==r&&t.push(yr(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=mr(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=mr(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:yr(n)}}function mr(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,fa(n)){const e=n.style.display;if(""===e&&!ga(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(di(n))return n;if("BR"===n.nodeName)return null}}const vr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function br(e){const t=vr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:_r(e.style,t),node:null}}function yr(e=""){return aa(new cr(e))}function xr(e){return e instanceof cr}function _r(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=>xr(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 wr extends cr{static getType(){return"tab"}static clone(e){return new wr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=Ui(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return kr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&M(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||R(286),this}setDetail(e){return 2!==e&&R(127),this}setMode(e){return"normal"!==e&&R(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function kr(){return aa(new wr)}function Sr(e){return e instanceof wr}class Cr{key;offset;type;_selection;constructor(e,t,n){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){return this.key===e.key?this.offset<e.offset:es(ps(is(this,"next")),ps(is(e,"next")))<0}getNode(){const e=_i(this.key);return null===e&&R(20),e}set(e,t,n,r){const o=this._selection,i=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,fo()||(xi()===i&&yi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function Er(e,t,n){return new Cr(e,t,n)}function Tr(e,t){let n=t.__key,r=e.offset,o="element";if(xr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!No(t)){const e=t.getNextSibling();if(xr(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 Ar(e,t){if(No(t)){const n=t.getLastDescendant();No(n)||xr(n)?Tr(e,n):Tr(e,t)}else Tr(e,t)}let Lr=class e{_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(!Nr(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 e(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(xr(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=_i(e);null!==t&&n.push(t)}return fo()||(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((Vr()||Yr())===this&&e[0]){const t=Wa(e[0],"next");ss(Xa(t,t))}for(const t of e)t.remove()}};function Rr(e){return e instanceof Mr}class Mr{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!!Rr(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(ja(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;No(e)&&i.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Da(e.focus)&&No(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Ga(e.focus.origin,"previous");ja(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Va(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!No(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ps(e.anchor),r=ps(e.anchor.getFlipped()),o=e=>za(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(ms(us(this),"next"));return fo()||(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]=Pr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(No(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,xr(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!Io(d)&&!nr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=mo(),n=t.getEditorState()._selection,r=Hr(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),Me(this)}clone(){const e=this.anchor,t=this.focus;return new Mr(Er(e.key,e.offset,e.type),Er(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=hi(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=te[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(tr()):"\t"===r?n.push(kr()):n.push(yr(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=yr();if(a.setFormat(n),a.setStyle(r),Go(i))i.splice(0,0,[a]);else{const e=Do(o)?Ko().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,ps(is(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];xr(d)||R(26);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&&(ci(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(xr(t)&&t.canInsertTextBefore()&&!ci(t)||(t=yr(),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&&(ci(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(xr(t)&&!ci(t)||(t=yr(),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=yr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||No(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Br(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(ui(d)){const t=yr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Sr(d)){const t=yr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=yr(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=No(d)?d:d.getParentOrThrow();let r=No(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(xr(h)&&!ui(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=yr(h.getTextContent());h.replace(e),h=e}Do(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),g=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||No(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?g||m.insertAfter(t,!1):t.remove())}if(!g){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(ui(d))if(s===f)d.select();else{const t=yr(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=Vr()===this;ls(this,function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=ms(e,r),a=ds(i.anchor,n),s=ds(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(ja(e))l.add(e.origin.getKey());else if(Da(e)){const{origin:t}=e;No(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=cs(Wa(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=yr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=$a(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(fs(e)){c=ps(e);break}for(const e of s)if(fs(e)){d=ps(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(oa(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,va),d=c&&u(a,e=>n.has(e.getKey())&&va(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;Ga(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(fs);if(p)return Ja(gs(ps(p),e.direction));R(269,JSON.stringify(a.map(e=>e.origin.__key)))}(us(this))),e&&Vr()!==this&&Li(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void yi(null);const n=this.getNodes(),r=[];for(const e of n)xr(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(No(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),yi(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 g=i-1;let m=r[g];const v="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(p===v)return;if(ci(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||ci(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const b=m.getFormatFlags(e,h);v>0&&(v===m.getTextContentSize()||ci(m)||([m]=m.splitText(v)),m.setFormat(b));for(let t=d+1;t<g;t++){const n=r[t],o=n.getFormatFlags(e,b);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(m.__key,v,"text"),this.format=h|b}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=Vr();return Rr(t)||R(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Ta(t,va),r=e[e.length-1];if(No(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=no(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(No(e)||Io(e))&&!e.isInline())){No(n)||R(211,t.constructor.name,t.getType());const o=no(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=Ko();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=nr(o);if(i||Io(o)&&o.isInline()||No(o)&&o.isInline()||xr(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=No(n)&&n.isEmpty()?null:this.insertParagraph(),l=a[a.length-1];let u=a[0];var c;No(c=u)&&va(c)&&!c.isEmpty()&&No(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(No(n)||R(211,t.constructor.name,t.getType()),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&R(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||R(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const d=Ta(i,va);s&&No(d)&&(s.canMergeWhenEmpty()||va(l))&&(d.append(...s.getChildren()),s.remove()),No(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const f=No(n)?n.getLastChild():null;nr(f)&&d!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=Ko();return Ti().splice(this.anchor.offset,0,[e]),e.select(),e}const e=no(this),t=Ta(this.anchor.getNode(),va);No(t)||R(213);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=tr();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]=Pr(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(xr(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(xr(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),xr(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(oo(this,e,t,n))return;const r="move"===e,o=mo(),i=ca(ra(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!No(l)||l.isInline()||l.canBeEmpty()||ua(a,o,s),this.dirty){let e=Ji(o,this.anchor.key),t=Ji(o,this.focus.key);"text"===this.anchor.type&&(e=pi(e)),"text"===this.focus.type&&(t=pi(t)),e&&t&&Zr(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=Do(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(oa(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];ta(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];No(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];No(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&&oo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&No(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(No(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=Qa(is(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(ja(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(No(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ps(t);ls(this,Xa(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(Da(t)){if(No(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(Io(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&No(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=Kr();e.add(t.origin.getKey()),Li(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return ls(this,Xa(!t.origin.isEmpty()&&n.isEmpty()?cs(Wa(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&&Ir(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 Dr(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 Dr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"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;s!==u&&function(e){return!(Mi(e)||zr(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()&&Do(e.getParent())&&null===e.getPreviousSibling()&&Ir(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 Nr(e){return e instanceof Lr}function Or(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Pr(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]:[Or(n),Or(r)]}function Ir(e,t){for(let n=t;n;n=n.getParent()){if(No(n)){if(n.collapseAtStart(e))return!0;if(oa(n))break}if(n.getPreviousSibling())break}return!1}const zr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Dr(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 jr(e,t,n,r){let o,i=t;if(fa(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;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&i--}if(o=Ri(c),xr(o))i=Ua(o,a?"next":"previous");else{let s=Ri(e);if(null===s)return null;if(No(s)){const l=r.getElementByKey(s.getKey());null===l&&R(214);const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),No(s)||R(215),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(No(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=No(c)?c:c.getParentOrThrow()),i=0}xr(c)?(o=c,s=null,i=Ua(c,a?"next":"previous")):c!==s&&a&&!d&&(No(s)||R(216),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Io(s)&&Ri(e)===s?n:n+1,s=s.getParentOrThrow()}if(No(s))return Er(s.__key,i,"element")}}else o=Ri(e);return xr(o)?Er(o.__key,Ua(o,i,"clamp"),"text"):null}function Fr(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&&No(i)&&i.isInline()){const t=i.getPreviousSibling();xr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else No(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):xr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&No(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&No(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();xr(t)&&e.set(t.__key,0,"text")}}}function Br(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Fr(e,n,r),Fr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function Hr(e,t,n,r,o,i){if(null===e||null===n||!ii(o,e,n))return null;const a=jr(e,t,Rr(i)?i.anchor:null,o);if(null===a)return null;const s=jr(n,r,Rr(i)?i.focus:null,o);if(null===s)return null;if("element"===a.type&&"element"===s.type){const t=Ri(e),r=Ri(n);if(Io(t)&&Io(r))return null}return Br(a,s),[a,s]}function Wr(e){return No(e)&&!e.isInline()}function $r(e,t,n,r,o,i){const a=go(),s=new Mr(Er(e,t,o),Er(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function Ur(){const e=Er("root",0,"element"),t=Er("root",0,"element");return new Mr(e,t,0,"")}function Kr(){return new Lr(new Set)}function Gr(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=!ue&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Rr(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)&&Rr(e)&&!ii(n,u,c))return e.clone();const p=Hr(u,d,c,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,v="";if(Rr(e)){const t=e.anchor;if(h.key===t.key)m=e.format,v=e.style;else{const e=h.getNode();xr(e)?(m=e.getFormat(),v=e.getStyle()):No(e)&&(m=e.getTextFormat(),v=e.getTextStyle())}}return new Mr(h,g,m,v)}function Vr(){return go()._selection}function Yr(){return mo()._editorState._selection}function qr(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"),Qr(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")}}Qr(e)}function Qr(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!No(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(xr(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(No(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(xr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(No(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(xr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function Jr(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,xr(r)?(a=r.getTextContentSize(),s="text"):No(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,xr(o)?s="text":No(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 Xr(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 Zr(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){}}function eo(e,t,n){const r=Ji(e,t.getKey());if(No(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function to(e){let t=Vr()||Yr();null===t&&(t=Ti().selectEnd()),t.insertNodes(e)}function no(e){let t=e;e.isCollapsed()||t.removeText();const n=Vr();Rr(n)&&(t=n),Rr(t)||R(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!va(o);){const e=o;if([o,i]=ro(o,i),e.is(o))break}return i}function ro(e,t){const n=e.getParent();if(!n){const e=Ko();return Ti().append(e),e.select(),[Ti(),0]}if(xr(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(!No(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Mr(Er(e.__key,t,"element"),Er(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function oo(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=is(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!hs(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Io(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of Qa(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ja(e))e.origin.isInline()||(l=e);else{if(No(e.origin))continue;Io(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Io(l.origin)&&l.origin.isKeyboardSelectable()){const e=Kr();return e.add(l.origin.getKey()),Li(e),!0}return l=ps(l),s&&as(e.anchor,l),as(e.focus,l),u||!a}let io=null,ao=null,so=!1,lo=!1,uo=0;const co={characterData:!0,childList:!0,subtree:!0};function fo(){return so||null!==io&&io._readOnly}function po(){so&&R(13)}function ho(){uo>99&&R(14)}function go(){return null===io&&R(195,vo()),io}function mo(){return null===ao&&R(196,vo()),ao}function vo(){let e=0;const t=new Set,n=Qo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=li(r);if(ai(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 bo(e,t,n){const r=t.__type,o=ei(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 yo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function xo(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 _o(e){return wo(e,mo()._nodes)}function wo(e,t){const n=e.type,r=t.get(n);void 0===r&&R(17,n);const o=r.klass;e.type!==o.getType()&&R(18,o.name);const i=o.importJSON(e),a=e.children;if(No(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=wo(a[e],t);i.append(n)}return i}function ko(e,t,n){const r=io,o=so,i=ao;io=t,so=!0,ao=e;try{return n()}finally{io=r,so=o,ao=i}}function So(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=io,c=so,d=ao,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){ao=e,io=n,so=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=function(e,t,n,r,o,i){$e="",Ge=2===r,Pe=n,Oe=n._config,Ie=n._nodes,ze=Pe._listeners.mutation,De=o,je=i,Fe=e._nodeMap,Be=t._nodeMap,Ve=t._readOnly,He=new Map(n._keyToDOMMap);const a=new Map;return We=a,at("root",null),Pe=void 0,Ie=void 0,De=void 0,je=void 0,Fe=void 0,Be=void 0,Oe=void 0,He=void 0,We=void 0,a}(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),lo)throw t;return Vo(e,null,r,n),be(e),e._dirtyType=2,lo=!0,So(e,i),void(lo=!1)}finally{p.observe(r,co),e._updating=f,io=u,so=c,ao=d}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,v=e._normalizedNodes,b=e._updateTags,y=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=Ci(e)),delete r[i])}(e,n);const x=o?null:ca(ra(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!b.has(qn)){ao=e,io=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&ua(t,e,r),function(e,t,n,r,o,i){const a=r.anchorNode,s=r.focusNode,l=r.anchorOffset,u=r.focusOffset,c=document.activeElement;if(o.has(Vn)&&c!==i||null!==c&&oi(c))return;if(!Rr(t))return void(null!==e&&ii(n,a,s)&&r.removeAllRanges());const d=t.anchor,f=t.focus,p=d.getNode(),h=f.getNode(),[g,m]=eo(n,p,d.offset),[v,b]=eo(n,h,f.offset),y=t.format,x=t.style,_=t.isCollapsed();let w=g,k=v,S=!1;var C,E,T,A,L;if("text"===d.type?(w=pi(g),S=p.getFormat()!==y||p.getStyle()!==x):Rr(e)&&"text"===e.anchor.type&&(S=!0),"text"===f.type&&(k=pi(v)),null!==w&&null!==k&&(_&&(null===e||S||Rr(e)&&(e.format!==y||e.style!==x))&&(C=y,E=x,T=m,A=d.key,L=performance.now(),kn=[C,E,T,A,L]),l!==m||u!==b||a!==w||s!==k||"Range"===r.type&&_||(null!==c&&i.contains(c)||o.has(Qn)||i.focus({preventScroll:!0}),"element"===d.type))){if(Zr(r,w,m,k,b),!I||!t.isCollapsed()||null===i||o.has(Qn)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(Yn)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Rr(t)&&"element"===t.anchor.type?w.childNodes[m]||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=Zi(n),o=na(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=ra(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=Xi(u)}}(n,t,i)}}mn=!0}}(a,s,e,x,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Rr(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())la(i.getChildAtIndex(a-1))&&(s=!0);else{const t=i.getChildAtIndex(a);if(null!==t&&la(t)){const n=t.getPreviousSibling();(null===n||la(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=_s(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&&ua(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,co),ao=d,io=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,b,g,i),Rr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(ft,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Co("decorator",e,!0,_)),function(e,t,n){const r=Ei(t),o=Ei(n);r!==o&&Co("textcontent",e,!0,o)}(e,t||i,n),Co("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:b}),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,y),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;To(e,t,r)}}}(e)}function Co(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 Eo(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&&R(191),i._flushSync=!0),a&&e._deferred.push(a),xo(e,o.tag)),null==i?To(e,n,o):n()}}return r}function To(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,xo(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=jo(l||s),u=!0),l._flushSync=a;const c=io,d=so,f=ao,p=e._updating;io=l,so=!1,e._updating=!0,ao=e;const h=e._headless||null===e.getRootElement();Xo(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=ca(ra(e));return Rr(n)||null==n?Gr(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Eo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Rr(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);xr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Re(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=xi(),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);xr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Re(r),void 0!==r&&yo(r,i)&&bo(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){uo++;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&&yo(l,i)&&bo(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,uo++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Eo(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()||(No(t)&&le(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(Rr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||R(19)}else Nr(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 So(e)}finally{io=c,so=d,ao=f,e._updating=p,uo=0}const g=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);g?l._flushSync?(l._flushSync=!1,So(e)):u&&ni(()=>{So(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ao(e,t,n){ao===e&&void 0===n?t():To(e,t,n)}class Lo{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Lo(this.element,e,this.after)}withAfter(e){return new Lo(this.element,this.before,e)}withElement(e){return this.element===e?this:new Lo(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&R(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&R(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&R(224),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&&(W||j||D);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=Ro(t,n);o.push(r);const i=Ro(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 Ro(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&&R(225),n.reverse()}class Mo extends Un{__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 oe[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=mo()._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(xr(t)&&e.push(t),No(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;No(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;No(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 No(e)&&e.getLastDescendant()||e||null}const r=t[e];return No(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:_i(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&R(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:_i(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&R(96,this.__key),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(),No(o)&&r!==n-1&&!o.isInline()&&(e+=Z)}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(),No(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=re[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=te[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return hi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){po();const n=Vr();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(xr(e)||No(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(xr(e)||No(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Rr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):$r(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?re[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){$n(this)&&R(324,this.__key,this.__type);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||R(226,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&&R(100);const t=e.getNextSibling(),n=e.__key;vi(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--,vi(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&&R(76),t.__parent=i,a.push(n),d=e}if(e+t===r)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=Vr();if(Rr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Oo(r,t,n)&&Jr(r,r.getNode(),this,u,l),Oo(o,t,n)&&Jr(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||oa(this)||this.remove()}}return o}getDOMSlot(e){return new Lo(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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||oa(this)||this.getChildren().some(xr)||(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 No(e){return e instanceof Mo}function Oo(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 Po extends Un{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Io(e){return e instanceof Po}let zo=class e extends Mo{__cachedText;static getType(){return"root"}static clone(){return new e}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){R(51)}getTextContent(){const e=this.__cachedText;return!fo()&&0!==mo()._dirtyType||null===e?super.getTextContent():e}remove(){R(52)}replace(e){R(53)}insertBefore(e){R(54)}insertAfter(e){R(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)No(e)||Io(e)||R(282);return super.splice(e,t,n)}static importJSON(e){return Ti().updateFromJSON(e)}collapseAtStart(){return!0}};function Do(e){return e instanceof zo}function jo(e){return new Ho(new Map(e._nodeMap))}function Fo(){return new Ho(new Map([["root",new zo]]))}function Bo(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&R(130,n.name),No(e)){const r=t.children;Array.isArray(r)||R(59,n.name);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=Bo(o[e]);r.push(t)}}return t}class Ho{_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 ko(t&&t.editor||null,this,e)}clone(e){const t=new Ho(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return ko(null,this,()=>({root:Bo(Ti())}))}}class Wo extends Mo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class $o extends Mo{static getType(){return"paragraph"}static clone(e){return new $o(e.__key)}createDOM(e){const t=document.createElement("p"),n=Ui(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Uo,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return Ko().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(xr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=Ko();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||xr(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 Uo(e){const t=Ko();if(e.style&&(t.setFormat(e.style.textAlign),ka(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in re&&t.setFormat(n)}return{node:t}}function Ko(){return aa(new $o)}function Go(e){return e instanceof $o}function Vo(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Fo(),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 Yo(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ea(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 Un&&e!==Un?e:void 0}}return t}function qo(e){const t=e||{},n=ao,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Fo(),s=t.namespace||(null!==o?o._config.namespace:Oi()),l=t.editorState,u=[zo,cr,Zn,wr,$o,Wo,...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}Ea(t);const o=t.getType(),i=Yo(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:xe(u[e]),transforms:i})}}const h=new Qo(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(gt,Rn,0),e.registerCommand(mt,Mn,0),e.registerCommand(vt,Nn,0),e.registerCommand(bt,On,0),e.registerCommand(Rt,In,0)}(h),h}let Qo=class{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=Oi(),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&&R(35);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&&R(36,String(e));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&&R(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=_a(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=_a(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(const e of r)for(const t of e.keys()){const e=_i(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:Gn}: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 Qi(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=Ui(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Vo(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=hn.get(e);if(void 0===t)return;const n=gn.get(t);if(void 0===n)return;const r=n-1;r>=0||R(164),hn.delete(e),gn.set(t,r),0===r&&t.removeEventListener("selectionchange",jn);const o=li(e);ai(o)?(function(e){if(null!==e._parentEditor){const t=Ni(e),n=t[t.length-1]._key;Dn.get(n)===e&&Dn.delete(n)}else Dn.delete(e._key)}(o),e.__lexicalEditor=null):o&&R(198);const i=zn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){const t=na(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,be(this),this._updateTags.add(Gn),So(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;hn.set(e,n);const r=gn.get(n)??0;r<1&&n.addEventListener("selectionchange",jn),gn.set(n,r+1),e.__lexicalEditor=t;const o=zn(e);for(let n=0;n<un.length;n++){const[r,i]=un[n],a="function"==typeof i?e=>{Bn(e)||(Fn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Bn(e))return;Fn(e);const n=t.isEditable();switch(r){case"cut":return n&&Qi(t,Xt,e);case"copy":return Qi(t,Jt,e);case"paste":return n&&Qi(t,kt,e);case"dragstart":return n&&Qi(t,Yt,e);case"dragover":return n&&Qi(t,qt,e);case"dragend":return n&&Qi(t,Qt,e);case"focus":return n&&Qi(t,on,e);case"blur":return n&&Qi(t,an,e);case"drop":return n&&Qi(t,Gt,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Gn),So(this);Co("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&R(38);let n=e;n._readOnly&&(n=jo(e),n._selection=e._selection?e._selection.clone():null),ve(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),So(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||So(this)}parseEditorState(e,t){return function(e,t,n){const r=Fo(),o=io,i=so,a=ao,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,io=r,so=!1,ao=t,Xo(null);try{const o=t._nodes;wo(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,io=o,so=i,ao=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return So(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):To(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ao(this,()=>{const r=Vr(),o=Ti();null!==r?r.dirty||Li(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ea("focus"),function(e){po(),mo()._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=ca(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Co("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};Qo.version="0.41.0+prod.esm";let Jo=null;function Xo(e){Jo=e}let Zo=1;function ei(e,t){const n=ti(e,t);return void 0===n&&R(30,t),n}function ti(e,t){return e._nodes.get(t)}const ni="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ri(e){return Io(Si(e))}function oi(e){const t=document.activeElement;if(!fa(t))return!1;const n=t.nodeName;return Io(Si(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==li(t))}function ii(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!oi(t)&&si(t)===e}catch(e){return!1}}function ai(e){return e instanceof Qo}function si(e){let t=e;for(;null!=t;){const e=li(t);if(ai(e))return e;t=Xi(t)}return null}function li(e){return e?e.__lexicalEditor:null}function ui(e){return Sr(e)||e.isToken()}function ci(e){return ui(e)||e.isSegmented()}function di(e){return pa(e)&&3===e.nodeType}function fi(e){return pa(e)&&9===e.nodeType}function pi(e){let t=e;for(;null!=t;){if(di(t))return t;t=t.firstChild}return null}function hi(e,t,n){const r=te[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 gi(e){return xr(e)||nr(e)||Io(e)}function mi(e,t){const n=function(){const e=Jo;return Jo=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);po(),ho();const r=mo(),o=go(),i=""+Zo++;o._nodeMap.set(i,e),No(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function vi(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 bi(e){ho(),$n(e)&&R(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=go(),o=mo(),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,No(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function yi(e){po();const t=mo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=_i(n);null!==e&&e.getWritable()}if(null!==e){const t=_i(e);null!==t&&t.getWritable()}}}function xi(){return fo()?null:mo()._compositionKey}function _i(e,t){const n=(t||go())._nodeMap.get(e);return void 0===n?null:n}function wi(e,t){const n=ki(e,mo());return void 0!==n?_i(n,t):null}function ki(e,t){return e[`__lexicalKey_${t._key}`]}function Si(e,t){let n=e;for(;null!=n;){const e=wi(n,t);if(null!==e)return e;n=Xi(n)}return null}function Ci(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Ei(e){return e.read(()=>Ti().getTextContent())}function Ti(){return Ai(go())}function Ai(e){return e._nodeMap.get("root")}function Li(e){po();const t=go();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Ri(e){const t=mo(),n=function(e,t){let n=e;for(;null!=n;){const e=ki(n,t);if(void 0!==e)return e;n=Xi(n)}return null}(e,t);return null===n?e===t.getRootElement()?_i("root"):null:_i(n)}function Mi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ni(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Oi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Pi(e){return di(e)?e.nodeValue:null}function Ii(e,t,n){const r=ca(ra(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Pi(o);const r=Si(o);if(null!==t&&xr(r)){if((t===X||t===ee)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&zi(r,t,i,a,e)}}}function zi(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(X)&&(s=t.slice(0,-X.length)),o)){const e=ee;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(yi(null),D||j||W)i.remove();else{const e=mo();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=Yr(),l=i.getTextContentSize(),u=xi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Rr(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=Vr();if(!Rr(d)||null===n||null===r)return void Di(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=yr(i.getTextContent());i.replace(e),i=e}Di(i,s,d)}}}function Di(e,t,n){if(e.setTextContent(t),Rr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=Ua(e,o.offset,"clamp"))}}}function ji(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function Fi(e,t,n){if(!function(e,t){return ji(e,t,"altKey")&&ji(e,t,"ctrlKey")&&ji(e,t,"shiftKey")&&ji(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 Bi={ctrlKey:!P,metaKey:P},Hi={altKey:P,ctrlKey:!P};function Wi(e){return"Backspace"===e.key}function $i(e){return Fi(e,"a",Bi)}function Ui(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=_s(o);return n[t]=e,e}return o}function Ki(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&R(33,i);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 Gi(e){const t=e.getType(),n=go();if(n._readOnly){const e=_a(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 Vi(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 Yi(e,t){const n=e.offset;if("element"===e.type)return Vi(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?Vi(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function qi(e){const t=ra(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Qi(e,t,n){return function(e,t,n){const r=Ni(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(Ao(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 Ji(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&R(75,t),n}function Xi(e){const t=e.assignedSlot||e.parentElement;return ha(t)?t.host:t}function Zi(e){return fi(e)?e:fa(e)?e.ownerDocument:null}function ea(e){po(),mo()._updateTags.add(e)}function ta(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function na(e){const t=Zi(e);return t?t.defaultView:null}function ra(e){const t=e._window;return null===t&&R(78),t}function oa(e){return Do(e)||No(e)&&e.isShadowRoot()}function ia(e){const t=e.constructor.clone(e);return mi(t,null),t.afterCloneFrom(e),t}function aa(e){const t=mo(),n=e.getType(),r=ti(t,n);void 0===r&&R(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||R(201,i.name,i.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||R(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&R(203,e.constructor.name,n,r.name,r.getType()),t}return e}function sa(e,t){!Do(e.getParent())||No(t)||Io(t)||R(99)}function la(e){return(Io(e)||No(e)&&!e.canBeEmpty())&&!e.isInline()}function ua(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function ca(e){return N?(e||window).getSelection():null}function da(e){return fa(e)&&"A"===e.tagName}function fa(e){return pa(e)&&1===e.nodeType}function pa(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function ha(e){return pa(e)&&11===e.nodeType}function ga(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 ma(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 va(e){if(Io(e)&&!e.isInline())return!0;if(!No(e)||oa(e))return!1;const t=e.getFirstChild(),n=null===t||nr(t)||xr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function ba(){return mo()}const ya=new WeakMap,xa=new Map;function _a(e){if(!e._readOnly&&e.isEmpty())return xa;e._readOnly||R(192);let t=ya.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),ya.set(e,t)),t}function wa(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function ka(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Sa(e){return!0===e.__lexicalUnmanaged}function Ca(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Un[t]}function Ea(e){const t=se in e.prototype?e.prototype[se]():void 0,n=function(e){if(!(e===Un||e.prototype instanceof Un)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Qo.version&&(n=JSON.parse(Qo.version))}catch(e){}R(290,e.name,t,n)}return e===Po||e===Mo||e===Un}(e),r=!n&&Ca(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&&(Ca(e,"getType")||(e.getType=()=>i),Ca(e,"clone")||(e.clone=t=>(Xo(t),new e)),Ca(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ca(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Ta=(e,t)=>{let n=e;for(;null!=n&&!Do(n);){if(t(n))return n;n=n.getParent()}return null},Aa={next:"previous",previous:"next"};class La{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Za({hasNext:Da,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Wa(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Wa(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&&R(263,Array.from(a).join(" "))}else o.insert(e);o=Wa(e,this.direction)}for(const e of a.values())e.remove();return this}}class Ra extends La{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ga(e,this.direction)}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Na(this.direction);return Wa(this.getNodeAtCaret(),e)||Ga(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Ra&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Ma={root:Do,shadowRoot:oa};function Na(e){return Aa[e]}function Oa(e,t="root"){return Ma[t](e)?null:e}let Pa=class e extends La{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Wa(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return No(this.origin)?Ga(this.origin,this.direction):null}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Na(this.direction);return Wa(this.getNodeAtCaret(),e)||Ga(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof Ia)&&this.direction===t.direction&&this.origin.is(t.origin)}},Ia=class e extends La{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:$a(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){return $a(this.origin,Na(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof Pa||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Wa(this.origin,this.direction)}};function za(e){return e instanceof Ia}function Da(e){return e instanceof Pa}function ja(e){return e instanceof Ra}const Fa={next:class extends Ia{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ia{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ba={next:class extends Pa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Pa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ha={next:class extends Ra{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ra{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Wa(e,t){return e?new Ba[t](e):null}function $a(e,t,n){return e?new Fa[t](e,Ua(e,n)):null}function Ua(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&M(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function Ka(e,t){return new qa(e,t)}function Ga(e,t){return No(e)?new Ha[t](e):null}function Va(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class Ya{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 Ya(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return za(t)?function(e,t){const{direction:n,origin:r}=e;return Ka(e,Ua(r,"focus"===t?Na(n):n)-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[Ka(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=za(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=za(n),o=t=>t.isSameNodeCaret(n)?null:Va(t)||t.getParentCaret(e);return Za({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")}}let qa=class{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 $a(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}};function Qa(e){return Xa(e,Wa(Ti(),e.direction))}function Ja(e){return Xa(e,e)}function Xa(e,t){return e.direction!==t.direction&&R(265),new Ya(e,t,e.direction)}function Za(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 es(e,t){const n=os(e.origin,t.origin);switch(null===n&&R(275,e.origin.getKey(),t.origin.getKey()),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 ts(n)}}function ts(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 ns(e,t){return t.is(e)}function rs(e){return No(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function os(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=rs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=rs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(ns(e,r)||R(276),{commonAncestor:r,type:"ancestor"}):null===o?(ns(t,r)||R(277),{commonAncestor:r,type:"descendant"}):((No(i)||ns(e,i))&&(No(o)||ns(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||R(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function is(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=_i(e);return null===t&&R(63,e),t}(e.key);return"text"===n?(xr(i)||R(266,i.getType(),r),$a(i,t,o)):(No(i)||R(267,i.getType(),r),function(e,t,n){let r=Ga(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return gs(r,n)}(i,e.offset,t))}function as(e,t){const{origin:n,direction:r}=t,o="next"===r;za(t)?e.set(n.getKey(),t.offset,"text"):Da(t)?xr(n)?e.set(n.getKey(),Ua(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ja(t)&&No(n)||R(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function ss(e){const t=Vr(),n=Rr(t)?t:Ur();return ls(n,e),Li(n),n}function ls(e,t){as(e.anchor,t.anchor),as(e.focus,t.focus)}function us(e){const{anchor:t,focus:n}=e,r=is(t,"next"),o=is(n,"next"),i=es(r,o)<=0?"next":"previous";return Xa(gs(r,i),gs(o,i))}function cs(e){const{direction:t,origin:n}=e,r=Wa(n,Na(t)).getNodeAtCaret();return r?Wa(r,t):Ga(n.getParentOrThrow(),t)}function ds(e,t="root"){const n=[e];for(let r=ja(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(cs(r));return n}function fs(e){return!!e&&e.origin.isAttached()}function ps(e){const t=function(e){let t=e;for(;ja(t);){const e=Va(t);if(!ja(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(xr(t.origin))return za(t)?t:$a(t.origin,n,n);const r=t.getAdjacentCaret();return Da(r)&&xr(r.origin)?$a(r.origin,n,Na(n)):t}function hs(e){return za(e)&&e.offset!==Ua(e.origin,e.direction)}function gs(e,t){return e.direction===t?e:e.getFlipped()}function ms(e,t){return e.direction===t?e:Xa(gs(e.focus,t),gs(e.anchor,t))}function vs(e){const{origin:t,offset:n,direction:r}=e;if(n===Ua(t,r))return e.getSiblingCaret();if(n===Ua(t,Na(r)))return cs(e.getSiblingCaret());const[o]=t.splitText(n);return xr(o)||R(281),gs(Wa(o,"next"),r)}function bs(e,t){return!0}function ys(e,{$copyElementNode:t=ia,$splitTextPointCaretNext:n=vs,rootMode:r="shadowRoot",$shouldSplit:o=bs}={}){if(za(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(ja(e)&&(!n.canBeEmpty()||!o(n,"first")))return cs(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 xs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function _s(...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 ws(e,...t){const n=_s(...t);n.length>0&&e.classList.add(...n)}function ks(e,...t){const n=_s(...t);n.length>0&&e.classList.remove(...n)}function Ss(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Cs(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Es=new Map;function Ts(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 As(e){let t=Es.get(e);return void 0===t&&(t=Ts(e),Es.set(e,t)),t}function Ls(e){const t=ba().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Rs(e){return Ls(Do(e)?e:e.getParentOrThrow())}function Ms(e){const t=Rs(e);return null!==t&&"rtl"===t.direction}function Ns(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!ci(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]=Pr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;i?(f=r>o?o:r,d=r>o?r:o):u?(f=a?o:r,d=void 0):c&&(f=0,d=a?r:o);const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=function(e){return(t=wa(e))[Wn]=!0,t;var t}(t)),t.__text=p)}}return t}function Os(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return No(t)||Cs(177),e.offset===t.getChildrenSize()}function Ps(e){const t=e.getStyle(),n=Ts(t);Es.set(t,n)}function Is(e,t){(Rr(e)?e.isCollapsed():xr(e)||No(e))||Cs(280);const n=As(Rr(e)?e.style:xr(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);Rr(e)||xr(e)?e.setStyle(o):e.setTextStyle(o),Es.set(o,r)}function zs(e,t){if(Rr(e)&&e.isCollapsed()){Is(e,t);const n=e.anchor.getNode();No(n)&&n.isEmpty()&&Is(n,t)}!function(e){const t=Vr();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Rr(t))for(const e of us(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!xr(t)||!t.canHaveFormat())continue;const[n,o]=r(t);o!==n&&(ci(t)||0===n&&o===t.getTextContentSize()?e(t):e(t.splitText(n,o)[0===n?0:1]))}Rr(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=>{Is(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!No(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),Is(r,t))}}}function Ds(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function js(e){const t=Fs(e);return null!==t&&"vertical-rl"===t.writingMode}function Fs(e){const t=e.anchor.getNode();return No(t)?Ls(t):Rs(t)}function Bs(e,t){let n=js(e)?!t:t;Hs(e)&&(n=!n);const r=is(e.focus,n?"previous":"next");if(hs(r))return!1;for(const e of Qa(r)){if(ja(e))return!e.origin.isInline();if(!No(e.origin)){if(Io(e.origin))return!0;break}}return!1}function Hs(e){const t=Fs(e);return null!==t&&"rtl"===t.direction}function Ws(e,t,n){const r=Hs(e);let o;o=js(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function $s(e,t,n){const r=As(e.getStyle());return null!==r&&r[t]||n}function Us(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(Rr(e)&&e.isCollapsed()&&""!==e.style){const n=As(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))&&xr(i)){const e=$s(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function Ks(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Gs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Vs=Gs&&"documentMode"in document?document.documentMode:null;function Ys(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function qs(e){const t=Ta(e,e=>No(e)&&!e.isInline());return No(t)||Ks(4,e.__key),t}function Qs(e){const t=Vr()||Yr();let n;if(Rr(t))n=is(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=Wa(r,"next"))}n=n||Ga(Ti(),"previous").getFlipped().insert(Ko())}const r=Js(e,n),o=Va(r);return ss(Ja(ja(o)?ps(o):r)),e.getLatest()}function Js(e,t,n){let r=gs(t,"next");for(let e=r;e;e=ys(e,n))r=e;return za(r)&&Ks(283),r.insert(e.isInline()?Ko().append(e):e),gs(Wa(e.getLatest(),"next"),t.direction)}function Xs(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Zs(e){const t=Vr();if(!Rr(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=Ta(o,e=>No(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}Gs&&"InputEvent"in window&&!Vs&&new window.InputEvent("input");const el=Symbol.for("preact-signals");function tl(){if(il>1)return void il--;let e,t=!1;for(;void 0!==rl;){let n=rl;for(rl=void 0,al++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&dl(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(al=0,il--,t)throw e}let nl,rl;function ol(e){const t=nl;nl=void 0;try{return e()}finally{nl=t}}let il=0,al=0,sl=0;function ll(e){if(void 0===nl)return;let t=e.n;return void 0===t||t.t!==nl?(t={i:0,S:e,p:nl.s,n:void 0,t:nl,e:void 0,x:void 0,r:t},void 0!==nl.s&&(nl.s.n=t),nl.s=t,e.n=t,32&nl.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=nl.s,t.n=void 0,nl.s.n=t,nl.s=t),t):void 0}function ul(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 cl(e,t){return new ul(e,t)}function dl(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 fl(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 pl(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 hl(e,t){ul.call(this,void 0),this.x=e,this.s=void 0,this.g=sl-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 gl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){il++;const n=nl;nl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ml(e),t}finally{nl=n,tl()}}}function ml(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,gl(e)}function vl(e){if(nl!==this)throw new Error("Out-of-order effect");pl(this),nl=e,this.f&=-2,8&this.f&&ml(this),tl()}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 yl(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 xl(e,t={}){const n={};for(const r in e){const o=t[r],i=cl(void 0===o?e[r]:o);n[r]=i}return n}function _l(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function wl(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function kl(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]=kl(n[e],r[e]);return e}return t}ul.prototype.brand=el,ul.prototype.h=function(){return!0},ul.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:ol(()=>{var e;null==(e=this.W)||e.call(this)}))},ul.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&&ol(()=>{var e;null==(e=this.Z)||e.call(this)}))}},ul.prototype.subscribe=function(e){return yl(()=>{const t=this.value,n=nl;nl=void 0;try{e(t)}finally{nl=n}},{name:"sub"})},ul.prototype.valueOf=function(){return this.value},ul.prototype.toString=function(){return this.value+""},ul.prototype.toJSON=function(){return this.value},ul.prototype.peek=function(){const e=nl;nl=void 0;try{return this.value}finally{nl=e}},Object.defineProperty(ul.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++,sl++,il++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{tl()}}}}),hl.prototype=new ul,hl.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===sl)return!0;if(this.g=sl,this.f|=1,this.i>0&&!dl(this))return this.f&=-2,!0;const e=nl;try{fl(this),nl=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 nl=e,pl(this),this.f&=-2,!0},hl.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)}ul.prototype.S.call(this,e)},hl.prototype.U=function(e){if(void 0!==this.t&&(ul.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)}},hl.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(hl.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,gl(this),fl(this),il++;const e=nl;return nl=this,vl.bind(this,e)},bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=rl,rl=this)},bl.prototype.d=function(){this.f|=8,1&this.f||ml(this)},bl.prototype.dispose=function(){this.d()},function(e,t){new ye(e,t)}("format",{parse:e=>"number"==typeof e?e:0});function Sl(e){return 0===e.id}function Cl(e){return 2===e.id}const El=new Set;let Tl=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):xs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;Cl(t)||wl(306,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:3,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:4,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;4!==t.id&&wl(307,String(t.id),String(5)),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:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&wl(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&wl(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&wl(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&wl(311),this._signal}getInitResult(){void 0===this.extension.init&&wl(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||wl(313,String(e.id),String(4)),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>=3}(e)||wl(314,String(e.id),String(3)),{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(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&wl(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||wl(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||El}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>=5})(e)||wl(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}};const Al={tag:Gn};function Ll(){const e=Ti();e.isEmpty()&&e.append(Ko())}const Rl={config:{setOptions:Al,updateOptions:Al},init:({$initialEditorState:e=Ll})=>({$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(function(e){return e instanceof Ho}(r))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,cr,Zn,wr,$o]},Ml=Symbol.for("@lexical/extension/LexicalBuilder");function Nl(){}function Ol(e){throw e}function Pl(e){return Array.isArray(e)?e:[e]}const Il="0.41.0+prod.esm";let zl=class e{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=Il,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(t){const n=[Pl(Rl)];for(const e of t)n.push(Pl(e));return new e(n)}static maybeFromEditor(t){const n=t[Ml];return n&&(n.PACKAGE_VERSION!==Il&&wl(292,n.PACKAGE_VERSION,Il),n instanceof e||wl(293)),n}static fromEditor(t){const n=e.maybeFromEditor(t);return void 0===n&&wl(294),n}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(qo({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[Ml]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=Nl;function t(){try{e()}finally{e=Nl}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Ss(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(295,e.name),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(296);const t=Pl(e),[n]=t;"string"!=typeof n.name&&wl(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&wl(298,n.name),!r){r=new Tl(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&wl(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&wl(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Pl(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(Cl(o))return;const i=n.extension.name;var a;Sl(o)||wl(300,i,r||"[unknown]"),Sl(a=o)||wl(304,String(a.id),String(0)),o=Object.assign(a,{id:1}),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=function(e){return function(e){return 1===e.id}(e)||wl(305,String(e.id),String(1)),Object.assign(e,{id:2})}(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Sl(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(301,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 Ss(...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 _l(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&wl(302,a.name,e.replace.name,t.extension.name),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&&kl(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=Ol),e}};function Dl(e){return e.canBeEmpty()}const jl=new Set(["http:","https:","mailto:","sms:","tel:"]);let Fl=class e extends Mo{__url;__target;__rel;__title;static getType(){return"link"}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__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),ws(t,e.theme.link),t}updateLinkDOM(e,t,n){if(da(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:$l,priority:1})}}static importJSON(e){return Ul().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=Zl(e);try{const t=new URL(Zl(e));if(!jl.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=Ul(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(!Rr(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 Bl(e){const t=is(e,"next");return[t,t.getFlipped()]}function Hl(e,t){for(const n of t)if(n.origin.isAttached()){return void as(e,ps(n))}}function Wl(e){const t=Vr();let n=null,r=null;Rr(t)&&(n=Bl(t.anchor),r=Bl(t.focus));for(const t of Ga(e,"next")){const n=t.origin;if(No(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=ia(e);t.append(...r),n.append(t)}Js(n,cs(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Rr(t)&&(Hl(t.anchor,n),Hl(t.focus,r),Me(t))}function $l(e){let t=null;if(da(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=Ul(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ul(e="",t){return aa(new Fl(e,t))}function Kl(e){return e instanceof Fl}let Gl=class e extends Fl{__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(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__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 Vl().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=Vl(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}};function Vl(e="",t){return aa(new Gl(e,t))}function Yl(e){return e instanceof Gl}const ql=dt("TOGGLE_LINK_COMMAND");function Ql(e,t){if("element"===e.type){const n=e.getNode();return No(n)||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function Jl(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=Vr();if(null===a||!Rr(a)&&!Nr(a))return;if(Nr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=Ta(e,e=>!Yl(e)&&Kl(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Ta(e,e=>!Yl(e)&&Kl(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=Ul(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=Ta(e,e=>!Yl(e)&&Kl(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=Ta(t,e=>!Yl(e)&&Kl(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())||No(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=Ul(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=Ta(e,Kl);if(null!==t)return u(t)}!function(e){const t=Vr();if(!Rr(t))return e();const n=Me(t),r=n.isBackward(),o=Ql(n.anchor,r?-1:0),i=Ql(n.focus,r?0:-1);if(e(),o||i){const e=Vr();if(Rr(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")}Li(Me(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=Ta(t,Kl);if(a){u(a);continue}if(No(t)){if(!t.isInline())continue;if(Kl(t)){if(!(Yl(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();Kl(s)&&s.is(e)?s.append(t):(e=Ul(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Xl=/^\+?[0-9\s()-]{5,}$/;function Zl(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Xl.test(e)?`tel:${e}`:`https://${e}`}function eu(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const tu=/[.,;\s]/;function nu(e){return tu.test(e)}function ru(e){return nu(e[e.length-1])}function ou(e){return nu(e[0])}function iu(e){let t=e.getPreviousSibling();return No(t)&&(t=t.getLastDescendant()),null===t||nr(t)||xr(t)&&ru(t.getTextContent())}function au(e){let t=e.getNextSibling();return No(t)&&(t=t.getFirstDescendant()),null===t||nr(t)||xr(t)&&ou(t.getTextContent())}function su(e,t,n,r){return!!(e>0?nu(n[e-1]):iu(r[0]))&&(t<n.length?nu(n[t]):au(r[r.length-1]))}function lu(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 uu(e,t,n,r){const o=Vl(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=yr(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=Vr(),c=u?u.getNodes().find(xr):void 0,d=yr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Rr(u)?d.select(u.anchor.offset,u.focus.offset):Nr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function cu(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!xr(o)||!o.isSimpleText())return du(e),void n(null,e.getURL())}const i=e.getTextContent(),a=eu(i,t);if(null===a||a.text!==i)return du(e),void n(null,e.getURL());if(!iu(e)||!au(e))return du(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 du(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 fu={changeHandlers:[],excludeParents:[],matchers:[]};function pu(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function hu(e){let t=1,n=e.getParent();for(;null!=n;){if(Mu(n)){const e=n.getParent();if(ju(e)){t++,n=e.getParent();continue}pu(40)}return t}return t}function gu(e){let t=e.getParent();ju(t)||pu(40);let n=t;for(;null!==n;)n=n.getParent(),ju(n)&&(t=n);return t}function mu(e){let t=[];const n=e.getChildren().filter(Mu);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();ju(o)?t=t.concat(mu(o)):t.push(r)}return t}function vu(e){return Mu(e)&&ju(e.getFirstChild())}function bu(e){return Ru().append(e)}function yu(e,t){return Mu(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function xu(e){const t=Vr();if(null!==t){let n=t.getNodes();if(Rr(t)){const r=t.getStartEndPoints();null===r&&pu(143);const[o]=r,i=o.getNode(),a=i.getParent();if(oa(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=Ko();i.append(e),n=e.select().getNodes()}}else if(yu(i,n)){const t=Du(e);if(oa(a)){i.replace(t);const e=Ru();No(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(Mu(i)){const e=i.getParentOrThrow();_u(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(No(o)&&o.isEmpty()&&!Mu(o)&&!r.has(o.getKey())){wu(o,e);continue}let i=gi(o)?o.getParent():Mu(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(ju(i)){if(!r.has(t)){const n=Du(e);_u(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(oa(n)&&!r.has(t)){r.add(t),wu(i,e);break}i=n}}}}}function _u(e,t){e.splice(e.getChildrenSize(),0,t)}function wu(e,t){if(ju(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Ru();let i;if(_u(o,e.getChildren()),ju(n)&&t===n.getListType())n.append(o),ju(r)&&t===r.getListType()&&(_u(n,r.getChildren()),r.remove()),i=n;else if(ju(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=Du(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=Vr();return Rr(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 ku(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&vu(n)&&vu(r)&&(ku(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function Su(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())Mu(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),ju(r.getFirstChild())||n++)}function Cu(e){const t=new Set;if(vu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(vu(r)&&vu(o)){const n=o.getFirstChild();if(ju(n)){n.append(e);const o=r.getFirstChild();ju(o)&&(_u(n,o.getChildren()),r.remove(),t.add(r.getKey()))}}else if(vu(r)){const t=r.getFirstChild();if(ju(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(vu(o)){const t=o.getFirstChild();ju(t)&&t.append(e)}else if(ju(n)){const t=Ru().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=Du(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 Eu(e){if(vu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(ju(n?n.getParent():void 0)&&Mu(n)&&ju(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=Ru(),i=Du(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=Ru(),s=Du(r);a.append(s),_u(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}let Tu=class extends Mo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();ju(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Mo,importDOM:{li:()=>({conversion:Au,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();!ju(r)||"check"!==r.getListType()||ju(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;if(i&&i.nested&&(s=i.nested.listitem),void 0!==a&&r.push(..._s(a)),i){const e=n.getParent(),t=ju(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=_s(s);n.getChildren().some(e=>ju(e))?r.push(...e):o.push(...e)}o.length>0&&ks(e,...o),r.length>0&&ws(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=As(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in As(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(No(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(Mu(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!ju(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=Du(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&&(No(e)||pu(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(ju(n)||pu(39),Mu(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=Du(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&&vu(t)&&vu(n)&&(ku(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=Ru().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=Ko();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=Mu(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 ju(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(;Mu(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&pu(117),(e=Math.floor(e))>=0||pu(199);let t=this.getIndent();for(;t!==e;)t<e?(Cu(this),t++):(Eu(this),t--);return this}canInsertAfter(e){return Mu(e)}canReplaceWith(e){return Mu(e)}canMergeWith(e){return Mu(e)||Go(e)}extractWithChild(e,t){if(!Rr(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 Du("bullet")}canMergeWhenEmpty(){return!0}};function Au(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return Lu(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 Lu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:Ru("true"===t||"false"!==t&&void 0)}}function Lu(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:Ru(e.hasAttribute("checked"))}}function Ru(e){return aa(new Tu(void 0,e))}function Mu(e){return e instanceof Tu}let Nu=class extends Mo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();ju(t)&&e.getListType()===t.getListType()&&ku(e,t)}(e),Su(e)},extends:Mo,importDOM:{ol:()=>({conversion:Iu,priority:0}),ul:()=>({conversion:Iu,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=zu[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,Ou(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Ou(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 fa(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];Mu(t)||(r===n&&(r=[...n]),r[e]=Ru().append(!No(t)||ju(t)||t.isInline()?t:yr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return Mu(e)}};function Ou(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=hu(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(..._s(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=_s(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&ks(e,...o),r.length>0&&ws(e,...r)}function Pu(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(Mu(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{ju(e)&&t.push(bu(e))})}else t.push(bu(r))}return t}function Iu(e){const t=e.nodeName.toLowerCase();let n=null;return"ol"===t?n=Du("number",e.start):"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(fa(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?Du("check"):Du("bullet")),{after:Pu,node:n}}const zu={ol:"number",ul:"bullet"};function Du(e="number",t=1){return aa(new Nu(e,t))}function ju(e){return e instanceof Nu}const Fu=dt("UPDATE_LIST_START_COMMAND"),Bu=dt("INSERT_UNORDERED_LIST_COMMAND"),Hu=dt("INSERT_ORDERED_LIST_COMMAND"),Wu=dt("REMOVE_LIST_COMMAND");function $u(e,t){return Ss(e.registerCommand(Hu,()=>(xu("number"),!0),1),e.registerCommand(Fu,e=>{const{listNodeKey:t,newStart:n}=e,r=_i(t);return!!ju(r)&&("number"===r.getListType()&&(r.setStart(n),Su(r)),!0)},1),e.registerCommand(Bu,()=>(xu("bullet"),!0),1),e.registerCommand(Wu,()=>(function(){const e=Vr();if(Rr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(yu(r,n))t.add(gu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(gi(r)){const e=Ys(r,Tu);null!=e&&t.add(gu(e))}}for(const n of t){let t=n;const r=mu(n);for(const n of r){const r=Ko().setTextStyle(e.style).setTextFormat(e.format);_u(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&as(e.anchor,ps(Ga(r,"next"))),n.__key===e.focus.key&&as(e.focus,ps(Ga(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(_t,()=>function(e=!1){const t=Vr();if(!Rr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(Mu(n)&&0===n.getChildrenSize())r=n;else if(xr(n)){const e=n.getParent();Mu(e)&&e.getChildren().every(e=>xr(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=gu(r),i=r.getParent();ju(i)||pu(40);const a=i.getParent();let s;if(oa(a))s=Ko(),o.insertAfter(s);else{if(!Mu(a))return!1;s=Ru(),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=Du(i.getListType(),t);if(Mu(s)){const e=Ru();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||!Mu(e)&&!ju(e))break;t=e}t.remove()}(r),!0}(!(!t||!t.restoreNumbering)),1),e.registerNodeTransform(Tu,e=>{const t=e.getFirstChild();if(t){if(xr(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=Vr();Rr(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(cr,e=>{const t=e.getParent();if(Mu(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}const Uu=E.createContext(null);function Ku(){const e=E.useContext(Uu);return null==e&&function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}var Gu,Vu,Yu={exports:{}},qu={};var Qu=(Vu||(Vu=1,Yu.exports=function(){if(Gu)return qu;Gu=1;var e=h(),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 qu.Fragment=n,qu.jsx=a,qu.jsxs=a,qu}()),Yu.exports);const Ju="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Xu=Ju?E.useLayoutEffect:E.useEffect,Zu={tag:Gn};function ec({initialConfig:e,children:t}){const n=E.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=qo({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update(()=>{const t=Ti();if(t.isEmpty()){const n=Ko();t.append(n);const r=Ju?document.activeElement:null;(null!==Vr()||null!==r&&r===e.getRootElement())&&n.select()}},Zu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Zu);break}case"object":e.setEditorState(t,Zu);break;case"function":e.update(()=>{Ti().isEmpty()&&t(e)},Zu)}}(l,i),[l,s]},[]);return Xu(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Qu.jsx(Uu.Provider,{value:n,children:t})}function tc(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(Jn)&&(o=n,i=r,a=s),f.has(Kn))return r=0,n=p,2;f.has(Xn)&&a&&(n=o,r=i,s=a);const h=function(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(!(Rr(i)&&Rr(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||Do(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)&&xr(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!xr(u)||!xr(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,g=p.offset,m=d.length-c.length;return 1===m&&g===h-1?2:-1===m&&g===h+1?3:-1===m&&g===h?4:0}(s,l,c,d,e.isComposing()),g=(()=>{const o=null===u||u.editor===e,i=f.has("history-push");if(!i&&o&&f.has(Gn))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 g="number"==typeof t?t:t.peek();return!1===i&&0!==h&&h===r&&p<n+g&&o||1===c.size&&function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Rr(i)&&Rr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!xr(r)||!xr(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(c)[0],s,l)?0:1})();return n=p,r=h,g}}function nc(e){e.undoStack=[],e.redoStack=[],e.current=null}function rc(e,t,n){const r=tc(e,n),o=Ss(e.registerCommand(At,()=>(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(nn,!0)),0===r.length&&e.dispatchCommand(rn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:Kn})}}(e,t),!0),0),e.registerCommand(Lt,()=>(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(rn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(nn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:Kn})}}(e,t),!0),0),e.registerCommand(en,()=>(nc(t),!1),0),e.registerCommand(tn,()=>(nc(t),e.dispatchCommand(nn,!1),e.dispatchCommand(rn,!1),!0),0),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(nn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(rn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function oc(){return{current:null,redoStack:[],undoStack:[]}}function ic({delay:e,externalHistoryState:t}){const[n]=Ku();return function(e,t,n=1e3){const r=E.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);E.useEffect(()=>rc(e,r,n),[n,e,r])}(n,t,e),null}function ac({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Ku();return E.useEffect(()=>{if(!n.hasNodes([Nu,Tu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),E.useEffect(()=>Ss($u(n,{restoreNumbering:t}),e?function(e){const t=e=>{const t=e.getParent();if(ju(e.getFirstChild())||!ju(t))return;const n=Ta(e,e=>Mu(e)&&ju(e.getParent())&&Mu(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(Mu(n)){const r=n.getPreviousSibling();if(Mu(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;ju(n);){const e=n.getLastChild();if(!Mu(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(ju(o)){const n=hu(o);n+1<hu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(Nu,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(ju(e))for(const r of e.getChildren())if(Mu(r)){t(r);const e=r.getFirstChild();ju(e)&&n.push(e)}}})}(n):()=>{}),[n,e,t]),function(e){E.useEffect(()=>$u(e),[e])}(n),null}function sc({maxIndent:e,$canIndent:t}){const[n]=Ku();return E.useEffect(()=>function(e,t,n=Dl){return Ss(e.registerCommand(Wt,t=>{const n=Vr();if(!Rr(n))return!1;t.preventDefault();const r=function(e){if(e.getNodes().filter(e=>Wr(e)&&e.canIndent()).length>0)return!0;const t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,o=qs(r.getNode());if(o.canIndent()){const e=o.getKey();let t=Ur();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Me(t),t.anchor.is(r))return!0}return!1}(n)?t.shiftKey?Kt:Ut:$t;return e.dispatchCommand(r,void 0)},0),e.registerCommand(Ut,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Rr(Vr()))return!1;const r="function"==typeof n?n:n.peek();return Zs(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}(n,e,t),[n,e,t]),null}function lc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=No(t)&&t.excludeFromCopy("html");let a=t;null!==r&&xr(t)&&(a=Ns(r,t,"clone"));const s=No(a)?a.getChildren():[],l=ti(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=lc(e,i,f,r);!o&&No(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((fa(c)||ha(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(ha(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const uc=new Set(["STYLE","SCRIPT"]);function cc(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||!oa(s))&&(null!=s&&Wr(s)||r);for(let e=0;e<d.length;e++)f.push(...cc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),ma(e)&&(f=function(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(Wr(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&Wr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}(e,f,p?()=>{const e=new Wo;return n.push(e),e}:Ko)),null==s?f.length>0?a=a.concat(f):ma(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&(ga(e.nextSibling)&&ga(e.previousSibling))}(e)&&(a=a.concat(tr())):No(s)&&s.append(...f),a}function dc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function fc(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))return pc(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=_o(e[n]);xr(r)&&Ps(r),t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{return pc(n,function(e,t){const n=fi(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!uc.has(t.nodeName)){const n=cc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof Wo&&t.insertAfter(tr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(o),"text/html")),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Rr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=Vr();if(Rr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([kr()]):n.insertText(r)}}}else t.insertRawText(a)}function pc(e,t,n){e.dispatchCommand(pt,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Rr(e)&&e.isCollapsed()){let t=null;const n=is(e.anchor,"previous");if(n)if(za(n))t=n.origin;else{const e=Xa(n,Ga(Ti(),"next").getFlipped());for(const n of e){if(xr(n.origin)){t=n.origin;break}if(No(n.origin)&&!n.origin.isInline())break}}if(t&&xr(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 hc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=No(n)&&n.excludeFromCopy("html");let a=n;null!==t&&xr(a)&&(a=Ns(t,a,"clone"));const s=No(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&dc(58,n.name),No(e)){const e=t.children;Array.isArray(e)||dc(59,n.name)}return t}(a);xr(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=hc(e,t,i,l.children);!o&&No(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 gc=null;async function mc(e,t,n){if(null!==gc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(vc(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=ca(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(Jt,r=>(Xs(r,ClipboardEvent)&&(a(),null!==gc&&(o.clearTimeout(gc),gc=null),t(vc(e,r,n))),!0),4);gc=o.setTimeout(()=>{a(),gc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function vc(e,t,n){if(void 0===n){const t=ca(e._window),r=Vr();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!ii(e,o,i))return!1;n=yc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of bc)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 bc=[["text/html",function(e,t=Vr()){return null==t&&dc(166),Rr(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=Ti().getChildren();for(let o=0;o<r.length;o++)lc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=Vr()){return null==t&&dc(166),Rr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Ti().getChildren();for(let o=0;o<r.length;o++)hc(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function yc(e=Vr()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=ba();for(const[r,o]of bc){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function xc(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 _c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,wc=_c&&"documentMode"in document?document.documentMode:null,kc=_c&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Sc=!(!_c||!("InputEvent"in window)||wc)&&"getTargetRanges"in new window.InputEvent("input"),Cc=_c&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ec=_c&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Tc=_c&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ac=_c&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&kc&&!Tc,Lc=dt("DRAG_DROP_PASTE_FILE");let Rc=class e extends Mo{static getType(){return"quote"}static clone(t){return new e(t.__key)}createDOM(e){const t=document.createElement("blockquote");return ws(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:zc,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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 Mc().updateFromJSON(e)}insertNewAfter(e,t){const n=Ko(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=Ko();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Mc(){return aa(new Rc)}function Nc(e){return e instanceof Rc}let Oc=class e extends Mo{__tag;static getType(){return"heading"}static clone(t){return new e(t.__tag,t.__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){ws(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Ic,priority:0}),h2:e=>({conversion:Ic,priority:0}),h3:e=>({conversion:Ic,priority:0}),h4:e=>({conversion:Ic,priority:0}),h5:e=>({conversion:Ic,priority:0}),h6:e=>({conversion:Ic,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&Pc(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Pc(e)?{conversion:e=>({node:Dc("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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 Dc(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?Ko():Dc(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=Ko();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?Ko():Dc(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function Pc(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Ic(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Dc(t),null!==e.style&&(ka(e,n),n.setFormat(e.style.textAlign))),{node:n}}function zc(e){const t=Mc();return null!==e.style&&(t.setFormat(e.style.textAlign),ka(e,t)),{node:t}}function Dc(e="h1"){return aa(new Oc(e))}function jc(e){return e instanceof Oc}function Fc(e){let t=null;if(Xs(e,DragEvent)?t=e.dataTransfer:Xs(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 Bc(e){return Io(Si(e))}function Hc(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Wc(e){return Ss(e.registerCommand(ht,e=>{const t=Vr();return!!Nr(t)&&(t.clear(),!0)},0),e.registerCommand(yt,e=>{const t=Vr();return Rr(t)?(t.deleteCharacter(e),!0):!!Nr(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(Ct,e=>{const t=Vr();return!!Rr(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(Et,e=>{const t=Vr();return!!Rr(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(wt,t=>{const n=Vr();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)fc(r,n,e);else if(Rr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(St,()=>{const e=Vr();return!!Rr(e)&&(e.removeText(),!0)},0),e.registerCommand(Tt,e=>{const t=Vr();return!!Rr(t)&&(t.formatText(e),!0)},0),e.registerCommand(Vt,e=>{const t=Vr();if(!Rr(t)&&!Nr(t))return!1;const n=t.getNodes();for(const t of n){const n=Ta(t,e=>No(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},0),e.registerCommand(xt,e=>{const t=Vr();return!!Rr(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(_t,()=>{const e=Vr();return!!Rr(e)&&(e.insertParagraph(),!0)},0),e.registerCommand($t,()=>{const e=kr(),t=Vr();return Rr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),to([e]),!0},0),e.registerCommand(Ut,()=>Zs(e=>{const t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(Kt,()=>Zs(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(It,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Rr(t)){const n=Yi(t.focus,!0);if(!e.shiftKey&&Io(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(zt,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Rr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Ti().getChildrenSize()}(t))return e.preventDefault(),!0;const n=Yi(t.focus,!1);if(!e.shiftKey&&Io(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(Ot,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ms(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Rr(t))return!1;if(Bs(t,!0)){const n=e.shiftKey;return e.preventDefault(),Ws(t,n,!0),!0}return!1},0),e.registerCommand(Mt,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ms(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Rr(t))return!1;const n=e.shiftKey;return!!Bs(t,!1)&&(e.preventDefault(),Ws(t,n,!1),!0)},0),e.registerCommand(Ft,t=>{if(Bc(t.target))return!1;const n=Vr();if(Rr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(Do(n))return!1;const r=qs(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(Kt,void 0);if(Ec&&"ko-KR"===navigator.language)return!1}else if(!Nr(n))return!1;return t.preventDefault(),e.dispatchCommand(yt,!0)},0),e.registerCommand(Ht,t=>{if(Bc(t.target))return!1;const n=Vr();return!(!Rr(n)&&!Nr(n))&&(t.preventDefault(),e.dispatchCommand(yt,!1))},0),e.registerCommand(Dt,t=>{const n=Vr();if(!Rr(n))return!1;if(Hc(n),null!==t){if((Ec||Cc||Ac)&&Sc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(xt,!1)}return e.dispatchCommand(_t,void 0)},0),e.registerCommand(Bt,()=>!!Rr(Vr())&&(e.blur(),!0),0),e.registerCommand(Gt,t=>{const[,n]=Fc(t);if(n.length>0){const r=xc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Si(o);if(null!==i){const e=Ur();if(xr(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")}Li(Me(e))}e.dispatchCommand(Lc,n)}return t.preventDefault(),!0}return!!Rr(Vr())},0),e.registerCommand(Yt,e=>{const[t]=Fc(e),n=Vr();return!(t&&!Rr(n))},0),e.registerCommand(qt,e=>{const[t]=Fc(e),n=Vr();if(t&&!Rr(n))return!1;const r=xc(e.clientX,e.clientY);if(null!==r){Io(Si(r.node))&&e.preventDefault()}return!0},0),e.registerCommand(Zt,()=>(function(e){const t=Ti();if(Rr(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"),Me(e),e}{const e=t.select(0,t.getChildrenSize());Li(Me(e))}}(),!0),0),e.registerCommand(Jt,t=>(mc(e,Xs(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Xt,t=>(async function(e,t){await mc(t,Xs(e,ClipboardEvent)?e:null),t.update(()=>{const e=Vr();Rr(e)?e.removeText():Nr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),0),e.registerCommand(kt,t=>{const[,n,r]=Fc(t);return n.length>0&&!r?(e.dispatchCommand(Lc,n),!0):(!pa(t.target)||!oi(t.target))&&(null!==Vr()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=Vr(),r=Xs(e,InputEvent)||Xs(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&fc(r,n,t)},{tag:"paste"})}(t,e),!0))},0),e.registerCommand(jt,e=>{const t=Vr();return Rr(t)&&Hc(t),!1},0),e.registerCommand(Wt,e=>{const t=Vr();return Rr(t)&&Hc(t),!1},0))}function $c(e,t,n,r){E.useEffect(()=>{e.hasNodes([Gl])||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),E.useEffect(()=>function(e,t=fu){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Ss(e.registerNodeTransform(cr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Yl(t)&&!t.getIsUnlinked())cu(t,n,i);else if(!Kl(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(ou(e.getTextContent())||!Yl(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&xr(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(Yl(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=eu(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(su(s+e,s+t,o,r)){const[o,,l,u]=lu(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Yl(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=uu(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(!Yl(r)||r.getIsUnlinked()){if(Yl(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!ou(a))return du(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=eu(r,t);null!==i&&i.text===r&&(o.append(e),cu(o,t,n),n(null,o.getURL()))}}var s;!Yl(i)||i.getIsUnlinked()||ru(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(du(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(ql,e=>{const t=Vr();return!(null!==e||!Rr(t)||(t.extract().forEach(e=>{const t=e.getParent();Yl(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),1))},1))}(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Uc({matchers:e,onChange:t,excludeParents:n}){const[r]=Ku();return $c(r,e,t,n),null}const Kc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function Gc(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Vc(){return function(e){const[t]=Ku(),n=E.useMemo(()=>e(t),[t,e]),[r,o]=E.useState(()=>n.initialValueFn()),i=E.useRef(r);return Kc(()=>{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}(Gc)}const Yc={black:"#000",white:"#fff"},qc="#e57373",Qc="#ef5350",Jc="#f44336",Xc="#d32f2f",Zc="#c62828",ed="#f3e5f5",td="#ce93d8",nd="#ba68c8",rd="#ab47bc",od="#9c27b0",id="#7b1fa2",ad="#e3f2fd",sd="#90caf9",ld="#42a5f5",ud="#1976d2",cd="#1565c0",dd="#4fc3f7",fd="#29b6f6",pd="#03a9f4",hd="#0288d1",gd="#01579b",md="#81c784",vd="#66bb6a",bd="#4caf50",yd="#388e3c",xd="#2e7d32",_d="#1b5e20",wd="#ffb74d",kd="#ffa726",Sd="#ff9800",Cd="#f57c00",Ed="#e65100",Td={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 Ad(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 Ld=Object.freeze({__proto__:null,default:Ad}),Rd="$$material";function Md(){return Md=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},Md.apply(null,arguments)}function Nd(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 Od=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];if(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}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},e}(),Pd="-ms-",Id="-moz-",zd="-webkit-",Dd="comm",jd="rule",Fd="decl",Bd="@keyframes",Hd=Math.abs,Wd=String.fromCharCode,$d=Object.assign;function Ud(e){return e.trim()}function Kd(e,t,n){return e.replace(t,n)}function Gd(e,t){return e.indexOf(t)}function Vd(e,t){return 0|e.charCodeAt(t)}function Yd(e,t,n){return e.slice(t,n)}function qd(e){return e.length}function Qd(e){return e.length}function Jd(e,t){return t.push(e),e}var Xd=1,Zd=1,ef=0,tf=0,nf=0,rf="";function of(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xd,column:Zd,length:a,return:""}}function af(e,t){return $d(of("",null,null,"",null,null,0),e,{length:-e.length},t)}function sf(){return nf=tf>0?Vd(rf,--tf):0,Zd--,10===nf&&(Zd=1,Xd--),nf}function lf(){return nf=tf<ef?Vd(rf,tf++):0,Zd++,10===nf&&(Zd=1,Xd++),nf}function uf(){return Vd(rf,tf)}function cf(){return tf}function df(e,t){return Yd(rf,e,t)}function ff(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 pf(e){return Xd=Zd=1,ef=qd(rf=e),tf=0,[]}function hf(e){return rf="",e}function gf(e){return Ud(df(tf-1,bf(91===e?e+2:40===e?e+1:e)))}function mf(e){for(;(nf=uf())&&nf<33;)lf();return ff(e)>2||ff(nf)>3?"":" "}function vf(e,t){for(;--t&&lf()&&!(nf<48||nf>102||nf>57&&nf<65||nf>70&&nf<97););return df(e,cf()+(t<6&&32==uf()&&32==lf()))}function bf(e){for(;lf();)switch(nf){case e:return tf;case 34:case 39:34!==e&&39!==e&&bf(nf);break;case 40:41===e&&bf(e);break;case 92:lf()}return tf}function yf(e,t){for(;lf()&&e+nf!==57&&(e+nf!==84||47!==uf()););return"/*"+df(t,tf-1)+"*"+Wd(47===e?e:lf())}function xf(e){for(;!ff(uf());)lf();return df(e,tf)}function _f(e){return hf(wf("",null,null,null,[""],e=pf(e),0,[0],e))}function wf(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",x=o,_=i,w=r,k=y;m;)switch(h=b,b=lf()){case 40:if(108!=h&&58==Vd(k,d-1)){-1!=Gd(k+=Kd(gf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=gf(b);break;case 9:case 10:case 13:case 32:k+=mf(h);break;case 92:k+=vf(cf()-1,7);continue;case 47:switch(uf()){case 42:case 47:Jd(Sf(yf(lf(),cf()),t,n),l);break;default:k+="/"}break;case 123*g:s[u++]=qd(k)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==v&&(k=Kd(k,/\f/g,"")),p>0&&qd(k)-d&&Jd(p>32?Cf(k+";",r,n,d-1):Cf(Kd(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Jd(w=kf(k,t,n,u,c,o,s,y,x=[],_=[],d),i),123===b)if(0===c)wf(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Vd(k,3)?100:f){case 100:case 108:case 109:case 115:wf(e,w,w,r&&Jd(kf(e,w,w,0,0,o,s,y,o,x=[],d),_),o,_,d,s,r?x:_);break;default:wf(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,g=v=1,y=k="",d=a;break;case 58:d=1+qd(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==sf())continue;switch(k+=Wd(b),b*g){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(qd(k)-1)*v,v=1;break;case 64:45===uf()&&(k+=gf(lf())),f=uf(),c=d=qd(y=k+=xf(cf())),b++;break;case 45:45===h&&2==qd(k)&&(g=0)}}return i}function kf(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Qd(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Yd(e,d+1,d=Hd(g=a[h])),y=e;v<p;++v)(y=Ud(g>0?f[v]+" "+b:Kd(b,/&\f/g,f[v])))&&(l[m++]=y);return of(e,t,n,0===o?jd:s,l,u,c)}function Sf(e,t,n){return of(e,t,n,Dd,Wd(nf),Yd(e,2,-2),0)}function Cf(e,t,n,r){return of(e,t,n,Fd,Yd(e,0,r),Yd(e,r+1,-1),r)}function Ef(e,t){for(var n="",r=Qd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Fd:return e.return=e.return||e.value;case Dd:return"";case Bd:return e.return=e.value+"{"+Ef(e.children,r)+"}";case jd:e.value=e.props.join(",")}return qd(n=Ef(e.children,r))?e.return=e.value+"{"+n+"}":""}function Af(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Lf=function(e,t,n){for(var r=0,o=0;r=o,o=uf(),38===r&&12===o&&(t[n]=1),!ff(o);)lf();return df(e,tf)},Rf=function(e,t){return hf(function(e,t){var n=-1,r=44;do{switch(ff(r)){case 0:38===r&&12===uf()&&(t[n]=1),e[n]+=Lf(tf-1,t,n);break;case 2:e[n]+=gf(r);break;case 4:if(44===r){e[++n]=58===uf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wd(r)}}while(r=lf());return e}(pf(e),t))},Mf=new WeakMap,Nf=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)||Mf.get(n))&&!r){Mf.set(e,!0);for(var o=[],i=Rf(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]}}},Of=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pf(e,t){switch(function(e,t){return 45^Vd(e,0)?(((t<<2^Vd(e,0))<<2^Vd(e,1))<<2^Vd(e,2))<<2^Vd(e,3):0}(e,t)){case 5103:return zd+"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 zd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zd+e+Id+e+Pd+e+e;case 6828:case 4268:return zd+e+Pd+e+e;case 6165:return zd+e+Pd+"flex-"+e+e;case 5187:return zd+e+Kd(e,/(\w+).+(:[^]+)/,zd+"box-$1$2"+Pd+"flex-$1$2")+e;case 5443:return zd+e+Pd+"flex-item-"+Kd(e,/flex-|-self/,"")+e;case 4675:return zd+e+Pd+"flex-line-pack"+Kd(e,/align-content|flex-|-self/,"")+e;case 5548:return zd+e+Pd+Kd(e,"shrink","negative")+e;case 5292:return zd+e+Pd+Kd(e,"basis","preferred-size")+e;case 6060:return zd+"box-"+Kd(e,"-grow","")+zd+e+Pd+Kd(e,"grow","positive")+e;case 4554:return zd+Kd(e,/([^-])(transform)/g,"$1"+zd+"$2")+e;case 6187:return Kd(Kd(Kd(e,/(zoom-|grab)/,zd+"$1"),/(image-set)/,zd+"$1"),e,"")+e;case 5495:case 3959:return Kd(e,/(image-set\([^]*)/,zd+"$1$`$1");case 4968:return Kd(Kd(e,/(.+:)(flex-)?(.*)/,zd+"box-pack:$3"+Pd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zd+e+e;case 4095:case 3583:case 4068:case 2532:return Kd(e,/(.+)-inline(.+)/,zd+"$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(qd(e)-1-t>6)switch(Vd(e,t+1)){case 109:if(45!==Vd(e,t+4))break;case 102:return Kd(e,/(.+:)(.+)-([^]+)/,"$1"+zd+"$2-$3$1"+Id+(108==Vd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Gd(e,"stretch")?Pf(Kd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Vd(e,t+1))break;case 6444:switch(Vd(e,qd(e)-3-(~Gd(e,"!important")&&10))){case 107:return Kd(e,":",":"+zd)+e;case 101:return Kd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zd+(45===Vd(e,14)?"inline-":"")+"box$3$1"+zd+"$2$3$1"+Pd+"$2box$3")+e}break;case 5936:switch(Vd(e,t+11)){case 114:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zd+e+Pd+e+e}return e}var If,zf,Df,jf,Ff=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fd:e.return=Pf(e.value,e.length);break;case Bd:return Ef([af(e,{value:Kd(e.value,"@","@"+zd)})],r);case jd: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 Ef([af(e,{props:[Kd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ef([af(e,{props:[Kd(t,/:(plac\w+)/,":"+zd+"input-$1")]}),af(e,{props:[Kd(t,/:(plac\w+)/,":-moz-$1")]}),af(e,{props:[Kd(t,/:(plac\w+)/,Pd+"input-$1")]})],r)}return""})}}],Bf=function(e){var t=e.key;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,o,i=e.stylisPlugins||Ff,a={},s=[];r=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,u,c=[Tf,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Qd(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Nf,Of].concat(i,c));o=function(e,t,n,r){l=n,function(e){Ef(_f(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Od({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f},Hf={exports:{}},Wf={};function $f(){return zf||(zf=1,Hf.exports=function(){if(If)return Wf;If=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,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(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 y(e)===u}return Wf.AsyncMode=l,Wf.ConcurrentMode=u,Wf.ContextConsumer=s,Wf.ContextProvider=a,Wf.Element=t,Wf.ForwardRef=c,Wf.Fragment=r,Wf.Lazy=h,Wf.Memo=p,Wf.Portal=n,Wf.Profiler=i,Wf.StrictMode=o,Wf.Suspense=d,Wf.isAsyncMode=function(e){return x(e)||y(e)===l},Wf.isConcurrentMode=x,Wf.isContextConsumer=function(e){return y(e)===s},Wf.isContextProvider=function(e){return y(e)===a},Wf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wf.isForwardRef=function(e){return y(e)===c},Wf.isFragment=function(e){return y(e)===r},Wf.isLazy=function(e){return y(e)===h},Wf.isMemo=function(e){return y(e)===p},Wf.isPortal=function(e){return y(e)===n},Wf.isProfiler=function(e){return y(e)===i},Wf.isStrictMode=function(e){return y(e)===o},Wf.isSuspense=function(e){return y(e)===d},Wf.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===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Wf.typeOf=y,Wf}()),Hf.exports}var Uf=function(){if(jf)return Df;jf=1;var e=$f(),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 Df=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),g=i(r),m=0;m<p.length;++m){var v=p[m];if(!(n[v]||o&&o[v]||g&&g[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t},Df}(),Kf=o(Uf);function Gf(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Vf=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Yf=function(e,t,n){Vf(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 qf={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},Qf=/[A-Z]|^ms/g,Jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xf=function(e){return 45===e.charCodeAt(1)},Zf=function(e){return null!=e&&"boolean"!=typeof e},ep=Af(function(e){return Xf(e)?e:e.replace(Qf,"-$&").toLowerCase()}),tp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Jf,function(e,t,n){return rp={name:t,styles:n,next:rp},t})}return 1===qf[e]||Xf(e)||"number"!=typeof t||0===t?t:t+"px"};function np(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return rp={name:o.name,styles:o.styles,next:rp},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)rp={name:a.name,styles:a.styles,next:rp},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+=np(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]+"}":Zf(s)&&(r+=ep(i)+":"+tp(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=np(e,t,a);switch(i){case"animation":case"animationName":r+=ep(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Zf(a[u])&&(r+=ep(i)+":"+tp(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=rp,l=n(e);return rp=s,np(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var rp,op=/label:\s*([^\s;{]+)\s*(;|$)/g;function ip(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="";rp=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=np(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=np(n,t,e[a]),r)o+=i[a]}op.lastIndex=0;for(var s,l="";null!==(s=op.exec(o));)l+="-"+s[1];var u=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)+l;return{name:u,styles:o,next:rp}}var ap,sp,lp=!!A.useInsertionEffect&&A.useInsertionEffect,up=lp||function(e){return e()},cp=lp||E.useLayoutEffect,dp=E.createContext("undefined"!=typeof HTMLElement?Bf({key:"css"}):null),fp=dp.Provider,pp=function(e){return E.forwardRef(function(t,n){var r=E.useContext(dp);return e(t,r,n)})},hp=E.createContext({}),gp={}.hasOwnProperty,mp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vf(t,n,r),up(function(){return Yf(t,n,r)}),null},bp=pp(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[mp],i=[r],a="";"string"==typeof e.className?a=Gf(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ip(i,void 0,E.useContext(hp));a+=t.key+"-"+s.name;var l={};for(var u in e)gp.call(e,u)&&"css"!==u&&u!==mp&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(vp,{cache:t,serialized:s,isStringTag:"string"==typeof o}),E.createElement(o,l))}),yp=bp,xp=function(e,t){var n=arguments;if(null==t||!gp.call(t,"css"))return E.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=yp,o[1]=function(e,t){var n={};for(var r in t)gp.call(t,r)&&(n[r]=t[r]);return n[mp]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return E.createElement.apply(null,o)};ap=xp||(xp={}),sp||(sp=ap.JSX||(ap.JSX={}));var _p=pp(function(e,t){var n=ip([e.styles],void 0,E.useContext(hp)),r=E.useRef();return cp(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]),cp(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Yf(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 wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ip(t)}function kp(){var e=wp.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_"}}}var Sp=/^((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)-.*))$/,Cp=Af(function(e){return Sp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ep=function(e){return"theme"!==e},Tp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Cp:Ep},Ap=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},Lp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vf(t,n,r),up(function(){return Yf(t,n,r)}),null},Rp=function e(t,n){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=Ap(t,n,i),l=s||Tp(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];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var g=pp(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=E.useContext(hp)}"string"==typeof e.className?i=Gf(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=ip(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===s?Tp(r):l,m={};for(var v in e)u&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),E.createElement(E.Fragment,null,E.createElement(Lp,{cache:t,serialized:h,isStringTag:"string"==typeof r}),E.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Md({},n,r,{shouldForwardProp:Ap(g,r,!0)})).apply(void 0,d)},g}}.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){Rp[e]=Rp(e)});var Mp,Np,Op,Pp,Ip,zp={exports:{}};function Dp(){if(Np)return Mp;Np=1;return Mp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function jp(){if(Pp)return Op;Pp=1;var e=Dp();function t(){}function n(){}return n.resetWarningCache=t,Op=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 Fp(){return Ip||(Ip=1,zp.exports=jp()()),zp.exports}var Bp=o(Fp());const Hp=new Map;function Wp(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 Qu.jsx(_p,{styles:r})}
17
17
  /**
18
18
  * @mui/styled-engine v5.18.0
19
19
  *
@@ -105,6 +105,6 @@
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 oL(){if(eL)return HC;eL=1,Object.defineProperty(HC,"__esModule",{value:!0}),HC.default=function(t){return(0,e.createStyles)(t)};var e=rL;return HC}var iL,aL,sL={},lL={};function uL(){if(iL)return lL;iL=1;var e=Jm();Object.defineProperty(lL,"__esModule",{value:!0}),lL.default=void 0;var t=(0,e(DC()).default)();return lL.default=t,lL}function cL(){if(aL)return sL;aL=1;var e=Jm();Object.defineProperty(sL,"__esModule",{value:!0}),sL.default=void 0;var t=e(Av()),n=rL,r=e(uL());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 sL.default=o,sL}var dL,fL,pL={},hL={};function gL(){if(dL)return hL;dL=1;var e=Jm();Object.defineProperty(hL,"__esModule",{value:!0}),hL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},hL.getUnit=n,hL.toUnitless=r,hL.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}},hL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},hL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},hL.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(Zw());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return hL}function mL(){if(fL)return pL;fL=1;var e=Jm();Object.defineProperty(pL,"__esModule",{value:!0}),pL.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,g=(0,r.convertLength)(h.htmlFontSize),m=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(g(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(g(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:m,transform:d}))}}),p};var t=e(Av()),n=Ww,r=gL();return pL}var vL,bL={};function yL(){if(vL)return bL;vL=1;var e=Jm();Object.defineProperty(bL,"__esModule",{value:!0}),bL.default=void 0;var t=e(Av()),n=rL,r=e(uL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return bL.default=o,bL}var xL,_L={};function wL(){if(xL)return _L;xL=1;var e=Jm();Object.defineProperty(_L,"__esModule",{value:!0}),_L.default=function(){return(0,t.useTheme)()||n.default};var t=rL;e(h());var n=e(uL());return _L}var kL,SL={};function CL(){if(kL)return SL;kL=1;var e=Jm();Object.defineProperty(SL,"__esModule",{value:!0}),SL.default=void 0;var t=e(Av()),n=rL,r=e(uL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return SL.default=o,SL}var EL,TL,AL={};function LL(){if(EL)return AL;EL=1;var e=Jm();Object.defineProperty(AL,"__esModule",{value:!0}),AL.default=void 0;var t=rL,n=e(uL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return AL.default=r,AL}function RL(){return TL||(TL=1,function(e){var t=Jm(),n=(yw||(yw=1,function(e){var t=kw().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}(_w)),_w.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 g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=$w();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(DC()),a=t(BC()),s=t(oL()),l=t(cL()),u=t(mL()),c=t(yL()),d=NC();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(wL()),p=t(CL()),h=t(LL()),g=rL}(xw)),xw}var ML=RL();ML.alpha(Y_.GREYSCALE_0,.05),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5);const NL=(e,t)=>Qu.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:Qu.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"})}),OL=E.forwardRef(NL);var PL=Object.defineProperty,IL=(e,t)=>{for(var n in t)PL(e,n,{get:t[n],enumerable:!0})},zL=(e,t,n)=>((e,t,n)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),DL={};IL(DL,{af:()=>UL,ak:()=>KL,am:()=>GL,an:()=>VL,ar:()=>YL,ars:()=>qL,as:()=>QL,asa:()=>JL,ast:()=>XL,az:()=>ZL,bal:()=>eR,be:()=>tR,bem:()=>nR,bez:()=>rR,bg:()=>oR,bho:()=>iR,blo:()=>aR,bm:()=>sR,bn:()=>lR,bo:()=>uR,br:()=>cR,brx:()=>dR,bs:()=>fR,ca:()=>pR,ce:()=>hR,ceb:()=>gR,cgg:()=>mR,chr:()=>vR,ckb:()=>bR,cs:()=>yR,cy:()=>xR,da:()=>_R,de:()=>wR,doi:()=>kR,dsb:()=>SR,dv:()=>CR,dz:()=>ER,ee:()=>TR,el:()=>AR,en:()=>LR,eo:()=>RR,es:()=>MR,et:()=>NR,eu:()=>OR,fa:()=>PR,ff:()=>IR,fi:()=>zR,fil:()=>DR,fo:()=>jR,fr:()=>FR,fur:()=>BR,fy:()=>HR,ga:()=>WR,gd:()=>$R,gl:()=>UR,gsw:()=>KR,gu:()=>GR,guw:()=>VR,gv:()=>YR,ha:()=>qR,haw:()=>QR,he:()=>JR,hi:()=>XR,hnj:()=>ZR,hr:()=>eM,hsb:()=>tM,hu:()=>nM,hy:()=>rM,ia:()=>oM,id:()=>iM,ig:()=>aM,ii:()=>sM,io:()=>lM,is:()=>uM,it:()=>cM,iu:()=>dM,ja:()=>fM,jbo:()=>pM,jgo:()=>hM,jmc:()=>gM,jv:()=>mM,jw:()=>vM,ka:()=>bM,kab:()=>yM,kaj:()=>xM,kcg:()=>_M,kde:()=>wM,kea:()=>kM,kk:()=>SM,kkj:()=>CM,kl:()=>EM,km:()=>TM,kn:()=>AM,ko:()=>LM,ks:()=>RM,ksb:()=>MM,ksh:()=>NM,ku:()=>OM,kw:()=>PM,ky:()=>IM,lag:()=>zM,lb:()=>DM,lg:()=>jM,lij:()=>FM,lkt:()=>BM,ln:()=>HM,lo:()=>WM,lt:()=>$M,lv:()=>UM,mas:()=>KM,mg:()=>GM,mgo:()=>VM,mk:()=>YM,ml:()=>qM,mn:()=>QM,mo:()=>JM,mr:()=>XM,ms:()=>ZM,mt:()=>eN,my:()=>tN,nah:()=>nN,naq:()=>rN,nb:()=>oN,nd:()=>iN,ne:()=>aN,nl:()=>sN,nn:()=>lN,nnh:()=>uN,no:()=>cN,nqo:()=>dN,nr:()=>fN,nso:()=>pN,ny:()=>hN,nyn:()=>gN,om:()=>mN,or:()=>vN,os:()=>bN,osa:()=>yN,pa:()=>xN,pap:()=>_N,pcm:()=>wN,pl:()=>kN,prg:()=>SN,ps:()=>CN,pt:()=>EN,pt_PT:()=>TN,rm:()=>AN,ro:()=>LN,rof:()=>RN,ru:()=>MN,rwk:()=>NN,sah:()=>ON,saq:()=>PN,sat:()=>IN,sc:()=>zN,scn:()=>DN,sd:()=>jN,sdh:()=>FN,se:()=>BN,seh:()=>HN,ses:()=>WN,sg:()=>$N,sh:()=>UN,shi:()=>KN,si:()=>GN,sk:()=>VN,sl:()=>YN,sma:()=>qN,smi:()=>QN,smj:()=>JN,smn:()=>XN,sms:()=>ZN,sn:()=>eO,so:()=>tO,sq:()=>nO,sr:()=>rO,ss:()=>oO,ssy:()=>iO,st:()=>aO,su:()=>sO,sv:()=>lO,sw:()=>uO,syr:()=>cO,ta:()=>dO,te:()=>fO,teo:()=>pO,th:()=>hO,ti:()=>gO,tig:()=>mO,tk:()=>vO,tl:()=>bO,tn:()=>yO,to:()=>xO,tpi:()=>_O,tr:()=>wO,ts:()=>kO,tzm:()=>SO,ug:()=>CO,uk:()=>EO,und:()=>TO,ur:()=>AO,uz:()=>LO,ve:()=>RO,vec:()=>MO,vi:()=>NO,vo:()=>OO,vun:()=>PO,wa:()=>IO,wae:()=>zO,wo:()=>DO,xh:()=>jO,xog:()=>FO,yi:()=>BO,yo:()=>HO,yue:()=>WO,zh:()=>$O,zu:()=>UO});var jL=(e,t)=>t?"other":1==e?"one":"other",FL=(e,t)=>t?"other":0==e||1==e?"one":"other",BL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",HL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},WL=(e,t)=>"other",$L=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",UL=jL,KL=FL,GL=BL,VL=jL,YL=(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"},qL=(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"},QL=(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",JL=jL,XL=HL,ZL=(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"},eR=(e,t)=>1==e?"one":"other",tR=(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"},nR=jL,rR=jL,oR=jL,iR=FL,aR=(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"},sR=WL,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=WL,cR=(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"},dR=jL,fR=(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"},pR=(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"},hR=jL,gR=(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"},mR=jL,vR=jL,bR=jL,yR=(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"},xR=(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",_R=(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"},wR=HL,kR=BL,SR=(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"},CR=jL,ER=WL,TR=jL,AR=jL,LR=(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"},RR=jL,MR=(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"},NR=HL,OR=jL,PR=BL,IR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",zR=HL,DR=(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,FR=(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"},BR=jL,HR=HL,WR=(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"},$R=(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"},UR=HL,KR=jL,GR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",VR=FL,YR=(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"},qR=jL,QR=jL,JR=(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"},XR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",ZR=WL,eM=(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"},tM=(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"},nM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",rM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",oM=HL,iM=WL,aM=WL,sM=WL,lM=HL,uM=(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"},cM=(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"},dM=$L,fM=WL,pM=WL,hM=jL,gM=jL,mM=WL,vM=WL,bM=(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"},yM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",xM=jL,_M=jL,wM=WL,kM=WL,SM=(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"},CM=jL,EM=jL,TM=WL,AM=BL,LM=WL,RM=jL,MM=jL,NM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",OM=jL,PM=(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"},IM=jL,zM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},DM=jL,jM=jL,FM=(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"},BM=WL,HM=FL,WM=(e,t)=>t&&1==e?"one":"other",$M=(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"},UM=(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"},KM=jL,GM=FL,VM=jL,YM=(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"},qM=jL,QM=jL,JM=(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"},XM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ZM=(e,t)=>t&&1==e?"one":"other",eN=(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"},tN=WL,nN=jL,rN=$L,oN=jL,iN=jL,aN=(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"},sN=HL,lN=jL,uN=jL,cN=jL,dN=WL,fN=jL,pN=FL,hN=jL,gN=jL,mN=jL,vN=(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"},bN=jL,yN=WL,xN=FL,_N=jL,wN=BL,kN=(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"},SN=(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"},CN=jL,EN=(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"},TN=(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"},AN=jL,LN=(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"},RN=jL,MN=(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"},NN=jL,ON=WL,PN=jL,IN=$L,zN=(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"},DN=(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"},jN=jL,FN=jL,BN=$L,HN=jL,WN=WL,$N=WL,UN=(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"},KN=(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"},GN=(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"},VN=(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"},YN=(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"},qN=$L,QN=$L,JN=$L,XN=$L,ZN=$L,eO=jL,tO=jL,nO=(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"},rO=(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"},oO=jL,iO=jL,aO=jL,sO=WL,lO=(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"},uO=HL,cO=jL,dO=jL,fO=jL,pO=jL,hO=WL,gO=FL,mO=jL,vO=(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"},bO=(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"},yO=jL,xO=WL,_O=WL,wO=jL,kO=jL,SO=(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"},CO=jL,EO=(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"},TO=WL,AO=HL,LO=jL,RO=jL,MO=(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"},NO=(e,t)=>t&&1==e?"one":"other",OO=jL,PO=jL,IO=FL,zO=jL,DO=WL,jO=jL,FO=jL,BO=HL,HO=WL,WO=WL,$O=WL,UO=BL,KO={},GO=Array.prototype.slice,VO=function(e){return("0"+e.toString()).substr(-2)},YO=function(e){var t=typeof e;return"function"===t||"object"===t},qO=function(e){return"function"===typeof e},QO=function(e){return null!=e},JO=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},XO=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},ZO=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},eP=function(e){return!0===e||!1===e},tP=function(e){return null===e},nP=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))))},rP=function(e,t){return qO(e)?e(t):e},oP=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],XO(r)||ZO(r)||eP(r)||JO(r)||tP(r)?e[n]=r:(null==e[n]&&(e[n]={}),oP(e[n],r)));return e},iP={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"]},aP={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},sP={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},lP={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},uP=[null,"kb","mb","gb","tb"],cP={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};KO.reset=function(){var e;for(e in cP)this[e]=cP[e]},KO.initializeOptions=function(){var e;for(e in cP)QO(this[e])||(this[e]=cP[e])},KO.initializeOptions(),KO.locales={},KO.locales.get=function(e){var t=this[e]||this[KO.locale]||this.default;return qO(t)&&(t=t(e)),!1===JO(t)&&(t=[t]),t},KO.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&KO.locale&&t.push(KO.locale),KO.fallbacks&&KO.defaultLocale&&t.push(KO.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),KO.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},KO.pluralization={},KO.pluralization.get=function(e){return this[e]||this[KO.locale]||this.default},KO.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},KO.currentLocale=function(){return this.locale||this.defaultLocale},KO.isSet=QO,KO.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(QO(t.defaultValue))return rP(t.defaultValue,e)},KO.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&YO(n))for(;i.length;)if(r=i.shift(),QO(n[r])){o=n[r];break}return o},KO.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()],YO(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&QO(n.defaultValue)&&(a=YO(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},KO.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:iP.meridian},KO.prepareOptions=function(){for(var e,t=GO.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(QO(n[r])||(n[r]=e[r]));return n},KO.createTranslationOptions=function(e,t){var n=[{scope:e}];return QO(t.defaults)&&(n=n.concat(t.defaults)),QO(t.defaultValue)&&n.push({message:t.defaultValue}),n},KO.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(QO(t.scope)?(o=t.scope,n=this.lookup(o,i)):QO(t.message)&&(n=rP(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):JO(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):YO(n)&&QO(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},KO.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=QO(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,"$")},KO.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))},KO.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]'},KO.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},KO.nullPlaceholder=function(){return KO.missingPlaceholder.apply(KO,arguments)},KO.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),aP);var n,r,o=e<0,i=function(e,t){return nP("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)},KO.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),sP),this.toNumber(e,t)},KO.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)}},KO.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},KO.strftime=function(e,t,n){n=this.lookup("date",n);var r=KO.meridian();if(n||(n={}),n=this.prepareOptions(n,iP),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)),g=Math.abs(p)-60*h,m=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(g.toString().length<2?"0"+g:g);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",VO(i))).replace("%e",i)).replace("%-d",i)).replace("%H",VO(l))).replace("%-H",l)).replace("%k",l)).replace("%I",VO(u))).replace("%-I",u)).replace("%l",u)).replace("%m",VO(s))).replace("%-m",s)).replace("%M",VO(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",VO(d))).replace("%-S",d)).replace("%w",o)).replace("%y",VO(a))).replace("%-y",VO(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",m)).replace("%Z",m)},KO.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},KO.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),lP),this.toNumber(e,t)},KO.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."+uP[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)},KO.getFullScope=function(e,t){return t=t||{},JO(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},KO.extend=function(e,t){return void 0===e&&void 0===t?{}:oP(e,t)},KO.t=KO.translate.bind(KO),KO.l=KO.localize.bind(KO),KO.p=KO.pluralize.bind(KO);IL({},{DEFAULT_LANGUAGE:()=>fP,DEFAULT_LANGUAGE_SHORT:()=>pP,flattenParams:()=>wP,flattenTranslationsJSON:()=>mP,format:()=>kP,formatWithKeys:()=>SP,getLongLanguageDesc:()=>_P,getShortLanguageDesc:()=>xP,parseLangFromUrl:()=>vP,resolveLocale:()=>yP,updateLangAttribute:()=>CP});var dP=[{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"}],fP="en-US",pP="en",hP=["zh-cn","zh-tw","qps-ploc"],gP=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),mP=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),gP(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=gP(r)&&r.value;return o&&(t[n]=o),t},{}):{}),vP=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},bP=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(hP.includes(e.toLocaleLowerCase()))return dP.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return dP.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},yP=(...e)=>{for(const t of e){const e=bP(t);if(e)return e.short}},xP=e=>{const t=bP(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${pP}'`),pP)},_P=e=>{const t=bP(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${fP}'`),fP)},wP=e=>Array.isArray(e[0])?e[0]:e,kP=(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)},SP=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),CP=e=>{const t=xP(e);document.documentElement.setAttribute("lang",t)},EP=class e{static configure(t,n=fP){e.translations=t,e.language=_P(n),e.languageShort=xP(n),CP(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=KO,KO.missingTranslation=e=>e,KO.defaultSeparator=null,KO.locale=e.language,KO.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];KO.pluralization[e.language]=e=>{try{const t=DL[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=SP(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))}}};zL(EP,"translations",{}),zL(EP,"translationsPlurals",{}),zL(EP,"language"),zL(EP,"languageShort"),zL(EP,"onTranslationsChangeListeners",[]),zL(EP,"i18nProvider"),zL(EP,"get",(e,...t)=>{var n;const r=wP(t);let o=null!=(n=EP.translations[e])?n:e;return r.length>0&&(o=kP(o,...r)),o});var TP=EP;var AP=function(){const[e,t]=E.useState(0);return E.useEffect(()=>{const n=TP.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),TP.get},LP=TP;function RP({defaultSelection:e}){const[t]=Ku();return E.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 MP(e,t=!0){if(e)return!1;let n=Ti().getTextContent();return t&&(n=n.trim()),""===n}function NP(e){return()=>function(e){if(!MP(e,!1))return!1;const t=Ti().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Io(n))return!1;if(No(n)){if(!Go(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!xr(t[e]))return!1}}return!0}(e)}const OP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function PP({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:g,role:m="textbox",spellCheck:v=!0,style:b,tabIndex:y,"data-testid":x,..._},w){const[k,S]=E.useState(e.isEditable()),C=E.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),T=E.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 OP(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Qu.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"===m?!!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:g,ref:T,role:m,spellCheck:v,style:b,tabIndex:y,..._})}const IP=E.forwardRef(PP);function zP(e){return e.getEditorState().read(NP(e.isComposing()))}const DP=E.forwardRef(jP);function jP(e,t){const{placeholder:n,...r}=e,[o]=Ku();return Qu.jsxs(Qu.Fragment,{children:[Qu.jsx(IP,{editor:o,...r,ref:t}),null!=n&&Qu.jsx(FP,{editor:o,content:n})]})}function FP({content:e,editor:t}){const n=function(e){const[t,n]=E.useState(()=>zP(e));return OP(()=>{function t(){const t=zP(e);n(t)}return t(),Ss(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=E.useState(t.isEditable());if(E.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:Qu.jsx("div",{"aria-hidden":!0,children:i})}const BP=E.createContext(null),HP={didCatch:!1,error:null};class WP extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=HP}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(HP))}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(HP))}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=E.createElement(n,e);else{if(void 0===r)throw i;a=r}}return E.createElement(BP.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function $P({children:e,onError:t}){return Qu.jsx(WP,{fallback:Qu.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const UP={name:"@lexical/react/ReactProvider"};function KP(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const GP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function VP({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=E.useState(()=>e.getDecorators());return GP(()=>e.registerDecoratorListener(e=>{Yv.flushSync(()=>{r(e)})}),[e]),E.useEffect(()=>{r(e.getDecorators())},[e]),E.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Qu.jsx(t,{onError:t=>e._onError(t),children:Qu.jsx(E.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(Yv.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function YP({editor:e,ErrorBoundary:t}){return function(e){const t=zl.maybeFromEditor(e);if(t&&t.hasExtensionByName(UP.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&KP(320,e);return!0}return!1}(e)?null:Qu.jsx(VP,{editor:e,ErrorBoundary:t})}function qP(e){return e.getEditorState().read(NP(e.isComposing()))}function QP({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Ku();return function(e){GP(()=>Ss(Wc(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=Vr();if(Rr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(xr(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()),xr(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])}(r),Qu.jsxs(Qu.Fragment,{children:[e,Qu.jsx(JP,{content:t}),Qu.jsx(YP,{editor:r,ErrorBoundary:n})]})}function JP({content:e}){const[t]=Ku(),n=function(e){const[t,n]=E.useState(()=>qP(e));return GP(()=>{function t(){const t=qP(e);n(t)}return t(),Ss(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Vc();return n?"function"==typeof e?e(r):e:null}const XP=(e,t)=>Qu.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:Qu.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"})}),ZP=E.forwardRef(XP),eI=(e,t)=>Qu.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:[Qu.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Qu.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),tI=E.forwardRef(eI),nI=(e,t)=>Qu.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:Qu.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),rI=E.forwardRef(nI),oI=(e,t)=>Qu.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:Qu.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),iI=E.forwardRef(oI),aI=(e,t)=>Qu.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:Qu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),sI=E.forwardRef(aI),lI=(e,t)=>Qu.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:Qu.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"})}),uI=E.forwardRef(lI),cI=(e,t)=>Qu.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:Qu.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"})}),dI=E.forwardRef(cI),fI=(e,t)=>Qu.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:Qu.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"})}),pI=E.forwardRef(fI),hI=(e,t)=>Qu.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:Qu.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"})}),gI=E.forwardRef(hI),mI=(e,t)=>Qu.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:Qu.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"})}),vI=E.forwardRef(mI),bI=(e,t)=>Qu.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:Qu.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"})}),yI=E.forwardRef(bI),xI=(e,t)=>Qu.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:Qu.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"})}),_I=E.forwardRef(xI),wI=(e,t)=>Qu.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:Qu.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"})}),kI=E.forwardRef(wI),SI=(e,t)=>Qu.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:Qu.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"})}),CI=E.forwardRef(SI),EI=(e,t)=>Qu.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:Qu.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"})}),TI=E.forwardRef(EI),AI=(e,t)=>Qu.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:Qu.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"})}),LI=E.forwardRef(AI);var RI,MI,NI={exports:{}},OI={};function PI(e){return PI="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},PI(e)}var II=(MI||(MI=1,NI.exports=function(){if(RI)return OI;RI=1;var e=T,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 OI.Fragment=n,OI.jsx=a,OI.jsxs=a,OI}()),NI.exports);const zI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,DI=[e=>{const t=zI.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 jI(){return II.jsx(Uc,{matchers:DI})}const FI=()=>{const[e]=Ku(),t=Vc(),n=E.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 E.useEffect(()=>Ss(e.registerMutationListener(Fl,e=>{n(e)}),e.registerMutationListener(Gl,e=>{n(e)}),e.registerCommand(ht,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=Vr();let t;if(Rr(e)&&(t=e.focus.getNode().getParent()),Nr(e)&&(t=e.getNodes()[0]),Yl(t)||Kl(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),0)),[e,n]),null};function BI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Os(n)?r:o:Os(t)?r:o}const HI=new Set(["http:","https:","mailto:","sms:","tel:"]),WI=e=>{const t=e;return t.password="",t.username="",t};function $I(e){try{const t=new URL(e);return HI.has(t.protocol)?{url:WI(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const UI=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function KI(e){return"https://"===e||UI.test(e)}const GI=Hv(o_)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),VI=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=E.useRef(null),[a,s]=E.useState(t);E.useEffect(()=>{s(t)},[t]);const l=E.useCallback(()=>{n(a),window.open($I(a).url,"_blank"),r()},[a,r,n]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=E.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return II.jsx(_x,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>II.jsx(u_,{...e,children:II.jsx(gb,{className:"tekPopperMenu",children:II.jsxs(GI,{direction:"row",children:[II.jsx(zx,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),II.jsx(jb,{onClick:l,children:II.jsx(U_,{})}),II.jsx(jb,{onClick:u,children:II.jsx(G_,{})})]})})})})},YI=()=>{const[e]=Ku(),t=Vc(),[n,r]=E.useState(null),[o,i]=E.useState(""),a=E.useRef(!1),s=E.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=Vr();if(Rr(t)){const n=BI(t),o=n.getParent();if(Yl(o)||Yl(n))return r(null),i(""),!1;let a;if(Kl(o)&&(a=o),Kl(n)&&(a=n),Kl(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=E.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(ql,$I(t))},{onUpdate:()=>{r(null)}})},[e]),u=E.useCallback(()=>{r(null)},[]);return E.useEffect(()=>Ss(e.registerCommand(ft,()=>s(),1),e.registerCommand(ht,()=>s(),1)),[e,s]),t?II.jsx(VI,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function qI(){return II.jsx(V_,{validateUrl:KI})}!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 QI=({children:e})=>II.jsx($v,{theme:vw(),children:e}),JI={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:[Oc,Rc,Nu,Tu,Fl,Gl],onError:e=>{console.log(e)}},XI=({children:e,initialConfig:t,flags:n})=>II.jsx(QI,{children:II.jsx("div",{className:"tek__editor__Wrapper",children:II.jsx(ec,{initialConfig:t||JI,children:II.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,II.jsx(ac,{}),II.jsx(sc,{}),II.jsx(qI,{}),II.jsx(jI,{}),II.jsx(YI,{}),II.jsx(FI,{}),II.jsx(ic,{})]})})})});let ZI=class e extends Mo{__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 ez=e=>new ZI(e),tz=e=>e instanceof ZI;let nz=class e extends Mo{__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 rz(e){return e instanceof nz}let oz=class e extends Mo{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 iz(e){return e instanceof oz}const az=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),tz(t))return t;return null},sz=e=>{let t=e;for(;null!==t;){if(rz(t))return t;t=t?.getParent()}return null},lz=(e,t)=>{const n=sz(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},uz=e=>{const t=e?.getChildAtIndex(2);return t},cz=e=>{const t=e.getParent();if(iz(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},dz=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,fz=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},pz=e=>e?e.getChildren().filter(e=>iz(e)):[],hz=e=>{let t=!1;return pz(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(Ko()),t=!0})}),t},gz=e=>{const t=Vr();if(Rr(t)||Nr(t)){const n=t.getNodes().filter(e=>tz(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>rz(e)),o=sz(n[0]),i=pz(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Rr(t)){const e=t.focus.getNode();if(rz(e))return hz(e)}return n.forEach(e=>{e.clear(),e.append(Ko())}),(()=>{const e=Vr();let t=!1;if(Rr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=sz(n);!o&&rz(r)&&(o=r),rz(o)&&(t=hz(o))}return t})()}if(Rr(t)){const e=t.focus.getNode();if(rz(e))return hz(e)}}return!1},mz=e=>{if(e){const t=sz(e);if(rz(t)){const n=e.getParent(),r=pz(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}},vz=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),tz(t))return t;return null},bz=e=>{const t=[];return pz(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},yz=(e,t)=>{bz(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},xz=dt("UPDATE_COL_WIDTHS_COMMAND"),_z=dt("BEGIN_COL_RESIZE"),wz=dt("END_COL_RESIZE"),kz=dt("INSERT_TEK_TABLE_COMMAND"),Sz=({colKey:e,startX:t,onMouseDown:n})=>{const r=E.useCallback(t=>{n(t,e)},[e,n]);return II.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},Cz=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},Ez=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,Tz=({nodeKey:e,colWidths:t})=>{const[n]=Ku(),r=Vc(),[o,i]=E.useState(null),a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),u=E.useRef(null),c=E.useCallback(t=>{const n=_i(e);if(n){const e=n.getParent();if(rz(e)){const n=uz(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=E.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=fz(s+p,r);if(c){const e=o+p;if(e<60)return;const t=fz(e,r),s=a.current.nxtColWidth-p,d=fz(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=fz(e,d),s=fz(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=E.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(fz(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(wz,void 0)}a.current=null,s.current=null,n.update(()=>{const t=_i(e),r=lz(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(xz,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=E.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=_i(t),o=lz(r,n);if(tz(r)){const t=cz(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=dz(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=dz(s,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=(g?.offsetWidth||0)*m,b=((e,t,n)=>{const r=Cz("tek__leftResizerIndicator","leftGripper");r.innerText=Ez(e);let o=null;return t?(o=Cz("tek__rightResizerIndicator","rightGripper"),o.innerText=Ez(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.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:g,currentTableWidth:v},n.dispatchCommand(_z,void 0)}}})},[n,d,f]);return E.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),II.jsx(II.Fragment,{children:o&&r?o.map(e=>II.jsx(Sz,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},Az="TEK_TABLE_RESIZE_NODE";let Lz=class e extends Po{__colWidths;static getType(){return Az}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:Az,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 II.jsx(Tz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const Rz=e=>e instanceof Lz,Mz=({nodeKey:e,colWidths:t})=>{const[n]=Ku(),[r,o]=E.useState(t);return E.useEffect(()=>{n.getEditorState().read(()=>{const t=_i(e),n=t?.getParent();if(rz(n)){const e=n.getResizeNode();if(Rz(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),II.jsx(II.Fragment,{children:r.map((t,n)=>II.jsx("col",{span:1,width:t},`${e}.${n}`))})};class Nz extends Po{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new Nz(e.__colWidths,e.__key)}static importJSON(e){return new Nz(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 II.jsx(Mz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class Oz extends Po{__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 Pz=[nz,ZI,oz,Nz,Lz],Iz=(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()},zz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=az(t);if(n){const e=cz(n),t=sz(n),r=pz(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),Iz(o,t)}}},Dz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=az(t),r=sz(n);if(r&&3===r.getChildren().length)return Li(null),void r.remove();if(n){const{row:e}=mz(n);Li(null),e?.remove()}}},jz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t),r=uz(n);if(iz(r)&&n){const e=r.getChildren().length,t=new oz;for(let r=0;r<e;r++){const e=ez(n?.__hasBorders);e.append(Ko()),t.append(e)}n?.append(t)}}},Fz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);if(rz(n)){const e=pz(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=ez(n.__hasBorders);o.append(Ko()),e[r].append(o),t=o}return Iz(r,n),t}}return null},Bz=Hv(jb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Hz=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Ku(),[o,i]=E.useState(null),a=AP(),s=Boolean(o),l=E.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=E.useCallback(()=>{i(null)},[]),d=E.useCallback(e=>{l(e,jz,t)},[l,t]),f=E.useCallback(e=>{l(e,Fz,t)},[l,t]),p=E.useCallback(t=>{l(t,Dz,e)},[l,e]),h=E.useCallback(t=>{l(t,zz,e)},[l,e]),g=E.useCallback(()=>{r.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);rz(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),m=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);n&&(n.toggleBorders(),bz(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return E.useEffect(()=>Ss(r.registerCommand(ft,()=>(i(null),!1),4)),[r]),II.jsx(Jx,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(Bz,{size:"small",onClick:u,children:II.jsx(OL,{height:12})}),II.jsx(_x,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:II.jsx(gb,{id:"tekTableMenu",className:"tekPopperMenu",children:II.jsxs(E_,{dense:!0,children:[II.jsx(M_,{onClick:m,children:a("ToggleBorders")}),II.jsx(r_,{}),II.jsx(M_,{onClick:d,children:a("AddNewRow")}),II.jsx(M_,{onClick:f,children:a("AddNewColumn")}),II.jsx(r_,{}),II.jsx(M_,{onClick:p,children:a("DeleteRow")}),II.jsx(M_,{onClick:h,children:a("DeleteCol")}),II.jsx(r_,{}),II.jsx(M_,{onClick:g,children:a("DeleteTable")})]})})})]})})},Wz=()=>{const[e]=Ku(),t=Vc(),[n,r]=E.useState(null),[o,i]=E.useState(!1),a=Boolean(n),s=E.useContext(hp),l=E.useRef(null),u=E.useCallback(()=>{o||e.update(()=>{const t=Vr();if(Rr(t)){const n=az(t.anchor.getNode());if(tz(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);E.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)}},[]),E.useEffect(()=>Ss(e.registerCommand(ft,()=>(u(),!1),0),e.registerCommand(_z,()=>(r(null),!0),4),e.registerCommand(wz,()=>(u(),!0),4)),[e,u]),E.useEffect(()=>{r(null)},[t]);const c=E.useCallback(()=>{r(null)},[]),d=E.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=E.useCallback(()=>{clearTimeout(l.current)},[]);return II.jsx(_x,{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:II.jsx(Hz,{onDeleteAction:c,onAction:d,onClick:f})})},$z=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=_i(n),r=e?.getParent();Do(r)&&null!==e&&t.push(e)}if(t.length>0){const e=Ko();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},Uz=()=>{const[e]=Ku(),t=Vc();return E.useEffect(()=>Ss(e.registerMutationListener(ZI,t=>{e.update(()=>{$z(t)})}),e.registerMutationListener(oz,t=>{e.update(()=>{$z(t)})}),e.registerMutationListener(nz,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=_i(e);if(rz(t)&&!t.isValid()){const e=Ko();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(kz,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new nz(!0,"100%"),n=new Nz(e),r=new Lz(e),o=[];for(let t=0;t<2;t++){const t=new oz;for(let n=0;n<e.length;n++){const e=ez(!0),n=Ko();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Qs(e)}),!0),0),e.registerCommand(xz,({colWidths:e,nodeKey:t})=>{const n=_i(t);if(Rz(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof Nz})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Dt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.focus.getNode(),n=sz(t),r=vz(t);if(rz(n)){const e=Ko();e.append(yr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.focus.getNode(),n=sz(t);if(rz(n)){const e=Ko();e.append(yr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Ft,e=>gz(e),4),e.registerCommand(Ht,e=>gz(e),4),e.registerCommand(Wt,e=>{const t=Vr();if(Rr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),tz(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(iz(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(mz(o),!e.shiftKey),!0}return!1},0),e.registerCommand(Xt,e=>{const t=e?.target,n=Vr();if(t.classList.contains("tek__table")&&Rr(n)&&rz(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Rr(n)){const t=n.getNodes().some(e=>tz(e)),r=n.getNodes().some(e=>rz(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),E.useEffect(()=>e.registerCommand(ft,()=>(t&&e.update(()=>{(e=>{const t=Vr(),n=[];if(Gi(nz).forEach(e=>{const t=bz(e);n.push(...t)}),Rr(t)){t.getNodes().filter(e=>rz(e)).forEach(t=>{yz(t,e)});const n=t.focus.getNode();if(rz(n))return void yz(n,e)}if(Rr(t)||Nr(t)){const r=new Set(t.getNodes().map(e=>vz(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]),E.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];Gi(nz).forEach(e=>{const n=bz(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},Kz=()=>II.jsxs(II.Fragment,{children:[II.jsx(Uz,{}),II.jsx(Wz,{})]}),Gz=()=>{const e=Vc(),t=AP();return e?II.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):II.jsx("div",{className:"tek__editor__logo",children:II.jsx(ZP,{height:32})})},Vz=({showPlaceholder:e})=>II.jsxs("div",{style:{position:"relative"},children:[II.jsx(RP,{}),II.jsx(QP,{contentEditable:II.jsx(DP,{className:"tek__editor__input"}),placeholder:!1!==e?II.jsx(Gz,{}):null,ErrorBoundary:$P})]}),Yz=Hv(o_)(({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"}})),qz=["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"],Qz="#404040",Jz="16px",Xz=E.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:qz[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Zz=({children:e})=>{const t=(()=>{const[e]=Ku(),[t,n]=E.useState(!1),[r,o]=E.useState(!1),[i,a]=E.useState(!1),[s,l]=E.useState("paragraph"),[u,c]=E.useState(qz[0]),[d,f]=E.useState(Jz),[p,h]=E.useState(Qz),[g,m]=E.useState("left"),[v,b]=E.useState(!1),y=E.useCallback(()=>{const t=Vr();if(Rr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Ta(r,e=>{const t=e.getParent();return null!==t&&oa(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(ju(i)){const e=Ys(r,Nu),t=e?e.getListType():i.getListType();l(t)}else{const e=jc(i)?i.getTag():i.getType();l(e)}if(ju(i)||jc(i)){const e=Ys(i,$o);e&&(u=e)}const d=BI(t);if(Kl(d.getParent())||Kl(d)?b(!0):b(!1),Go(u)){const e=u.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=Us(t,"font-family",qz[0]),g=Us(t,"font-size",Jz);c(""===p?qz[0]:p),f(""!==g&&g?g:Jz),h(Us(t,"color",Qz))}else Nr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof Oz}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",Qz));const t=e.getTextFormatStyle("fontSize",Jz),r=e.getTextFormatStyle("fontFamily",qz[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(Mu(e)){const t=Ys(e,Nu);return t?t.getListType():"bullet"}return jc(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return E.useEffect(()=>Ss(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{y()})}),e.registerCommand(ft,()=>(e.getEditorState().read(()=>{y()}),!1),0)),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:g,isLink:v}}})();return II.jsx(Xz.Provider,{value:t,children:e})},eD=({children:e})=>II.jsx(Zz,{children:II.jsx(Yz,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),tD=({anchorEl:e,children:t})=>{const n=Boolean(e);return II.jsx(_x,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>II.jsx(u_,{...e,children:II.jsx(gb,{className:"tekPopperMenu",children:t})})})},nD=Hv(Ub)({fontSize:12,textOverflow:"ellipsis"}),rD=({startIcon:e,value:t,onClick:n,compact:r})=>II.jsx(W_,{title:t,PopperProps:{disablePortal:!0},children:II.jsx(qx,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:II.jsx(sI,{height:12}),children:r?e:II.jsx(nD,{children:t})})}),oD=Hv(M_,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),iD=[{text:"AlignLeft",align:"left",icon:()=>II.jsx(rI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>II.jsx(tI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>II.jsx(iI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],aD=({compact:e=!1})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=AP(),a=E.useMemo(()=>iD.find(e=>e.align===o.align)||iD[0],[o.align]),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=E.useCallback(()=>{r(null)},[]),u=E.useCallback(e=>{r(null),t.dispatchCommand(Vt,e),t.focus()},[t]);return II.jsx(Jx,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),II.jsx(tD,{anchorEl:n,children:II.jsx(E_,{dense:!0,children:iD.map(e=>II.jsxs(oD,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[II.jsx(y_,{children:e.icon()}),II.jsx(nD,{children:i(e.text)})]},e.align))})})]})})},sD=({text:e,icon:t})=>II.jsxs(II.Fragment,{children:[II.jsx(y_,{children:t}),II.jsx(nD,{children:e})]}),lD=({text:e,icon:t})=>II.jsxs(II.Fragment,{children:[II.jsx(y_,{children:II.jsx(nD,{fontWeight:"bold",children:t})}),II.jsx(nD,{children:e})]}),uD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],cD=(e,t,n)=>({icon:II.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),dD=({compact:e=!1})=>{const[t]=Ku(),{blockFormat:n}=E.useContext(Xz),[r,o]=E.useState(null),i=AP(),a=E.useMemo(()=>{let e={icon:II.jsx(gI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=cD("Heading1","H1",i)),"h2"===n.blockType&&(e=cD("Heading2","H2",i)),"h3"===n.blockType&&(e=cD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=II.jsx(dI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=II.jsx(uI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=II.jsx(pI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=E.useCallback(()=>{o(null)},[]),l=E.useCallback(e=>{t.update(()=>{const n=Vr();Rr(n)?(zs(n,{"font-size":null}),function(e,t,n=Ds){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=Ur(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Ta(e.getNode(),va),a=Ta(t.getNode(),va);No(n)&&o.set(n.getKey(),n),No(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(No(t)&&va(t))o.set(t.getKey(),t);else if(null===r){const e=Ta(t,va);No(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(Vr())&&Li(i)}(n,e)):Nr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=E.useCallback((e,n)=>{o(null),t.update(()=>{const r=Vr();Rr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=E.useCallback(e=>{o(null),l(()=>Dc(e))},[l]),d=E.useCallback(()=>{o(null),l(()=>Ko())},[l]),f=E.useCallback(()=>{o(null),l(()=>Mc())},[l]);return II.jsx(Jx,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),II.jsx(tD,{anchorEl:r,children:II.jsxs(E_,{dense:!0,children:[II.jsx(M_,{dense:!0,onClick:d,children:II.jsx(sD,{text:i("Paragraph"),icon:II.jsx(gI,{height:12})})}),II.jsx(M_,{dense:!0,onClick:f,children:II.jsx(sD,{text:i("Quote"),icon:II.jsx(dI,{height:12})})}),uD.map(e=>II.jsx(M_,{dense:!0,onClick:()=>{c(e.tag)},children:II.jsx(lD,{text:i(e.text),icon:e.icon})},e.text)),II.jsx(r_,{}),II.jsx(M_,{dense:!0,onClick:()=>{u("bullet",Bu)},children:II.jsx(sD,{text:i("UnorderedList"),icon:II.jsx(uI,{height:12})})}),II.jsx(M_,{dense:!0,onClick:()=>{u("number",Hu)},children:II.jsx(sD,{text:i("OrderedList"),icon:II.jsx(pI,{height:12})})})]})})]})})},fD=Hv(qx,{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})),pD=(e,t)=>{const n=n=>{const r=AP();return II.jsx(W_,{title:r(t),PopperProps:{disablePortal:!0},children:II.jsx("div",{children:II.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},hD=({format:e,icon:t,...n})=>{const r=E.useContext(Xz),[o]=Ku(),i=E.useCallback(()=>{o.dispatchCommand(Tt,e)},[o,e]);return II.jsx(fD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},gD=pD(hD,"Bold"),mD=()=>II.jsx(gD,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:II.jsx(vI,{height:12})}),vD=dt("APPLY_TEXT_FORMAT"),bD=dt("CLEAR_TEXT_FORMAT"),yD=pD(fD,"ClearFormat"),xD=()=>{const[e]=Ku(),t=E.useCallback(()=>{e.update(()=>{const t=Vr();if(Rr(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(xr(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),qs(i).setFormat(""));const a=i.getParent();(jc(a)||Nc(a))&&a.replace(Ko(),!0)}else(jc(t)||Nc(t))&&t.replace(Ko(),!0)}catch{}})}e.dispatchCommand(bD,void 0)})},[e]);return II.jsx(yD,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:II.jsx(yI,{height:12})})};var _D,wD={},kD=function(){if(_D)return wD;_D=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=arguments[0]._r,v=arguments[0]._g,b=arguments[0]._b,y=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(g=arguments[0]))m=parseInt(h[1],10),v=parseInt(h[2],10),b=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(g))y=parseFloat(l(h[1]/2.55)/100),m=parseInt(h[2],10),v=parseInt(h[3],10),b=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(g))m=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(g))m=parseInt(h[1],16),v=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(g))m=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=e[o].r,v=e[o].g,b=e[o].b,y="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(y=(4278190080&arguments[0])>>>24,y/=255,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(b),this._a=y,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"==PI(o=function(e){if("object"!=PI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=PI(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},wD.Color=u,wD}();const SD=Hv(o_)(({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"})),CD=Hv(Fx)(({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"})),ED=({palette:e,color:t,onColorChange:n})=>{const[r,o]=E.useState(t),i=Sv(),a=E.useCallback(e=>{o(e),n(e)},[n]);return II.jsx(SD,{children:e.map(e=>II.jsx(CD,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?II.jsx(G_,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function TD(e,t,n){return Math.max(t,Math.min(n,e))}const AD=(e,t)=>{const n=new kD.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"}},LD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=TD(e.clientX-n,0,o)/o*100,s=100-TD(e.clientY-r,0,i)/i*100,l=new kD.Color(t).toHSVComponents();return l.s=a,l.v=s,l},RD=Hv(o_)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),MD=Hv(Fx)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),ND=Hv(Fx)(({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 );"})),OD=Hv(Fx)({width:"16px",height:"16px",borderRadius:"2px"}),PD=Hv(o_)({flexDirection:"row",alignItems:"center"}),ID=Hv(Fx)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),zD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=E.useState(n),a=E.useRef(n),[s,l]=E.useState(!0),[u,c]=E.useState(o),d=E.useRef(null),f=E.useRef(null),p=E.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=E.useState({left:"0",top:"0"});E.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const m=E.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=AD(o,e);g(t)}},[o]),v=E.useMemo(()=>`hsl(${new kD.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),b=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=LD(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new kD.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]),y=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=TD(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new kD.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new kD.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=E.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=E.useCallback(t=>{if(c(t.target.value),!new kD.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=AD(a.current,d.current);g(e)}},[e]);return II.jsxs(RD,{children:[s?II.jsx(ED,{palette:r,color:o,onColorChange:x}):II.jsxs(II.Fragment,{children:[II.jsx(MD,{style:{backgroundColor:v},ref:m,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=LD(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new kD.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):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:II.jsx(ID,{ref:f,style:{...h,backgroundColor:o}})}),II.jsx(ND,{onClick:y})]}),II.jsxs(PD,{children:[II.jsx(OD,{style:{backgroundColor:o}}),II.jsx(zx,{style:{flex:1},value:u,onChange:_}),II.jsx(jb,{onClick:()=>{l(!s)},children:II.jsx(_I,{height:12})}),II.jsx(jb,{onClick:t,children:II.jsx(G_,{height:12})})]})]})},DD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],jD=pD(qx,"Color"),FD=({colorPalette:e=DD})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=E.useCallback((e,n)=>{t.update(()=>{const t=Vr();Rr(t)&&zs(t,{color:e})},n),t.dispatchCommand(vD,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return II.jsx(Jx,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(jD,{variant:"text",size:"small",endIcon:II.jsx(sI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:II.jsx(Fx,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),II.jsx(tD,{anchorEl:n,children:II.jsx(zD,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};pD(fD,"Export");const BD=({compact:e=!1,fonts:t=qz})=>{const[n]=Ku(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(Xz),a=E.useMemo(()=>t,[t]),s=E.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=Vr();Rr(e)&&zs(e,{"font-family":t||qz[0]}),n.dispatchCommand(vD,{styleKey:"fontFamily",styleValue:t||qz[0]}),n.focus()})},[n]);return II.jsx(Jx,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:II.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),II.jsx(tD,{anchorEl:r,children:II.jsx(E_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>II.jsx(oD,{"data-font-name":e,onClick:s,active:e===i.fontName,children:II.jsx(nD,{children:e})},e))})})]})})},HD=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],WD=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,$D=e=>parseInt(e,10),UD=({fontSize:e,onSelected:t})=>{const[n,r]=E.useState(""),o=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=E.useCallback(()=>{const e=$D(n);e&&t(`${e}px`)},[t,n]),a=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return II.jsxs(o_,{direction:"row",children:[II.jsx(zx,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),II.jsx(jb,{disabled:!$D(n),onClick:i,children:II.jsx(G_,{height:12})})]})},KD=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Ku(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(Xz),a=WD(i.fontSize,t),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=E.useCallback(()=>{o(null)},[]),u=E.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=Vr();Rr(t)&&zs(t,{"font-size":e}),n.dispatchCommand(vD,{styleKey:"fontSize",styleValue:e})})},[n]),c=E.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=E.useCallback(e=>{u(e)},[u]);return II.jsx(Jx,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{startIcon:e?II.jsx(nD,{children:a}):void 0,value:a,onClick:s,compact:e}),II.jsxs(tD,{anchorEl:r,children:[II.jsx(UD,{fontSize:a,onSelected:d}),II.jsx(r_,{}),II.jsx(E_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:HD.map(e=>II.jsx(M_,{"data-font-size":e,onClick:c,children:II.jsx(nD,{children:WD(e,t)})},e))})]})]})})},GD=pD(fD,"InsertTable"),VD=()=>{const[e]=Ku(),t=E.useCallback(()=>{e.dispatchCommand(kz,void 0)},[e]);return II.jsx(GD,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:II.jsx(kI,{height:12})})},YD=pD(hD,"Italic"),qD=()=>II.jsx(YD,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:II.jsx(CI,{height:12})}),QD=pD(fD,"InsertHyperlink"),JD=()=>{const[e]=Ku(),{blockFormat:t}=E.useContext(Xz),n=E.useCallback(()=>{t.isLink?e.dispatchCommand(ql,null):e.dispatchCommand(ql,$I("https://"))},[e,t.isLink]);return II.jsx(QD,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:II.jsx(TI,{height:12})})};pD(fD,"Toggle");const XD=pD(hD,"Underline"),ZD=()=>II.jsx(XD,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:II.jsx(LI,{height:12})}),ej=()=>II.jsx(r_,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var tj={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=="}},nj={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)"}},rj={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=="}},oj={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=="}},ij={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=="}},aj={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=="}},sj={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=="}},lj={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=="}},uj={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=="}},cj={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=="}},dj={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=="}},fj={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=="}},pj={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 hj={de:tj,es:rj,en:nj,fr:oj,it:ij,ja:aj,ko:sj,nl:lj,pl:uj,pt:cj,ru:dj,sv:fj,tr:pj,"de-de":tj,"es-es":rj,"en-us":nj,"fr-fr":oj,"it-it":ij,"ja-jp":aj,"ko-kr":sj,"nl-nl":lj,"pl-pl":uj,"pt-br":cj,"ru-ru":dj,"sv-se":fj,"tr-tr":pj,"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 gj(e,t){return e.getEditorState().read(()=>{const e=_i(t);return null!==e&&e.isSelected()})}function mj(e){const[t]=Ku(),[n,r]=E.useState(()=>gj(t,e));return E.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(gj(t,e))});return()=>{n=!1,o()}},[t,e]),[n,E.useCallback(n=>{t.update(()=>{let t=Vr();Nr(t)||(t=Kr(),Li(t)),Nr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),E.useCallback(()=>{t.update(()=>{const e=Vr();Nr(e)&&e.clear()})},[t])]}var vj,bj={};var yj=function(){if(vj)return bj;vj=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=arguments[0]._r,v=arguments[0]._g,b=arguments[0]._b,y=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(g=arguments[0]))m=parseInt(h[1],10),v=parseInt(h[2],10),b=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(g))y=parseFloat(l(h[1]/2.55)/100),m=parseInt(h[2],10),v=parseInt(h[3],10),b=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(g))m=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(g))m=parseInt(h[1],16),v=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(g))m=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=e[o].r,v=e[o].g,b=e[o].b,y="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(y=(4278190080&arguments[0])>>>24,y/=255,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(b),this._a=y,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},bj.Color=u,bj}();async function xj(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 _j(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function wj(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var kj,Sj;var Cj=function(){if(Sj)return kj;Sj=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},kj=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},kj}();let Ej=[];const Tj=new Cj.EventEmitter;Tj.isSelected=e=>{const t=e?.qDef?.cId;return-1!==Ej.indexOf(t)},Tj.setSelected=e=>{Ej!==e&&(Ej=e,Tj.emit("change"))};function Aj({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=E.useContext(L),[a]=Ku(),s=Vc(),[l,u,c]=mj(n),d=E.useRef(null),[f,p]=E.useState(t);E.useEffect(()=>{p(t)},[t]);const h=E.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),g=E.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 yj.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);E.useEffect(()=>Ss(a.registerCommand(Tt,e=>(a.update(()=>{const t=e,r=Vr();if(Rr(r)&&l){if(wj(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&&Nr(r)&&wj(n,r)&&d.current){const e=_j(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(vD,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&l){const t=Vr();if(wj(n,t)){const t=_j(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),0),a.registerCommand(bD,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=Vr();if(wj(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),p(e)}}}),!1),0),a.registerCommand(ft,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=Vr(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),Tj.setSelected(e)}),!1),1)),[a,u,c,l,n,g]),E.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&Tj.setSelected([]))},[s,c,i]),E.useEffect(()=>{a.update(()=>{!function(e,t){const n=_i(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const m=E.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=Vr();if(Nr(e)){const t=_i(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Qu.jsx("span",{style:{...h,...f,color:g.expressionColor?g.expressionColor:f.color},onClick:m,ref:d,id:e,children:g.value})}const Lj="qlik.expression.node";class Rj extends Oz{__expressionId;static getType(){return Lj}static clone(e){return new Rj(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new Rj(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:Lj,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 Qu.jsx(Aj,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function Mj(e){return e instanceof Rj}const Nj="ImageNode",Oj=dt("INSERT_IMAGE_COMMAND"),Pj=()=>{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()},Ij=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===Nj)r.id||(r.id=Pj()),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)Ij(e,t,n);return{imageIds:t,newPropertyImages:n}},zj=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function Dj(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=Ij(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 jj(){const[e]=Ku(),t=Vc(),{edit:n,model:r,emitter:o,flags:i}=E.useContext(L);return E.useEffect(()=>{const t=()=>{r&&Dj(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]),E.useEffect(()=>{e.setEditable(n)},[n]),E.useEffect(()=>{t&&e.focus()},[t,e]),null}class Fj{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=_i(e);if(Mj(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 Bj(){const{layout:e,emitter:t}=E.useContext(L),[n]=Ku(),r=E.useRef(new Fj),o=Vc();return E.useEffect(()=>{const e=n.registerMutationListener(Rj,e=>{n.getEditorState().read(()=>{for(const[t,n]of e)r.current.update(t,n)})});return()=>{e()}},[n]),E.useEffect(()=>{e&&n.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=Gi(Rj),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=Vr(),{cId:t}=n[n.length-1],r=new Rj(t,{}),o=yr(" "),i=yr("");Rr(e)?e.insertNodes([i,r,o]):Qs(r)}}})},[e,n]),E.useEffect(()=>n.registerCommand(Rt,e=>("Backspace"===e.key&&n.update(()=>{const e=Vr();Nr(e)&&e.getNodes().forEach(e=>{Mj(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[n]),E.useEffect(()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[o,t]),null}const Hj=/"/g;function Wj(){const{model:e,emitter:t}=E.useContext(L),[n]=Ku(),r=E.useRef(new Map);return E.useEffect(()=>{const o=n.registerMutationListener(cr,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(Hj,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function $j(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 Uj,Kj="top",Gj="top-right",Vj="right",Yj="bottom-right",qj="bottom",Qj="bottom-left",Jj="left",Xj="top-left";$j($j($j($j($j($j($j($j($j($j(Uj={},"equal-equal",[Kj,qj]),"equal-higher",[qj,Yj]),"equal-lower",[Kj,Gj]),"equal-void",[Kj,qj]),"higher-equal",[Jj,Qj,Kj,Gj]),"higher-higher-acute",[qj,Qj,Jj,Gj]),"higher-higher-obtuse",[qj,Kj]),"higher-lower-negative",[Kj,Gj,Vj]),"higher-lower-positive",[qj,Qj,Jj]),"higher-void",[Kj]),$j($j($j($j($j($j($j($j($j($j(Uj,"lower-equal",[Kj]),"lower-higher-negative",[Kj,Xj]),"lower-higher-positive",[Yj]),"lower-lower-acute",[Kj,Xj,Jj,Gj,Vj]),"lower-lower-obtuse",[Kj,qj]),"lower-void",[Kj]),"void-equal",[Kj]),"void-higher",[Kj,qj]),"void-lower",[Kj,qj,Jj]),"void-void",[Kj]),$j(Uj,"unclassified",[Kj,qj,Vj,Jj,Gj,Yj,Qj,Xj]);var Zj,eF,tF=["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"],nF=["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 rF=function(){if(eF)return Zj;eF=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 Zj=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},Zj}();function oF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function aF(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(rF);var sF=1/.7,lF="\\s*([+-]?\\d+)\\s*",uF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dF=/^#([0-9a-f]{3,8})$/,fF=new RegExp(`^rgb\\(${lF},${lF},${lF}\\)$`),pF=new RegExp(`^rgb\\(${cF},${cF},${cF}\\)$`),hF=new RegExp(`^rgba\\(${lF},${lF},${lF},${uF}\\)$`),gF=new RegExp(`^rgba\\(${cF},${cF},${cF},${uF}\\)$`),mF=new RegExp(`^hsl\\(${uF},${cF},${cF}\\)$`),vF=new RegExp(`^hsla\\(${uF},${cF},${cF},${uF}\\)$`),bF={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 yF(){return this.rgb().formatHex()}function xF(){return this.rgb().formatRgb()}function _F(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=dF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?wF(t):3===n?new EF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?kF(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?kF(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=fF.exec(e))?new EF(t[1],t[2],t[3],1):(t=pF.exec(e))?new EF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hF.exec(e))?kF(t[1],t[2],t[3],t[4]):(t=gF.exec(e))?kF(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=mF.exec(e))?NF(t[1],t[2]/100,t[3]/100,1):(t=vF.exec(e))?NF(t[1],t[2]/100,t[3]/100,t[4]):bF.hasOwnProperty(e)?wF(bF[e]):"transparent"===e?new EF(NaN,NaN,NaN,0):null}function wF(e){return new EF(e>>16&255,e>>8&255,255&e,1)}function kF(e,t,n,r){return r<=0&&(e=t=n=NaN),new EF(e,t,n,r)}function SF(e){return e instanceof aF||(e=_F(e)),e?new EF((e=e.rgb()).r,e.g,e.b,e.opacity):new EF}function CF(e,t,n,r){return 1===arguments.length?SF(e):new EF(e,t,n,null==r?1:r)}function EF(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function TF(){return`#${MF(this.r)}${MF(this.g)}${MF(this.b)}`}function AF(){const e=LF(this.opacity);return`${1===e?"rgb(":"rgba("}${RF(this.r)}, ${RF(this.g)}, ${RF(this.b)}${1===e?")":`, ${e})`}`}function LF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function RF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function MF(e){return((e=RF(e))<16?"0":"")+e.toString(16)}function NF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new PF(e,t,n,r)}function OF(e){if(e instanceof PF)return new PF(e.h,e.s,e.l,e.opacity);if(e instanceof aF||(e=_F(e)),!e)return new PF;if(e instanceof PF)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 PF(a,s,l,e.opacity)}function PF(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function IF(e){return(e=(e||0)%360)<0?e+360:e}function zF(e){return Math.max(0,Math.min(1,e||0))}function DF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}oF(aF,_F,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yF,formatHex:yF,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return OF(this).formatHsl()},formatRgb:xF,toString:xF}),oF(EF,CF,iF(aF,{brighter(e){return e=null==e?sF:Math.pow(sF,e),new EF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new EF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new EF(RF(this.r),RF(this.g),RF(this.b),LF(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:TF,formatHex:TF,formatHex8:function(){return`#${MF(this.r)}${MF(this.g)}${MF(this.b)}${MF(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:AF,toString:AF})),oF(PF,function(e,t,n,r){return 1===arguments.length?OF(e):new PF(e,t,n,null==r?1:r)},iF(aF,{brighter(e){return e=null==e?sF:Math.pow(sF,e),new PF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new PF(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 EF(DF(e>=240?e-240:e+120,o,r),DF(e,o,r),DF(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new PF(IF(this.h),zF(this.s),zF(this.l),LF(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=LF(this.opacity);return`${1===e?"hsl(":"hsla("}${IF(this.h)}, ${100*zF(this.s)}%, ${100*zF(this.l)}%${1===e?")":`, ${e})`}`}}));const jF=Math.PI/180,FF=180/Math.PI,BF=4/29,HF=6/29,WF=3*HF*HF;function $F(e){if(e instanceof UF)return new UF(e.l,e.a,e.b,e.opacity);if(e instanceof qF)return QF(e);e instanceof EF||(e=SF(e));var t,n,r=YF(e.r),o=YF(e.g),i=YF(e.b),a=KF((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=KF((.4360747*r+.3850649*o+.1430804*i)/.96422),n=KF((.0139322*r+.0971045*o+.7141733*i)/.82521)),new UF(116*a-16,500*(t-a),200*(a-n),e.opacity)}function UF(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function KF(e){return e>.008856451679035631?Math.pow(e,1/3):e/WF+BF}function GF(e){return e>HF?e*e*e:WF*(e-BF)}function VF(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function YF(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qF(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function QF(e){if(isNaN(e.h))return new UF(e.l,0,0,e.opacity);var t=e.h*jF;return new UF(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}oF(UF,function(e,t,n,r){return 1===arguments.length?$F(e):new UF(e,t,n,null==r?1:r)},iF(aF,{brighter(e){return new UF(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new UF(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 EF(VF(3.1338561*(t=.96422*GF(t))-1.6168667*(e=1*GF(e))-.4906146*(n=.82521*GF(n))),VF(-.9787684*t+1.9161415*e+.033454*n),VF(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),oF(qF,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qF)return new qF(e.h,e.c,e.l,e.opacity);if(e instanceof UF||(e=$F(e)),0===e.a&&0===e.b)return new qF(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*FF;return new qF(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qF(e,t,n,null==r?1:r)},iF(aF,{brighter(e){return new qF(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qF(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return QF(this).rgb()}}));var JF=e=>()=>e;function XF(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):JF(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?XF: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):JF(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=CF(e)).r,(t=CF(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=XF(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 ZF,eB="center",tB="bottom";function nB(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 rB(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=iB)):void 0===t&&(t=oB);for(var n,r,o,i,a,s=new lB(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 lB(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(sB)}function oB(e){return e.children}function iB(e){return Array.isArray(e)?e[1]:null}function aB(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function sB(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function lB(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:eB,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:eB,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:eB,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:eB},{key:"DataRangeIncludingZero",alignment:tB},{key:"LimitedData",alignment:tB},{key:"NegativeOrZeroValues",alignment:tB}].reduce(function(e,t){return e[t.key]=t,e},{}),lB.prototype=rB.prototype={constructor:lB,count:function(){return this.eachAfter(nB)},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 rB(this).eachBefore(aB)},[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)}},ZF=function(e){
108
+ */function oL(){if(eL)return HC;eL=1,Object.defineProperty(HC,"__esModule",{value:!0}),HC.default=function(t){return(0,e.createStyles)(t)};var e=rL;return HC}var iL,aL,sL={},lL={};function uL(){if(iL)return lL;iL=1;var e=Jm();Object.defineProperty(lL,"__esModule",{value:!0}),lL.default=void 0;var t=(0,e(DC()).default)();return lL.default=t,lL}function cL(){if(aL)return sL;aL=1;var e=Jm();Object.defineProperty(sL,"__esModule",{value:!0}),sL.default=void 0;var t=e(Av()),n=rL,r=e(uL());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 sL.default=o,sL}var dL,fL,pL={},hL={};function gL(){if(dL)return hL;dL=1;var e=Jm();Object.defineProperty(hL,"__esModule",{value:!0}),hL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},hL.getUnit=n,hL.toUnitless=r,hL.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}},hL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},hL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},hL.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(Zw());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return hL}function mL(){if(fL)return pL;fL=1;var e=Jm();Object.defineProperty(pL,"__esModule",{value:!0}),pL.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,g=(0,r.convertLength)(h.htmlFontSize),m=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(g(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(g(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:m,transform:d}))}}),p};var t=e(Av()),n=Ww,r=gL();return pL}var vL,bL={};function yL(){if(vL)return bL;vL=1;var e=Jm();Object.defineProperty(bL,"__esModule",{value:!0}),bL.default=void 0;var t=e(Av()),n=rL,r=e(uL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return bL.default=o,bL}var xL,_L={};function wL(){if(xL)return _L;xL=1;var e=Jm();Object.defineProperty(_L,"__esModule",{value:!0}),_L.default=function(){return(0,t.useTheme)()||n.default};var t=rL;e(h());var n=e(uL());return _L}var kL,SL={};function CL(){if(kL)return SL;kL=1;var e=Jm();Object.defineProperty(SL,"__esModule",{value:!0}),SL.default=void 0;var t=e(Av()),n=rL,r=e(uL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return SL.default=o,SL}var EL,TL,AL={};function LL(){if(EL)return AL;EL=1;var e=Jm();Object.defineProperty(AL,"__esModule",{value:!0}),AL.default=void 0;var t=rL,n=e(uL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return AL.default=r,AL}function RL(){return TL||(TL=1,function(e){var t=Jm(),n=(yw||(yw=1,function(e){var t=kw().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}(_w)),_w.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 g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=$w();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(DC()),a=t(BC()),s=t(oL()),l=t(cL()),u=t(mL()),c=t(yL()),d=NC();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(wL()),p=t(CL()),h=t(LL()),g=rL}(xw)),xw}var ML=RL();ML.alpha(Y_.GREYSCALE_0,.05),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5);const NL=(e,t)=>Qu.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:Qu.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"})}),OL=E.forwardRef(NL);var PL=Object.defineProperty,IL=(e,t)=>{for(var n in t)PL(e,n,{get:t[n],enumerable:!0})},zL=(e,t,n)=>((e,t,n)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),DL={};IL(DL,{af:()=>UL,ak:()=>KL,am:()=>GL,an:()=>VL,ar:()=>YL,ars:()=>qL,as:()=>QL,asa:()=>JL,ast:()=>XL,az:()=>ZL,bal:()=>eR,be:()=>tR,bem:()=>nR,bez:()=>rR,bg:()=>oR,bho:()=>iR,blo:()=>aR,bm:()=>sR,bn:()=>lR,bo:()=>uR,br:()=>cR,brx:()=>dR,bs:()=>fR,ca:()=>pR,ce:()=>hR,ceb:()=>gR,cgg:()=>mR,chr:()=>vR,ckb:()=>bR,cs:()=>yR,cy:()=>xR,da:()=>_R,de:()=>wR,doi:()=>kR,dsb:()=>SR,dv:()=>CR,dz:()=>ER,ee:()=>TR,el:()=>AR,en:()=>LR,eo:()=>RR,es:()=>MR,et:()=>NR,eu:()=>OR,fa:()=>PR,ff:()=>IR,fi:()=>zR,fil:()=>DR,fo:()=>jR,fr:()=>FR,fur:()=>BR,fy:()=>HR,ga:()=>WR,gd:()=>$R,gl:()=>UR,gsw:()=>KR,gu:()=>GR,guw:()=>VR,gv:()=>YR,ha:()=>qR,haw:()=>QR,he:()=>JR,hi:()=>XR,hnj:()=>ZR,hr:()=>eM,hsb:()=>tM,hu:()=>nM,hy:()=>rM,ia:()=>oM,id:()=>iM,ig:()=>aM,ii:()=>sM,io:()=>lM,is:()=>uM,it:()=>cM,iu:()=>dM,ja:()=>fM,jbo:()=>pM,jgo:()=>hM,jmc:()=>gM,jv:()=>mM,jw:()=>vM,ka:()=>bM,kab:()=>yM,kaj:()=>xM,kcg:()=>_M,kde:()=>wM,kea:()=>kM,kk:()=>SM,kkj:()=>CM,kl:()=>EM,km:()=>TM,kn:()=>AM,ko:()=>LM,ks:()=>RM,ksb:()=>MM,ksh:()=>NM,ku:()=>OM,kw:()=>PM,ky:()=>IM,lag:()=>zM,lb:()=>DM,lg:()=>jM,lij:()=>FM,lkt:()=>BM,ln:()=>HM,lo:()=>WM,lt:()=>$M,lv:()=>UM,mas:()=>KM,mg:()=>GM,mgo:()=>VM,mk:()=>YM,ml:()=>qM,mn:()=>QM,mo:()=>JM,mr:()=>XM,ms:()=>ZM,mt:()=>eN,my:()=>tN,nah:()=>nN,naq:()=>rN,nb:()=>oN,nd:()=>iN,ne:()=>aN,nl:()=>sN,nn:()=>lN,nnh:()=>uN,no:()=>cN,nqo:()=>dN,nr:()=>fN,nso:()=>pN,ny:()=>hN,nyn:()=>gN,om:()=>mN,or:()=>vN,os:()=>bN,osa:()=>yN,pa:()=>xN,pap:()=>_N,pcm:()=>wN,pl:()=>kN,prg:()=>SN,ps:()=>CN,pt:()=>EN,pt_PT:()=>TN,rm:()=>AN,ro:()=>LN,rof:()=>RN,ru:()=>MN,rwk:()=>NN,sah:()=>ON,saq:()=>PN,sat:()=>IN,sc:()=>zN,scn:()=>DN,sd:()=>jN,sdh:()=>FN,se:()=>BN,seh:()=>HN,ses:()=>WN,sg:()=>$N,sh:()=>UN,shi:()=>KN,si:()=>GN,sk:()=>VN,sl:()=>YN,sma:()=>qN,smi:()=>QN,smj:()=>JN,smn:()=>XN,sms:()=>ZN,sn:()=>eO,so:()=>tO,sq:()=>nO,sr:()=>rO,ss:()=>oO,ssy:()=>iO,st:()=>aO,su:()=>sO,sv:()=>lO,sw:()=>uO,syr:()=>cO,ta:()=>dO,te:()=>fO,teo:()=>pO,th:()=>hO,ti:()=>gO,tig:()=>mO,tk:()=>vO,tl:()=>bO,tn:()=>yO,to:()=>xO,tpi:()=>_O,tr:()=>wO,ts:()=>kO,tzm:()=>SO,ug:()=>CO,uk:()=>EO,und:()=>TO,ur:()=>AO,uz:()=>LO,ve:()=>RO,vec:()=>MO,vi:()=>NO,vo:()=>OO,vun:()=>PO,wa:()=>IO,wae:()=>zO,wo:()=>DO,xh:()=>jO,xog:()=>FO,yi:()=>BO,yo:()=>HO,yue:()=>WO,zh:()=>$O,zu:()=>UO});var jL=(e,t)=>t?"other":1==e?"one":"other",FL=(e,t)=>t?"other":0==e||1==e?"one":"other",BL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",HL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},WL=(e,t)=>"other",$L=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",UL=jL,KL=FL,GL=BL,VL=jL,YL=(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"},qL=(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"},QL=(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",JL=jL,XL=HL,ZL=(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"},eR=(e,t)=>1==e?"one":"other",tR=(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"},nR=jL,rR=jL,oR=jL,iR=FL,aR=(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"},sR=WL,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=WL,cR=(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"},dR=jL,fR=(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"},pR=(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"},hR=jL,gR=(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"},mR=jL,vR=jL,bR=jL,yR=(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"},xR=(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",_R=(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"},wR=HL,kR=BL,SR=(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"},CR=jL,ER=WL,TR=jL,AR=jL,LR=(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"},RR=jL,MR=(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"},NR=HL,OR=jL,PR=BL,IR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",zR=HL,DR=(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,FR=(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"},BR=jL,HR=HL,WR=(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"},$R=(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"},UR=HL,KR=jL,GR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",VR=FL,YR=(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"},qR=jL,QR=jL,JR=(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"},XR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",ZR=WL,eM=(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"},tM=(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"},nM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",rM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",oM=HL,iM=WL,aM=WL,sM=WL,lM=HL,uM=(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"},cM=(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"},dM=$L,fM=WL,pM=WL,hM=jL,gM=jL,mM=WL,vM=WL,bM=(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"},yM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",xM=jL,_M=jL,wM=WL,kM=WL,SM=(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"},CM=jL,EM=jL,TM=WL,AM=BL,LM=WL,RM=jL,MM=jL,NM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",OM=jL,PM=(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"},IM=jL,zM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},DM=jL,jM=jL,FM=(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"},BM=WL,HM=FL,WM=(e,t)=>t&&1==e?"one":"other",$M=(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"},UM=(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"},KM=jL,GM=FL,VM=jL,YM=(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"},qM=jL,QM=jL,JM=(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"},XM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ZM=(e,t)=>t&&1==e?"one":"other",eN=(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"},tN=WL,nN=jL,rN=$L,oN=jL,iN=jL,aN=(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"},sN=HL,lN=jL,uN=jL,cN=jL,dN=WL,fN=jL,pN=FL,hN=jL,gN=jL,mN=jL,vN=(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"},bN=jL,yN=WL,xN=FL,_N=jL,wN=BL,kN=(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"},SN=(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"},CN=jL,EN=(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"},TN=(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"},AN=jL,LN=(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"},RN=jL,MN=(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"},NN=jL,ON=WL,PN=jL,IN=$L,zN=(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"},DN=(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"},jN=jL,FN=jL,BN=$L,HN=jL,WN=WL,$N=WL,UN=(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"},KN=(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"},GN=(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"},VN=(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"},YN=(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"},qN=$L,QN=$L,JN=$L,XN=$L,ZN=$L,eO=jL,tO=jL,nO=(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"},rO=(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"},oO=jL,iO=jL,aO=jL,sO=WL,lO=(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"},uO=HL,cO=jL,dO=jL,fO=jL,pO=jL,hO=WL,gO=FL,mO=jL,vO=(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"},bO=(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"},yO=jL,xO=WL,_O=WL,wO=jL,kO=jL,SO=(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"},CO=jL,EO=(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"},TO=WL,AO=HL,LO=jL,RO=jL,MO=(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"},NO=(e,t)=>t&&1==e?"one":"other",OO=jL,PO=jL,IO=FL,zO=jL,DO=WL,jO=jL,FO=jL,BO=HL,HO=WL,WO=WL,$O=WL,UO=BL,KO={},GO=Array.prototype.slice,VO=function(e){return("0"+e.toString()).substr(-2)},YO=function(e){var t=typeof e;return"function"===t||"object"===t},qO=function(e){return"function"===typeof e},QO=function(e){return null!=e},JO=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},XO=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},ZO=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},eP=function(e){return!0===e||!1===e},tP=function(e){return null===e},nP=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))))},rP=function(e,t){return qO(e)?e(t):e},oP=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],XO(r)||ZO(r)||eP(r)||JO(r)||tP(r)?e[n]=r:(null==e[n]&&(e[n]={}),oP(e[n],r)));return e},iP={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"]},aP={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},sP={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},lP={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},uP=[null,"kb","mb","gb","tb"],cP={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};KO.reset=function(){var e;for(e in cP)this[e]=cP[e]},KO.initializeOptions=function(){var e;for(e in cP)QO(this[e])||(this[e]=cP[e])},KO.initializeOptions(),KO.locales={},KO.locales.get=function(e){var t=this[e]||this[KO.locale]||this.default;return qO(t)&&(t=t(e)),!1===JO(t)&&(t=[t]),t},KO.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&KO.locale&&t.push(KO.locale),KO.fallbacks&&KO.defaultLocale&&t.push(KO.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),KO.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},KO.pluralization={},KO.pluralization.get=function(e){return this[e]||this[KO.locale]||this.default},KO.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},KO.currentLocale=function(){return this.locale||this.defaultLocale},KO.isSet=QO,KO.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(QO(t.defaultValue))return rP(t.defaultValue,e)},KO.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&YO(n))for(;i.length;)if(r=i.shift(),QO(n[r])){o=n[r];break}return o},KO.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()],YO(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&QO(n.defaultValue)&&(a=YO(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},KO.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:iP.meridian},KO.prepareOptions=function(){for(var e,t=GO.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(QO(n[r])||(n[r]=e[r]));return n},KO.createTranslationOptions=function(e,t){var n=[{scope:e}];return QO(t.defaults)&&(n=n.concat(t.defaults)),QO(t.defaultValue)&&n.push({message:t.defaultValue}),n},KO.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(QO(t.scope)?(o=t.scope,n=this.lookup(o,i)):QO(t.message)&&(n=rP(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):JO(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):YO(n)&&QO(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},KO.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=QO(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,"$")},KO.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))},KO.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]'},KO.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},KO.nullPlaceholder=function(){return KO.missingPlaceholder.apply(KO,arguments)},KO.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),aP);var n,r,o=e<0,i=function(e,t){return nP("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)},KO.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),sP),this.toNumber(e,t)},KO.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)}},KO.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},KO.strftime=function(e,t,n){n=this.lookup("date",n);var r=KO.meridian();if(n||(n={}),n=this.prepareOptions(n,iP),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)),g=Math.abs(p)-60*h,m=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(g.toString().length<2?"0"+g:g);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",VO(i))).replace("%e",i)).replace("%-d",i)).replace("%H",VO(l))).replace("%-H",l)).replace("%k",l)).replace("%I",VO(u))).replace("%-I",u)).replace("%l",u)).replace("%m",VO(s))).replace("%-m",s)).replace("%M",VO(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",VO(d))).replace("%-S",d)).replace("%w",o)).replace("%y",VO(a))).replace("%-y",VO(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",m)).replace("%Z",m)},KO.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},KO.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),lP),this.toNumber(e,t)},KO.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."+uP[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)},KO.getFullScope=function(e,t){return t=t||{},JO(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},KO.extend=function(e,t){return void 0===e&&void 0===t?{}:oP(e,t)},KO.t=KO.translate.bind(KO),KO.l=KO.localize.bind(KO),KO.p=KO.pluralize.bind(KO);IL({},{DEFAULT_LANGUAGE:()=>fP,DEFAULT_LANGUAGE_SHORT:()=>pP,flattenParams:()=>wP,flattenTranslationsJSON:()=>mP,format:()=>kP,formatWithKeys:()=>SP,getLongLanguageDesc:()=>_P,getShortLanguageDesc:()=>xP,parseLangFromUrl:()=>vP,resolveLocale:()=>yP,updateLangAttribute:()=>CP});var dP=[{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"}],fP="en-US",pP="en",hP=["zh-cn","zh-tw","qps-ploc"],gP=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),mP=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),gP(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=gP(r)&&r.value;return o&&(t[n]=o),t},{}):{}),vP=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},bP=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(hP.includes(e.toLocaleLowerCase()))return dP.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return dP.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},yP=(...e)=>{for(const t of e){const e=bP(t);if(e)return e.short}},xP=e=>{const t=bP(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${pP}'`),pP)},_P=e=>{const t=bP(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${fP}'`),fP)},wP=e=>Array.isArray(e[0])?e[0]:e,kP=(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)},SP=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),CP=e=>{const t=xP(e);document.documentElement.setAttribute("lang",t)},EP=class e{static configure(t,n=fP){e.translations=t,e.language=_P(n),e.languageShort=xP(n),CP(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=KO,KO.missingTranslation=e=>e,KO.defaultSeparator=null,KO.locale=e.language,KO.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];KO.pluralization[e.language]=e=>{try{const t=DL[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=SP(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))}}};zL(EP,"translations",{}),zL(EP,"translationsPlurals",{}),zL(EP,"language"),zL(EP,"languageShort"),zL(EP,"onTranslationsChangeListeners",[]),zL(EP,"i18nProvider"),zL(EP,"get",(e,...t)=>{var n;const r=wP(t);let o=null!=(n=EP.translations[e])?n:e;return r.length>0&&(o=kP(o,...r)),o});var TP=EP;var AP=function(){const[e,t]=E.useState(0);return E.useEffect(()=>{const n=TP.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),TP.get},LP=TP;function RP({defaultSelection:e}){const[t]=Ku();return E.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 MP(e,t=!0){if(e)return!1;let n=Ti().getTextContent();return t&&(n=n.trim()),""===n}function NP(e){return()=>function(e){if(!MP(e,!1))return!1;const t=Ti().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Io(n))return!1;if(No(n)){if(!Go(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!xr(t[e]))return!1}}return!0}(e)}const OP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function PP({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:g,role:m="textbox",spellCheck:v=!0,style:b,tabIndex:y,"data-testid":x,..._},w){const[k,S]=E.useState(e.isEditable()),C=E.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),T=E.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 OP(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Qu.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"===m?!!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:g,ref:T,role:m,spellCheck:v,style:b,tabIndex:y,..._})}const IP=E.forwardRef(PP);function zP(e){return e.getEditorState().read(NP(e.isComposing()))}const DP=E.forwardRef(jP);function jP(e,t){const{placeholder:n,...r}=e,[o]=Ku();return Qu.jsxs(Qu.Fragment,{children:[Qu.jsx(IP,{editor:o,...r,ref:t}),null!=n&&Qu.jsx(FP,{editor:o,content:n})]})}function FP({content:e,editor:t}){const n=function(e){const[t,n]=E.useState(()=>zP(e));return OP(()=>{function t(){const t=zP(e);n(t)}return t(),Ss(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=E.useState(t.isEditable());if(E.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:Qu.jsx("div",{"aria-hidden":!0,children:i})}const BP=E.createContext(null),HP={didCatch:!1,error:null};class WP extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=HP}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(HP))}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(HP))}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=E.createElement(n,e);else{if(void 0===r)throw i;a=r}}return E.createElement(BP.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function $P({children:e,onError:t}){return Qu.jsx(WP,{fallback:Qu.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const UP={name:"@lexical/react/ReactProvider"};function KP(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const GP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function VP({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=E.useState(()=>e.getDecorators());return GP(()=>e.registerDecoratorListener(e=>{Yv.flushSync(()=>{r(e)})}),[e]),E.useEffect(()=>{r(e.getDecorators())},[e]),E.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Qu.jsx(t,{onError:t=>e._onError(t),children:Qu.jsx(E.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(Yv.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function YP({editor:e,ErrorBoundary:t}){return function(e){const t=zl.maybeFromEditor(e);if(t&&t.hasExtensionByName(UP.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&KP(320,e);return!0}return!1}(e)?null:Qu.jsx(VP,{editor:e,ErrorBoundary:t})}function qP(e){return e.getEditorState().read(NP(e.isComposing()))}function QP({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Ku();return function(e){GP(()=>Ss(Wc(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=Vr();if(Rr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(xr(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()),xr(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])}(r),Qu.jsxs(Qu.Fragment,{children:[e,Qu.jsx(JP,{content:t}),Qu.jsx(YP,{editor:r,ErrorBoundary:n})]})}function JP({content:e}){const[t]=Ku(),n=function(e){const[t,n]=E.useState(()=>qP(e));return GP(()=>{function t(){const t=qP(e);n(t)}return t(),Ss(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Vc();return n?"function"==typeof e?e(r):e:null}const XP=(e,t)=>Qu.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:Qu.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"})}),ZP=E.forwardRef(XP),eI=(e,t)=>Qu.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:[Qu.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Qu.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),tI=E.forwardRef(eI),nI=(e,t)=>Qu.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:Qu.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),rI=E.forwardRef(nI),oI=(e,t)=>Qu.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:Qu.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),iI=E.forwardRef(oI),aI=(e,t)=>Qu.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:Qu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),sI=E.forwardRef(aI),lI=(e,t)=>Qu.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:Qu.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"})}),uI=E.forwardRef(lI),cI=(e,t)=>Qu.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:Qu.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"})}),dI=E.forwardRef(cI),fI=(e,t)=>Qu.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:Qu.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"})}),pI=E.forwardRef(fI),hI=(e,t)=>Qu.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:Qu.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"})}),gI=E.forwardRef(hI),mI=(e,t)=>Qu.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:Qu.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"})}),vI=E.forwardRef(mI),bI=(e,t)=>Qu.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:Qu.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"})}),yI=E.forwardRef(bI),xI=(e,t)=>Qu.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:Qu.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"})}),_I=E.forwardRef(xI),wI=(e,t)=>Qu.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:Qu.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"})}),kI=E.forwardRef(wI),SI=(e,t)=>Qu.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:Qu.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"})}),CI=E.forwardRef(SI),EI=(e,t)=>Qu.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:Qu.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"})}),TI=E.forwardRef(EI),AI=(e,t)=>Qu.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:Qu.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"})}),LI=E.forwardRef(AI);var RI,MI,NI={exports:{}},OI={};function PI(e){return PI="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},PI(e)}var II=(MI||(MI=1,NI.exports=function(){if(RI)return OI;RI=1;var e=T,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 OI.Fragment=n,OI.jsx=a,OI.jsxs=a,OI}()),NI.exports);const zI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,DI=[e=>{const t=zI.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 jI(){return II.jsx(Uc,{matchers:DI})}const FI=()=>{const[e]=Ku(),t=Vc(),n=E.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 E.useEffect(()=>Ss(e.registerMutationListener(Fl,e=>{n(e)}),e.registerMutationListener(Gl,e=>{n(e)}),e.registerCommand(ht,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=Vr();let t;if(Rr(e)&&(t=e.focus.getNode().getParent()),Nr(e)&&(t=e.getNodes()[0]),Yl(t)||Kl(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),0)),[e,n]),null};function BI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Os(n)?r:o:Os(t)?r:o}const HI=new Set(["http:","https:","mailto:","sms:","tel:"]),WI=e=>{const t=e;return t.password="",t.username="",t};function $I(e){try{const t=new URL(e);return HI.has(t.protocol)?{url:WI(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const UI=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function KI(e){return"https://"===e||UI.test(e)}const GI=Hv(o_)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),VI=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=E.useRef(null),[a,s]=E.useState(t);E.useEffect(()=>{s(t)},[t]);const l=E.useCallback(()=>{n(a),window.open($I(a).url,"_blank"),r()},[a,r,n]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=E.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return II.jsx(_x,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>II.jsx(u_,{...e,children:II.jsx(gb,{className:"tekPopperMenu",children:II.jsxs(GI,{direction:"row",children:[II.jsx(zx,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),II.jsx(jb,{onClick:l,children:II.jsx(U_,{})}),II.jsx(jb,{onClick:u,children:II.jsx(G_,{})})]})})})})},YI=()=>{const[e]=Ku(),t=Vc(),[n,r]=E.useState(null),[o,i]=E.useState(""),a=E.useRef(!1),s=E.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=Vr();if(Rr(t)){const n=BI(t),o=n.getParent();if(Yl(o)||Yl(n))return r(null),i(""),!1;let a;if(Kl(o)&&(a=o),Kl(n)&&(a=n),Kl(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=E.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(ql,$I(t))},{onUpdate:()=>{r(null)}})},[e]),u=E.useCallback(()=>{r(null)},[]);return E.useEffect(()=>Ss(e.registerCommand(ft,()=>s(),1),e.registerCommand(ht,()=>s(),1)),[e,s]),t?II.jsx(VI,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function qI(){return II.jsx(V_,{validateUrl:KI})}!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 QI=({children:e})=>II.jsx($v,{theme:vw(),children:e}),JI={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:[Oc,Rc,Nu,Tu,Fl,Gl],onError:e=>{console.log(e)}},XI=({children:e,initialConfig:t,flags:n})=>II.jsx(QI,{children:II.jsx("div",{className:"tek__editor__Wrapper",children:II.jsx(ec,{initialConfig:t||JI,children:II.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,II.jsx(ac,{}),II.jsx(sc,{}),II.jsx(qI,{}),II.jsx(jI,{}),II.jsx(YI,{}),II.jsx(FI,{}),II.jsx(ic,{})]})})})});let ZI=class e extends Mo{__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 ez=e=>new ZI(e),tz=e=>e instanceof ZI;let nz=class e extends Mo{__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 rz(e){return e instanceof nz}let oz=class e extends Mo{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 iz(e){return e instanceof oz}const az=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),tz(t))return t;return null},sz=e=>{let t=e;for(;null!==t;){if(rz(t))return t;t=t?.getParent()}return null},lz=(e,t)=>{const n=sz(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},uz=e=>{const t=e?.getChildAtIndex(2);return t},cz=e=>{const t=e.getParent();if(iz(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},dz=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,fz=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},pz=e=>e?e.getChildren().filter(e=>iz(e)):[],hz=e=>{let t=!1;return pz(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(Ko()),t=!0})}),t},gz=e=>{const t=Vr();if(Rr(t)||Nr(t)){const n=t.getNodes().filter(e=>tz(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>rz(e)),o=sz(n[0]),i=pz(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Rr(t)){const e=t.focus.getNode();if(rz(e))return hz(e)}return n.forEach(e=>{e.clear(),e.append(Ko())}),(()=>{const e=Vr();let t=!1;if(Rr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=sz(n);!o&&rz(r)&&(o=r),rz(o)&&(t=hz(o))}return t})()}if(Rr(t)){const e=t.focus.getNode();if(rz(e))return hz(e)}}return!1},mz=e=>{if(e){const t=sz(e);if(rz(t)){const n=e.getParent(),r=pz(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}},vz=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),tz(t))return t;return null},bz=e=>{const t=[];return pz(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},yz=(e,t)=>{bz(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},xz=dt("UPDATE_COL_WIDTHS_COMMAND"),_z=dt("BEGIN_COL_RESIZE"),wz=dt("END_COL_RESIZE"),kz=dt("INSERT_TEK_TABLE_COMMAND"),Sz=({colKey:e,startX:t,onMouseDown:n})=>{const r=E.useCallback(t=>{n(t,e)},[e,n]);return II.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},Cz=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},Ez=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,Tz=({nodeKey:e,colWidths:t})=>{const[n]=Ku(),r=Vc(),[o,i]=E.useState(null),a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),u=E.useRef(null),c=E.useCallback(t=>{const n=_i(e);if(n){const e=n.getParent();if(rz(e)){const n=uz(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=E.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=fz(s+p,r);if(c){const e=o+p;if(e<60)return;const t=fz(e,r),s=a.current.nxtColWidth-p,d=fz(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=fz(e,d),s=fz(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=E.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(fz(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(wz,void 0)}a.current=null,s.current=null,n.update(()=>{const t=_i(e),r=lz(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(xz,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=E.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=_i(t),o=lz(r,n);if(tz(r)){const t=cz(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=dz(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=dz(s,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=(g?.offsetWidth||0)*m,b=((e,t,n)=>{const r=Cz("tek__leftResizerIndicator","leftGripper");r.innerText=Ez(e);let o=null;return t?(o=Cz("tek__rightResizerIndicator","rightGripper"),o.innerText=Ez(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.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:g,currentTableWidth:v},n.dispatchCommand(_z,void 0)}}})},[n,d,f]);return E.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),II.jsx(II.Fragment,{children:o&&r?o.map(e=>II.jsx(Sz,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},Az="TEK_TABLE_RESIZE_NODE";let Lz=class e extends Po{__colWidths;static getType(){return Az}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:Az,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 II.jsx(Tz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const Rz=e=>e instanceof Lz,Mz=({nodeKey:e,colWidths:t})=>{const[n]=Ku(),[r,o]=E.useState(t);return E.useEffect(()=>{n.getEditorState().read(()=>{const t=_i(e),n=t?.getParent();if(rz(n)){const e=n.getResizeNode();if(Rz(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),II.jsx(II.Fragment,{children:r.map((t,n)=>II.jsx("col",{span:1,width:t},`${e}.${n}`))})};class Nz extends Po{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new Nz(e.__colWidths,e.__key)}static importJSON(e){return new Nz(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 II.jsx(Mz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class Oz extends Po{__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 Pz=[nz,ZI,oz,Nz,Lz],Iz=(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()},zz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=az(t);if(n){const e=cz(n),t=sz(n),r=pz(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),Iz(o,t)}}},Dz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=az(t),r=sz(n);if(r&&3===r.getChildren().length)return Li(null),void r.remove();if(n){const{row:e}=mz(n);Li(null),e?.remove()}}},jz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t),r=uz(n);if(iz(r)&&n){const e=r.getChildren().length,t=new oz;for(let r=0;r<e;r++){const e=ez(n?.__hasBorders);e.append(Ko()),t.append(e)}n?.append(t)}}},Fz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);if(rz(n)){const e=pz(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=ez(n.__hasBorders);o.append(Ko()),e[r].append(o),t=o}return Iz(r,n),t}}return null},Bz=Hv(jb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Hz=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Ku(),[o,i]=E.useState(null),a=AP(),s=Boolean(o),l=E.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=E.useCallback(()=>{i(null)},[]),d=E.useCallback(e=>{l(e,jz,t)},[l,t]),f=E.useCallback(e=>{l(e,Fz,t)},[l,t]),p=E.useCallback(t=>{l(t,Dz,e)},[l,e]),h=E.useCallback(t=>{l(t,zz,e)},[l,e]),g=E.useCallback(()=>{r.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);rz(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),m=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);n&&(n.toggleBorders(),bz(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return E.useEffect(()=>Ss(r.registerCommand(ft,()=>(i(null),!1),4)),[r]),II.jsx(Jx,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(Bz,{size:"small",onClick:u,children:II.jsx(OL,{height:12})}),II.jsx(_x,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:II.jsx(gb,{id:"tekTableMenu",className:"tekPopperMenu",children:II.jsxs(E_,{dense:!0,children:[II.jsx(M_,{onClick:m,children:a("ToggleBorders")}),II.jsx(r_,{}),II.jsx(M_,{onClick:d,children:a("AddNewRow")}),II.jsx(M_,{onClick:f,children:a("AddNewColumn")}),II.jsx(r_,{}),II.jsx(M_,{onClick:p,children:a("DeleteRow")}),II.jsx(M_,{onClick:h,children:a("DeleteCol")}),II.jsx(r_,{}),II.jsx(M_,{onClick:g,children:a("DeleteTable")})]})})})]})})},Wz=()=>{const[e]=Ku(),t=Vc(),[n,r]=E.useState(null),[o,i]=E.useState(!1),a=Boolean(n),s=E.useContext(hp),l=E.useRef(null),u=E.useCallback(()=>{o||e.update(()=>{const t=Vr();if(Rr(t)){const n=az(t.anchor.getNode());if(tz(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);E.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)}},[]),E.useEffect(()=>Ss(e.registerCommand(ft,()=>(u(),!1),0),e.registerCommand(_z,()=>(r(null),!0),4),e.registerCommand(wz,()=>(u(),!0),4)),[e,u]),E.useEffect(()=>{r(null)},[t]);const c=E.useCallback(()=>{r(null)},[]),d=E.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=E.useCallback(()=>{clearTimeout(l.current)},[]);return II.jsx(_x,{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:II.jsx(Hz,{onDeleteAction:c,onAction:d,onClick:f})})},$z=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=_i(n),r=e?.getParent();Do(r)&&null!==e&&t.push(e)}if(t.length>0){const e=Ko();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},Uz=()=>{const[e]=Ku(),t=Vc();return E.useEffect(()=>Ss(e.registerMutationListener(ZI,t=>{e.update(()=>{$z(t)})}),e.registerMutationListener(oz,t=>{e.update(()=>{$z(t)})}),e.registerMutationListener(nz,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=_i(e);if(rz(t)&&!t.isValid()){const e=Ko();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(kz,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new nz(!0,"100%"),n=new Nz(e),r=new Lz(e),o=[];for(let t=0;t<2;t++){const t=new oz;for(let n=0;n<e.length;n++){const e=ez(!0),n=Ko();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Qs(e)}),!0),0),e.registerCommand(xz,({colWidths:e,nodeKey:t})=>{const n=_i(t);if(Rz(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof Nz})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Dt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.focus.getNode(),n=sz(t),r=vz(t);if(rz(n)){const e=Ko();e.append(yr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.focus.getNode(),n=sz(t);if(rz(n)){const e=Ko();e.append(yr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Ft,e=>gz(e),4),e.registerCommand(Ht,e=>gz(e),4),e.registerCommand(Wt,e=>{const t=Vr();if(Rr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),tz(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(iz(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(mz(o),!e.shiftKey),!0}return!1},0),e.registerCommand(Xt,e=>{const t=e?.target,n=Vr();if(t.classList.contains("tek__table")&&Rr(n)&&rz(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Rr(n)){const t=n.getNodes().some(e=>tz(e)),r=n.getNodes().some(e=>rz(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),E.useEffect(()=>e.registerCommand(ft,()=>(t&&e.update(()=>{(e=>{const t=Vr(),n=[];if(Gi(nz).forEach(e=>{const t=bz(e);n.push(...t)}),Rr(t)){t.getNodes().filter(e=>rz(e)).forEach(t=>{yz(t,e)});const n=t.focus.getNode();if(rz(n))return void yz(n,e)}if(Rr(t)||Nr(t)){const r=new Set(t.getNodes().map(e=>vz(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]),E.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];Gi(nz).forEach(e=>{const n=bz(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},Kz=()=>II.jsxs(II.Fragment,{children:[II.jsx(Uz,{}),II.jsx(Wz,{})]}),Gz=()=>{const e=Vc(),t=AP();return e?II.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):II.jsx("div",{className:"tek__editor__logo",children:II.jsx(ZP,{height:32})})},Vz=({showPlaceholder:e})=>II.jsxs("div",{style:{position:"relative"},children:[II.jsx(RP,{}),II.jsx(QP,{contentEditable:II.jsx(DP,{className:"tek__editor__input"}),placeholder:!1!==e?II.jsx(Gz,{}):null,ErrorBoundary:$P})]}),Yz=Hv(o_)(({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"}})),qz=["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"],Qz="#404040",Jz="16px",Xz=E.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:qz[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Zz=({children:e})=>{const t=(()=>{const[e]=Ku(),[t,n]=E.useState(!1),[r,o]=E.useState(!1),[i,a]=E.useState(!1),[s,l]=E.useState("paragraph"),[u,c]=E.useState(qz[0]),[d,f]=E.useState(Jz),[p,h]=E.useState(Qz),[g,m]=E.useState("left"),[v,b]=E.useState(!1),y=E.useCallback(()=>{const t=Vr();if(Rr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Ta(r,e=>{const t=e.getParent();return null!==t&&oa(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(ju(i)){const e=Ys(r,Nu),t=e?e.getListType():i.getListType();l(t)}else{const e=jc(i)?i.getTag():i.getType();l(e)}if(ju(i)||jc(i)){const e=Ys(i,$o);e&&(u=e)}const d=BI(t);if(Kl(d.getParent())||Kl(d)?b(!0):b(!1),Go(u)){const e=u.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=Us(t,"font-family",qz[0]),g=Us(t,"font-size",Jz);c(""===p?qz[0]:p),f(""!==g&&g?g:Jz),h(Us(t,"color",Qz))}else Nr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof Oz}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",Qz));const t=e.getTextFormatStyle("fontSize",Jz),r=e.getTextFormatStyle("fontFamily",qz[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(Mu(e)){const t=Ys(e,Nu);return t?t.getListType():"bullet"}return jc(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return E.useEffect(()=>Ss(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{y()})}),e.registerCommand(ft,()=>(e.getEditorState().read(()=>{y()}),!1),0)),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:g,isLink:v}}})();return II.jsx(Xz.Provider,{value:t,children:e})},eD=({children:e})=>II.jsx(Zz,{children:II.jsx(Yz,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),tD=({anchorEl:e,children:t})=>{const n=Boolean(e);return II.jsx(_x,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>II.jsx(u_,{...e,children:II.jsx(gb,{className:"tekPopperMenu",children:t})})})},nD=Hv(Ub)({fontSize:12,textOverflow:"ellipsis"}),rD=({startIcon:e,value:t,onClick:n,compact:r})=>II.jsx(W_,{title:t,PopperProps:{disablePortal:!0},children:II.jsx(qx,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:II.jsx(sI,{height:12}),children:r?e:II.jsx(nD,{children:t})})}),oD=Hv(M_,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),iD=[{text:"AlignLeft",align:"left",icon:()=>II.jsx(rI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>II.jsx(tI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>II.jsx(iI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],aD=({compact:e=!1})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=AP(),a=E.useMemo(()=>iD.find(e=>e.align===o.align)||iD[0],[o.align]),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=E.useCallback(()=>{r(null)},[]),u=E.useCallback(e=>{r(null),t.dispatchCommand(Vt,e),t.focus()},[t]);return II.jsx(Jx,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),II.jsx(tD,{anchorEl:n,children:II.jsx(E_,{dense:!0,children:iD.map(e=>II.jsxs(oD,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[II.jsx(y_,{children:e.icon()}),II.jsx(nD,{children:i(e.text)})]},e.align))})})]})})},sD=({text:e,icon:t})=>II.jsxs(II.Fragment,{children:[II.jsx(y_,{children:t}),II.jsx(nD,{children:e})]}),lD=({text:e,icon:t})=>II.jsxs(II.Fragment,{children:[II.jsx(y_,{children:II.jsx(nD,{fontWeight:"bold",children:t})}),II.jsx(nD,{children:e})]}),uD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],cD=(e,t,n)=>({icon:II.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),dD=({compact:e=!1})=>{const[t]=Ku(),{blockFormat:n}=E.useContext(Xz),[r,o]=E.useState(null),i=AP(),a=E.useMemo(()=>{let e={icon:II.jsx(gI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=cD("Heading1","H1",i)),"h2"===n.blockType&&(e=cD("Heading2","H2",i)),"h3"===n.blockType&&(e=cD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=II.jsx(dI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=II.jsx(uI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=II.jsx(pI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=E.useCallback(()=>{o(null)},[]),l=E.useCallback(e=>{t.update(()=>{const n=Vr();Rr(n)?(zs(n,{"font-size":null}),function(e,t,n=Ds){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=Ur(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Ta(e.getNode(),va),a=Ta(t.getNode(),va);No(n)&&o.set(n.getKey(),n),No(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(No(t)&&va(t))o.set(t.getKey(),t);else if(null===r){const e=Ta(t,va);No(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(Vr())&&Li(i)}(n,e)):Nr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=E.useCallback((e,n)=>{o(null),t.update(()=>{const r=Vr();Rr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=E.useCallback(e=>{o(null),l(()=>Dc(e))},[l]),d=E.useCallback(()=>{o(null),l(()=>Ko())},[l]),f=E.useCallback(()=>{o(null),l(()=>Mc())},[l]);return II.jsx(Jx,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),II.jsx(tD,{anchorEl:r,children:II.jsxs(E_,{dense:!0,children:[II.jsx(M_,{dense:!0,onClick:d,children:II.jsx(sD,{text:i("Paragraph"),icon:II.jsx(gI,{height:12})})}),II.jsx(M_,{dense:!0,onClick:f,children:II.jsx(sD,{text:i("Quote"),icon:II.jsx(dI,{height:12})})}),uD.map(e=>II.jsx(M_,{dense:!0,onClick:()=>{c(e.tag)},children:II.jsx(lD,{text:i(e.text),icon:e.icon})},e.text)),II.jsx(r_,{}),II.jsx(M_,{dense:!0,onClick:()=>{u("bullet",Bu)},children:II.jsx(sD,{text:i("UnorderedList"),icon:II.jsx(uI,{height:12})})}),II.jsx(M_,{dense:!0,onClick:()=>{u("number",Hu)},children:II.jsx(sD,{text:i("OrderedList"),icon:II.jsx(pI,{height:12})})})]})})]})})},fD=Hv(qx,{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})),pD=(e,t)=>{const n=n=>{const r=AP();return II.jsx(W_,{title:r(t),PopperProps:{disablePortal:!0},children:II.jsx("div",{children:II.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},hD=({format:e,icon:t,...n})=>{const r=E.useContext(Xz),[o]=Ku(),i=E.useCallback(()=>{o.dispatchCommand(Tt,e)},[o,e]);return II.jsx(fD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},gD=pD(hD,"Bold"),mD=()=>II.jsx(gD,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:II.jsx(vI,{height:12})}),vD=dt("APPLY_TEXT_FORMAT"),bD=dt("CLEAR_TEXT_FORMAT"),yD=pD(fD,"ClearFormat"),xD=()=>{const[e]=Ku(),t=E.useCallback(()=>{e.update(()=>{const t=Vr();if(Rr(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(xr(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),qs(i).setFormat(""));const a=i.getParent();(jc(a)||Nc(a))&&a.replace(Ko(),!0)}else(jc(t)||Nc(t))&&t.replace(Ko(),!0)}catch{}})}e.dispatchCommand(bD,void 0)})},[e]);return II.jsx(yD,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:II.jsx(yI,{height:12})})};var _D,wD={},kD=function(){if(_D)return wD;_D=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=arguments[0]._r,v=arguments[0]._g,b=arguments[0]._b,y=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(g=arguments[0]))m=parseInt(h[1],10),v=parseInt(h[2],10),b=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(g))y=parseFloat(l(h[1]/2.55)/100),m=parseInt(h[2],10),v=parseInt(h[3],10),b=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(g))m=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(g))m=parseInt(h[1],16),v=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(g))m=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=e[o].r,v=e[o].g,b=e[o].b,y="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(y=(4278190080&arguments[0])>>>24,y/=255,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(b),this._a=y,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"==PI(o=function(e){if("object"!=PI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=PI(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},wD.Color=u,wD}();const SD=Hv(o_)(({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"})),CD=Hv(Fx)(({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"})),ED=({palette:e,color:t,onColorChange:n})=>{const[r,o]=E.useState(t),i=Sv(),a=E.useCallback(e=>{o(e),n(e)},[n]);return II.jsx(SD,{children:e.map(e=>II.jsx(CD,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?II.jsx(G_,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function TD(e,t,n){return Math.max(t,Math.min(n,e))}const AD=(e,t)=>{const n=new kD.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"}},LD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=TD(e.clientX-n,0,o)/o*100,s=100-TD(e.clientY-r,0,i)/i*100,l=new kD.Color(t).toHSVComponents();return l.s=a,l.v=s,l},RD=Hv(o_)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),MD=Hv(Fx)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),ND=Hv(Fx)(({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 );"})),OD=Hv(Fx)({width:"16px",height:"16px",borderRadius:"2px"}),PD=Hv(o_)({flexDirection:"row",alignItems:"center"}),ID=Hv(Fx)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),zD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=E.useState(n),a=E.useRef(n),[s,l]=E.useState(!0),[u,c]=E.useState(o),d=E.useRef(null),f=E.useRef(null),p=E.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=E.useState({left:"0",top:"0"});E.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const m=E.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=AD(o,e);g(t)}},[o]),v=E.useMemo(()=>`hsl(${new kD.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),b=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=LD(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new kD.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]),y=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=TD(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new kD.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new kD.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=E.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=E.useCallback(t=>{if(c(t.target.value),!new kD.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=AD(a.current,d.current);g(e)}},[e]);return II.jsxs(RD,{children:[s?II.jsx(ED,{palette:r,color:o,onColorChange:x}):II.jsxs(II.Fragment,{children:[II.jsx(MD,{style:{backgroundColor:v},ref:m,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=LD(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new kD.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):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:II.jsx(ID,{ref:f,style:{...h,backgroundColor:o}})}),II.jsx(ND,{onClick:y})]}),II.jsxs(PD,{children:[II.jsx(OD,{style:{backgroundColor:o}}),II.jsx(zx,{style:{flex:1},value:u,onChange:_}),II.jsx(jb,{onClick:()=>{l(!s)},children:II.jsx(_I,{height:12})}),II.jsx(jb,{onClick:t,children:II.jsx(G_,{height:12})})]})]})},DD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],jD=pD(qx,"Color"),FD=({colorPalette:e=DD})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=E.useCallback((e,n)=>{t.update(()=>{const t=Vr();Rr(t)&&zs(t,{color:e})},n),t.dispatchCommand(vD,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return II.jsx(Jx,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(jD,{variant:"text",size:"small",endIcon:II.jsx(sI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:II.jsx(Fx,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),II.jsx(tD,{anchorEl:n,children:II.jsx(zD,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};pD(fD,"Export");const BD=({compact:e=!1,fonts:t=qz})=>{const[n]=Ku(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(Xz),a=E.useMemo(()=>t,[t]),s=E.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=Vr();Rr(e)&&zs(e,{"font-family":t||qz[0]}),n.dispatchCommand(vD,{styleKey:"fontFamily",styleValue:t||qz[0]}),n.focus()})},[n]);return II.jsx(Jx,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:II.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),II.jsx(tD,{anchorEl:r,children:II.jsx(E_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>II.jsx(oD,{"data-font-name":e,onClick:s,active:e===i.fontName,children:II.jsx(nD,{children:e})},e))})})]})})},HD=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],WD=(e,t)=>t&&e.endsWith("px")?e.slice(0,-2):e,$D=e=>parseInt(e,10),UD=({fontSize:e,onSelected:t})=>{const[n,r]=E.useState(""),o=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=E.useCallback(()=>{const e=$D(n);e&&t(`${e}px`)},[t,n]),a=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return II.jsxs(o_,{direction:"row",children:[II.jsx(zx,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),II.jsx(jb,{disabled:!$D(n),onClick:i,children:II.jsx(G_,{height:12})})]})},KD=({compact:e=!1,hidePixels:t=!1})=>{const[n]=Ku(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(Xz),a=WD(i.fontSize,t),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},[r]),l=E.useCallback(()=>{o(null)},[]),u=E.useCallback(e=>{o(null),e.length>0&&n.update(()=>{const t=Vr();Rr(t)&&zs(t,{"font-size":e}),n.dispatchCommand(vD,{styleKey:"fontSize",styleValue:e})})},[n]),c=E.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;u(t||"16px")},[u]),d=E.useCallback(e=>{u(e)},[u]);return II.jsx(Jx,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{startIcon:e?II.jsx(nD,{children:a}):void 0,value:a,onClick:s,compact:e}),II.jsxs(tD,{anchorEl:r,children:[II.jsx(UD,{fontSize:a,onSelected:d}),II.jsx(r_,{}),II.jsx(E_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:HD.map(e=>II.jsx(M_,{"data-font-size":e,onClick:c,children:II.jsx(nD,{children:WD(e,t)})},e))})]})]})})},GD=pD(fD,"InsertTable"),VD=()=>{const[e]=Ku(),t=E.useCallback(()=>{e.dispatchCommand(kz,void 0)},[e]);return II.jsx(GD,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:II.jsx(kI,{height:12})})},YD=pD(hD,"Italic"),qD=()=>II.jsx(YD,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:II.jsx(CI,{height:12})}),QD=pD(fD,"InsertHyperlink"),JD=()=>{const[e]=Ku(),{blockFormat:t}=E.useContext(Xz),n=E.useCallback(()=>{t.isLink?e.dispatchCommand(ql,null):e.dispatchCommand(ql,$I("https://"))},[e,t.isLink]);return II.jsx(QD,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:II.jsx(TI,{height:12})})};pD(fD,"Toggle");const XD=pD(hD,"Underline"),ZD=()=>II.jsx(XD,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:II.jsx(LI,{height:12})}),ej=()=>II.jsx(r_,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var tj={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=="}},nj={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)"}},rj={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=="}},oj={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=="}},ij={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=="}},aj={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=="}},sj={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=="}},lj={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=="}},uj={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=="}},cj={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=="}},dj={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=="}},fj={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=="}},pj={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 hj={de:tj,es:rj,en:nj,fr:oj,it:ij,ja:aj,ko:sj,nl:lj,pl:uj,pt:cj,ru:dj,sv:fj,tr:pj,"de-de":tj,"es-es":rj,"en-us":nj,"fr-fr":oj,"it-it":ij,"ja-jp":aj,"ko-kr":sj,"nl-nl":lj,"pl-pl":uj,"pt-br":cj,"ru-ru":dj,"sv-se":fj,"tr-tr":pj,"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 gj(e,t){return e.getEditorState().read(()=>{const e=_i(t);return null!==e&&e.isSelected()})}function mj(e){const[t]=Ku(),[n,r]=E.useState(()=>gj(t,e));return E.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(gj(t,e))});return()=>{n=!1,o()}},[t,e]),[n,E.useCallback(n=>{t.update(()=>{let t=Vr();Nr(t)||(t=Kr(),Li(t)),Nr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),E.useCallback(()=>{t.update(()=>{const e=Vr();Nr(e)&&e.clear()})},[t])]}var vj,bj={};var yj=function(){if(vj)return bj;vj=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=arguments[0]._r,v=arguments[0]._g,b=arguments[0]._b,y=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(g=arguments[0]))m=parseInt(h[1],10),v=parseInt(h[2],10),b=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(g))y=parseFloat(l(h[1]/2.55)/100),m=parseInt(h[2],10),v=parseInt(h[3],10),b=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(g))m=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(g))m=parseInt(h[1],16),v=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(g))m=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=e[o].r,v=e[o].g,b=e[o].b,y="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(y=(4278190080&arguments[0])>>>24,y/=255,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(b),this._a=y,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},bj.Color=u,bj}();function xj(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function _j(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var wj,kj;var Sj=function(){if(kj)return wj;kj=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},wj=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},wj}();let Cj=[];const Ej=new Sj.EventEmitter;Ej.isSelected=e=>{const t=e?.qDef?.cId;return-1!==Cj.indexOf(t)},Ej.setSelected=e=>{Cj!==e&&(Cj=e,Ej.emit("change"))};function Tj({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=E.useContext(L),[a]=Ku(),s=Vc(),[l,u,c]=mj(n),d=E.useRef(null),[f,p]=E.useState(t);E.useEffect(()=>{p(t)},[t]);const h=E.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),g=E.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 yj.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);E.useEffect(()=>Ss(a.registerCommand(Tt,e=>(a.update(()=>{const t=e,r=Vr();if(Rr(r)&&l){if(_j(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&&Nr(r)&&_j(n,r)&&d.current){const e=xj(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(vD,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&l){const t=Vr();if(_j(n,t)){const t=xj(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),0),a.registerCommand(bD,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=Vr();if(_j(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),p(e)}}}),!1),0),a.registerCommand(ft,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=Vr(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),Ej.setSelected(e)}),!1),1)),[a,u,c,l,n,g]),E.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&Ej.setSelected([]))},[s,c,i]),E.useEffect(()=>{a.update(()=>{!function(e,t){const n=_i(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const m=E.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=Vr();if(Nr(e)){const t=_i(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Qu.jsx("span",{style:{...h,...f,color:g.expressionColor?g.expressionColor:f.color},onClick:m,ref:d,id:e,children:g.value})}const Aj="qlik.expression.node";class Lj extends Oz{__expressionId;static getType(){return Aj}static clone(e){return new Lj(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new Lj(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:Aj,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 Qu.jsx(Tj,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function Rj(e){return e instanceof Lj}const Mj="ImageNode",Nj=dt("INSERT_IMAGE_COMMAND"),Oj=()=>{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()},Pj=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===Mj)r.id||(r.id=Oj()),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)Pj(e,t,n);return{imageIds:t,newPropertyImages:n}},Ij=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function zj(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=Pj(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 Dj(){const[e]=Ku(),t=Vc(),{edit:n,model:r,emitter:o,flags:i}=E.useContext(L);return E.useEffect(()=>{const t=()=>{r&&zj(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]),E.useEffect(()=>{e.setEditable(n)},[n]),E.useEffect(()=>{t&&e.focus()},[t,e]),null}class jj{nodeStore;pendingDeletes;constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=_i(e);if(Rj(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 Fj(){const{layout:e,emitter:t,interactionState:n}=E.useContext(L),[r]=Ku(),o=E.useRef(new jj),i=Vc(),a=n?.edit&&e?.permissions?.update;return E.useEffect(()=>{const e=r.registerMutationListener(Lj,e=>{r.getEditorState().read(()=>{for(const[t,n]of e)o.current.update(t,n)})});return()=>{e()}},[r]),E.useEffect(()=>{e&&r.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=Gi(Lj),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=Vr(),{cId:t}=n[n.length-1],r=new Lj(t,{}),o=yr(" "),i=yr("");Rr(e)?e.insertNodes([i,r,o]):Qs(r)}}})},[e,r]),E.useEffect(()=>r.registerCommand(Rt,e=>("Backspace"===e.key&&r.update(()=>{const e=Vr();Nr(e)&&e.getNodes().forEach(e=>{Rj(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[r]),E.useEffect(()=>{if(!i&&a){const e=o.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[i,a,t]),null}const Bj=/"/g;function Hj(){const{model:e,emitter:t}=E.useContext(L),[n]=Ku(),r=E.useRef(new Map);return E.useEffect(()=>{const o=n.registerMutationListener(cr,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(Bj,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function Wj(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 $j,Uj="top",Kj="top-right",Gj="right",Vj="bottom-right",Yj="bottom",qj="bottom-left",Qj="left",Jj="top-left";Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj($j={},"equal-equal",[Uj,Yj]),"equal-higher",[Yj,Vj]),"equal-lower",[Uj,Kj]),"equal-void",[Uj,Yj]),"higher-equal",[Qj,qj,Uj,Kj]),"higher-higher-acute",[Yj,qj,Qj,Kj]),"higher-higher-obtuse",[Yj,Uj]),"higher-lower-negative",[Uj,Kj,Gj]),"higher-lower-positive",[Yj,qj,Qj]),"higher-void",[Uj]),Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj($j,"lower-equal",[Uj]),"lower-higher-negative",[Uj,Jj]),"lower-higher-positive",[Vj]),"lower-lower-acute",[Uj,Jj,Qj,Kj,Gj]),"lower-lower-obtuse",[Uj,Yj]),"lower-void",[Uj]),"void-equal",[Uj]),"void-higher",[Uj,Yj]),"void-lower",[Uj,Yj,Qj]),"void-void",[Uj]),Wj($j,"unclassified",[Uj,Yj,Gj,Qj,Kj,Vj,qj,Jj]);var Xj,Zj,eF=["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"],tF=["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 nF=function(){if(Zj)return Xj;Zj=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 Xj=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},Xj}();function rF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function iF(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(nF);var aF=1/.7,sF="\\s*([+-]?\\d+)\\s*",lF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cF=/^#([0-9a-f]{3,8})$/,dF=new RegExp(`^rgb\\(${sF},${sF},${sF}\\)$`),fF=new RegExp(`^rgb\\(${uF},${uF},${uF}\\)$`),pF=new RegExp(`^rgba\\(${sF},${sF},${sF},${lF}\\)$`),hF=new RegExp(`^rgba\\(${uF},${uF},${uF},${lF}\\)$`),gF=new RegExp(`^hsl\\(${lF},${uF},${uF}\\)$`),mF=new RegExp(`^hsla\\(${lF},${uF},${uF},${lF}\\)$`),vF={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 bF(){return this.rgb().formatHex()}function yF(){return this.rgb().formatRgb()}function xF(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_F(t):3===n?new CF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?wF(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?wF(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=dF.exec(e))?new CF(t[1],t[2],t[3],1):(t=fF.exec(e))?new CF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pF.exec(e))?wF(t[1],t[2],t[3],t[4]):(t=hF.exec(e))?wF(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gF.exec(e))?MF(t[1],t[2]/100,t[3]/100,1):(t=mF.exec(e))?MF(t[1],t[2]/100,t[3]/100,t[4]):vF.hasOwnProperty(e)?_F(vF[e]):"transparent"===e?new CF(NaN,NaN,NaN,0):null}function _F(e){return new CF(e>>16&255,e>>8&255,255&e,1)}function wF(e,t,n,r){return r<=0&&(e=t=n=NaN),new CF(e,t,n,r)}function kF(e){return e instanceof iF||(e=xF(e)),e?new CF((e=e.rgb()).r,e.g,e.b,e.opacity):new CF}function SF(e,t,n,r){return 1===arguments.length?kF(e):new CF(e,t,n,null==r?1:r)}function CF(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function EF(){return`#${RF(this.r)}${RF(this.g)}${RF(this.b)}`}function TF(){const e=AF(this.opacity);return`${1===e?"rgb(":"rgba("}${LF(this.r)}, ${LF(this.g)}, ${LF(this.b)}${1===e?")":`, ${e})`}`}function AF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function LF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function RF(e){return((e=LF(e))<16?"0":"")+e.toString(16)}function MF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new OF(e,t,n,r)}function NF(e){if(e instanceof OF)return new OF(e.h,e.s,e.l,e.opacity);if(e instanceof iF||(e=xF(e)),!e)return new OF;if(e instanceof OF)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 OF(a,s,l,e.opacity)}function OF(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function PF(e){return(e=(e||0)%360)<0?e+360:e}function IF(e){return Math.max(0,Math.min(1,e||0))}function zF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}rF(iF,xF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bF,formatHex:bF,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return NF(this).formatHsl()},formatRgb:yF,toString:yF}),rF(CF,SF,oF(iF,{brighter(e){return e=null==e?aF:Math.pow(aF,e),new CF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new CF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new CF(LF(this.r),LF(this.g),LF(this.b),AF(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:EF,formatHex:EF,formatHex8:function(){return`#${RF(this.r)}${RF(this.g)}${RF(this.b)}${RF(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:TF,toString:TF})),rF(OF,function(e,t,n,r){return 1===arguments.length?NF(e):new OF(e,t,n,null==r?1:r)},oF(iF,{brighter(e){return e=null==e?aF:Math.pow(aF,e),new OF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new OF(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 CF(zF(e>=240?e-240:e+120,o,r),zF(e,o,r),zF(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new OF(PF(this.h),IF(this.s),IF(this.l),AF(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=AF(this.opacity);return`${1===e?"hsl(":"hsla("}${PF(this.h)}, ${100*IF(this.s)}%, ${100*IF(this.l)}%${1===e?")":`, ${e})`}`}}));const DF=Math.PI/180,jF=180/Math.PI,FF=4/29,BF=6/29,HF=3*BF*BF;function WF(e){if(e instanceof $F)return new $F(e.l,e.a,e.b,e.opacity);if(e instanceof YF)return qF(e);e instanceof CF||(e=kF(e));var t,n,r=VF(e.r),o=VF(e.g),i=VF(e.b),a=UF((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=UF((.4360747*r+.3850649*o+.1430804*i)/.96422),n=UF((.0139322*r+.0971045*o+.7141733*i)/.82521)),new $F(116*a-16,500*(t-a),200*(a-n),e.opacity)}function $F(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function UF(e){return e>.008856451679035631?Math.pow(e,1/3):e/HF+FF}function KF(e){return e>BF?e*e*e:HF*(e-FF)}function GF(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function VF(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function YF(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function qF(e){if(isNaN(e.h))return new $F(e.l,0,0,e.opacity);var t=e.h*DF;return new $F(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}rF($F,function(e,t,n,r){return 1===arguments.length?WF(e):new $F(e,t,n,null==r?1:r)},oF(iF,{brighter(e){return new $F(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new $F(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 CF(GF(3.1338561*(t=.96422*KF(t))-1.6168667*(e=1*KF(e))-.4906146*(n=.82521*KF(n))),GF(-.9787684*t+1.9161415*e+.033454*n),GF(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),rF(YF,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof YF)return new YF(e.h,e.c,e.l,e.opacity);if(e instanceof $F||(e=WF(e)),0===e.a&&0===e.b)return new YF(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*jF;return new YF(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new YF(e,t,n,null==r?1:r)},oF(iF,{brighter(e){return new YF(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new YF(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return qF(this).rgb()}}));var QF=e=>()=>e;function JF(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):QF(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?JF: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):QF(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=SF(e)).r,(t=SF(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=JF(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 XF,ZF="center",eB="bottom";function tB(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 nB(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=oB)):void 0===t&&(t=rB);for(var n,r,o,i,a,s=new sB(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 sB(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(aB)}function rB(e){return e.children}function oB(e){return Array.isArray(e)?e[1]:null}function iB(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function aB(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function sB(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:ZF,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:ZF,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:ZF,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:ZF},{key:"DataRangeIncludingZero",alignment:eB},{key:"LimitedData",alignment:eB},{key:"NegativeOrZeroValues",alignment:eB}].reduce(function(e,t){return e[t.key]=t,e},{}),sB.prototype=nB.prototype={constructor:sB,count:function(){return this.eachAfter(tB)},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 nB(this).eachBefore(iB)},[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)}},XF=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):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),v=f-m,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=m>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).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(g="",v=(d=t[0]).length%l,f=d.length,y=0;y<f;y++)g+=d.charAt(y),!((y-v+1)%l)&&y<f-l&&(g+=i);t[0]=g}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},ZF({exports:{}});const uB=e=>`text-toolbar.${e?.id}`,cB=(e,t)=>Qu.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:Qu.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"})}),dB=E.forwardRef(cB),fB=pD(fD,"InsertImage"),pB=()=>{const{flags:e,showMediaLibrary:t}=E.useContext(L),[n]=Ku(),r=E.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(Oj,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Qu.jsx(fB,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Qu.jsx(dB,{height:12})}):null};function hB(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=E.useContext(L),a=E.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=E.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?nF:tF}(r),[r]),l=E.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 Qu.jsx(_x,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:uB(n),children:({TransitionProps:e})=>Qu.jsx(u_,{...e,children:Qu.jsx(gb,{sx:{borderRadius:1,padding:.25},children:Qu.jsxs(eD,{children:[Qu.jsx(dD,{compact:!0}),Qu.jsx(ej,{}),Qu.jsx(BD,{compact:!0,fonts:s}),Qu.jsx(KD,{compact:!0,hidePixels:c}),Qu.jsx(ej,{}),Qu.jsx(mD,{}),Qu.jsx(qD,{}),Qu.jsx(ZD,{}),Qu.jsx(JD,{}),Qu.jsx(FD,{colorPalette:l}),Qu.jsx(ej,{}),Qu.jsx(aD,{compact:!0}),Qu.jsx(ej,{}),Qu.jsx(xD,{}),Qu.jsx(ej,{}),Qu.jsx(VD,{}),Qu.jsx(pB,{})]})})})})}function gB(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))}}gB(".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");gB(".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 mB=1,vB=8,bB=2,yB=4;function xB({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=E.useRef(null),a=E.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=E.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===mB||e===yB?"ew":e===vB||e===bB?"ns":e&vB&&e&yB||e&bB&&e&mB?"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&(mB|yB),i=r.direction&(bB|vB);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&mB?-n:n;const o=_B(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&bB?-n:n;const o=_B(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&mB?-n:n;const o=_B(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 Qu.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,vB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,vB|mB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,mB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,bB|mB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,bB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,bB|yB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,yB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,vB|yB)}})]})}const _B=(e,t,n)=>Math.min(Math.max(e,t),n),wB=new Map,kB=({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=wB.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=>(wB.set(e,t),t)),wB.set(e,t),t;throw t})(r);E.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 Qu.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 SB({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=E.useRef(null),[l,u,c]=mj(a),[d,f]=E.useState(!1),[p]=Ku(),h=Vc(),{layout:g,printingStatus:m}=E.useContext(L),v=void 0,b=E.useMemo(()=>e||zj(g,t),[e,g,t]);E.useEffect(()=>{!h&&l&&c()},[h,l,c]);const y=E.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=E.useCallback(()=>!!l&&(Li(null),p.focus(),!0),[l,p]);E.useEffect(()=>Ss(p.registerCommand(ht,y,1),p.registerCommand(Yt,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Bt,x,1)),[p,y,x]);const _=l&&!d&&h,w=(l||d)&&h;return Qu.jsx(E.Suspense,{fallback:null,children:Qu.jsxs(Qu.Fragment,{children:[Qu.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Qu.jsx(kB,{className:`${w?"focused":""} ${_?"draggable":""}`,src:b,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>m?.resolve(t,!1),onError:()=>m?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(ht,e.nativeEvent)}})}),i&&l&&w?Qu.jsx(xB,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=_i(a);n?.getType()===Nj&&n.setWidthAndHeight(e,t)})}}):null]})})}var CB=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),EB=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),TB=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class AB extends Po{__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 Nj}static clone(e){return new AB({...e.__props,key:e.getKey()})}decorate(){return Qu.jsx(SB,{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:Nj,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===AB.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||EB(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=CB(n);a=TB(a),a=decodeURIComponent(a);return{node:LB({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return LB(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const LB=e=>new AB(e),RB=document.createElement("img");function MB(e){const t=e.target;return!!(t&&fa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&fa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function NB(){const e=Vr();if(!Nr(e))return null;const t=e.getNodes()[0];return t.getType()===Nj?t:null}function OB(e,t){const n=NB();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!==Nj?null:r}(e);if(!r)return!1;const o=Ta(n,e=>!Yl(e)&&Kl(e));if(e.preventDefault(),MB(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=Ur();null!=i&&a.applyDOMRange(i),Li(a),t.dispatchCommand(Oj,{...r}),o&&t.dispatchCommand(ql,o.getURL())}return!0}RB.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const PB=()=>{const[e]=Ku(),{emitter:t,layout:n,model:r}=E.useContext(L),[o,i]=E.useState();return E.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),E.useEffect(()=>Ss(e.registerCommand(Oj,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=LB({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});to([e]),oa(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,Ko).selectEnd()}),!0),0),e.registerCommand(Jt,t=>{const r=Vr();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===AB.getType());if(!i)return!1;const a=yc(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===AB.getType()){const t={...e};return t.tempUrl=t.tempUrl||zj(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 mc(e,Xs(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(Yt,e=>function(e){const t=NB();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(RB,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:Nj})),!0)}(e),3),e.registerCommand(qt,e=>function(e){return!!NB()&&(MB(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(Gt,t=>OB(t,e),3)),[e,t,o,n]),null};const IB=()=>((()=>{const e=E.useRef(null),{printingStatus:t}=E.useContext(L),[n]=Ku();E.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function zB({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o,layout:i}=E.useContext(L),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})`}}E.useEffect(()=>{!function(e){const t=Object.entries(hj[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});LP.configure(t,e)}(n)},[n]);const u=E.useMemo(()=>{if(void 0!==t){const n=t||void 0,o=[...Pz,Rj];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(AB):o.push((e=Nj,class t extends Po{__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=JI.nodes;e.nodes&&(t=JI.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...JI,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null},[t,r]),c=Qu.jsxs(XI,{initialConfig:u,flags:r,children:[Qu.jsx(hB,{}),Qu.jsx(Vz,{showPlaceholder:s}),Qu.jsx(Kz,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Qu.jsx(PB,{}):null,Qu.jsx(Bj,{}),Qu.jsx(jj,{}),Qu.jsx(Wj,{}),Qu.jsx(IB,{})]});return u?Qu.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Qu.jsx("div",{style:{zoom:l},children:c}):c}):null}const DB={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:Tj,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 jB({env:e}){return{definition:{type:"items",component:"accordion",items:{data:DB,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 FB{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 BB=({propertyPanelHandlerData:t,flags:n})=>{const r=e.useElement(),o=e.useStaleLayout(),i=e.useModel(),a=e.useInteractionState(),s=e.useEmitter(),[l,u]=e.useState(!1),[c,d]=e.useState(1),[f,p]=e.useState(!1),h=e=>{e||d(0),(e=>!!e.qExtendsId)(o)||(e&&p(!0),u(e),s.emit("njs-internal-edit-change",e))};return e.useEffect(()=>{2===c&&a.edit&&a.select&&h(!0)},[c,a]),e.useEffect(()=>{const e=()=>{a.edit&&a.select&&d(e=>e+1)},o=e=>{const t=document.getElementById(uB(i));r.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(n?.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)||h(!1)};if(!a.edit||!a.select){h(!1);const e=i?.id&&t.getSnTexts()[i.id]?.propertiesHaveBeenModified;i&&(f||e)&&(s.emit("saveDocument"),t.setPropertiesHaveBeenModified(i.id,!1))}return r.addEventListener("click",e),document.addEventListener("mousedown",o),()=>{r.removeEventListener("click",e),document.removeEventListener("mousedown",o)}},[r,a,i]),e.useEffect(()=>{!l&&f&&s.emit("saveDocument")},[l,s,f]),{edit:l}};return function(t){const o=new FB,{flags:i}=t;return{qae:{properties:n,data:r(o)},ext:jB({env:t}),component(){const n=e.useElement(),r=(t=>{const n=e.useMemo(()=>C.createRoot(t),[t]);return e.useEffect(()=>()=>{n?.unmount()},[n]),n})(n),a=e.useStaleLayout(),s=e.useModel(),l=e.useInteractionState(),u=e.useEmitter(),[c,d]=e.useState(null),f=e.useTranslator(),[p,h]=e.useState(void 0),g=e.useTheme(),{printingStatus:m}=(({layout:t,flags:n})=>{const[r,o]=e.useState(null);return e.usePromise(()=>new Promise(e=>{const r=new Set;n.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&t.images&&t.images.forEach(e=>{e.id&&r.add(e.id)}),o({resolve:(t,n)=>{t&&r.delete(t),(0===r.size||n)&&(o(null),e?.(t))}})}),[]),e.useEffect(()=>{let e;return r&&(e=setTimeout(()=>{r.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[r]),{printingStatus:r}})({layout:a,flags:i});e.useEffect(()=>{const e=e=>{xj(s,e)};return u.on("onNodeDestroyed",e),()=>{u.removeListener("onNodeDestroyed",e)}},[u,s]),e.useEffect(()=>{a&&void 0===p&&(h(a.text||null),d(a?.text))},[a,p]);const{edit:v}=BB({propertyPanelHandlerData:o,flags:i});e.useEffect(()=>{(({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(Qu.jsx(T.StrictMode,{children:Qu.jsx(L.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:Qu.jsx(zB,{interactionState:c})})}))})({rootElement:r,layout:a,model:s,element:n,edit:v,initialData:p,emitter:u,lang:f.language(),flags:i,theme:g,interactionState:l,printingStatus:m,showMediaLibrary:t.anything?.sense?.showMediaLibrary})},[a,r,s,n,v,n,p,u,i,g,l]),e.useEffect(()=>{if(a){const e=a;e.text&&e.text!==c&&(d(e.text),u.emit("reloadData",e.text))}},[a,c,u]),e.useImperativeHandle(()=>({updateActiveState(e){e?o.setSelectedModelId(s?.id):s?.id===o.getSelectedModelId()&&o.setSelectedModelId(void 0)}}),[])}}}});
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):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),v=f-m,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=m>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).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(g="",v=(d=t[0]).length%l,f=d.length,y=0;y<f;y++)g+=d.charAt(y),!((y-v+1)%l)&&y<f-l&&(g+=i);t[0]=g}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},XF({exports:{}});const lB=e=>`text-toolbar.${e?.id}`,uB=(e,t)=>Qu.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:Qu.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"})}),cB=E.forwardRef(uB),dB=pD(fD,"InsertImage"),fB=()=>{const{flags:e,showMediaLibrary:t}=E.useContext(L),[n]=Ku(),r=E.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(Nj,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Qu.jsx(dB,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Qu.jsx(cB,{height:12})}):null};function pB(){const{element:e,edit:t,model:n,flags:r,theme:o,layout:i}=E.useContext(L),a=E.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),s=E.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?tF:eF}(r),[r]),l=E.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 Qu.jsx(_x,{open:t,anchorEl:a,placement:"top",transition:!0,sx:{zIndex:2},id:lB(n),children:({TransitionProps:e})=>Qu.jsx(u_,{...e,children:Qu.jsx(gb,{sx:{borderRadius:1,padding:.25},children:Qu.jsxs(eD,{children:[Qu.jsx(dD,{compact:!0}),Qu.jsx(ej,{}),Qu.jsx(BD,{compact:!0,fonts:s}),Qu.jsx(KD,{compact:!0,hidePixels:c}),Qu.jsx(ej,{}),Qu.jsx(mD,{}),Qu.jsx(qD,{}),Qu.jsx(ZD,{}),Qu.jsx(JD,{}),Qu.jsx(FD,{colorPalette:l}),Qu.jsx(ej,{}),Qu.jsx(aD,{compact:!0}),Qu.jsx(ej,{}),Qu.jsx(xD,{}),Qu.jsx(ej,{}),Qu.jsx(VD,{}),Qu.jsx(fB,{})]})})})})}function hB(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))}}hB(".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");hB(".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 gB=1,mB=8,vB=2,bB=4;function yB({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=E.useRef(null),a=E.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=E.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===gB||e===bB?"ew":e===mB||e===vB?"ns":e&mB&&e&bB||e&vB&&e&gB?"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&(gB|bB),i=r.direction&(vB|mB);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&gB?-n:n;const o=xB(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&vB?-n:n;const o=xB(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&gB?-n:n;const o=xB(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 Qu.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,mB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,mB|gB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,gB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,vB|gB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,vB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,vB|bB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,bB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,mB|bB)}})]})}const xB=(e,t,n)=>Math.min(Math.max(e,t),n),_B=new Map,wB=({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=_B.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=>(_B.set(e,t),t)),_B.set(e,t),t;throw t})(r);E.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 Qu.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 kB({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=E.useRef(null),[l,u,c]=mj(a),[d,f]=E.useState(!1),[p]=Ku(),h=Vc(),{layout:g,printingStatus:m}=E.useContext(L),v=void 0,b=E.useMemo(()=>e||Ij(g,t),[e,g,t]);E.useEffect(()=>{!h&&l&&c()},[h,l,c]);const y=E.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=E.useCallback(()=>!!l&&(Li(null),p.focus(),!0),[l,p]);E.useEffect(()=>Ss(p.registerCommand(ht,y,1),p.registerCommand(Yt,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Bt,x,1)),[p,y,x]);const _=l&&!d&&h,w=(l||d)&&h;return Qu.jsx(E.Suspense,{fallback:null,children:Qu.jsxs(Qu.Fragment,{children:[Qu.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Qu.jsx(wB,{className:`${w?"focused":""} ${_?"draggable":""}`,src:b,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>m?.resolve(t,!1),onError:()=>m?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(ht,e.nativeEvent)}})}),i&&l&&w?Qu.jsx(yB,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=_i(a);n?.getType()===Mj&&n.setWidthAndHeight(e,t)})}}):null]})})}var SB=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),CB=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),EB=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class TB extends Po{__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 Mj}static clone(e){return new TB({...e.__props,key:e.getKey()})}decorate(){return Qu.jsx(kB,{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:Mj,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===TB.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||CB(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=SB(n);a=EB(a),a=decodeURIComponent(a);return{node:AB({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return AB(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const AB=e=>new TB(e),LB=document.createElement("img");function RB(e){const t=e.target;return!!(t&&fa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&fa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function MB(){const e=Vr();if(!Nr(e))return null;const t=e.getNodes()[0];return t.getType()===Mj?t:null}function NB(e,t){const n=MB();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!==Mj?null:r}(e);if(!r)return!1;const o=Ta(n,e=>!Yl(e)&&Kl(e));if(e.preventDefault(),RB(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=Ur();null!=i&&a.applyDOMRange(i),Li(a),t.dispatchCommand(Nj,{...r}),o&&t.dispatchCommand(ql,o.getURL())}return!0}LB.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const OB=()=>{const[e]=Ku(),{emitter:t,layout:n,model:r}=E.useContext(L),[o,i]=E.useState();return E.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),E.useEffect(()=>Ss(e.registerCommand(Nj,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=AB({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});to([e]),oa(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,Ko).selectEnd()}),!0),0),e.registerCommand(Jt,t=>{const r=Vr();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===TB.getType());if(!i)return!1;const a=yc(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===TB.getType()){const t={...e};return t.tempUrl=t.tempUrl||Ij(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 mc(e,Xs(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(Yt,e=>function(e){const t=MB();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(LB,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:Mj})),!0)}(e),3),e.registerCommand(qt,e=>function(e){return!!MB()&&(RB(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(Gt,t=>NB(t,e),3)),[e,t,o,n]),null};const PB=()=>((()=>{const e=E.useRef(null),{printingStatus:t}=E.useContext(L),[n]=Ku();E.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function IB(){const{initialData:e,lang:t,flags:n,showMediaLibrary:r,layout:o,interactionState:i}=E.useContext(L),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})`}}E.useEffect(()=>{!function(e){const t=Object.entries(hj[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});LP.configure(t,e)}(t)},[t]);const u=E.useMemo(()=>{if(void 0!==e){const r=e||void 0,o=[...Pz,Lj];return n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(TB):o.push((t=Mj,class e extends Po{__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=JI.nodes;e.nodes&&(t=JI.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...JI,nodes:t,editorState:n}})({initialData:r,nodes:o})}var t;return null},[e,n]),c=Qu.jsxs(XI,{initialConfig:u,flags:n,children:[Qu.jsx(pB,{}),Qu.jsx(Vz,{showPlaceholder:s}),Qu.jsx(Kz,{}),r&&n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Qu.jsx(OB,{}):null,Qu.jsx(Fj,{}),Qu.jsx(Dj,{}),Qu.jsx(Hj,{}),Qu.jsx(PB,{})]});return u?Qu.jsx("div",{className:"hideScrollBar",style:l?{containerType:"size"}:void 0,children:l?Qu.jsx("div",{style:{zoom:l},children:c}):c}):null}const zB={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:Ej,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 DB({env:e}){return{definition:{type:"items",component:"accordion",items:{data:zB,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 jB{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 FB=({propertyPanelHandlerData:t,flags:n})=>{const r=e.useElement(),o=e.useStaleLayout(),i=e.useModel(),a=e.useInteractionState(),s=e.useEmitter(),[l,u]=e.useState(!1),[c,d]=e.useState(1),[f,p]=e.useState(!1),h=e=>{e||d(0),(e=>!!e.qExtendsId)(o)||(e&&p(!0),u(e),s.emit("njs-internal-edit-change",e))};return e.useEffect(()=>{2===c&&a.edit&&a.select&&h(!0)},[c,a]),e.useEffect(()=>{const e=()=>{a.edit&&a.select&&d(e=>e+1)},o=e=>{const t=document.getElementById(lB(i));r.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(n?.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)||h(!1)};if(!a.edit||!a.select){h(!1);const e=i?.id&&t.getSnTexts()[i.id]?.propertiesHaveBeenModified;i&&(f||e)&&(s.emit("saveDocument"),t.setPropertiesHaveBeenModified(i.id,!1))}return r.addEventListener("click",e),document.addEventListener("mousedown",o),()=>{r.removeEventListener("click",e),document.removeEventListener("mousedown",o)}},[r,a,i]),e.useEffect(()=>{!l&&f&&s.emit("saveDocument")},[l,s,f]),{edit:l}};return function(t){const o=new jB,{flags:i}=t;return{qae:{properties:n,data:r(o)},ext:DB({env:t}),component(){const n=e.useElement(),r=(t=>{const n=e.useMemo(()=>C.createRoot(t),[t]);return e.useEffect(()=>()=>{n?.unmount()},[n]),n})(n),a=e.useStaleLayout(),s=e.useModel(),l=e.useInteractionState(),u=e.useEmitter(),[c,d]=e.useState(null),f=e.useTranslator(),[p,h]=e.useState(void 0),g=e.useTheme(),{printingStatus:m}=(({layout:t,flags:n})=>{const[r,o]=e.useState(null);return e.usePromise(()=>new Promise(e=>{const r=new Set;n.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&t.images&&t.images.forEach(e=>{e.id&&r.add(e.id)}),o({resolve:(t,n)=>{t&&r.delete(t),(0===r.size||n)&&(o(null),e?.(t))}})}),[]),e.useEffect(()=>{let e;return r&&(e=setTimeout(()=>{r.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[r]),{printingStatus:r}})({layout:a,flags:i});e.useEffect(()=>{const e=e=>{!async function(e,t){try{if(e){const n=await e.getProperties(),{qHyperCubeDef:r}=n;if(r){const o=new Set(t),i=r.qMeasures?.filter(e=>!e?.qDef?.cId||!o.has(e.qDef.cId));if(r.qMeasures?.length!==i?.length){r.qMeasures=i,r.qInterColumnSortOrder=[];const t={...n,qHyperCubeDef:r};await e.setProperties(t)}}}}catch(e){console.error(e)}}(s,e)};return u.on("onNodeDestroyed",e),()=>{u.removeListener("onNodeDestroyed",e)}},[u,s]),e.useEffect(()=>{a&&void 0===p&&(h(a.text||null),d(a?.text))},[a,p]);const{edit:v}=FB({propertyPanelHandlerData:o,flags:i});e.useEffect(()=>{(({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(Qu.jsx(T.StrictMode,{children:Qu.jsx(L.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:Qu.jsx(IB,{})})}))})({rootElement:r,layout:a,model:s,element:n,edit:v,initialData:p,emitter:u,lang:f.language(),flags:i,theme:g,interactionState:l,printingStatus:m,showMediaLibrary:t.anything?.sense?.showMediaLibrary})},[a,r,s,n,v,n,p,u,i,g,l]),e.useEffect(()=>{if(a){const e=a;e.text&&e.text!==c&&(d(e.text),u.emit("reloadData",e.text))}},[a,c,u]),e.useImperativeHandle(()=>({updateActiveState(e){e?o.setSelectedModelId(s?.id):s?.id===o.getSelectedModelId()&&o.setSelectedModelId(void 0)}}),[])}}}});